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 ALL - 27 + ( cor0.col2 ) * col2 + col2 FROM tab1 AS cor0
----
2943
3279
9285
onlyif mysql # use DIV operator for integer division
query I rowsort label-1
SELECT - col2 + 4 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-1
SELECT - col2 + 4 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 98 * 89 AS col2 FROM tab2 AS cor0
----
8722
query I rowsort
SELECT ALL - tab0.col0 + 86 + col2 * col0 AS col1 FROM tab0
----
7295
854
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4
SELECT ALL - CAST( NULL AS SIGNED ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4
SELECT ALL - CAST ( NULL AS INTEGER ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 93 + cor0.col2 FROM tab1 AS cor0
----
147
150
189
query I rowsort
SELECT ALL col0 * col0 + - 10 AS col2 FROM tab2 cor0
----
39
6074
6231
query I rowsort
SELECT - - 9 * cor0.col0 + - col1 FROM tab1 AS cor0
----
1
566
707
query I rowsort
SELECT DISTINCT + 94 + - tab2.col2 + - col2 * + ( col2 ) FROM tab2
----
-1388
-608
-662
query I rowsort
SELECT ALL - + 95 * - col1 FROM tab2 AS cor0
----
1615
2945
5605
query I rowsort
SELECT 16 + 76 AS col0 FROM tab2
----
92
92
92
query I rowsort
SELECT + 19 * - cor0.col0 + ( col2 ) * - col2 AS col0 FROM tab1 AS cor0
----
-10736
-2973
-4465
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col0 FROM tab1
----
40
40
40
query I rowsort
SELECT ( col1 ) * - tab2.col0 AS col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-14
SELECT ALL + col0 * col0 + - col1 DIV - CAST( ( + col1 ) AS SIGNED ) AS col0 FROM tab0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-14
SELECT ALL + col0 * col0 + - col1 / - CAST ( ( + col1 ) AS INTEGER ) AS col0 FROM tab0
----
1226
577
7922
query I rowsort
SELECT ALL + 29 * col1 FROM tab1
----
290
377
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 83 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col1 * + cor0.col2 + + 33 FROM tab1 AS cor0
----
1281
1437
603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * ( cor0.col0 + + col2 ) col1 FROM tab1 AS cor0
----
1210
1482
2288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-20
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-21
SELECT - CAST( NULL AS SIGNED ) - + 33 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-21
SELECT - CAST ( NULL AS INTEGER ) - + 33 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT - cor0.col1 + col2 * col1 * - col2 FROM tab1 AS cor0
----
-119821
-32500
-75842
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-24
SELECT DISTINCT tab0.col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT tab0.col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT 76 FROM tab0, tab1 AS cor0
----
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-26
SELECT ALL + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-26
SELECT ALL + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col0 + 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7d07abd4896ab75dae89d0bb10da44b9
query I rowsort
SELECT DISTINCT - - ( - 22 ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-22
query I rowsort
SELECT tab1.col0 * 73 * col1 - tab1.col2 * + 85 AS col1 FROM tab1
----
1104
41875
67760
query I rowsort
SELECT - col2 * ( + col2 + col1 ) FROM tab2 AS cor0
----
-1566
-2090
-2210
query I rowsort
SELECT DISTINCT - col2 + ( - 86 ) FROM tab1 AS cor0
----
-140
-143
-182
onlyif mysql # use DIV operator for integer division
query I rowsort label-32
SELECT ALL col1 DIV col2 - - col1 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-32
SELECT ALL col1 / col2 - - col1 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT ALL 49 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + cor0.col1 + CAST ( - col2 AS REAL ) FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-35
SELECT DISTINCT + - col0 DIV col0 + - col2 * col0 DIV - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
170
35
56
skipif mysql # not compatible
query I rowsort label-35
SELECT DISTINCT + - col0 / col0 + - col2 * col0 / - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
170
35
56
query I rowsort
SELECT DISTINCT - col0 * + col0 - - col1 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + col2 * col2 + + col2 - col1 FROM tab2 AS cor0
----
1465
643
725
query I rowsort
SELECT col1 * cor0.col0 + cor0.col0 FROM tab0 cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 - + cor0.col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - 85 AS col1 FROM tab0 AS cor0
----
-85
query I rowsort
SELECT ALL + - col0 * + cor0.col2 + ( col2 ) * col2 FROM tab1 AS cor0
----
-399
1536
2754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-42
SELECT + + cor0.col2 + col2 * - CAST( + col0 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0
----
-233415
-432
-614304
skipif mysql # not compatible
query I rowsort label-42
SELECT + + cor0.col2 + col2 * - CAST ( + col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0
----
-233415
-432
-614304
query I rowsort
SELECT DISTINCT + 22 - - col1 AS col1 FROM tab0 AS cor0
----
108
113
119
query I rowsort
SELECT ALL ( col1 ) + 82 FROM tab0 AS cor0
----
168
173
179
onlyif mysql # use DIV operator for integer division
query I rowsort label-45
SELECT + col2 DIV col2 + ( 83 * col2 ) FROM tab1 AS cor0
----
4483
4732
7969
skipif mysql # not compatible
query I rowsort label-45
SELECT + col2 / col2 + ( 83 * col2 ) FROM tab1 AS cor0
----
4483
4732
7969
query I rowsort
SELECT - cor0.col1 * - col1 + col2 FROM tab1 AS cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 + - col0 * + col1 col1 FROM tab0 AS cor0
----
-2000
-3331
-8035
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col2 + + ( ( - col1 ) ) col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-49
SELECT DISTINCT cor0.col1 DIV col0 FROM tab2 cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-49
SELECT DISTINCT cor0.col1 / col0 FROM tab2 cor0
----
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-50
SELECT ALL 39 DIV + col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-50
SELECT ALL 39 / + col0 FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT ( - tab1.col0 ) AS col0 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT ALL - - col1 DIV col2 + col2 FROM tab0 AS cor0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - - col1 / col2 + col2 FROM tab0 AS cor0
----
35
83
98
query I rowsort
SELECT + 8 + col0 AS col0 FROM tab0 AS cor0
----
32
43
97
query I rowsort
SELECT DISTINCT + - col1 * + col2 + 83 AS col0 FROM tab2 AS cor0
----
-1451
-563
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-56
SELECT - col1 + col1 - + col0 DIV + 19 FROM tab1 AS cor0
----
-3
-4
0
skipif mysql # not compatible
query I rowsort label-56
SELECT - col1 + col1 - + col0 / + 19 FROM tab1 AS cor0
----
-3
-4
0
query I rowsort
SELECT ALL - 30 + col1 AS col1 FROM tab0
----
56
61
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-58
SELECT + 25 + col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-58
SELECT + 25 + col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) * - col2 + col2 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-60
SELECT - cor0.col1 DIV 49 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-60
SELECT - cor0.col1 / 49 FROM tab2 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT DISTINCT + col0 * 90 + + col2 DIV + cor0.col1 FROM tab0 AS cor0
----
2160
3150
8010
skipif mysql # not compatible
query I rowsort label-61
SELECT DISTINCT + col0 * 90 + + col2 / + cor0.col1 FROM tab0 AS cor0
----
2160
3150
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-62
SELECT DISTINCT - + col0 * CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-62
SELECT DISTINCT - + col0 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + col2 * - col0 + ( tab0.col1 ) + - col1 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + + 32 col0 FROM tab1
----
-130
-3616
-7648
onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT DISTINCT - 69 + + col2 DIV col0 + - col2 FROM tab0
----
-101
-151
-70
skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT - 69 + + col2 / col0 + - col2 FROM tab0
----
-101
-151
-70
query I rowsort
SELECT ALL + col2 * col2 + col2 AS col2 FROM tab0
----
1122
2
6806
query I rowsort
SELECT ALL tab0.col2 + + tab0.col0 AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT col0 + + col0 + - col0 FROM tab2
----
7
78
79
query I rowsort
SELECT - col0 * + ( - col0 ) * - ( col1 + col2 ) FROM tab0 cor0
----
-120050
-1370333
-68544
query I rowsort
SELECT ALL + - 12 * - 2 + + col0 * col1 FROM tab1 AS cor0
----
102
1064
664
query I rowsort
SELECT ALL ( col0 ) * col0 + ( 65 * col1 ) FROM tab1 AS cor0
----
1699
4746
7245
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) * col2 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + 59 * col2 FROM tab1 AS cor0
----
3186
3363
5664
query I rowsort
SELECT + cor0.col0 * 61 * col2 AS col1 FROM tab0 AS cor0
----
2135
445178
48312
query I rowsort
SELECT + col2 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-76
SELECT ALL - col0 * - 66 * col2 + CAST( col2 AS SIGNED ) FROM tab0 cor0
----
2311
481750
52305
skipif mysql # not compatible
query I rowsort label-76
SELECT ALL - col0 * - 66 * col2 + CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
2311
481750
52305
query I rowsort
SELECT DISTINCT + cor0.col1 + 16 FROM tab1, tab2, tab1 AS cor0
----
26
29
42
query I rowsort
SELECT ALL ( + cor0.col1 ) AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT ( - 79 ) AS col1 FROM tab0 AS cor0
----
-79
query I rowsort
SELECT ALL + 80 * col2 + cor0.col2 - col2 AS col0 FROM tab1 AS cor0
----
4320
4560
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-81
SELECT ALL - - CAST( NULL AS SIGNED ) + - 30 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - - CAST ( NULL AS INTEGER ) + - 30 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 65 * - col0 AS col0 FROM tab1 AS cor0
----
195
4160
5200
onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT DISTINCT - col0 - col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-83
SELECT DISTINCT - col0 - col0 / + col2 AS col0 FROM tab1 AS cor0
----
-3
-65
-80
query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col2 - + 1 * col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT col0 + 37 AS col2 FROM tab1
----
101
117
40
query I rowsort
SELECT - + 40 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-31
4056
6360
query I rowsort
SELECT ALL - col0 * cor0.col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL 59 + + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4155
6459
68
query I rowsort
SELECT - + col1 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT ( col1 * col1 ) + ( - col0 + col1 ) AS col1 FROM tab0
----
7458
8283
9471
query I rowsort
SELECT + 56 * + col2 - col0 FROM tab2 AS cor0
----
1378
1505
2049
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( + col0 ) * + col0 col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT + col1 + col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT + 61 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
onlyif mysql # use DIV operator for integer division
query I rowsort label-96
SELECT + tab2.col1 + + col1 DIV - 54 + col1 * col0 FROM tab2
----
1360
248
4660
skipif mysql # not compatible
query I rowsort label-96
SELECT + tab2.col1 + + col1 / - 54 + col1 * col0 FROM tab2
----
1360
248
4660
query I rowsort
SELECT + col1 + - 73 FROM tab0
----
13
18
24
query I rowsort
SELECT ALL - col0 * col2 + col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + cor0.col2 + + col0 * - cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - col2 * - col1 - cor0.col1 * + cor0.col0 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT DISTINCT col0 * 39 AS col0 FROM tab1
----
117
2496
3120
query I rowsort
SELECT - ( + 99 ) * col1 * cor0.col1 + + cor0.col1 + - col0 AS col0 FROM tab1 AS cor0
----
-16798
-66901
-9954
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) * + col2 + - col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT + ( 14 ) + + cor0.col1 AS col2 FROM tab0 AS cor0
----
100
105
111
query I rowsort
SELECT ALL + 14 + - col2 * - col0 FROM tab0 AS cor0
----
49
7312
806
query I rowsort
SELECT DISTINCT - 95 FROM tab1 cor0
----
-95
query I rowsort
SELECT - - col2 + col1 * + col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - col1 + ( 54 ) * col1 AS col1 FROM tab1
----
1378
530
689
query I rowsort
SELECT + col1 * - ( - col1 ) FROM tab2
----
289
3481
961
query I rowsort
SELECT + + 62 AS col0 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT DISTINCT - 38 * + col2 AS col0 FROM tab0 cor0
----
-1254
-3116
-38
query I rowsort
SELECT DISTINCT + - col1 * - col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + + 42 * col0 FROM tab2 AS cor0
----
294
3276
3318
query I rowsort
SELECT DISTINCT + ( col1 ) * cor0.col0 + cor0.col1 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT ALL + col0 + - col1 * - 65 FROM tab0 AS cor0
----
5614
6004
6340
query I rowsort
SELECT DISTINCT + col0 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-117
SELECT cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-117
SELECT cor0.col1 / col1 AS col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-118
SELECT + col1 + col0 DIV + 86 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-118
SELECT + col1 + col0 / + 86 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL ( - col0 ) * col0 * col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT 45 + - cor0.col1 * - col1 AS col2 FROM tab1 cor0
----
145
214
721
onlyif mysql # use DIV operator for integer division
query I rowsort label-121
SELECT DISTINCT - - 14 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT - - 14 / + col0 AS col1 FROM tab1 AS cor0
----
0
4
query I rowsort
SELECT - 46 * + col0 AS col2 FROM tab0 AS cor0
----
-1104
-1610
-4094
query I rowsort
SELECT DISTINCT + - 27 * + col1 + + ( - col0 ) FROM tab2 AS cor0
----
-1671
-538
-844
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT 73 + + col0 FROM tab0
----
108
162
97
query I rowsort
SELECT - col2 * 44 FROM tab2 AS cor0
----
-1144
-1188
-1672
onlyif mysql # use DIV operator for integer division
query I rowsort label-127
SELECT col1 DIV + ( - cor0.col2 + - col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-127
SELECT col1 / + ( - cor0.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-128
SELECT + CAST( NULL AS SIGNED ) * col0 - - cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-128
SELECT + CAST ( NULL AS INTEGER ) * col0 - - cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + cor0.col1 * - 20 FROM tab0 AS cor0
----
-1720
-1820
-1940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * col2 + col0 col1 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-131
SELECT ALL + CAST( ( - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-131
SELECT ALL + CAST ( ( - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-132
SELECT tab1.col0 * + CAST( 59 + + col0 AS SIGNED ) AS col1 FROM tab1
----
11120
186
7872
skipif mysql # not compatible
query I rowsort label-132
SELECT tab1.col0 * + CAST ( 59 + + col0 AS INTEGER ) AS col1 FROM tab1
----
11120
186
7872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( - col1 ) * - col0 col0 FROM tab1
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-135
SELECT + col1 + ( col2 ) DIV + col1 + + col0 AS col2 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-135
SELECT + col1 + ( col2 ) / + col1 + + col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT 32 * - col1 * + tab1.col2 FROM tab1
----
-18240
-39936
-44928
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col0 FROM tab1
----
-79
-79
-79
query I rowsort
SELECT - cor1.col0 * ( cor0.col0 * - cor1.col1 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5dd6094be7d5cf3e3f1889cc4846fd53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 79 col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 26 * col2 col2 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT ALL - + col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT DISTINCT + - col1 + - col2 * col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-2
-62
skipif mysql # not compatible
query I rowsort label-142
SELECT DISTINCT + - col1 + - col2 * col0 / - col2 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - - 6 * col1 + 51 * cor0.col1 AS col2 FROM tab0 AS cor0
----
4902
5187
5529
query I rowsort
SELECT ALL - 91 + col0 AS col2 FROM tab2 AS cor0
----
-12
-13
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 + cor0.col2 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * + 0 * + 59 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - + ( col0 ) * + ( - 9 ) AS col0 FROM tab0 AS cor0
----
216
315
801
onlyif mysql # use DIV operator for integer division
query I rowsort label-150
SELECT ( col1 ) DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-150
SELECT ( col1 ) / - col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab2, tab1 AS cor0
----
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + tab1.col0 * + col2 col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - 81 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT ALL + cor1.col0 + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b9944e8264ba49a81db9322e4d2ec488
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - cor0.col0 + + ( col0 ) * col1 col2 FROM tab0 AS cor0
----
1200
2135
4895
query I rowsort
SELECT ALL - col1 + 29 FROM tab2 AS cor0
----
-2
-30
12
query I rowsort
SELECT ALL col2 + col0 - col0 * col0 * col2 FROM tab1 AS cor0
----
-233351
-429
-614224
query I rowsort
SELECT - col2 * - col0 - - col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - ( col1 ) * col0 - + ( + col0 ) FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - cor0.col0 + - tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 95b69fa3895950347d4d816fa8bef277
query I rowsort
SELECT + - col0 - 54 FROM tab2 AS cor0
----
-132
-133
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-162
SELECT DISTINCT + + CAST( - col1 AS SIGNED ) + - col0 + ( 77 ) FROM tab2 AS cor0
----
-19
-60
39
skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT + + CAST ( - col1 AS INTEGER ) + - col0 + ( 77 ) FROM tab2 AS cor0
----
-19
-60
39
query I rowsort
SELECT - col1 + col0 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT - + col2 * ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - tab0.col1 + col1 * + col2 AS col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT col1 - - 55 * col0 AS col2 FROM tab1
----
191
3530
4413
query I rowsort
SELECT DISTINCT col1 - + 33 FROM tab0 AS cor0
----
53
58
64
query I rowsort
SELECT + + ( 37 ) AS col2 FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT ALL - + col1 + - ( col1 ) FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT + ( + col0 ) * + col0 + col0 FROM tab1 AS cor0
----
12
4160
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * - col1 + col1 - col0 col1 FROM tab1 AS cor0
----
-1381
-594
-769
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-172
SELECT ALL + col1 - - col0 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + col1 - - col0 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + col2 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + cor0.col1 * - col2 + + col0 * - col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL - - cor0.col0 * - col1 + ( 93 * - col1 ) + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-12513
-12900
-24024
query I rowsort
SELECT ALL + + cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-177
SELECT ALL + 32 + col1 * + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
129
2870
7494
skipif mysql # not compatible
query I rowsort label-177
SELECT ALL + 32 + col1 * + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
129
2870
7494
query I rowsort
SELECT - - col2 * - 88 FROM tab0 AS cor0
----
-2904
-7216
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-179
SELECT + - col2 * - CAST( NULL AS SIGNED ) + + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-179
SELECT + - col2 * - CAST ( NULL AS INTEGER ) + + cor0.col0 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * + 71 AS col1 FROM tab0
----
1704
2485
6319
onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT col2 + cor0.col0 DIV col0 col0 FROM tab0 AS cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-181
SELECT col2 + cor0.col0 / col0 col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL 59 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT DISTINCT col2 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col1 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-185
SELECT - + CAST( 44 AS SIGNED ) + + col2 FROM tab1 cor0
----
10
13
52
skipif mysql # not compatible
query I rowsort label-185
SELECT - + CAST ( 44 AS INTEGER ) + + col2 FROM tab1 cor0
----
10
13
52
query I rowsort
SELECT 28 * col1 AS col0 FROM tab0 AS cor0
----
2408
2548
2716
query I rowsort
SELECT DISTINCT ( 30 ) FROM tab1 AS cor0
----
30
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col2 FROM tab0 cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-189
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-189
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * 66 AS col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT tab0.col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - tab2.col0 * - 35 + - col2 AS col1 FROM tab2
----
218
2704
2727
query I rowsort
SELECT col1 + - 6 AS col1 FROM tab2
----
11
25
53
query I rowsort
SELECT - col2 * + 6 AS col1 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT DISTINCT - ( cor1.col1 ) AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT - col1 - col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT col2 * - 72 - col2 AS col1 FROM tab0 AS cor0
----
-2409
-5986
-73
query I rowsort
SELECT - 96 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 85 + + col0 * col2 + 93 col0 FROM tab0 AS cor0
----
-344
-6425
-8117
query I rowsort
SELECT DISTINCT col2 * 77 FROM tab2 AS cor0
----
2002
2079
2926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col1 FROM tab2, tab1, tab1 AS cor0
----
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 * col2 + - col0 col0 FROM tab2
----
390
479
605
query I rowsort
SELECT col0 * - col1 + - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT + 8 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
74
query I rowsort
SELECT ALL + ( col0 ) + 42 * cor0.col1 + - col2 FROM tab0 AS cor0
----
3603
3829
4108
query I rowsort
SELECT DISTINCT + 75 * - col0 + 67 FROM tab2 AS cor0
----
-458
-5783
-5858
query I rowsort
SELECT ALL cor0.col2 * + col2 + + col1 AS col1 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 col2 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT 60 * col0 FROM tab2 cor0
----
420
4680
4740
query I rowsort
SELECT DISTINCT ( - col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT col0 * + tab2.col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col2 * + col2 * + ( - col1 ) + col2 FROM tab0
----
-611802
-93621
-96
query I rowsort
SELECT ALL + tab2.col2 * 54 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to fead6e319ba9b23c537dfbf264190f24
query I rowsort
SELECT DISTINCT + ( + col1 ) * col2 * 8 FROM tab2
----
12272
5168
6696
query I rowsort
SELECT 99 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT + + col0 * ( ( col2 ) ) AS col1 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( - 87 ) col1 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT ALL - col0 + col2 * + col0 + - col2 * + 84 FROM tab1 cor0
----
-1204
-4377
-464
query I rowsort
SELECT col1 + 29 AS col0 FROM tab0 AS cor0
----
115
120
126
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-221
SELECT DISTINCT + col2 - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT + col2 - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 + 13 AS col2 FROM tab2 AS cor0
----
-65
-66
6
query I rowsort
SELECT DISTINCT + col1 * col1 + col1 * col2 FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT - col0 + + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-87
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-225
SELECT - 70 * col2 DIV col0 FROM tab0 AS cor0
----
-2
-64
-96
skipif mysql # not compatible
query I rowsort label-225
SELECT - 70 * col2 / col0 FROM tab0 AS cor0
----
-2
-64
-96
query I rowsort
SELECT + - cor0.col0 + col2 AS col2 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-227
SELECT - + cor0.col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-227
SELECT - + cor0.col0 / - col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT col0 + 2 AS col0 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT ALL col1 + 78 + col2 AS col0 FROM tab0
----
176
197
251
query I rowsort
SELECT + 76 * col2 AS col2 FROM tab0 AS cor0
----
2508
6232
76
query I rowsort
SELECT ALL + cor0.col1 * col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL 18 * - 4 AS col1 FROM tab0
----
-72
-72
-72
query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-234
SELECT DISTINCT 59 DIV col1 AS col2 FROM tab2
----
1
3
skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT 59 / col1 AS col2 FROM tab2
----
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 col2 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-236
SELECT cor0.col2 * + CAST( NULL AS SIGNED ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-236
SELECT cor0.col2 * + CAST ( NULL AS INTEGER ) - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * - ( col1 * + col0 ) + - col0 + - col2 * - col2 FROM tab2 AS cor0
----
24196
272116
7449
query I rowsort
SELECT DISTINCT + + col2 * + ( col2 + col0 ) AS col1 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT ALL - + col0 * col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 FROM tab1 cor0
----
0
query I rowsort
SELECT col0 * col0 + - cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + ( + ( + col1 ) ) col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT cor0.col2 * col1 * col0 AS col0 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - cor0.col2 * ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col1 + 39 AS col1 FROM tab1 AS cor0
----
49
52
65
query I rowsort
SELECT + + ( col0 ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col1 + col0 - col0 * + col2 AS col0 FROM tab0
----
-7300
-854
-97
query I rowsort
SELECT ALL + cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - + 8 AS col0 FROM tab2 cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + ( cor0.col1 ) * + col2 col0 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT - 34 * + col1 + + col0 + + cor0.col1 FROM tab1 AS cor0
----
-266
-349
-855
query I rowsort
SELECT - 93 * col1 FROM tab2 AS cor0
----
-1581
-2883
-5487
onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT DISTINCT - col0 DIV + col0 AS col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-253
SELECT DISTINCT - col0 / + col0 AS col2 FROM tab1
----
-1
query I rowsort
SELECT col2 + + col1 * 98 * col0 FROM tab2
----
131652
21293
451022
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col2 FROM tab0
----
91
91
91
query I rowsort
SELECT ( - 47 ) + tab2.col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16b7a186a96e4ba05d1b78645a6d9b22
query I rowsort
SELECT - 72 AS col1 FROM tab0
----
-72
-72
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-258
SELECT col2 DIV col2 + + tab1.col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-258
SELECT col2 / col2 + + tab1.col1 FROM tab1
----
11
14
27
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + 91 + + 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 69 * + tab0.col2 col1 FROM tab0, tab1 AS cor0
----
2277
5658
69
query I rowsort
SELECT 91 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL - col2 + ( - col2 + col1 ) * - ( 62 ) FROM tab2 AS cor0
----
-2072
-275
1264
query I rowsort
SELECT ALL + col1 * - col1 * 46 + + col0 FROM tab1 cor0
----
-31093
-4536
-7694
query I rowsort
SELECT ALL cor0.col0 - - 58 * - col1 FROM tab1 AS cor0
----
-1505
-516
-674
query I rowsort
SELECT DISTINCT + - col1 * + 87 + col2 * - col0 + - col1 FROM tab2 AS cor0
----
-2917
-4498
-7220
query I rowsort
SELECT ALL + col1 + - 87 * + 98 FROM tab0 AS cor0
----
-8429
-8435
-8440
onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT DISTINCT + col2 DIV + col0 + + col0 AS col2 FROM tab1 cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT + col2 / + col0 + + col0 AS col2 FROM tab1 cor0
----
21
64
81
query I rowsort
SELECT DISTINCT + col1 * + 16 + + 88 * cor0.col1 FROM tab2 cor0
----
1768
3224
6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-270
SELECT col2 DIV col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-270
SELECT col2 / col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + 49 + - col2 AS col2 FROM tab0
----
-33
16
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-272
SELECT ALL + CAST( col0 AS SIGNED ) + + col0 + - col0 AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-272
SELECT ALL + CAST ( col0 AS INTEGER ) + + col0 + - col0 AS col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT col0 + + 45 DIV col2 col2 FROM tab0
----
25
80
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-273
SELECT col0 + + 45 / col2 col2 FROM tab0
----
25
80
89
query I rowsort
SELECT ALL + - col2 * ( + col0 ) + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 col2 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT - 61 + - col1 AS col1 FROM tab1
----
-71
-74
-87
query I rowsort
SELECT ALL - 91 + col2 * - 68 AS col0 FROM tab1 AS cor0
----
-3763
-3967
-6619
query I rowsort
SELECT ALL + col2 * - col2 + - ( - cor0.col1 ) * + col0 AS col0 FROM tab1 cor0
----
-2609
-2838
-8176
onlyif mysql # use DIV operator for integer division
query I rowsort label-279
SELECT ALL - col0 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-12
-6
-87
skipif mysql # not compatible
query I rowsort label-279
SELECT ALL - col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
-12
-6
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT ALL col0 + - col0 DIV + ( - col0 ) FROM tab2 cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-280
SELECT ALL col0 + - col0 / + ( - col0 ) FROM tab2 cor0
----
79
8
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-281
SELECT DISTINCT - col0 + + cor0.col1 DIV + col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-281
SELECT DISTINCT - col0 + + cor0.col1 / + col1 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT + col2 * + col1 * col0 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-283
SELECT DISTINCT ( col1 ) * CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-283
SELECT DISTINCT ( col1 ) * CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL col1 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT col2 * - 78 + col1 AS col1 FROM tab2
----
-1969
-2075
-2947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-287
SELECT - + cor0.col2 * - col0 + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
162
2002
2964
skipif mysql # not compatible
query I rowsort label-287
SELECT - + cor0.col2 * - col0 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + 27 + - col2 AS col1 FROM tab1 cor0
----
-27
-30
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-289
SELECT ALL - col0 * col1 DIV + col1 AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - col0 * col1 / + col1 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT 85 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 5e8deeabad7bbbaf313fcdcb4adc75eb
query I rowsort
SELECT ( cor0.col2 ) + + col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col0 * + col2 + - col2 * - col0 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT 84 * col0 AS col1 FROM tab0 cor0
----
2016
2940
7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-294
SELECT DISTINCT + col2 DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-294
SELECT DISTINCT + col2 / col1 AS col1 FROM tab1
----
2
5
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-295
SELECT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-296
SELECT 68 * - col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-296
SELECT 68 * - col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - 30 ) * - col2 FROM tab1
----
1620
1710
2880
query I rowsort
SELECT DISTINCT + tab2.col1 * col0 * + col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col1 + - col0 * - col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - col1 * - col0 + cor0.col1 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * 79 col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to aead1738986be95a418049c194fe1d46
query I rowsort
SELECT + 48 + - col2 FROM tab2
----
10
21
22
query I rowsort
SELECT + col2 * + col2 + + col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT + col0 * tab1.col2 + tab1.col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT col1 + col2 + 61 AS col0 FROM tab2
----
116
119
146
query I rowsort
SELECT - 24 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # use DIV operator for integer division
query I rowsort label-307
SELECT ALL - col1 DIV col1 + col0 * + 95 FROM tab0
----
2279
3324
8454
skipif mysql # not compatible
query I rowsort label-307
SELECT ALL - col1 / col1 + col0 * + 95 FROM tab0
----
2279
3324
8454
query I rowsort
SELECT ALL + col0 * - ( + col1 ) FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col0 * 76 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-197
4560
5252
query I rowsort
SELECT - + col1 + + ( + col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT + col1 + ( col1 ) * col2 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + col0 + ( + col0 ) + + col2 FROM tab0 AS cor0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 6 col1 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT DISTINCT col2 * ( + col1 ) AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 * + ( ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col1 + + 46 FROM tab2 AS cor0
----
-13
15
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-317
SELECT ALL CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-317
SELECT ALL CAST ( NULL AS REAL ) AS col0 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 58 ) col1 FROM tab1 AS cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT + 3 * col1 - + col2 AS col2 FROM tab0 AS cor0
----
191
225
290
query I rowsort
SELECT DISTINCT + 58 * 41 FROM tab2 AS cor0
----
2378
query I rowsort
SELECT - + col0 * - 85 + - col1 FROM tab1 AS cor0
----
229
5430
6787
onlyif mysql # use DIV operator for integer division
query I rowsort label-322
SELECT ALL - ( 10 ) * col2 + + col1 DIV col1 FROM tab2 AS cor0
----
-259
-269
-379
skipif mysql # not compatible
query I rowsort label-322
SELECT ALL - ( 10 ) * col2 + + col1 / col1 FROM tab2 AS cor0
----
-259
-269
-379
query I rowsort
SELECT col1 * + 68 FROM tab2
----
1156
2108
4012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 64 * - 77 col0 FROM tab2
----
152768
290752
83776
query I rowsort
SELECT - cor0.col1 * col0 + 3 AS col2 FROM tab1 AS cor0
----
-1037
-637
-75
query I rowsort
SELECT - - 92 FROM tab2 cor0
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-327
SELECT col2 DIV + 68 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-327
SELECT col2 / + 68 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 63 * + col2 FROM tab2 AS cor0
----
1638
1701
2394
query I rowsort
SELECT + ( ( col0 ) ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT - ( + col1 ) + + col0 AS col2 FROM tab0
----
-2
-62
query I rowsort
SELECT + - 83 AS col0 FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL - col2 * col0 + - cor0.col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT - ( + 23 ) FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL + ( - col2 ) + - col2 + 73 AS col1 FROM tab1 cor0
----
-119
-35
-41
query I rowsort
SELECT tab1.col1 AS col0 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-337
SELECT 44 DIV - col1 AS col2 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-337
SELECT 44 / - col1 AS col2 FROM tab2
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-338
SELECT DISTINCT - col1 * cor0.col1 DIV ( col2 ) - - col1 AS col1 FROM tab1 AS cor0
----
12
14
9
skipif mysql # not compatible
query I rowsort label-338
SELECT DISTINCT - col1 * cor0.col1 / ( col2 ) - - col1 AS col1 FROM tab1 AS cor0
----
12
14
9
query I rowsort
SELECT 47 * - col2 + + col1 * 10 FROM tab0 cor0
----
-2944
-691
923
onlyif mysql # use DIV operator for integer division
query I rowsort label-340
SELECT ALL cor0.col2 * cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-340
SELECT ALL cor0.col2 * cor0.col0 / - col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col1 + + col0 AS col0 FROM tab1 cor0
----
-36
-673
-89
query I rowsort
SELECT col2 * - col0 * + col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT 24 AS col1 FROM tab0 cor0
----
24
24
24
query I rowsort
SELECT - 59 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
37760
4602
61360
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT + col2 * + col0 + col0 DIV 51 FROM tab1 AS cor0
----
162
3649
7681
skipif mysql # not compatible
query I rowsort label-345
SELECT + col2 * + col0 + col0 / 51 FROM tab1 AS cor0
----
162
3649
7681
query I rowsort
SELECT + 25 + + col1 * - col0 + 38 AS col1 FROM tab0 AS cor0
----
-2001
-3332
-8036
query I rowsort
SELECT + col1 + col1 * 5 FROM tab1 AS cor0
----
156
60
78
query I rowsort
SELECT ALL col2 * tab0.col1 + col0 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT 78 - 74 AS col1 FROM tab2
----
4
4
4
query I rowsort
SELECT col1 * 16 + col0 AS col1 FROM tab0
----
1400
1545
1587
query I rowsort
SELECT ALL col0 * 26 FROM tab0
----
2314
624
910
query I rowsort
SELECT ( + 60 * tab2.col0 + - 86 ) AS col1 FROM tab2
----
334
4594
4654
query I rowsort
SELECT + ( + tab2.col0 * + col2 ) AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 94 - col2 * col0 AS col0 FROM tab0
----
-129
-7392
-886
onlyif mysql # use DIV operator for integer division
query I rowsort label-355
SELECT col2 * 35 + col1 DIV col0 AS col1 FROM tab2
----
1330
910
949
skipif mysql # not compatible
query I rowsort label-355
SELECT col2 * 35 + col1 / col0 AS col1 FROM tab2
----
1330
910
949
query I rowsort
SELECT DISTINCT - 19 + + col2 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT - ( - col1 ) + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT 68 + + col0 * col1 FROM tab0
----
2132
3463
8167
onlyif mysql # use DIV operator for integer division
query I rowsort label-359
SELECT DISTINCT - + col0 DIV - col2 + ( + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-6
16
51
skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT - + col0 / - col2 + ( + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-6
16
51
query I rowsort
SELECT ALL + 60 + col1 AS col0 FROM tab2 cor0
----
119
77
91
query I rowsort
SELECT + col1 - col1 * ( + col1 ) FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-362
SELECT DISTINCT - 63 + - col2 * CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-362
SELECT DISTINCT - 63 + - col2 * CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col0 + + col0 - - 61 * 84 AS col0 FROM tab2 cor0
----
5138
5280
5282
query I rowsort
SELECT DISTINCT + ( + tab1.col0 ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL + tab0.col0 * - col0 + - col2 * col1 FROM tab0
----
-1322
-15383
-3414
query I rowsort
SELECT DISTINCT - + 18 + col2 - - 71 AS col0 FROM tab0 AS cor0
----
135
54
86
query I rowsort
SELECT ALL + + col0 + col1 * + col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL col1 * col2 + - col1 + - col0 FROM tab2 AS cor0
----
1397
550
799
query I rowsort
SELECT DISTINCT + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT 90 FROM tab2 cor0
----
90
90
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-371
SELECT DISTINCT - col0 + col0 DIV - cor0.col2 + col1 FROM tab1 cor0
----
-55
-67
23
skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - col0 + col0 / - cor0.col2 + col1 FROM tab1 cor0
----
-55
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT ALL col1 + + 15 DIV col1 AS col1 FROM tab1
----
11
14
26
skipif mysql # not compatible
query I rowsort label-372
SELECT ALL col1 + + 15 / col1 AS col1 FROM tab1
----
11
14
26
query I rowsort
SELECT DISTINCT cor0.col1 * 54 AS col1 FROM tab2 AS cor0
----
1674
3186
918
query I rowsort
SELECT + - col0 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + - col2 + - cor0.col0 * + col0 AS col1 FROM tab2 AS cor0
----
-6110
-6279
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-376
SELECT - + col2 DIV + col1 + + col0 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-376
SELECT - + col2 / + col1 + + col0 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT - + col2 * cor0.col2 + ( + col0 ) FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-378
SELECT ALL + - col1 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-378
SELECT ALL + - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-379
SELECT - col1 + CAST( NULL AS DECIMAL ) * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-379
SELECT - col1 + CAST ( NULL AS REAL ) * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT - ( cor0.col2 ) + col0 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL + 37 * 20 FROM tab0 AS cor0
----
740
740
740
query I rowsort
SELECT ALL + col2 * col2 - + col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-384
SELECT ALL CAST( col0 AS SIGNED ) DIV col0 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-384
SELECT ALL CAST ( col0 AS INTEGER ) / col0 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - tab1.col1 + + cor0.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to a0891d923255f338145ac78ca8c0ccef
onlyif mysql # use DIV operator for integer division
query I rowsort label-386
SELECT - col0 DIV col1 + col1 FROM tab1 cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-386
SELECT - col0 / col1 + col1 FROM tab1 cor0
----
26
4
7
query I rowsort
SELECT ALL - - 38 * ( + col2 ) + 88 FROM tab0 AS cor0
----
126
1342
3204
query I rowsort
SELECT + col0 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col1 * col2 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT col0 * ( - col0 ) * ( + col1 ) FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + - 45 AS col1 FROM tab0 AS cor0
----
-45
-45
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-392
SELECT 32 DIV 77 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-392
SELECT 32 / 77 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 * 3 FROM tab2 cor0
----
-114
-78
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col1 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT DISTINCT - col2 * col1 + - col1 AS col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL tab1.col2 * - col1 + 6 FROM tab1
----
-1242
-1398
-564
query I rowsort
SELECT ALL - col0 + - col0 * + cor0.col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT + 79 * - 35 + - col1 AS col1 FROM tab1 AS cor0
----
-2775
-2778
-2791
query I rowsort
SELECT DISTINCT + col0 * col2 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 97 * col1 AS col1 FROM tab0 AS cor0
----
-8342
-8827
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-402
SELECT ALL ( 69 + col2 ) DIV - col2 FROM tab1
----
-1
-2
-2
skipif mysql # not compatible
query I rowsort label-402
SELECT ALL ( 69 + col2 ) / - col2 FROM tab1
----
-1
-2
-2
query I rowsort
SELECT - + col1 + col0 * + ( + col0 ) * + col0 FROM tab1 cor0
----
1
262134
511987
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 + col1 * col0 * - col0 FROM tab1
----
-208
-40950
-83187
query I rowsort
SELECT DISTINCT + col2 + + 49 FROM tab1
----
103
106
145
query I rowsort
SELECT col2 + + ( col2 ) + - col0 * - col1 FROM tab1
----
1232
186
754
query I rowsort
SELECT tab0.col1 + - col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT tab0.col1 + 28 FROM tab0
----
114
119
125
query I rowsort
SELECT col2 * + 86 AS col2 FROM tab1
----
4644
4902
8256
onlyif mysql # use DIV operator for integer division
query I rowsort label-411
SELECT ALL + col0 DIV + col1 col0 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-411
SELECT ALL + col0 / + col1 col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT col0 + col0 + + 97 FROM tab2 AS cor0
----
111
253
255
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-413
SELECT ALL CAST( - tab2.col2 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif mysql # not compatible
query I rowsort label-413
SELECT ALL CAST ( - tab2.col2 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL + + col2 + 93 FROM tab1 AS cor0
----
147
150
189
query I rowsort
SELECT - 73 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-416
SELECT col0 + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-416
SELECT col0 + + col2 / col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 31 col0 FROM tab0 AS cor0
----
2666
2821
3007
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab2 cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col2 * col1 col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + + col0 * - col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - - 92 + - col2 AS col2 FROM tab2 AS cor0
----
54
65
66
query I rowsort
SELECT ALL - - col1 * col2 + 92 + + 74 FROM tab2 AS cor0
----
1003
1700
812
query I rowsort
SELECT col2 * ( col1 ) AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + - col1 * + 78 AS col2 FROM tab2 AS cor0
----
-1326
-2418
-4602
query I rowsort
SELECT ALL + ( - ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + + col0 + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + + col0 * - cor0.col1 + + col2 * col0 + - col0 AS col2 FROM tab2 AS cor0
----
-2652
-35
1580
query I rowsort
SELECT col0 * + 76 AS col0 FROM tab0 AS cor0
----
1824
2660
6764
query I rowsort
SELECT - 79 * col0 AS col2 FROM tab1 cor0
----
-237
-5056
-6320
query I rowsort
SELECT + 84 + 97 * col0 + col2 FROM tab2
----
7676
7785
790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-431
SELECT - - cor0.col1 * + col1 * CAST( NULL AS DECIMAL ) + ( col2 + 74 ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-431
SELECT - - cor0.col1 * + col1 * CAST ( NULL AS REAL ) + ( col2 + 74 ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 22 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT col1 * col1 * col0 AS col0 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT + 93 DIV - tab1.col1 FROM tab1
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-434
SELECT + 93 / - tab1.col1 FROM tab1
----
-3
-7
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-435
SELECT DISTINCT - 40 + col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - 40 + col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - 69 + col1 * col2 FROM tab0
----
2769
28
7393
query I rowsort
SELECT ( + 65 ) * tab2.col1 + ( - col2 ) FROM tab2
----
1067
1988
3809
onlyif mysql # use DIV operator for integer division
query I rowsort label-438
SELECT col2 DIV 41 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-438
SELECT col2 / 41 FROM tab2
----
0
0
0
query I rowsort
SELECT - ( 87 ) * col2 + - 40 FROM tab1
----
-4738
-4999
-8392
query I rowsort
SELECT - - col0 + col2 + - col2 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT + 19 DIV + col1 - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-37
skipif mysql # not compatible
query I rowsort label-441
SELECT + 19 / + col1 - cor0.col2 FROM tab2 AS cor0
----
-26
-27
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - col2 + ( - col0 ) col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-443
SELECT - ( - col0 ) * + 53 + col1 DIV - col1 - + col2 col1 FROM tab1 AS cor0
----
104
3334
4143
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-443
SELECT - ( - col0 ) * + 53 + col1 / - col1 - + col2 col1 FROM tab1 AS cor0
----
104
3334
4143
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 5d85c5683e3ffd6d68920690d7302f7d
query I rowsort
SELECT ALL + 96 * - col0 AS col0 FROM tab1 AS cor0
----
-288
-6144
-7680
query I rowsort
SELECT ALL - 26 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
query I rowsort
SELECT - 86 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 9d2e1e8eda15b3b83dd7136dfc4f19af
query I rowsort
SELECT ALL col1 * 54 * - col2 FROM tab0 cor0
----
-153252
-402948
-5238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-449
SELECT ALL + cor0.col1 + CAST( + ( + cor0.col2 ) AS SIGNED ) * ( - col2 ) FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif mysql # not compatible
query I rowsort label-449
SELECT ALL + cor0.col1 + CAST ( + ( + cor0.col2 ) AS INTEGER ) * ( - col2 ) FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT ALL + 37 * - col1 AS col0 FROM tab1
----
-370
-481
-962
query I rowsort
SELECT DISTINCT col0 * col1 + + 79 AS col1 FROM tab2
----
1422
296
4681
query I rowsort
SELECT ALL + col1 * col1 + - col0 + + col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - + 65 FROM tab1 AS cor0
----
-65
-65
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT - ( + tab1.col2 ) * - col2 - + ( - 55 + col2 ) * - 81 AS col1 FROM tab1
----
12537
2835
3411
query I rowsort
SELECT DISTINCT 89 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
89
query I rowsort
SELECT ALL cor1.col1 FROM tab2, tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
onlyif mysql # use DIV operator for integer division
query I rowsort label-458
SELECT + 95 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-458
SELECT + 95 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT + - col1 + + col0 * + col2 FROM tab1 cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-460
SELECT - ( - col1 ) + + col0 DIV - col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-460
SELECT - ( - col1 ) + + col0 / - col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-461
SELECT ALL - col0 DIV + col1 + col2 col0 FROM tab1
----
51
54
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-461
SELECT ALL - col0 / + col1 + col2 col0 FROM tab1
----
51
54
90
query I rowsort
SELECT + col1 + + tab0.col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT - col2 - + col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT - col0 * col2 + col1 + col0 * - tab0.col1 FROM tab0 WHERE col1 <= NULL
----
query I rowsort
SELECT DISTINCT col2 + - col2 * tab2.col2 AS col2 FROM tab2
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 col1 FROM tab0
----
7396
8281
9409
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( + col1 + col1 + col0 )
----
query I rowsort
SELECT - col1 + - tab1.col1 FROM tab1 WHERE NOT ( NULL ) = ( + col0 )
----
query I rowsort
SELECT - tab0.col2 * + col0 * col0 + + col0 FROM tab0
----
-1190
-18984
-649433
onlyif mysql # use DIV operator for integer division
query I rowsort label-470
SELECT col2 DIV + tab2.col1 AS col0 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-470
SELECT col2 / + tab2.col1 AS col0 FROM tab2
----
0
0
2
query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN + col0 AND NULL
----
query I rowsort
SELECT col1 + - col1 * - tab1.col1 * - col2 AS col2 FROM tab1
----
-16211
-36478
-5690
onlyif mysql # use DIV operator for integer division
query I rowsort label-473
SELECT + col1 DIV tab2.col0 + col1 - + col2 * tab2.col1 AS col0 FROM tab2
----
-1475
-629
-802
skipif mysql # not compatible
query I rowsort label-473
SELECT + col1 / tab2.col0 + col1 - + col2 * tab2.col1 AS col0 FROM tab2
----
-1475
-629
-802
query I rowsort
SELECT ALL col0 + col1 FROM tab1 WHERE ( - col0 ) <= - col1 / + col0
----
74
93
query I rowsort
SELECT - col0 + - col1 + col2 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT DISTINCT - col2 + + col2 * col0 * + col0 AS col0 FROM tab1
----
233415
432
614304
query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col1 * col2 ) <> NULL
----
query I rowsort
SELECT col1 + col0 * - col0 + - col2 FROM tab2
----
-45
-6051
-6262
query I rowsort
SELECT - tab2.col1 * + col1 + - col1 + col2 * + col1 FROM tab2
----
-155
-2006
340
query I rowsort
SELECT DISTINCT + col2 - col2 AS col2 FROM tab1
----
0
query I rowsort
SELECT + col1 * col2 * col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - col1 * - tab1.col2 AS col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 * col1 - + cor0.col0 FROM tab2 AS cor0
----
1264
210
4524
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 = ( NULL )
----
query I rowsort
SELECT - col0 - col0 * - tab2.col2 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE ( col0 + - col1 ) NOT IN ( - col1 )
----
-54
-57
-96
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT ALL cor0.col1 * - cor0.col0 * col0 + - col0 FROM tab0 AS cor0
----
-118860
-49560
-720900
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 <= NULL
----
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 + + col1 AS col1 FROM tab2 AS cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 9 col1 FROM tab2 AS cor0
----
26
40
68
query I rowsort
SELECT ALL + + cor0.col1 * + ( 9 ) FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT DISTINCT + - col2 * - ( + col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - + cor0.col0 * - ( - ( + cor0.col2 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col0 * - 71 - - cor0.col2 * - col2 FROM tab0 AS cor0
----
-405
2484
615
query I rowsort
SELECT - col1 + + ( - col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - - col0 * + col1 + - 49 * col0 * 7 + 31 AS col0 FROM tab0 AS cor0
----
-22397
-6137
-8579
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-500
SELECT DISTINCT cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 - 65 AS col1 FROM tab1 AS cor0
----
-1
-62
15
query I rowsort
SELECT - col2 * + col2 + - ( col0 ) FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT + - 43 FROM tab1 AS cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT + + col1 + + col1 * col0 * 55 FROM tab1 cor0
----
35210
4316
57213
query I rowsort
SELECT - ( cor0.col1 ) * cor0.col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + 99 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-507
SELECT ALL - + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-507
SELECT ALL - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col1 * - 10 + 49 FROM tab1
----
-211
-51
-81
query I rowsort
SELECT ALL col2 * + col2 + col0 * tab1.col0 FROM tab1
----
15616
2925
7345
query I rowsort
SELECT ( - cor1.col1 ) AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - cor0.col2 + - col2 col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + 98 + cor0.col1 FROM tab1 AS cor0
----
108
111
124
query I rowsort
SELECT - tab2.col2 * - col1 * + col1 + + col2 * - col1 * + tab2.col2 + col0 AS col2 FROM tab2
----
-13487
3355
50700
query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab2 cor0
----
6
query I rowsort
SELECT col1 + col1 * + col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT ALL col0 - - col0 AS col2 FROM tab0
----
178
48
70
query I rowsort
SELECT + col1 * cor0.col0 + col1 + - col0 AS col2 FROM tab1 cor0
----
101
586
973
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col1 col0 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
26
27
38
query I rowsort
SELECT 26 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT ALL ( - col0 ) + col2 * 15 FROM tab1
----
1360
791
807
query I rowsort
SELECT DISTINCT 26 * + col2 * - 67 + 81 FROM tab2
----
-45211
-46953
-66115
query I rowsort
SELECT ALL col2 + col1 + col0 * + col2 AS col1 FROM tab0
----
133
7471
911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 57 * col0 col1 FROM tab1
----
197
3658
4573
query I rowsort
SELECT + ( ( col0 ) ) + + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT col1 * + 51 FROM tab1
----
1326
510
663
onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT DISTINCT + - col0 * ( cor0.col0 * col1 ) + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
-106096
-1518
-358955
skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + - col0 * ( cor0.col0 * col1 ) + col0 / col0 AS col2 FROM tab2 AS cor0
----
-106096
-1518
-358955
query I rowsort
SELECT ALL - 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539
query I rowsort
SELECT - + col0 + + ( col2 ) FROM tab0 cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-530
SELECT - CAST( - col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-530
SELECT - CAST ( - col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 94 FROM tab1, tab1 AS cor0
----
94
query I rowsort
SELECT 85 * + col1 FROM tab2 cor0
----
1445
2635
5015
query I rowsort
SELECT + 64 * - col1 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT DISTINCT ( col2 + col1 ) AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + + col2 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 4 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT ALL 75 + col2 * + col1 FROM tab1 AS cor0
----
1323
1479
645
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-538
SELECT + + col2 * cor0.col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-538
SELECT + + col2 * cor0.col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 5 AS col0 FROM tab1 AS cor0
----
-5
query I rowsort
SELECT ALL + ( col1 ) * + col1 + - col1 AS col2 FROM tab1 AS cor0
----
156
650
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + - col2 col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + - col2 + ( col1 + - col0 ) FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT + + col1 - 44 AS col2 FROM tab2 AS cor0
----
-13
-27
15
query I rowsort
SELECT ALL col1 - - col0 * - col2 FROM tab1 cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + cor0.col0 - 48 * col1 col2 FROM tab2 AS cor0
----
-1271
1770
527
onlyif mysql # use DIV operator for integer division
query I rowsort label-546
SELECT DISTINCT + col1 DIV 14 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT + col1 / 14 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT DISTINCT - - col1 + + ( 64 ) AS col1 FROM tab2 AS cor0
----
123
81
95
query I rowsort
SELECT col2 * + 84 AS col2 FROM tab1 AS cor0
----
4536
4788
8064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-549
SELECT ALL + col0 * + CAST( + 87 AS SIGNED ) + col0 * col0 - col0 FROM tab2 cor0
----
12792
13035
651
skipif mysql # not compatible
query I rowsort label-549
SELECT ALL + col0 * + CAST ( + 87 AS INTEGER ) + col0 * col0 - col0 FROM tab2 cor0
----
12792
13035
651
query I rowsort
SELECT + + col2 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + + 61 AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT + col1 * + 70 + cor0.col1 AS col1 FROM tab0 AS cor0
----
6106
6461
6887
onlyif mysql # use DIV operator for integer division
query I rowsort label-553
SELECT DISTINCT - + col1 * col2 DIV col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-553
SELECT DISTINCT - + col1 * col2 / col1 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col1 * col1 + col0 col0 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT + - col2 + col2 * col2 * col0 FROM tab2 AS cor0
----
114038
5076
52702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
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-560
SELECT + + col1 DIV + col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-560
SELECT + + col1 / + col2 + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - cor0.col2 * + col1 + col0 + - col1 FROM tab2 AS cor0
----
1553
708
813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 * col1 col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 + tab1.col1 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 69a03f002c4988a217a3743145c31549
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col1 FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 * col2 col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + cor0.col1 * col1 + col2 AS col0 FROM tab0 AS cor0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-568
SELECT + - col2 + col2 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-568
SELECT + - col2 + col2 / col0 AS col1 FROM tab0 AS cor0
----
-1
-32
-82
query I rowsort
SELECT DISTINCT ( + 54 ) * tab2.col2 AS col1 FROM tab2
----
1404
1458
2052
query I rowsort
SELECT DISTINCT - 90 FROM tab2
----
-90
query I rowsort
SELECT + - 18 + - col0 FROM tab2 cor0
----
-25
-96
-97
query I rowsort
SELECT - 48 * col1 AS col1 FROM tab1 cor0
----
-1248
-480
-624
query I rowsort
SELECT DISTINCT + + 82 * + col0 FROM tab2 AS cor0
----
574
6396
6478
query I rowsort
SELECT ALL - + ( - cor0.col2 ) * - ( - 10 ) FROM tab2 AS cor0
----
260
270
380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * + col1 col1 FROM tab0
----
7224
7644
8148
query I rowsort
SELECT DISTINCT - 3 FROM tab0, tab1, tab2 cor0
----
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + cor0.col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-579
SELECT + - col2 DIV - col0 + col2 * col2 FROM tab1 AS cor0
----
2934
3249
9217
skipif mysql # not compatible
query I rowsort label-579
SELECT + - col2 / - col0 + col2 * col2 FROM tab1 AS cor0
----
2934
3249
9217
query I rowsort
SELECT DISTINCT + - 68 FROM tab2 cor0
----
-68
query I rowsort
SELECT ALL 17 + col1 AS col1 FROM tab2
----
34
48
76
query I rowsort
SELECT - 89 + col2 * - 99 AS col2 FROM tab1
----
-5435
-5732
-9593
onlyif mysql # use DIV operator for integer division
query I rowsort label-583
SELECT ALL col0 + + col0 DIV 82 FROM tab0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-583
SELECT ALL col0 + + col0 / 82 FROM tab0
----
24
35
90
query I rowsort
SELECT ALL - col0 * + col2 + - col0 + + col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT col1 * 90 * - 30 AS col2 FROM tab2 AS cor0
----
-159300
-45900
-83700
query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT + - col0 * col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col2 + ( - 56 ) AS col1 FROM tab0 AS cor0
----
-23
-55
26
query I rowsort
SELECT cor0.col1 * 68 FROM tab2 AS cor0
----
1156
2108
4012
query I rowsort
SELECT + 81 + - col2 * + ( - col0 ) FROM tab1
----
243
3729
7761
query I rowsort
SELECT DISTINCT + col0 * + tab0.col2 + tab0.col2 AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL ( - col2 ) * + 47 * 44 + col0 FROM tab1
----
-111669
-117812
-198448
onlyif mysql # use DIV operator for integer division
query I rowsort label-594
SELECT DISTINCT + col2 * + col1 * 82 + - 43 DIV col0 FROM tab1
----
102336
115114
46740
skipif mysql # not compatible
query I rowsort label-594
SELECT DISTINCT + col2 * + col1 * 82 + - 43 / col0 FROM tab1
----
102336
115114
46740
query I rowsort
SELECT DISTINCT + 3 * - col1 + tab0.col1 AS col0 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - + col1 * + col2 + + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1140
-2496
-2808
query I rowsort
SELECT col1 * col2 + col1 AS col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL ( col1 ) * - col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 + col0 * + col0 col1 FROM tab1 AS cor0
----
37
4124
6428
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 93 * col2 + + cor0.col2 col1 FROM tab2 AS cor0
----
2444
2538
3572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-601
SELECT - - CAST( NULL AS DECIMAL ) - 4 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-601
SELECT - - CAST ( NULL AS REAL ) - 4 * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-602
SELECT ALL + CAST( col2 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-602
SELECT ALL + CAST ( col2 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-603
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - 23 AS col2 FROM tab2 cor0
----
-23
-23
-23
query I rowsort
SELECT ALL col0 * + cor0.col0 + - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT + ( ( cor0.col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - + 7 * col2 FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT - col1 - tab1.col1 AS col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT DISTINCT - col2 * - 76 FROM tab2
----
1976
2052
2888
query I rowsort
SELECT - col0 * - ( 4 ) - - col1 FROM tab0
----
182
237
447
query I rowsort
SELECT + 89 * col0 * + col0 FROM tab1
----
364544
569600
801
query I rowsort
SELECT col1 * ( + col2 ) * + 61 FROM tab1
----
34770
76128
85644
query I rowsort
SELECT DISTINCT + ( col1 ) - + col2 * - ( - 67 * + col1 ) FROM tab2
----
-102719
-43265
-56048
query I rowsort
SELECT col1 + - col2 + + col2 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + ( col2 ) * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - 49 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT ALL - ( ( + col0 ) ) * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 31 AS col1 FROM tab0
----
31
31
31
query I rowsort
SELECT col1 * 23 + col1 FROM tab0
----
2064
2184
2328
onlyif mysql # use DIV operator for integer division
query I rowsort label-620
SELECT ALL + col2 DIV col0 AS col1 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-620
SELECT ALL + col2 / col0 AS col1 FROM tab1 cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-621
SELECT 18 * + col2 + + ( 80 ) DIV + col1 FROM tab0 cor0
----
1476
18
594
skipif mysql # not compatible
query I rowsort label-621
SELECT 18 * + col2 + + ( 80 ) / + col1 FROM tab0 cor0
----
1476
18
594
query I rowsort
SELECT ALL - - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + + col1 * col2 + cor0.col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL 32 * + col2 FROM tab2
----
1216
832
864
query I rowsort
SELECT - - col0 * col1 + - col0 + 37 FROM tab1 AS cor0
----
112
613
997
onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT col2 + col2 DIV col1 col1 FROM tab1 AS cor0
----
103
56
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-626
SELECT col2 + col2 / col1 col1 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + ( col1 ) FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col2 * + col0 + + ( 4 ) - + col2 FROM tab1 AS cor0
----
112
3595
7588
query I rowsort
SELECT + ( + col0 ) * 56 + + 82 FROM tab2 AS cor0
----
4450
4506
474
query I rowsort
SELECT col0 + - col2 - + col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-631
SELECT - col1 * ( 32 ) + col0 DIV col1 AS col0 FROM tab1
----
-314
-410
-832
skipif mysql # not compatible
query I rowsort label-631
SELECT - col1 * ( 32 ) + col0 / col1 AS col0 FROM tab1
----
-314
-410
-832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab2, tab1 AS cor0
----
-54
query I rowsort
SELECT DISTINCT + cor0.col0 + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - col1 * col0 - - ( - col1 ) * col1 AS col2 FROM tab2 cor0
----
-1178
-1632
-8083
query I rowsort
SELECT DISTINCT + cor0.col0 + 9 * 67 FROM tab0 AS cor0
----
627
638
692
query I rowsort
SELECT col1 + + 5 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
166
189
207
onlyif mysql # use DIV operator for integer division
query I rowsort label-637
SELECT ALL - col1 DIV - ( + col0 * col1 ) + col0 AS col0 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-637
SELECT ALL - col1 / - ( + col0 * col1 ) + col0 AS col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col2 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-639
SELECT DISTINCT - col0 + + 49 DIV 62 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT - col0 + + 49 / 62 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 + + 73 AS col1 FROM tab0 AS cor0
----
159
164
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-641
SELECT ALL + col1 DIV + 88 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + col1 / + 88 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL - - ( 14 ) + col2 + cor0.col1 FROM tab0 AS cor0
----
112
133
187
onlyif mysql # use DIV operator for integer division
query I rowsort label-644
SELECT DISTINCT + col0 DIV 40 - - col0 * + 7 FROM tab0 AS cor0
----
168
245
625
skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT + col0 / 40 - - col0 * + 7 FROM tab0 AS cor0
----
168
245
625
query I rowsort
SELECT DISTINCT ( + col2 ) + + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT ( col2 ) - + col1 AS col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-647
SELECT ALL + - cor0.col1 DIV + cor0.col1 - + col0 * - col1 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-647
SELECT ALL + - cor0.col1 / + cor0.col1 - + col0 * - col1 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + + cor0.col1 * - cor0.col0 + col0 * col2 FROM tab1 AS cor0
----
14320
246
6656
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 * + col0 + col0 col1 FROM tab0 AS cor0
----
-105
-267
-72
query I rowsort
SELECT ALL - col1 + ( - col0 ) + - col0 * col0 AS col2 FROM tab2 cor0
----
-6221
-6337
-87
query I rowsort
SELECT + col0 * - col0 * col1 - cor0.col0 FROM tab2 AS cor0
----
-106176
-1526
-359034
query I rowsort
SELECT + col1 * - cor0.col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-654
SELECT ALL - - CAST( - col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-654
SELECT ALL - - CAST ( - col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 84 * 44 AS col2 FROM tab2 cor0
----
3696
3696
3696
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-656
SELECT ALL CAST( NULL AS DECIMAL ) + 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-656
SELECT ALL CAST ( NULL AS REAL ) + 49 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 19 + cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6e9fb08c3c4687fb8275d2d4415b0b95
query I rowsort
SELECT + col1 + 87 FROM tab0
----
173
178
184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 - + 63 col0 FROM tab1
----
-86
-9
4
query I rowsort
SELECT + col2 * - ( - col2 ) + - col1 * col0 AS col0 FROM tab2 AS cor0
----
-3926
101
512
query I rowsort
SELECT - cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col2 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT 77 + + cor0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 94d2dae585442d7abe5559662f345f1a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-664
SELECT ALL + CAST( col2 + col1 AS SIGNED ) FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-664
SELECT ALL + CAST ( col2 + col1 AS INTEGER ) FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - ( + tab2.col1 ) * - 22 AS col0 FROM tab2
----
1298
374
682
onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT ALL col0 * col0 DIV col1 FROM tab2
----
1
103
367
skipif mysql # not compatible
query I rowsort label-666
SELECT ALL col0 * col0 / col1 FROM tab2
----
1
103
367
query I rowsort
SELECT ALL - + 96 AS col1 FROM tab2 AS cor0
----
-96
-96
-96
query I rowsort
SELECT + - 78 AS col1 FROM tab1 AS cor0
----
-78
-78
-78
query I rowsort
SELECT 83 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT + ( col2 * + tab1.col2 ) AS col2 FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-671
SELECT DISTINCT + + col1 + - col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT + + col1 + - col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT + 84 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT 43 FROM tab0, tab2 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT 11 FROM tab1, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT ALL - col1 + + 10 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT ALL + - col0 * + cor0.col2 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ( - col1 ) + tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 * + col2 + + col2 + + col2 AS col1 FROM tab2
----
1520
728
783
skipif mysql # not compatible
query I rowsort
SELECT ALL col0 * - tab2.col1 + col2 * - CAST ( - col1 * + col2 AS REAL ) FROM tab2
----
22382
23205
35282
query I rowsort
SELECT ALL - cor0.col0 * 2 + - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to da6e194609a1f3ecde83b42530489ce6
query I rowsort
SELECT - col0 + 21 AS col1 FROM tab0 cor0
----
-14
-3
-68
query I rowsort
SELECT ( - col2 ) * - col0 AS col1 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-683
SELECT ALL - col2 + col1 DIV col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-683
SELECT ALL - col2 + col1 / col2 col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 21 + col2 * ( col0 ) FROM tab0 cor0
----
56
7319
813
query I rowsort
SELECT DISTINCT - col0 * col2 + - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - + col0 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + - col1 - col0 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + 65 + - col0 AS col1 FROM tab1 AS cor0
----
-15
1
62
query I rowsort
SELECT + ( cor0.col0 ) + ( col1 + - col2 ) * col1 FROM tab0 cor0
----
4582
908
9347
query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab0, tab0 AS cor0 WHERE NULL <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + col1 col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 col1 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL tab2.col2 * + col2 + 36 * + tab2.col2 AS col2 FROM tab2
----
1612
1701
2812
query I rowsort
SELECT ALL tab2.col0 * - 13 + col0 * + col2 FROM tab2
----
1014
1975
98
query I rowsort
SELECT ( - 48 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - + col1 * col2 col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT - col0 - + cor0.col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT col2 * - ( col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + cor0.col0 - - cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col2 - + 6 * col1 FROM tab1 AS cor0
----
-102
-3
18
query I rowsort
SELECT ALL - + cor0.col0 * + 9 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1670
-18193
-27001
query I rowsort
SELECT ALL - + col1 + ( + col1 * + col1 ) FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL col2 * + col1 - cor0.col2 * 10 AS col1 FROM tab0 AS cor0
----
2508
6642
87
query I rowsort
SELECT + ( - col0 ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + ( + 78 ) FROM tab2 AS cor0
----
78
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-708
SELECT ALL - - col2 * 64 DIV - col0 AS col1 FROM tab2 cor0
----
-21
-246
-30
skipif mysql # not compatible
query I rowsort label-708
SELECT ALL - - col2 * 64 / - col0 AS col1 FROM tab2 cor0
----
-21
-246
-30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-709
SELECT - + CAST( NULL AS DECIMAL ) * - col2 / col1 - col0 / - 23 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-709
SELECT - + CAST ( NULL AS REAL ) * - col2 / col1 - col0 / - 23 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-710
SELECT CAST( - col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-710
SELECT CAST ( - col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT DISTINCT + cor0.col0 DIV + col0 + col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + cor0.col0 / + col0 + col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT + ( - col2 ) + col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * cor0.col1 - col2 * - 2 AS col1 FROM tab0 AS cor0
----
-2772
-7298
-95
query I rowsort
SELECT col2 + + ( cor0.col1 + 56 ) * + 25 FROM tab2 AS cor0
----
1863
2202
2901
query I rowsort
SELECT + + cor0.col2 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-716
SELECT ALL - CAST( NULL AS SIGNED ) - - col1 * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-716
SELECT ALL - CAST ( NULL AS INTEGER ) - - col1 * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * - 19 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT DISTINCT - col2 - col2 * - col1 FROM tab1
----
1152
1350
513
query I rowsort
SELECT - col1 * col2 * 78 AS col1 FROM tab1 AS cor0
----
-109512
-44460
-97344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-720
SELECT DISTINCT - + col2 + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT - + col2 + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 * - col0 * - col2 FROM tab2 cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * col0 col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + 60 * col1 AS col2 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT + cor1.col2 * + 87 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d4b10b061c552fb03bd97a44401b3b33
query I rowsort
SELECT ALL col0 * col1 * - col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - + ( + col1 ) + - ( + col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT - + 49 + - col0 FROM tab0 cor0
----
-138
-73
-84
query I rowsort
SELECT ALL + 99 + cor0.col0 AS col2 FROM tab1 cor0
----
102
163
179
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col1 col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT cor0.col0 + 94 AS col2 FROM tab0 AS cor0
----
118
129
183
query I rowsort
SELECT ALL - + col0 * + 17 * + col2 FROM tab2 AS cor0
----
-3213
-34476
-51034
query I rowsort
SELECT ALL 71 AS col0 FROM tab2
----
71
71
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-734
SELECT DISTINCT - col1 DIV col0 + 39 + - col2 * 21 DIV ( col2 ) AS col2 FROM tab1 AS cor0
----
10
18
skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT - col1 / col0 + 39 + - col2 * 21 / ( col2 ) AS col2 FROM tab1 AS cor0
----
10
18
query I rowsort
SELECT ALL tab0.col2 * + tab0.col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ( col2 ) + - ( + col1 ) FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-737
SELECT DISTINCT - tab2.col2 DIV + tab2.col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT - tab2.col2 / + tab2.col1 FROM tab2
----
-2
0
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col2 FROM tab0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-739
SELECT + col1 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-739
SELECT + col1 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-740
SELECT ALL - + col0 + col0 DIV + col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-740
SELECT ALL - + col0 + col0 / + col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * cor0.col2 col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + col1 * + 1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - + col2 * 1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT col2 * col2 + + col1 AS col0 FROM tab1
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 33 ) * col1 + col0 * - 68 * tab2.col1 col2 FROM tab2
----
-13733
-310989
-90763
query I rowsort
SELECT 81 * + tab2.col0 AS col2 FROM tab2
----
567
6318
6399
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT - ( + col0 ) * + col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - - col2 + - col1 * col0 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-750
SELECT - - col0 * col2 + cor0.col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-750
SELECT - - col0 * col2 + cor0.col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 69 + - ( + col0 ) * ( + col2 ) col1 FROM tab1 cor0
----
-3579
-7611
-93
query I rowsort
SELECT ALL + 97 AS col0 FROM tab0
----
97
97
97
query I rowsort
SELECT ALL 93 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL + + 82 + col2 FROM tab0 AS cor0
----
115
164
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-755
SELECT - 3 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-755
SELECT - 3 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 9be0dab92dd50faf37ee99ac8db7c57d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-757
SELECT - CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-757
SELECT - CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-758
SELECT 62 * 79 DIV col1 FROM tab1 AS cor0
----
188
376
489
skipif mysql # not compatible
query I rowsort label-758
SELECT 62 * 79 / col1 FROM tab1 AS cor0
----
188
376
489
query I rowsort
SELECT col1 * 24 AS col2 FROM tab2 cor0
----
1416
408
744
onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT cor0.col1 + col1 * col2 DIV col0 FROM tab1 cor0
----
18
28
494
skipif mysql # not compatible
query I rowsort label-760
SELECT cor0.col1 + col1 * col2 / col0 FROM tab1 cor0
----
18
28
494
query I rowsort
SELECT col0 + - 97 * col1 AS col1 FROM tab2 AS cor0
----
-1570
-3000
-5645
onlyif mysql # use DIV operator for integer division
query I rowsort label-762
SELECT col0 DIV ( - col1 ) FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-762
SELECT col0 / ( - col1 ) FROM tab1 cor0
----
-6
-6
0
query I rowsort
SELECT DISTINCT - ( - col0 ) + + col0 * col0 * col0 FROM tab1
----
262208
30
512080
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT ALL tab1.col2 DIV - col1 AS col0 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-764
SELECT ALL tab1.col2 / - col1 AS col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ( ( + cor0.col0 ) ) + 22 * - 95 FROM tab2 AS cor0
----
-2011
-2012
-2083
query I rowsort
SELECT ALL + col2 * - 8 FROM tab2
----
-208
-216
-304
query I rowsort
SELECT ALL - col1 * + 36 FROM tab2 cor0
----
-1116
-2124
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-768
SELECT DISTINCT + + col0 DIV + 66 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT + + col0 / + 66 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL - 51 * col1 AS col1 FROM tab2 AS cor0
----
-1581
-3009
-867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-770
SELECT + CAST( NULL AS SIGNED ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-770
SELECT + CAST ( NULL AS INTEGER ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 98 * col1 AS col1 FROM tab2 AS cor0
----
1666
3038
5782
onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT ALL col2 DIV - 45 AS col0 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-772
SELECT ALL col2 / - 45 AS col0 FROM tab1
----
-1
-1
-2
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT + + cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-775
SELECT - 89 + col2 DIV col1 FROM tab1
----
-82
-84
-87
skipif mysql # not compatible
query I rowsort label-775
SELECT - 89 + col2 / col1 FROM tab1
----
-82
-84
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-776
SELECT - col1 * - ( + col2 + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-776
SELECT - col1 * - ( + col2 + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 75 * + col1 + + tab0.col2 * col1 * tab0.col0 AS col0 FROM tab0
----
10670
670943
74562
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col1 ) * tab1.col1 col0 FROM tab1
----
164
249
679
query I rowsort
SELECT DISTINCT cor0.col0 + - cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + ( + col2 ) * 41 * 29 FROM tab2
----
30914
32103
45182
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab0, tab2, tab1 cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 49 col2 FROM tab0
----
49
49
49
query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab1, tab1 cor0, tab0 AS cor1
----
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT col2 * col2 DIV 66 FROM tab0
----
0
101
16
skipif mysql # not compatible
query I rowsort label-784
SELECT col2 * col2 / 66 FROM tab0
----
0
101
16
query I rowsort
SELECT - 90 * + tab2.col0 FROM tab2
----
-630
-7020
-7110
query I rowsort
SELECT - ( col0 ) * - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - col1 * ( 30 ) + col1 FROM tab0 AS cor0
----
-2494
-2639
-2813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col1 * col0 col0 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-789
SELECT DISTINCT - col0 + CAST( + col0 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
skipif mysql # not compatible
query I rowsort label-789
SELECT DISTINCT - col0 + CAST ( + col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
42
6006
6162
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 + - CAST ( - col2 AS REAL ) FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + 44 col2 FROM tab1 AS cor0
----
-41
20
36
query I rowsort
SELECT ALL + col0 + 75 * + col2 AS col0 FROM tab1 AS cor0
----
4053
4339
7280
query I rowsort
SELECT + col0 + tab1.col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT + col0 - - col1 AS col2 FROM tab2
----
137
38
96
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 + - col2 <> ( NULL )
----
query I rowsort
SELECT DISTINCT + tab1.col2 * + tab1.col0 * col0 AS col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT - col0 * + col1 * - col2 FROM tab0
----
3395
664118
68112
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + col1 NOT IN ( - col0 - col1 )
----
query I rowsort
SELECT DISTINCT - col2 + + col1 + tab0.col2 * + col2 FROM tab0
----
1142
6733
97
query I rowsort
SELECT col1 * + col2 * - col0 AS col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + col2 * tab1.col1 AS col0 FROM tab1
----
1248
1404
570
query III rowsort
SELECT * FROM tab0 WHERE col0 * col2 + col1 + col0 IN ( col0 )
----
query I rowsort
SELECT ALL - col1 * col0 * tab1.col1 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-804
SELECT DISTINCT + col2 + col0 + col0 DIV + col1 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-804
SELECT DISTINCT + col2 + col0 + col0 / + col1 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - col0 * + col2 * tab1.col1 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
query I rowsort
SELECT ALL + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-808
SELECT ALL - col0 * col0 DIV col0 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif mysql # not compatible
query I rowsort label-808
SELECT ALL - col0 * col0 / col0 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + + cor0.col1 * col2 col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + col1 col0 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT col1 + col1 * + tab1.col2 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL col1 * - tab1.col1 + - col1 * - col2 * col1 FROM tab1
----
16055
35828
5600
query I rowsort
SELECT ALL - col0 * - col2 + - col0 * col0 FROM tab2
----
-3239
-4056
140
query I rowsort
SELECT + col2 * + col2 + tab0.col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - col1 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT col1 * - col0 * col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + col2 + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 * + col1 col2 FROM tab2 AS cor0
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + col1 * col2 + + col2 col1 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT col1 + + col0 * - col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL + - cor0.col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-822
SELECT DISTINCT + col1 * - col1 + - col2 DIV col0 FROM tab1 cor0
----
-100
-170
-694
skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT + col1 * - col1 + - col2 / col0 FROM tab1 cor0
----
-100
-170
-694
query I rowsort
SELECT ALL + - col0 + col2 * col1 * col1 + - col1 * - col0 AS col1 FROM tab2 AS cor0
----
12246
26157
95030
query I rowsort
SELECT ALL - col2 * col0 + + col1 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT + col0 * col2 * + col2 - col1 FROM tab1
----
207926
737267
8722
query I rowsort
SELECT ALL col0 + col2 * + col0 - col0 * col2 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - col0 - col2 FROM tab1 cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-828
SELECT cor0.col1 DIV - col0 + col2 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-828
SELECT cor0.col1 / - col0 + col2 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT ALL + col1 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + - 67 AS col0 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT DISTINCT + 5 + col1 AS col2 FROM tab2 AS cor0
----
22
36
64
query I rowsort
SELECT + cor0.col1 * + cor0.col1 * col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT col1 + 21 FROM tab0 cor0
----
107
112
118
query I rowsort
SELECT DISTINCT + 98 * + 23 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
2254
query I rowsort
SELECT - tab1.col2 + - col2 AS col0 FROM tab1
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-836
SELECT ALL - tab1.col1 * col1 DIV + col2 AS col2 FROM tab1
----
-1
-1
-12
skipif mysql # not compatible
query I rowsort label-836
SELECT ALL - tab1.col1 * col1 / + col2 AS col2 FROM tab1
----
-1
-1
-12
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) <= + col2
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) BETWEEN - col2 + - col0 / col0 AND + col1 / col0
----
35
97
1
query I rowsort
SELECT ALL col0 * - col0 + - tab0.col1 + col0 AS col1 FROM tab0
----
-1287
-638
-7923
query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * col0 + + col1 + + col1 * col2 IN ( tab1.col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT - col2 * col1 AS col0 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-842
SELECT ALL col2 + col0 + + col0 DIV col1 AS col2 FROM tab1
----
127
182
57
skipif mysql # not compatible
query I rowsort label-842
SELECT ALL col2 + col0 + + col0 / col1 AS col2 FROM tab1
----
127
182
57
query I rowsort
SELECT + col1 * + col1 * col0 AS col2 FROM tab2
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT ALL - col1 * col2 DIV - col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - col1 * col2 / - col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL tab2.col2 + + col2 + col2 * + col1 FROM tab2
----
1586
722
891
query I rowsort
SELECT - col2 + tab1.col0 AS col2 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT DISTINCT - col2 DIV - col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-847
SELECT DISTINCT - col2 / - col0 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * tab2.col0 + + col1 + - tab2.col1 col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col0 + tab1.col1 - + col0 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT + - cor0.col1 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT col2 * tab0.col2 * col1 FROM tab0
----
611884
93654
97
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + col2 BETWEEN ( + col1 ) AND NULL
----
query I rowsort
SELECT ALL col0 * + col2 + + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT col0 + - col1 * col0 AS col2 FROM tab1 WHERE NOT col2 = ( col2 + col1 )
----
-576
-75
-960
query I rowsort
SELECT - col1 * col0 * + col2 + tab2.col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col0 - + tab1.col1 AS col0 FROM tab1
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 - + col1 col0 FROM tab2
----
1427
617
698
query I rowsort
SELECT ALL tab1.col1 * - col1 * tab1.col2 - - tab1.col1 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT + ( col1 + 27 ) * col2 FROM tab2
----
1566
1672
2236
query I rowsort
SELECT - col1 * col0 * 93 FROM tab1
----
-59520
-7254
-96720
query I rowsort
SELECT DISTINCT - col2 + - 58 * col0 + - col1 FROM tab2 cor0
----
-4609
-4637
-464
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - ( ( + col0 ) ) * col2 col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT + 7 * col2 AS col1 FROM tab1
----
378
399
672
query I rowsort
SELECT - + col2 * ( + 40 ) AS col0 FROM tab1 AS cor0
----
-2160
-2280
-3840
query I rowsort
SELECT - col2 + + 23 AS col1 FROM tab1 AS cor0
----
-31
-34
-73
query I rowsort
SELECT DISTINCT - col2 + - col2 * col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT col0 - + col1 * 11 FROM tab0
----
-1032
-912
-922
query I rowsort
SELECT ALL 69 AS col0 FROM tab0
----
69
69
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-870
SELECT col2 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-870
SELECT col2 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - col2 + ( col0 ) + col1 AS col1 FROM tab2 AS cor0
----
11
111
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col1 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-873
SELECT + - col2 DIV col0 + + col0 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-45
-6006
-6162
skipif mysql # not compatible
query I rowsort label-873
SELECT + - col2 / col0 + + col0 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-45
-6006
-6162
query I rowsort
SELECT + col2 + 50 AS col0 FROM tab0 AS cor0
----
132
51
83
query I rowsort
SELECT + + cor0.col1 * col0 - col0 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT + col0 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT col0 - - col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT 31 - - col2 AS col2 FROM tab1 cor0
----
127
85
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-879
SELECT + + ( col1 ) * col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-879
SELECT + + ( col1 ) * col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-880
SELECT - 84 DIV + col2 + col1 * 75 FROM tab1 AS cor0
----
1949
749
975
skipif mysql # not compatible
query I rowsort label-880
SELECT - 84 / + col2 + col1 * 75 FROM tab1 AS cor0
----
1949
749
975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 - col1 col0 FROM tab1 cor0
----
-103
-87
-90
query I rowsort
SELECT + 17 + cor0.col1 FROM tab1 AS cor0
----
27
30
43
query I rowsort
SELECT ALL - + col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col2 * + 65 + - tab0.col2 FROM tab0
----
-2178
-5412
-66
query I rowsort
SELECT - col2 * - col0 + + col0 * - cor0.col1 + col1 AS col1 FROM tab2 cor0
----
-2515
1676
3
query I rowsort
SELECT col0 * - col1 + col1 + col2 * - tab2.col2 * col0 AS col1 FROM tab2
----
-115402
-5289
-57271
query I rowsort
SELECT ALL col1 + + col2 * + cor0.col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-888
SELECT ALL + - col2 DIV + cor0.col0 - col1 FROM tab1 cor0
----
-10
-14
-44
skipif mysql # not compatible
query I rowsort label-888
SELECT ALL + - col2 / + cor0.col0 - col1 FROM tab1 cor0
----
-10
-14
-44
query I rowsort
SELECT 2 * col1 * + col2 AS col2 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT + col0 * col0 * - col0 - col2 AS col2 FROM tab0 AS cor0
----
-13857
-42876
-705051
query I rowsort
SELECT DISTINCT - 53 * col2 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT - col2 - + col2 * + col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT 37 + cor0.col0 + col0 FROM tab2 cor0
----
193
195
51
query I rowsort
SELECT ALL 30 * - col2 AS col2 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT col1 * col2 - + col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL + - ( - col1 ) * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 90 + col1 * col2 FROM tab0 AS cor0
----
187
2928
7552
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-164
-2046
-62
query I rowsort
SELECT DISTINCT + + cor0.col1 + col2 * + col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
131
7307
845
query I rowsort
SELECT - ( + col1 ) * col2 * - col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL col2 - + col0 * + col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL ( 50 ) * cor0.col1 + col1 FROM tab0 cor0
----
4386
4641
4947
onlyif mysql # use DIV operator for integer division
query I rowsort label-903
SELECT + 62 DIV col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-903
SELECT + 62 / col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT ALL - 58 * 86 FROM tab2 AS cor0
----
-4988
-4988
-4988
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col0 AS REAL ) * - col2 * - col0 FROM tab2 AS cor0
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor2.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
3
64
80
query I rowsort
SELECT ( - tab0.col1 * + col2 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT 9 * - col0 + col1 AS col0 FROM tab0
----
-130
-218
-710
onlyif mysql # use DIV operator for integer division
query I rowsort label-909
SELECT + col0 + - col1 DIV col2 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-909
SELECT + col0 + - col1 / col2 AS col1 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-910
SELECT DISTINCT - CAST( - 77 AS SIGNED ) DIV + col1 AS col2 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT - CAST ( - 77 AS INTEGER ) / + col1 AS col2 FROM tab2
----
1
2
4
query I rowsort
SELECT ( + tab0.col0 ) + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - 94 * - 78 AS col0 FROM tab2
----
7332
7332
7332
query I rowsort
SELECT 54 * 9 AS col0 FROM tab0
----
486
486
486
query I rowsort
SELECT DISTINCT ( 11 ) * col1 AS col1 FROM tab0
----
1001
1067
946
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-915
SELECT ALL CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-915
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 77 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-918
SELECT ALL - + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-918
SELECT ALL - + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-919
SELECT DISTINCT - + ( col2 ) * + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-919
SELECT DISTINCT - + ( col2 ) * + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT + CAST( 46 AS SIGNED ) DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-920
SELECT + CAST ( 46 AS INTEGER ) / - col1 AS col0 FROM tab2 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL + col1 * 62 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT - col0 * + 32 * col1 FROM tab2 AS cor0
----
-147264
-42976
-6944
query I rowsort
SELECT DISTINCT - + 6 + 19 FROM tab0 AS cor0
----
13
query I rowsort
SELECT - - 7 * + col2 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT DISTINCT - 60 * - col2 AS col2 FROM tab2 AS cor0
----
1560
1620
2280
onlyif mysql # use DIV operator for integer division
query I rowsort label-926
SELECT DISTINCT col0 * + 81 + col2 DIV - col1 + + 6 AS col2 FROM tab1
----
247
5185
6479
skipif mysql # not compatible
query I rowsort label-926
SELECT DISTINCT col0 * + 81 + col2 / - col1 + + 6 AS col2 FROM tab1
----
247
5185
6479
query I rowsort
SELECT cor0.col1 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col1 * + 27 AS col2 FROM tab1
----
-270
-351
-702
query I rowsort
SELECT cor0.col1 - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c1eca5ea8dadf5efbc400ae6094b52e3
query I rowsort
SELECT col2 + - 81 FROM tab2
----
-43
-54
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col1 col2 FROM tab0, tab0 cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT DISTINCT tab0.col0 * col1 DIV col0 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT tab0.col0 * col1 / col0 AS col0 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-934
SELECT DISTINCT col0 DIV tab0.col1 - ( col0 ) * col0 FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT col0 / tab0.col1 - ( col0 ) * col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col0 - + col0 * - col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL 43 - col2 FROM tab0
----
-39
10
42
query I rowsort
SELECT ALL 95 * col2 - col1 AS col1 FROM tab0
----
-2
3049
7699
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab
onlyif mysql # use DIV operator for integer division
query I rowsort label-939
SELECT DISTINCT col0 DIV 82 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-939
SELECT DISTINCT col0 / 82 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + + 27 * + col1 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT ALL col1 * - ( - col0 + col0 * col1 ) FROM tab0 AS cor0
----
-175440
-325920
-728910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab2.col0 + ( + ( - col0 ) * - 41 ) col2 FROM tab2
----
321
3302
3356
onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT - 91 DIV col2 FROM tab0
----
-1
-2
-91
skipif mysql # not compatible
query I rowsort label-943
SELECT - 91 / col2 FROM tab0
----
-1
-2
-91
query I rowsort
SELECT DISTINCT - col0 + col1 * col1 * + col2 AS col0 FROM tab1 cor0
----
16144
36501
5636
query I rowsort
SELECT 32 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
query I rowsort
SELECT col2 * 2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + + col2 * - ( 44 ) AS col0 FROM tab1 AS cor0
----
-2376
-2508
-4224
query I rowsort
SELECT + - col0 + cor0.col1 * 28 AS col2 FROM tab0 AS cor0
----
2384
2459
2681
query I rowsort
SELECT + cor0.col1 + - 32 AS col0 FROM tab1 AS cor0
----
-19
-22
-6
query I rowsort
SELECT DISTINCT - cor0.col0 * + col2 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 - + col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - col2 * + col1 + ( col2 ) * ( + cor0.col2 * + cor0.col2 ) FROM tab2 AS cor0
----
16042
18846
54226
query I rowsort
SELECT ALL + col2 * - col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + cor0.col2 + - 19 FROM tab1 AS cor0
----
-115
-73
-76
query I rowsort
SELECT ALL col1 + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT col2 + - col2 + 16 FROM tab2 AS cor0
----
16
query I rowsort
SELECT DISTINCT + - col2 * + 3 FROM tab1 AS cor0
----
-162
-171
-288
query I rowsort
SELECT + + col1 * col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL col2 * 99 AS col1 FROM tab2
----
2574
2673
3762
query I rowsort
SELECT DISTINCT - col0 + 39 FROM tab1
----
-25
-41
36
query I rowsort
SELECT ALL col0 * ( col2 ) + tab1.col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - + col0 - + 72 AS col2 FROM tab0 AS cor0
----
-107
-161
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-963
SELECT DISTINCT + + col1 * 22 DIV + col1 - + col1 * - col2 DIV + col2 FROM tab0 AS cor0
----
108
113
119
skipif mysql # not compatible
query I rowsort label-963
SELECT DISTINCT + + col1 * 22 / + col1 - + col1 * - col2 / + col2 FROM tab0 AS cor0
----
108
113
119
query I rowsort
SELECT DISTINCT - col2 + col2 * 3 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT ALL + - col1 + ( col2 ) * col1 DIV + col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-965
SELECT ALL + - col1 + ( col2 ) * col1 / + col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT DISTINCT - 5 + - col0 + col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-13
-84
-85
skipif mysql # not compatible
query I rowsort label-966
SELECT DISTINCT - 5 + - col0 + col1 / - col1 AS col2 FROM tab2 AS cor0
----
-13
-84
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 col0 FROM tab1 AS cor0
----
37
37
37
query I rowsort
SELECT ALL - - 51 + 43 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - + 12 * - col0 AS col0 FROM tab0 AS cor0
----
1068
288
420
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 10 + + cor0.col0 col2 FROM tab2 AS cor0
----
277
338
459
query I rowsort
SELECT - ( + col1 ) + col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL + 29 AS col2 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT col0 * col0 * - col2 FROM tab2 cor0
----
-1323
-158184
-237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-975
SELECT DISTINCT - + ( col2 ) * col0 + CAST( NULL AS SIGNED ) * + col0 * + col0 + ( col0 ) * col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-975
SELECT DISTINCT - + ( col2 ) * col0 + CAST ( NULL AS INTEGER ) * + col0 * + col0 + ( col0 ) * col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + ( - col1 ) + col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - col0 * - col0 * + tab0.col1 AS col2 FROM tab0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-979
SELECT - + CAST( NULL AS SIGNED ) * + col0 + cor0.col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-979
SELECT - + CAST ( NULL AS INTEGER ) * + col0 + cor0.col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 31 * + col1 AS col2 FROM tab2 AS cor0
----
-1829
-527
-961
query I rowsort
SELECT ALL - + col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - - cor0.col1 * col1 * - col1 FROM tab0 cor0
----
-636056
-753571
-912673
query I rowsort
SELECT + col2 + - col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT DISTINCT - 3 DIV col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT - 3 / col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - + col0 + + cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL + cor0.col2 * - col0 - + col2 * + col2 FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT + + col2 - + col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + col2 * 3 FROM tab1 AS cor0
----
162
171
288
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 - ( 82 ) * col1 col0 FROM tab0 AS cor0
----
-7028
-7373
-7919
query I rowsort
SELECT ALL + cor0.col1 * + ( col2 + - col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col0 - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ( - cor1.col0 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT tab0.col1 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-994
SELECT - + 98 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-14
skipif mysql # not compatible
query I rowsort label-994
SELECT - + 98 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-14
query I rowsort
SELECT DISTINCT + + 88 + - col0 FROM tab2 cor0
----
10
81
9
query I rowsort
SELECT - - cor0.col1 + - cor0.col2 + col0 FROM tab1 AS cor0
----
-25
-3
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + - col1 * ( col2 * + ( cor0.col1 ) ) col1 FROM tab2 AS cor0
----
-10336
-25110
-88972
onlyif mysql # use DIV operator for integer division
query I rowsort label-998
SELECT - 42 + - col0 DIV - 85 FROM tab2 AS cor0
----
-42
-42
-42
skipif mysql # not compatible
query I rowsort label-998
SELECT - 42 + - col0 / - 85 FROM tab2 AS cor0
----
-42
-42
-42
query I rowsort
SELECT tab2.col1 * tab2.col0 AS col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL + 57 * col2 AS col0 FROM tab1
----
3078
3249
5472
onlyif mysql # use DIV operator for integer division
query I rowsort label-1002
SELECT col2 DIV 85 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1002
SELECT col2 / 85 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT - 31 FROM tab0, tab2 AS cor0
----
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-1004
SELECT DISTINCT 43 DIV col0 AS col2 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-1004
SELECT DISTINCT 43 / col0 AS col2 FROM tab0
----
0
1
query I rowsort
SELECT + 43 * + col1 AS col1 FROM tab2
----
1333
2537
731
query I rowsort
SELECT - - col1 * col0 * ( col1 ) + - cor0.col2 * col2 AS col1 FROM tab0 cor0
----
176415
329314
730285
onlyif mysql # use DIV operator for integer division
query I rowsort label-1007
SELECT - 49 DIV - col0 + col1 AS col0 FROM tab2 AS cor0
----
17
38
59
skipif mysql # not compatible
query I rowsort label-1007
SELECT - 49 / - col0 + col1 AS col0 FROM tab2 AS cor0
----
17
38
59
query I rowsort
SELECT col0 + + col1 - col2 FROM tab1
----
-25
-3
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 15 ) + cor0.col0 col2 FROM tab1, tab1 AS cor0
----
-12
49
65
query I rowsort
SELECT ALL cor0.col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - - cor0.col1 + ( + 7 ) FROM tab0 AS cor0
----
104
93
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - 54 col2 FROM tab0 AS cor0
----
4644
4914
5238
onlyif mysql # use DIV operator for integer division
query I rowsort label-1013
SELECT ALL cor0.col1 DIV 3 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5bc875aadd66283912de700ef430ec64
skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL cor0.col1 / 3 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5bc875aadd66283912de700ef430ec64
query I rowsort
SELECT - ( + col2 ) - - col2 * + 64 FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT - 79 + col2 * - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-11061
-26026
-90585
query I rowsort
SELECT + + ( 85 ) - + col2 AS col1 FROM tab1 AS cor0
----
-11
28
31
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 + 38 AS col2 FROM tab1
----
38
query I rowsort
SELECT + col0 + 13 AS col1 FROM tab1
----
16
77
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1020
SELECT DISTINCT - ( - ( col2 ) ) / CAST( NULL AS SIGNED ) - 0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1020
SELECT DISTINCT - ( - ( col2 ) ) / CAST ( NULL AS INTEGER ) - 0 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1021
SELECT ALL + - 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-1021
SELECT ALL + - CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 16 * + col0 FROM tab2 AS cor0
----
-112
-1248
-1264
query I rowsort
SELECT + + col2 * + 72 AS col2 FROM tab0 AS cor0
----
2376
5904
72
query I rowsort
SELECT DISTINCT + - 29 + col2 - col0 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1253
-572
-7868
query I rowsort
SELECT ALL - col2 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - 93 * col1 - - ( 5 ) AS col0 FROM tab0 AS cor0
----
8003
8468
9026
query I rowsort
SELECT + col0 * - col2 - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT 14 + - col1 FROM tab0 cor0
----
-72
-77
-83
query I rowsort
SELECT col2 - - col1 * - 29 AS col1 FROM tab1 AS cor0
----
-233
-281
-700
query I rowsort
SELECT DISTINCT ( + col2 ) * - col2 + 25 - col2 AS col0 FROM tab1 AS cor0
----
-2945
-3281
-9287
query I rowsort
SELECT + col0 * + col1 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + col0 + - col1 * - col1 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - col0 * + 66 FROM tab1 AS cor0
----
-198
-4224
-5280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 * + col2 col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col1 * - ( - col1 * - col2 ) + + ( col0 ) AS col2 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT - - col0 * col2 + 2 FROM tab0 AS cor0
----
37
7300
794
onlyif mysql # use DIV operator for integer division
query I rowsort label-1037
SELECT + col2 DIV - 19 AS col0 FROM tab0 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-1037
SELECT + col2 / - 19 AS col0 FROM tab0 AS cor0
----
-1
-4
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1038
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( col2 ) + col0 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( col2 ) + col0 col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col1 + + 10 FROM tab1 AS cor0
----
-16
-3
0
query I rowsort
SELECT DISTINCT + 92 * - 0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - ( + 30 ) * + col2 * 33 - 94 AS col0 FROM tab0 AS cor0
----
-1084
-32764
-81274
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 col0 FROM tab0 AS cor0
----
-87
query I rowsort
SELECT ALL + + col2 * 29 - col0 FROM tab1 AS cor0
----
1563
1589
2704
query I rowsort
SELECT + - 35 * + 22 FROM tab0 cor0
----
-770
-770
-770
onlyif mysql # use DIV operator for integer division
query I rowsort label-1045
SELECT ALL - + CAST( ( - col1 ) AS SIGNED ) DIV col1 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL - + CAST ( ( - col1 ) AS INTEGER ) / col1 - col2 * col0 AS col1 FROM tab0 AS cor0
----
-34
-7297
-791
query I rowsort
SELECT DISTINCT - 89 * + col1 AS col0 FROM tab0 AS cor0
----
-7654
-8099
-8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1047
SELECT - CAST( NULL AS DECIMAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1047
SELECT - CAST ( NULL AS REAL ) FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col1 * + col1 * - col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT col1 - + 80 * col0 FROM tab2
----
-529
-6181
-6303
query I rowsort
SELECT 64 AS col1 FROM tab1 cor0
----
64
64
64
query I rowsort
SELECT 57 * - col1 AS col0 FROM tab2
----
-1767
-3363
-969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL - col0 + - col0 * - 61 AS col0 FROM tab1 AS cor0
----
180
3840
4800
query I rowsort
SELECT - 8 + - col0 FROM tab1 AS cor0
----
-11
-72
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1055
SELECT DISTINCT col0 + col1 DIV - col0 FROM tab0 cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT col0 + col1 / - col0 FROM tab0 cor0
----
21
33
88
query I rowsort
SELECT DISTINCT - + 15 - + col0 FROM tab0 AS cor0
----
-104
-39
-50
query I rowsort
SELECT ALL + 41 * - col1 * col1 FROM tab0 AS cor0
----
-303236
-339521
-385769
query I rowsort
SELECT ALL cor0.col1 + col0 + col2 AS col1 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT + + ( + cor0.col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - 42 + col1 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT ALL - cor0.col2 * - col2 + ( col2 ) * col0 + - col2 FROM tab1 AS cor0
----
16800
3024
6840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + cor0.col1 ) * col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - ( + col1 ) * col1 + 71 AS col2 FROM tab1 AS cor0
----
-29
-605
-98
query I rowsort
SELECT + cor0.col1 * ( + 34 ) AS col1 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT ALL - - col2 * + 32 FROM tab1 cor0
----
1728
1824
3072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * col0 col1 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * - ( + col1 ) col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT - 99 + + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT - col0 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT + - col2 * - 6 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT - col1 * + 70 * + col0 FROM tab0 AS cor0
----
-144480
-237650
-566930
query I rowsort
SELECT ALL + ( cor0.col0 ) * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 - 92 FROM tab0 AS cor0
----
-178
-183
-189
onlyif mysql # use DIV operator for integer division
query I rowsort label-1076
SELECT - + cor0.col2 + - col1 DIV col0 FROM tab1 AS cor0
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-1076
SELECT - + cor0.col2 + - col1 / col0 FROM tab1 AS cor0
----
-57
-62
-96
query I rowsort
SELECT DISTINCT + - 42 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-138
-96
-99
query I rowsort
SELECT + cor0.col1 - - col0 * - cor0.col2 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - - cor0.col0 + - 63 FROM tab1, tab0 AS cor0
----
-28
-39
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1080
SELECT - CAST( NULL AS SIGNED ) * 22 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1080
SELECT - CAST ( NULL AS INTEGER ) * 22 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 - col2 * + tab1.col2 FROM tab1
----
-2919
-3313
-9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-1082
SELECT 62 DIV col0 + + col2 * + col1 FROM tab1
----
1248
1424
570
skipif mysql # not compatible
query I rowsort label-1082
SELECT 62 / col0 + + col2 * + col1 FROM tab1
----
1248
1424
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1083
SELECT col0 * col1 * - CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1083
SELECT col0 * col1 * - CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1084
SELECT - cor0.col2 DIV cor0.col2 - col2 col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1084
SELECT - cor0.col2 / cor0.col2 - col2 col0 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT - - 11 + cor0.col2 AS col1 FROM tab1 AS cor0
----
107
65
68
query I rowsort
SELECT DISTINCT - col1 - col2 AS col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT col0 - col2 * col1 AS col0 FROM tab0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-1088
SELECT ( col2 ) DIV col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1088
SELECT ( col2 ) / col0 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL col1 + col1 + col1 FROM tab1
----
30
39
78
query I rowsort
SELECT ALL + - ( col0 ) + - col0 * col0 FROM tab2 AS cor0
----
-56
-6162
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1091
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 + - col1 * 41 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1091
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 + - col1 * 41 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 7 FROM tab0
----
40
8
89
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
3645 values hashing to 5ec52b92c3c8d78cc0a61df3fc16f18b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1094
SELECT 50 DIV + col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1094
SELECT 50 / + col1 AS col2 FROM tab0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 82e15d5967b272804e574774895a0222
query I rowsort
SELECT col0 + - col2 * + col0 + ( - col1 ) FROM tab2 cor0
----
-2009
-213
-2940
query I rowsort
SELECT tab1.col1 * 54 FROM tab1, tab2 cor0
----
9 values hashing to 1d42ad71a11ba0ed6bb01d077d612a3c
query I rowsort
SELECT ALL col2 * - col2 * + col0 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - - col2 * - col2 AS col0 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col0 + ( - col1 ) * col1 FROM tab2
----
-3559
-368
-968
query I rowsort
SELECT ALL - 79 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT - col1 + col1 * - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT col2 + - col2 * col0 AS col2 FROM tab2
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT DISTINCT + - col2 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT + - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT + col1 + col1 * col0 + col2 * - col2 AS col0 FROM tab2 cor0
----
-481
-84
3985
query I rowsort
SELECT ALL + 88 + - cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d68f2d8d903cb9db53b68498b532a81e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1107
SELECT CAST( NULL AS SIGNED ) col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1107
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1108
SELECT ALL CAST( NULL AS SIGNED ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1108
SELECT ALL CAST ( NULL AS INTEGER ) + + 22 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 18 FROM tab0 AS cor0
----
1548
1638
1746
onlyif mysql # use DIV operator for integer division
query I rowsort label-1110
SELECT col1 DIV 63 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1110
SELECT col1 / 63 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + 33 + + col0 AS col0 FROM tab1 AS cor0
----
113
36
97
query I rowsort
SELECT col1 * - 53 FROM tab1 cor0
----
-1378
-530
-689
query I rowsort
SELECT + cor0.col1 + - 29 FROM tab1 AS cor0
----
-16
-19
-3
query I rowsort
SELECT DISTINCT col2 * col0 + 63 - - col0 FROM tab1 AS cor0
----
228
3775
7823
query I rowsort
SELECT + + col1 + - cor0.col1 * col2 FROM tab1 cor0
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1116
SELECT CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1116
SELECT CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + 51 * col0 + col2 AS col2 FROM tab1 AS cor0
----
207
3321
4176
query I rowsort
SELECT DISTINCT 82 + cor0.col0 * col2 FROM tab2 AS cor0
----
2110
271
3084
query I rowsort
SELECT DISTINCT ( - col0 ) * + col1 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - ( + 14 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT + col1 * tab1.col1 DIV + 27 AS col0 FROM tab1
----
25
3
6
skipif mysql # not compatible
query I rowsort label-1121
SELECT + col1 * tab1.col1 / + 27 AS col0 FROM tab1
----
25
3
6
query I rowsort
SELECT col0 * + 80 FROM tab1
----
240
5120
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT + col0 DIV ( ( col0 ) ) FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1123
SELECT + col0 / ( ( col0 ) ) FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 51 col0 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL - 45 FROM tab0, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - tab2.col1 ) col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT - + col0 * - col0 + + col2 * 55 AS col0 FROM tab1 AS cor0
----
11680
2979
7231
query I rowsort
SELECT ( 88 ) + col2 AS col1 FROM tab1
----
142
145
184
query I rowsort
SELECT ALL col0 * - 64 FROM tab2
----
-448
-4992
-5056
onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT DISTINCT - col2 DIV - 6 AS col0 FROM tab2
----
4
6
skipif mysql # not compatible
query I rowsort label-1130
SELECT DISTINCT - col2 / - 6 AS col0 FROM tab2
----
4
6
query I rowsort
SELECT ( 1 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT - col0 + col1 * + cor0.col1 FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT ALL + col2 DIV 12 AS col2 FROM tab0 AS cor0
----
0
2
6
skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL + col2 / 12 AS col2 FROM tab0 AS cor0
----
0
2
6
query I rowsort
SELECT + tab1.col0 AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( col1 ) * + col0 col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL - col1 * ( + col2 ) FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1137
SELECT DISTINCT + ( + tab1.col1 ) + col1 * + ( - col2 * CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT + ( + tab1.col1 ) + col1 * + ( - col2 * CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
query I rowsort
SELECT - col0 * + col2 + + col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL + tab0.col0 + + col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL 6 + col2 AS col1 FROM tab2
----
32
33
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - + col0 + ( col1 + + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT col0 * 6 AS col2 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT - col0 + 83 * + col1 AS col1 FROM tab2 cor0
----
1332
2566
4819
query I rowsort
SELECT DISTINCT col1 * - ( col1 ) FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-1146
SELECT - col1 + + col0 DIV col0 AS col0 FROM tab2 cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-1146
SELECT - col1 + + col0 / col0 AS col0 FROM tab2 cor0
----
-16
-30
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1147
SELECT - col1 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-1147
SELECT - col1 / + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1148
SELECT DISTINCT col0 DIV - cor0.col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT col0 / - cor0.col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT - col1 * 21 AS col0 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT DISTINCT 39 + 17 * col2 * col1 FROM tab0
----
126893
1688
48285
query I rowsort
SELECT + ( tab2.col0 ) * col2 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT col2 DIV ( tab2.col0 ) col0 FROM tab2
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1152
SELECT col2 / ( tab2.col0 ) col0 FROM tab2
----
0
0
3
query I rowsort
SELECT col1 * 24 AS col1 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT - cor0.col2 * - col1 + - col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT + col0 - - 10 DIV - col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1155
SELECT + col0 - - 10 / - col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 99 * + col1 AS col0 FROM tab2 AS cor0
----
-1683
-3069
-5841
query I rowsort
SELECT - cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT DISTINCT - - cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col2 + col0 * + col1 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + ( col0 ) * col1 * 59 FROM tab2
----
12803
271518
79237
query I rowsort
SELECT + 19 * - col0 FROM tab1 AS cor0
----
-1216
-1520
-57
query I rowsort
SELECT DISTINCT 28 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-1163
SELECT DISTINCT col0 DIV col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-1163
SELECT DISTINCT col0 / col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT ALL + 44 * + col0 * col1 FROM tab0 cor0
----
149380
356356
90816
query I rowsort
SELECT DISTINCT col1 + - 97 AS col1 FROM tab2
----
-38
-66
-80
query I rowsort
SELECT tab2.col0 * 28 AS col1 FROM tab2
----
196
2184
2212
query I rowsort
SELECT + - col0 - col1 * col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT + + col2 + - ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - + col0 * - ( col1 * col0 ) + - ( + col1 ) FROM tab1 AS cor0
----
208
40950
83187
query I rowsort
SELECT col0 * + 22 * - col0 AS col0 FROM tab1
----
-140800
-198
-90112
query I rowsort
SELECT ALL - cor0.col1 + col1 - - col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col2 * + 45 + col2 * col2 * + 53 FROM tab1 cor0
----
152118
169632
484128
onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT + 69 + col0 DIV cor0.col2 FROM tab0 cor0
----
104
69
70
skipif mysql # not compatible
query I rowsort label-1173
SELECT + 69 + col0 / cor0.col2 FROM tab0 cor0
----
104
69
70
query I rowsort
SELECT DISTINCT + - ( - 0 ) * col2 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + - ( 44 ) * col0 + - col0 FROM tab2 AS cor0
----
-315
-3510
-3555
query I rowsort
SELECT + - 77 - cor0.col1 AS col2 FROM tab0 AS cor0
----
-163
-168
-174
query I rowsort
SELECT col0 * + ( col0 ) AS col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL col0 + 98 AS col2 FROM tab1 AS cor0
----
101
162
178
query I rowsort
SELECT ALL + - 33 + - col2 FROM tab2 AS cor0
----
-59
-60
-71
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + col0 * col1 + - ( - col2 ) + - col0 * col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col1 col2 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + + 43 col2 FROM tab0 AS cor0
----
-39
10
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1186
SELECT DISTINCT + - ( col0 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT + - ( col0 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1187
SELECT - col2 DIV col1 col0 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1187
SELECT - col2 / col1 col0 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1188
SELECT 67 + + col2 * CAST( - 38 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-1263
-277257
-30029
skipif mysql # not compatible
query I rowsort label-1188
SELECT 67 + + col2 * CAST ( - 38 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-1263
-277257
-30029
query I rowsort
SELECT ALL + col2 * - col1 * + 55 + + cor0.col1 FROM tab0 AS cor0
----
-156004
-410319
-5238
query I rowsort
SELECT ALL cor0.col2 * cor0.col2 + ( + col2 + col2 ) AS col0 FROM tab0 AS cor0
----
1155
3
6888
query I rowsort
SELECT DISTINCT + + col1 * col1 + 32 FROM tab1 AS cor0
----
132
201
708
query I rowsort
SELECT ALL + col2 * col0 + col2 + col0 * + col0 AS col2 FROM tab1 cor0
----
14176
225
7801
query I rowsort
SELECT ALL cor0.col0 - - col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - + col1 * + col1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-1557
-6307
-9408
query I rowsort
SELECT + 19 + - col2 * - 89 * 88 FROM tab0
----
258475
642243
7851
query I rowsort
SELECT 1 + - col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT - 22 - tab1.col1 FROM tab1
----
-32
-35
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 * col0 * + ( - col0 ) col1 FROM tab2
----
-343
-42588
-43687
onlyif mysql # use DIV operator for integer division
query I rowsort label-1199
SELECT + col0 DIV 97 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1199
SELECT + col0 / 97 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + - 38 FROM tab2 AS cor0
----
-21
-7
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1201
SELECT + col2 DIV - 56 AS col1 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1201
SELECT + col2 / - 56 AS col1 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT 97 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT ALL col0 * - 30 * col1 FROM tab0
----
-101850
-242970
-61920
query I rowsort
SELECT 63 + + col0 FROM tab0 AS cor0
----
152
87
98
query I rowsort
SELECT - 10 * - col1 AS col0 FROM tab2 cor0
----
170
310
590
query I rowsort
SELECT ALL 24 * + col2 + - col2 AS col1 FROM tab2
----
598
621
874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1207
SELECT - + col1 * - col1 + + CAST( ( - cor0.col2 ) + ( col0 ) AS SIGNED ) FROM tab2 cor0
----
330
3533
941
skipif mysql # not compatible
query I rowsort label-1207
SELECT - + col1 * - col1 + + CAST ( ( - cor0.col2 ) + ( col0 ) AS INTEGER ) FROM tab2 cor0
----
330
3533
941
onlyif mysql # use DIV operator for integer division
query I rowsort label-1208
SELECT + + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1208
SELECT + + col1 / + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT + cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col0 + ( col2 ) AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL 35 * col0 + col1 FROM tab0
----
1322
3206
926
query I rowsort
SELECT ALL 80 * - col0 AS col1 FROM tab1
----
-240
-5120
-6400
query I rowsort
SELECT DISTINCT - - 79 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
79
query I rowsort
SELECT ALL + 74 AS col2 FROM tab1 AS cor0
----
74
74
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-1215
SELECT 48 * col0 DIV col0 + col1 FROM tab2 AS cor0
----
107
65
79
skipif mysql # not compatible
query I rowsort label-1215
SELECT 48 * col0 / col0 + col1 FROM tab2 AS cor0
----
107
65
79
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 * + col0 AS col0 FROM tab2 AS cor0
----
-343
-474552
-493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 * + col2 col1 FROM tab0 cor0
----
3267
8118
99
query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab2 AS cor0
----
-98
query I rowsort
SELECT + - 2 AS col0 FROM tab2 AS cor0
----
-2
-2
-2
query I rowsort
SELECT - 63 + col1 AS col2 FROM tab1
----
-37
-50
-53
query I rowsort
SELECT - 24 FROM tab1, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT DISTINCT + 66 FROM tab0, tab1 AS cor0
----
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1223
SELECT ALL col2 + + col0 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-24
-583
-944
skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL col2 + + col0 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + 17 * col0 AS col2 FROM tab1 AS cor0
----
1088
1360
51
query I rowsort
SELECT ALL + col1 * 30 AS col1 FROM tab2
----
1770
510
930
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 + col2 * - col0 FROM tab2 AS cor0
----
-151
-1891
-2906
query I rowsort
SELECT DISTINCT 34 * col2 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT ALL + - cor0.col2 * + col0 + 42 FROM tab1 cor0
----
-120
-3606
-7638
onlyif mysql # use DIV operator for integer division
query I rowsort label-1229
SELECT ALL - col0 * + col2 + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL - col0 * + col2 + + col1 / col1 AS col2 FROM tab2 AS cor0
----
-188
-2027
-3001
query I rowsort
SELECT ALL 45 - + col0 AS col1 FROM tab2 cor0
----
-33
-34
38
query I rowsort
SELECT - - col1 + 14 AS col2 FROM tab1 cor0
----
24
27
40
query I rowsort
SELECT col2 * - ( - col2 ) + col0 * - 40 AS col0 FROM tab0 AS cor0
----
-1399
129
3164
query I rowsort
SELECT - col1 * + 25 + col2 FROM tab1 cor0
----
-193
-229
-596
query I rowsort
SELECT ALL tab2.col2 + tab2.col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + col1 + ( - col0 ) * + col2 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT + + col2 + + 50 + - 51 AS col0 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * + col1 + + 65 AS col2 FROM tab2 AS cor0
----
1599
711
902
query I rowsort
SELECT + col1 * - ( - ( col2 ) ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL col2 + 97 FROM tab1 AS cor0
----
151
154
193
query I rowsort
SELECT DISTINCT + col2 - + 38 AS col0 FROM tab1 cor0
----
16
19
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * tab2.col2 col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL cor0.col2 + 98 FROM tab1 AS cor0
----
152
155
194
query I rowsort
SELECT + 62 + 51 FROM tab0 AS cor0
----
113
113
113
query I rowsort
SELECT ALL + - cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - cor0.col1 + col2 * - col1 + + ( - col2 + col0 ) FROM tab2 cor0
----
-1423
-588
-826
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1246
SELECT ALL CAST( NULL AS DECIMAL ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1246
SELECT ALL CAST ( NULL AS REAL ) / col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 0 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 61 AS col1 FROM tab2 AS cor0
----
-61
query I rowsort
SELECT DISTINCT 88 * - col1 + col2 FROM tab0 AS cor0
----
-7535
-7926
-8535
query I rowsort
SELECT cor0.col2 * col0 * - col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + + cor0.col2 * - cor0.col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col1 * 26 AS col1 FROM tab2 cor0
----
-1534
-442
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 77 col2 FROM tab0 AS cor0
----
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1254
SELECT DISTINCT col1 + col0 DIV col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-1254
SELECT DISTINCT col1 + col0 / col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT col2 * - 75 FROM tab2
----
-1950
-2025
-2850
query I rowsort
SELECT ALL + col0 - + ( + ( col0 ) * 16 + col1 ) AS col0 FROM tab0
----
-1426
-446
-622
query I rowsort
SELECT ALL + - ( - col2 ) + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - 86 * - cor0.col2 + col2 FROM tab0 AS cor0
----
2871
7134
87
query I rowsort
SELECT + 54 - - ( col1 ) FROM tab0
----
140
145
151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + col1 col0 FROM tab2 AS cor0
----
-26
-40
2
query I rowsort
SELECT 78 + - 91 FROM tab0
----
-13
-13
-13
query I rowsort
SELECT 62 + 11 AS col0 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT DISTINCT 67 * col1 * col0 FROM tab1
----
42880
5226
69680
query I rowsort
SELECT ALL - col1 + - ( + tab0.col0 ) + col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT col0 + + ( - col2 ) * col0 AS col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL col0 + ( col0 ) AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT + col2 - 44 FROM tab0 AS cor0
----
-11
-43
38
query I rowsort
SELECT - cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1269
SELECT ALL col1 * - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1269
SELECT ALL col1 * - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * 52 + - col1 col2 FROM tab1 AS cor0
----
-2834
-2974
-5005
query I rowsort
SELECT + - cor0.col1 * 53 FROM tab2 AS cor0
----
-1643
-3127
-901
onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT - + cor0.col1 DIV - 82 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1272
SELECT - + cor0.col1 / - 82 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + - col1 - - 19 * col2 AS col2 FROM tab1 AS cor0
----
1000
1073
1811
query I rowsort
SELECT DISTINCT col2 - - 80 FROM tab1 AS cor0
----
134
137
176
query I rowsort
SELECT ALL - col1 * col0 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT 27 + + col1 AS col2 FROM tab1
----
37
40
53
query I rowsort
SELECT + cor0.col2 + 33 AS col2 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT + col2 + - 23 AS col2 FROM tab1
----
31
34
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1280
SELECT + CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-1280
SELECT + CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1281
SELECT col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1281
SELECT col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col2 - col0 * col2 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT ALL + - col2 * - cor0.col1 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT tab2.col1 * col0 + col0 + col0 AS col2 FROM tab2
----
1501
231
4758
query I rowsort
SELECT col1 + - 51 FROM tab0
----
35
40
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-1286
SELECT - 45 + - col2 DIV col0 AS col1 FROM tab1
----
-45
-46
-63
skipif mysql # not compatible
query I rowsort label-1286
SELECT - 45 + - col2 / col0 AS col1 FROM tab1
----
-45
-46
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1287
SELECT ALL CAST( col1 AS SIGNED ) - + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL CAST ( col1 AS INTEGER ) - + cor0.col2 * - col2 AS col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT ALL ( - tab0.col1 + + col0 ) FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + 44 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT DISTINCT 88 + col1 AS col2 FROM tab0 AS cor0
----
174
179
185
query I rowsort
SELECT 61 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT + 19 * col2 AS col2 FROM tab0 AS cor0
----
1558
19
627
query I rowsort
SELECT 78 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT 6 + col2 FROM tab1 AS cor0
----
102
60
63
query I rowsort
SELECT - col1 * - col0 + 6 AS col0 FROM tab2 cor0
----
1349
223
4608
query I rowsort
SELECT DISTINCT + 1 + - cor0.col1 + + col1 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col2 * + 31 AS col2 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT ALL + col0 - 37 AS col2 FROM tab2 AS cor0
----
-30
41
42
query I rowsort
SELECT - col2 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - + col2 * col0 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT + 10 * - ( - col0 ) - - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
30
641
800
skipif mysql # not compatible
query I rowsort label-1302
SELECT + 10 * - ( - col0 ) - - col0 / col2 AS col2 FROM tab1 AS cor0
----
30
641
800
query I rowsort
SELECT DISTINCT + cor0.col1 + 3 AS col1 FROM tab0, tab2 AS cor0
----
20
34
62
query I rowsort
SELECT - col1 + col2 * + 86 FROM tab1 AS cor0
----
4618
4892
8243
query I rowsort
SELECT + col1 * + col1 + - col2 AS col1 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1306
SELECT DISTINCT CAST( col0 AS SIGNED ) + tab0.col0 FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT CAST ( col0 AS INTEGER ) + tab0.col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - ( col1 ) * + col1 AS col2 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-1308
SELECT DISTINCT + col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT + col2 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + + 4 FROM tab1 cor0
----
4
4
4
query I rowsort
SELECT + 91 * - col2 AS col2 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT DISTINCT - 11 * 38 FROM tab1 AS cor0
----
-418
query I rowsort
SELECT ALL col2 * + 88 FROM tab2 AS cor0
----
2288
2376
3344
query I rowsort
SELECT - col0 + - ( + 24 ) - tab0.col2 FROM tab0
----
-195
-60
-81
query I rowsort
SELECT col1 * + ( tab0.col0 ) * - col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - col2 * - tab1.col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ( col1 ) + col0 AS col1 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * col1 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 99 * + 40 FROM tab2 AS cor0
----
3960
3960
3960
query I rowsort
SELECT - 27 + col0 * col2 AS col1 FROM tab1
----
135
3621
7653
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
query I rowsort
SELECT - - col2 + cor0.col1 * col2 * col1 FROM tab1 AS cor0
----
16320
36558
5757
onlyif mysql # use DIV operator for integer division
query I rowsort label-1322
SELECT + - 95 DIV 26 FROM tab0 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-1322
SELECT + - 95 / 26 FROM tab0 AS cor0
----
-3
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1323
SELECT DISTINCT - 52 DIV col0 FROM tab1
----
-17
0
skipif mysql # not compatible
query I rowsort label-1323
SELECT DISTINCT - 52 / col0 FROM tab1
----
-17
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) * + ( - col2 ) col2 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1325
SELECT ALL 95 - col2 * CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL 95 - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0, tab2 cor0, tab2 AS cor1
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT + + col2 * ( - col2 ) + + col0 - + 30 AS col0 FROM tab0 AS cor0
----
-1095
-6665
4
query I rowsort
SELECT col1 + ( - cor0.col0 ) * col2 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1329
SELECT - col2 + - col1 DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-1329
SELECT - col2 + - col1 / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-3
-36
-83
query I rowsort
SELECT DISTINCT col1 + - 17 AS col0 FROM tab2
----
0
14
42
query I rowsort
SELECT ALL - col2 + 0 AS col2 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1332
SELECT - col0 + col1 * 30 DIV col1 FROM tab1 cor0
----
-34
-50
27
skipif mysql # not compatible
query I rowsort label-1332
SELECT - col0 + col1 * 30 / col1 FROM tab1 cor0
----
-34
-50
27
query I rowsort
SELECT DISTINCT - + col0 * 16 FROM tab0 AS cor0
----
-1424
-384
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1334
SELECT ALL + + col1 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL + + col1 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + col0 + + col0 * col0 * 54 col0 FROM tab1 AS cor0
----
221824
346640
564
onlyif mysql # use DIV operator for integer division
query I rowsort label-1336
SELECT - col2 * - col0 + col0 * + col2 + + col1 DIV col1 FROM tab2
----
379
4057
6005
skipif mysql # not compatible
query I rowsort label-1336
SELECT - col2 * - col0 + col0 * + col2 + + col1 / col1 FROM tab2
----
379
4057
6005
onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT DISTINCT + col2 + 28 DIV + 21 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1337
SELECT DISTINCT + col2 + 28 / + 21 FROM tab0
----
2
34
83
query I rowsort
SELECT col0 - 6 FROM tab2 AS cor0
----
1
72
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT ALL - col2 + + col0 DIV 31 + col2 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL - col2 + + col0 / 31 + col2 FROM tab2
----
0
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * col2 col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT ALL col2 + col2 - col2 * + col1 FROM tab2 AS cor0
----
-1482
-570
-783
query I rowsort
SELECT + col2 * + ( col0 ) - cor0.col2 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1344
SELECT DISTINCT - col2 * ( col2 ) - - cor0.col2 * col2 DIV col1 AS col2 FROM tab2 AS cor0
----
-1360
-665
-706
skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT - col2 * ( col2 ) - - cor0.col2 * col2 / col1 AS col2 FROM tab2 AS cor0
----
-1360
-665
-706
query I rowsort
SELECT col0 * + ( - 41 ) + col0 AS col2 FROM tab1 cor0
----
-120
-2560
-3200
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * col2 AS col0 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT + + col2 * + col0 * 4 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
18240
38400
810
query I rowsort
SELECT ALL - + col0 + - cor0.col1 * + col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT 59 * - col2 * col2 AS col0 FROM tab2 AS cor0
----
-39884
-43011
-85196
query I rowsort
SELECT DISTINCT + 35 * col2 + col2 FROM tab2 cor0
----
1368
936
972
query I rowsort
SELECT DISTINCT + + col0 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - col1 * - col2 * cor0.col2 + + col0 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT ALL - - ( col0 ) + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - 52 * 28 + col1 AS col2 FROM tab2 AS cor0
----
-1397
-1425
-1439
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1355
SELECT ALL + - CAST( NULL AS SIGNED ) + - ( col0 + cor0.col2 ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL + - CAST ( NULL AS INTEGER ) + - ( col0 + cor0.col2 ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1356
SELECT - 35 * 70 + col1 DIV 3 + 60 col2 FROM tab0 AS cor0
----
-2358
-2360
-2362
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1356
SELECT - 35 * 70 + col1 / 3 + 60 col2 FROM tab0 AS cor0
----
-2358
-2360
-2362
query I rowsort
SELECT DISTINCT + ( col0 ) * col2 * - 83 AS col2 FROM tab0 cor0
----
-2905
-605734
-65736
query I rowsort
SELECT ALL + - cor0.col0 + col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT - col1 DIV - ( + col1 ) FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1359
SELECT - col1 / - ( + col1 ) FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + - 32 - 83 FROM tab2
----
-77
-88
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1361
SELECT ALL - + 20 + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
-19
-19
-19
skipif mysql # not compatible
query I rowsort label-1361
SELECT ALL - + 20 + col1 / + col1 AS col1 FROM tab0 AS cor0
----
-19
-19
-19
query I rowsort
SELECT + 60 * col1 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT DISTINCT + - 34 + + 57 FROM tab0 AS cor0
----
23
query I rowsort
SELECT - col1 + + 69 FROM tab1 AS cor0
----
43
56
59
query I rowsort
SELECT - col0 * + col0 + - col2 AS col0 FROM tab0 cor0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT - + ( col0 ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 31 * + col0 + + cor0.col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT DISTINCT + col1 - + ( col0 * - col2 + + ( col2 ) ) FROM tab2
----
193
2061
2981
query I rowsort
SELECT + col1 * + 60 AS col0 FROM tab1
----
1560
600
780
query I rowsort
SELECT DISTINCT + + 70 FROM tab0 cor0
----
70
query I rowsort
SELECT ALL col2 * + col2 + + col1 AS col0 FROM tab2 cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - col2 col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - ( cor0.col0 ) * 30 * ( col0 ) FROM tab0 AS cor0
----
-17280
-237630
-36750
query I rowsort
SELECT 16 FROM tab2 cor0
----
16
16
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1375
SELECT ALL + - col1 * - cor0.col0 - + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
104
1053
650
skipif mysql # not compatible
query I rowsort label-1375
SELECT ALL + - col1 * - cor0.col0 - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - + 29 * - col2 FROM tab1 AS cor0
----
1566
1653
2784
query I rowsort
SELECT - ( 81 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to d0bfe8494f52235d9fcafb5ac5de3f81
query I rowsort
SELECT DISTINCT + - 93 * col1 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT ALL - - 0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + + 19 + col0 AS col2 FROM tab1 AS cor0
----
22
83
99
query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2 AS cor0
----
55
query I rowsort
SELECT - + col1 * + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL col0 * + 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 * + ( + col2 ) + - col2 AS col0 FROM tab0 cor0
----
-1122
-2
-6806
query I rowsort
SELECT ALL + col1 - col2 * 28 FROM tab2 cor0
----
-1047
-669
-725
query I rowsort
SELECT ALL - 8 * + col2 * col1 FROM tab1 AS cor0
----
-11232
-4560
-9984
query I rowsort
SELECT 73 + + 37 AS col2 FROM tab2 AS cor0
----
110
110
110
query I rowsort
SELECT DISTINCT 23 * cor0.col0 + + col2 FROM tab1 AS cor0
----
123
1529
1936
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col1 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col2 * + 76 AS col2 FROM tab1 AS cor0
----
-4104
-4332
-7296
query I rowsort
SELECT DISTINCT col2 + col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + - cor0.col2 col1 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT ALL + + 58 AS col0 FROM tab0, tab1 cor0, tab1, tab2 cor1
----
81 values hashing to 793ce5fda3f22b0a251dca7e8a07baed
onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT ALL + col1 - - 53 DIV + col2 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-1395
SELECT ALL + col1 - - 53 / + col2 col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT col0 + ( col2 ) * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - + col2 - - col1 * - col1 FROM tab0 cor0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT - ( - 21 ) AS col1 FROM tab2 AS cor0
----
21
query I rowsort
SELECT col0 * + col0 + - col0 * - col0 FROM tab1 AS cor0
----
12800
18
8192
onlyif mysql # use DIV operator for integer division
query I rowsort label-1400
SELECT + 46 DIV col0 AS col0 FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1400
SELECT + 46 / col0 AS col0 FROM tab0 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 * + 92 col2 FROM tab0, tab2 AS cor0
----
-92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1402
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1402
SELECT DISTINCT - CAST ( NULL AS REAL ) * cor0.col0 * - col1 AS col0 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1403
SELECT - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1403
SELECT - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + ( 47 ) * - col1 AS col2 FROM tab0 cor0
----
-4128
-4368
-4656
query I rowsort
SELECT cor0.col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - tab2.col0 + + 30 col1 FROM tab2
----
-1313
-187
-4572
query I rowsort
SELECT DISTINCT 92 + - col0 FROM tab1
----
12
28
89
query I rowsort
SELECT + tab1.col0 * col0 * ( + col0 ) AS col2 FROM tab1
----
262144
27
512000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1409
SELECT + tab0.col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1409
SELECT + tab0.col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT + tab2.col0 DIV + 40 + + 35 FROM tab2
----
35
36
36
skipif mysql # not compatible
query I rowsort label-1410
SELECT + tab2.col0 / + 40 + + 35 FROM tab2
----
35
36
36
query I rowsort
SELECT DISTINCT - col2 + - ( col1 ) * - col0 AS col0 FROM tab2
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-1412
SELECT + col0 + + 45 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
25
36
89
skipif mysql # not compatible
query I rowsort label-1412
SELECT + col0 + + 45 / cor0.col0 AS col1 FROM tab0 AS cor0
----
25
36
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1413
SELECT - - col2 DIV 25 FROM tab1 AS cor0
----
2
2
3
skipif mysql # not compatible
query I rowsort label-1413
SELECT - - col2 / 25 FROM tab1 AS cor0
----
2
2
3
query I rowsort
SELECT ALL - 79 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT ALL + col2 * + ( ( - col1 ) ) + col0 * col0 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT ALL 45 AS col1 FROM tab1, tab0 cor0, tab0, tab2 AS cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339
query I rowsort
SELECT + 16 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL + col1 * + col2 * col2 AS col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT ALL ( 21 + col1 ) * col0 FROM tab0
----
2568
4130
9968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 col1 FROM tab2, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col0 + - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT - 59 * col1 FROM tab2 AS cor0
----
-1003
-1829
-3481
onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT DISTINCT + 12 DIV + col1 + col2 + col1 * - col1 FROM tab1 AS cor0
----
-42
-622
-73
skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT + 12 / + col1 + col2 + col1 * - col1 FROM tab1 AS cor0
----
-42
-622
-73
query I rowsort
SELECT + col2 * col2 + 0 * + col1 AS col0 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1425
SELECT + - col2 * - CAST( col0 AS SIGNED ) + - col2 DIV col0 AS col0 FROM tab2 cor0
----
186
2028
3002
skipif mysql # not compatible
query I rowsort label-1425
SELECT + - col2 * - CAST ( col0 AS INTEGER ) + - col2 / col0 AS col0 FROM tab2 cor0
----
186
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * 23 col1 FROM tab0 AS cor0
----
1886
23
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1427
SELECT + - col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1427
SELECT + - col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * ( col2 ) - + col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + col1 * col1 ) col0 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-1430
SELECT col0 * 98 + + 55 * cor0.col2 DIV - 60 AS col2 FROM tab1 cor0
----
245
6220
7752
skipif mysql # not compatible
query I rowsort label-1430
SELECT col0 * 98 + + 55 * cor0.col2 / - 60 AS col2 FROM tab1 cor0
----
245
6220
7752
query I rowsort
SELECT + 63 + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1597
709
900
query I rowsort
SELECT col2 - col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - - 44 FROM tab1 AS cor0
----
44
44
44
query I rowsort
SELECT ALL 55 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT DISTINCT 67 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
67
query I rowsort
SELECT ALL tab0.col0 + + col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 * + 78 - 78 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
1092
12168
12324
onlyif mysql # use DIV operator for integer division
query I rowsort label-1438
SELECT ALL - col0 DIV + col1 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-1438
SELECT ALL - col0 / + col1 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-16
-19
-26
query I rowsort
SELECT ALL + tab2.col0 * + tab2.col0 * tab2.col2 + + col2 FROM tab2
----
1350
158210
237196
query I rowsort
SELECT DISTINCT col0 + tab1.col0 + + col2 FROM tab1
----
185
256
60
query I rowsort
SELECT ALL col1 * col0 + ( + 1 * + col2 + col0 ) FROM tab1
----
1216
135
761
query I rowsort
SELECT ALL - col0 * tab1.col0 * + col2 + - col1 AS col0 FROM tab1
----
-233482
-512
-614413
onlyif mysql # use DIV operator for integer division
query I rowsort label-1443
SELECT DISTINCT col2 DIV + 64 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT col2 / + 64 FROM tab0 cor0
----
0
1
query I rowsort
SELECT 80 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT - 60 * + col2 FROM tab0 AS cor0
----
-1980
-4920
-60
query I rowsort
SELECT ALL + col0 + + tab0.col1 - col1 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col0 AS REAL ) * col0 * col0 FROM tab1 cor0
----
262144
27
512000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1448
SELECT + CAST( col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-1448
SELECT + CAST ( col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col0 * 99 - - col0 AS col0 FROM tab2
----
700
7800
7900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1450
SELECT - CAST( NULL AS DECIMAL ) - tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1450
SELECT - CAST ( NULL AS REAL ) - tab0.col2 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - 4 AS col2 FROM tab0
----
82
87
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1452
SELECT - ( - tab2.col1 ) DIV + col1 + tab2.col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1452
SELECT - ( - tab2.col1 ) / + col1 + tab2.col2 FROM tab2
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 + col1 col2 FROM tab0
----
108
113
119
query I rowsort
SELECT DISTINCT - 24 FROM tab2, tab1, tab0 AS cor0, tab0
----
-24
query I rowsort
SELECT ALL 67 FROM tab2, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + - col0 * col2 + - ( + 69 ) FROM tab1 AS cor0
----
-231
-3717
-7749
query I rowsort
SELECT DISTINCT + - col0 + col0 + ( - cor0.col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - col2 * + col1 * + col2 AS col2 FROM tab1 AS cor0
----
119808
32490
75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + - col1 * + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1015
-3533
-365
query I rowsort
SELECT ( col1 ) * - 49 FROM tab1
----
-1274
-490
-637
query I rowsort
SELECT ALL ( + col2 ) + - 99 + + tab2.col0 FROM tab2
----
-65
18
5
query I rowsort
SELECT ALL - col0 + - col0 + tab0.col2 AS col2 FROM tab0
----
-15
-69
-96
query I rowsort
SELECT DISTINCT - - col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - + cor0.col1 * - col2 + + col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL 27 + col1 FROM tab0 AS cor0
----
113
118
124
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col1 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col0 + col1 * - col1 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT - 81 + + col2 * + 87 * + col1 FROM tab0 AS cor0
----
246825
649113
8358
query I rowsort
SELECT DISTINCT + + col1 * + col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL 77 + col0 FROM tab2 AS cor0
----
155
156
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1472
SELECT DISTINCT col0 * col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT col0 * col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL + cor0.col2 + - col1 + col1 * + col0 * - col2 FROM tab2 AS cor0
----
-119685
-51013
-5863
query I rowsort
SELECT ALL 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT ALL + col0 * col1 + - 49 FROM tab2
----
1294
168
4553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1476
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) / cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1476
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) / cor0.col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 + ( col2 ) * + col2 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT col1 * + 83 + col0 AS col2 FROM tab0 AS cor0
----
7162
7642
8086
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - ( + col0 ) col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - - col1 * - 43 + - col2 FROM tab1 AS cor0
----
-1172
-487
-655
query I rowsort
SELECT ALL - cor0.col0 * + 47 + - col2 AS col0 FROM tab0 AS cor0
----
-1161
-1646
-4265
query I rowsort
SELECT col2 + 67 * col1 AS col2 FROM tab0 AS cor0
----
5795
6179
6500
query I rowsort
SELECT col2 * - ( 15 ) + col0 AS col1 FROM tab0 AS cor0
----
-1141
-471
20
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 * + col1 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT DISTINCT + ( + col2 ) DIV + col2 + col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT + ( + col2 ) / + col2 + col2 / + col0 AS col1 FROM tab0 AS cor0
----
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col0 FROM tab1 AS cor0
----
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 * - cor0.col1 + - col0 col1 FROM tab2 AS cor0
----
-11061
-25954
-90584
query I rowsort
SELECT + - 80 AS col2 FROM tab1 AS cor0
----
-80
-80
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT ALL + - cor0.col1 DIV cor0.col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1489
SELECT ALL + - cor0.col1 / cor0.col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT - 77 + + 46 FROM tab2 AS cor0
----
-31
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - ( 8 ) + col0 * 3 FROM tab0 AS cor0
----
259
64
97
query I rowsort
SELECT ALL - ( col0 ) - col0 AS col1 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1494
SELECT ALL - col1 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL - col1 / + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 * + tab0.col1 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 + col2 * col1 FROM tab0
----
2805
7380
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1497
SELECT DISTINCT - col0 + col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1497
SELECT DISTINCT - col0 + col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1498
SELECT ALL - ( + col1 + + CAST( - ( col2 ) AS SIGNED ) ) AS col0 FROM tab1
----
28
47
83
skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - ( + col1 + + CAST ( - ( col2 ) AS INTEGER ) ) AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL + cor0.col2 + col0 * col0 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT ALL 25 * cor0.col2 - + col1 * col0 * col0 FROM tab0 AS cor0
----
-118800
-48711
-718761
query I rowsort
SELECT - 30 * + col0 FROM tab2
----
-210
-2340
-2370
query I rowsort
SELECT DISTINCT ( col0 + + tab2.col1 * col0 ) FROM tab2
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1503
SELECT col1 DIV tab0.col1 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1503
SELECT col1 / tab0.col1 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col1 * 75 * col0 FROM tab0 AS cor0
----
154800
254625
607425
query I rowsort
SELECT - col0 * + cor0.col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-262144
-27
-512000
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-1508
SELECT ALL + cor0.col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1508
SELECT ALL + cor0.col0 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT - - col1 + col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 97 col2 FROM tab1 AS cor0
----
107
110
123
query I rowsort
SELECT + col1 + 47 FROM tab0 AS cor0
----
133
138
144
query I rowsort
SELECT ALL - ( + col2 ) + - cor0.col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1513
SELECT ALL CAST( col2 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-1513
SELECT ALL CAST ( col2 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - + ( + col1 ) * col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT DISTINCT + - col1 DIV + col1 - col0 AS col2 FROM tab2 cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT + - col1 / + col1 - col0 AS col2 FROM tab2 cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT + + ( 26 ) AS col2 FROM tab0 AS cor0
----
26
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + cor0.col2 - - col2 FROM tab2 cor0
----
-1482
-570
-783
query I rowsort
SELECT + 11 FROM tab0 cor0
----
11
11
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 * col0 col2 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT ALL - - col0 * + col1 * + col1 - - col0 FROM tab0 AS cor0
----
177528
329350
737098
query I rowsort
SELECT DISTINCT - col0 * col1 + cor0.col2 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - + col1 * + col1 + + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT DISTINCT ( + col0 ) + col2 * col2 * - 59 FROM tab2 cor0
----
-39806
-43004
-85117
query I rowsort
SELECT - 65 * + ( + tab1.col2 ) FROM tab1
----
-3510
-3705
-6240
query I rowsort
SELECT DISTINCT + col1 + col2 * col2 AS col1 FROM tab0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + + tab2.col0 * col2 col0 FROM tab2
----
2082
243
3056
query I rowsort
SELECT - cor0.col1 + col1 * + col2 * col1 AS col1 FROM tab1 cor0
----
16211
36478
5690
query I rowsort
SELECT + + col1 * col1 + 47 AS col0 FROM tab1 AS cor0
----
147
216
723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT - cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - + cor0.col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col0 * 38 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT - 10 + - col1 - col0 AS col0 FROM tab2
----
-106
-147
-48
query I rowsort
SELECT - 43 * col0 + cor0.col2 * col1 FROM tab0 AS cor0
----
-1408
1806
3635
query I rowsort
SELECT + 81 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT + ( col1 * + col0 ) AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) * + col0 * - col2 AS col1 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + ( + col2 + - tab2.col2 ) AS col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 + cor0.col0 * - col2 col2 FROM tab1 AS cor0
----
-172
-3658
-7690
query I rowsort
SELECT ( col0 ) + - col2 * - col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT 50 + col0 * col1 * - 20 AS col2 FROM tab2 AS cor0
----
-26810
-4290
-91990
query I rowsort
SELECT ALL + - col0 + cor0.col2 * - 12 FROM tab2 AS cor0
----
-331
-390
-535
query I rowsort
SELECT DISTINCT - + col2 + + 17 + + 19 AS col2 FROM tab0 AS cor0
----
-46
3
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1545
SELECT DISTINCT - col1 / + CAST( NULL AS SIGNED ) - 37 * col1 col0 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1545
SELECT DISTINCT - col1 / + CAST ( NULL AS INTEGER ) - 37 * col1 col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - 58 AS col0 FROM tab1 AS cor0
----
-58
-58
-58
query I rowsort
SELECT 62 FROM tab1, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
81 values hashing to 0bc652564a158b9c0f7952026f90b60a
query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 FROM tab1 cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1549
SELECT - col1 + col2 - col2 DIV 28 AS col2 FROM tab2 AS cor0
----
-33
-4
20
skipif mysql # not compatible
query I rowsort label-1549
SELECT - col1 + col2 - col2 / 28 AS col2 FROM tab2 AS cor0
----
-33
-4
20
query I rowsort
SELECT + + col1 + 66 * - col1 AS col2 FROM tab1 AS cor0
----
-1690
-650
-845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1551
SELECT ALL - + CAST( col1 AS SIGNED ) * col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97
skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL - + CAST ( col1 AS INTEGER ) * col2 * col2 FROM tab0 AS cor0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1552
SELECT DISTINCT - + col2 + + col2 DIV + col2 FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT - + col2 + + col2 / + col2 FROM tab1 cor0
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * + col2 * - col1 + - cor0.col0 - 37 col2 FROM tab0 AS cor0
----
-139123
-365764
-4825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1554
SELECT DISTINCT col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT ALL - - 50 * - ( + col1 ) * ( + col1 ) + - col2 DIV 24 + col0 FROM tab0 AS cor0
----
-369777
-413964
-470415
skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL - - 50 * - ( + col1 ) * ( + col1 ) + - col2 / 24 + col0 FROM tab0 AS cor0
----
-369777
-413964
-470415
onlyif mysql # use DIV operator for integer division
query I rowsort label-1556
SELECT 95 DIV cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
skipif mysql # not compatible
query I rowsort label-1556
SELECT 95 / cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 43a387ef4ba85927dc3d9d573afc12c9
query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab1 AS cor0
----
9
query I rowsort
SELECT 88 + - col2 AS col1 FROM tab2
----
50
61
62
query I rowsort
SELECT col1 * col1 * + col2 + col2 FROM tab0
----
244101
679124
9410
query I rowsort
SELECT ALL + - col1 * + ( - col0 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - + col2 + - 13 FROM tab1 AS cor0
----
-109
-67
-70
query I rowsort
SELECT + col0 + 55 * + cor0.col1 FROM tab0 cor0
----
4754
5094
5370
query I rowsort
SELECT DISTINCT - col1 - + cor0.col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL - col0 + + col0 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 + cor0.col2 * - col1 AS col1 FROM tab2 cor0
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-1566
SELECT ALL cor0.col1 DIV 86 + - ( - cor0.col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL cor0.col1 / 86 + - ( - cor0.col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + cor0.col1 + 80 + + 95 FROM tab2 AS cor0
----
192
206
234
query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * cor0.col0 + + col2 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1569
SELECT + col1 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1569
SELECT + col1 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * - col0 + ( + col2 ) + col1 FROM tab2
----
1398
275
4687
query I rowsort
SELECT - - col1 + - col0 * + ( + col1 ) FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT col0 + 21 FROM tab0
----
110
45
56
query I rowsort
SELECT + col2 + col2 * ( + col1 ) * col1 FROM tab2
----
11020
25974
90532
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1574
SELECT - CAST( 77 AS SIGNED ) + + cor0.col0 * - 46 FROM tab0 AS cor0
----
-1181
-1687
-4171
skipif mysql # not compatible
query I rowsort label-1574
SELECT - CAST ( 77 AS INTEGER ) + + cor0.col0 * - 46 FROM tab0 AS cor0
----
-1181
-1687
-4171
query I rowsort
SELECT + col1 - 25 FROM tab2
----
-8
34
6
query I rowsort
SELECT 95 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT + 12 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1579
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1579
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2, tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1580
SELECT + CAST( NULL AS SIGNED ) + - ( col1 ) + col0 * - tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1580
SELECT + CAST ( NULL AS INTEGER ) + - ( col1 ) + col0 * - tab2.col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1581
SELECT ALL 73 + - 25 DIV - col1 AS col2 FROM tab1
----
73
74
75
skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL 73 + - 25 / - col1 AS col2 FROM tab1
----
73
74
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT ALL 59 DIV + col0 + col2 * + col2 FROM tab0
----
1091
2
6724
skipif mysql # not compatible
query I rowsort label-1582
SELECT ALL 59 / + col0 + col2 * + col2 FROM tab0
----
1091
2
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col2 col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - - 66 AS col0 FROM tab2 cor0
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT - ( + col1 ) DIV cor0.col0 - - 70 FROM tab0 AS cor0
----
67
68
69
skipif mysql # not compatible
query I rowsort label-1585
SELECT - ( + col1 ) / cor0.col0 - - 70 FROM tab0 AS cor0
----
67
68
69
query I rowsort
SELECT ALL - 17 + col1 * - col0 * 85 + + 23 AS col0 FROM tab1
----
-54394
-6624
-88394
onlyif mysql # use DIV operator for integer division
query I rowsort label-1587
SELECT ALL col0 DIV 54 + + col2 FROM tab1
----
54
58
97
skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL col0 / 54 + + col2 FROM tab1
----
54
58
97
query I rowsort
SELECT DISTINCT - 8 + col1 FROM tab0 AS cor0
----
78
83
89
query I rowsort
SELECT - col0 * col2 + 14 * + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-13643
-50762
-7048
query I rowsort
SELECT ALL ( - col1 ) * - cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1591
SELECT - cor0.col2 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-1591
SELECT - cor0.col2 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT - col0 * - col2 + + ( ( col1 ) ) * + col2 AS col0 FROM tab1 cor0
----
1566
4218
8928
query I rowsort
SELECT + 35 * + cor0.col0 FROM tab0 AS cor0
----
1225
3115
840
onlyif mysql # use DIV operator for integer division
query I rowsort label-1594
SELECT + - col1 DIV col2 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-1594
SELECT + - col1 / col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL + cor0.col0 * - col0 * - 98 FROM tab2 cor0
----
4802
596232
611618
query I rowsort
SELECT DISTINCT 39 + - cor0.col0 FROM tab1 AS cor0
----
-25
-41
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1598
SELECT ALL - col2 * col1 DIV + col2 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1598
SELECT ALL - col2 * col1 / + col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + - 27 * cor0.col2 + - col2 FROM tab1 AS cor0
----
-1512
-1596
-2688
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN col1 AND NULL AND - col2 NOT BETWEEN - col1 AND - col0 + col2 * col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT ALL - col1 + - col0 * + col1 + - tab1.col2 DIV + col0 col2 FROM tab1
----
-1054
-122
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1601
SELECT ALL - col1 + - col0 * + col1 + - tab1.col2 / + col0 col2 FROM tab1
----
-1054
-122
-650
query I rowsort
SELECT ALL + col1 * col2 + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT - col0 + col0 - col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL col0 * + col0 + - col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT DISTINCT col0 + + col2 * col1 AS col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT col0 + - tab1.col1 AS col1 FROM tab1 WHERE col2 * col0 + + col2 >= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1608
SELECT - col2 * tab0.col2 DIV - col0 FROM tab0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-1608
SELECT - col2 * tab0.col2 / - col0 FROM tab0
----
0
45
75
query I rowsort
SELECT - col2 + col1 + col0 AS col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT DISTINCT col0 + col2 * cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT IN ( + col0 - + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1612
SELECT cor0.col0 + col0 DIV col0 + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
57
6163
6321
skipif mysql # not compatible
query I rowsort label-1612
SELECT cor0.col0 + col0 / col0 + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
57
6163
6321
query I rowsort
SELECT col2 * - col2 + col2 - - col2 FROM tab2 AS cor0
----
-1368
-624
-675
query I rowsort
SELECT - - col2 * - col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT ALL - - col2 DIV - col0 col0 FROM tab0 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL - - col2 / - col0 col0 FROM tab0 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + col2 * + cor0.col2 col1 FROM tab1 AS cor0
----
2862
3192
9120
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + - col1 * + col1 AS col1 FROM tab1 cor0
----
-598
540
871
query I rowsort
SELECT ALL + cor0.col2 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL 15 * + col1 FROM tab0 AS cor0
----
1290
1365
1455
onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT DISTINCT + col1 + - col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-1620
SELECT DISTINCT + col1 + - col0 / - col2 AS col0 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT DISTINCT + 93 - - col0 AS col0 FROM tab0 AS cor0
----
117
128
182
query I rowsort
SELECT DISTINCT + col0 + - col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 * - col2 col2 FROM tab2 cor0
----
2496
2592
3648
query I rowsort
SELECT ALL + 97 + - cor0.col1 FROM tab2 AS cor0
----
38
66
80
query I rowsort
SELECT DISTINCT + + col1 * - col1 * - col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT 5 + cor0.col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1243
-1399
-565
query I rowsort
SELECT DISTINCT - + col2 * - col2 + + col2 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT ALL col0 * + cor0.col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + col2 > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT ALL - tab0.col0 DIV - col1 + col2 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL - tab0.col0 / - col1 + col2 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 + - col0 AS col2 FROM tab2
----
-41
-52
20
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - col2
----
query I rowsort
SELECT - col1 + + col2 * - tab1.col2 * col1 FROM tab1
----
-119821
-32500
-75842
query I rowsort
SELECT ALL - col1 + col0 * col2 FROM tab2
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-1635
SELECT col2 - - col2 DIV col0 col0 FROM tab0
----
1
34
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1635
SELECT col2 - - col2 / col0 col0 FROM tab0
----
1
34
82
query I rowsort
SELECT - col1 + col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1637
SELECT DISTINCT + col0 DIV - tab0.col1 + + col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1637
SELECT DISTINCT + col0 / - tab0.col1 + + col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL cor2.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT ALL - col0 + col2 * + col1 * + col2 FROM tab2
----
22592
24469
39806
query I rowsort
SELECT DISTINCT - col1 * col0 * col2 + col0 AS col0 FROM tab1 AS cor0
----
-36416
-4209
-99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1641
SELECT + col1 + - col0 DIV + col0 AS col2 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-1641
SELECT + col1 + - col0 / + col0 AS col2 FROM tab1
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-1642
SELECT - col2 * + cor0.col2 + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-2908
-3249
-9216
skipif mysql # not compatible
query I rowsort label-1642
SELECT - col2 * + cor0.col2 + col1 / col0 AS col1 FROM tab1 AS cor0
----
-2908
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-1643
SELECT ALL col0 * - col2 + col1 DIV col0 + col2 * col1 FROM tab1
----
-3078
-6432
1250
skipif mysql # not compatible
query I rowsort label-1643
SELECT ALL col0 * - col2 + col1 / col0 + col2 * col1 FROM tab1
----
-3078
-6432
1250
query I rowsort
SELECT col1 * + col2 * col2 AS col1 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * - col1 + - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1647
SELECT DISTINCT - col0 DIV - col0 + + col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT - col0 / - col0 + + col1 FROM tab1
----
11
14
27
query I rowsort
SELECT - col1 + col1 AS col2 FROM tab1 WHERE NULL < col0
----
query I rowsort
SELECT DISTINCT + tab1.col1 * col2 + col0 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1650
SELECT ALL col2 DIV + col1 + + col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1650
SELECT ALL col2 / + col1 + + col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2 WHERE NULL >= col2
----
query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 NOT IN ( + col0 )
----
7
78
79
query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) = - col1 / + col1
----
query I rowsort
SELECT + col2 * + col2 + - col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT DISTINCT col1 * + col0 * - col2 FROM tab1 cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * - col1 + + col2 col2 FROM tab2 AS cor0
----
1638
763
871
query I rowsort
SELECT - col0 * col1 + - col0 * col1 * tab2.col0 FROM tab2
----
-107440
-1736
-363558
query I rowsort
SELECT ALL col1 + + tab0.col1 AS col2 FROM tab0
----
172
182
194
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN col2 AND NULL
----
query I rowsort
SELECT ALL - 28 + col2 AS col0 FROM tab1 AS cor0
----
26
29
68
query I rowsort
SELECT + 63 + + 60 FROM tab0 AS cor0
----
123
123
123
query I rowsort
SELECT + 31 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT - 41 * col1 + - col2 FROM tab1
----
-1120
-467
-629
query I rowsort
SELECT + col2 + tab0.col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - ( - col2 ) + - tab1.col1 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col0 * - col0 + 4 FROM tab0 AS cor0
----
-1221
-572
-7917
query I rowsort
SELECT ALL + - 32 * - col0 + 60 FROM tab1 cor0
----
156
2108
2620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 + - col0 col2 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1669
SELECT ALL - col0 * col1 DIV - 61 + + tab0.col2 * + col1 AS col2 FROM tab0
----
152
2871
7594
skipif mysql # not compatible
query I rowsort label-1669
SELECT ALL - col0 * col1 / - 61 + + tab0.col2 * + col1 AS col2 FROM tab0
----
152
2871
7594
query I rowsort
SELECT col1 * - col2 + - tab2.col1 AS col0 FROM tab2
----
-1593
-663
-868
skipif mysql # not compatible
query I rowsort
SELECT + - col2 + CAST ( col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - tab2.col0 * tab2.col0 + + 76 * tab2.col0 + + 27 AS col1 FROM tab2
----
-129
-210
510
query I rowsort
SELECT col1 + - 5 AS col2 FROM tab0
----
81
86
92
query I rowsort
SELECT - + col1 * + ( 28 ) AS col2 FROM tab2 AS cor0
----
-1652
-476
-868
query I rowsort
SELECT DISTINCT cor0.col1 * ( col2 ) FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - - col1 * + cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT - col1 - 38 AS col1 FROM tab1 AS cor0
----
-48
-51
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 * + col2 * col1 col0 FROM tab2 AS cor0
----
118118
49742
64449
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1679
SELECT ALL + CAST( - col0 AS SIGNED ) * col1 + col0 * + 55 * col1 col1 FROM tab0 cor0
----
111456
183330
437346
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1679
SELECT ALL + CAST ( - col0 AS INTEGER ) * col1 + col0 * + 55 * col1 col1 FROM tab0 cor0
----
111456
183330
437346
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - ( + 40 ) FROM tab2 cor0
----
-40
query I rowsort
SELECT ALL + + 2 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1042
642
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * + col0 + col1 + col0 * + col1 col1 FROM tab0 AS cor0
----
1574
2267
269
query I rowsort
SELECT + col1 + 88 + col0 FROM tab2 AS cor0
----
126
184
225
query I rowsort
SELECT ALL col2 + - 37 AS col0 FROM tab2 AS cor0
----
-10
-11
1
query I rowsort
SELECT ALL + 85 * - cor0.col1 FROM tab2 AS cor0
----
-1445
-2635
-5015
onlyif mysql # use DIV operator for integer division
query I rowsort label-1687
SELECT - col0 + + col0 DIV col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-1687
SELECT - col0 + + col0 / col2 FROM tab0 AS cor0
----
-24
-88
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1688
SELECT ALL CAST( col1 AS SIGNED ) + - col0 + - ( cor0.col0 ) FROM tab1 AS cor0
----
-118
-147
20
skipif mysql # not compatible
query I rowsort label-1688
SELECT ALL CAST ( col1 AS INTEGER ) + - col0 + - ( cor0.col0 ) FROM tab1 AS cor0
----
-118
-147
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1689
SELECT DISTINCT col1 + - ( - col0 ) * - CAST( - col1 AS SIGNED ) * - col0 AS col1 FROM tab2 cor0
----
-106080
-1488
-358897
skipif mysql # not compatible
query I rowsort label-1689
SELECT DISTINCT col1 + - ( - col0 ) * - CAST ( - col1 AS INTEGER ) * - col0 AS col1 FROM tab2 cor0
----
-106080
-1488
-358897
query I rowsort
SELECT col2 * - 87 * col0 AS col0 FROM tab0
----
-3045
-634926
-68904
query I rowsort
SELECT DISTINCT - 25 + 12 - + col0 FROM tab1 AS cor0
----
-16
-77
-93
query I rowsort
SELECT col2 + ( col1 ) AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - ( - col2 * - col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - 83 AS col2 FROM tab0 AS cor0
----
-83
-83
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col0 FROM tab0 AS cor0
----
61
query I rowsort
SELECT ALL + - col0 + + 9 AS col2 FROM tab1 AS cor0
----
-55
-71
6
query I rowsort
SELECT - + ( col2 ) + - col2 FROM tab0 cor0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1699
SELECT CAST( NULL AS SIGNED ) * + tab2.col0 * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1699
SELECT CAST ( NULL AS INTEGER ) * + tab2.col0 * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1406
-650
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-1701
SELECT - - 95 + col1 DIV - col1 FROM tab0 AS cor0
----
94
94
94
skipif mysql # not compatible
query I rowsort label-1701
SELECT - - 95 + col1 / - col1 FROM tab0 AS cor0
----
94
94
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * + col1 + col2 col1 FROM tab0 AS cor0
----
6913
7362
7761
query I rowsort
SELECT DISTINCT 44 + col1 + - col0 * - col1 FROM tab1 AS cor0
----
1097
148
694
onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT + 2 + ( tab2.col1 ) DIV col1 FROM tab2
----
3
3
3
skipif mysql # not compatible
query I rowsort label-1704
SELECT + 2 + ( tab2.col1 ) / col1 FROM tab2
----
3
3
3
query I rowsort
SELECT + col2 * col2 * - col2 + tab2.col2 AS col0 FROM tab2
----
-17550
-19656
-54834
query I rowsort
SELECT ALL col0 * col0 + tab0.col2 FROM tab0
----
1226
609
8003
query I rowsort
SELECT DISTINCT col1 + 43 * + col2 * col0 FROM tab1
----
156874
330253
6992
query I rowsort
SELECT 31 + - col0 * - col0 AS col1 FROM tab2
----
6115
6272
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1709
SELECT - - col1 + + CAST( col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
138
173
32
skipif mysql # not compatible
query I rowsort label-1709
SELECT - - col1 + + CAST ( col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT - - col1 * + 29 FROM tab2 AS cor0
----
1711
493
899
onlyif mysql # use DIV operator for integer division
query I rowsort label-1711
SELECT + col2 DIV ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1711
SELECT + col2 / ( + col1 ) + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + + col0 + - ( + col0 ) * + col1 * + cor0.col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT + cor0.col2 * col2 * col1 + col0 + col0 AS col1 FROM tab1 AS cor0
----
119968
32618
75822
query I rowsort
SELECT - col2 * + col1 - cor0.col0 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-1715
SELECT col2 DIV 5 - - col0 * col0 FROM tab1 AS cor0
----
19
4107
6419
skipif mysql # not compatible
query I rowsort label-1715
SELECT col2 / 5 - - col0 * col0 FROM tab1 AS cor0
----
19
4107
6419
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1716
SELECT ALL col1 * CAST( NULL AS SIGNED ) + + 38 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1716
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + + 38 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 - col0 * + cor0.col1 AS col2 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - - col0 * 91 - + cor0.col2 FROM tab1 AS cor0
----
219
5767
7184
onlyif mysql # use DIV operator for integer division
query I rowsort label-1719
SELECT ALL + col2 * - ( 73 ) + col2 DIV + col1 + - col0 * - col2 * + col0 FROM tab1 AS cor0
----
-3454
229316
607399
skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL + col2 * - ( 73 ) + col2 / + col1 + - col0 * - col2 * + col0 FROM tab1 AS cor0
----
-3454
229316
607399
onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT col0 * - col0 - - 83 DIV + 94 FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-1720
SELECT col0 * - col0 - - 83 / + 94 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL - + 4 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 22 + 95 * col1 col2 FROM tab2
----
1716
2974
5705
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1723
SELECT DISTINCT tab1.col2 + + CAST( + 11 AS SIGNED ) AS col1 FROM tab1
----
107
65
68
skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT tab1.col2 + + CAST ( + 11 AS INTEGER ) AS col1 FROM tab1
----
107
65
68
query I rowsort
SELECT DISTINCT col1 * tab0.col2 + - 79 * col2 AS col0 FROM tab0
----
18
231
984
query I rowsort
SELECT col1 + col0 + + 19 FROM tab1 AS cor0
----
112
48
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( + col2 ) col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + col1 - - col2 * - col2 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - col1 * - ( - cor0.col2 ) * - col0 + - col0 AS col1 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT col0 + - 41 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-12
33
52
query I rowsort
SELECT col2 * 51 AS col1 FROM tab1
----
2754
2907
4896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1731
SELECT - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1731
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT - + col0 * + col2 - + col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + col0 * 48 - + col0 FROM tab1 AS cor0
----
141
3008
3760
query I rowsort
SELECT - + ( col1 ) * + col0 + + ( ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT - col0 * 80 FROM tab1
----
-240
-5120
-6400
query I rowsort
SELECT DISTINCT ( - 11 ) + col2 AS col2 FROM tab0
----
-10
22
71
query I rowsort
SELECT - + col0 * - col0 * + ( cor0.col0 ) + col1 AS col1 FROM tab0 AS cor0
----
13910
42972
705060
query I rowsort
SELECT - ( 9 ) * - col2 * 74 FROM tab1
----
35964
37962
63936
query I rowsort
SELECT col0 * - ( + tab2.col1 ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT DISTINCT + col2 DIV 56 AS col0 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT + col2 / 56 AS col0 FROM tab0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1742
SELECT DISTINCT - - cor0.col2 DIV col0 AS col2 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT - - cor0.col2 / col0 AS col2 FROM tab0 cor0
----
0
1
query I rowsort
SELECT + 85 * - cor0.col0 * - ( - col2 ) FROM tab1 AS cor0
----
-13770
-310080
-652800
onlyif mysql # use DIV operator for integer division
query I rowsort label-1744
SELECT + col0 DIV + col2 + - 96 AS col0 FROM tab0 AS cor0
----
-61
-95
-96
skipif mysql # not compatible
query I rowsort label-1744
SELECT + col0 / + col2 + - 96 AS col0 FROM tab0 AS cor0
----
-61
-95
-96
query I rowsort
SELECT ALL + 18 + cor0.col2 FROM tab0 AS cor0
----
100
19
51
query I rowsort
SELECT DISTINCT + + col0 + col2 * ( col2 ) FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT 69 * col2 * - col2 AS col1 FROM tab2 AS cor0
----
-46644
-50301
-99636
query I rowsort
SELECT DISTINCT col0 + - col1 * 59 AS col0 FROM tab2 AS cor0
----
-1822
-3403
-924
query I rowsort
SELECT ALL + ( tab1.col0 + - col0 ) * col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - - cor0.col0 * col0 + + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT - col2 * - col1 + - 66 * + col0 AS col0 FROM tab2 AS cor0
----
-3614
-4568
375
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 + + col2 * + col2 col2 FROM tab2
----
1529
761
814
query I rowsort
SELECT col2 * - ( 53 ) * + col2 AS col1 FROM tab2 AS cor0
----
-35828
-38637
-76532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 83 col2 FROM tab1
----
4482
4731
7968
query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
-96
query I rowsort
SELECT - + col0 + col1 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
-11061
-25954
-90584
query I rowsort
SELECT col1 * - ( col1 ) FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + cor0.col0 * + col1 + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 71 * col2 col0 FROM tab2 cor0
----
-102524
-47996
-51759
query I rowsort
SELECT - col0 * 16 AS col2 FROM tab2 AS cor0
----
-112
-1248
-1264
query I rowsort
SELECT - col2 + - ( col1 ) FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT cor0.col0 * + 84 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT - cor0.col0 * col0 + - col0 * col1 * - col0 AS col2 FROM tab0 AS cor0
----
117600
48960
712890
query I rowsort
SELECT ALL + tab1.col1 * + ( col0 ) FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1765
SELECT - CAST( NULL AS SIGNED ) + + col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1765
SELECT - CAST ( NULL AS INTEGER ) + + col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 * col0 - + col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + col1 + - 17 FROM tab1 AS cor0
----
-4
-7
9
query I rowsort
SELECT 72 + - col0 AS col0 FROM tab0 AS cor0
----
-17
37
48
query I rowsort
SELECT + col2 * - 16 AS col1 FROM tab1 AS cor0
----
-1536
-864
-912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1770
SELECT ( + col2 ) * + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-1770
SELECT ( + col2 ) * + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - 42 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
-42
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT + + col1 * + cor0.col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - 46 + - col2 FROM tab2 AS cor0
----
-72
-73
-84
query I rowsort
SELECT ALL - 17 AS col0 FROM tab0 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ALL - col2 + + 48 - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1296
-1410
-579
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + - cor0.col2 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - - cor0.col0 + col1 * + col1 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT - - 31 * 91 + col0 AS col1 FROM tab2 AS cor0
----
2828
2899
2900
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - ( col2 + ( cor0.col1 ) ) col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - + col0 * + cor0.col0 + col1 AS col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - col2 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL 39 AS col1 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT - - ( ( col0 ) ) + cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - cor0.col1 * 82 + cor0.col2 FROM tab0 AS cor0
----
-7019
-7380
-7953
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1786
SELECT DISTINCT - CAST( 5 AS SIGNED ) FROM tab2 AS cor0
----
-5
skipif mysql # not compatible
query I rowsort label-1786
SELECT DISTINCT - CAST ( 5 AS INTEGER ) FROM tab2 AS cor0
----
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1787
SELECT ALL + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1788
SELECT ALL tab2.col2 * + CAST( 90 * col1 AS SIGNED ) + + tab2.col1 AS col1 FROM tab2
----
138119
58157
75361
skipif mysql # not compatible
query I rowsort label-1788
SELECT ALL tab2.col2 * + CAST ( 90 * col1 AS INTEGER ) + + tab2.col1 AS col1 FROM tab2
----
138119
58157
75361
query I rowsort
SELECT + 26 + - 40 FROM tab0 AS cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT - col1 + 56 AS col2 FROM tab2 AS cor0
----
-3
25
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1791
SELECT ALL - - cor0.col1 * + col1 - - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1791
SELECT ALL - - cor0.col1 * + col1 - - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 6 * + col2 + col0 - - 48 FROM tab0 AS cor0
----
270
629
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + col2 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col0 - - col0 * - col1 AS col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + - 8 * col2 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1353
-7380
-9
query I rowsort
SELECT DISTINCT 94 - 36 * - tab1.col0 AS col2 FROM tab1, tab0 cor0, tab1 AS cor1
----
202
2398
2974
query I rowsort
SELECT ALL col1 * + ( col1 ) + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + col1 + col1 * col2 * - col2 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT ALL + + cor0.col1 * col1 + 0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col0 * ( - 95 ) AS col0 FROM tab2 AS cor0
----
-665
-7410
-7505
onlyif mysql # use DIV operator for integer division
query I rowsort label-1801
SELECT ALL - 50 * col2 DIV col0 - col2 AS col1 FROM tab2
----
-219
-42
-62
skipif mysql # not compatible
query I rowsort label-1801
SELECT ALL - 50 * col2 / col0 - col2 AS col1 FROM tab2
----
-219
-42
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1802
SELECT ALL - col1 DIV + col1 - col2 * col0 AS col2 FROM tab0
----
-36
-7299
-793
skipif mysql # not compatible
query I rowsort label-1802
SELECT ALL - col1 / + col1 - col2 * col0 AS col2 FROM tab0
----
-36
-7299
-793
query I rowsort
SELECT ALL col0 + - ( 81 + col1 ) * ( 14 ) FROM tab0
----
-2314
-2319
-2457
query I rowsort
SELECT ALL + col0 * ( + 53 ) + - col1 AS col2 FROM tab0
----
1186
1758
4626
query I rowsort
SELECT DISTINCT - col1 * 30 + - cor0.col2 FROM tab0 AS cor0
----
-2613
-2812
-2911
query I rowsort
SELECT cor0.col1 - col2 * - col0 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL + col0 + col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - col2 * + ( 41 * - col0 ) - 55 FROM tab1 AS cor0
----
149513
314825
6587
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 15 * - 90 col0 FROM tab2 AS cor0
----
-1291
-1319
-1333
query I rowsort
SELECT DISTINCT - 93 * cor0.col0 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-2232
-3255
-8277
query I rowsort
SELECT - col2 * - col0 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT col1 * col1 * + 88 + col0 FROM tab2
----
25511
306406
84575
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1814
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + + col2 + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1814
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + + col2 + col2 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col0 * col2 * cor0.col1 FROM tab1 AS cor0
----
36490
4238
99853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1816
SELECT DISTINCT col0 / + CAST( NULL AS SIGNED ) + - col1 / + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT col0 / + CAST ( NULL AS INTEGER ) + - col1 / + col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT ALL col1 * col0 + - tab1.col1 * + col1 * - col1 + col2 DIV col2 AS col2 FROM tab1
----
1641
17655
3238
skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL col1 * col0 + - tab1.col1 * + col1 * - col1 + col2 / col2 AS col2 FROM tab1
----
1641
17655
3238
query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab0, tab2 cor0
----
7
query I rowsort
SELECT + 52 * 64 * - cor0.col1 FROM tab1 AS cor0
----
-33280
-43264
-86528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col2 FROM tab2 AS cor0
----
-19
query I rowsort
SELECT col0 + - 53 FROM tab2 AS cor0
----
-46
25
26
query I rowsort
SELECT ALL - + cor0.col0 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col1 FROM tab2 AS cor0
----
-94
-94
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab0
----
-43
query I rowsort
SELECT - col2 * + col2 * tab2.col0 AS col1 FROM tab2
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1826
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT CAST ( NULL AS REAL ) * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 53 * + 40 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to fcc3b82a1644dbfff75d0d3b20a5e90c
query I rowsort
SELECT 85 * + col1 AS col0 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT ALL + + 99 + - col0 * col1 AS col2 FROM tab1 cor0
----
-541
-941
21
query I rowsort
SELECT DISTINCT + 90 * - col1 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT + col1 * + col0 + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab2 AS cor0
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1833
SELECT DISTINCT + cor0.col0 * col1 DIV - 16 AS col2 FROM tab2 AS cor0
----
-13
-287
-83
skipif mysql # not compatible
query I rowsort label-1833
SELECT DISTINCT + cor0.col0 * col1 / - 16 AS col2 FROM tab2 AS cor0
----
-13
-287
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1834
SELECT + col2 / + col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1834
SELECT + col2 / + col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1835
SELECT ALL + 46 * col0 + CAST( NULL AS DECIMAL ) + + 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-1835
SELECT ALL + 46 * col0 + CAST ( NULL AS REAL ) + + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 - col2 * - col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 * - col0 FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1838
SELECT - ( col0 ) + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1838
SELECT - ( col0 ) + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( col2 ) + + 0 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1840
SELECT DISTINCT + col0 DIV + col2 AS col0 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1840
SELECT DISTINCT + col0 / + col2 AS col0 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT ALL - col0 * col0 + ( + col0 ) FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT 33 * col1 FROM tab1 AS cor0
----
330
429
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT DISTINCT + col0 DIV ( + col0 ) AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1843
SELECT DISTINCT + col0 / ( + col0 ) AS col1 FROM tab1 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1844
SELECT - col1 + - ( - 86 ) * col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
60
73
76
skipif mysql # not compatible
query I rowsort label-1844
SELECT - col1 + - ( - 86 ) * col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
60
73
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT col0 DIV + 53 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1845
SELECT col0 / + 53 FROM tab0 cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT - col1 - - CAST( + 15 AS SIGNED ) FROM tab2 AS cor0
----
-16
-2
-44
skipif mysql # not compatible
query I rowsort label-1846
SELECT - col1 - - CAST ( + 15 AS INTEGER ) FROM tab2 AS cor0
----
-16
-2
-44
query I rowsort
SELECT col1 * cor0.col1 + + col1 * + col2 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT DISTINCT + col2 * - col1 + - col1 * cor0.col1 + - cor0.col2 * cor0.col0 * col1 AS col2 FROM tab0 AS cor0
----
-12901
-679861
-78346
query I rowsort
SELECT - 48 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
query I rowsort
SELECT - tab2.col0 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT - tab2.col1 AS col2 FROM tab2, tab1, tab0 AS cor0, tab0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col2 FROM tab0
----
8
8
8
query I rowsort
SELECT ALL + 22 FROM tab0, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 * - col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT - 2 * + 47 * + col0 AS col1 FROM tab0
----
-2256
-3290
-8366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1856
SELECT CAST( - col2 * + col2 + col1 AS SIGNED ) AS col0 FROM tab2
----
-1427
-617
-698
skipif mysql # not compatible
query I rowsort label-1856
SELECT CAST ( - col2 * + col2 + col1 AS INTEGER ) AS col0 FROM tab2
----
-1427
-617
-698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1857
SELECT - CAST( - 36 AS SIGNED ) * - col2 + - ( 53 * + col1 ) col0 FROM tab1
----
-2582
-3322
-4145
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1857
SELECT - CAST ( - 36 AS INTEGER ) * - col2 + - ( 53 * + col1 ) col0 FROM tab1
----
-2582
-3322
-4145
query I rowsort
SELECT + col2 * - col1 + - col0 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-1859
SELECT - col0 + 20 DIV 25 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1859
SELECT - col0 + 20 / 25 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col2 + + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT col2 + - ( - col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col2 * col0 * ( col0 ) + + col0 * col2 FROM tab0 AS cor0
----
1260
19800
656820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1863
SELECT ALL - + col2 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL - + col2 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - col0 * 48 FROM tab2 AS cor0
----
-336
-3744
-3792
query I rowsort
SELECT DISTINCT + col1 + 8 FROM tab2 cor0
----
25
39
67
query I rowsort
SELECT ALL - cor0.col2 * ( col2 * - col1 ) - col1 FROM tab2 AS cor0
----
22568
24531
39825
query I rowsort
SELECT DISTINCT - col2 + - col0 * col2 + - col2 * col2 AS col0 FROM tab1
----
-16992
-3132
-6954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1868
SELECT ALL + 73 + col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1868
SELECT ALL + 73 + col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1869
SELECT ALL - tab1.col0 * col2 + CAST( - col2 + col0 AS SIGNED ) * - 60 AS col0 FROM tab1
----
-4068
-6720
2898
skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL - tab1.col0 * col2 + CAST ( - col2 + col0 AS INTEGER ) * - 60 AS col0 FROM tab1
----
-4068
-6720
2898
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1870
SELECT - + col0 * CAST( NULL AS SIGNED ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1870
SELECT - + col0 * CAST ( NULL AS INTEGER ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 36 + col1 AS col2 FROM tab0 AS cor0
----
122
127
133
query I rowsort
SELECT - col1 * col2 + - tab0.col2 AS col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT + tab1.col0 * 4 AS col2 FROM tab1
----
12
256
320
query I rowsort
SELECT ALL + + col1 * - 41 FROM tab2 AS cor0
----
-1271
-2419
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT DISTINCT + - col2 DIV 63 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1875
SELECT DISTINCT + - col2 / 63 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - 13 + col2 AS col2 FROM tab2 AS cor0
----
13
14
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1877
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1877
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 * ( col2 ) FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT 49 * + ( col2 * + cor0.col0 ) AS col0 FROM tab2 AS cor0
----
147098
9261
99372
query I rowsort
SELECT - ( + col0 ) * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-6143
-6258
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT + col1 + col2 DIV - col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-1881
SELECT + col1 + col2 / - col0 FROM tab1 AS cor0
----
10
12
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1882
SELECT col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1882
SELECT col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + 74 * + col1 FROM tab2
----
21386
257594
71114
query I rowsort
SELECT 74 AS col2 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT - ( 60 ) + tab2.col0 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 780d3b84f6059e5c05bc4a86e9fc8cb1
query I rowsort
SELECT DISTINCT + col0 * 65 AS col1 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT DISTINCT + ( + tab2.col0 ) AS col0 FROM tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + ( tab1.col1 ) FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT + + col1 + - col2 DIV col1 + 89 * col2 FROM tab1 AS cor0
----
4830
5078
8550
skipif mysql # not compatible
query I rowsort label-1889
SELECT + + col1 + - col2 / col1 + 89 * col2 FROM tab1 AS cor0
----
4830
5078
8550
onlyif mysql # use DIV operator for integer division
query I rowsort label-1890
SELECT - + col2 + + col1 * cor0.col0 DIV + 95 col2 FROM tab0 AS cor0
----
-12
3
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1890
SELECT - + col2 + + col1 * cor0.col0 / + 95 col2 FROM tab0 AS cor0
----
-12
3
34
query I rowsort
SELECT col2 + 83 - - col2 AS col1 FROM tab2
----
135
137
159
query I rowsort
SELECT col0 * - col1 * cor0.col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - 42 * col0 + + col1 AS col2 FROM tab1
----
-100
-2678
-3347
query I rowsort
SELECT DISTINCT - + 2 * col0 + 3 FROM tab0 AS cor0
----
-175
-45
-67
query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 * + 7 AS col2 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT ALL 13 + col0 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
-22
-7285
-779
query I rowsort
SELECT DISTINCT cor0.col0 * 93 FROM tab0, tab2 cor0
----
651
7254
7347
query I rowsort
SELECT col2 * - 36 * + col2 - col1 * col0 FROM tab2 AS cor0
----
-26461
-28938
-53327
query I rowsort
SELECT + col0 * 99 + - col2 + - col0 FROM tab1 AS cor0
----
240
6215
7744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1900
SELECT + col1 + - CAST( - col1 * + cor0.col2 AS SIGNED ) - + 62 * ( - col2 + - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-1900
SELECT + col1 + - CAST ( - col1 * + cor0.col2 AS INTEGER ) - + 62 * ( - col2 + - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-1901
SELECT ALL col1 DIV tab0.col0 AS col1 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL col1 / tab0.col0 AS col1 FROM tab0
----
1
2
3
query I rowsort
SELECT col0 * + 4 AS col0 FROM tab2
----
28
312
316
onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT tab2.col1 DIV - 81 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1903
SELECT tab2.col1 / - 81 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + 75 FROM tab1 cor0
----
75
query I rowsort
SELECT ALL - + cor0.col1 - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + col1 * + col1 + ( + cor0.col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1417
2080
670
query I rowsort
SELECT + col1 + - col1 * 89 FROM tab1 AS cor0
----
-1144
-2288
-880
query I rowsort
SELECT DISTINCT - - col2 * cor0.col1 * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - col1 * cor0.col0 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1910
SELECT DISTINCT + cor0.col2 * col0 + - CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT + cor0.col2 * col0 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL + - cor0.col0 - col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1912
SELECT + col1 * col1 DIV + col2 + - 37 FROM tab1 AS cor0
----
-25
-36
-36
skipif mysql # not compatible
query I rowsort label-1912
SELECT + col1 * col1 / + col2 + - 37 FROM tab1 AS cor0
----
-25
-36
-36
query I rowsort
SELECT ALL - 49 * + col1 AS col2 FROM tab0 AS cor0
----
-4214
-4459
-4753
query I rowsort
SELECT DISTINCT + - col0 * + 76 FROM tab1 cor0
----
-228
-4864
-6080
query I rowsort
SELECT ALL - 34 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1916
SELECT DISTINCT + cor0.col1 + col2 DIV 90 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + cor0.col1 + col2 / 90 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 + col2 col0 FROM tab2
----
-16
-17
-5
query I rowsort
SELECT - ( col0 * col2 ) - - 47 * - col2 AS col2 FROM tab0
----
-11152
-2343
-82
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) * col1 * 93 + col0 - + col1 FROM tab2 AS cor0
----
-26815
-323714
-89397
query I rowsort
SELECT ( - 87 ) + - col0 * + cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-3482
-664205
-68199
query I rowsort
SELECT + 25 * - 64 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to b1413d3ae1d45bc8ed4a3d9be5929c15
query I rowsort
SELECT cor0.col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT - col2 DIV - col2 + - col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1925
SELECT - col2 / - col2 + - col0 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT - col1 * 42 FROM tab0
----
-3612
-3822
-4074
query I rowsort
SELECT ALL - ( 7 + col2 ) FROM tab1
----
-103
-61
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1928
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 37 col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1928
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 37 col0 FROM tab2
----
NULL
query I rowsort
SELECT ALL + 71 + col2 * tab2.col0 FROM tab2
----
2099
260
3073
query I rowsort
SELECT - tab1.col1 + col2 + - ( 71 * tab1.col2 ) FROM tab1
----
-3806
-4000
-6733
query I rowsort
SELECT ALL col2 * tab2.col0 + + col0 * - col1 FROM tab2
----
-2574
-28
1659
query I rowsort
SELECT - tab2.col2 + + 85 AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to a734b22d01523e12d4252b293fe7b718
query I rowsort
SELECT ALL tab1.col2 + + col1 * + col1 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + + col0 + cor0.col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab1 cor0
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-1937
SELECT col2 DIV + 12 + - col2 col1 FROM tab1
----
-50
-53
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1937
SELECT col2 / + 12 + - col2 col1 FROM tab1
----
-50
-53
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1938
SELECT - col2 + - ( + tab1.col2 ) * tab1.col0 DIV ( 53 ) FROM tab1
----
-125
-240
-57
skipif mysql # not compatible
query I rowsort label-1938
SELECT - col2 + - ( + tab1.col2 ) * tab1.col0 / ( 53 ) FROM tab1
----
-125
-240
-57
query I rowsort
SELECT ALL - 29 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
query I rowsort
SELECT - col1 - - col0 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL - col1 + + 71 AS col2 FROM tab2
----
12
40
54
query I rowsort
SELECT ALL - col1 + ( + tab2.col1 ) * col2 AS col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT DISTINCT 72 FROM tab0, tab0 AS cor0
----
72
query I rowsort
SELECT - + 8 AS col1 FROM tab1 AS cor0
----
-8
-8
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 col1 FROM tab0 AS cor0
----
9
query I rowsort
SELECT ALL cor0.col1 * 87 FROM tab1 AS cor0
----
1131
2262
870
query I rowsort
SELECT 13 + + 89 AS col1 FROM tab2 AS cor0
----
102
102
102
onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT + CAST( + col0 AS SIGNED ) DIV - col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1948
SELECT + CAST ( + col0 AS INTEGER ) / - col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - - 21 * - 29 AS col1 FROM tab1 cor0
----
-609
-609
-609
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-1951
SELECT ALL + cor0.col1 DIV - 68 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL + cor0.col1 / - 68 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 99 AS col0 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT + - 43 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-10
-42
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1954
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL ( + 27 ) AS col0 FROM tab1 cor0
----
27
27
27
query I rowsort
SELECT - - 37 * - 95 FROM tab0 AS cor0
----
-3515
-3515
-3515
query I rowsort
SELECT DISTINCT + 89 + - 80 * + col0 * col2 AS col1 FROM tab2 AS cor0
----
-15031
-162151
-240071
query I rowsort
SELECT DISTINCT + 92 * + col0 FROM tab1 AS cor0
----
276
5888
7360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1959
SELECT ALL col1 * col2 DIV - col0 col1 FROM tab0
----
-118
-2
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL col1 * col2 / - col0 col1 FROM tab0
----
-118
-2
-83
query I rowsort
SELECT ALL col2 * - 31 AS col1 FROM tab2
----
-1178
-806
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1961
SELECT DISTINCT + ( 23 ) DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT + ( 23 ) / col1 FROM tab0
----
0
query I rowsort
SELECT ALL col0 * ( tab2.col1 ) + col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT - + col2 * + col0 + + col0 * col0 * + col0 FROM tab1 AS cor0
----
-135
258496
504320
query I rowsort
SELECT ( + col2 ) + - col0 AS col0 FROM tab1 cor0
----
-7
16
51
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT DISTINCT - + 84 + 85 * cor0.col0 FROM tab1 AS cor0
----
171
5356
6716
query I rowsort
SELECT ALL + + ( col1 ) + col1 * col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT col1 + col0 - col2 AS col2 FROM tab2 AS cor0
----
11
111
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + + col2 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 + - col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-1509
-2615
-7888
query I rowsort
SELECT + 12 + col0 * cor0.col2 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT - col0 * col1 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL - col1 + ( + col2 ) + + col2 FROM tab2
----
-7
23
59
query I rowsort
SELECT ALL 97 + col0 FROM tab0
----
121
132
186
query I rowsort
SELECT - 78 AS col2 FROM tab2 cor0
----
-78
-78
-78
query I rowsort
SELECT col1 + + col0 - col1 FROM tab1 AS cor0
----
3
64
80
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + col1 * col1
----
query I rowsort
SELECT col2 * col1 + - tab2.col1 + tab2.col0 AS col0 FROM tab2
----
1553
708
813
query I rowsort
SELECT DISTINCT + col2 + col1 + col2 * - col0 AS col1 FROM tab2
----
-131
-1943
-2947
query I rowsort
SELECT tab2.col2 * col0 * col2 AS col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col0 * - col1 + - tab1.col2 - - tab1.col2 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1983
SELECT DISTINCT col2 DIV + tab1.col1 + col2 + tab1.col0 FROM tab1
----
126
183
59
skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT col2 / + tab1.col1 + col2 + tab1.col0 FROM tab1
----
126
183
59
query I rowsort
SELECT ALL - col2 * col0 + col2 + + col0 FROM tab1 AS cor0
----
-105
-3527
-7504
query I rowsort
SELECT + col0 * + col1 * - col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + col1 * col0 - - col0 * cor0.col0 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT DISTINCT col2 - col2 FROM tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col1 * col1 + + col0 * - tab1.col2 * + col0 AS col0 FROM tab1
----
-233372
-614231
190
query I rowsort
SELECT + col1 - + col0 * - col0 AS col1 FROM tab2
----
6143
6258
80
query I rowsort
SELECT + col0 * col2 - col1 * col1 FROM tab0
----
-6604
-9374
-983
query I rowsort
SELECT - col0 / + col0 FROM tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT - col1 * col1 * tab0.col1 AS col0 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT DISTINCT col1 * col1 + - col0 AS col2 FROM tab1
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT + col1 DIV col1 + + col2 * col0 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-1995
SELECT + col1 / col1 + + col2 * col0 FROM tab1
----
163
3649
7681
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE ( col1 ) <= ( NULL )
----
query I rowsort
SELECT - col1 * col0 * + tab1.col1 AS col0 FROM tab1
----
-13520
-2028
-6400
query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 - col2 * col0 ) NOT BETWEEN NULL AND ( + col1 )
----
query I rowsort
SELECT ALL col2 + - col2 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT ALL col2 * col1 + - tab1.col1 FROM tab1
----
1235
1378
560
query I rowsort
SELECT col1 FROM tab0 WHERE NOT ( col0 ) BETWEEN NULL AND + col0 + + col2 + col0
----
query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 BETWEEN + col0 AND NULL
----
query I rowsort
SELECT DISTINCT + col1 + + col2 * + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-157438
-185183
-884723
query I rowsort
SELECT + col0 * col2 * - col0 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL col0 - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - col2 + + col2 * cor0.col0 FROM tab0 cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT DISTINCT col1 + + cor0.col2 + - col1 DIV cor0.col1 FROM tab0 AS cor0
----
118
172
97
skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT col1 + + cor0.col2 + - col1 / cor0.col1 FROM tab0 AS cor0
----
118
172
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 - col0 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT col1 * - col2 * col0 + - col1 AS col1 FROM tab1
----
-36490
-4238
-99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-2010
SELECT - col2 - col1 DIV col1 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-2010
SELECT - col2 - col1 / col1 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT tab0.col2 * - col0 + 71 AS col2 FROM tab0
----
-721
-7227
36
query I rowsort
SELECT DISTINCT 34 FROM tab1, tab1 AS cor0, tab1 cor1
----
34
query I rowsort
SELECT + - col2 * cor0.col2 + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT col0 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-2015
SELECT DISTINCT - tab2.col2 DIV 17 AS col0 FROM tab2
----
-1
-2
skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - tab2.col2 / 17 AS col0 FROM tab2
----
-1
-2
query I rowsort
SELECT - 74 - col1 FROM tab1 AS cor0
----
-100
-84
-87
query I rowsort
SELECT + col0 + + 76 FROM tab2 AS cor0
----
154
155
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2018
SELECT ALL - + col0 DIV - col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - + col0 / - col0 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2019
SELECT DISTINCT 70 + - col0 DIV - col1 + 68 DIV cor0.col1 FROM tab0 AS cor0
----
70
skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT 70 + - col0 / - col1 + 68 / cor0.col1 FROM tab0 AS cor0
----
70
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) - - col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - col1 * - 42 * col0 + cor0.col2 * + col1 FROM tab0 AS cor0
----
142687
347620
89526
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2022
SELECT ALL CAST( + col0 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-2022
SELECT ALL CAST ( + col0 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 - - 13 FROM tab0 AS cor0
----
102
37
48
query I rowsort
SELECT ALL - + col2 + + 98 * - col1 FROM tab0 AS cor0
----
-8461
-9000
-9507
query I rowsort
SELECT ( col2 ) - + col1 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT - col1 + col0 * col2 * 66 FROM tab2 AS cor0
----
12443
133789
198115
query I rowsort
SELECT ALL + - 30 AS col0 FROM tab0 cor0
----
-30
-30
-30
query I rowsort
SELECT DISTINCT + 78 * col1 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT + col1 - col1 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT + 80 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2030
SELECT + 80 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 64 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2032
SELECT col2 + - col2 * CAST( col1 * col0 AS SIGNED ) FROM tab0
----
-3394
-664036
-68079
skipif mysql # not compatible
query I rowsort label-2032
SELECT col2 + - col2 * CAST ( col1 * col0 AS INTEGER ) FROM tab0
----
-3394
-664036
-68079
onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT DISTINCT + col2 DIV - col0 + col2 FROM tab2 AS cor0
----
24
26
38
skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT + col2 / - col0 + col2 FROM tab2 AS cor0
----
24
26
38
query I rowsort
SELECT ALL - col2 * col0 + 70 * - col1 + col1 FROM tab1 AS cor0
----
-1956
-4338
-8577
query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - - col0 * col1 + col1 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 + 64 col1 FROM tab2 cor0
----
64
query I rowsort
SELECT DISTINCT - 46 + col2 * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
1319
552
676
query I rowsort
SELECT ALL + cor0.col2 + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - 77 FROM tab2, tab1 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT cor0.col0 + - col0 * + col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - cor0.col2 + 55 AS col1 FROM tab1 AS cor0
----
-2
-41
1
query I rowsort
SELECT + ( - 5 ) * cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 291214d7e7b04fb5cda904908ec550c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2045
SELECT - + col1 * CAST( 18 * col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
-24174
-3906
-82836
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2045
SELECT - + col1 * CAST ( 18 * col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
-24174
-3906
-82836
query I rowsort
SELECT - col2 + - 80 AS col1 FROM tab2 AS cor0
----
-106
-107
-118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + col0 col2 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - - col2 + + ( + 47 ) AS col1 FROM tab1 cor0
----
101
104
143
query I rowsort
SELECT ALL - col2 + - cor0.col2 AS col2 FROM tab0 cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2050
SELECT DISTINCT + col1 DIV - cor0.col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT + col1 / - cor0.col0 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-5
64
80
query I rowsort
SELECT ALL + - col0 - 33 FROM tab2 AS cor0
----
-111
-112
-40
query I rowsort
SELECT ALL + col1 * col1 + - tab0.col1 AS col2 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT + 75 * col0 - + tab2.col0 FROM tab2
----
518
5772
5846
query I rowsort
SELECT + + col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - cor0.col1 + + 53 FROM tab1 AS cor0
----
27
40
43
query I rowsort
SELECT ( + 95 ) AS col0 FROM tab0 AS cor0
----
95
95
95
query I rowsort
SELECT - tab0.col0 * 16 FROM tab0
----
-1424
-384
-560
query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 AS col1 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT 83 DIV - col0 + + col1 + col1 * - col2 * col0 FROM tab2
----
-119594
-51018
-5839
skipif mysql # not compatible
query I rowsort label-2059
SELECT 83 / - col0 + + col1 + col1 * - col2 * col0 FROM tab2
----
-119594
-51018
-5839
query I rowsort
SELECT DISTINCT col1 * col1 + + col0 FROM tab1
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2061
SELECT CAST( NULL AS SIGNED ) + + ( tab0.col1 ) - + ( + col1 * col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2061
SELECT CAST ( NULL AS INTEGER ) + + ( tab0.col1 ) - + ( + col1 * col2 ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab1.col2 * - tab1.col1 + col2 * col2 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT DISTINCT + 53 FROM tab2
----
53
query I rowsort
SELECT 92 * col0 * 72 AS col0 FROM tab0
----
158976
231840
589536
query I rowsort
SELECT col0 * tab2.col0 + - ( - col1 + - col1 ) FROM tab2
----
111
6202
6275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 * col1 col1 FROM tab1
----
-380
-494
-988
query I rowsort
SELECT ALL + col0 * + col0 + + col2 AS col0 FROM tab0 cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-2068
SELECT ( col0 ) * 34 + col1 * col0 DIV - col2 FROM tab1 AS cor0
----
101
2165
2710
skipif mysql # not compatible
query I rowsort label-2068
SELECT ( col0 ) * 34 + col1 * col0 / - col2 FROM tab1 AS cor0
----
101
2165
2710
query I rowsort
SELECT ALL 25 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
query I rowsort
SELECT + tab0.col2 * - tab0.col1 * col1 AS col2 FROM tab0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-2071
SELECT DISTINCT col0 * cor0.col1 + - col1 * 50 - + col0 DIV col0 FROM tab0 AS cor0
----
-1456
-2237
3548
skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT col0 * cor0.col1 + - col1 * 50 - + col0 / col0 FROM tab0 AS cor0
----
-1456
-2237
3548
query I rowsort
SELECT - - col0 * - col2 * col1 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - col1 * - col0 * - col2 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT - cor0.col0 DIV + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 19c49c11cc9b548be21bc64de3610bde
skipif mysql # not compatible
query I rowsort label-2074
SELECT - cor0.col0 / + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 19c49c11cc9b548be21bc64de3610bde
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + + tab2.col1 * - col0 col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL + 71 + + tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 3acba6202cfbe90e445a1cc59214a53f
query I rowsort
SELECT - + cor0.col1 - - col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - col1 + + 22 FROM tab2
----
-37
-9
5
query I rowsort
SELECT ALL + 88 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
onlyif mysql # use DIV operator for integer division
query I rowsort label-2080
SELECT ALL - col0 * col0 DIV 59 FROM tab2
----
-103
-105
0
skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL - col0 * col0 / 59 FROM tab2
----
-103
-105
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2081
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + col1 col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT - + CAST ( NULL AS REAL ) + col1 col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 95 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT ALL - - col2 + - col1 * col2 * - col1 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT + + col0 * - col2 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ( + col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col0 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + ( + col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + cor0.col0 + col1 * col1 FROM tab2 cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2089
SELECT + ( - col2 ) DIV col2 + col1 DIV + 88 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2089
SELECT + ( - col2 ) / col2 + col1 / + 88 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL + ( col1 * col2 + col1 ) FROM tab0
----
194
2924
7553
query I rowsort
SELECT 40 FROM tab1, tab2, tab2 cor0
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - 32 * col0 - - col0 FROM tab0
----
-1085
-2759
-744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col2 * - col0 + - col0 col2 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2095
SELECT - col0 + col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2095
SELECT - col0 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + + 60 + - col1 FROM tab1 AS cor0
----
34
47
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT DISTINCT col1 DIV col1 + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT col1 / col1 + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT - + 16 + 80 * cor0.col2 + 59 FROM tab1, tab0, tab2 AS cor0
----
2123
2203
3083
query I rowsort
SELECT - 32 * col2 FROM tab2 cor0
----
-1216
-832
-864
query I rowsort
SELECT DISTINCT - + 18 AS col2 FROM tab2 AS cor0
----
-18
onlyif mysql # use DIV operator for integer division
query I rowsort label-2101
SELECT 61 DIV col1 AS col2 FROM tab1 AS cor0
----
2
4
6
skipif mysql # not compatible
query I rowsort label-2101
SELECT 61 / col1 AS col2 FROM tab1 AS cor0
----
2
4
6
query I rowsort
SELECT DISTINCT - + 87 * + col2 * + col1 FROM tab0 cor0
----
-246906
-649194
-8439
query I rowsort
SELECT DISTINCT + + 78 AS col0 FROM tab0 AS cor0
----
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2104
SELECT ALL + + ( + col0 ) DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL + + ( + col0 ) / col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT + - 29 * + col0 FROM tab2 cor0
----
-203
-2262
-2291
query I rowsort
SELECT - cor0.col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + col0 * col0 + + 50 FROM tab2 AS cor0
----
6134
6291
99
query I rowsort
SELECT + + col2 * + ( - 4 ) + + col1 AS col1 FROM tab0 AS cor0
----
-237
-46
93
query I rowsort
SELECT DISTINCT - - cor0.col1 * ( col0 ) + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + + col0 - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 + 0 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col2 + + 80 AS col1 FROM tab0 AS cor0
----
113
162
81
query I rowsort
SELECT DISTINCT - col2 * ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - 6 FROM tab1 cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT - ( 56 ) * + col1 + - ( + 98 * col2 ) AS col0 FROM tab1 AS cor0
----
-10136
-6146
-6748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + - col0 col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT + col0 DIV 12 FROM tab0 AS cor0
----
2
2
7
skipif mysql # not compatible
query I rowsort label-2117
SELECT + col0 / 12 FROM tab0 AS cor0
----
2
2
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * + cor0.col0 col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT cor0.col1 * col1 + + col0 FROM tab2 cor0
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT - cor0.col1 + + col2 DIV col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2120
SELECT - cor0.col1 + + col2 / col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + 10 col1 FROM tab2 AS cor0
----
27
41
69
query I rowsort
SELECT DISTINCT cor0.col1 * + 22 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-14212
-18414
-33748
onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT ALL + 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-2123
SELECT ALL + col1 / col2 col1 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT 96 * - col0 AS col1 FROM tab0
----
-2304
-3360
-8544
query I rowsort
SELECT ALL + ( + cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab1, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - col1 * col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - - cor0.col1 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 83 col0 FROM tab2 AS cor0
----
1411
2573
4897
query I rowsort
SELECT + + col2 * + 24 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT DISTINCT col0 * - 21 AS col1 FROM tab1 AS cor0
----
-1344
-1680
-63
query I rowsort
SELECT ALL + - col0 * col0 * col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT ALL 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 092918b9163061e291041d594b1a402a
query I rowsort
SELECT + + col2 * + cor0.col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 - col1 * - cor0.col0 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + - col2 * + 29 * + col2 AS col1 FROM tab2 AS cor0
----
-19604
-21141
-41876
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( - tab0.col1 / col2 + col2 + col2 * col0 ) IN ( col2 * col0 )
----
86
91
97
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND - col1 - - col1 * col2
----
query I rowsort
SELECT + col0 + tab0.col1 * col0 * + col0 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT col1 + - col2 * col1 * col1 FROM tab0
----
-243982
-678951
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2140
SELECT DISTINCT col0 + col2 DIV col0 - col1 AS col1 FROM tab0
----
-2
-61
-62
skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT col0 + col2 / col0 - col1 AS col1 FROM tab0
----
-2
-61
-62
query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND NULL
----
query I rowsort
SELECT + col0 FROM tab1 WHERE NULL >= ( NULL )
----
query I rowsort
SELECT ALL col0 + col2 + + tab2.col2 FROM tab2
----
130
155
61
query I rowsort
SELECT DISTINCT + col2 * col0 * - col1 FROM tab1
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 * - col2 col1 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL - col2 * - col0 * col1 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL + 68 * cor0.col1 AS col1 FROM tab1 cor0
----
1768
680
884
query I rowsort
SELECT DISTINCT - 72 + col2 * - 50 FROM tab2 AS cor0
----
-1372
-1422
-1972
onlyif mysql # use DIV operator for integer division
query I rowsort label-2149
SELECT - tab2.col2 DIV col0 + - col0 AS col1 FROM tab2
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-2149
SELECT - tab2.col2 / col0 + - col0 AS col1 FROM tab2
----
-10
-78
-79
query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT NULL <> col2
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT DISTINCT - 55 + + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2151
SELECT DISTINCT - 55 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 55 + + col2 FROM tab1 AS cor0
----
109
112
151
onlyif mysql # use DIV operator for integer division
query I rowsort label-2153
SELECT DISTINCT - col1 DIV col0 + col1 AS col1 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-2153
SELECT DISTINCT - col1 / col0 + col1 AS col1 FROM tab0 AS cor0
----
83
90
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2154
SELECT DISTINCT - - 88 + + col0 DIV col2 col0 FROM tab0 AS cor0
----
123
88
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2154
SELECT DISTINCT - - 88 + + col0 / col2 col0 FROM tab0 AS cor0
----
123
88
89
query I rowsort
SELECT - col1 * - col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + cor0.col1 + - cor0.col0 * col1 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT DISTINCT - 13 DIV - col1 + col2 AS col2 FROM tab1 AS cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - 13 / - col1 + col2 AS col2 FROM tab1 AS cor0
----
54
58
97
query I rowsort
SELECT ALL - - col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col1 + col1 * 21 FROM tab1 AS cor0
----
220
286
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-2160
SELECT ALL + + 97 DIV col1 AS col0 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-2160
SELECT ALL + + 97 / col1 AS col0 FROM tab2 AS cor0
----
1
3
5
query I rowsort
SELECT DISTINCT + col0 * - col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT col0 * ( 29 ) FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT ALL - col1 + 54 * + col2 FROM tab1 AS cor0
----
2890
3068
5171
query I rowsort
SELECT - 45 FROM tab0, tab1 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT DISTINCT - - cor0.col2 * - 51 AS col0 FROM tab2 cor0
----
-1326
-1377
-1938
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col1 * CAST ( + col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT 59 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT DISTINCT - 12 + col1 * tab0.col2 + + col0 AS col0 FROM tab0
----
120
2850
7539
query I rowsort
SELECT ALL + col0 + - 73 AS col2 FROM tab0 AS cor0
----
-38
-49
16
query I rowsort
SELECT + ( col2 ) * + col1 - col0 * + col1 AS col2 FROM tab0 cor0
----
-3298
-637
774
query I rowsort
SELECT ALL + - cor0.col0 * 17 * - col1 + col2 FROM tab1 AS cor0
----
10937
1380
17776
query I rowsort
SELECT DISTINCT - col1 - - col0 AS col1 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2173
SELECT - 20 DIV - col1 - - col0 AS col1 FROM tab2 AS cor0
----
7
78
80
skipif mysql # not compatible
query I rowsort label-2173
SELECT - 20 / - col1 - - col0 AS col1 FROM tab2 AS cor0
----
7
78
80
query I rowsort
SELECT ALL 42 + - col2 FROM tab0 AS cor0
----
-40
41
9
query I rowsort
SELECT DISTINCT - - ( - 61 ) - - cor0.col1 FROM tab0 AS cor0
----
25
30
36
query I rowsort
SELECT ALL - ( - cor0.col0 ) + cor0.col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - + col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT + + ( col0 ) + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - ( 45 ) - + col1 AS col2 FROM tab1 AS cor0
----
-55
-58
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * ( - col0 ) col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL + col1 - col2 AS col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT tab0.col2 * 93 + tab0.col0 FROM tab0
----
128
3093
7715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 89 col0 FROM tab0, tab2 AS cor0
----
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2185
SELECT + CAST( NULL AS SIGNED ) + + col0 + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2185
SELECT + CAST ( NULL AS INTEGER ) + + col0 + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 32 + + col2 FROM tab1 AS cor0
----
128
86
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2187
SELECT + col2 / - col0 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2187
SELECT + col2 / - col0 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2188
SELECT ALL - col1 DIV - 96 + - col0 FROM tab0
----
-24
-34
-89
skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - col1 / - 96 + - col0 FROM tab0
----
-24
-34
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2189
SELECT ALL tab1.col2 * 89 + col1 DIV tab1.col0 FROM tab1
----
4814
5073
8544
skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL tab1.col2 * 89 + col1 / tab1.col0 FROM tab1
----
4814
5073
8544
query I rowsort
SELECT DISTINCT col1 * - 99 + + col2 FROM tab1
----
-1191
-2520
-933
onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT DISTINCT 91 DIV 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
1
skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT 91 / 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 AS cor2
----
1
query I rowsort
SELECT 15 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL - - col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 92 * 75 + + col1 + + col0 FROM tab0 AS cor0
----
-6720
-6768
-6790
query I rowsort
SELECT + col2 * - col1 * + tab1.col1 AS col1 FROM tab1
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * col2 col0 FROM tab1
----
3294
3477
5856
query I rowsort
SELECT DISTINCT - - 21 AS col2 FROM tab2, tab1 cor0
----
21
query I rowsort
SELECT col1 * + col0 * col2 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - col2 * 20 * cor0.col0 + col1 * + col2 FROM tab1 AS cor0
----
-152352
-1836
-72390
query I rowsort
SELECT + 85 FROM tab1, tab1 cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT DISTINCT + col2 * - 6 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT + cor0.col2 + col0 * - 39 AS col1 FROM tab1 AS cor0
----
-2439
-3024
-63
query I rowsort
SELECT DISTINCT + 97 AS col0 FROM tab2
----
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2204
SELECT + tab1.col2 + - 69 DIV 32 FROM tab1
----
52
55
94
skipif mysql # not compatible
query I rowsort label-2204
SELECT + tab1.col2 + - 69 / 32 FROM tab1
----
52
55
94
query I rowsort
SELECT - col0 * - col2 * + tab0.col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT ( ( tab1.col2 ) ) * + ( ( - col2 ) ) * 88 AS col2 FROM tab1
----
-256608
-285912
-811008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2207
SELECT CAST( NULL AS DECIMAL ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2207
SELECT CAST ( NULL AS REAL ) / + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * + ( + col2 ) * + 19 FROM tab2
----
12844
13851
27436
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + 72 FROM tab1, tab0, tab1 AS cor0
----
72
query I rowsort
SELECT - cor0.col0 + + 45 - + cor0.col1 FROM tab0 AS cor0
----
-135
-65
-87
query I rowsort
SELECT 20 * + 67 * col1 AS col1 FROM tab0
----
115240
121940
129980
query I rowsort
SELECT - 16 - - col0 FROM tab0
----
19
73
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2214
SELECT DISTINCT - col2 DIV col0 - tab1.col1 * ( tab1.col2 ) AS col0 FROM tab1
----
-1249
-1422
-570
skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT - col2 / col0 - tab1.col1 * ( tab1.col2 ) AS col0 FROM tab1
----
-1249
-1422
-570
query I rowsort
SELECT + + col2 * col2 + - 41 AS col1 FROM tab2 AS cor0
----
1403
635
688
query I rowsort
SELECT col1 * + col2 * col0 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col1 + + col1 + ( col0 ) AS col0 FROM tab0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2218
SELECT DISTINCT col2 + + tab1.col1 * + CAST( 93 AS SIGNED ) * + col1 FROM tab1
----
15813
62922
9357
skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT col2 + + tab1.col1 * + CAST ( 93 AS INTEGER ) * + col1 FROM tab1
----
15813
62922
9357
query I rowsort
SELECT + col0 + col2 * cor0.col2 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2220
SELECT DISTINCT - + col1 * - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - + col1 * - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col2 + - cor0.col0 * + col2 - - col0 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2223
SELECT ALL + + 67 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + + 67 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT - - ( col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT cor0.col2 + - 68 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1118
-2081
-3986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 * col2 col2 FROM tab1 AS cor0
----
4590
4845
8160
query I rowsort
SELECT - - ( cor0.col0 ) * - col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT + tab1.col1 + col1 AS col0 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT cor0.col2 * - col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT - ( - col0 ) * 59 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT + col0 + 87 FROM tab1
----
151
167
90
query I rowsort
SELECT ALL - - 76 AS col2 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab1
----
57
57
57
query I rowsort
SELECT - col0 * col2 - - 53 AS col2 FROM tab0 AS cor0
----
-7245
-739
18
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT col0 - 98 FROM tab2 AS cor0
----
-19
-20
-91
query I rowsort
SELECT ALL - + col0 + 6 FROM tab0 AS cor0
----
-18
-29
-83
query I rowsort
SELECT ALL - col1 - + 28 * col2 FROM tab2 AS cor0
----
-1081
-787
-787
skipif mysql # not compatible
query I rowsort
SELECT - col0 * CAST ( + col0 AS REAL ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT 80 + + col0 + + col0 FROM tab1
----
208
240
86
query I rowsort
SELECT - 40 * - col1 + + ( - ( col2 ) ) FROM tab1
----
343
424
986
query I rowsort
SELECT - cor0.col2 * + tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 7522b05e664ac1561bef84e44b3f2d33
query I rowsort
SELECT col0 + - ( 50 ) * + col0 + - col2 FROM tab1
----
-201
-3193
-4016
onlyif mysql # use DIV operator for integer division
query I rowsort label-2246
SELECT col1 * - 8 + col1 + + tab1.col0 DIV 4 FROM tab1
----
-182
-54
-71
skipif mysql # not compatible
query I rowsort label-2246
SELECT col1 * - 8 + col1 + + tab1.col0 / 4 FROM tab1
----
-182
-54
-71
query I rowsort
SELECT DISTINCT tab0.col1 + col0 * tab0.col2 AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT - + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col0 - col0 * col2 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + + cor0.col0 * + cor0.col0 + + col2 * - col0 * 51 FROM tab2 AS cor0
----
-146861
-9590
-97344
query I rowsort
SELECT DISTINCT col0 * + col0 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT - col1 + col2 * 6 FROM tab2 AS cor0
----
131
211
97
query I rowsort
SELECT - col1 + + col2 * + tab2.col0 + col0 * col2 AS col1 FROM tab2
----
347
3997
5987
query I rowsort
SELECT - ( - 55 ) + col2 * - col0 + + col2 * - col0 FROM tab0 AS cor0
----
-14541
-15
-1529
query I rowsort
SELECT + 49 * - 78 AS col0 FROM tab1 AS cor0
----
-3822
-3822
-3822
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - 62 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 098fd91a9b782719c4c35a61fb06d24d
query I rowsort
SELECT + 93 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2258
SELECT + tab0.col1 DIV 67 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2258
SELECT + tab0.col1 / 67 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab1, tab1 AS cor0
----
11
query I rowsort
SELECT ALL - 12 + cor0.col0 + + col2 AS col2 FROM tab0 cor0
----
159
24
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2261
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 * col0 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 * col0 AS col1 FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2262
SELECT col1 * col2 * + col1 - CAST( col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
18818
251464
687323
skipif mysql # not compatible
query I rowsort label-2262
SELECT col1 * col2 * + col1 - CAST ( col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
18818
251464
687323
query I rowsort
SELECT - + col0 + col1 + + col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT - + col0 + col2 + col2 FROM tab0 AS cor0
----
-33
42
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 20 col2 FROM tab1 AS cor0
----
-30
-33
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-2266
SELECT DISTINCT + + col0 * - col0 - + col2 DIV + col0 FROM tab0 AS cor0
----
-1225
-577
-7921
skipif mysql # not compatible
query I rowsort label-2266
SELECT DISTINCT + + col0 * - col0 - + col2 / + col0 FROM tab0 AS cor0
----
-1225
-577
-7921
query I rowsort
SELECT - col2 * + col1 * - col2 - - ( + 87 ) AS col2 FROM tab1 AS cor0
----
119895
32577
75903
onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT DISTINCT + 19 DIV - 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + 19 / - 93 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0
query I rowsort
SELECT DISTINCT - - 5 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
123
182
321
query I rowsort
SELECT - + col0 * col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - ( - col1 ) * col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + col2 + - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - + 70 + col2 FROM tab2 AS cor0
----
-32
-43
-44
query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-2275
SELECT - col0 DIV - cor0.col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2275
SELECT - col0 / - cor0.col0 FROM tab1 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2276
SELECT DISTINCT - col0 + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT - col0 + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2278
SELECT col1 * + col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2278
SELECT col1 * + col1 / + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - - 34 + col2 FROM tab0 AS cor0
----
116
35
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT DISTINCT - cor0.col2 + ( col1 ) DIV col1 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT - cor0.col2 + ( col1 ) / col1 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT col2 + col2 * + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + col1 + + col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col0 * - ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT 95 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT - ( - tab2.col0 ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab1
----
62
query I rowsort
SELECT ( - col2 ) + - col2 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2130
-3397
-8263
query I rowsort
SELECT + col1 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab1 cor1, tab0 AS cor2
----
3645 values hashing to 28a820d445f1d1e09fd3c7443bd16e29
onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT ALL - 9 DIV - 90 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - 9 / - 90 FROM tab0
----
0
0
0
query I rowsort
SELECT - + 19 * + col2 AS col1 FROM tab0 AS cor0
----
-1558
-19
-627
query I rowsort
SELECT DISTINCT - col1 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT col2 + ( + col1 ) * col1 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + col1 + - 8 FROM tab1 cor0
----
18
2
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2296
SELECT - col1 - + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-2296
SELECT - col1 - + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT + col1 + + 75 DIV - cor0.col1 AS col2 FROM tab2 AS cor0
----
13
29
58
skipif mysql # not compatible
query I rowsort label-2297
SELECT + col1 + + 75 / - cor0.col1 AS col2 FROM tab2 AS cor0
----
13
29
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + - col2 col2 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT - col2 + - col1 * col2 AS col2 FROM tab1 cor0
----
-1344
-1458
-627
query I rowsort
SELECT - 65 + 20 AS col2 FROM tab0 AS cor0
----
-45
-45
-45
query I rowsort
SELECT col1 * 80 AS col1 FROM tab2
----
1360
2480
4720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2302
SELECT - CAST( - ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2302
SELECT - CAST ( - ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2303
SELECT DISTINCT CAST( + 28 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
28
skipif mysql # not compatible
query I rowsort label-2303
SELECT DISTINCT CAST ( + 28 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
28
query I rowsort
SELECT DISTINCT col2 * 84 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT cor0.col0 * + col2 + col0 * 81 AS col1 FROM tab2 AS cor0
----
756
8346
9401
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * col2 col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT ALL ( ( - cor0.col0 ) ) * col1 + + col1 DIV col0 + 19 AS col0 FROM tab0 AS cor0
----
-2042
-3374
-8079
skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL ( ( - cor0.col0 ) ) * col1 + + col1 / col0 + 19 AS col0 FROM tab0 AS cor0
----
-2042
-3374
-8079
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT ALL - + 94 - col0 AS col2 FROM tab0 AS cor0
----
-118
-129
-183
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2310
SELECT ALL col0 * - cor0.col2 + - CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL col0 * - cor0.col2 + - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT + ( 56 * col2 ) AS col0 FROM tab2
----
1456
1512
2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2312
SELECT ALL CAST( NULL AS SIGNED ) / col0 + + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL CAST ( NULL AS INTEGER ) / col0 + + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab0.col1 + - 38 FROM tab0
----
48
53
59
query I rowsort
SELECT + col2 * + tab2.col1 * + tab2.col0 AS col1 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-2315
SELECT DISTINCT col0 DIV col1 col0 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT col0 / col1 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT cor0.col0 * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT + cor0.col0 * col1 DIV 29 FROM tab0 AS cor0
----
117
279
71
skipif mysql # not compatible
query I rowsort label-2317
SELECT + cor0.col0 * col1 / 29 FROM tab0 AS cor0
----
117
279
71
query I rowsort
SELECT ALL - 54 * + tab0.col2 AS col0 FROM tab0
----
-1782
-4428
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2319
SELECT DISTINCT 48 DIV col1 AS col2 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-2319
SELECT DISTINCT 48 / col1 AS col2 FROM tab1
----
1
3
4
query I rowsort
SELECT col2 * col1 - + tab0.col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT + 89 + tab2.col1 AS col1 FROM tab2
----
106
120
148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col1 col2 FROM tab0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( col1 ) col2 FROM tab1
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - ( - 20 ) * + col2 col0 FROM tab0 AS cor0
----
-15
1551
636
query I rowsort
SELECT + col2 - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + + col2 * 97 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT + col2 * col2 - + col1 AS col1 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT col0 + col0 * - 49 FROM tab1
----
-144
-3072
-3840
query I rowsort
SELECT ALL + col0 * col1 * ( - col2 ) + col2 AS col0 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT ALL 90 + - col2 FROM tab0
----
57
8
89
query I rowsort
SELECT DISTINCT - + 38 FROM tab2 AS cor0
----
-38
query I rowsort
SELECT ALL - ( - col2 ) + 96 AS col2 FROM tab2 cor0
----
122
123
134
query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT ALL + 73 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT ALL - 36 + col0 FROM tab1 cor0
----
-33
28
44
query I rowsort
SELECT ALL - - col0 + + col2 + col0 FROM tab2 cor0
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 * col1 col2 FROM tab2 AS cor0
----
1147
2183
629
onlyif mysql # use DIV operator for integer division
query I rowsort label-2338
SELECT col1 + + ( col2 ) * + cor0.col0 DIV + col0 FROM tab0 cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-2338
SELECT col1 + + ( col2 ) * + cor0.col0 / + col0 FROM tab0 cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( - 54 AS REAL ) * col1 FROM tab0 AS cor0
----
-153252
-402948
-5238
query I rowsort
SELECT ALL col2 * ( col1 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col0 + + ( cor0.col2 ) * col2 AS col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort
SELECT col0 * + CAST ( + 56 AS REAL ) + cor0.col0 / - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 cor0
----
1343
1959
4983
query I rowsort
SELECT ALL + cor0.col1 * - col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT - col1 * col2 + 31 * + col1 FROM tab2 AS cor0
----
-119
124
295
query I rowsort
SELECT + col0 * cor0.col1 + + col1 + col0 AS col0 FROM tab2 AS cor0
----
1439
255
4739
query I rowsort
SELECT DISTINCT col2 + + 47 * + col2 FROM tab0 AS cor0
----
1584
3936
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 * - col0 + - col0 * + ( cor0.col0 ) col0 FROM tab1 cor0
----
-243
-45056
-89600
query I rowsort
SELECT ALL tab2.col0 + - col0 * + 27 * - 62 FROM tab2
----
11725
130650
132325
onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT 66 DIV - col2 + + col0 * 49 + + col1 * + 6 FROM tab0
----
1690
2231
4907
skipif mysql # not compatible
query I rowsort label-2350
SELECT 66 / - col2 + + col0 * 49 + + col1 * + 6 FROM tab0
----
1690
2231
4907
query I rowsort
SELECT - ( col1 ) * - ( + 98 ) AS col2 FROM tab0
----
8428
8918
9506
query I rowsort
SELECT - col2 + - col0 * + 94 FROM tab2 AS cor0
----
-685
-7358
-7464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2353
SELECT + col2 + + CAST( NULL AS DECIMAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2353
SELECT + col2 + + CAST ( NULL AS REAL ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT DISTINCT col0 DIV - col0 + col1 DIV col0 + + col1 * + 57 AS col2 FROM tab1
----
1489
569
740
skipif mysql # not compatible
query I rowsort label-2354
SELECT DISTINCT col0 / - col0 + col1 / col0 + + col1 * + 57 AS col2 FROM tab1
----
1489
569
740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2355
SELECT - col0 / CAST( NULL AS DECIMAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2355
SELECT - col0 / CAST ( NULL AS REAL ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * 34 FROM tab1 AS cor0
----
-1836
-1938
-3264
onlyif mysql # use DIV operator for integer division
query I rowsort label-2357
SELECT DISTINCT + col2 DIV + col0 + + cor0.col0 col1 FROM tab2 AS cor0
----
10
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2357
SELECT DISTINCT + col2 / + col0 + + cor0.col0 col1 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT + 93 AS col0 FROM tab1 cor0
----
93
93
93
query I rowsort
SELECT DISTINCT ( + 78 ) + col1 AS col2 FROM tab2 AS cor0
----
109
137
95
query I rowsort
SELECT DISTINCT - col1 + + col2 * + col0 FROM tab2 cor0
----
158
1969
2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2361
SELECT DISTINCT + - CAST( col2 AS SIGNED ) * - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) * - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 - + col2 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2363
SELECT + - CAST( 83 AS SIGNED ) FROM tab2 AS cor0
----
-83
-83
-83
skipif mysql # not compatible
query I rowsort label-2363
SELECT + - CAST ( 83 AS INTEGER ) FROM tab2 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL col1 * - col0 + + cor0.col1 + - col2 FROM tab1 AS cor0
----
-106
-1123
-687
query I rowsort
SELECT 5 + - 65 * col1 FROM tab2 AS cor0
----
-1100
-2010
-3830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 20 + cor0.col1 col0 FROM tab2 cor0
----
-109
-1501
-1563
query I rowsort
SELECT ALL - 8 + - cor0.col0 FROM tab0 AS cor0
----
-32
-43
-97
query I rowsort
SELECT DISTINCT + 10 * - col0 FROM tab1 AS cor0
----
-30
-640
-800
query I rowsort
SELECT DISTINCT 84 + + col1 AS col0 FROM tab1 AS cor0
----
110
94
97
query I rowsort
SELECT DISTINCT + col2 + - col2 * col2 FROM tab2 cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + - col0 * + 53 + - col2 AS col2 FROM tab2 AS cor0
----
-398
-4160
-4225
query I rowsort
SELECT ALL col1 - + col1 * col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT ALL 7 FROM tab2 cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2375
SELECT + + 8 - - cor0.col0 DIV - CAST( 49 AS SIGNED ) FROM tab1 AS cor0
----
7
7
8
skipif mysql # not compatible
query I rowsort label-2375
SELECT + + 8 - - cor0.col0 / - CAST ( 49 AS INTEGER ) FROM tab1 AS cor0
----
7
7
8
query I rowsort
SELECT DISTINCT - + cor0.col2 + - cor0.col1 + + col1 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + + col2 * col2 - col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT + 24 + col2 * - ( 54 ) FROM tab1 AS cor0
----
-2892
-3054
-5160
query I rowsort
SELECT DISTINCT + 23 - + cor0.col0 FROM tab1 AS cor0
----
-41
-57
20
query I rowsort
SELECT ( 96 ) AS col2 FROM tab0
----
96
96
96
query I rowsort
SELECT - 97 + - col2 AS col2 FROM tab1 cor0
----
-151
-154
-193
onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT + 49 + - tab2.col0 DIV + 86 FROM tab2
----
49
49
49
skipif mysql # not compatible
query I rowsort label-2382
SELECT + 49 + - tab2.col0 / + 86 FROM tab2
----
49
49
49
query I rowsort
SELECT DISTINCT 41 + col1 FROM tab2
----
100
58
72
query I rowsort
SELECT 20 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + col0 + cor0.col0 col2 FROM tab1 AS cor0
----
12
4160
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col1 + col1 col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + - 72 * - cor0.col2 FROM tab2 AS cor0
----
1872
1944
2736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2388
SELECT tab0.col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2388
SELECT tab0.col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 80 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT ALL + + 85 + + col1 FROM tab1 AS cor0
----
111
95
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2391
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2391
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2 cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT - col0 + col2 + + col0 AS col1 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2393
SELECT DISTINCT CAST( col1 AS SIGNED ) + - col1 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2393
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - col1 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 * + 29 FROM tab1 AS cor0
----
1856
2320
87
query I rowsort
SELECT + 34 * col1 + col1 + + 46 AS col2 FROM tab1 AS cor0
----
396
501
956
query I rowsort
SELECT + 62 + 18 FROM tab2 cor0
----
80
80
80
query I rowsort
SELECT DISTINCT col0 + - 88 * col1 FROM tab1 cor0
----
-1064
-2285
-816
query I rowsort
SELECT col2 * + col1 + + col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT + col0 * ( - col2 ) FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 17 AS REAL ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
54
57
96
query I rowsort
SELECT tab1.col0 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 23 AS col2 FROM tab0, tab1 AS cor0
----
23
query I rowsort
SELECT DISTINCT + tab1.col0 + 1 AS col1 FROM tab1
----
4
65
81
query I rowsort
SELECT ALL - 57 AS col1 FROM tab0
----
-57
-57
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2407
SELECT + CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2407
SELECT + CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - 31 * + 44 * - col0 AS col0 FROM tab1
----
109120
4092
87296
query I rowsort
SELECT ALL + 66 + 10 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT - 50 * cor0.col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to f74edbb2c01256f2300c17c9f06f84eb
query I rowsort
SELECT - col1 * ( 32 ) * col1 - - col1 AS col1 FROM tab1 AS cor0
----
-21606
-3190
-5395
query I rowsort
SELECT col0 + col1 * col2 AS col1 FROM tab1
----
1328
1407
634
query I rowsort
SELECT col2 * - ( + 11 ) FROM tab1
----
-1056
-594
-627
query I rowsort
SELECT + col2 - ( col0 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT 93 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - col2 * cor0.col1 - + col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + col2 + 69 FROM tab1 AS cor0
----
123
126
165
query I rowsort
SELECT ALL col1 + col2 - + col2 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - cor0.col0 * 3 FROM tab0 AS cor0
----
-105
-267
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-2422
SELECT ALL - + col1 DIV - col1 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - + col1 / - col1 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 * - col0 + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + - cor0.col0 * - ( 94 ) AS col0 FROM tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT DISTINCT col0 + + 13 AS col1 FROM tab1 AS cor0
----
16
77
93
query I rowsort
SELECT DISTINCT + col1 + - ( - col1 ) FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + 4 col2 FROM tab1 AS cor0
----
-50
-53
-92
query I rowsort
SELECT col2 + cor0.col2 * + col1 * col0 AS col1 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT 75 * tab1.col2 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5bf2b1779a144dbf1398dbcf3862e627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2431
SELECT - + CAST( 23 AS SIGNED ) FROM tab2 AS cor0
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort label-2431
SELECT - + CAST ( 23 AS INTEGER ) FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL - ( - 53 ) FROM tab2 cor0
----
53
53
53
query I rowsort
SELECT DISTINCT + 42 + - cor0.col2 * cor0.col0 FROM tab1 AS cor0
----
-120
-3606
-7638
query I rowsort
SELECT - + cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab2 AS cor0
----
-35
-35
-35
query I rowsort
SELECT DISTINCT + 4 + col1 AS col2 FROM tab0 AS cor0
----
101
90
95
query I rowsort
SELECT 57 * col2 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT DISTINCT + 8 + col0 AS col0 FROM tab2 AS cor0
----
15
86
87
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT ALL 25 * + col2 * + 84 AS col0 FROM tab2 cor0
----
54600
56700
79800
query I rowsort
SELECT ALL + + 16 AS col2 FROM tab0 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT ALL + col0 + col0 DIV - col1 AS col0 FROM tab2 AS cor0
----
7
75
77
skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL + col0 + col0 / - col1 AS col0 FROM tab2 AS cor0
----
7
75
77
query I rowsort
SELECT DISTINCT - col0 * + col0 + + cor0.col1 * col2 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT ALL + col1 * - ( + col2 ) + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT col1 * 45 DIV 66 AS col0 FROM tab2 AS cor0
----
11
21
40
skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT col1 * 45 / 66 AS col0 FROM tab2 AS cor0
----
11
21
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - ( - col0 * - col2 ) col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - - col0 * + 61 + col1 FROM tab0 AS cor0
----
1550
2232
5520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col1 FROM tab0
----
25
query I rowsort
SELECT col2 - - col1 * col0 FROM tab2
----
1381
244
4628
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 < col2
----
79
17
38
query I rowsort
SELECT ALL tab2.col0 - + col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL + tab0.col1 + col0 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort
SELECT col1 * + col0 * CAST ( 31 AS REAL ) AS col2 FROM tab1 AS cor0
----
19840
2418
32240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * col1 col2 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT col1 - + col0 * col2 AS col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT col2 + col2 - - col2 FROM tab2 WHERE NOT - col1 BETWEEN NULL AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2457
SELECT ALL - col1 + - col2 DIV col1 FROM tab2
----
-19
-31
-59
skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - col1 + - col2 / col1 FROM tab2
----
-19
-31
-59
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab0, tab1 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT - col2 + col0 * - ( 3 ) * col0 AS col1 FROM tab1
----
-12345
-19296
-81
query I rowsort
SELECT ALL col2 + col2 * - tab2.col2 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT - 77 + + col0 AS col2 FROM tab2 AS cor0
----
-70
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL - - cor0.col2 - - col1 AS col1 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 - + col2 * 99 col2 FROM tab2 AS cor0
----
-1898
-1944
-2318
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2465
SELECT cor0.col2 * CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2465
SELECT cor0.col2 * CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 * + col0 - + col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT + col2 + col1 * 58 AS col2 FROM tab2 AS cor0
----
1024
1825
3448
query I rowsort
SELECT - - col2 * - col2 - ( 11 ) AS col1 FROM tab0 AS cor0
----
-1100
-12
-6735
query I rowsort
SELECT DISTINCT ( col1 ) + cor0.col1 * - ( col2 ) FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + col1 * + col0 - cor0.col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - col1 + - col0 * 52 FROM tab2 AS cor0
----
-395
-4115
-4125
query I rowsort
SELECT col2 + col0 - col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( + col1 * + tab2.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT DISTINCT tab0.col1 DIV col1 + col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2474
SELECT DISTINCT tab0.col1 / col1 + col2 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT ALL + col0 * + col0 + + col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT + tab0.col1 * col2 * col2 + col2 FROM tab0
----
611966
93687
98
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NULL NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2478
SELECT - col2 + - col0 DIV - col0 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-2478
SELECT - col2 + - col0 / - col0 FROM tab1
----
-53
-56
-95
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IN ( - col2 )
----
query I rowsort
SELECT + col0 * + col1 AS col1 FROM tab0 WHERE col1 IN ( tab0.col1 )
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2481
SELECT tab0.col1 DIV - col1 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2481
SELECT tab0.col1 / - col1 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col2 * cor0.col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * col1 col2 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT ALL + tab2.col0 + col2 * col2 AS col1 FROM tab2
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT DISTINCT + col2 DIV col2 + - col0 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-2486
SELECT DISTINCT + col2 / col2 + - col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT ALL + col0 * + tab0.col1 AS col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN col0 * col1 AND NULL
----
query I rowsort
SELECT - col0 * + tab2.col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col2 + - col1 * - col1 FROM tab0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT + col2 + col0 + tab1.col2 DIV - tab1.col0 FROM tab1
----
121
175
39
skipif mysql # not compatible
query I rowsort label-2490
SELECT + col2 + col0 + tab1.col2 / - tab1.col0 FROM tab1
----
121
175
39
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <> NULL
----
query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 + - col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT + col2 * + 89 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT col0 + - ( cor0.col0 ) + - col2 * cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 21 * col2 AS col1 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT - + 21 + - col0 AS col2 FROM tab2 AS cor0
----
-100
-28
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT - col0 + col2 DIV - col1 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-2497
SELECT - col0 + col2 / - col1 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT + col0 + + col1 * - ( - col0 ) FROM tab2 cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2499
SELECT ( col1 ) DIV + ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2499
SELECT ( col1 ) / + ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - ( + col1 ) + + col0 FROM tab1
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) * 86 col2 FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 - col0 * col1 AS col2 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT col2 - - ( - col0 ) * - col0 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT - - col1 * col2 + 94 AS col2 FROM tab0 AS cor0
----
191
2932
7556
onlyif mysql # use DIV operator for integer division
query I rowsort label-2505
SELECT + col0 * - col2 + 19 DIV cor0.col1 FROM tab2 cor0
----
-189
-2028
-3001
skipif mysql # not compatible
query I rowsort label-2505
SELECT + col0 * - col2 + 19 / cor0.col1 FROM tab2 cor0
----
-189
-2028
-3001
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2506
SELECT DISTINCT - col0 + CAST( - ( - cor0.col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2506
SELECT DISTINCT - col0 + CAST ( - ( - cor0.col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - + col2 - col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL col0 + col2 + - col1 FROM tab0 AS cor0
----
-29
-61
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2509
SELECT ALL - col2 + CAST( 62 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
24
35
36
skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - col2 + CAST ( 62 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
24
35
36
query I rowsort
SELECT ALL - ( col1 ) + col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - col0 - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * cor0.col2 + - 99 * col0 AS col1 FROM tab0 cor0
----
-1349
-3368
462
onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT col0 * ( col0 ) DIV col1 + col0 FROM tab2 AS cor0
----
181
446
8
skipif mysql # not compatible
query I rowsort label-2513
SELECT col0 * ( col0 ) / col1 + col0 FROM tab2 AS cor0
----
181
446
8
query I rowsort
SELECT col0 + + ( + col2 * + col2 ) FROM tab0
----
1113
36
6813
query I rowsort
SELECT + tab0.col2 * col2 * + 75 AS col2 FROM tab0
----
504300
75
81675
query I rowsort
SELECT + tab1.col1 * + tab1.col0 * tab1.col1 FROM tab1
----
13520
2028
6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * + col2 - ( - 76 ) col2 FROM tab1 AS cor0
----
4666
4921
8236
query I rowsort
SELECT + 34 + - col1 * + ( - col0 ) * - col2 AS col1 FROM tab2 AS cor0
----
-119618
-51000
-5825
query I rowsort
SELECT - 74 - + col2 * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
115
1954
2928
query I rowsort
SELECT - - cor0.col2 * cor0.col1 - + 15 AS col1 FROM tab2 AS cor0
----
1519
631
822
query I rowsort
SELECT cor0.col2 * cor0.col1 AS col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT - 3 + col2 DIV col1 FROM tab2 AS cor0
----
-1
-3
-3
skipif mysql # not compatible
query I rowsort label-2522
SELECT - 3 + col2 / col1 FROM tab2 AS cor0
----
-1
-3
-3
query I rowsort
SELECT - col2 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT ALL col2 + col2 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT ALL - 0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT + col0 + col0 DIV col0 AS col0 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-2526
SELECT + col0 + col0 / col0 AS col0 FROM tab1 cor0
----
4
65
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2527
SELECT ( col0 ) * - CAST( - col2 AS SIGNED ) - + col0 * 2 FROM tab2 AS cor0
----
175
1872
2844
skipif mysql # not compatible
query I rowsort label-2527
SELECT ( col0 ) * - CAST ( - col2 AS INTEGER ) - + col0 * 2 FROM tab2 AS cor0
----
175
1872
2844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2528
SELECT ALL + ( + col1 ) * - CAST( 2 AS SIGNED ) * + col2 + col2 FROM tab2 AS cor0
----
-1254
-1647
-3042
skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + ( + col1 ) * - CAST ( 2 AS INTEGER ) * + col2 + col2 FROM tab2 AS cor0
----
-1254
-1647
-3042
query I rowsort
SELECT ALL + col0 * col1 + + col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
15561
3492
4902
onlyif mysql # use DIV operator for integer division
query I rowsort label-2530
SELECT ALL + col2 - + col1 * - ( col2 ) DIV col2 AS col0 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + col2 - + col1 * - ( col2 ) / col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT 85 * 76 FROM tab0 cor0
----
6460
6460
6460
query I rowsort
SELECT + 58 FROM tab0 cor0
----
58
58
58
query I rowsort
SELECT + + col1 + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - ( + cor0.col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 15 AS col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 AS col2 FROM tab2 cor0
----
189
2028
3002
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab2 cor1
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT + 79 + cor0.col1 * 44 FROM tab1 AS cor0
----
1223
519
651
query I rowsort
SELECT + col0 + col2 * + 83 AS col2 FROM tab1
----
4485
4795
8048
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2540
SELECT - 0 + + col0 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2540
SELECT - 0 + + col0 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 75 * col2 AS col2 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col0 * col2 - col2 * 85 AS col2 FROM tab0 AS cor0
----
-2013
-50
328
query I rowsort
SELECT + + col0 * - col0 * ( col0 * col1 ) AS col0 FROM tab2 AS cor0
----
-10633
-27998568
-8381663
query I rowsort
SELECT ALL col0 * - col1 + + col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL col2 + - ( + col0 ) AS col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + col1 + - ( - col2 ) * col2 * - col0 FROM tab1 cor0
----
-207926
-737267
-8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-2548
SELECT - - cor0.col1 DIV + 33 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-2548
SELECT - - cor0.col1 / + 33 FROM tab0 AS cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( 74 ) col0 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT DISTINCT - col1 + 71 + - col0 AS col0 FROM tab0 AS cor0
----
-109
-39
-61
query I rowsort
SELECT ALL + + 91 * + 9 AS col1 FROM tab1 AS cor0
----
819
819
819
query I rowsort
SELECT 28 * col1 FROM tab0 AS cor0
----
2408
2548
2716
query I rowsort
SELECT DISTINCT - + 8 FROM tab1 AS cor0
----
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2554
SELECT + CAST( NULL AS SIGNED ) * + 12 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2554
SELECT + CAST ( NULL AS INTEGER ) * + 12 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 46 AS col1 FROM tab0
----
3956
4186
4462
query I rowsort
SELECT ALL col0 * - 45 FROM tab2
----
-315
-3510
-3555
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + col1 AS REAL ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - + 18 + + col1 FROM tab0 AS cor0
----
68
73
79
query I rowsort
SELECT - 93 + + col2 FROM tab1 AS cor0
----
-36
-39
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col1 * col0 col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab0, tab0 AS cor0
----
42
query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + col0 * ( + 17 ) + col0 FROM tab1 AS cor0
----
1152
1440
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2564
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * + ( col0 ) + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * + ( col0 ) + ( col1 ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 36 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT - col1 + - col0 * + col2 AS col0 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT col2 * ( + col2 ) + + tab2.col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT DISTINCT - col0 * - 8 * ( + col1 ) FROM tab0
----
16512
27160
64792
query I rowsort
SELECT col1 + + tab2.col2 * col2 AS col0 FROM tab2
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2570
SELECT - col2 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2570
SELECT - col2 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2571
SELECT col0 DIV - col0 + ( col2 ) DIV col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2571
SELECT col0 / - col0 + ( col2 ) / col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT ALL + + col2 DIV - col1 + 27 + col0 AS col1 FROM tab0 AS cor0
----
116
51
62
skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL + + col2 / - col1 + 27 + col0 AS col1 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT ALL + + col1 * + cor0.col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT 26 FROM tab2 cor0
----
26
query I rowsort
SELECT - col2 * col2 + col0 * col2 * + col0 FROM tab1 AS cor0
----
-2430
230223
605184
query I rowsort
SELECT - 19 + - col0 FROM tab0
----
-108
-43
-54
query I rowsort
SELECT ALL - 99 AS col1 FROM tab1 cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT - - 94 + + col2 FROM tab0 cor0
----
127
176
95
query I rowsort
SELECT - 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT ( + col0 ) + - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * col0 * col2 + col1 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + col0 + - col1 * col0 - - 16 * col0 AS col0 FROM tab1 AS cor0
----
-27
320
448
query I rowsort
SELECT ALL + - 43 + - col0 AS col2 FROM tab2 AS cor0
----
-121
-122
-50
query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col1 FROM tab0 cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT ALL - col1 + col0 * col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
-25
-3
1
skipif mysql # not compatible
query I rowsort label-2586
SELECT ALL - col1 + col0 * col1 / + col2 AS col0 FROM tab1 AS cor0
----
-25
-3
1
query I rowsort
SELECT tab2.col2 + col1 * col0 * - col0 FROM tab2
----
-106059
-1492
-358930
query I rowsort
SELECT ALL + col1 * col0 * 21 AS col0 FROM tab2 AS cor0
----
28203
4557
96642
onlyif mysql # use DIV operator for integer division
query I rowsort label-2589
SELECT - - col0 + + col0 DIV + col2 AS col0 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-2589
SELECT - - col0 + + col0 / + col2 AS col0 FROM tab1 AS cor0
----
3
65
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2590
SELECT + 85 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-2590
SELECT + 85 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-5
query I rowsort
SELECT ALL + 45 + col1 FROM tab0 AS cor0
----
131
136
142
onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT + col1 * col1 DIV + 65 FROM tab2 cor0
----
14
4
53
skipif mysql # not compatible
query I rowsort label-2592
SELECT + col1 * col1 / + 65 FROM tab2 cor0
----
14
4
53
query I rowsort
SELECT ALL + col1 + 85 * 63 FROM tab0 AS cor0
----
5441
5446
5452
query I rowsort
SELECT ALL + cor0.col2 * + 25 FROM tab1 AS cor0
----
1350
1425
2400
query I rowsort
SELECT - col2 * col0 + 17 * - col1 AS col2 FROM tab0 AS cor0
----
-1684
-2254
-8845
onlyif mysql # use DIV operator for integer division
query I rowsort label-2596
SELECT DISTINCT cor0.col2 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT cor0.col2 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + col0 * ( ( col1 ) ) FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 * + cor0.col2 * - 39 + + col2 col2 FROM tab2 AS cor0
----
-18915
-32567
-53716
query I rowsort
SELECT ALL + col1 + + 60 FROM tab1 AS cor0
----
70
73
86
query I rowsort
SELECT ( + col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2601
SELECT DISTINCT col0 DIV 70 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT col0 / 70 AS col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT 78 + col2 FROM tab2
----
104
105
116
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
query I rowsort
SELECT ALL + + cor0.col1 + - ( cor0.col2 * col1 ) AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + 82 * - 72 FROM tab2 AS cor0
----
-5904
-5904
-5904
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - - col0 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - col0 + col1 - ( - col1 ) FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT DISTINCT 85 + ( - col2 ) * + col0 + - col0 FROM tab0
----
-7302
-731
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2610
SELECT DISTINCT col0 * + col0 + + col2 * - CAST( col0 * + col0 + + 37 AS SIGNED ) FROM tab1
----
-231485
-2475
-611552
skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT col0 * + col0 + + col2 * - CAST ( col0 * + col0 + + 37 AS INTEGER ) FROM tab1
----
-231485
-2475
-611552
query I rowsort
SELECT ALL + col2 * 69 FROM tab1
----
3726
3933
6624
query I rowsort
SELECT DISTINCT 56 FROM tab2, tab0, tab1 AS cor0, tab1
----
56
query I rowsort
SELECT ALL - tab1.col1 * 1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + - col0 * - 48 AS col1 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT col1 - + ( 43 + + col2 ) * ( + col2 ) * - col2 AS col2 FROM tab0
----
141
82850
840591
query I rowsort
SELECT 51 + 55 AS col2 FROM tab1 AS cor0
----
106
106
106
query I rowsort
SELECT - col0 * - cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2618
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2618
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT + col0 * col1 * col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col0 * 77 + col2 AS col1 FROM tab2 cor0
----
566
6032
6121
query I rowsort
SELECT col2 + + cor0.col1 * + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + 10 * col2 AS col1 FROM tab0 AS cor0
----
10
330
820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT - CAST( 20 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
skipif mysql # not compatible
query I rowsort label-2623
SELECT - CAST ( 20 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
query I rowsort
SELECT + - ( + col1 ) * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 32 + col1 AS col1 FROM tab2 AS cor0
----
49
63
91
query I rowsort
SELECT - 46 * + cor0.col0 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT DISTINCT - 80 * - col0 - - col1 AS col1 FROM tab0 AS cor0
----
2006
2897
7211
query I rowsort
SELECT DISTINCT - 32 * - col1 FROM tab2 AS cor0
----
1888
544
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2629
SELECT + CAST( NULL AS DECIMAL ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2629
SELECT + CAST ( NULL AS REAL ) * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 46 + cor0.col1 AS col0 FROM tab0 AS cor0
----
40
45
51
query I rowsort
SELECT + + col1 * col1 + col2 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT - + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT + 18 + col0 + - col0 FROM tab2 AS cor0
----
18
18
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-2634
SELECT ALL - cor0.col1 + - cor0.col2 DIV ( + col2 ) AS col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL - cor0.col1 + - cor0.col2 / ( + col2 ) AS col0 FROM tab0 AS cor0
----
-87
-92
-98
query I rowsort
SELECT cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-2637
SELECT + ( - col0 ) + 86 DIV cor0.col0 FROM tab1 AS cor0
----
-63
-79
25
skipif mysql # not compatible
query I rowsort label-2637
SELECT + ( - col0 ) + 86 / cor0.col0 FROM tab1 AS cor0
----
-63
-79
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2638
SELECT DISTINCT - + col0 + - col1 DIV - 72 FROM tab0 cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - + col0 + - col1 / - 72 FROM tab0 cor0
----
-23
-34
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2639
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) + - cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) + - cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT - col2 DIV ( + col1 * - col1 + 19 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2640
SELECT - col2 / ( + col1 * - col1 + 19 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col1 * col1 + col1 FROM tab1 cor0
----
-156
-650
-90
query I rowsort
SELECT ALL + - col1 + col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 - col0 col2 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2644
SELECT - + cor0.col1 + - col2 DIV col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2644
SELECT - + cor0.col1 + - col2 / col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2645
SELECT DISTINCT col1 * col1 + - col0 * col1 + cor0.col0 DIV col0 col1 FROM tab0 cor0
----
183
5333
6015
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2645
SELECT DISTINCT col1 * col1 + - col0 * col1 + cor0.col0 / col0 col1 FROM tab0 cor0
----
183
5333
6015
query I rowsort
SELECT DISTINCT - - col2 + + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + 49 + tab0.col1 + - col0 * col0 AS col1 FROM tab0
----
-1079
-441
-7781
query I rowsort
SELECT + - cor0.col2 * col2 + + 82 AS col1 FROM tab0 AS cor0
----
-1007
-6642
81
query I rowsort
SELECT ALL - col2 * - col1 + col1 + col2 AS col0 FROM tab2 AS cor0
----
1619
701
895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + + 95 col0 FROM tab0 AS cor0
----
119
130
184
query I rowsort
SELECT DISTINCT + - col0 + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2652
SELECT + col1 * 38 + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
1179
2243
647
skipif mysql # not compatible
query I rowsort label-2652
SELECT + col1 * 38 + col1 / col1 AS col2 FROM tab2 AS cor0
----
1179
2243
647
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2653
SELECT + col1 - + CAST( + ( + col2 ) AS SIGNED ) FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-2653
SELECT + col1 - + CAST ( + ( + col2 ) AS INTEGER ) FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT 91 FROM tab2, tab2 cor0
----
91
query I rowsort
SELECT ALL - - 68 + cor0.col2 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 3f5021a255431cf91513da287feefb13
query I rowsort
SELECT + + 25 * col0 AS col2 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT - ( cor0.col2 ) + col2 * 79 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
121160
50996
66096
query I rowsort
SELECT ALL - 81 * - col0 AS col0 FROM tab2 AS cor0
----
567
6318
6399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 1 ) - col2 col1 FROM tab2
----
-25
-26
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 - col2 * - col2 col2 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT - 44 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
query I rowsort
SELECT - 46 FROM tab0, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT ALL ( + col1 ) + - CAST( col1 AS SIGNED ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL ( + col1 ) + - CAST ( col1 AS INTEGER ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 * col1 + 27 AS col1 FROM tab1
----
105
1067
667
onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT col2 DIV tab0.col2 + col1 * - 29 FROM tab0
----
-2493
-2638
-2812
skipif mysql # not compatible
query I rowsort label-2665
SELECT col2 / tab0.col2 + col1 * - 29 FROM tab0
----
-2493
-2638
-2812
query I rowsort
SELECT + ( col0 ) * ( + col0 ) + col1 AS col2 FROM tab1
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-2667
SELECT ALL 69 DIV col1 + + 74 FROM tab2
----
75
76
78
skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL 69 / col1 + + 74 FROM tab2
----
75
76
78
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 - - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - - 84 + cor0.col2 AS col1 FROM tab1 AS cor0
----
138
141
180
query I rowsort
SELECT + col0 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + 49 + col0 FROM tab1 AS cor0
----
113
129
52
query I rowsort
SELECT + ( + col2 * + tab1.col2 ) AS col2 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * cor0.col2 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 94 * col2 AS col0 FROM tab0 AS cor0
----
3102
7708
94
query I rowsort
SELECT ALL - col2 + col1 * + col1 AS col2 FROM tab1 cor0
----
43
622
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2676
SELECT ALL - 0 / ( col1 ) + + CAST( NULL AS DECIMAL ) * 61 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL - 0 / ( col1 ) + + CAST ( NULL AS REAL ) * 61 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + col2 ) * col1 + 27 FROM tab2 cor0
----
1561
673
864
query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab1 AS cor0
----
-11
query I rowsort
SELECT 42 * + ( - col1 * col1 ) FROM tab2 AS cor0
----
-12138
-146202
-40362
query I rowsort
SELECT ALL - 4 * 64 AS col2 FROM tab1 AS cor0
----
-256
-256
-256
query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT - cor0.col0 + col0 DIV - 13 FROM tab1 AS cor0
----
-3
-68
-86
skipif mysql # not compatible
query I rowsort label-2682
SELECT - cor0.col0 + col0 / - 13 FROM tab1 AS cor0
----
-3
-68
-86
query I rowsort
SELECT ALL - 48 + - col0 * - col0 FROM tab0 cor0
----
1177
528
7873
query I rowsort
SELECT + + 98 + cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
1441
315
4700
query I rowsort
SELECT DISTINCT + 51 * col1 AS col2 FROM tab2 AS cor0
----
1581
3009
867
onlyif mysql # use DIV operator for integer division
query I rowsort label-2686
SELECT + + 2 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2686
SELECT + + 2 / col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT ALL + col0 DIV 37 AS col0 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + col0 / 37 AS col0 FROM tab1
----
0
1
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2688
SELECT - - col1 DIV - cor0.col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-2688
SELECT - - col1 / - cor0.col0 FROM tab1 AS cor0
----
-8
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT + col2 + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2689
SELECT + col2 + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + + col2 * col2 AS col0 FROM tab2
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 72 ) * - col1 col0 FROM tab0
----
-6192
-6552
-6984
onlyif mysql # use DIV operator for integer division
query I rowsort label-2692
SELECT DISTINCT - col2 DIV - col2 + col2 * - col2 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-35936
-551367
0
skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT - col2 / - col2 + col2 * - col2 * ( col2 ) AS col0 FROM tab0 AS cor0
----
-35936
-551367
0
query I rowsort
SELECT + 64 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 9c0c5be8e8d74b914a03b75b88ba18ff
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + cor0.col1 - + ( + col0 ) FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL + + cor0.col2 * + 23 + ( - col0 + + col0 * col1 ) AS col2 FROM tab2 AS cor0
----
2138
5122
831
query I rowsort
SELECT col2 * 32 FROM tab1 cor0
----
1728
1824
3072
onlyif mysql # use DIV operator for integer division
query I rowsort label-2698
SELECT DISTINCT + - cor0.col1 + + cor0.col0 DIV col0 - + col1 FROM tab0 AS cor0
----
-171
-181
-193
skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT + - cor0.col1 + + cor0.col0 / col0 - + col1 FROM tab0 AS cor0
----
-171
-181
-193
onlyif mysql # use DIV operator for integer division
query I rowsort label-2699
SELECT DISTINCT + col0 DIV - ( tab2.col0 ) + col2 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + col0 / - ( tab2.col0 ) + col2 FROM tab2
----
25
26
37
query I rowsort
SELECT + col0 + 81 * col2 FROM tab2
----
2184
2194
3157
query I rowsort
SELECT DISTINCT - col1 + ( - 59 ) * col1 * 58 FROM tab2
----
-106113
-201957
-58191
onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT + 16 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2702
SELECT + 16 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + 84 * ( - cor0.col0 ) + 80 AS col0 FROM tab0 AS cor0
----
-1936
-2860
-7396
query I rowsort
SELECT ( - cor0.col2 ) + - col0 * 52 + 75 AS col2 FROM tab1 AS cor0
----
-135
-3310
-4181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 37 + - col2 * - col0 * + col2 + col0 col0 FROM tab1
----
210368
740320
8862
query I rowsort
SELECT ALL - 59 FROM tab2, tab1, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 2d947a91062cb6f04dae4c2cd8f99509
query I rowsort
SELECT col1 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col0 * - ( 26 ) FROM tab0
----
2314
624
910
query I rowsort
SELECT ( - col0 * col2 + col0 ) AS col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL - 45 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT 37 * - col1 AS col1 FROM tab0
----
-3182
-3367
-3589
query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab1
----
-82
query I rowsort
SELECT DISTINCT ( col0 ) * col1 * 51 FROM tab1
----
32640
3978
53040
query I rowsort
SELECT + 66 AS col1 FROM tab1
----
66
66
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2715
SELECT DISTINCT ( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT ALL + 17 AS col2 FROM tab1
----
17
17
17
query I rowsort
SELECT + col1 * ( + col1 ) AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - cor0.col0 * ( - col0 ) FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT col1 + col1 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - + col2 * ( 30 ) FROM tab0 AS cor0
----
-2460
-30
-990
query I rowsort
SELECT DISTINCT 16 * - col1 FROM tab0
----
-1376
-1456
-1552
query I rowsort
SELECT ALL + cor0.col1 * col1 * col1 AS col2 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT DISTINCT - + 94 AS col0 FROM tab1 cor0
----
-94
query I rowsort
SELECT DISTINCT - 75 * col1 AS col1 FROM tab0 AS cor0
----
-6450
-6825
-7275
query I rowsort
SELECT - + cor0.col0 * col2 + - col0 * - col2 * + col0 FROM tab1 AS cor0
----
229824
324
606720
query I rowsort
SELECT ALL - 33 + + 8 * col1 AS col2 FROM tab2
----
103
215
439
query I rowsort
SELECT col1 - 94 * + col1 FROM tab2
----
-1581
-2883
-5487
query I rowsort
SELECT - 5 + col1 FROM tab1
----
21
5
8
query I rowsort
SELECT + - 6 * - col1 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT DISTINCT col0 * 66 AS col2 FROM tab0
----
1584
2310
5874
query I rowsort
SELECT - 62 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1054
-1922
-3658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col0 + - tab2.col1 col0 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT - - col1 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col2 * - col0 - col1 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-3726
196992
514560
query I rowsort
SELECT ALL + col1 + col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1155
-1375
-496
query I rowsort
SELECT 90 * - col1 AS col2 FROM tab2 cor0
----
-1530
-2790
-5310
query I rowsort
SELECT ALL 14 - - col2 AS col1 FROM tab2 AS cor0
----
40
41
52
query I rowsort
SELECT DISTINCT - col1 + + col0 AS col1 FROM tab0 cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT ALL + ( - cor0.col0 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor1.col0 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT col0 * col1 * - tab2.col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - col1 * - 1 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 41 col0 FROM tab1 AS cor0
----
123
2624
3280
query I rowsort
SELECT + col0 + col1 - + col0 * col1 FROM tab0 AS cor0
----
-1954
-3263
-7919
query I rowsort
SELECT cor0.col1 * col1 * + 17 + - col2 * col1 AS col0 FROM tab1 AS cor0
----
10088
1130
1625
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 22 ) col0 FROM tab0 AS cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2748
SELECT CAST( NULL AS SIGNED ) + 59 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-2748
SELECT CAST ( NULL AS INTEGER ) + 59 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2749
SELECT + ( col0 ) DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2749
SELECT + ( col0 ) / - col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT + 65 + 8 DIV col0 AS col1 FROM tab0 AS cor0
----
65
65
65
skipif mysql # not compatible
query I rowsort label-2750
SELECT + 65 + 8 / col0 AS col1 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT ALL - + cor0.col0 * + ( col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2752
SELECT CAST( - col2 AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-2752
SELECT CAST ( - col2 AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + cor0.col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2754
SELECT DISTINCT - col2 + col1 DIV - col0 FROM tab1 AS cor0
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT - col2 + col1 / - col0 FROM tab1 AS cor0
----
-57
-62
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2755
SELECT - - col2 DIV cor0.col1 + col2 * col0 * + col2 FROM tab0 AS cor0
----
26136
35
598436
skipif mysql # not compatible
query I rowsort label-2755
SELECT - - col2 / cor0.col1 + col2 * col0 * + col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + cor0.col0 * col1 + cor0.col0 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + col0 col2 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT ALL col1 + - cor0.col1 DIV + col0 FROM tab1 cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL col1 + - cor0.col1 / + col0 FROM tab1 cor0
----
10
13
18
query I rowsort
SELECT - - col0 - - cor0.col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL cor0.col2 + col0 AS col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + - col0 * + col1 * + col1 + - col0 - col0 AS col2 FROM tab2 AS cor0
----
-22989
-271674
-6741
onlyif mysql # use DIV operator for integer division
query I rowsort label-2762
SELECT ALL + - col2 * col2 + col1 DIV - cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL + - col2 * col2 + col1 / - cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-2763
SELECT + col0 + col2 DIV + col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2763
SELECT + col0 + col2 / + col2 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + col2 * + col1 col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col2 + col1 * col2 + col1 FROM tab1
----
1357
1484
637
query I rowsort
SELECT DISTINCT - col2 + + tab1.col1 + col2 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - col0 * - col1 + + col1 + + col1 FROM tab2
----
1377
279
4720
query I rowsort
SELECT ALL + col2 + + tab1.col2 + col2 FROM tab1
----
162
171
288
query I rowsort
SELECT DISTINCT + - col1 - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - col0 - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - + col0 + col2 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 col2 FROM tab2
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 - col2 col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT tab0.col0 * col0 + + col1 - + col2 AS col1 FROM tab0
----
1321
629
7930
onlyif mysql # use DIV operator for integer division
query I rowsort label-2776
SELECT DISTINCT + col1 - - col2 DIV + tab1.col1 AS col1 FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-2776
SELECT DISTINCT + col1 - - col2 / + tab1.col1 AS col1 FROM tab1
----
15
20
28
query I rowsort
SELECT col0 * col1 + - col0 AS col2 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL - col1 + cor0.col1 * col0 * cor0.col2 FROM tab1 cor0
----
36470
4186
99827
query I rowsort
SELECT DISTINCT + col1 - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col0 - - tab1.col2 FROM tab1
----
121
176
57
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
query I rowsort
SELECT + col1 - tab2.col0 AS col2 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT ALL + col2 - col1 DIV col1 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-2783
SELECT ALL + col2 - col1 / col1 FROM tab0
----
0
32
81
query I rowsort
SELECT ALL + - col1 * - col1 * - 90 FROM tab2 AS cor0
----
-26010
-313290
-86490
query I rowsort
SELECT - 66 * - col2 - 89 AS col2 FROM tab1 AS cor0
----
3475
3673
6247
query I rowsort
SELECT - + col0 * cor0.col0 + - col0 + 97 AS col1 FROM tab2 AS cor0
----
-6065
-6223
41
query I rowsort
SELECT DISTINCT + ( col2 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 1 * + tab0.col0 + 93 FROM tab0
----
117
128
182
onlyif mysql # use DIV operator for integer division
query I rowsort label-2789
SELECT 38 DIV + col0 AS col1 FROM tab2
----
0
0
5
skipif mysql # not compatible
query I rowsort label-2789
SELECT 38 / + col0 AS col1 FROM tab2
----
0
0
5
query I rowsort
SELECT ALL col1 * 70 FROM tab0 cor0
----
6020
6370
6790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2791
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) / 53 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2791
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) / 53 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - col2 + col0 - col1 AS col1 FROM tab1 AS cor0
----
-29
-3
-77
query I rowsort
SELECT ALL - 87 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c0011cd00aa3e86f06bebc13678997f9
query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
94
query I rowsort
SELECT + col0 * + 28 + + col1 AS col1 FROM tab2 AS cor0
----
2229
2243
227
query I rowsort
SELECT 24 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT + col1 * - tab0.col0 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2798
SELECT ALL + CAST( NULL AS DECIMAL ) * 81 * col0 col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + CAST ( NULL AS REAL ) * 81 * col0 col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 22 + tab1.col2 * tab1.col2 FROM tab1
----
10976
2982
4657
onlyif mysql # use DIV operator for integer division
query I rowsort label-2800
SELECT DISTINCT + col1 DIV 25 + + col1 FROM tab1 AS cor0
----
10
13
27
skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT + col1 / 25 + + col1 FROM tab1 AS cor0
----
10
13
27
query I rowsort
SELECT + ( + col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 29 FROM tab0, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
29
query I rowsort
SELECT ALL - - col0 + - col2 + col2 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 14 * 5 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT + cor0.col2 + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc
query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + + col0 + - col2 * 19 + col0 AS col2 FROM tab2 AS cor0
----
-338
-499
-564
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2808
SELECT + ( + col2 ) * 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-2808
SELECT + ( + col2 ) * CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 94 - col2 AS col2 FROM tab1 AS cor0
----
-2
37
40
query I rowsort
SELECT - + 98 * - col0 FROM tab0 AS cor0
----
2352
3430
8722
query I rowsort
SELECT - col1 + col2 + + col0 * col2 FROM tab2 AS cor0
----
185
1995
3023
query I rowsort
SELECT 1 + - col0 * - 69 FROM tab1 AS cor0
----
208
4417
5521
query I rowsort
SELECT - - col1 * - col2 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - col0 - - tab1.col2 * col0 AS col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL + 82 * + tab2.col1 AS col0 FROM tab2
----
1394
2542
4838
query I rowsort
SELECT DISTINCT 39 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1287
3198
39
query I rowsort
SELECT DISTINCT + - col0 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT - col2 + - 58 FROM tab0 AS cor0
----
-140
-59
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2819
SELECT ( col2 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2819
SELECT ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 6 * tab1.col2 + + tab1.col2 FROM tab1
----
378
399
672
query I rowsort
SELECT - 36 + col2 + ( - col2 ) * + col2 FROM tab0
----
-1092
-36
-6678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * - ( + col1 ) * col1 + col2 + col1 FROM tab0 AS cor0
----
636175
753744
912771
query I rowsort
SELECT + ( + cor0.col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * - col1 * col2 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + + 38 * + col1 FROM tab2 cor0
----
1178
2242
646
query I rowsort
SELECT + ( + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - - 43 * - cor0.col1 FROM tab2 cor0
----
-1333
-2537
-731
query I rowsort
SELECT col1 + - col0 AS col0 FROM tab2 cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col2 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2831
SELECT ALL - + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL - + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + - ( + col1 ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col0 + 16 FROM tab0 AS cor0
----
105
40
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2834
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * col1 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col2 * + 4 + col2 AS col1 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT ( col1 ) * + cor0.col0 + col2 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col0 * col2 * 80 col0 FROM tab1 AS cor0
----
-12906
-291783
-614304
query I rowsort
SELECT + ( col0 * - col0 ) AS col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT DISTINCT + + col1 DIV ( col0 * ( - cor0.col2 ) + + col2 ) FROM tab0 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT + + col1 / ( col0 * ( - cor0.col2 ) + + col2 ) FROM tab0 AS cor0
----
-2
0
query I rowsort
SELECT + col2 * - 92 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT ALL - cor0.col2 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL 46 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2844
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2844
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + col1 * + col2 AS col1 FROM tab0 cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2846
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2846
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + cor0.col1 * + 37 + - col2 FROM tab1 AS cor0
----
313
385
908
query I rowsort
SELECT ALL ( - ( col2 ) ) * + col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + 15 * - col1 * + tab1.col2 AS col0 FROM tab1
----
-18720
-21060
-8550
query I rowsort
SELECT ( tab1.col1 + col1 ) * + ( - 87 + tab1.col1 ) AS col2 FROM tab1
----
-1540
-1924
-3172
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + col1 * - 36 col0 FROM tab2 AS cor0
----
-1147
-2183
-629
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * + col1 col0 FROM tab1 cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * - col1 col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT ALL tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - 85 + - col2 + - tab0.col2 FROM tab0
----
-151
-249
-87
query I rowsort
SELECT + 55 - + col0 FROM tab1
----
-25
-9
52
query I rowsort
SELECT 28 - + col2 FROM tab1
----
-26
-29
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT DISTINCT + + col2 + + cor0.col2 * 61 - + col2 DIV col1 FROM tab0 AS cor0
----
2046
5084
62
skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + + col2 + + cor0.col2 * 61 - + col2 / col1 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT ALL + col2 + + col0 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL - + col2 * col1 + + 5 AS col1 FROM tab0 AS cor0
----
-2833
-7457
-92
query I rowsort
SELECT DISTINCT col0 * - col2 * - ( - col0 ) FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + + col0 + + col0 + 5 FROM tab1 AS cor0
----
11
133
165
query I rowsort
SELECT ALL - col1 * col2 + - col1 AS col2 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT col0 - - ( - 22 ) AS col2 FROM tab0 AS cor0
----
13
2
67
query I rowsort
SELECT DISTINCT + - col0 + - 87 FROM tab1 AS cor0
----
-151
-167
-90
skipif mysql # not compatible
query I rowsort
SELECT + col0 + CAST ( - ( - cor0.col2 ) AS REAL ) AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ( tab2.col1 ) - 39 * tab2.col2 * - col2 FROM tab2
----
26423
28462
56333
query I rowsort
SELECT ALL - 85 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2870
SELECT - col1 * - CAST( NULL AS DECIMAL ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2870
SELECT - col1 * - CAST ( NULL AS REAL ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 27 FROM tab1 AS cor0
----
107
30
91
query I rowsort
SELECT - col0 - ( col1 ) FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + col2 + ( tab2.col1 + + col0 ) * - ( tab2.col0 ) * + col0 FROM tab2
----
-1835
-599098
-833482
query I rowsort
SELECT - cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 2 * - cor0.col2 * cor0.col1 + - 7 FROM tab1, tab2 AS cor0
----
9 values hashing to f835e41ccb0bee36e9b25e078318f249
query I rowsort
SELECT ALL - col0 - col2 * + ( col1 ) FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT tab1.col2 * + ( col1 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2878
SELECT - col2 + 14 DIV - 16 AS col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2878
SELECT - col2 + 14 / - 16 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - col1 * col2 + - col0 * - col1 AS col0 FROM tab2 cor0
----
-620
3068
697
query I rowsort
SELECT ALL - 18 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT + 86 * cor0.col1 + - col1 AS col1 FROM tab2 AS cor0
----
1445
2635
5015
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT DISTINCT - CAST( col1 AS SIGNED ) + col1 * 88 FROM tab0 cor0
----
7482
7917
8439
skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT - CAST ( col1 AS INTEGER ) + col1 * 88 FROM tab0 cor0
----
7482
7917
8439
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2883
SELECT col2 / - col1 + + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2883
SELECT col2 / - col1 + + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col0 ) + + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - 27 AS col1 FROM tab1, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 96d69a44243853624f324b296563e205
query I rowsort
SELECT ALL - 37 * 48 - + col1 * 93 FROM tab1 cor0
----
-2706
-2985
-4194
onlyif mysql # use DIV operator for integer division
query I rowsort label-2887
SELECT - 79 + col0 DIV + col1 FROM tab0 AS cor0
----
-79
-79
-79
skipif mysql # not compatible
query I rowsort label-2887
SELECT - 79 + col0 / + col1 FROM tab0 AS cor0
----
-79
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2888
SELECT ALL - 40 DIV 93 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - 40 / 93 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2889
SELECT ALL + col0 - col0 DIV - col2 FROM tab1 AS cor0
----
3
65
80
skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + col0 - col0 / - col2 FROM tab1 AS cor0
----
3
65
80
query I rowsort
SELECT ALL + ( 90 ) FROM tab0 cor0
----
90
90
90
query I rowsort
SELECT DISTINCT ( 67 ) * col0 AS col1 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT - col1 + cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT ALL + 48 AS col0 FROM tab2 AS cor0
----
48
48
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT ( col2 ) * - col0 + + cor0.col1 DIV col2 col1 FROM tab0 AS cor0
----
-7297
-790
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2894
SELECT ( col2 ) * - col0 + + cor0.col1 / col2 col1 FROM tab0 AS cor0
----
-7297
-790
62
query I rowsort
SELECT ALL - ( - col2 ) + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2896
SELECT - - col2 + + ( cor0.col1 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2896
SELECT - - col2 + + ( cor0.col1 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT - 29 - - col1 DIV - col1 col0 FROM tab2 AS cor0
----
-30
-30
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2897
SELECT - 29 - - col1 / - col1 col0 FROM tab2 AS cor0
----
-30
-30
-30
query I rowsort
SELECT DISTINCT + - 23 + col1 FROM tab0 AS cor0
----
63
68
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-2899
SELECT + 29 DIV - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2899
SELECT + 29 / - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 * col0 col2 FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT DISTINCT + + col0 + + col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2902
SELECT ALL - col2 * col0 + CAST( NULL AS SIGNED ) / 78 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - col2 * col0 + CAST ( NULL AS INTEGER ) / 78 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 43 * + col2 + + ( - col1 ) AS col1 FROM tab1 AS cor0
----
2296
2441
4115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 81 + + col0 col1 FROM tab2 AS cor0
----
-2
-3
-74
query I rowsort
SELECT ALL 70 + col1 AS col2 FROM tab2 AS cor0
----
101
129
87
query I rowsort
SELECT - col0 * + 18 FROM tab0 AS cor0
----
-1602
-432
-630
query I rowsort
SELECT DISTINCT col2 + - col1 * - 96 * col1 AS col2 FROM tab2 AS cor0
----
27782
334202
92283
query I rowsort
SELECT 9 + - col0 AS col2 FROM tab2
----
-69
-70
2
query I rowsort
SELECT col2 + + ( + 53 ) * - col2 AS col0 FROM tab2 AS cor0
----
-1352
-1404
-1976
query I rowsort
SELECT DISTINCT 79 AS col1 FROM tab0
----
79
query I rowsort
SELECT 61 * - col0 FROM tab1 AS cor0
----
-183
-3904
-4880
onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT DISTINCT - col2 * col0 DIV - 43 + + col2 * col1 FROM tab1 AS cor0
----
1407
1426
654
skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT - col2 * col0 / - 43 + + col2 * col1 FROM tab1 AS cor0
----
1407
1426
654
query I rowsort
SELECT + col0 + - cor0.col0 * - 33 AS col2 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT 86 + col1 FROM tab1
----
112
96
99
query I rowsort
SELECT + 25 + tab1.col0 AS col0 FROM tab1
----
105
28
89
query I rowsort
SELECT col0 + - col0 * col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col2 + - col2 * - col0 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT - ( - col0 ) DIV col0 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2918
SELECT - ( - col0 ) / col0 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + - col0 * col0 + 59 * - col1 * + col0 + + col2 AS col1 FROM tab1 AS cor0
----
-41799
-4557
-67664
query I rowsort
SELECT DISTINCT - - ( - col1 ) * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + ( - cor1.col0 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT col2 - col1 * col2 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT cor0.col1 + - ( + col2 ) * col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL cor0.col1 + 47 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 6b12001a3f30223f17eac8a0c33b37ff
query I rowsort
SELECT DISTINCT - + col1 + + cor0.col0 AS col0 FROM tab0 cor0
----
-2
-62
query I rowsort
SELECT ALL - - 4 + - col1 FROM tab0 AS cor0
----
-82
-87
-93
query I rowsort
SELECT + ( col0 ) * - col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT 82 * cor0.col0 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 669f1d4f8fa3ee4e77110d388fdff94d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2929
SELECT ALL 80 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2929
SELECT ALL 80 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + 50 + + 86 AS col0 FROM tab0 AS cor0
----
136
136
136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 * col0 col1 FROM tab2
----
-175
-1950
-1975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 49 col1 FROM tab1 AS cor0
----
-46
15
31
query I rowsort
SELECT cor0.col1 + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col0 * + 73 col1 FROM tab1 AS cor0
----
-299008
-467200
-657
query I rowsort
SELECT + col2 * + col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - 28 - - col1 FROM tab0 AS cor0
----
58
63
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT ALL col1 / col0 + CAST( NULL AS DECIMAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL col1 / col0 + CAST ( NULL AS REAL ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT - col2 + + 52 FROM tab1 AS cor0
----
-2
-44
-5
query I rowsort
SELECT col0 * 61 FROM tab1
----
183
3904
4880
query I rowsort
SELECT ( - 54 ) * + cor0.col1 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 6de3270c546a8a8aabec7a395186c032
query I rowsort
SELECT + - 79 + col2 AS col1 FROM tab1 AS cor0
----
-22
-25
17
query I rowsort
SELECT + 79 + - col1 AS col1 FROM tab2 AS cor0
----
20
48
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT + - 85 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2944
SELECT + - 85 / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - - col1 * 65 FROM tab2 AS cor0
----
1105
2015
3835
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2946
SELECT - + ( 19 ) * cor0.col2 + + CAST( - 23 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1049
-1106
-1847
skipif mysql # not compatible
query I rowsort label-2946
SELECT - + ( 19 ) * cor0.col2 + + CAST ( - 23 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1049
-1106
-1847
query I rowsort
SELECT + col2 * ( - col1 ) AS col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2948
SELECT ALL + col1 DIV + tab2.col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2948
SELECT ALL + col1 / + tab2.col1 FROM tab2
----
1
1
1
query I rowsort
SELECT + ( col2 ) - + 23 * 5 FROM tab1 AS cor0
----
-19
-58
-61
query I rowsort
SELECT 43 + - col0 - - ( col0 + + col0 ) FROM tab1
----
107
123
46
query I rowsort
SELECT DISTINCT + col0 * col1 - + col1 FROM tab2
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2952
SELECT DISTINCT tab0.col0 - - col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT tab0.col0 - - col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
query I rowsort
SELECT ALL 59 * - col0 FROM tab1 cor0
----
-177
-3776
-4720
query I rowsort
SELECT - + col1 + + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + col1 * + col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + col0 * + 91 + 28 FROM tab2 AS cor0
----
665
7126
7217
query I rowsort
SELECT DISTINCT col0 * - col2 + 54 * - col1 AS col1 FROM tab2 AS cor0
----
-1863
-3920
-5214
onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT ALL col0 DIV + 33 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2958
SELECT ALL col0 / + 33 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT ALL - col0 * + col1 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2960
SELECT ALL - col1 * CAST( ( - cor0.col1 ) * ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
1000
17576
2197
skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL - col1 * CAST ( ( - cor0.col1 ) * ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * tab2.col1 * 24 col1 FROM tab2
----
25704
46872
89208
query I rowsort
SELECT col1 + col0 + col1 FROM tab1
----
106
55
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT DISTINCT + col1 * + col1 * ( 83 * col1 ) + - col2 - ( - col0 ) * - CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
52791823
62539013
75751823
skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + col1 * + col1 * ( 83 * col1 ) + - col2 - ( - col0 ) * - CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
52791823
62539013
75751823
query I rowsort
SELECT DISTINCT - 52 AS col0 FROM tab2
----
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT cor0.col1 DIV - 9 - + 41 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bf936873ea83859d7de02163c5c3f88
skipif mysql # not compatible
query I rowsort label-2965
SELECT cor0.col1 / - 9 - + 41 FROM tab0, tab1 AS cor0
----
9 values hashing to 8bf936873ea83859d7de02163c5c3f88
query I rowsort
SELECT ( - 83 ) AS col0 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT ALL - col2 * - col1 + col0 * cor0.col1 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
101088
37050
5616
query I rowsort
SELECT + 64 + + col1 AS col1 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT ALL - - col0 * + 84 + cor0.col2 AS col2 FROM tab0 cor0
----
2049
2941
7558
query I rowsort
SELECT - + ( - col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col0 * - tab2.col0 * + col1 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT DISTINCT - - col2 DIV col1 + 38 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
1205
2268
686
skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - - col2 / col1 + 38 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
1205
2268
686
query I rowsort
SELECT DISTINCT + 86 + col2 AS col2 FROM tab0 AS cor0
----
119
168
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col1 FROM tab0 cor0
----
72
query I rowsort
SELECT 44 FROM tab1, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 * cor0.col2 - - col2 col2 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT DISTINCT - + 8 + - col0 AS col0 FROM tab2 AS cor0
----
-15
-86
-87
query I rowsort
SELECT ALL + + 18 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT DISTINCT - 30 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-30
query I rowsort
SELECT ALL + 88 * + col2 * cor0.col1 + col1 * col1 FROM tab0 AS cor0
----
17945
257140
664937
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 FROM tab0 cor0
----
-119
-173
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + + 83 col1 FROM tab2 AS cor0
----
-6001
-6158
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col2 ) * - 40 * 24 col2 FROM tab0 AS cor0
----
-31680
-78720
-960
query I rowsort
SELECT ALL + col0 + col0 + + ( cor0.col2 ) * - col1 FROM tab0 cor0
----
-27
-2790
-7284
query I rowsort
SELECT ALL + 69 AS col0 FROM tab0 cor0
----
69
69
69
query I rowsort
SELECT ALL - ( col0 ) * - col0 + + col1 + + col2 AS col1 FROM tab0 AS cor0
----
1323
695
8094
query I rowsort
SELECT DISTINCT + + col2 + + col1 + col2 AS col0 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
164
249
679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + + 31 col0 FROM tab0 cor0
----
117
122
128
query I rowsort
SELECT - + col1 * - col2 + + col1 + col1 AS col0 FROM tab0 AS cor0
----
291
3010
7644
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 cor1, tab1 AS cor2
----
972 values hashing to 7864aada86bf5bf5e1621c7905de8dcd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT DISTINCT + CAST( + 56 AS SIGNED ) col0 FROM tab2, tab0 AS cor0
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT + CAST ( + 56 AS INTEGER ) col0 FROM tab2, tab0 AS cor0
----
56
query I rowsort
SELECT col0 + + 51 + col1 FROM tab1
----
125
144
80
query I rowsort
SELECT DISTINCT + tab0.col2 + col1 * - 66 + + col1 * + col0 AS col1 FROM tab0
----
-3006
-3579
2175
query I rowsort
SELECT + col1 * + col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - 2 * col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL - - col1 * 73 AS col1 FROM tab1 cor0
----
1898
730
949
query I rowsort
SELECT cor0.col2 * + ( - col2 ) FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2999
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / + cor0.col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / + cor0.col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + col0 + - 25 AS col2 FROM tab1
----
-22
39
55
query I rowsort
SELECT ALL ( 0 ) + + cor0.col0 AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col2 * + 41 - - col0 AS col1 FROM tab0 AS cor0
----
1377
3451
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3004
SELECT + CAST( - 43 AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
skipif mysql # not compatible
query I rowsort label-3004
SELECT + CAST ( - 43 AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + 25 col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7a92245935dd6a9f007d947403efe5c5
query I rowsort
SELECT + - 83 + - col1 FROM tab0 AS cor0
----
-169
-174
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 + col1 col2 FROM tab0 AS cor0
----
119
124
130
query I rowsort
SELECT DISTINCT col0 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-3009
SELECT DISTINCT col2 + - cor0.col1 DIV col2 AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3009
SELECT DISTINCT col2 + - cor0.col1 / col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - - col1 + + 14 FROM tab0 AS cor0
----
100
105
111
query I rowsort
SELECT DISTINCT col1 + ( - cor0.col1 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL + 18 FROM tab1, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298
query I rowsort
SELECT ALL + - col1 + + 77 * col2 AS col2 FROM tab1 AS cor0
----
4132
4379
7379
query I rowsort
SELECT ALL - - col2 * + col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col2 * + 35 + cor0.col0 * + col1 + - ( - 22 * - col0 ) FROM tab0 AS cor0
----
2660
2691
9011
query I rowsort
SELECT col0 * + ( - col2 * - col1 ) FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT col2 + - col0 DIV col2 col2 FROM tab1 AS cor0
----
54
56
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3018
SELECT col2 + - col0 / col2 col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab2, tab0 AS cor0
----
-18
query I rowsort
SELECT + ( - cor0.col1 ) + - col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL + col1 + - col1 + + 2 AS col2 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT ALL - 34 * + col1 + col1 + + 43 * col2 AS col0 FROM tab1 AS cor0
----
1464
2121
3699
query I rowsort
SELECT DISTINCT - col2 * + col2 + + col0 AS col2 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT ( 56 ) * - col1 AS col2 FROM tab0
----
-4816
-5096
-5432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 66 + + col0 col2 FROM tab2
----
66
66
66
query I rowsort
SELECT ALL - 68 + + col2 FROM tab0 AS cor0
----
-35
-67
14
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT col1 + col2 * + ( + 77 ) FROM tab1
----
4184
4399
7405
query I rowsort
SELECT DISTINCT + 37 * + tab2.col1 AS col2 FROM tab2
----
1147
2183
629
query I rowsort
SELECT DISTINCT + 65 + + col0 * col1 * + 8 AS col2 FROM tab1 AS cor0
----
5185
689
8385
query I rowsort
SELECT - col0 * col0 * col0 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT ALL + 14 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3033
SELECT + col0 DIV col2 + + col0 AS col0 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-3033
SELECT + col0 / col2 + + col0 AS col0 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT 78 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT - ( + 75 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT ALL col1 + - 14 FROM tab0
----
72
77
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3038
SELECT - CAST( 80 AS SIGNED ) AS col0 FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52
skipif mysql # not compatible
query I rowsort label-3038
SELECT - CAST ( 80 AS INTEGER ) AS col0 FROM tab0, tab1, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to a3c8e513c78e2eef41ad24aabcbeff52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3039
SELECT ALL - col0 DIV + col0 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL - col0 / + col0 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL col0 * - 0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL ( ( col1 ) ) + - ( tab1.col0 + - col1 ) * col1 FROM tab1
----
-530
-858
624
onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT ALL - col0 DIV 19 AS col2 FROM tab2
----
-4
-4
0
skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - col0 / 19 AS col2 FROM tab2
----
-4
-4
0
query I rowsort
SELECT ALL + cor2.col0 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT DISTINCT - + ( col1 ) + + cor0.col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col2 - col0 * col2 * col1 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT col2 * - col0 * ( - 94 * - cor0.col2 ) AS col0 FROM tab1 cor0
----
-19545984
-69304320
-822312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3047
SELECT ALL - cor0.col1 * col1 - + CAST( - 39 * col2 AS SIGNED ) FROM tab2 AS cor0
----
-2467
1193
92
skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL - cor0.col1 * col1 - + CAST ( - 39 * col2 AS INTEGER ) FROM tab2 AS cor0
----
-2467
1193
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3048
SELECT - col1 * + col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3048
SELECT - col1 * + col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 97 + col2 AS col2 FROM tab1
----
151
154
193
query I rowsort
SELECT - col2 * - col1 * 9 + - col1 + col0 AS col0 FROM tab2 AS cor0
----
13825
5876
7509
query I rowsort
SELECT + cor0.col2 * + col1 * - col0 - col1 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT - + 27 * + col2 - col0 AS col2 FROM tab2 AS cor0
----
-1105
-736
-780
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 * col0 + + col2 AS col1 FROM tab2 cor0
----
107
6169
6296
query I rowsort
SELECT DISTINCT + col1 + - cor0.col2 * col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL ( - 14 ) - + col0 * + col1 FROM tab1 AS cor0
----
-1054
-654
-92
query I rowsort
SELECT + 65 + ( - col1 ) FROM tab1
----
39
52
55
query I rowsort
SELECT ALL + - col0 * - cor0.col1 + col0 AS col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + - col2 + col1 * cor0.col0 AS col2 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT ALL - + 3 + - 75 FROM tab2 AS cor0
----
-78
-78
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3061
SELECT ALL - CAST( NULL AS SIGNED ) * col0 * col1 - col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 * col1 - col2 * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3063
SELECT ALL + + 81 + + col1 DIV cor0.col2 FROM tab1 AS cor0
----
81
81
81
skipif mysql # not compatible
query I rowsort label-3063
SELECT ALL + + 81 + + col1 / cor0.col2 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT ALL - 12 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
query I rowsort
SELECT DISTINCT + 30 + + col2 AS col2 FROM tab2
----
56
57
68
query I rowsort
SELECT DISTINCT 29 * + col1 * - 76 + tab1.col1 + + col2 FROM tab1
----
-21973
-28543
-57224
query I rowsort
SELECT 72 * col2 AS col1 FROM tab0
----
2376
5904
72
query I rowsort
SELECT ALL ( + col0 * - col0 ) + col2 * + col0 FROM tab0
----
-1190
-623
216
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to 731e4a6549b312ba21c2e61ca9bede27
onlyif mysql # use DIV operator for integer division
query I rowsort label-3070
SELECT - 31 DIV + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3070
SELECT - 31 / + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + + col1 + cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * ( - 66 ) col0 FROM tab1 cor0
----
-3564
-3762
-6336
query I rowsort
SELECT ALL + col2 * 49 + col2 FROM tab0 AS cor0
----
1650
4100
50
query I rowsort
SELECT + col0 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # use DIV operator for integer division
query I rowsort label-3076
SELECT ALL - col1 DIV + ( col0 + col2 ) FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL - col1 / + ( col0 + col2 ) FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + col2 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 48 AS col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT ALL col2 + col1 AS col2 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3080
SELECT col1 + col2 DIV col0 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-3080
SELECT col1 + col2 / col0 FROM tab1
----
10
14
44
query I rowsort
SELECT col1 * - col1 + + col2 * - col0 AS col2 FROM tab2
----
-1150
-3291
-5509
query I rowsort
SELECT + col2 + col0 * - col0 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT cor0.col2 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e1120e7b687b32270ef70393236e7341
onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT + col0 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3084
SELECT + col0 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col2 * col1 * col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT ALL col2 DIV - tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL col2 / - tab0.col1 AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3087
SELECT + ( + col2 ) - - col1 DIV col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3087
SELECT + ( + col2 ) - - col1 / col2 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 20 * col0 + + col1 col2 FROM tab1 AS cor0
----
1290
1613
86
query I rowsort
SELECT ALL + 56 * - col1 - col2 AS col0 FROM tab1 AS cor0
----
-1510
-617
-824
query I rowsort
SELECT DISTINCT + 75 * + col1 * col1 + col1 FROM tab2 AS cor0
----
21692
261134
72106
query I rowsort
SELECT + + col1 + col0 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL + cor0.col0 + - col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - 58 * - cor0.col0 * - col2 - col0 FROM tab0 AS cor0
----
-2065
-423373
-45960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col0 + col0 col1 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT - 10 AS col1 FROM tab1 cor0
----
-10
-10
-10
query I rowsort
SELECT ALL + 68 + col1 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT DISTINCT - 71 + col2 FROM tab1 AS cor0
----
-14
-17
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT DISTINCT - 72 DIV col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT - 72 / col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT 87 * - ( col0 ) - - col0 AS col1 FROM tab2
----
-602
-6708
-6794
query I rowsort
SELECT ALL ( ( col0 ) * tab0.col2 ) AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT - ( col0 ) DIV - tab0.col2 AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3101
SELECT - ( col0 ) / - tab0.col2 AS col2 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 66 - col2 FROM tab2
----
28
39
40
query I rowsort
SELECT ALL - col0 * col0 * - col2 + col1 * col1 FROM tab2
----
161665
2284
237447
query I rowsort
SELECT DISTINCT col1 * col0 * col0 + tab2.col1 + col2 FROM tab2
----
106152
1577
359041
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT - col2 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3106
SELECT - col2 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT ALL 8 + col0 * col0 AS col2 FROM tab1 AS cor0
----
17
4104
6408
query I rowsort
SELECT - + col1 * col1 + - cor0.col2 FROM tab1 cor0
----
-157
-265
-730
query I rowsort
SELECT + tab0.col0 * + tab0.col1 + col2 * + col0 + + col0 AS col0 FROM tab0
----
15486
2880
3465
query I rowsort
SELECT DISTINCT - 87 FROM tab2, tab1 cor0
----
-87
query I rowsort
SELECT + col2 * - 49 + tab0.col0 AS col0 FROM tab0
----
-14
-1593
-3929
query I rowsort
SELECT + + 66 * - col2 - cor0.col1 * col2 FROM tab0 AS cor0
----
-12874
-163
-5016
query I rowsort
SELECT DISTINCT 4 - - col2 AS col2 FROM tab1 AS cor0
----
100
58
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3114
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3115
SELECT CAST( 9 AS SIGNED ) FROM tab1
----
9
9
9
skipif mysql # not compatible
query I rowsort label-3115
SELECT CAST ( 9 AS INTEGER ) FROM tab1
----
9
9
9
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 + ( 57 ) AS col1 FROM tab2 cor0
----
1591
703
894
query I rowsort
SELECT DISTINCT - - col1 * col1 + - col2 * - col2 AS col2 FROM tab0 AS cor0
----
15005
8485
9410
query I rowsort
SELECT + 50 + - col0 FROM tab2 AS cor0
----
-28
-29
43
query I rowsort
SELECT - + 9 + - col2 AS col1 FROM tab2 AS cor0
----
-35
-36
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-3120
SELECT + col1 DIV col1 + + col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-3120
SELECT + col1 / col1 + + col1 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - + col2 * - col2 * col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + col0 + ( 91 ) AS col2 FROM tab0 AS cor0
----
115
126
180
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + cor0.col0 AS REAL ) * - cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * + 40 col1 FROM tab2 cor0
----
1233
2282
601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * ( col0 ) col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT + - col2 + + ( col0 + - col0 * 8 ) AS col0 FROM tab0 AS cor0
----
-201
-246
-705
onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT col0 DIV + cor0.col0 + col2 * + cor0.col0 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
114156
5111
52807
skipif mysql # not compatible
query I rowsort label-3128
SELECT col0 / + cor0.col0 + col2 * + cor0.col0 * + col2 + col0 AS col1 FROM tab2 AS cor0
----
114156
5111
52807
query I rowsort
SELECT + col0 + 21 AS col0 FROM tab2 AS cor0
----
100
28
99
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 + - cor0.col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL 76 FROM tab2, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL - col1 * col2 + - col0 * col0 FROM tab2
----
-6887
-7618
-886
query I rowsort
SELECT - - ( col0 ) * col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col0 * col1 - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT - - col2 + col1 - + col0 * + 47 FROM tab0 cor0
----
-1009
-1547
-4010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT col1 * col0 + + cor0.col0 DIV + col0 col0 FROM tab1 cor0
----
1041
641
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3136
SELECT col1 * col0 + + cor0.col0 / + col0 col0 FROM tab1 cor0
----
1041
641
79
query I rowsort
SELECT DISTINCT + col1 + + ( col0 ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-3138
SELECT ALL - col1 DIV - col1 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL - col1 / - col1 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL cor0.col0 * col2 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT + 3 * col2 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT + ( + 46 ) - - col2 AS col0 FROM tab1 cor0
----
100
103
142
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3142
SELECT + ( col2 ) * + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3142
SELECT + ( col2 ) * + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3143
SELECT 56 * + col0 - + col0 DIV ( col1 ) FROM tab2 cor0
----
392
4367
4420
skipif mysql # not compatible
query I rowsort label-3143
SELECT 56 * + col0 - + col0 / ( col1 ) FROM tab2 cor0
----
392
4367
4420
query I rowsort
SELECT + 67 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * - 47 col1 FROM tab0 AS cor0
----
-1095
-1644
-4101
query I rowsort
SELECT - + cor0.col2 * + col1 + - ( + col0 + + col1 ) FROM tab1 cor0
----
-1341
-1433
-644
query I rowsort
SELECT 51 * col2 + col0 FROM tab1 AS cor0
----
2757
2971
4976
query I rowsort
SELECT ALL - tab2.col0 + ( + col0 ) - 72 AS col1 FROM tab2
----
-72
-72
-72
query I rowsort
SELECT DISTINCT + 50 AS col1 FROM tab2, tab0 AS cor0
----
50
query I rowsort
SELECT ALL 33 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT col0 - ( - col2 * tab0.col0 ) FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL - cor0.col0 * - col2 * 45 + col2 AS col2 FROM tab0 AS cor0
----
1576
328492
35673
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3153
SELECT ALL + cor0.col1 * 58 - + col1 * + col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL + cor0.col1 * 58 - + col1 * + col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3155
SELECT col0 + - CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-3155
SELECT col0 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - col0 * col0 + col0 AS col2 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3158
SELECT ALL col1 * col2 + - col0 DIV - col0 FROM tab1 AS cor0
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-3158
SELECT ALL col1 * col2 + - col0 / - col0 FROM tab1 AS cor0
----
1249
1405
571
query I rowsort
SELECT ALL + tab0.col1 + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT + ( tab0.col2 ) + - col0 - col2 * - col1 AS col0 FROM tab0
----
2847
63
7455
onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT + cor0.col2 + + col1 DIV 89 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3161
SELECT + cor0.col2 + + col1 / 89 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col2 * 35 FROM tab2 cor0
----
-1330
-910
-945
query I rowsort
SELECT DISTINCT - ( tab1.col1 ) AS col1 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-3164
SELECT DISTINCT col0 DIV - col1 - tab1.col2 * - col2 FROM tab1
----
2916
3243
9210
skipif mysql # not compatible
query I rowsort label-3164
SELECT DISTINCT col0 / - col1 - tab1.col2 * - col2 FROM tab1
----
2916
3243
9210
query I rowsort
SELECT + 98 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * + col2 * + col1 col0 FROM tab0
----
122034
320866
4171
onlyif mysql # use DIV operator for integer division
query I rowsort label-3167
SELECT - + col0 * + cor0.col0 * col0 + cor0.col0 DIV + col0 FROM tab2 cor0
----
-342
-474551
-493038
skipif mysql # not compatible
query I rowsort label-3167
SELECT - + col0 * + cor0.col0 * col0 + cor0.col0 / + col0 FROM tab2 cor0
----
-342
-474551
-493038
query I rowsort
SELECT tab2.col0 - - col0 AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT 98 * - tab2.col1 + - tab2.col0 AS col2 FROM tab2
----
-1745
-3045
-5860
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 + col0 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT DISTINCT - ( col0 ) * ( col0 ) + col0 + ( - col2 ) * col1 FROM tab0 AS cor0
----
-1287
-15294
-3390
query I rowsort
SELECT DISTINCT - - col2 - col1 AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - + ( + col2 ) * - ( - col2 ) - + col0 AS col2 FROM tab1 cor0
----
-2919
-3313
-9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-3174
SELECT - col0 DIV + col2 + ( - col0 ) col2 FROM tab0 AS cor0
----
-24
-70
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3174
SELECT - col0 / + col2 + ( - col0 ) col2 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT - col2 + col2 * cor0.col2 * col1 + - col2 * + 71 AS col2 FROM tab0 AS cor0
----
25
605980
91278
query I rowsort
SELECT DISTINCT - cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 + - col2 * col2 AS col0 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT DISTINCT + - 86 * + col1 AS col1 FROM tab1 cor0
----
-1118
-2236
-860
query I rowsort
SELECT ALL 48 - - 87 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 1cfd8553fcf301b45e2362b732c529e8
query I rowsort
SELECT - 10 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to bb7f754a7a056e665155ed52a63f5bc0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 + - col2 * - col0 + + col0 col2 FROM tab2
----
2189
279
3164
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 + col2 * ( + col2 + - col2 ) * 34 col0 FROM tab1
----
91
91
91
query I rowsort
SELECT + col1 * - col0 + 42 + - tab0.col0 AS col2 FROM tab0
----
-2046
-3388
-8146
query I rowsort
SELECT ALL col0 + col0 * + 22 * col0 + + col0 FROM tab2
----
1092
134004
137460
query I rowsort
SELECT - col0 + cor0.col2 AS col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + cor0.col1 * col0 + + col0 - - col0 FROM tab2 AS cor0
----
1501
231
4758
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-2016
-3325
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT DISTINCT 36 DIV col1 + col2 + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-3188
SELECT DISTINCT 36 / col1 + col2 + col2 / - col2 AS col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT + + cor0.col0 + - 70 FROM tab0 AS cor0
----
-35
-46
19
skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( - col0 AS REAL ) + + col1 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3191
SELECT + + col2 * + CAST( NULL AS SIGNED ) + col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3191
SELECT + + col2 * + CAST ( NULL AS INTEGER ) + col1 * + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3192
SELECT DISTINCT col0 - col0 DIV + 29 FROM tab0 AS cor0
----
24
34
86
skipif mysql # not compatible
query I rowsort label-3192
SELECT DISTINCT col0 - col0 / + 29 FROM tab0 AS cor0
----
24
34
86
query I rowsort
SELECT ALL col0 * - col2 * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT 67 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT ALL 50 + col1 * ( - col0 ) AS col0 FROM tab2
----
-1293
-167
-4552
onlyif mysql # use DIV operator for integer division
query I rowsort label-3196
SELECT ALL col1 + + col2 DIV + col0 FROM tab0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL col1 + + col2 / + col0 FROM tab0
----
87
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3197
SELECT + col2 * CAST( NULL AS SIGNED ) / col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3197
SELECT + col2 * CAST ( NULL AS INTEGER ) / col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3198
SELECT - col0 * + col2 + + col0 + + col0 DIV - col2 AS col1 FROM tab0 cor0
----
-35
-7210
-768
skipif mysql # not compatible
query I rowsort label-3198
SELECT - col0 * + col2 + + col0 + + col0 / - col2 AS col1 FROM tab0 cor0
----
-35
-7210
-768
query I rowsort
SELECT + col0 - col2 * + 88 AS col2 FROM tab0
----
-2880
-53
-7127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 75 * - 45 col2 FROM tab0 AS cor0
----
-3376
-3408
-3457
query I rowsort
SELECT DISTINCT + 2 * cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL cor0.col0 * col1 + - cor0.col0 * + ( - col0 ) AS col1 FROM tab0 AS cor0
----
16020
2640
4620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3203
SELECT DISTINCT CAST( NULL AS SIGNED ) * 86 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 86 AS col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3204
SELECT DISTINCT - col1 DIV - 13 AS col2 FROM tab2 cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-3204
SELECT DISTINCT - col1 / - 13 AS col2 FROM tab2 cor0
----
1
2
4
query I rowsort
SELECT - ( 8 ) * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-392
-429
-688
query I rowsort
SELECT ALL + 7 + - col1 AS col2 FROM tab0 AS cor0
----
-79
-84
-90
query I rowsort
SELECT ALL + 5 + + col0 * - col2 FROM tab0 AS cor0
----
-30
-7293
-787
query I rowsort
SELECT ALL 57 AS col2 FROM tab1 AS cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 99 * + col0 AS col2 FROM tab2 cor0
----
693
7722
7821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3211
SELECT ALL - - CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3211
SELECT ALL - - CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( - col1 ) * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - ( 81 ) AS col0 FROM tab2 AS cor0
----
-81
query I rowsort
SELECT DISTINCT - col0 * - col1 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - col0 * + col0 + - col1 + col2 FROM tab0 AS cor0
----
-1321
-629
-7930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3216
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col1 * + col1 + + 50 * cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3216
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col1 * + col1 + + 50 * cor0.col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3217
SELECT DISTINCT - col1 + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT - col1 + col0 / col1 AS col2 FROM tab1 AS cor0
----
-26
-4
-7
query I rowsort
SELECT + ( 0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( + col2 ) + col2 * ( - col2 ) FROM tab0 AS cor0
----
-1122
-2
-6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT ( 47 ) DIV col2 AS col2 FROM tab0 AS cor0
----
0
1
47
skipif mysql # not compatible
query I rowsort label-3220
SELECT ( 47 ) / col2 AS col2 FROM tab0 AS cor0
----
0
1
47
query I rowsort
SELECT ALL + - ( + ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 72 FROM tab2, tab2 AS cor0, tab1, tab1 cor1
----
81 values hashing to e1618abfe12be6a950cc575d695639b7
query I rowsort
SELECT ALL col0 + + col1 + col2 FROM tab1
----
131
189
83
query I rowsort
SELECT col2 * tab2.col0 * col2 + - col0 FROM tab2
----
113997
5096
52650
query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NULL <= ( col0 )
----
query I rowsort
SELECT + col2 + col0 * - col1 * + col2 - - col0 * col1 FROM tab2
----
-115024
-49653
-5615
query I rowsort
SELECT DISTINCT col2 + col1 + - col1 * - tab1.col2 FROM tab1
----
1357
1484
637
query I rowsort
SELECT ALL col1 * - tab0.col1 + col1 + + col1 FROM tab0
----
-7224
-8099
-9215
query I rowsort
SELECT + col1 + + col0 * + col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL + tab1.col0 * - col1 * col2 FROM tab1
----
-36480
-4212
-99840
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col2 * col0 + - tab0.col2 / - col0 )
----
query I rowsort
SELECT col2 * - col0 * tab2.col1 + + col0 FROM tab2
----
-119574
-50955
-5852
query I rowsort
SELECT DISTINCT - col1 * + col0 * col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT col2 + col1 * + col1 AS col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT col1 * - col2 AS col0 FROM tab1 WHERE NOT NULL <> col1
----
query I rowsort
SELECT + col1 * col2 + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL + tab0.col0 + col0 * + col0 FROM tab0
----
1260
600
8010
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 IN ( - col1 + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col0 * + col2 - + col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT - col1 + + col2 * - col0 AS col2 FROM tab0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col0 * + col1 + col2 + tab2.col0 * - col1 col0 FROM tab2
----
26
27
38
query I rowsort
SELECT col2 * - tab1.col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col2 + tab1.col0 * + tab1.col2 + - col0 FROM tab1
----
213
3641
7696
query I rowsort
SELECT ALL - tab0.col1 * - tab0.col1 * col1 AS col0 FROM tab0
----
636056
753571
912673
query I rowsort
SELECT + col1 * + col2 + + col0 AS col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3246
SELECT DISTINCT col0 * tab0.col1 DIV col1 AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3246
SELECT DISTINCT col0 * tab0.col1 / col1 AS col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col2 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col2 * col1 + + col1 * col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * + col2 + col0 * - col0 FROM tab1
----
-3526
-5152
1395
query I rowsort
SELECT col1 * + col1 + + col0 FROM tab0 WHERE NULL = col2 / col1
----
query I rowsort
SELECT ALL col1 * + tab2.col1 + col0 FROM tab2 WHERE NULL BETWEEN - col2 AND NULL
----
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - + col1 + + col0 * + col0 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-2348
1031
368
query I rowsort
SELECT ALL - - col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + - col0 * col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query III rowsort
SELECT * FROM tab1 WHERE col0 <= ( NULL )
----
query I rowsort
SELECT ALL + col2 + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab0 AS cor0 WHERE col0 * col2 + + col0 NOT IN ( cor0.col2 * col2 + col2 * + col0 )
----
-2064
-3395
-8099
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > ( NULL )
----
query I rowsort
SELECT - cor0.col0 * + col0 * col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT - + col1 + - col2 * - col1 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT - CAST( NULL AS SIGNED ) * - col2 - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3263
SELECT - CAST ( NULL AS INTEGER ) * - col2 - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3264
SELECT + + CAST( + 76 AS SIGNED ) * col0 * - col1 AS col2 FROM tab0 cor0
----
-156864
-258020
-615524
skipif mysql # not compatible
query I rowsort label-3264
SELECT + + CAST ( + 76 AS INTEGER ) * col0 * - col1 AS col2 FROM tab0 cor0
----
-156864
-258020
-615524
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query I rowsort
SELECT DISTINCT col2 * tab2.col1 + col1 AS col1 FROM tab2
----
1593
663
868
query III rowsort
SELECT * FROM tab2 WHERE NOT tab2.col2 <> NULL
----
query I rowsort
SELECT 56 + cor0.col0 AS col1 FROM tab1 AS cor0
----
120
136
59
query I rowsort
SELECT DISTINCT 33 * col0 AS col0 FROM tab0
----
1155
2937
792
query I rowsort
SELECT DISTINCT + - cor0.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3272
SELECT ALL + 69 DIV col1 FROM tab2
----
1
2
4
skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL + 69 / col1 FROM tab2
----
1
2
4
query I rowsort
SELECT + col2 * col1 * ( - 82 ) FROM tab1
----
-102336
-115128
-46740
query I rowsort
SELECT - 82 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
query I rowsort
SELECT DISTINCT + col2 * 63 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT ALL 61 * col0 + col1 FROM tab0 AS cor0
----
1550
2232
5520
query I rowsort
SELECT ALL + 66 * 62 * + col2 FROM tab2 cor0
----
106392
110484
155496
query I rowsort
SELECT ALL + 73 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT 49 * col1 + - col2 FROM tab1
----
1220
433
541
query I rowsort
SELECT ALL ( - 58 ) FROM tab1 AS cor0
----
-58
-58
-58
query I rowsort
SELECT + col1 + - 15 * - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
109561
11966
622
query I rowsort
SELECT + cor0.col2 + col0 - col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + 23 * - col0 + col2 - ( + cor0.col1 ) AS col1 FROM tab1 cor0
----
-1425
-1757
-41
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + ( ( + col1 ) ) + cor0.col2 - col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 * col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
12804
672399
75508
query I rowsort
SELECT + 31 + - 28 * col0 AS col2 FROM tab1 AS cor0
----
-1761
-2209
-53
query I rowsort
SELECT ALL + col1 + + col2 * col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL - col2 + - col1 * - ( + 44 ) * cor0.col1 + col1 * - cor0.col0 FROM tab0 AS cor0
----
323327
356183
410600
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 + + 26 FROM tab1 cor0
----
126
195
702
query I rowsort
SELECT ALL + 5 * + col1 AS col2 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT col0 + + 35 - - col1 FROM tab1
----
109
128
64
query I rowsort
SELECT ALL + col0 + col1 * + 11 FROM tab0 AS cor0
----
1090
1102
970
query I rowsort
SELECT 90 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3295
SELECT DISTINCT + + col0 * col1 DIV col0 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3295
SELECT DISTINCT + + col0 * col1 / col0 AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3296
SELECT col0 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3296
SELECT col0 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 - tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 + ( + tab2.col0 ) * col0 - - ( - ( + tab2.col0 ) * col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT col0 * 79 - + tab0.col0 FROM tab0
----
1872
2730
6942
onlyif mysql # use DIV operator for integer division
query I rowsort label-3300
SELECT + col0 * col1 DIV - 90 FROM tab0
----
-22
-37
-89
skipif mysql # not compatible
query I rowsort label-3300
SELECT + col0 * col1 / - 90 FROM tab0
----
-22
-37
-89
query I rowsort
SELECT - + col0 * + 45 + - 26 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-3140
-3938
-811
query I rowsort
SELECT DISTINCT - tab1.col2 + 66 FROM tab1
----
-30
12
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3303
SELECT + col1 / CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3303
SELECT + col1 / CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * - col1 - 32 AS col0 FROM tab0
----
-2096
-3427
-8131
query I rowsort
SELECT DISTINCT - col0 - col1 * 82 AS col0 FROM tab1
----
-1146
-2135
-884
query I rowsort
SELECT - col2 * 83 * + col0 + col2 * + tab0.col2 + - 86 * col2 * col0 FROM tab0
----
-1226638
-132759
-5914
query I rowsort
SELECT - col1 + + 92 * 22 * col1 AS col0 FROM tab0
----
173978
184093
196231
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT CAST( 59 AS SIGNED ) * - col0 - - cor0.col1 col0 FROM tab1 AS cor0
----
-151
-3766
-4707
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3308
SELECT CAST ( 59 AS INTEGER ) * - col0 - - cor0.col1 col0 FROM tab1 AS cor0
----
-151
-3766
-4707
query I rowsort
SELECT - 64 * + col2 FROM tab2 AS cor0
----
-1664
-1728
-2432
query I rowsort
SELECT 46 + 28 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT cor0.col0 * 85 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
255
5440
6800
query I rowsort
SELECT - ( - col0 ) - - col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3313
SELECT DISTINCT + + CAST( - 41 AS SIGNED ) DIV - col1 + cor0.col1 DIV - cor0.col1 - + col2 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-3313
SELECT DISTINCT + + CAST ( - 41 AS INTEGER ) / - col1 + cor0.col1 / - cor0.col1 - + col2 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT 37 * col2 AS col0 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL + 43 * col0 + - cor0.col1 + + col2 FROM tab1 AS cor0
----
157
2799
3523
query I rowsort
SELECT ALL - 35 + ( col1 ) * - 80 + col2 AS col1 FROM tab2 AS cor0
----
-1357
-2488
-4729
query I rowsort
SELECT - 3 * - 70 - + col1 AS col1 FROM tab2 AS cor0
----
151
179
193
onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT DISTINCT - + col1 DIV 70 - col0 * 28 AS col2 FROM tab0 cor0
----
-2493
-673
-981
skipif mysql # not compatible
query I rowsort label-3318
SELECT DISTINCT - + col1 / 70 - col0 * 28 AS col2 FROM tab0 cor0
----
-2493
-673
-981
query I rowsort
SELECT DISTINCT + + 96 + - 72 - col2 FROM tab2 AS cor0
----
-14
-2
-3
query I rowsort
SELECT ALL - 62 AS col1 FROM tab1
----
-62
-62
-62
query I rowsort
SELECT - tab2.col1 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + 63 AS col2 FROM tab1
----
63
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col0 * + col2 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL col2 + ( - col1 ) FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - + col2 col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col1 + - 72 * + col1 + + col0 FROM tab1 cor0
----
-1843
-646
-843
query I rowsort
SELECT ALL cor0.col2 * + ( - col1 ) - cor0.col0 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-101088
-37050
-5616
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 * + col0 col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - col1 * - col1 - col0 * - col1 FROM tab2 AS cor0
----
1178
1632
8083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3330
SELECT DISTINCT col0 * - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT col0 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + 50 + - cor1.col0 FROM tab0, tab1 AS cor0, tab1, tab0 AS cor1
----
-39
15
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3332
SELECT DISTINCT + - col1 * + CAST( NULL AS SIGNED ) + cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3332
SELECT DISTINCT + - col1 * + CAST ( NULL AS INTEGER ) + cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col0 * col1 + + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL - + col0 + 25 FROM tab1 AS cor0
----
-39
-55
22
query I rowsort
SELECT ALL + - col2 * ( ( - col1 ) ) + 88 FROM tab0 AS cor0
----
185
2926
7550
query I rowsort
SELECT - cor0.col2 + 41 FROM tab0 AS cor0
----
-41
40
8
query I rowsort
SELECT DISTINCT col2 * ( col2 ) FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3338
SELECT ALL col0 + - cor0.col2 * col1 DIV - col0 FROM tab0 AS cor0
----
142
172
37
skipif mysql # not compatible
query I rowsort label-3338
SELECT ALL col0 + - cor0.col2 * col1 / - col0 FROM tab0 AS cor0
----
142
172
37
query I rowsort
SELECT ALL 75 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT 32 * - 29 + - col0 AS col1 FROM tab1
----
-1008
-931
-992
query I rowsort
SELECT col2 + cor0.col2 * + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT - + col1 + + col2 AS col0 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3343
SELECT - col2 * - col0 * CAST( + col0 AS SIGNED ) FROM tab1
----
233472
486
614400
skipif mysql # not compatible
query I rowsort label-3343
SELECT - col2 * - col0 * CAST ( + col0 AS INTEGER ) FROM tab1
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-3344
SELECT 60 DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3344
SELECT 60 / + col2 FROM tab1
----
0
1
1
query I rowsort
SELECT - + col1 * col1 + + col2 * - col2 AS col2 FROM tab2 cor0
----
-1690
-1733
-4157
query I rowsort
SELECT DISTINCT 28 + - cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
-3
-31
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * col1 * + col0 col0 FROM tab0
----
-115430
-275366
-70176
onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT ALL 14 DIV col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3348
SELECT ALL 14 / col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ( - col2 ) * - col1 * col0 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col1 + - col2 * + col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT + ( - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - 15 * + col2 FROM tab1 AS cor0
----
-1440
-810
-855
query I rowsort
SELECT 71 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT + tab2.col0 * - 30 * col2 AS col0 FROM tab2
----
-5670
-60840
-90060
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + col2 + ( + col1 ) AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + 79 * - cor0.col1 FROM tab1, tab0 cor0
----
9 values hashing to 799eb6b46fc85c8f7962a894fde3ea6b
query I rowsort
SELECT - col1 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 + + col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + cor0.col0 + 67 * - col0 AS col1 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT ALL - + col0 * 25 + col1 * - col2 FROM tab1 AS cor0
----
-1479
-2170
-3248
query I rowsort
SELECT DISTINCT - - col0 + 88 AS col2 FROM tab2 AS cor0
----
166
167
95
query I rowsort
SELECT + 3 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3364
SELECT DISTINCT - CAST( + ( + col2 ) AS SIGNED ) AS col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT - CAST ( + ( + col2 ) AS INTEGER ) AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-3367
SELECT ALL + col1 DIV + cor0.col0 + cor0.col0 * 51 DIV cor0.col1 FROM tab2 AS cor0
----
15
237
67
skipif mysql # not compatible
query I rowsort label-3367
SELECT ALL + col1 / + cor0.col0 + cor0.col0 * 51 / cor0.col1 FROM tab2 AS cor0
----
15
237
67
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * tab1.col2 + - col0 AS col2 FROM tab1
----
-1328
-1407
-634
query I rowsort
SELECT ALL col0 * - tab1.col0 + col1 * + ( - col2 ) FROM tab1
----
-1413
-4666
-7648
query I rowsort
SELECT ALL + cor0.col0 + 92 * - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 471423a245834be0190dbdec50d0dfda
query I rowsort
SELECT - 71 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT ALL - + col1 * col1 - + 28 FROM tab1 AS cor0
----
-128
-197
-704
query I rowsort
SELECT 8 FROM tab2 cor0
----
8
8
8
query I rowsort
SELECT ALL 82 * - col2 AS col1 FROM tab1 AS cor0
----
-4428
-4674
-7872
onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT ALL - col1 + col1 DIV col0 FROM tab2 cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - col1 + col1 / col0 FROM tab2 cor0
----
-17
-27
-59
query I rowsort
SELECT DISTINCT col1 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT 51 AS col0 FROM tab2 cor0
----
51
51
51
query I rowsort
SELECT + cor0.col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT - - col0 DIV ( - col2 ) + cor0.col1 DIV - col2 + col0 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-3379
SELECT - - col0 / ( - col2 ) + cor0.col1 / - col2 + col0 FROM tab1 AS cor0
----
3
63
80
query I rowsort
SELECT + - col2 + - 16 FROM tab0 AS cor0
----
-17
-49
-98
query I rowsort
SELECT ALL + 50 FROM tab1, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT + - col2 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3383
SELECT ALL + col1 DIV col1 - - ( - tab0.col1 ) DIV + tab0.col2 FROM tab0
----
-1
-96
0
skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL + col1 / col1 - - ( - tab0.col1 ) / + tab0.col2 FROM tab0
----
-1
-96
0
query I rowsort
SELECT ALL 63 + col0 * ( - col1 ) * + col2 FROM tab2 AS cor0
----
-119589
-50971
-5796
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col1 ) - - col0 col0 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col0 col2 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col0 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT DISTINCT + col2 + col1 * col0 * - 79 AS col2 FROM tab2 AS cor0
----
-106059
-17116
-363532
onlyif mysql # use DIV operator for integer division
query I rowsort label-3389
SELECT + + 86 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3389
SELECT + + 86 / - col1 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + - col0 * 57 + col0 * col1 AS col0 FROM tab1 AS cor0
----
-3008
-3520
-93
query I rowsort
SELECT DISTINCT cor0.col0 * ( + col0 ) - + cor0.col1 FROM tab1 cor0
----
-17
4086
6387
query I rowsort
SELECT + col0 * + ( - col0 + col1 ) AS col1 FROM tab0 cor0
----
1488
178
2170
query I rowsort
SELECT DISTINCT 22 AS col0 FROM tab1, tab0 cor0
----
22
query I rowsort
SELECT DISTINCT + col1 * + tab0.col0 - 45 FROM tab0
----
2019
3350
8054
query I rowsort
SELECT DISTINCT - col0 * + 21 + col0 * - col2 FROM tab0 AS cor0
----
-1296
-770
-9167
query I rowsort
SELECT - cor0.col2 * - cor0.col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + col1 * col2 * col0 AS col0 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT col1 + + col2 + 26 FROM tab1 AS cor0
----
106
135
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3399
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( col2 * col0 ) AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + 12 * 95 FROM tab1 AS cor0
----
-1140
query I rowsort
SELECT DISTINCT 90 * - col2 AS col2 FROM tab2 cor0
----
-2340
-2430
-3420
query I rowsort
SELECT DISTINCT col1 * + col0 * col2 + col2 + 19 FROM tab0 AS cor0
----
3415
664219
68164
query I rowsort
SELECT DISTINCT col1 * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + 7 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2057
-3388
-8092
query I rowsort
SELECT DISTINCT 4 * col0 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT ALL - 8 * col2 AS col1 FROM tab2 cor0
----
-208
-216
-304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * + col1 col1 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT DISTINCT 24 + col0 * col1 FROM tab2 cor0
----
1367
241
4626
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + 4 * - col0 FROM tab0 AS cor0
----
-140
-356
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3412
SELECT ALL + CAST( col2 AS SIGNED ) * col2 FROM tab2
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-3412
SELECT ALL + CAST ( col2 AS INTEGER ) * col2 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * + col2 col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL + 76 * + col1 FROM tab2 cor0
----
1292
2356
4484
onlyif mysql # use DIV operator for integer division
query I rowsort label-3415
SELECT DISTINCT cor0.col2 DIV col0 AS col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-3415
SELECT DISTINCT cor0.col2 / col0 AS col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT ALL col1 + col1 * 11 AS col0 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT DISTINCT 52 * tab2.col0 FROM tab2
----
364
4056
4108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT - col1 * 48 * col1 AS col1 FROM tab1
----
-32448
-4800
-8112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3420
SELECT col0 + - ( col1 ) DIV col0 + col1 FROM tab2
----
137
34
96
skipif mysql # not compatible
query I rowsort label-3420
SELECT col0 + - ( col1 ) / col0 + col1 FROM tab2
----
137
34
96
query I rowsort
SELECT col1 + 49 AS col2 FROM tab2
----
108
66
80
query I rowsort
SELECT DISTINCT + col2 + ( col1 ) FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3423
SELECT ALL + CAST( cor0.col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL + CAST ( cor0.col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 + col1 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + 25 + + col0 + col0 FROM tab2 AS cor0
----
181
183
39
query I rowsort
SELECT ( col1 ) * col0 + 39 * col2 FROM tab1 AS cor0
----
2184
2863
4784
query I rowsort
SELECT DISTINCT + ( + 85 ) + col2 FROM tab1 AS cor0
----
139
142
181
query I rowsort
SELECT + + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - 42 + 14 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL col1 + + 72 FROM tab0
----
158
163
169
query I rowsort
SELECT - col0 * - col1 + - col0 * col2 FROM tab0
----
1272
3360
801
query I rowsort
SELECT ALL - 44 FROM tab1, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT ALL col2 + col2 * col0 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT ALL col2 * 30 AS col2 FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT DISTINCT - ( col0 ) + col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL 46 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT DISTINCT cor0.col2 + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - ( col0 ) * - col1 + col1 FROM tab1 cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3439
SELECT - + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3439
SELECT - + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * + col1 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT + 32 + - col1 AS col0 FROM tab0 AS cor0
----
-54
-59
-65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3442
SELECT ALL - - ( col2 ) DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL - - ( col2 ) / col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 + + col1 col0 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT ALL col2 * 74 + col2 AS col0 FROM tab2 AS cor0
----
1950
2025
2850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3445
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col0 * + col0 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col0 - - 19 FROM tab1 cor0
----
22
83
99
query I rowsort
SELECT - ( 92 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT ALL col2 * ( - col1 + - tab2.col2 ) * 31 AS col1 FROM tab2
----
-48546
-64790
-68510
query I rowsort
SELECT + col1 * - 97 AS col2 FROM tab2 AS cor0
----
-1649
-3007
-5723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3450
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0
----
NULL
query I rowsort
SELECT ALL 74 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT - cor0.col0 + - col2 * 8 FROM tab2 AS cor0
----
-223
-286
-383
query I rowsort
SELECT + + col0 * + col2 * col1 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + ( - col1 ) * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3455
SELECT + + CAST( NULL AS SIGNED ) + - col2 * col2 * col0 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-3455
SELECT + + CAST ( NULL AS INTEGER ) + - col2 * col2 * col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col1 ) * col2 * 9 FROM tab1 AS cor0
----
-11232
-12636
-5130
query I rowsort
SELECT + + ( + col2 ) * + col1 * - 94 AS col1 FROM tab0 cor0
----
-266772
-701428
-9118
query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
5
query I rowsort
SELECT col0 * - col0 + + col0 * tab0.col2 FROM tab0
----
-1190
-623
216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 + cor0.col2 col2 FROM tab2 AS cor0
----
78
79
90
query I rowsort
SELECT + - col0 + - col1 * - col0 * - col1 FROM tab0 AS cor0
----
-177528
-329350
-737098
onlyif mysql # use DIV operator for integer division
query I rowsort label-3462
SELECT + - col0 * - col0 + + col1 DIV col0 FROM tab1 AS cor0
----
17
4096
6400
skipif mysql # not compatible
query I rowsort label-3462
SELECT + - col0 * - col0 + + col1 / col0 FROM tab1 AS cor0
----
17
4096
6400
query I rowsort
SELECT - col1 * col0 + 62 FROM tab2 AS cor0
----
-1281
-155
-4540
query I rowsort
SELECT col1 + col0 * 22 * col0 AS col0 FROM tab0 AS cor0
----
12758
174353
27047
query I rowsort
SELECT DISTINCT + - 77 * + col0 FROM tab0 AS cor0
----
-1848
-2695
-6853
query I rowsort
SELECT - - col0 + cor0.col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 + col0 * 88 AS col2 FROM tab1 AS cor0
----
290
5642
7053
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 col0 FROM tab0 AS cor0
----
-76
query I rowsort
SELECT 78 + + col0 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT 6 + + tab2.col0 * col1 + + 46 FROM tab2
----
1395
269
4654
onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT 4 DIV - ( col0 ) AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3471
SELECT 4 / - ( col0 ) AS col0 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3472
SELECT ALL + CAST( NULL AS DECIMAL ) + - tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL + CAST ( NULL AS REAL ) + - tab2.col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3473
SELECT + - col0 + - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3473
SELECT + - col0 + - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col2 - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7496b8a48c0f7a3c9ef4a8d8a4843fb8
query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab1 cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( - 34 ) + col2 + 69 * cor0.col2 col1 FROM tab2 AS cor0
----
2704
2808
3952
query I rowsort
SELECT + - col0 + - col2 * - col0 AS col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT ALL - + cor0.col0 * - col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col0 + - cor0.col1 * - col1 * + col2 AS col2 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT - col2 * col0 + 48 AS col0 FROM tab2 AS cor0
----
-141
-1980
-2954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( col2 * - col2 ) col2 FROM tab1 AS cor0
----
207936
737280
8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL 52 AS col1 FROM tab2
----
52
52
52
query I rowsort
SELECT 33 AS col2 FROM tab2
----
33
33
33
query I rowsort
SELECT ALL - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3486
SELECT - + col0 * + col2 + ( - col0 ) * + ( ( col0 ) ) + + CAST( - cor0.col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-1357
-22681
-4206
skipif mysql # not compatible
query I rowsort label-3486
SELECT - + col0 * + col2 + ( - col0 ) * + ( ( col0 ) ) + + CAST ( - cor0.col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-1357
-22681
-4206
query I rowsort
SELECT - cor0.col1 * - cor0.col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 + + ( - 43 ) FROM tab2
----
-16
-17
-5
query I rowsort
SELECT + 85 * - cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to e55b301692e389b86171aa9f77d765af
query I rowsort
SELECT ALL tab1.col0 * tab1.col1 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 2afdaba7b80c700b7635230c4f8524be
query I rowsort
SELECT - ( - tab1.col0 ) * 18 + + col1 * col0 FROM tab1
----
132
1792
2480
query I rowsort
SELECT - 44 - col0 FROM tab1 AS cor0
----
-108
-124
-47
query I rowsort
SELECT - - ( - cor0.col0 ) + 78 FROM tab2 AS cor0
----
-1
0
71
query I rowsort
SELECT - col0 * col0 * col2 - - tab1.col0 FROM tab1
----
-233408
-483
-614320
query I rowsort
SELECT 28 * - col1 * + col2 AS col0 FROM tab2
----
-18088
-23436
-42952
query I rowsort
SELECT DISTINCT - tab0.col0 - + col1 AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + col2 * col2 - - tab2.col1 * col1 * + col0 AS col1 FROM tab2
----
24275
272194
7456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3498
SELECT col1 * col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3498
SELECT col1 * col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - ( 17 ) AS col2 FROM tab2
----
-17
query I rowsort
SELECT - ( col2 ) * cor0.col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT 60 * col0 FROM tab0 AS cor0
----
1440
2100
5340
onlyif mysql # use DIV operator for integer division
query I rowsort label-3503
SELECT + + col2 + col2 DIV - col1 FROM tab1 AS cor0
----
52
52
89
skipif mysql # not compatible
query I rowsort label-3503
SELECT + + col2 + col2 / - col1 FROM tab1 AS cor0
----
52
52
89
query I rowsort
SELECT DISTINCT + 0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ( + 98 + col1 ) AS col0 FROM tab1
----
108
111
124
query I rowsort
SELECT + 63 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - - ( - cor0.col2 ) + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col2 * + col1 AS col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3510
SELECT DISTINCT col1 * + col1 * - CAST( NULL AS SIGNED ) + col1 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3510
SELECT DISTINCT col1 * + col1 * - CAST ( NULL AS INTEGER ) + col1 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 70 - col1 AS col0 FROM tab0 AS cor0
----
-156
-161
-167
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col0 * + ( ( + col1 ) ) col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - 76 + col2 FROM tab0 AS cor0
----
-43
-75
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * - col2 + 19 col0 FROM tab2 AS cor0
----
-170
-2009
-2983
query I rowsort
SELECT ALL col2 - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - 77 * - col2 AS col1 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT ALL cor0.col2 + + cor0.col1 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - 96 * col0 + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT + - cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab2, tab1 cor1
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT ALL + - col1 * 85 FROM tab2 cor0
----
-1445
-2635
-5015
query I rowsort
SELECT DISTINCT - + 20 FROM tab0 cor0
----
-20
query I rowsort
SELECT DISTINCT - - 90 + - col2 AS col0 FROM tab2 AS cor0
----
52
63
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3523
SELECT ALL CAST( NULL AS SIGNED ) + + cor0.col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3523
SELECT ALL CAST ( NULL AS INTEGER ) + + cor0.col2 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 78 * + col0 FROM tab2
----
553
6162
6241
query I rowsort
SELECT DISTINCT ( col0 + - col0 ) AS col0 FROM tab1
----
0
query I rowsort
SELECT col2 + col1 * + col0 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL 31 + 70 AS col1 FROM tab2 AS cor0
----
101
101
101
query I rowsort
SELECT + 16 * + 28 AS col2 FROM tab2 AS cor0
----
448
448
448
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT ( 22 ) FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3531
SELECT - CAST( col1 AS SIGNED ) * + col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif mysql # not compatible
query I rowsort label-3531
SELECT - CAST ( col1 AS INTEGER ) * + col0 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT - 14 + + cor0.col0 FROM tab1 AS cor0
----
-11
50
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3533
SELECT CAST( NULL AS SIGNED ) + - 19 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3533
SELECT CAST ( NULL AS INTEGER ) + - 19 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 56 AS col1 FROM tab2 AS cor0
----
-56
-56
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3535
SELECT CAST( 91 AS SIGNED ) FROM tab1 AS cor0
----
91
91
91
skipif mysql # not compatible
query I rowsort label-3535
SELECT CAST ( 91 AS INTEGER ) FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT - 0 + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3537
SELECT 63 * 14 DIV - col2 + + col0 FROM tab1 AS cor0
----
-13
49
71
skipif mysql # not compatible
query I rowsort label-3537
SELECT 63 * 14 / - col2 + + col0 FROM tab1 AS cor0
----
-13
49
71
query I rowsort
SELECT + col1 + - 64 * + col1 FROM tab2 cor0
----
-1071
-1953
-3717
query I rowsort
SELECT ALL - - ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + - cor0.col1 * + 64 AS col1 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT ALL - 48 AS col1 FROM tab0 cor0
----
-48
-48
-48
query I rowsort
SELECT - + col0 * - col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + 73 * col2 * - ( - 64 * + col2 ) FROM tab2 AS cor0
----
3158272
3405888
6746368
query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-72
query I rowsort
SELECT DISTINCT 93 * - col1 AS col1 FROM tab1
----
-1209
-2418
-930
query I rowsort
SELECT 3 + col1 FROM tab1
----
13
16
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3547
SELECT + 14 + cor0.col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3547
SELECT + 14 + cor0.col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * 33 + - col2 FROM tab0 cor0
----
2805
2921
3200
onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT + col2 DIV 87 + - ( + col0 ) - col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort label-3549
SELECT + col2 / 87 + - ( + col0 ) - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT + col2 * col1 + ( + col2 ) * - cor0.col2 * + 88 AS col1 FROM tab1 AS cor0
----
-255204
-285342
-809760
query I rowsort
SELECT DISTINCT - + col0 + - 14 * + 16 AS col2 FROM tab1 AS cor0
----
-227
-288
-304
query I rowsort
SELECT + - col1 - + 38 * cor0.col2 FROM tab1 AS cor0
----
-2078
-2176
-3661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 80 - + col1 col2 FROM tab0 AS cor0
----
1834
2703
7029
query I rowsort
SELECT cor0.col2 + 53 * col0 FROM tab0 AS cor0
----
1305
1856
4799
query I rowsort
SELECT ALL + 15 * + 62 FROM tab1, tab1 AS cor0
----
9 values hashing to 752ca2c427a939e3561b20802ba07b67
query I rowsort
SELECT - col2 * - col2 + + 4 + - col1 AS col2 FROM tab2
----
1431
621
702
query I rowsort
SELECT + + col2 + col1 * col1 * col2 AS col1 FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT + col0 + ( + col2 ) AS col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT ALL + col2 + 98 + + 81 DIV + col2 FROM tab0
----
133
180
180
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + col2 + 98 + + 81 / + col2 FROM tab0
----
133
180
180
query I rowsort
SELECT col0 + + col2 * col2 + - col2 * col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT col0 * + col2 DIV - col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3561
SELECT col0 * + col2 / - col2 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3562
SELECT tab2.col0 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3562
SELECT tab2.col0 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 )
----
query I rowsort
SELECT - col2 * col0 * + col2 AS col0 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT - tab2.col2 * - col2 + col2 * - col2 AS col1 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT tab1.col0 DIV - col1 col1 FROM tab1
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3566
SELECT tab1.col0 / - col1 col1 FROM tab1
----
-6
-6
0
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND - col0
----
query I rowsort
SELECT ALL col1 + col1 * - col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> col0 * col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3570
SELECT col0 + + col0 DIV + col0 + col0 * col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1331
158263
237238
skipif mysql # not compatible
query I rowsort label-3570
SELECT col0 + + col0 / + col0 + col0 * col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1331
158263
237238
query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE ( col1 ) <= ( NULL )
----
query I rowsort
SELECT - col2 * + col0 + + col0 * - col2 FROM tab2
----
-378
-4056
-6004
query I rowsort
SELECT + + cor0.col1 * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col1 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT col0 * col0 - - col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col2 * col1 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT col1 + + col1 * + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
3492
664209
68198
onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT + col0 DIV cor0.col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3578
SELECT + col0 / cor0.col1 + - col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - col2 - col2 * 75 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-3580
SELECT col1 + col1 DIV col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3580
SELECT col1 + col1 / col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL 77 - - col1 * col0 FROM tab2
----
1420
294
4679
onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT col0 DIV - col2 - + 11 AS col1 FROM tab1
----
-11
-11
-12
skipif mysql # not compatible
query I rowsort label-3582
SELECT col0 / - col2 - + 11 AS col1 FROM tab1
----
-11
-11
-12
query I rowsort
SELECT + ( col2 * col0 ) + + col1 AS col1 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT + ( + col2 ) + + col1 * - 35 + col0 DIV - CAST( 10 AS SIGNED ) FROM tab1
----
-299
-367
-856
skipif mysql # not compatible
query I rowsort label-3584
SELECT + ( + col2 ) + + col1 * - 35 + col0 / - CAST ( 10 AS INTEGER ) FROM tab1
----
-299
-367
-856
onlyif mysql # use DIV operator for integer division
query I rowsort label-3585
SELECT 98 DIV + tab1.col0 AS col1 FROM tab1
----
1
1
32
skipif mysql # not compatible
query I rowsort label-3585
SELECT 98 / + tab1.col0 AS col1 FROM tab1
----
1
1
32
query I rowsort
SELECT ( + col1 ) * + col2 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + - 5 * - col0 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
177
3968
8080
query I rowsort
SELECT DISTINCT - col1 * + col2 - col2 AS col2 FROM tab1 cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT col0 + - ( - col1 ) * + col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - col0 * 66 + col2 + col0 AS col1 FROM tab1 AS cor0
----
255
4345
5456
query I rowsort
SELECT - + col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - col0 + + col2 + + col0 * col2 FROM tab2 AS cor0
----
1976
209
2961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 + - 2 col0 FROM tab1 AS cor0
----
167
674
98
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * + ( + col1 ) AS col2 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + - col0 * 55 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT ALL + col2 + + col0 - col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col1 * tab0.col0 - ( + col2 ) * - col1 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT + tab2.col2 * col1 + col0 - col2 * + tab2.col0 AS col1 FROM tab2
----
-2277
-416
655
onlyif mysql # use DIV operator for integer division
query I rowsort label-3599
SELECT + col2 + - col0 DIV + ( 80 * col2 ) FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3599
SELECT + col2 + - col0 / + ( 80 * col2 ) FROM tab1
----
54
57
96
query I rowsort
SELECT col1 + + col1 * + col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT + tab2.col1 + + col0 * + col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 * col0 AND col1 * - col1 + col1 / - col0
----
query I rowsort
SELECT - col2 + col1 * tab0.col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT + col0 + - col0 * + col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT ( col1 ) <> + col0
----
query I rowsort
SELECT ALL col0 * + col2 FROM tab0 WHERE NOT ( - col2 ) <> NULL
----
query I rowsort
SELECT tab2.col1 + - col1 * col0 AS col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT col1 + col0 AS col1 FROM tab1 WHERE NOT ( - col1 * - col1 ) NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT cor0.col0 * + col0 * - ( col1 * - col1 ) AS col0 FROM tab1 AS cor0
----
1081600
409600
6084
query I rowsort
SELECT + col0 + col1 FROM tab2 WHERE ( - col0 * - col0 ) NOT IN ( + col1 )
----
137
38
96
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) NOT IN ( col0 + + col2 )
----
query I rowsort
SELECT tab2.col1 + - tab2.col1 - col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL tab2.col2 + - col0 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NULL NOT IN ( col1 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 NOT IN ( - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT cor0.col2 + - col1 * col1 * cor0.col2 FROM tab1 AS cor0
----
-16128
-36450
-5643
query I rowsort
SELECT DISTINCT - col0 + 57 AS col2 FROM tab0 AS cor0
----
-32
22
33
query I rowsort
SELECT DISTINCT + col2 * ( - 46 ) + + col0 * cor0.col0 FROM tab0 AS cor0
----
-942
1179
4149
query I rowsort
SELECT DISTINCT + col1 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 15 + - col2 * ( + 69 ) AS col1 FROM tab2
----
-1779
-1848
-2607
query I rowsort
SELECT DISTINCT - col0 + + tab0.col0 * 97 FROM tab0
----
2304
3360
8544
query I rowsort
SELECT DISTINCT + col0 * 48 FROM tab2 AS cor0
----
336
3744
3792
query I rowsort
SELECT ALL - col2 * + col1 * + col2 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-611966
-93687
-98
query I rowsort
SELECT ALL + + col0 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 + - col2 * 2 col1 FROM tab0
----
-73
20
95
query I rowsort
SELECT col0 + ( 87 * col2 ) FROM tab1
----
4701
5023
8432
query I rowsort
SELECT + + col2 * - 82 * col0 FROM tab2 AS cor0
----
-15498
-166296
-246164
query I rowsort
SELECT ( + 94 ) * - col2 FROM tab0
----
-3102
-7708
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3628
SELECT - 13 + col1 DIV 90 FROM tab2 AS cor0
----
-13
-13
-13
skipif mysql # not compatible
query I rowsort label-3628
SELECT - 13 + col1 / 90 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT 49 * col2 AS col0 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * ( col2 + col2 ) FROM tab1 cor0
----
15373
350
7306
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3631
SELECT ALL - CAST( NULL AS SIGNED ) * cor1.col1 + + cor0.col1 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL - CAST ( NULL AS INTEGER ) * cor1.col1 + + cor0.col1 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT 8 + + tab1.col1 AS col1 FROM tab1
----
18
21
34
query I rowsort
SELECT ALL + col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - - 17 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT - + 23 * + col0 FROM tab1 AS cor0
----
-1472
-1840
-69
query I rowsort
SELECT DISTINCT 79 * col0 AS col2 FROM tab2 cor0
----
553
6162
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-3637
SELECT DISTINCT - col2 DIV col0 col0 FROM tab2 cor0
----
-3
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT - col2 / col0 col0 FROM tab2 cor0
----
-3
0
query I rowsort
SELECT + col1 + col0 * col1 + - col0 AS col0 FROM tab0 AS cor0
----
2126
3457
8101
query I rowsort
SELECT DISTINCT - - 73 AS col0 FROM tab2 AS cor0
----
73
query I rowsort
SELECT ALL - 62 + 61 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT - ( + col2 ) * - col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT 44 * 52 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 678bebe5a2c3cfa1a87dc71385d4d3f1
query I rowsort
SELECT col1 * col0 * 39 AS col1 FROM tab1
----
24960
3042
40560
query I rowsort
SELECT DISTINCT 60 * col1 AS col1 FROM tab0 AS cor0
----
5160
5460
5820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + - col2 * ( col0 ) col0 FROM tab2 AS cor0
----
-103
-1942
-2916
onlyif mysql # use DIV operator for integer division
query I rowsort label-3646
SELECT DISTINCT - cor0.col2 DIV cor0.col2 AS col1 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - cor0.col2 / cor0.col2 AS col1 FROM tab1 cor0
----
-1
query I rowsort
SELECT ALL + - 13 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-16
-77
-93
query I rowsort
SELECT + 31 + + col2 AS col1 FROM tab2 AS cor0
----
57
58
69
query I rowsort
SELECT ALL - + 80 * + cor0.col1 * - 22 FROM tab1 AS cor0
----
17600
22880
45760
query I rowsort
SELECT DISTINCT + col2 * + ( - col1 ) - - col0 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 + - ( col1 ) col2 FROM tab0 cor0
----
-132
-7389
-878
query I rowsort
SELECT - cor0.col0 * + 3 FROM tab2 AS cor0
----
-21
-234
-237
query I rowsort
SELECT ALL + + col1 * + col1 + col2 * 20 FROM tab0 AS cor0
----
8056
9429
9921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3654
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * ( + col2 ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3654
SELECT DISTINCT - CAST ( NULL AS REAL ) * ( + col2 ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT - + 84 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1141
492
7837
query I rowsort
SELECT DISTINCT col2 * + 80 FROM tab0
----
2640
6560
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3657
SELECT ALL - + col2 * col1 DIV - col2 + + col2 DIV - col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - + col2 * col1 / - col2 + + col2 / - col0 FROM tab1 AS cor0
----
10
12
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3659
SELECT DISTINCT CAST( col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-3659
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ( col0 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + 9 * - col1 AS col2 FROM tab2 AS cor0
----
-153
-279
-531
query I rowsort
SELECT - 2 + col2 FROM tab1 AS cor0
----
52
55
94
query I rowsort
SELECT + - cor0.col0 - + col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL cor0.col1 * + col2 - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + - col0 * col1 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - - 19 * + col2 + + col1 FROM tab1 AS cor0
----
1052
1093
1837
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 # use DIV operator for integer division
query I rowsort label-3668
SELECT col1 + + cor0.col2 DIV - col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-3668
SELECT col1 + + cor0.col2 / - col0 FROM tab1 AS cor0
----
10
12
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT ALL + + cor0.col1 * + col1 + - ( 77 ) DIV + col2 + + col0 * + col1 DIV col1 FROM tab0 AS cor0
----
7418
8370
9367
skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + + cor0.col1 * + col1 + - ( 77 ) / + col2 + + col0 * + col1 / col1 FROM tab0 AS cor0
----
7418
8370
9367
query I rowsort
SELECT ( col1 ) + tab0.col1 FROM tab0
----
172
182
194
query I rowsort
SELECT - + cor0.col0 - col1 * - 38 AS col1 FROM tab0 cor0
----
3244
3369
3651
query I rowsort
SELECT ( - col1 ) - + col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT col0 + + ( col0 ) FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT + + 20 AS col2 FROM tab2 cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3675
SELECT - ( - col1 ) DIV + col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3675
SELECT - ( - col1 ) / + col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - col0 * tab2.col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 * + 7 FROM tab0
----
-231
-574
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * col1 col1 FROM tab0
----
-6622
-7007
-7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col1 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 36 + col2 col2 FROM tab2 AS cor0
----
62
63
74
query I rowsort
SELECT - 16 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT ALL + ( - 25 ) AS col2 FROM tab0
----
-25
-25
-25
query I rowsort
SELECT col1 - col0 * col2 * ( col0 ) AS col1 FROM tab0
----
-1128
-18922
-649431
query I rowsort
SELECT 64 + + tab0.col2 * - 12 AS col1 FROM tab0
----
-332
-920
52
query I rowsort
SELECT 1 * - col0 + - 26 FROM tab2
----
-104
-105
-33
query I rowsort
SELECT DISTINCT 85 AS col1 FROM tab1
----
85
query I rowsort
SELECT - ( - col2 ) * col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT col1 * - col1 + 94 AS col2 FROM tab1 AS cor0
----
-582
-6
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab2, tab0 AS cor0
----
94
query I rowsort
SELECT + - col0 * - 96 FROM tab0 AS cor0
----
2304
3360
8544
query I rowsort
SELECT - col1 + 68 * - col1 FROM tab2 AS cor0
----
-1173
-2139
-4071
query I rowsort
SELECT DISTINCT cor0.col0 - 58 FROM tab1, tab2 AS cor0
----
-51
20
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3693
SELECT ALL - 42 DIV - 89 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - 42 / - 89 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3694
SELECT DISTINCT CAST( NULL AS SIGNED ) col1 FROM tab1, tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT CAST ( NULL AS INTEGER ) col1 FROM tab1, tab1 AS cor0
----
NULL
query I rowsort
SELECT ( - 61 ) * + col2 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
-177822
-198132
-562080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3696
SELECT + CAST( NULL AS SIGNED ) - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3696
SELECT + CAST ( NULL AS INTEGER ) - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 52 * + col0 * col1 AS col1 FROM tab1 AS cor0
----
-33280
-4056
-54080
query I rowsort
SELECT DISTINCT - 28 + - 81 FROM tab2 AS cor0
----
-109
query I rowsort
SELECT col0 * + col0 - + col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT ALL col1 DIV col1 + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-18
-61
25
skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL col1 / col1 + col1 - + col0 AS col2 FROM tab2 AS cor0
----
-18
-61
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 79 col2 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT - + col0 + col0 * col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - + 5 * col2 AS col2 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT ALL + col0 - + 55 FROM tab1 AS cor0
----
-52
25
9
query I rowsort
SELECT + + cor0.col0 + ( + col1 ) AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - cor0.col2 * - 65 + col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT col0 + ( + col2 ) FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT ALL + 43 DIV + col0 - + col0 * CAST( - 12 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
90
936
948
skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + 43 / + col0 - + col0 * CAST ( - 12 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
90
936
948
query I rowsort
SELECT DISTINCT + col2 * 94 AS col1 FROM tab2 AS cor0
----
2444
2538
3572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3710
SELECT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3710
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + cor0.col2 ) * col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + cor0.col0 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + - 37 + col0 * 73 FROM tab1 AS cor0
----
182
4635
5803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 + - col1 col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT col0 * - col1 * - col2 + cor0.col2 FROM tab0 AS cor0
----
3396
664200
68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3716
SELECT DISTINCT + col1 + col0 * CAST( 62 AS SIGNED ) FROM tab0 AS cor0
----
1574
2267
5609
skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT + col1 + col0 * CAST ( 62 AS INTEGER ) FROM tab0 AS cor0
----
1574
2267
5609
query I rowsort
SELECT - - 5 * - col2 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT col1 * + cor0.col0 + + 72 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
10218
7031
721
query I rowsort
SELECT - col2 * - 55 FROM tab0 AS cor0
----
1815
4510
55
query I rowsort
SELECT DISTINCT + + col0 * ( cor0.col0 ) * - col1 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + col1 * 50 AS col0 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT DISTINCT col2 - + col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + + col1 * cor0.col1 + 47 * - col0 AS col0 FROM tab0 AS cor0
----
4098
6268
7764
query I rowsort
SELECT - - 61 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ALL 80 + + col2 FROM tab2
----
106
107
118
onlyif mysql # use DIV operator for integer division
query I rowsort label-3726
SELECT ALL + col2 DIV + col0 + - tab0.col2 AS col0 FROM tab0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-3726
SELECT ALL + col2 / + col0 + - tab0.col2 AS col0 FROM tab0
----
-1
-32
-82
query I rowsort
SELECT cor1.col1 * + 16 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to e90b95a95e4b993ac5912b795bf5d3ef
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3728
SELECT + 89 + + col1 + + col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3728
SELECT + 89 + + col1 + + col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - col0 * col0 + - col2 * + col0 AS col1 FROM tab1
----
-189
-265792
-519680
query I rowsort
SELECT 38 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT 86 - + 26 FROM tab2 cor0
----
60
60
60
query I rowsort
SELECT ALL + col2 * + cor0.col0 + + col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT ALL + + cor0.col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
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 DISTINCT + - cor0.col2 * cor0.col0 + cor0.col1 - col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 3 + - col0 AS col0 FROM tab0 AS cor0
----
-21
-32
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - cor0.col0 ) + + col0 * - col1 col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 59 + col2 col2 FROM tab2 AS cor0
----
-21
-32
-33
query I rowsort
SELECT ALL - col2 * - col2 + + col1 + 89 AS col2 FROM tab2 AS cor0
----
1550
824
849
query I rowsort
SELECT DISTINCT 22 + + col1 AS col1 FROM tab1
----
32
35
48
query I rowsort
SELECT + 65 * col2 AS col2 FROM tab2
----
1690
1755
2470
query I rowsort
SELECT + 77 * 11 - col1 AS col1 FROM tab0
----
750
756
761
query I rowsort
SELECT DISTINCT tab2.col2 * + 56 * - col0 + - col0 * + col1 * - col0 FROM tab2
----
-62015
-9065
245388
onlyif mysql # use DIV operator for integer division
query I rowsort label-3744
SELECT - ( 17 * + col1 ) + 67 + - col1 DIV + col1 FROM tab2
----
-223
-461
-937
skipif mysql # not compatible
query I rowsort label-3744
SELECT - ( 17 * + col1 ) + 67 + - col1 / + col1 FROM tab2
----
-223
-461
-937
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - ( 48 + col2 ) * 88 col1 FROM tab0 AS cor0
----
-3978
-4215
-4290
query I rowsort
SELECT ALL col0 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT col0 * - 34 FROM tab2
----
-238
-2652
-2686
query I rowsort
SELECT - - ( - 72 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT DISTINCT + + col1 + + col2 + + cor0.col0 FROM tab1 AS cor0
----
131
189
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - col2 * 71 * col2 col1 FROM tab0 AS cor0
----
-106
-477493
-77343
query I rowsort
SELECT DISTINCT + col1 * 78 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT ALL col0 * + 15 FROM tab0 AS cor0
----
1335
360
525
onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT ALL + + col1 + 35 DIV + col0 AS col1 FROM tab1 AS cor0
----
10
13
37
skipif mysql # not compatible
query I rowsort label-3754
SELECT ALL + + col1 + 35 / + col0 AS col1 FROM tab1 AS cor0
----
10
13
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT col1 + col0 DIV 77 FROM tab2 AS cor0
----
18
31
60
skipif mysql # not compatible
query I rowsort label-3755
SELECT col1 + col0 / 77 FROM tab2 AS cor0
----
18
31
60
query I rowsort
SELECT DISTINCT - 31 FROM tab0, tab2, tab1 AS cor0
----
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - col2 + col0 col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - - col1 * ( + col1 ) FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL - col1 * 73 AS col1 FROM tab1 AS cor0
----
-1898
-730
-949
query I rowsort
SELECT DISTINCT + col2 * 95 * col2 AS col2 FROM tab1 AS cor0
----
277020
308655
875520
query I rowsort
SELECT + col1 + - 43 * + col0 FROM tab1 AS cor0
----
-103
-2742
-3427
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3763
SELECT - - ( - ( - col0 ) ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3763
SELECT - - ( - ( - col0 ) ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 - ( + 42 ) * col1 AS col2 FROM tab2
----
-1333
-2537
-731
query I rowsort
SELECT - 68 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT ( col1 ) * col0 + + col2 * - 15 AS col0 FROM tab2 AS cor0
----
-188
4212
773
query I rowsort
SELECT 85 * col1 + cor0.col2 FROM tab2 AS cor0
----
1483
2662
5041
query I rowsort
SELECT - col1 + col1 * - col0 * col0 FROM tab2
----
-106114
-1550
-359015
query I rowsort
SELECT col1 + - col2 * 90 AS col0 FROM tab1
----
-4834
-5120
-8627
query I rowsort
SELECT col0 * - 59 FROM tab1 cor0
----
-177
-3776
-4720
query I rowsort
SELECT ALL + tab2.col0 * + col1 AS col1 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3773
SELECT ALL - 64 DIV tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd8e66a7c41793984e7b645fb7a39788
skipif mysql # not compatible
query I rowsort label-3773
SELECT ALL - 64 / tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd8e66a7c41793984e7b645fb7a39788
query I rowsort
SELECT 64 * ( col2 ) + - 51 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
1684
1691
2460
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3775
SELECT ALL + + CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + + CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 89 * + col0 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT ALL + cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + cor0.col0 * + 0 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - 12 + col0 AS col2 FROM tab1 cor0
----
-9
52
68
query I rowsort
SELECT DISTINCT + ( ( col0 ) ) * + col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ( col0 + - ( col1 ) ) AS col0 FROM tab0
----
-2
-62
-62
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to d95cefa45985203e212af5af5dd9be5b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 * 10 col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-920
onlyif mysql # use DIV operator for integer division
query I rowsort label-3785
SELECT DISTINCT + col0 DIV 97 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + col0 / 97 AS col0 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3786
SELECT col1 + + CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3786
SELECT col1 + + CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3787
SELECT ALL - col0 DIV - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3787
SELECT ALL - col0 / - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + + 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT + + ( - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + cor0.col2 - + 79 FROM tab2 AS cor0
----
-41
-52
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( + col2 ) - + col2 col0 FROM tab2 cor0
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3792
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT - tab0.col1 * 41 AS col0 FROM tab0, tab1 AS cor0
----
-3526
-3731
-3977
query I rowsort
SELECT col2 * + 34 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT + col0 * ( cor0.col1 * col2 ) FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT 82 * col1 FROM tab0
----
7052
7462
7954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 + 86 col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3798
SELECT - CAST( + 14 AS SIGNED ) FROM tab2
----
-14
-14
-14
skipif mysql # not compatible
query I rowsort label-3798
SELECT - CAST ( + 14 AS INTEGER ) FROM tab2
----
-14
-14
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-3799
SELECT DISTINCT col2 + - col2 DIV + 92 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT col2 + - col2 / + 92 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - - cor0.col0 - cor0.col1 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab1, tab2 cor0
----
30
query I rowsort
SELECT ALL col1 * 33 AS col1 FROM tab1
----
330
429
858
query I rowsort
SELECT ALL - col0 + col0 * col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - 30 * - col1 FROM tab0 AS cor0
----
2580
2730
2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-3806
SELECT - col2 + + col0 + cor0.col2 DIV col0 AS col0 FROM tab1 AS cor0
----
-15
-33
7
skipif mysql # not compatible
query I rowsort label-3806
SELECT - col2 + + col0 + cor0.col2 / col0 AS col0 FROM tab1 AS cor0
----
-15
-33
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT DISTINCT col2 + col0 * ( - col1 ) DIV - col2 + 3 * - col0 AS col0 FROM tab1 AS cor0
----
-124
-134
46
skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT col2 + col0 * ( - col1 ) / - col2 + 3 * - col0 AS col0 FROM tab1 AS cor0
----
-124
-134
46
query I rowsort
SELECT - - 83 * - col1 FROM tab0 AS cor0
----
-7138
-7553
-8051
query I rowsort
SELECT ALL + - 49 + + col0 FROM tab2 cor0
----
-42
29
30
query I rowsort
SELECT ALL col2 + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT cor1.col0 * cor1.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8ec1e5b752a6eed5f6e85ed78b46af3c
query I rowsort
SELECT - + 8 * col2 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT + col1 * 2 * + 29 AS col1 FROM tab2
----
1798
3422
986
query I rowsort
SELECT ALL + 99 * - cor0.col1 + + col0 FROM tab0 AS cor0
----
-8490
-8920
-9568
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + ( col0 ) - + col1 * + ( - ( - col0 ) ) * - 46 col0 FROM tab2 AS cor0
----
209664
58776
9793
query I rowsort
SELECT col0 * col2 + col0 + col0 * + ( - 74 * col0 + col1 * - col1 ) FROM tab2
----
-10157
-481584
-719628
query I rowsort
SELECT tab1.col1 * - 63 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 727559296eb3cde53fae38266ab5c3d7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3818
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) - - col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) - - col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab0 AS cor0
----
-11
-11
-11
query I rowsort
SELECT + cor0.col0 * 69 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT ALL + 33 - - 20 * - col0 FROM tab0 AS cor0
----
-1747
-447
-667
query I rowsort
SELECT DISTINCT 73 * col2 FROM tab0 AS cor0
----
2409
5986
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3823
SELECT ALL - col2 + - col2 * - col2 * CAST( NULL AS SIGNED ) + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - col2 + - col2 * - col2 * CAST ( NULL AS INTEGER ) + - cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col0 * ( - col1 ) + - col0 + + 1 * + col2 AS col2 FROM tab1 AS cor0
----
1056
129
633
query I rowsort
SELECT DISTINCT col1 - - 94 AS col0 FROM tab0 AS cor0
----
180
185
191
query I rowsort
SELECT - + ( - col0 ) * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + col2 + col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2080
243
3078
query I rowsort
SELECT ALL 13 + col2 AS col0 FROM tab0 AS cor0
----
14
46
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3829
SELECT DISTINCT CAST( NULL AS SIGNED ) + 87 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3829
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 87 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3830
SELECT DISTINCT 42 * col2 * col1 + col2 DIV - 94 FROM tab2 AS cor0
----
27132
35154
64428
skipif mysql # not compatible
query I rowsort label-3830
SELECT DISTINCT 42 * col2 * col1 + col2 / - 94 FROM tab2 AS cor0
----
27132
35154
64428
query I rowsort
SELECT ALL 63 + col0 FROM tab1 AS cor0
----
127
143
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT + cor0.col1 * col1 - + 38 FROM tab0 AS cor0
----
7358
8243
9371
query I rowsort
SELECT + 43 * - col2 FROM tab2
----
-1118
-1161
-1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT + tab2.col2 * col0 DIV 12 + - col0 * - col0 AS col2 FROM tab2
----
6253
64
6491
skipif mysql # not compatible
query I rowsort label-3835
SELECT + tab2.col2 * col0 / 12 + - col0 * - col0 AS col2 FROM tab2
----
6253
64
6491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 col1 FROM tab0, tab2 AS cor0, tab2 cor1
----
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3837
SELECT ALL + col2 DIV - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL + col2 / - cor0.col2 AS col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3838
SELECT DISTINCT + cor0.col0 * col1 + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
2061
3393
8098
skipif mysql # not compatible
query I rowsort label-3838
SELECT DISTINCT + cor0.col0 * col1 + - col1 / col0 AS col2 FROM tab0 AS cor0
----
2061
3393
8098
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3839
SELECT DISTINCT cor0.col1 * + CAST( NULL AS SIGNED ) + col0 * + cor0.col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT cor0.col1 * + CAST ( NULL AS INTEGER ) + col0 * + cor0.col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3840
SELECT ALL - col0 + 2 DIV col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL - col0 + 2 / col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col2 + + 24 * 42 * col2 AS col2 FROM tab0 AS cor0
----
1009
33297
82738
query I rowsort
SELECT DISTINCT + + col0 - ( col2 + col1 ) * col1 * col1 AS col1 FROM tab2 AS cor0
----
-15816
-295807
-55731
query I rowsort
SELECT DISTINCT - col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + col2 - col2 * - col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL col2 + - 56 * - col1 FROM tab0 cor0
----
4849
5178
5433
onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT col0 DIV 72 + + cor0.col0 FROM tab1 cor0
----
3
64
81
skipif mysql # not compatible
query I rowsort label-3846
SELECT col0 / 72 + + cor0.col0 FROM tab1 cor0
----
3
64
81
query I rowsort
SELECT col1 * + ( col2 ) - - col2 * col0 AS col1 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT ALL - - col2 * - ( col1 ) AS col0 FROM tab0 cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3849
SELECT ALL - cor0.col2 * + CAST( NULL AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL - cor0.col2 * + CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3850
SELECT - + col1 + CAST( + col2 AS SIGNED ) DIV - col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3850
SELECT - + col1 + CAST ( + col2 AS INTEGER ) / - col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3851
SELECT DISTINCT - col0 DIV 40 FROM tab2 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3851
SELECT DISTINCT - col0 / 40 FROM tab2 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT + col1 * + 86 AS col2 FROM tab1 AS cor0
----
1118
2236
860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col2 + + cor0.col0 * col2 col0 FROM tab0 AS cor0
----
14022
1881
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3854
SELECT + CAST( NULL AS SIGNED ) + - 47 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3854
SELECT + CAST ( NULL AS INTEGER ) + - 47 / + col1 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col0 ) + + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 * + col2 * col2 AS col1 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab1 AS cor0
----
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3858
SELECT - - col2 DIV + col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3858
SELECT - - col2 / + col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT DISTINCT 58 * - col2 AS col1 FROM tab2 AS cor0
----
-1508
-1566
-2204
query I rowsort
SELECT + cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - col0 + - cor0.col1 - + col1 AS col1 FROM tab0 AS cor0
----
-196
-229
-271
query I rowsort
SELECT DISTINCT - - col2 + - col1 * + 18 * 24 FROM tab0 AS cor0
----
-37119
-39230
-41903
query I rowsort
SELECT ALL col1 * - cor0.col0 + + col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 9 * col2 + - col1 col1 FROM tab0 AS cor0
----
-106
-383
-829
query I rowsort
SELECT DISTINCT - col2 * col0 + col1 + col2 * + col2 FROM tab2 AS cor0
----
-1293
-1541
571
query I rowsort
SELECT col0 * cor0.col2 AS col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col1 col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - 80 + + col0 AS col0 FROM tab0 AS cor0
----
-45
-56
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3870
SELECT - col1 * - col1 + - cor0.col1 + col1 DIV + cor0.col2 col0 FROM tab1 AS cor0
----
156
650
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3870
SELECT - col1 * - col1 + - cor0.col1 + col1 / + cor0.col2 col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - ( col0 ) * col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 * - col2 col0 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT - + col1 + col0 * col0 AS col0 FROM tab2 cor0
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col2 FROM tab2
----
69
69
69
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + 32 * col1 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT - 47 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab0, tab2 AS cor0
----
-33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 * col1 col0 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT ALL col1 + col2 * + col0 AS col2 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT + 59 * ( - col0 ) * + col1 AS col0 FROM tab2
----
-12803
-271518
-79237
query I rowsort
SELECT + ( 60 ) * col1 AS col0 FROM tab0
----
5160
5460
5820
query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL cor0.col0 + col0 * + cor0.col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT + 16 * 60 * tab1.col2 AS col0 FROM tab1
----
51840
54720
92160
onlyif mysql # use DIV operator for integer division
query I rowsort label-3886
SELECT ALL - 19 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3886
SELECT ALL - 19 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + ( col0 ) * + tab2.col1 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + 3 FROM tab0, tab1 AS cor0
----
3
query I rowsort
SELECT + cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + 19 AS col0 FROM tab2 cor0
----
-19
-19
-19
query I rowsort
SELECT 21 * + 13 FROM tab2 AS cor0
----
273
273
273
query I rowsort
SELECT DISTINCT 53 * - ( col2 ) - + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1773
-4435
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 66 + col0 col0 FROM tab0 AS cor0
----
-31
-42
23
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col2 - 75 AS col2 FROM tab2 AS cor0
----
-37
-48
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3899
SELECT cor0.col0 + CAST( NULL AS SIGNED ) / + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3899
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) / + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + - ( col2 ) * ( col2 ) AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT + 33 * col1 FROM tab2 AS cor0
----
1023
1947
561
query I rowsort
SELECT + - col1 * - col0 * col0 AS col2 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + + 31 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
-4
-58
7
query I rowsort
SELECT + col0 + - 45 AS col1 FROM tab1 AS cor0
----
-42
19
35
query I rowsort
SELECT col1 * 79 AS col1 FROM tab0 AS cor0
----
6794
7189
7663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3907
SELECT + col2 + - CAST( - col2 AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
skipif mysql # not compatible
query I rowsort label-3907
SELECT + col2 + - CAST ( - col2 AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col2 * col0 + col1 col2 FROM tab2 AS cor0
----
119711
51051
5890
onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT + - col2 DIV - 50 + col2 DIV col1 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-3909
SELECT + - col2 / - 50 + col2 / col1 FROM tab1 AS cor0
----
3
6
8
query I rowsort
SELECT DISTINCT + col1 + 84 FROM tab2 AS cor0
----
101
115
143
onlyif mysql # use DIV operator for integer division
query I rowsort label-3911
SELECT + col1 + - ( - cor0.col2 ) DIV - col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-3911
SELECT + col1 + - ( - cor0.col2 ) / - col0 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT cor0.col0 * - col0 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-12
-4160
-6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3913
SELECT + cor0.col1 DIV ( col2 ) + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2066
3492
8100
skipif mysql # not compatible
query I rowsort label-3913
SELECT + cor0.col1 / ( col2 ) + - col0 * - col1 AS col0 FROM tab0 AS cor0
----
2066
3492
8100
query I rowsort
SELECT ALL + cor0.col1 * ( cor0.col1 ) AS col1 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3915
SELECT - col0 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3915
SELECT - col0 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT DISTINCT + col0 DIV ( 43 + - col0 ) FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT + col0 / ( 43 + - col0 ) FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT col0 + ( col1 ) AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT + col2 - col2 * + col1 * col2 FROM tab1
----
-119712
-32433
-75762
query I rowsort
SELECT ALL + ( col1 ) + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) + + col2 + col1 * + col2 col2 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT DISTINCT + 63 - col1 FROM tab0 AS cor0
----
-23
-28
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3922
SELECT CAST( NULL AS SIGNED ) * + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3922
SELECT CAST ( NULL AS INTEGER ) * + 58 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( - col2 ) + + cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 66 + cor0.col2 FROM tab1 AS cor0
----
120
123
162
query I rowsort
SELECT DISTINCT col2 + + 4 FROM tab0
----
37
5
86
query I rowsort
SELECT DISTINCT 43 AS col2 FROM tab0, tab0 cor0
----
43
query I rowsort
SELECT 2 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT + col0 + col0 + 30 FROM tab0
----
100
208
78
query I rowsort
SELECT ALL + col1 + + 43 FROM tab1
----
53
56
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT tab1.col0 + ( - ( col0 ) ) DIV col2 AS col1 FROM tab1
----
3
63
80
skipif mysql # not compatible
query I rowsort label-3930
SELECT tab1.col0 + ( - ( col0 ) ) / col2 AS col1 FROM tab1
----
3
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col0 * + col2 col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + col0 * col1 + - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - 9 FROM tab0 cor0
----
-9
query I rowsort
SELECT ALL - + 52 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT ( tab1.col1 + - col1 ) FROM tab1
----
0
0
0
query I rowsort
SELECT col1 + - col0 * col1 - col0 AS col0 FROM tab0 cor0
----
-2002
-3333
-8097
query I rowsort
SELECT ALL - ( col0 ) * + col1 + + 54 + col2 AS col2 FROM tab2 AS cor0
----
-1251
-136
-4522
query I rowsort
SELECT DISTINCT - 22 * + col2 AS col1 FROM tab0 AS cor0
----
-1804
-22
-726
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT DISTINCT cor0.col1 DIV col1 + + cor0.col0 * - col2 AS col0 FROM tab0 cor0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT cor0.col1 / col1 + + cor0.col0 * - col2 AS col0 FROM tab0 cor0
----
-34
-7297
-791
query I rowsort
SELECT + + 61 + + cor0.col0 + col0 * cor0.col1 AS col0 FROM tab2 cor0
----
1483
285
4741
query I rowsort
SELECT - col1 + - col1 * + ( - col1 ) - col0 AS col1 FROM tab1 AS cor0
----
26
647
76
query I rowsort
SELECT 90 + - col0 FROM tab0
----
1
55
66
query I rowsort
SELECT + 95 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT ALL tab0.col2 + + col2 - + ( ( + col2 ) * - col1 ) FROM tab0
----
2904
7626
99
query I rowsort
SELECT 57 + + col2 AS col0 FROM tab0 AS cor0
----
139
58
90
query I rowsort
SELECT ALL ( col0 ) + - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 - col1 * - col0 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + - 61 + + col1 * col0 * - ( cor0.col2 ) FROM tab2 AS cor0
----
-119713
-51095
-5920
query I rowsort
SELECT DISTINCT + + col2 * - col1 + col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3950
SELECT CAST( - col0 * col0 AS SIGNED ) FROM tab0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-3950
SELECT CAST ( - col0 * col0 AS INTEGER ) FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 * col2 col2 FROM tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT DISTINCT - 43 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-43
query I rowsort
SELECT + col0 * - 79 AS col0 FROM tab0 AS cor0
----
-1896
-2765
-7031
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab2
----
-69
-69
-69
query I rowsort
SELECT - tab0.col1 * 15 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 44be0018387723d79fb9d632ce9e5512
query I rowsort
SELECT DISTINCT cor1.col0 + - cor0.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
9 values hashing to 433ab71ade4f9ca647cd1e5cae4a1a44
query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab1, tab0, tab0 AS cor0
----
-79
query I rowsort
SELECT + 51 * + tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 658367bd29f67b2fd3e3b321cdbaac22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * - tab2.col0 + - 16 col2 FROM tab2
----
-6100
-6257
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + tab2.col1 * col0 + tab2.col1 col2 FROM tab2
----
1377
279
4720
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-3962
SELECT DISTINCT col1 * + tab0.col0 + - col0 + - tab0.col2 DIV 70 AS col1 FROM tab0
----
2040
3360
8009
skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT col1 * + tab0.col0 + - col0 + - tab0.col2 / 70 AS col1 FROM tab0
----
2040
3360
8009
onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT DISTINCT tab0.col0 + - col1 DIV + col1 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT tab0.col0 + - col1 / + col1 FROM tab0
----
23
34
88
query I rowsort
SELECT DISTINCT 54 * col0 - + col1 AS col1 FROM tab1 cor0
----
136
3446
4307
onlyif mysql # use DIV operator for integer division
query I rowsort label-3965
SELECT 2 + + 86 DIV - col0 AS col1 FROM tab0 cor0
----
-1
0
2
skipif mysql # not compatible
query I rowsort label-3965
SELECT 2 + + 86 / - col0 AS col1 FROM tab0 cor0
----
-1
0
2
query I rowsort
SELECT + + 17 * + cor0.col2 * col2 + col2 FROM tab1 AS cor0
----
156768
49626
55290
query I rowsort
SELECT - col0 * + col2 + cor0.col0 AS col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + col0 + + ( ( + col1 ) ) * col2 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT col0 * col2 - col1 * - col1 FROM tab1
----
3748
7849
838
query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) + col1 AS col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT tab2.col2 + + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT 76 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * - col0 col1 FROM tab2 cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL - col0 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3976
SELECT ALL CAST( NULL AS SIGNED ) + col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3976
SELECT ALL CAST ( NULL AS INTEGER ) + col1 * - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 89 * + col2 FROM tab0 cor0
----
-2937
-7298
-89
query I rowsort
SELECT ALL ( - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col2 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col1 + + col0 + col0 * + 47 col2 FROM tab0 AS cor0
----
11734
1777
3990
onlyif mysql # use DIV operator for integer division
query I rowsort label-3981
SELECT - col0 DIV - 3 AS col1 FROM tab2 AS cor0
----
2
26
26
skipif mysql # not compatible
query I rowsort label-3981
SELECT - col0 / - 3 AS col1 FROM tab2 AS cor0
----
2
26
26
query I rowsort
SELECT DISTINCT - + ( col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3983
SELECT + CAST( NULL AS SIGNED ) + - 73 * + cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3983
SELECT + CAST ( NULL AS INTEGER ) + - 73 * + cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 + 94 AS col2 FROM tab2 AS cor0
----
35
63
77
query I rowsort
SELECT ALL - ( 37 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-370
-481
-962
query I rowsort
SELECT ALL 10 * 34 + cor0.col0 + - ( col1 ) FROM tab1 AS cor0
----
317
394
407
query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab2
----
85
query I rowsort
SELECT - 61 AS col0 FROM tab0 cor0
----
-61
-61
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col0 col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + col1 * 39 + col1 AS col1 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT - ( col1 ) * col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + ( + 72 ) FROM tab0
----
72
72
72
query I rowsort
SELECT + 16 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT - + 80 FROM tab1 cor0
----
-80
-80
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3995
SELECT + col0 DIV col2 AS col1 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3995
SELECT + col0 / col2 AS col1 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT - - col0 * - cor0.col2 * + cor0.col1 + col1 FROM tab1 AS cor0
----
-36470
-4186
-99827
query I rowsort
SELECT col1 + + col2 * + 64 FROM tab1 cor0
----
3482
3658
6157
query I rowsort
SELECT DISTINCT + 30 * 77 AS col0 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
2310
query I rowsort
SELECT ALL - col1 + + ( 35 ) + + col1 FROM tab2 cor0
----
35
35
35
query I rowsort
SELECT DISTINCT - cor0.col0 - - 88 AS col0 FROM tab1 AS cor0
----
24
8
85
query I rowsort
SELECT DISTINCT + col1 * 50 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT col0 - 29 FROM tab0 AS cor0
----
-5
6
60
query I rowsort
SELECT DISTINCT col0 * - 23 - col0 AS col0 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT col1 * 11 * col0 - + col2 FROM tab2 AS cor0
----
14735
2360
50596
query I rowsort
SELECT DISTINCT + col0 * ( - 67 * col0 ) AS col1 FROM tab1
----
-274432
-428800
-603
query I rowsort
SELECT - + col1 * ( - col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4008
SELECT col2 DIV cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-4008
SELECT col2 / cor0.col0 + col1 AS col1 FROM tab0 AS cor0
----
87
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4009
SELECT col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4009
SELECT col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col1 * ( + 99 ) AS col0 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT col0 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + 50 + col0 + col2 FROM tab0 AS cor0
----
1257
1786
4621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col2 FROM tab2, tab1 cor0
----
71
query I rowsort
SELECT + - col0 * - ( 68 ) + col0 AS col0 FROM tab1 AS cor0
----
207
4416
5520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4015
SELECT - cor0.col2 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4015
SELECT - cor0.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-4016
SELECT - - cor0.col0 + CAST( + col2 AS SIGNED ) DIV + col1 AS col0 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-4016
SELECT - - cor0.col0 + CAST ( + col2 AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0
----
7
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + ( - col2 * - col2 ) col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT col0 + 38 AS col0 FROM tab2 AS cor0
----
116
117
45
query I rowsort
SELECT col0 + + 67 * ( col0 * col2 ) FROM tab2 cor0
----
12670
135954
201213
query I rowsort
SELECT DISTINCT - + col0 + - 86 FROM tab2 AS cor0
----
-164
-165
-93
query I rowsort
SELECT ALL + col0 * 53 AS col2 FROM tab2 AS cor0
----
371
4134
4187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 + 31 ) col0 FROM tab1
----
127
85
88
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT - 12 AS col2 FROM tab1, tab0 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3
query I rowsort
SELECT - col0 * - ( + col1 ) + cor0.col1 * 2 * + 53 FROM tab2 cor0
----
10856
3145
3503
query I rowsort
SELECT DISTINCT ( col1 ) * col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 30 + - col0 FROM tab1 AS cor0
----
-34
-50
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4028
SELECT ALL + cor0.col2 * col0 * CAST( 93 AS SIGNED ) AS col1 FROM tab1 cor0
----
15066
339264
714240
skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + cor0.col2 * col0 * CAST ( 93 AS INTEGER ) AS col1 FROM tab1 cor0
----
15066
339264
714240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT + CAST( NULL AS DECIMAL ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4029
SELECT + CAST ( NULL AS REAL ) / - col2 AS col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT + 51 DIV - col1 + ( col0 ) FROM tab1 cor0
----
2
59
77
skipif mysql # not compatible
query I rowsort label-4030
SELECT + 51 / - col1 + ( col0 ) FROM tab1 cor0
----
2
59
77
query I rowsort
SELECT ALL + - tab2.col0 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT - 56 * - col2 - 45 * - ( col1 ) FROM tab1
----
3642
4194
5961
query I rowsort
SELECT ( col1 ) + + col2 - 62 * - col1 FROM tab1
----
1692
687
915
query I rowsort
SELECT ALL - col1 - col1 * - 22 * + col0 FROM tab2 AS cor0
----
101185
29529
4743
query I rowsort
SELECT ALL 85 FROM tab2, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT + + 9 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT + 0 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - tab0.col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col1 ) - col0 col2 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT DISTINCT col0 + - col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT col0 + - col1 / - col0 AS col0 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT + col0 * - col0 + ( - cor0.col2 ) * col0 FROM tab1 AS cor0
----
-14080
-171
-7744
query I rowsort
SELECT DISTINCT + 92 + + col0 * + col2 FROM tab0 AS cor0
----
127
7390
884
query I rowsort
SELECT + 26 AS col2 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT DISTINCT - col2 * 54 + col2 AS col2 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT - col1 + + 66 AS col1 FROM tab0 cor0
----
-20
-25
-31
query I rowsort
SELECT + - col0 * - ( - col2 ) - col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT + col0 * 69 + col2 FROM tab0 AS cor0
----
1689
2416
6223
query I rowsort
SELECT DISTINCT - col2 * - 43 AS col2 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT ALL - - col0 + - 70 * + col1 AS col0 FROM tab0 AS cor0
----
-5996
-6281
-6755
query I rowsort
SELECT + col0 * 15 + + 40 * - col0 AS col2 FROM tab0 AS cor0
----
-2225
-600
-875
onlyif mysql # use DIV operator for integer division
query I rowsort label-4051
SELECT DISTINCT col0 DIV col1 col2 FROM tab1 AS cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT col0 / col1 col2 FROM tab1 AS cor0
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + cor0.col0 col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL 83 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 5ced3720d5aeff0dd77d5059a38001b6
query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 * 43 * + ( col1 * + ( cor0.col2 ) ) FROM tab1 AS cor0
----
1397060
3260062
5151731
query I rowsort
SELECT ALL + - col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4056
SELECT - col2 DIV 30 AS col1 FROM tab0 cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-4056
SELECT - col2 / 30 AS col1 FROM tab0 cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT + col0 * + 8 AS col2 FROM tab2 cor0
----
56
624
632
onlyif mysql # use DIV operator for integer division
query I rowsort label-4058
SELECT DISTINCT col1 DIV - 84 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4058
SELECT DISTINCT col1 / - 84 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4059
SELECT ALL - CAST( cor0.col2 AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + col2 * 22 * col2 FROM tab2 AS cor0
----
14872
16038
31768
query I rowsort
SELECT DISTINCT - 89 + col1 + 79 FROM tab0 AS cor0
----
76
81
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT ALL + col1 * + col2 * - ( + col0 ) + col0 DIV - col0 FROM tab1 AS cor0
----
-36481
-4213
-99841
skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL + col1 * + col2 * - ( + col0 ) + col0 / - col0 FROM tab1 AS cor0
----
-36481
-4213
-99841
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 * - cor0.col2 + 22 - col0 AS col2 FROM tab2 AS cor0
----
10925
25962
90450
query I rowsort
SELECT col0 * - col0 + - col1 * col1 FROM tab2
----
-1010
-6530
-9565
query I rowsort
SELECT ( - 72 ) + col0 AS col1 FROM tab0
----
-37
-48
17
query I rowsort
SELECT ALL cor0.col1 + tab0.col1 * - 22 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 35309887b9e37259f2e61c1fb9be8887
onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT DISTINCT col1 + 96 DIV - 53 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT col1 + 96 / - 53 AS col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT + col2 * - ( 4 ) AS col0 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT 59 AS col1 FROM tab1, tab0 cor0, tab0 cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT - col1 * ( col0 ) * col0 AS col0 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + - col1 * 25 AS col1 FROM tab0 AS cor0
----
-2150
-2275
-2425
query I rowsort
SELECT ( - col0 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 63 + + col2 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT col0 * 36 FROM tab0 AS cor0
----
1260
3204
864
query I rowsort
SELECT - 5 * - col0 * col2 AS col1 FROM tab0 AS cor0
----
175
36490
3960
query I rowsort
SELECT cor0.col2 * 85 AS col0 FROM tab1 AS cor0
----
4590
4845
8160
query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab2, tab2 AS cor0
----
-50
query I rowsort
SELECT - col0 + + col0 * col0 AS col1 FROM tab2
----
42
6006
6162
query I rowsort
SELECT - 50 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT DISTINCT + 37 + - col0 FROM tab2 AS cor0
----
-41
-42
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT - col1 DIV col1 + + ( + col0 * col1 ) AS col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-4081
SELECT - col1 / col1 + + ( + col0 * col1 ) AS col1 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT DISTINCT + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 - + 2 col2 FROM tab2
----
4
4
4
query I rowsort
SELECT + ( - col0 ) + + tab2.col0 + - 74 FROM tab2
----
-74
-74
-74
query I rowsort
SELECT DISTINCT 45 + - col0 FROM tab0 AS cor0
----
-44
10
21
query I rowsort
SELECT 13 + tab0.col2 - tab0.col0 FROM tab0
----
-21
22
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT ALL ( 58 * + tab2.col2 ) - col1 DIV - col0 AS col1 FROM tab2
----
1508
1570
2204
skipif mysql # not compatible
query I rowsort label-4087
SELECT ALL ( 58 * + tab2.col2 ) - col1 / - col0 AS col1 FROM tab2
----
1508
1570
2204
query I rowsort
SELECT ALL - 45 FROM tab2, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4089
SELECT DISTINCT col2 - 21 * tab2.col1 / - CAST( NULL AS SIGNED ) col2 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4089
SELECT DISTINCT col2 - 21 * tab2.col1 / - CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ( - col1 ) + col2 * + 59 FROM tab2 AS cor0
----
1475
1562
2225
query I rowsort
SELECT ALL + 62 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
126
142
65
query I rowsort
SELECT - + cor0.col1 + + col1 - col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 47 * + col1 FROM tab2 AS cor0
----
1457
2773
799
query I rowsort
SELECT + cor0.col2 + - col0 + + 39 FROM tab1 cor0
----
32
55
90
query I rowsort
SELECT DISTINCT + - cor0.col2 + col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4097
SELECT ALL + 99 + + cor0.col0 * cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
508
591
99
skipif mysql # not compatible
query I rowsort label-4097
SELECT ALL + 99 + + cor0.col0 * cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
508
591
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT - col2 * - col2 + cor0.col0 DIV col1 col1 FROM tab2 AS cor0
----
1448
677
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4098
SELECT - col2 * - col2 + cor0.col0 / col1 col1 FROM tab2 AS cor0
----
1448
677
729
query I rowsort
SELECT col1 + 66 AS col0 FROM tab1 cor0
----
76
79
92
query I rowsort
SELECT - col2 * - 23 AS col2 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT - 94 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT ( 10 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT - - col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL col1 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + cor0.col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4106
SELECT ALL tab0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL tab0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col0 * + col2 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - col1 * 58 AS col2 FROM tab2 cor0
----
-1798
-3422
-986
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4109
SELECT ALL - - CAST( NULL AS SIGNED ) 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-4109
SELECT ALL - - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * 67 AS col1 FROM tab2 AS cor0
----
-1139
-2077
-3953
query I rowsort
SELECT DISTINCT - - col1 + 51 * - col0 AS col2 FROM tab1 AS cor0
----
-127
-3254
-4067
query I rowsort
SELECT - - 41 * + 0 * col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT - - 51 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
-32946
-42687
-78234
query I rowsort
SELECT - col1 * col2 - - ( + col2 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
1512
2679
7968
query I rowsort
SELECT + cor0.col0 - + col2 * + 6 FROM tab0 AS cor0
----
-174
-403
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-4117
SELECT DISTINCT + col2 DIV + col2 + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT + col2 / + col2 + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL 85 - col1 FROM tab1 AS cor0
----
59
72
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4119
SELECT 90 DIV - col2 col1 FROM tab0 AS cor0
----
-1
-2
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4119
SELECT 90 / - col2 col1 FROM tab0 AS cor0
----
-1
-2
-90
query I rowsort
SELECT DISTINCT + + col1 * col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col2 * - 88 + + col2 FROM tab2 AS cor0
----
-2262
-2349
-3306
query I rowsort
SELECT - - col0 - col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT 64 * col0 * + cor0.col1 + - col0 - col2 * col2 AS col1 FROM tab1 cor0
----
2073
37647
57264
query I rowsort
SELECT + cor0.col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - ( + 58 ) + col2 * ( - cor0.col2 ) FROM tab0 AS cor0
----
-1147
-59
-6782
query I rowsort
SELECT - ( + col2 ) * col1 + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT DISTINCT - + 77 DIV ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
1
25
skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT - + 77 / ( - col0 ) AS col0 FROM tab1 AS cor0
----
0
1
25
query I rowsort
SELECT DISTINCT + col2 * col0 * col1 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-4129
SELECT DISTINCT + col2 DIV + 17 FROM tab2
----
1
2
skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + col2 / + 17 FROM tab2
----
1
2
query I rowsort
SELECT col0 - + 61 AS col2 FROM tab2 AS cor0
----
-54
17
18
query I rowsort
SELECT DISTINCT + cor0.col0 + - 6 * - col0 AS col1 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT DISTINCT - - 17 AS col1 FROM tab2 AS cor0
----
17
query I rowsort
SELECT + + col0 + col0 + col2 AS col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT - col2 * ( + col0 ) - col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT 48 * 95 FROM tab2
----
4560
4560
4560
query I rowsort
SELECT ALL + 8 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT col1 * - col2 + col0 * col2 FROM tab2 AS cor0
----
-648
2356
494
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT ALL - CAST( NULL AS SIGNED ) - + tab1.col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4139
SELECT ALL - CAST ( NULL AS INTEGER ) - + tab1.col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 44 * col1 FROM tab1
----
1144
440
572
query I rowsort
SELECT - - col0 * + 56 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
-229376
-358400
-504
query I rowsort
SELECT ALL col2 * - 7 FROM tab1 AS cor0
----
-378
-399
-672
query I rowsort
SELECT + 16 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT ( cor0.col2 ) FROM tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - 5 * - 10 AS col1 FROM tab1 cor0
----
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4146
SELECT ALL - col1 * cor0.col2 - col2 * - CAST( - 65 AS SIGNED ) col0 FROM tab1 cor0
----
-4275
-4914
-7488
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - col1 * cor0.col2 - col2 * - CAST ( - 65 AS INTEGER ) col0 FROM tab1 cor0
----
-4275
-4914
-7488
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT DISTINCT 31 * - col0 AS col2 FROM tab2
----
-217
-2418
-2449
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4149
SELECT ALL + CAST( NULL AS SIGNED ) + 26 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL + CAST ( NULL AS INTEGER ) + 26 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * col1 + + col0 * + col2 FROM tab0 cor0
----
132
14760
3630
query I rowsort
SELECT ALL 92 * 1 - col2 FROM tab1
----
-4
35
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4152
SELECT - 0 * 7 DIV col0 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4152
SELECT - 0 * 7 / col0 AS col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4153
SELECT - CAST( NULL AS SIGNED ) / 10 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4153
SELECT - CAST ( NULL AS INTEGER ) / 10 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 91 * ( col0 ) * col2 + + col0 * col1 FROM tab1 AS cor0
----
-14664
-331328
-697840
query I rowsort
SELECT ALL - - ( - ( col1 ) ) + 12 + col0 FROM tab1 AS cor0
----
-11
66
79
query I rowsort
SELECT DISTINCT - - cor0.col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col1 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * + col1 * col0 + 15 col2 FROM tab0 cor0
----
-218658
-55713
-91650
query I rowsort
SELECT - - col2 + - col2 * ( cor0.col1 ) FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + col2 + 31 * col2 FROM tab1 AS cor0
----
1728
1824
3072
query I rowsort
SELECT DISTINCT - col1 * + col0 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL cor0.col0 + + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4164
SELECT ALL - + cor0.col1 * CAST( NULL AS SIGNED ) + - 74 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - + cor0.col1 * CAST ( NULL AS INTEGER ) + - 74 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT ALL - col0 * ( col2 ) + - cor0.col2 / CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL - col0 * ( col2 ) + - cor0.col2 / CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 92 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT DISTINCT + 10 * col0 AS col1 FROM tab1
----
30
640
800
query I rowsort
SELECT ALL - cor0.col0 + - tab0.col0 + - 59 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 011946247020d3d1267ec7b0b53a3742
onlyif mysql # use DIV operator for integer division
query I rowsort label-4170
SELECT ALL cor0.col1 * col2 + - col0 DIV - cor0.col2 FROM tab0 AS cor0
----
132
2838
7463
skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL cor0.col1 * col2 + - col0 / - cor0.col2 FROM tab0 AS cor0
----
132
2838
7463
query I rowsort
SELECT ALL - col0 * - 59 FROM tab0 AS cor0
----
1416
2065
5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-4172
SELECT col2 DIV 15 + + col0 col0 FROM tab2 AS cor0
----
79
8
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4172
SELECT col2 / 15 + + col0 col0 FROM tab2 AS cor0
----
79
8
81
query I rowsort
SELECT ALL + - col2 * - ( col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col2 FROM tab2 cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 + tab0.col1 ) * col0 col0 FROM tab0
----
16198
4128
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT - ( col2 ) DIV col2 col0 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4176
SELECT - ( col2 ) / col2 col0 FROM tab1
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4177
SELECT ALL CAST( NULL AS SIGNED ) * + 39 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL CAST ( NULL AS INTEGER ) * + 39 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col1 * col1 - col1 * col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 34 col0 FROM tab2 AS cor0
----
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * + col1 col1 FROM tab2 cor0
----
1343
2449
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - col1 * col1 col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4182
SELECT col1 DIV + 66 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4182
SELECT col1 / + 66 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col0 FROM tab0 AS cor0
----
82
82
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT + + col2 DIV col0 AS col0 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-4184
SELECT + + col2 / col0 AS col0 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT + col2 + col1 * + 26 AS col1 FROM tab2 AS cor0
----
1560
480
833
query I rowsort
SELECT - - col2 * cor0.col2 + col2 * ( - col0 ) + + col0 FROM tab2 cor0
----
-1274
-1479
547
onlyif mysql # use DIV operator for integer division
query I rowsort label-4187
SELECT DISTINCT - + cor0.col2 DIV - ( col1 ) + col0 AS col0 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - + cor0.col2 / - ( col1 ) + col0 AS col0 FROM tab2 AS cor0
----
7
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + + col1 * + 68 - ( + col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
-1274
3010
6499
onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT DISTINCT + col2 DIV + col0 col0 FROM tab0 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT + col2 / + col0 col0 FROM tab0 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4191
SELECT - col0 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-4191
SELECT - col0 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + cor0.col2 * 59 - - col2 * col2 AS col2 FROM tab1 cor0
----
14880
6102
6612
query I rowsort
SELECT ALL + col1 * - col0 + - col0 - - col2 AS col0 FROM tab0 AS cor0
----
-2055
-3429
-8106
query I rowsort
SELECT ALL cor0.col1 + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to f65167375aa80cc8b3f3f8987d2662a3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4195
SELECT - - col0 * col0 - + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4195
SELECT - - col0 * col0 - + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 91 + col2 AS col1 FROM tab1 AS cor0
----
4968
5244
8832
onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT DISTINCT - col1 DIV + cor0.col1 - col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT - col1 / + cor0.col1 - col0 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ( - col2 ) + col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL - ( col0 ) * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + 6 + col0 FROM tab1 cor0
----
70
86
9
query I rowsort
SELECT - + 80 * cor0.col2 + + col1 FROM tab1 AS cor0
----
-4294
-4550
-7667
query I rowsort
SELECT DISTINCT - 9 * - col1 AS col1 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT DISTINCT + + col1 - + col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT 90 + - cor0.col1 FROM tab1 AS cor0
----
64
77
80
query I rowsort
SELECT col0 + 92 * + col1 FROM tab1
----
1276
2395
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT + col1 DIV - cor0.col2 + - col2 * col1 FROM tab0 cor0
----
-194
-2840
-7463
skipif mysql # not compatible
query I rowsort label-4206
SELECT + col1 / - cor0.col2 + - col2 * col1 FROM tab0 cor0
----
-194
-2840
-7463
query I rowsort
SELECT + - col1 * 34 AS col1 FROM tab2 cor0
----
-1054
-2006
-578
query I rowsort
SELECT + + col2 * 20 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT + col1 + + col2 * + 9 * + col1 FROM tab0
----
25628
67249
970
query I rowsort
SELECT + + ( 58 ) * + col0 AS col1 FROM tab1 AS cor0
----
174
3712
4640
query I rowsort
SELECT - + col2 + col2 * + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
69
7305
783
onlyif mysql # use DIV operator for integer division
query I rowsort label-4212
SELECT - ( - col2 ) DIV - col0 AS col1 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4212
SELECT - ( - col2 ) / - col0 AS col1 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT ( col0 ) * col2 + - col2 FROM tab0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-4214
SELECT DISTINCT + - col0 * - col0 - + col1 DIV col2 col1 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT + - col0 * - col0 - + col1 / col2 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 22 * + 32 FROM tab1
----
704
704
704
onlyif mysql # use DIV operator for integer division
query I rowsort label-4216
SELECT + + col0 DIV col0 - - col1 AS col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-4216
SELECT + + col0 / col0 - - col1 AS col1 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 - col1 col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT + + 73 AS col1 FROM tab1 AS cor0
----
73
query I rowsort
SELECT ALL + 59 * col0 FROM tab0
----
1416
2065
5251
query I rowsort
SELECT DISTINCT 46 AS col2 FROM tab1, tab0 cor0
----
46
query I rowsort
SELECT cor0.col1 * 83 AS col1 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT - tab2.col1 * + col1 * - ( - col1 ) FROM tab2
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT + cor0.col1 DIV ( col0 + col0 ) FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4223
SELECT + cor0.col1 / ( col0 + col0 ) FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT 15 * tab2.col0 + + col2 FROM tab2
----
1196
1223
132
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4225
SELECT DISTINCT CAST( NULL AS SIGNED ) + 4 * cor0.col0 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 4 * cor0.col0 FROM tab0, tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4226
SELECT ALL - col0 DIV 97 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL - col0 / 97 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + - 68 FROM tab0 AS cor0
----
18
23
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-4228
SELECT DISTINCT - tab1.col2 DIV col0 col1 FROM tab1
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT - tab1.col2 / col0 col1 FROM tab1
----
-1
-18
0
query I rowsort
SELECT ALL + 33 AS col0 FROM tab2
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 col1 FROM tab1
----
77
77
77
query I rowsort
SELECT 59 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT ALL - 30 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT ALL col2 + 67 FROM tab1 AS cor0
----
121
124
163
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT DISTINCT + - col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT + - col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4235
SELECT - - cor0.col2 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4235
SELECT - - cor0.col2 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * 62 + - 27 * col2 AS col1 FROM tab1 cor0
----
-4806
-5073
-8544
query I rowsort
SELECT DISTINCT + - cor0.col0 + + 28 FROM tab1 AS cor0
----
-36
-52
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-4238
SELECT DISTINCT + + col0 + col0 DIV col0 + + col1 FROM tab2 AS cor0
----
138
39
97
skipif mysql # not compatible
query I rowsort label-4238
SELECT DISTINCT + + col0 + col0 / col0 + + col1 FROM tab2 AS cor0
----
138
39
97
query I rowsort
SELECT ALL + 84 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT ALL - col0 * cor0.col1 + + col0 * col0 * col0 FROM tab2 AS cor0
----
126
469950
491696
onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT DISTINCT + + col1 DIV - ( col0 ) AS col1 FROM tab1 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT + + col1 / - ( col0 ) AS col1 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL - + col1 + - 68 + - cor0.col0 AS col1 FROM tab1 cor0
----
-142
-161
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * cor0.col0 + col0 * 34 col1 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT DISTINCT - col0 * col0 * - col1 + + col0 AS col2 FROM tab1
----
237
41024
83280
query I rowsort
SELECT DISTINCT + 54 + col2 FROM tab1 cor0
----
108
111
150
query I rowsort
SELECT 39 AS col0 FROM tab2 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-4247
SELECT - - col1 + - 90 DIV - col0 FROM tab1 AS cor0
----
11
14
56
skipif mysql # not compatible
query I rowsort label-4247
SELECT - - col1 + - 90 / - col0 FROM tab1 AS cor0
----
11
14
56
query I rowsort
SELECT DISTINCT - - ( + ( + col0 ) ) + + cor0.col2 * + col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - + ( cor0.col1 ) * col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - - 1 + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4251
SELECT - col2 * + col0 + + col2 * col0 DIV col2 col2 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4251
SELECT - col2 * + col0 + + col2 * col0 / col2 col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL - cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4253
SELECT DISTINCT + col2 * col2 + + col2 DIV col2 FROM tab1 AS cor0
----
2917
3250
9217
skipif mysql # not compatible
query I rowsort label-4253
SELECT DISTINCT + col2 * col2 + + col2 / col2 FROM tab1 AS cor0
----
2917
3250
9217
query I rowsort
SELECT ALL + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - cor0.col2 + - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * col2 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-4257
SELECT ALL - ( + col0 ) + 31 DIV - cor0.col0 - - col1 DIV - 30 AS col0 FROM tab1 AS cor0
----
-13
-64
-80
skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL - ( + col0 ) + 31 / - cor0.col0 - - col1 / - 30 AS col0 FROM tab1 AS cor0
----
-13
-64
-80
query I rowsort
SELECT ALL + 80 AS col0 FROM tab0 cor0
----
80
80
80
query I rowsort
SELECT DISTINCT - 22 - cor0.col0 FROM tab0 AS cor0
----
-111
-46
-57
query I rowsort
SELECT - - 13 + + col2 * col1 FROM tab1 AS cor0
----
1261
1417
583
query I rowsort
SELECT cor0.col0 + + col2 * col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - + col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col0 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT 44 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-4264
SELECT 44 / col0 AS col1 FROM tab2 AS cor0
----
0
0
6
query I rowsort
SELECT DISTINCT - 64 * - col0 AS col1 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT ALL + cor0.col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + col2 + col0 * col1 * - col2 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT DISTINCT - 69 + col2 AS col2 FROM tab0 AS cor0
----
-36
-68
13
query I rowsort
SELECT 97 - - col1 FROM tab0
----
183
188
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-4270
SELECT - 3 DIV + ( col1 ) + + 14 FROM tab2
----
14
14
14
skipif mysql # not compatible
query I rowsort label-4270
SELECT - 3 / + ( col1 ) + + 14 FROM tab2
----
14
14
14
query I rowsort
SELECT DISTINCT col1 + + 13 + col1 FROM tab0
----
185
195
207
query I rowsort
SELECT 8 + - 19 FROM tab0
----
-11
-11
-11
query I rowsort
SELECT - 84 * col1 * tab0.col0 + + 94 FROM tab0
----
-173282
-285086
-680222
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + tab1.col2 col2 FROM tab1
----
28
47
83
query I rowsort
SELECT + col0 * cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT col2 + + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 67 * col2 * col1 + - col0 FROM tab0
----
190122
499865
6464
query I rowsort
SELECT ALL - 42 + ( col2 ) * - col0 AS col1 FROM tab2 AS cor0
----
-2070
-231
-3044
onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT ALL - col0 DIV - 28 col2 FROM tab0 AS cor0
----
0
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4280
SELECT ALL - col0 / - 28 col2 FROM tab0 AS cor0
----
0
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT 87 AS col1 FROM tab2, tab1 AS cor0
----
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( - col2 ) + col2 col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4284
SELECT ALL tab2.col0 DIV + col0 + col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL tab2.col0 / + col0 + col0 FROM tab2
----
79
8
80
query I rowsort
SELECT DISTINCT ( ( col2 ) ) + + 9 + + col2 FROM tab1
----
117
123
201
query I rowsort
SELECT 87 * tab2.col2 AS col2 FROM tab2
----
2262
2349
3306
query I rowsort
SELECT 3 * + cor0.col0 AS col0 FROM tab2 cor0
----
21
234
237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - cor0.col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - - ( 76 ) AS col0 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT - cor0.col2 + + 7 FROM tab1, tab0 cor0
----
9 values hashing to 6ee46bbd7683b9e3ed4df0348ee760ab
query I rowsort
SELECT ALL - cor1.col0 + - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 467c9a7e5f60c1c8ceb779a7e0ffb01b
query I rowsort
SELECT col1 * + 73 FROM tab0
----
6278
6643
7081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4294
SELECT CAST( NULL AS SIGNED ) * col1 / - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4294
SELECT CAST ( NULL AS INTEGER ) * col1 / - col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4295
SELECT + - col1 DIV col0 + col0 DIV 16 - - cor0.col1 * col1 FROM tab2 AS cor0
----
293
3485
957
skipif mysql # not compatible
query I rowsort label-4295
SELECT + - col1 / col0 + col0 / 16 - - cor0.col1 * col1 FROM tab2 AS cor0
----
293
3485
957
onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT + + ( + col2 ) * col2 + 36 - + col1 DIV cor0.col0 FROM tab1 AS cor0
----
2944
3285
9252
skipif mysql # not compatible
query I rowsort label-4296
SELECT + + ( + col2 ) * col2 + 36 - + col1 / cor0.col0 FROM tab1 AS cor0
----
2944
3285
9252
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + 31 + col1 * col2 FROM tab2 AS cor0
----
1565
677
868
query I rowsort
SELECT + ( col1 ) + col2 * 56 - cor0.col1 FROM tab2 AS cor0
----
1456
1512
2128
query I rowsort
SELECT DISTINCT + + 99 AS col0 FROM tab1, tab2, tab0 AS cor0
----
99
query I rowsort
SELECT ALL - ( - col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 98 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1346
1502
668
query I rowsort
SELECT + col0 * col1 * col1 FROM tab2 cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-4304
SELECT DISTINCT + col1 DIV - col1 + col1 AS col0 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-4304
SELECT DISTINCT + col1 / - col1 + col1 AS col0 FROM tab0 AS cor0
----
85
90
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 + col0 col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - + cor0.col0 * 69 * col0 FROM tab1 AS cor0
----
-282624
-441600
-621
onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT + col2 + col1 DIV - 65 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4307
SELECT + col2 + col1 / - 65 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - cor0.col1 * ( 79 ) FROM tab0 AS cor0
----
-6794
-7189
-7663
query I rowsort
SELECT - col0 + + cor0.col2 * + col0 * + col1 FROM tab0 AS cor0
----
3360
664029
68088
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( col1 ) col0 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT ALL - col0 + - 66 DIV + col0 + col1 * col2 col1 FROM tab1 AS cor0
----
1168
1379
505
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4312
SELECT ALL - col0 + - 66 / + col0 + col1 * col2 col1 FROM tab1 AS cor0
----
1168
1379
505
query I rowsort
SELECT DISTINCT + col1 * + 38 FROM tab1 AS cor0
----
380
494
988
query I rowsort
SELECT col1 + col2 * ( tab1.col2 ) FROM tab1
----
2942
3259
9229
query I rowsort
SELECT ALL - col1 * + 52 * + 91 FROM tab0 AS cor0
----
-406952
-430612
-459004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col2 col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col2 * - col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + 94 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
onlyif mysql # use DIV operator for integer division
query I rowsort label-4319
SELECT DISTINCT + + col2 DIV - ( 46 ) + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-4319
SELECT DISTINCT + + col2 / - ( 46 ) + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT 15 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 97c4e033347d2076218e240ed49af0a7
query I rowsort
SELECT col0 * - ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - - 55 AS col0 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT - 80 AS col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
query I rowsort
SELECT col1 + ( col1 ) FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4325
SELECT - + col1 * + col0 + col1 * cor0.col1 DIV col1 FROM tab1 cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-4325
SELECT - + col1 * + col0 + col1 * cor0.col1 / col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT 40 + + col2 FROM tab2 AS cor0
----
66
67
78
query I rowsort
SELECT ALL + - 58 + - col1 * ( - col0 ) * - cor0.col2 AS col1 FROM tab1 cor0
----
-36538
-4270
-99898
onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT ( 38 ) DIV + col1 AS col0 FROM tab2
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4328
SELECT ( 38 ) / + col1 AS col0 FROM tab2
----
0
1
2
query I rowsort
SELECT tab0.col0 + + tab0.col2 * col1 FROM tab0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4330
SELECT - CAST( + col0 AS SIGNED ) * - col0 FROM tab2
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-4330
SELECT - CAST ( + col0 AS INTEGER ) * - col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT col0 + + tab2.col2 * - col1 + tab2.col0 FROM tab2
----
-1378
-488
-823
query I rowsort
SELECT - col1 + col0 * col0 AS col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT 69 + - tab0.col1 * + col0 FROM tab0
----
-1995
-3326
-8030
onlyif mysql # use DIV operator for integer division
query I rowsort label-4334
SELECT DISTINCT col1 * col1 DIV - col2 FROM tab0
----
-100
-224
-9409
skipif mysql # not compatible
query I rowsort label-4334
SELECT DISTINCT col1 * col1 / - col2 FROM tab0
----
-100
-224
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4335
SELECT ALL + tab2.col2 DIV + col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4335
SELECT ALL + tab2.col2 / + col1 FROM tab2
----
0
0
2
query I rowsort
SELECT ALL - col2 + col2 * col1 * - col2 AS col0 FROM tab1 cor0
----
-119904
-32547
-75870
query I rowsort
SELECT ALL + - col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + - col2 - - col2 * col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT col2 * - col0 + col0 * col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4340
SELECT + col1 + + col2 DIV col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4340
SELECT + col1 + + col2 / col1 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT - tab1.col2 * col2 + col0 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT - col2 * col0 * + col0 + col0 AS col0 FROM tab0
----
-1190
-18984
-649433
query I rowsort
SELECT - - col1 * + col0 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT col2 * col1 * + col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col0 + + col0 * - col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - 95 * - col2 * col0 AS col2 FROM tab2
----
17955
192660
285190
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 + - col2 * col1 AS col2 FROM tab2 cor0
----
-1275
-1643
-3009
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE col2 < - col0
----
query I rowsort
SELECT tab1.col0 + + tab1.col1 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT + col2 * col2 * + tab0.col2 AS col0 FROM tab0
----
1
35937
551368
query I rowsort
SELECT ALL tab0.col1 * + tab0.col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col0 * - col0 AS col1 FROM tab0 WHERE NOT ( NULL ) = ( col2 )
----
query I rowsort
SELECT col1 * col1 + tab1.col1 AS col0 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT + col0 * tab2.col0 + + col2 FROM tab2 WHERE col1 >= NULL
----
query I rowsort
SELECT col1 * + tab2.col0 * - tab2.col2 + tab2.col2 * tab2.col0 FROM tab2
----
-117624
-48032
-5670
query I rowsort
SELECT ALL + + col0 * col2 + + 13 * col0 FROM tab2 AS cor0
----
280
3042
4029
query I rowsort
SELECT DISTINCT - col1 + + col0 * + 26 * col2 FROM tab0 AS cor0
----
189657
20506
813
query I rowsort
SELECT ALL + col2 * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT tab2.col2 * + col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT tab1.col2 AS col1 FROM tab1 WHERE NOT ( NULL ) < ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4363
SELECT DISTINCT col1 - + tab2.col2 DIV - col1 FROM tab2
----
19
31
59
skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT col1 - + tab2.col2 / - col1 FROM tab2
----
19
31
59
query I rowsort
SELECT tab1.col1 / col0 FROM tab1 WHERE NOT + col1 * + col2 + col1 <= NULL
----
query I rowsort
SELECT col1 * - tab1.col0 * - col0 + col1 * + tab1.col0 FROM tab1
----
312
41600
84240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + cor0.col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL col2 + col1 FROM tab1 AS cor0 WHERE NOT cor0.col0 NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 * col1 + - col2 FROM tab2 AS cor0
----
22793
271492
6700
query I rowsort
SELECT - col2 - - col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + cor0.col2 FROM tab0 AS cor0
----
7429
8363
9410
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * col0 + col2 < NULL
----
query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE ( + col0 - col1 ) < ( - col1 + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4373
SELECT ALL + col0 DIV + tab2.col0 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL + col0 / + tab2.col0 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL + col1 + col0 + - col2 AS col2 FROM tab1
----
-25
-3
17
query I rowsort
SELECT + col0 * - tab2.col1 * col1 AS col0 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-4376
SELECT ALL col0 DIV + col0 col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL col0 / + col0 col0 FROM tab0
----
1
1
1
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( tab2.col2 )
----
query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 AS col1 FROM tab1
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4379
SELECT + tab1.col0 + col0 - - tab1.col1 DIV col1 FROM tab1
----
129
161
7
skipif mysql # not compatible
query I rowsort label-4379
SELECT + tab1.col0 + col0 - - tab1.col1 / col1 FROM tab1
----
129
161
7
query I rowsort
SELECT DISTINCT - col0 + col0 * tab1.col2 * - col1 + + col2 AS col2 FROM tab1
----
-36487
-4161
-99824
onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT + col0 DIV col1 + - col1 FROM tab1
----
-26
-4
-7
skipif mysql # not compatible
query I rowsort label-4381
SELECT + col0 / col1 + - col1 FROM tab1
----
-26
-4
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT DISTINCT - col1 * - col0 + + col2 DIV col0 + - col2 AS col2 FROM tab2
----
1305
193
4576
skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT - col1 * - col0 + + col2 / col0 + - col2 AS col2 FROM tab2
----
1305
193
4576
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col2 * tab0.col2 * + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4384
SELECT DISTINCT - col1 DIV col0 AS col1 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-4384
SELECT DISTINCT - col1 / col0 AS col1 FROM tab2
----
-4
0
query I rowsort
SELECT + tab1.col1 * col1 + - col1 * col2 * col2 AS col1 FROM tab1
----
-119639
-32390
-75140
query I rowsort
SELECT tab2.col2 - + col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab2 WHERE - col2 + + col2 + col1 > tab2.col2
----
14
156
query I rowsort
SELECT ALL col1 + col0 + + col2 FROM tab0
----
133
143
262
query I rowsort
SELECT DISTINCT col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + - 79 FROM tab1 cor0
----
-79
-79
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 col0 FROM tab1 AS cor0
----
20
20
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 + - col0 * cor0.col2 col1 FROM tab1 AS cor0
----
-247
-3733
-7765
onlyif mysql # use DIV operator for integer division
query I rowsort label-4393
SELECT 4 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4393
SELECT 4 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 0 * 72 * + col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4395
SELECT - cor0.col2 DIV + 20 AS col1 FROM tab0 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4395
SELECT - cor0.col2 / + 20 AS col1 FROM tab0 AS cor0
----
-1
-4
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4396
SELECT ALL + 64 DIV + col0 col0 FROM tab0
----
0
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + 64 / + col0 col0 FROM tab0
----
0
1
2
query I rowsort
SELECT ( + 49 ) + col2 AS col1 FROM tab2
----
75
76
87
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + cor0.col0 * + col2 * cor0.col2 AS col0 FROM tab0 cor0
----
26136
35
598436
query I rowsort
SELECT ALL col1 * + ( tab0.col0 + 63 ) AS col2 FROM tab0
----
13832
7482
9506
query I rowsort
SELECT 43 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT col2 + + col2 * col1 * 98 FROM tab0 AS cor0
----
278157
731358
9507
query I rowsort
SELECT cor0.col1 + - col2 * 75 FROM tab0 AS cor0
----
-2389
-6059
22
query I rowsort
SELECT ALL col1 * + 80 FROM tab2
----
1360
2480
4720
query I rowsort
SELECT + col1 * 50 AS col2 FROM tab2
----
1550
2950
850
query I rowsort
SELECT ALL col2 + tab2.col0 * + col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT col0 - col2 * col2 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT + + 53 * col1 * ( col2 ) FROM tab0 AS cor0
----
150414
395486
5141
query I rowsort
SELECT ALL 79 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT + col0 * 23 AS col2 FROM tab0
----
2047
552
805
query I rowsort
SELECT ALL - tab1.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT + col0 * 50 - ( col1 ) * col1 AS col1 FROM tab1 AS cor0
----
-526
3100
3831
query I rowsort
SELECT 37 + - 19 FROM tab0, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT + - 66 + - 69 FROM tab2 AS cor0
----
-135
-135
-135
onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT + col1 DIV - 52 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4415
SELECT + col1 / - 52 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * + col1 - col2 col0 FROM tab1 AS cor0
----
-247
-343
-548
query I rowsort
SELECT DISTINCT - col2 + col0 * - tab1.col0 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT - col0 + 85 FROM tab2
----
6
7
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4419
SELECT + - CAST( NULL AS SIGNED ) / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4419
SELECT + - CAST ( NULL AS INTEGER ) / cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4420
SELECT - - col0 + - ( - 30 ) DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
7
78
80
skipif mysql # not compatible
query I rowsort label-4420
SELECT - - col0 + - ( - 30 ) / cor0.col1 AS col0 FROM tab2 AS cor0
----
7
78
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT DISTINCT - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - col0 / - col0 AS col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + 2 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT col0 + + col1 * + col2 * - col0 FROM tab1 AS cor0
----
-36416
-4209
-99760
query I rowsort
SELECT 97 * col1 AS col2 FROM tab2
----
1649
3007
5723
query I rowsort
SELECT - col2 * + col0 * + col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4426
SELECT ALL - col0 / CAST( NULL AS SIGNED ) + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - col0 / CAST ( NULL AS INTEGER ) + col0 * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4427
SELECT ALL + col0 + + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL + col0 + + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + 47 FROM tab1 AS cor0
----
1222
470
611
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 + col1 col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col2 * col2 - 93 AS col0 FROM tab1
----
2823
3156
9123
query I rowsort
SELECT + col1 - ( col2 ) FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - col0 + - tab0.col2 * - tab0.col2 FROM tab0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + + col2 + + col2 * col2 + 83 FROM tab2 AS cor0
----
1565
785
839
query I rowsort
SELECT DISTINCT - cor0.col1 * - col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4435
SELECT ALL + + CAST( NULL AS SIGNED ) * - col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4435
SELECT ALL + + CAST ( NULL AS INTEGER ) * - col2 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + col0 + - col2 AS col0 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT ALL + col1 * + col2 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col1 + ( 72 ) AS col0 FROM tab0
----
158
163
169
query I rowsort
SELECT - - cor0.col2 * col0 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col2 col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 * - 69 FROM tab2
----
-46644
-50301
-99636
query I rowsort
SELECT col2 * col0 * - col2 + + cor0.col0 + + col2 FROM tab0 AS cor0
----
-26079
-598265
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT DISTINCT + col1 DIV - cor0.col0 + - 75 FROM tab0 AS cor0
----
-76
-77
-78
skipif mysql # not compatible
query I rowsort label-4443
SELECT DISTINCT + col1 / - cor0.col0 + - 75 FROM tab0 AS cor0
----
-76
-77
-78
query I rowsort
SELECT ALL - 83 * 93 * + col0 AS col1 FROM tab0
----
-185256
-270165
-686991
query I rowsort
SELECT DISTINCT 65 * + col1 * col0 AS col1 FROM tab1
----
41600
5070
67600
query I rowsort
SELECT + tab1.col0 + col2 - col1 * - col1 FROM tab1
----
221
345
733
onlyif mysql # use DIV operator for integer division
query I rowsort label-4447
SELECT + col0 + + cor0.col2 * + col1 * col1 - - col1 DIV cor0.col2 FROM tab1 cor0
----
16304
36507
5764
skipif mysql # not compatible
query I rowsort label-4447
SELECT + col0 + + cor0.col2 * + col1 * col1 - - col1 / cor0.col2 FROM tab1 cor0
----
16304
36507
5764
query I rowsort
SELECT + + ( - cor0.col2 ) + + ( - 39 ) * col0 FROM tab1 AS cor0
----
-171
-2553
-3216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4449
SELECT - + col0 * cor0.col1 + CAST( - 70 AS SIGNED ) * cor0.col0 + - col0 * - 71 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif mysql # not compatible
query I rowsort label-4449
SELECT - + col0 * cor0.col1 + CAST ( - 70 AS INTEGER ) * cor0.col0 + - col0 * - 71 FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4450
SELECT col1 + CAST( NULL AS SIGNED ) * - 78 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4450
SELECT col1 + CAST ( NULL AS INTEGER ) * - 78 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4451
SELECT ALL ( - tab0.col1 ) - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL ( - tab0.col1 ) - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + cor0.col1 col1 FROM tab1, tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + col2 * col1 * col2 + - col1 * col1 FROM tab0 cor0
----
-9312
603603
86258
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 + + col2 * + ( + col0 ) + col1 col1 FROM tab2 AS cor0
----
2152
285
3084
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4455
SELECT col1 * col2 + + CAST( 91 AS SIGNED ) + - col0 * + col1 AS col0 FROM tab2
----
-2977
-606
711
skipif mysql # not compatible
query I rowsort label-4455
SELECT col1 * col2 + + CAST ( 91 AS INTEGER ) + - col0 * + col1 AS col0 FROM tab2
----
-2977
-606
711
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT 2 * - col0 AS col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT - col0 + ( - 79 ) FROM tab2 AS cor0
----
-157
-158
-86
query I rowsort
SELECT - col1 * + col0 + + cor0.col2 * col1 FROM tab2 cor0
----
-3068
-697
620
query I rowsort
SELECT DISTINCT + - col2 + + 57 + cor0.col0 FROM tab1 AS cor0
----
41
6
64
query I rowsort
SELECT ALL + cor0.col1 * - 14 AS col2 FROM tab2 AS cor0
----
-238
-434
-826
query I rowsort
SELECT DISTINCT + cor0.col0 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT tab0.col1 + + col1 + 98 AS col0 FROM tab0
----
270
280
292
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4464
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) * - cor0.col2 + + col0 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) * - cor0.col2 + + col0 AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT col1 + + 10 + 40 * + col1 AS col1 FROM tab0 AS cor0
----
3536
3741
3987
onlyif mysql # use DIV operator for integer division
query I rowsort label-4466
SELECT - col0 DIV - 56 AS col1 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4466
SELECT - col0 / - 56 AS col1 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4467
SELECT + col0 * col1 + col1 DIV col1 FROM tab0 AS cor0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-4467
SELECT + col0 * col1 + col1 / col1 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT DISTINCT + col0 * ( 7 ) FROM tab0 AS cor0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4469
SELECT col1 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT - + col2 * - col1 + + col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + col0 * 94 FROM tab1 cor0
----
282
6016
7520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 + + 60 - col0 * + 57 col1 FROM tab2 AS cor0
----
-1300
-4732
-7867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4473
SELECT ALL + cor0.col1 * CAST( - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + cor0.col1 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + cor0.col0 + 91 + col1 FROM tab0 cor0
----
201
223
271
query I rowsort
SELECT ALL + 28 AS col2 FROM tab0 cor0
----
28
28
28
query I rowsort
SELECT ALL + + 24 * col2 - + col0 AS col0 FROM tab2 AS cor0
----
546
641
833
query I rowsort
SELECT - col0 * ( - col2 ) * + ( col2 + + col2 ) FROM tab2 AS cor0
----
10206
105456
228152
query I rowsort
SELECT + - ( 44 ) AS col2 FROM tab0 AS cor0
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col2 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT ALL 12 + cor0.col0 AS col1 FROM tab0 cor0
----
101
36
47
query I rowsort
SELECT ALL + - ( + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT - col2 * 15 + - col2 AS col0 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT DISTINCT + ( - 32 ) + - col2 AS col1 FROM tab2 AS cor0
----
-58
-59
-70
query I rowsort
SELECT - - 53 * col1 AS col1 FROM tab1 cor0
----
1378
530
689
onlyif mysql # use DIV operator for integer division
query I rowsort label-4486
SELECT ALL + + cor0.col0 - + col2 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + + cor0.col0 - + col2 / cor0.col0 AS col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT ALL + + cor0.col1 * col2 + col2 * + 99 AS col0 FROM tab2 AS cor0
----
3510
4108
4408
query I rowsort
SELECT - 2 + col1 FROM tab2 AS cor0
----
15
29
57
query I rowsort
SELECT ( 89 ) + + tab0.col0 AS col2 FROM tab0
----
113
124
178
query I rowsort
SELECT col1 * - col2 + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - 7 * 77 FROM tab0, tab1 AS cor0
----
-539
query I rowsort
SELECT cor0.col2 * 96 FROM tab1 AS cor0
----
5184
5472
9216
query I rowsort
SELECT ALL col1 + + col0 * 73 AS col0 FROM tab1 AS cor0
----
245
4682
5853
query I rowsort
SELECT DISTINCT - - col2 + ( + cor0.col0 ) FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4495
SELECT DISTINCT cor0.col1 DIV ( ( - col2 ) ) FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT cor0.col1 / ( ( - col2 ) ) FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT col0 + + col2 * ( + col2 ) * col2 FROM tab1 AS cor0
----
157467
185257
884816
query I rowsort
SELECT + cor0.col0 * - col0 + + col1 * col0 FROM tab2 cor0
----
-1482
-4898
168
query I rowsort
SELECT + cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL 9 FROM tab0, tab2 cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT DISTINCT 33 * - 32 AS col1 FROM tab1, tab0 AS cor0
----
-1056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * col0 col0 FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + col1 col2 FROM tab1 AS cor0
----
-72
-85
-88
query I rowsort
SELECT - 47 - cor0.col1 FROM tab1 cor0
----
-57
-60
-73
query I rowsort
SELECT ( col1 ) + + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT ALL - ( col1 ) DIV + cor0.col0 AS col2 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4505
SELECT ALL - ( col1 ) / + cor0.col0 AS col2 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT - + col0 + + col2 + ( col0 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + 54 * col1 FROM tab0 AS cor0
----
4644
4914
5238
query I rowsort
SELECT ALL 74 - ( + col1 + + 70 ) AS col0 FROM tab0
----
-82
-87
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - col0 * + col2 + col1 + col0 AS col2 FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT ALL - 71 AS col2 FROM tab0
----
-71
-71
-71
query I rowsort
SELECT ALL col1 * - col0 * col0 AS col2 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT + col1 + + col2 * ( tab0.col2 ) AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT + 20 + col0 * col2 + tab1.col1 AS col0 FROM tab1
----
208
3678
7713
query I rowsort
SELECT + + cor0.col1 + + ( + col2 ) * - col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - - col1 * - 14 * + 96 + cor0.col0 * 27 - - col1 FROM tab1 cor0
----
-11702
-15299
-34837
query I rowsort
SELECT + - tab2.col2 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT + tab1.col0 * - col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4519
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT 94 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT + - cor0.col1 + col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4522
SELECT col1 * + CAST( col2 AS SIGNED ) - - col1 AS col2 FROM tab0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort label-4522
SELECT col1 * + CAST ( col2 AS INTEGER ) - - col1 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT - tab1.col2 + col1 + col1 * + col0 FROM tab1
----
50
593
957
query I rowsort
SELECT col1 * - ( - 76 ) * col2 + col0 + col1 FROM tab2
----
116721
49192
63650
query I rowsort
SELECT col2 + + 79 FROM tab2
----
105
106
117
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-4527
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 78 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 78 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 60 + + col0 FROM tab2 AS cor0
----
-53
18
19
query I rowsort
SELECT + 9 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 + - col0 * col2 col1 FROM tab2 AS cor0
----
-129
-1968
-2942
query I rowsort
SELECT - - 17 AS col2 FROM tab2 AS cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT - - col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4532
SELECT - - col0 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + tab1.col0 + - tab1.col1 FROM tab1
----
-20
118
147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4534
SELECT + - CAST( NULL AS DECIMAL ) * col0 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4534
SELECT + - CAST ( NULL AS REAL ) * col0 + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( ( + col2 ) ) AS col1 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT ALL + 73 * col2 * + col1 - - CAST( + col2 * - col0 AS SIGNED ) FROM tab1
----
102330
37962
83424
skipif mysql # not compatible
query I rowsort label-4536
SELECT ALL + 73 * col2 * + col1 - - CAST ( + col2 * - col0 AS INTEGER ) FROM tab1
----
102330
37962
83424
query I rowsort
SELECT col2 + + col0 + col0 AS col0 FROM tab2
----
182
196
41
query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab0, tab2 cor0
----
-74
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94
query I rowsort
SELECT - + col1 - + 46 AS col0 FROM tab1 AS cor0
----
-56
-59
-72
query I rowsort
SELECT DISTINCT + - ( - col1 ) + cor0.col1 * 87 FROM tab1 AS cor0
----
1144
2288
880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT + - CAST( 57 AS SIGNED ) - col1 FROM tab1 AS cor0
----
-67
-70
-83
skipif mysql # not compatible
query I rowsort label-4542
SELECT + - CAST ( 57 AS INTEGER ) - col1 FROM tab1 AS cor0
----
-67
-70
-83
query I rowsort
SELECT ALL + 95 * + col2 - col1 AS col0 FROM tab2 AS cor0
----
2411
2534
3593
query I rowsort
SELECT ALL 66 * - col2 FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT DISTINCT - col0 * - col0 + - col1 - col1 * col2 AS col0 FROM tab2 AS cor0
----
-819
4491
5578
query I rowsort
SELECT + 81 + col1 FROM tab1 AS cor0
----
107
91
94
query I rowsort
SELECT 71 + col1 FROM tab1 AS cor0
----
81
84
97
query I rowsort
SELECT DISTINCT + 58 + + col0 AS col1 FROM tab0 AS cor0
----
147
82
93
query I rowsort
SELECT - col1 * col0 + ( + 40 ) FROM tab2 AS cor0
----
-1303
-177
-4562
query I rowsort
SELECT DISTINCT ( col1 ) + + col1 + col0 FROM tab0 cor0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-4551
SELECT col2 * - col2 + col0 * col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
skipif mysql # not compatible
query I rowsort label-4551
SELECT col2 * - col2 + col0 * col0 / col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL + col1 + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT + cor0.col1 - + col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4554
SELECT ALL + 0 DIV + col0 - col2 * 23 FROM tab1 AS cor0
----
-1242
-1311
-2208
skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL + 0 / + col0 - col2 * 23 FROM tab1 AS cor0
----
-1242
-1311
-2208
query I rowsort
SELECT col1 + - col2 * - 54 FROM tab2 AS cor0
----
1463
1489
2069
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4556
SELECT - CAST( NULL AS SIGNED ) / col2 + - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4556
SELECT - CAST ( NULL AS INTEGER ) / col2 + - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 78 FROM tab2, tab2 AS cor0
----
-78
query I rowsort
SELECT - - col1 * - col1 - col0 * col2 FROM tab2 AS cor0
----
-1150
-3291
-5509
onlyif mysql # use DIV operator for integer division
query I rowsort label-4559
SELECT DISTINCT col0 + - col0 DIV - 64 AS col1 FROM tab1 AS cor0
----
3
65
81
skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT col0 + - col0 / - 64 AS col1 FROM tab1 AS cor0
----
3
65
81
query I rowsort
SELECT ALL + 47 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4561
SELECT ALL + - col0 DIV + col0 + 64 AS col1 FROM tab1 cor0
----
63
63
63
skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + - col0 / + col0 + 64 AS col1 FROM tab1 cor0
----
63
63
63
query I rowsort
SELECT DISTINCT - + col2 - 44 FROM tab1 AS cor0
----
-101
-140
-98
query I rowsort
SELECT col1 * - ( - col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT col2 * + 40 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT col1 * + ( 21 ) * - col1 FROM tab1 AS cor0
----
-14196
-2100
-3549
query I rowsort
SELECT - - col0 + + ( + 0 ) * - col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT ALL + ( 56 ) FROM tab0 cor0
----
56
56
56
query I rowsort
SELECT - tab1.col1 * ( col2 ) * + tab1.col2 + col1 * - col2 * - col0 FROM tab1
----
-19968
-71604
3990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4569
SELECT DISTINCT CAST( col1 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-4569
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + - col0 * - col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT 46 + col1 * col1 AS col0 FROM tab0 AS cor0
----
7442
8327
9455
query I rowsort
SELECT - cor0.col0 * + ( + cor0.col1 + - ( 82 ) ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 39829092ffb29b94f4c3e7882412c027
onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT col2 DIV 54 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4573
SELECT col2 / 54 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 * col0 + col2 * col0 AS col2 FROM tab0 AS cor0
----
-1272
-3360
-801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + - cor0.col1 col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT col2 * 44 AS col1 FROM tab1 AS cor0
----
2376
2508
4224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT DISTINCT col2 DIV 80 + col0 col2 FROM tab0 AS cor0
----
24
35
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4578
SELECT DISTINCT col2 / 80 + col0 col2 FROM tab0 AS cor0
----
24
35
90
query I rowsort
SELECT ALL - col0 * 0 AS col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4580
SELECT ALL col1 DIV 90 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL col1 / 90 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + cor1.col2 + - cor0.col0 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab0 AS cor3
----
9 values hashing to 3bc06ccf3237ffb250bf4a21d366c466
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL + ( col2 ) * - tab2.col2 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4584
SELECT DISTINCT 2 * + tab0.col0 + col2 DIV + tab0.col1 + ( tab0.col1 ) FROM tab0
----
134
167
269
skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT 2 * + tab0.col0 + col2 / + tab0.col1 + ( tab0.col1 ) FROM tab0
----
134
167
269
query I rowsort
SELECT + 95 AS col1 FROM tab0 cor0
----
95
95
95
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 * col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL - + ( - ( col0 ) ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + ( - ( col2 ) ) * + 29 FROM tab0 AS cor0
----
-2378
-29
-957
query I rowsort
SELECT ALL 98 + + col2 FROM tab2 AS cor0
----
124
125
136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4591
SELECT + 74 + 54 DIV col0 AS col0 FROM tab2 AS cor0
----
74
74
81
skipif mysql # not compatible
query I rowsort label-4591
SELECT + 74 + 54 / col0 AS col0 FROM tab2 AS cor0
----
74
74
81
query I rowsort
SELECT ALL cor0.col1 + ( + col1 ) * - col2 * + col2 AS col2 FROM tab0 AS cor0
----
-611793
-93568
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) col2 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4594
SELECT ALL cor0.col1 * col0 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL cor0.col1 * col0 + col1 / col1 AS col1 FROM tab1 AS cor0
----
1041
641
79
query I rowsort
SELECT DISTINCT + col2 - + col0 * - 47 AS col1 FROM tab2 AS cor0
----
356
3692
3751
query I rowsort
SELECT ALL 65 * col0 * - col1 FROM tab2 AS cor0
----
-14105
-299130
-87295
query I rowsort
SELECT + cor0.col0 * 89 FROM tab2, tab0 AS cor0
----
9 values hashing to d74204e09f3addb65e3cc552e61463b0
query I rowsort
SELECT ALL - + col0 + + cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4599
SELECT ALL + col1 * CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col2 * 87 FROM tab0 AS cor0
----
584988
87
94743
query I rowsort
SELECT + - col0 * cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + col1 * + 36 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1333
1955
6726
query I rowsort
SELECT col0 * col1 + - col2 * - col2 - - col2 FROM tab1 cor0
----
10352
3048
3946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col0 + 79 col2 FROM tab1
----
-3569
-7601
-83
query I rowsort
SELECT col2 + - tab1.col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - col1 * ( - 21 ) + col2 FROM tab0 AS cor0
----
1839
1993
2038
onlyif mysql # use DIV operator for integer division
query I rowsort label-4608
SELECT cor0.col1 DIV + ( cor0.col2 ) FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4608
SELECT cor0.col1 / + ( cor0.col2 ) FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL tab2.col1 * cor0.col2 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4ac56eb1b1201b1b07557b39398f9b85
query I rowsort
SELECT DISTINCT + col1 * col2 * tab2.col0 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL + 63 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4612
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4613
SELECT DISTINCT + tab0.col1 DIV col0 AS col1 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4613
SELECT DISTINCT + tab0.col1 / col0 AS col1 FROM tab0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4614
SELECT col1 + - ( col2 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-4614
SELECT col1 + - ( col2 ) / - col1 AS col0 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT col1 + col0 * - 55 * - col1 FROM tab1 AS cor0
----
35210
4316
57213
query I rowsort
SELECT + col1 + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - + col0 * - cor0.col2 * + cor0.col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab1.col1 + + col0 AS col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col1 - col0 * col2 col0 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT tab2.col1 AS col1 FROM tab2 WHERE NOT - col0 NOT BETWEEN col0 AND ( col0 - col2 )
----
query I rowsort
SELECT - col2 * col0 AS col2 FROM tab1 WHERE NOT + col2 < ( - tab1.col0 )
----
-162
-3648
-7680
query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN NULL AND - col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( - col2 + + col2 * col2 )
----
query I rowsort
SELECT ALL col1 + + tab1.col2 * + col2 * tab1.col1 FROM tab1
----
119821
32500
75842
query I rowsort
SELECT + tab1.col0 AS col2 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + + cor0.col2 * col0 - - cor0.col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ( + col1 ) - + col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 71 + + col0 * + ( - col1 ) FROM tab1 AS cor0
----
-569
-7
-969
query I rowsort
SELECT - + col2 + col2 * col2 AS col1 FROM tab1 cor0
----
2862
3192
9120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4631
SELECT col2 * - cor0.col0 - + CAST( col1 AS SIGNED ) * - col2 AS col2 FROM tab0 AS cor0
----
164
2046
62
skipif mysql # not compatible
query I rowsort label-4631
SELECT col2 * - cor0.col0 - + CAST ( col1 AS INTEGER ) * - col2 AS col2 FROM tab0 AS cor0
----
164
2046
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4632
SELECT ( + col2 ) * + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-4632
SELECT ( + col2 ) * + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + 99 + - col0 * - 93 FROM tab2 AS cor0
----
7353
7446
750
query I rowsort
SELECT - col1 * + ( 88 ) FROM tab0 cor0
----
-7568
-8008
-8536
query I rowsort
SELECT ALL - col1 + - col2 - col1 FROM tab2 AS cor0
----
-144
-72
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 col1 FROM tab0, tab1 AS cor0
----
95
query I rowsort
SELECT - - col0 * col0 AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + - 22 + cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 10c366a53623239487c9461fec222aa7
query I rowsort
SELECT DISTINCT 41 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
41
query I rowsort
SELECT ALL cor1.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 92 * + col0 AS col2 FROM tab2 AS cor0
----
644
7176
7268
query I rowsort
SELECT + 34 * - col0 * - col2 FROM tab1 AS cor0
----
124032
261120
5508
query I rowsort
SELECT - cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + 17 * cor0.col2 * col2 FROM tab2 AS cor0
----
11492
12393
24548
query I rowsort
SELECT 25 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT + - 4 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd
query I rowsort
SELECT col2 * 36 * + cor0.col0 AS col2 FROM tab1 cor0
----
131328
276480
5832
query I rowsort
SELECT ALL + ( + col0 + + col0 ) FROM tab2
----
14
156
158
query I rowsort
SELECT ALL + 51 - col0 FROM tab2 AS cor0
----
-27
-28
44
query I rowsort
SELECT DISTINCT 38 * col0 FROM tab1
----
114
2432
3040
query I rowsort
SELECT DISTINCT cor1.col0 + + 57 FROM tab1, tab1 AS cor0, tab2 cor1
----
135
136
64
query I rowsort
SELECT + col0 * - col2 - col1 AS col1 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT + - col0 + - col0 * col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 * + col0 col0 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT col1 + - tab0.col0 DIV col1 AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4656
SELECT col1 + - tab0.col0 / col1 AS col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4657
SELECT 23 DIV + col0 + col1 AS col0 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4657
SELECT 23 / + col0 + col1 AS col0 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT tab2.col0 * - col0 + + col1 * - col2 * - col1 + col0 * + col0 FROM tab2
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 + + col1 * col2 col2 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 + + col1 + + col1 col1 FROM tab1 AS cor0
----
-1014
-26
-620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - col2 - + col0 col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT + col2 + - col0 * col0 AS col1 FROM tab0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-4663
SELECT DISTINCT + col0 + - tab2.col1 DIV - col0 + + tab2.col0 AS col1 FROM tab2
----
156
158
18
skipif mysql # not compatible
query I rowsort label-4663
SELECT DISTINCT + col0 + - tab2.col1 / - col0 + + tab2.col0 AS col1 FROM tab2
----
156
158
18
query I rowsort
SELECT col1 + col1 * col2 AS col0 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + col0 + col1 * - col2 + + col1 AS col2 FROM tab2
----
-1397
-550
-799
query I rowsort
SELECT col2 * col1 * - col0 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - cor0.col1 + - cor0.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 679222606429bc7195f6dbd388ba1980
query I rowsort
SELECT ALL + - col1 + + col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col2 + + col1 * - col2 FROM tab0 cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT ( 27 ) - col0 DIV - col0 AS col1 FROM tab0
----
28
28
28
skipif mysql # not compatible
query I rowsort label-4671
SELECT ( 27 ) - col0 / - col0 AS col1 FROM tab0
----
28
28
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 90 * + col1 col0 FROM tab1
----
1074
2286
843
query I rowsort
SELECT DISTINCT ( col2 ) + tab2.col1 * col1 AS col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT ALL tab0.col0 + col1 * col0 AS col2 FROM tab0
----
2088
3430
8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-4675
SELECT DISTINCT + 89 * col0 DIV cor0.col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1314
665
8010
skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT + 89 * col0 / cor0.col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1314
665
8010
query I rowsort
SELECT cor0.col2 + + cor0.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 73e5d3d4212c7c9c8f2e4a4f74108ae2
query I rowsort
SELECT - + 43 + col1 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT ALL - cor0.col1 - - col0 AS col2 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + - ( col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - - 34 + cor0.col1 AS col2 FROM tab0 AS cor0
----
120
125
131
query I rowsort
SELECT DISTINCT + col1 + - cor0.col0 * - col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + col2 * + col1 + + col2 * + col0 FROM tab0 AS cor0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT ALL + ( ( col2 ) ) * col2 DIV - tab1.col1 AS col0 FROM tab1
----
-112
-324
-708
skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL + ( ( col2 ) ) * col2 / - tab1.col1 AS col0 FROM tab1
----
-112
-324
-708
query I rowsort
SELECT 60 * tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to bcace913b02f67b9596380ee1965ba58
query I rowsort
SELECT DISTINCT ( 14 * col1 ) AS col1 FROM tab1
----
140
182
364
query I rowsort
SELECT - col1 * col1 - col1 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL + 79 * - cor0.col2 + - col1 * + cor0.col2 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-14022
-177
-5478
query I rowsort
SELECT DISTINCT + - 49 * - col2 AS col1 FROM tab0 cor0
----
1617
4018
49
query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4691
SELECT ALL col0 * + col1 + - col1 DIV col1 FROM tab2
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL col0 * + col1 + - col1 / col1 FROM tab2
----
1342
216
4601
query I rowsort
SELECT col0 FROM tab2 WHERE NOT col0 NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL - col1 * + col2 + - col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT col1 + - col1 * - col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL cor0.col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL - col0 * col1 + col0 * + cor0.col2 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( col1 / tab2.col0 + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 + col0 * col2 col0 FROM tab0 WHERE NULL NOT IN ( col0 * - col1 )
----
query I rowsort
SELECT col2 + + tab2.col1 * col1 - + col0 FROM tab2
----
248
3429
981
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 <= NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 IN ( col1 * tab2.col2 + + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL + tab1.col1 + - tab1.col0 * tab1.col2 * - col0 AS col2 FROM tab1
----
233482
512
614413
query I rowsort
SELECT ALL - col0 * col2 + col0 * col1 * tab1.col1 FROM tab1
----
1866
2752
5840
query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE NOT col1 IN ( col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT BETWEEN col1 AND NULL
----
query I rowsort
SELECT ALL - col2 * - col1 + tab2.col0 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE col0 IN ( + col1 )
----
query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 + col1 )
----
query I rowsort
SELECT ALL - - col1 + cor0.col2 * cor0.col2 * - col1 FROM tab0 cor0
----
-611793
-93568
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col2 + col1 + - col1 * + cor0.col2 col1 FROM tab2 AS cor0
----
-1535
-2073
-2151
query I rowsort
SELECT + + col1 + col1 * col2 + col1 AS col0 FROM tab1 AS cor0
----
1274
1456
590
query I rowsort
SELECT ALL + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-4716
SELECT - + col0 * cor0.col0 + col0 * col1 DIV col0 + col0 FROM tab2 AS cor0
----
-11
-5947
-6145
skipif mysql # not compatible
query I rowsort label-4716
SELECT - + col0 * cor0.col0 + col0 * col1 / col0 + col0 FROM tab2 AS cor0
----
-11
-5947
-6145
query I rowsort
SELECT tab1.col0 + - col0 + col1 * col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col0 + col1 + col1 AS col0 FROM tab0
----
148
159
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + + col2 * - col2 * col2 + col2 FROM tab1
----
-157384
-185126
-884627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4721
SELECT ALL col0 - - col1 DIV col1 AS col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL col0 - - col1 / col1 AS col0 FROM tab2
----
79
8
80
query I rowsort
SELECT ALL tab0.col1 * col1 - - col1 AS col1 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL col2 - col1 * - col0 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL col0 + col0 * tab0.col1 + tab0.col2 AS col2 FROM tab0
----
2121
3431
8270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * tab2.col0 + col2 col0 FROM tab2
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4726
SELECT ALL + cor0.col0 * col1 DIV - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL + cor0.col0 * col1 / - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1
-10
-11
query I rowsort
SELECT - cor0.col1 * + col2 + col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - col0 * col1 * + col2 FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4729
SELECT 98 + 94 DIV col2 FROM tab1 AS cor0
----
98
99
99
skipif mysql # not compatible
query I rowsort label-4729
SELECT 98 + 94 / col2 FROM tab1 AS cor0
----
98
99
99
query I rowsort
SELECT 82 + + col1 * col2 FROM tab2 AS cor0
----
1616
728
919
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col1 - + col2 col1 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT - 29 * + 96 - + col2 AS col2 FROM tab2 AS cor0
----
-2810
-2811
-2822
query I rowsort
SELECT - col1 + col1 * col1 AS col2 FROM tab1
----
156
650
90
query I rowsort
SELECT 65 * - tab0.col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9c7ef9fd62fef822bd4805a9b488154a
query I rowsort
SELECT col2 * + col2 * + col1 AS col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT col0 * col2 + + col1 AS col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL - + col2 + 16 AS col1 FROM tab1 AS cor0
----
-38
-41
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4738
SELECT + cor0.col2 DIV col1 - col2 AS col1 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-4738
SELECT + cor0.col2 / col1 - col2 AS col1 FROM tab1 AS cor0
----
-52
-52
-89
query I rowsort
SELECT ALL + col0 * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 53 * + col1 * - col2 AS col2 FROM tab1 cor0
----
30210
66144
74412
onlyif mysql # use DIV operator for integer division
query I rowsort label-4741
SELECT 35 DIV 88 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4741
SELECT 35 / 88 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4743
SELECT - tab0.col2 + col2 * CAST( + col2 + + col0 AS SIGNED ) FROM tab0
----
13940
1848
35
skipif mysql # not compatible
query I rowsort label-4743
SELECT - tab0.col2 + col2 * CAST ( + col2 + + col0 AS INTEGER ) FROM tab0
----
13940
1848
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT + col2 DIV + ( + 55 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4744
SELECT + col2 / + ( + 55 ) FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4745
SELECT - col0 + - ( col0 ) DIV col2 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-4745
SELECT - col0 + - ( col0 ) / col2 FROM tab1 AS cor0
----
-3
-65
-80
query I rowsort
SELECT - + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4747
SELECT ALL + + cor0.col0 * CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4747
SELECT ALL + + cor0.col0 * CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col1 * ( + col2 ) AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 46 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
46
query I rowsort
SELECT col1 * - 28 AS col2 FROM tab1 AS cor0
----
-280
-364
-728
query I rowsort
SELECT ALL - 3 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT DISTINCT - 93 * + tab1.col1 FROM tab1, tab1 AS cor0
----
-1209
-2418
-930
query I rowsort
SELECT - col0 * col2 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT ALL col1 DIV + col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL col1 / + col0 AS col0 FROM tab0
----
1
2
3
query I rowsort
SELECT - + ( col1 ) * col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - ( + col2 ) + col2 * col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT 45 * col2 AS col0 FROM tab0 AS cor0
----
1485
3690
45
query I rowsort
SELECT - 80 + - col2 FROM tab1 AS cor0
----
-134
-137
-176
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4760
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4760
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - ( cor0.col0 ) * 21 + - 3 FROM tab0 AS cor0
----
-1872
-507
-738
query I rowsort
SELECT ( tab0.col2 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT 89 * - col2 * - col2 FROM tab2
----
128516
60164
64881
query I rowsort
SELECT DISTINCT 68 * col2 AS col2 FROM tab0
----
2244
5576
68
query I rowsort
SELECT ALL - ( - 5 ) + - tab1.col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to a0511c57dfaa35266178390179c17269
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + - col2 col0 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT + col2 + 74 AS col0 FROM tab1 AS cor0
----
128
131
170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4768
SELECT + col2 * CAST( col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4768
SELECT + col2 * CAST ( col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 + + ( 11 ) AS col2 FROM tab2 cor0
----
37
38
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4770
SELECT - col2 DIV - col1 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-4770
SELECT - col2 / - col1 + ( + col1 ) AS col1 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT DISTINCT + ( + col0 * ( col1 ) ) FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + - col2 * col0 + + 34 AS col0 FROM tab0 AS cor0
----
-1
-7264
-758
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
17
31
59
query I rowsort
SELECT ALL + col0 + - 56 * - tab1.col1 + + col2 * - col1 AS col1 FROM tab1
----
-440
54
55
query I rowsort
SELECT ALL + 20 * + col2 FROM tab2 cor0
----
520
540
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col0 FROM tab0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT col1 - + ( + tab0.col0 ) AS col0 FROM tab0
----
2
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4778
SELECT DISTINCT col1 DIV 36 FROM tab0 AS cor0
----
2
skipif mysql # not compatible
query I rowsort label-4778
SELECT DISTINCT col1 / 36 FROM tab0 AS cor0
----
2
query I rowsort
SELECT DISTINCT col0 * - col0 + + 20 + + col2 FROM tab1
----
-4019
-6284
65
query I rowsort
SELECT col0 + col1 AS col2 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT + col2 - + 88 AS col0 FROM tab0 AS cor0
----
-55
-6
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * 15 + 93 col2 FROM tab0
----
1383
1458
1548
query I rowsort
SELECT col1 * - 67 + - ( + col0 ) FROM tab0
----
-5786
-6186
-6534
query I rowsort
SELECT - col1 * 69 AS col0 FROM tab1 AS cor0
----
-1794
-690
-897
query I rowsort
SELECT - + 46 AS col2 FROM tab1 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ALL col2 + + 20 FROM tab1
----
116
74
77
query I rowsort
SELECT DISTINCT ( 52 ) * col2 + 12 * - 48 FROM tab1
----
2232
2388
4416
query I rowsort
SELECT DISTINCT + 56 * + 55 * + col2 AS col0 FROM tab2 AS cor0
----
117040
80080
83160
query I rowsort
SELECT col0 * - col1 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT ALL - CAST( - col2 AS SIGNED ) DIV col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - CAST ( - col2 AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 92 FROM tab1 AS cor0
----
92
query I rowsort
SELECT DISTINCT - 78 * - 96 + col1 FROM tab0 cor0
----
7574
7579
7585
query I rowsort
SELECT + - 42 * cor0.col2 FROM tab0 AS cor0
----
-1386
-3444
-42
query I rowsort
SELECT DISTINCT - + ( - ( + cor0.col0 ) ) + cor0.col1 * 98 AS col1 FROM tab1 AS cor0
----
1044
1354
2551
query I rowsort
SELECT ALL - + 87 AS col2 FROM tab2 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - 58 + col0 * col2 + - col0 AS col0 FROM tab1 cor0
----
101
3526
7542
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4797
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 * col0 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 * col0 AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT - - col1 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + col2 * 22 FROM tab1 cor0
----
1188
1254
2112
query I rowsort
SELECT ALL - ( 88 ) AS col1 FROM tab0 AS cor0
----
-88
-88
-88
query I rowsort
SELECT 93 * + col0 FROM tab2
----
651
7254
7347
query I rowsort
SELECT DISTINCT + ( 69 ) * col1 FROM tab0 cor0
----
5934
6279
6693
query I rowsort
SELECT ALL - - col1 + 59 * - col2 * 77 FROM tab1 AS cor0
----
-245296
-258941
-436115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4804
SELECT - + CAST( - 8 AS SIGNED ) FROM tab1 cor0
----
8
8
8
skipif mysql # not compatible
query I rowsort label-4804
SELECT - + CAST ( - 8 AS INTEGER ) FROM tab1 cor0
----
8
8
8
query I rowsort
SELECT ALL + col1 + + 8 * - cor0.col2 * 89 FROM tab0 AS cor0
----
-23410
-58293
-615
query I rowsort
SELECT ALL + col1 * 42 + - col0 FROM tab1 AS cor0
----
1089
356
466
query I rowsort
SELECT ALL ( 23 ) * col2 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT DISTINCT + col1 * col0 + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT - + cor0.col0 + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + - col2 + - cor0.col2 * - ( col1 ) + col1 AS col1 FROM tab1 AS cor0
----
1165
1376
523
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4811
SELECT DISTINCT col1 * + col0 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2097
3396
8181
skipif mysql # not compatible
query I rowsort label-4811
SELECT DISTINCT col1 * + col0 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + - col2 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - col2 + col2 + - 72 AS col2 FROM tab0 AS cor0
----
-72
query I rowsort
SELECT ALL + ( - col0 ) + + col2 FROM tab1
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 - - tab0.col0 col0 FROM tab0
----
-5
6
60
query I rowsort
SELECT DISTINCT 71 * + col1 + col0 FROM tab0
----
6130
6550
6922
onlyif mysql # use DIV operator for integer division
query I rowsort label-4818
SELECT - col2 DIV col1 + - 28 + col1 col1 FROM tab0 AS cor0
----
58
63
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4818
SELECT - col2 / col1 + - 28 + col1 col1 FROM tab0 AS cor0
----
58
63
69
query I rowsort
SELECT col1 * + col2 + 42 * + col0 AS col2 FROM tab0 AS cor0
----
11200
1567
3846
query I rowsort
SELECT + col2 + ( - col0 ) * col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - - col1 + - ( cor0.col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 91 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 + - col1 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - + col2 * 85 + - col1 FROM tab0 AS cor0
----
-182
-2891
-7061
query I rowsort
SELECT ALL - col0 + col1 * 75 AS col1 FROM tab2 AS cor0
----
1196
2318
4347
query I rowsort
SELECT ALL - - cor0.col2 * col2 - + col2 AS col2 FROM tab2 cor0
----
1406
650
702
query I rowsort
SELECT + col2 + - 93 * - 48 AS col2 FROM tab2 AS cor0
----
4490
4491
4502
query I rowsort
SELECT DISTINCT + col0 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4830
SELECT ALL + col1 - 98 DIV + col1 AS col1 FROM tab1 AS cor0
----
1
23
6
skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + col1 - 98 / + col1 AS col1 FROM tab1 AS cor0
----
1
23
6
query I rowsort
SELECT DISTINCT - col1 + ( - col2 ) FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4832
SELECT - cor0.col0 * - CAST( + 78 AS SIGNED ) FROM tab1 AS cor0
----
234
4992
6240
skipif mysql # not compatible
query I rowsort label-4832
SELECT - cor0.col0 * - CAST ( + 78 AS INTEGER ) FROM tab1 AS cor0
----
234
4992
6240
query I rowsort
SELECT ALL - col2 - - 59 * + col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT col2 + - 4 FROM tab1 AS cor0
----
50
53
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4835
SELECT ALL + - col2 + CAST( col1 + col1 * - 25 AS SIGNED ) FROM tab1 cor0
----
-297
-408
-678
skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL + - col2 + CAST ( col1 + col1 * - 25 AS INTEGER ) FROM tab1 cor0
----
-297
-408
-678
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 40 + col1 * + col2 + col0 col0 FROM tab2
----
-396
-748
45
query I rowsort
SELECT ALL + + col1 * col0 * + col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col1 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + col2 * + col0 + 5 + + col0 FROM tab0
----
7392
75
821
query I rowsort
SELECT DISTINCT + 36 AS col1 FROM tab2, tab1 AS cor0
----
36
query I rowsort
SELECT col0 * col1 - col2 AS col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT 42 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT - col0 + - 78 AS col0 FROM tab1 AS cor0
----
-142
-158
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT - col1 * col2 DIV - 57 AS col1 FROM tab0 AS cor0
----
1
130
49
skipif mysql # not compatible
query I rowsort label-4844
SELECT - col1 * col2 / - 57 AS col1 FROM tab0 AS cor0
----
1
130
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4845
SELECT col0 * - col1 + - ( - col0 ) DIV + tab2.col1 FROM tab2
----
-1339
-217
-4601
skipif mysql # not compatible
query I rowsort label-4845
SELECT col0 * - col1 + - ( - col0 ) / + tab2.col1 FROM tab2
----
-1339
-217
-4601
query I rowsort
SELECT ALL + 98 * + col2 AS col0 FROM tab0
----
3234
8036
98
query I rowsort
SELECT - col2 + + col2 * cor0.col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - + col2 * 42 * + cor0.col0 + - 0 AS col2 FROM tab2 AS cor0
----
-126084
-7938
-85176
query I rowsort
SELECT + - ( - col2 ) * col1 + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col1 + 23 FROM tab2 cor0
----
-36
-8
6
query I rowsort
SELECT + + ( + col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col0 * cor0.col2 - - col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT DISTINCT + + CAST( + ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT + + CAST ( + ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + col1 + ( ( + tab1.col1 ) ) FROM tab1
----
20
26
52
query I rowsort
SELECT + col2 + 8 FROM tab2
----
34
35
46
query I rowsort
SELECT - col2 * - col1 + tab0.col2 * col2 AS col0 FROM tab0
----
14186
3927
98
query I rowsort
SELECT col1 * + cor0.col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + 3 * - col0 + - col0 FROM tab0 cor0
----
-140
-356
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4859
SELECT CAST( NULL AS SIGNED ) * + 55 * col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4859
SELECT CAST ( NULL AS INTEGER ) * + 55 * col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 77 FROM tab0, tab0 AS cor0, tab1 cor1, tab1 cor2
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b
query I rowsort
SELECT DISTINCT + 52 AS col0 FROM tab1
----
52
query I rowsort
SELECT 69 FROM tab0, tab0 AS cor0 CROSS JOIN tab2, tab1, tab1 AS cor1
----
243 values hashing to 82762d1f978d19c1dfb91e39310b5974
query I rowsort
SELECT ALL - 68 AS col0 FROM tab1 AS cor0
----
-68
-68
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4864
SELECT - col2 + - col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4864
SELECT - col2 + - col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 82 FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT + 67 * + col1 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT - col1 * ( + col0 ) AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 * 75 FROM tab0
----
6450
6825
7275
query I rowsort
SELECT ( col2 + + col2 * + ( col1 ) ) AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT + 30 * - cor0.col0 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab1, tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4872
SELECT ALL 38 + tab2.col1 DIV 11 FROM tab2
----
39
40
43
skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL 38 + tab2.col1 / 11 FROM tab2
----
39
40
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + cor0.col1 col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col1 * - cor0.col1 + 61 FROM tab2 AS cor0
----
-228
-3420
-900
query I rowsort
SELECT + - col1 * col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT col1 * + cor0.col2 * + 73 AS col1 FROM tab2 AS cor0
----
111982
47158
61101
skipif mysql # not compatible
query I rowsort
SELECT 1 * col0 * - CAST ( col2 AS REAL ) + col0 * + cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * - col1 + - col0 FROM tab1
----
576
75
960
query I rowsort
SELECT ALL col0 * ( tab0.col1 ) AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 78 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
78
query I rowsort
SELECT DISTINCT - + 19 AS col2 FROM tab1 AS cor0
----
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4882
SELECT + + CAST( NULL AS SIGNED ) + - ( - col0 ) * - ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4882
SELECT + + CAST ( NULL AS INTEGER ) + - ( - col0 ) * - ( col2 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab1.col0 + + ( - col1 ) AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT + col1 * - 16 AS col1 FROM tab1
----
-160
-208
-416
query I rowsort
SELECT cor0.col2 * cor0.col0 + col2 + - col0 * + 57 FROM tab2 AS cor0
----
-1463
-183
-2392
query I rowsort
SELECT ALL col2 + col1 - + tab0.col0 FROM tab0
----
63
84
95
query I rowsort
SELECT DISTINCT - 91 + + col2 - col1 * col1 AS col2 FROM tab2
----
-1025
-342
-3546
query I rowsort
SELECT 85 + + 49 AS col2 FROM tab0
----
134
134
134
query I rowsort
SELECT ( ( + tab2.col1 ) ) * + col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT - 81 - tab1.col0 * col0 FROM tab1
----
-4177
-6481
-90
query I rowsort
SELECT ALL - 80 + col2 AS col2 FROM tab1 AS cor0
----
-23
-26
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4892
SELECT ALL - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT - col0 + col1 * - col1 AS col1 FROM tab1 cor0
----
-164
-249
-679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 23 * cor0.col2 col0 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT ALL - col0 * - col2 - ( col1 ) FROM tab1 cor0
----
136
3638
7667
query I rowsort
SELECT col0 + 86 AS col1 FROM tab0 AS cor0
----
110
121
175
query I rowsort
SELECT DISTINCT - + col2 + + ( + 29 ) FROM tab0 AS cor0
----
-4
-53
28
query I rowsort
SELECT + col1 + ( col1 ) FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + col1 + col0 - - 36 FROM tab1 AS cor0
----
110
129
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4901
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 - + 90 FROM tab0 cor0
----
-4
1
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + col1 * col0 + cor0.col1 col2 FROM tab0 AS cor0
----
118922
49622
720902
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + CAST ( 75 AS REAL ) FROM tab2 AS cor0
----
37
48
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-4905
SELECT ALL + col2 DIV 40 + - 98 FROM tab0 AS cor0
----
-96
-98
-98
skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL + col2 / 40 + - 98 FROM tab0 AS cor0
----
-96
-98
-98
query I rowsort
SELECT + + col2 + + 87 AS col1 FROM tab1 AS cor0
----
141
144
183
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - 4 * + col1 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1300
-1508
-610
query I rowsort
SELECT ALL + + ( + col2 ) + col0 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL col0 * 65 AS col1 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT DISTINCT col1 + tab1.col2 * - col2 FROM tab1
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 + + col1 + col1 col1 FROM tab2
----
177
51
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 51 col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 02a7de94365b8cb5b5cb92c4b1d1e7c5
query I rowsort
SELECT ALL - col1 * + col2 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - ( + col2 ) + col1 * col2 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT ALL - + 64 FROM tab2 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT DISTINCT + - 38 * col0 - col0 DIV + col0 AS col1 FROM tab2 cor0
----
-267
-2965
-3003
skipif mysql # not compatible
query I rowsort label-4917
SELECT DISTINCT + - 38 * col0 - col0 / + col0 AS col1 FROM tab2 cor0
----
-267
-2965
-3003
onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT - - col2 * - col1 DIV col1 - - 41 * + col2 AS col2 FROM tab0 AS cor0
----
1320
3280
40
skipif mysql # not compatible
query I rowsort label-4918
SELECT - - col2 * - col1 / col1 - - 41 * + col2 AS col2 FROM tab0 AS cor0
----
1320
3280
40
query I rowsort
SELECT DISTINCT - col1 * col0 * + col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + tab1.col0 - + col0 FROM tab1
----
0
query I rowsort
SELECT DISTINCT 67 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4922
SELECT 34 - + col0 DIV - col1 AS col0 FROM tab2
----
34
35
38
skipif mysql # not compatible
query I rowsort label-4922
SELECT 34 - + col0 / - col1 AS col0 FROM tab2
----
34
35
38
query I rowsort
SELECT - col2 + ( col1 ) AS col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT + 2 * - col2 + col2 * + col1 * - col0 FROM tab0
----
-3397
-664282
-68178
query I rowsort
SELECT + ( + col2 ) AS col0 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab0.col1 + col2 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT 24 + + col1 FROM tab0
----
110
115
121
query I rowsort
SELECT 22 * col1 * - ( 80 ) FROM tab2
----
-103840
-29920
-54560
query I rowsort
SELECT - + col1 * col2 * col0 AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + tab1.col0 + + col2 col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT - 29 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-29
query I rowsort
SELECT ALL + 87 AS col1 FROM tab1
----
87
87
87
query I rowsort
SELECT - 71 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT ALL col2 * ( - tab0.col0 ) * + col0 AS col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT col0 * 63 + + 28 AS col0 FROM tab0
----
1540
2233
5635
query I rowsort
SELECT col2 * 17 AS col1 FROM tab2
----
442
459
646
query I rowsort
SELECT col2 * - col1 + 33 + + col0 AS col0 FROM tab0
----
-2781
-29
-7340
query I rowsort
SELECT ALL + + col2 + - ( 14 ) AS col2 FROM tab1 AS cor0
----
40
43
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT ALL cor0.col2 DIV + 72 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL cor0.col2 / + 72 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col2 + + col0 * - 15 FROM tab0 AS cor0
----
-1253
-327
-524
onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT ALL col0 * 83 DIV + 11 FROM tab1
----
22
482
603
skipif mysql # not compatible
query I rowsort label-4941
SELECT ALL col0 * 83 / + 11 FROM tab1
----
22
482
603
query I rowsort
SELECT col1 - - col2 AS col2 FROM tab0 cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4943
SELECT CAST( - col0 AS SIGNED ) * + col0 + + col1 AS col1 FROM tab2
----
-18
-6025
-6224
skipif mysql # not compatible
query I rowsort label-4943
SELECT CAST ( - col0 AS INTEGER ) * + col0 + + col1 AS col1 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT ALL ( - tab1.col0 ) * col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - + 26 AS col1 FROM tab0 AS cor0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT - + 35 * + cor0.col0 FROM tab1 AS cor0
----
-105
-2240
-2800
query I rowsort
SELECT DISTINCT - - 26 AS col2 FROM tab0 AS cor0
----
26
query I rowsort
SELECT ALL + - 45 + cor0.col1 FROM tab1 AS cor0
----
-19
-32
-35
query I rowsort
SELECT - 5 * - tab0.col2 + + col0 * - col0 FROM tab0
----
-1220
-411
-7511
query IIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0 WHERE NOT NULL IN ( cor0.col2 )
----
query I rowsort
SELECT DISTINCT + + 10 AS col0 FROM tab1 cor0
----
10
query I rowsort
SELECT DISTINCT - 96 + col1 FROM tab0 AS cor0
----
-10
-5
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4953
SELECT ALL + cor0.col0 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4953
SELECT ALL + cor0.col0 / - col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - 41 AS col0 FROM tab1 cor0
----
41
query I rowsort
SELECT ALL col2 + + col2 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + - col2 * col1 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4957
SELECT col1 + + col1 DIV - col0 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-4957
SELECT col1 + + col1 / - col0 FROM tab1 AS cor0
----
10
13
18
query I rowsort
SELECT DISTINCT - col0 * - col0 * col1 AS col1 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT 54 * 70 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 018cafe8571bde1126d6e2339093654c
query I rowsort
SELECT - col0 * 22 AS col0 FROM tab2 AS cor0
----
-154
-1716
-1738
onlyif mysql # use DIV operator for integer division
query I rowsort label-4961
SELECT ALL + col0 DIV - col1 + - 25 FROM tab0 AS cor0
----
-25
-25
-25
skipif mysql # not compatible
query I rowsort label-4961
SELECT ALL + col0 / - col1 + - 25 FROM tab0 AS cor0
----
-25
-25
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT ALL - col0 DIV ( - 36 ) FROM tab0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4962
SELECT ALL - col0 / ( - 36 ) FROM tab0
----
0
0
2
query I rowsort
SELECT + col1 * + 87 AS col0 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col1 + + col1 * col2 * col2 AS col2 FROM tab1 AS cor0
----
119821
32500
75842
query I rowsort
SELECT + - 25 * col2 AS col1 FROM tab1 AS cor0
----
-1350
-1425
-2400
query I rowsort
SELECT + ( col2 ) * - col0 + + col1 + col2 * - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-3333
-671325
-68818
query I rowsort
SELECT - 21 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
1780
480
700
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 col0 * - 87 col2 FROM tab1 AS cor0
----
-261
-5568
-6960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 + col0 col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL - 69 * + cor0.col2 - - col1 FROM tab2 cor0
----
-1735
-1832
-2605
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 43 * - col2 AS col1 FROM tab2 AS cor0
----
-1118
-1161
-1634
query I rowsort
SELECT + 22 * 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 59fc990d7013bea2450e8bc70c6adee8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT ( + col0 ) DIV + 26 AS col0 FROM tab0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-4976
SELECT ( + col0 ) / + 26 AS col0 FROM tab0
----
0
1
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4977
SELECT - col0 DIV col1 AS col2 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4977
SELECT - col0 / col1 AS col2 FROM tab2
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * col0 - - col2 col0 FROM tab2 AS cor0
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + cor0.col1 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + + cor0.col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 * - col0 - col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 + - cor0.col2 * + 36 col0 FROM tab2 cor0
----
-1353
-921
-957
query I rowsort
SELECT - - col1 * - col0 + - 5 FROM tab0 AS cor0
----
-2069
-3400
-8104
query I rowsort
SELECT + + col0 * + col2 + + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT col0 + col0 * col2 AS col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4986
SELECT ALL CAST( NULL AS SIGNED ) * + 75 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL CAST ( NULL AS INTEGER ) * + 75 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4987
SELECT + col0 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-4987
SELECT + col0 / - col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - 52 + col1 FROM tab1
----
-26
-39
-42
query I rowsort
SELECT - cor0.col2 + 84 + + col1 AS col2 FROM tab2 AS cor0
----
117
63
88
query I rowsort
SELECT col2 * col2 + + 15 AS col0 FROM tab1 AS cor0
----
2931
3264
9231
query I rowsort
SELECT 28 * + 7 FROM tab2, tab1 AS cor0
----
9 values hashing to 140c563b705c847a9763df60c43c8baa
query I rowsort
SELECT - col2 * - ( 74 ) - col0 * + col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-11382
-42801
-698901
query I rowsort
SELECT ALL col0 * 75 - - col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1362
6571
7384
query I rowsort
SELECT ALL - - col2 - 45 * col1 FROM tab0 AS cor0
----
-3837
-4013
-4364
query I rowsort
SELECT + - cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - col1 * 67 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT DISTINCT + col2 + - ( - col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT col1 * col2 DIV 2 - - col1 FROM tab1 AS cor0
----
295
637
728
skipif mysql # not compatible
query I rowsort label-4998
SELECT col1 * col2 / 2 - - col1 FROM tab1 AS cor0
----
295
637
728
query I rowsort
SELECT ALL - col2 - col0 * cor0.col0 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT ALL - col2 * 9 * col2 FROM tab1 AS cor0
----
-26244
-29241
-82944
query I rowsort
SELECT DISTINCT col0 * - col0 + - col1 + - cor0.col2 FROM tab1 AS cor0
----
-4163
-6509
-89
query I rowsort
SELECT DISTINCT - 20 * + 94 + col1 * col0 FROM tab0 AS cor0
----
1515
184
6219
query I rowsort
SELECT DISTINCT - col2 * col0 * - 28 AS col1 FROM tab2
----
5292
56784
84056
query I rowsort
SELECT ALL - col1 * 74 + + col0 AS col0 FROM tab2 AS cor0
----
-1179
-2287
-4288
query I rowsort
SELECT - 66 + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 9d15d8545c0ecf93c6e8ba36bd31b5ac
query I rowsort
SELECT ALL - ( ( cor0.col2 ) ) * - col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col0 * + 8 AS col2 FROM tab0
----
192
280
712
query I rowsort
SELECT ALL - tab2.col0 - + tab2.col0 FROM tab2
----
-14
-156
-158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col2 * - col2 col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-5010
SELECT + + 75 DIV col0 FROM tab1 AS cor0
----
0
1
25
skipif mysql # not compatible
query I rowsort label-5010
SELECT + + 75 / col0 FROM tab1 AS cor0
----
0
1
25
query I rowsort
SELECT - 19 * + col0 * - 99 AS col2 FROM tab0 AS cor0
----
167409
45144
65835
query I rowsort
SELECT ALL 46 * 7 AS col1 FROM tab2
----
322
322
322
query I rowsort
SELECT ALL tab0.col2 * tab0.col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - tab0.col1 * - col0 AS col0 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5015
SELECT ALL + - 81 + 21 DIV + col1 FROM tab0 AS cor0
----
-81
-81
-81
skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + - 81 + 21 / + col1 FROM tab0 AS cor0
----
-81
-81
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5016
SELECT DISTINCT - 42 DIV + 34 + - cor0.col0 AS col0 FROM tab2 cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 42 / + 34 + - cor0.col0 AS col0 FROM tab2 cor0
----
-79
-8
-80
query I rowsort
SELECT - ( - col1 ) - - col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col0 - - col1 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor0.col1 ) * - col2 * ( - cor0.col0 * - cor0.col2 ) + col2 col0 FROM tab1 AS cor0
----
-2079303
-227394
-9584544
query I rowsort
SELECT + cor0.col1 + - col1 - + col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + 46 * col2 * - col0 FROM tab0 cor0
----
-1610
-335708
-36432
query I rowsort
SELECT DISTINCT + + 92 * - col2 AS col0 FROM tab0 AS cor0
----
-3036
-7544
-92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5023
SELECT DISTINCT - cor0.col0 DIV - col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5023
SELECT DISTINCT - cor0.col0 / - col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL + 82 * col0 * + ( - 51 ) AS col1 FROM tab1 AS cor0
----
-12546
-267648
-334560
query I rowsort
SELECT 56 + - col1 FROM tab0 AS cor0
----
-30
-35
-41
query I rowsort
SELECT ALL cor0.col0 + - col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + 19 * col1 * col2 AS col1 FROM tab0 AS cor0
----
141778
1843
53922
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5029
SELECT + col1 + col2 DIV tab1.col0 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-5029
SELECT + col1 + col2 / tab1.col0 FROM tab1
----
10
14
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5030
SELECT DISTINCT + - 37 DIV col0 col2 FROM tab2 AS cor0
----
-5
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + - 37 / col0 col2 FROM tab2 AS cor0
----
-5
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5031
SELECT - col2 DIV - col0 col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5031
SELECT - col2 / - col0 col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - col0 * ( 72 ) FROM tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT col0 * - cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 * col2 + + 39 FROM tab2 cor0
----
-150
-1989
-2963
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5035
SELECT DISTINCT + col2 * CAST( 30 AS SIGNED ) + col1 * col2 FROM tab0 AS cor0
----
127
3828
9922
skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT + col2 * CAST ( 30 AS INTEGER ) + col1 * col2 FROM tab0 AS cor0
----
127
3828
9922
query I rowsort
SELECT - cor0.col0 + ( 79 ) FROM tab0 AS cor0
----
-10
44
55
query I rowsort
SELECT DISTINCT + + col1 - cor0.col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5038
SELECT DISTINCT cor0.col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-5038
SELECT DISTINCT cor0.col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT ALL - cor0.col1 * ( ( col0 ) ) * + 31 + - col2 AS col2 FROM tab2 AS cor0
----
-142688
-41671
-6754
onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT ALL - col0 + + 79 + col1 DIV - col2 FROM tab0 cor0
----
-11
-53
53
skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL - col0 + + 79 + col1 / - col2 FROM tab0 cor0
----
-11
-53
53
query I rowsort
SELECT DISTINCT - - cor0.col1 + + 7 FROM tab0 AS cor0
----
104
93
98
query I rowsort
SELECT + + col1 * 51 AS col1 FROM tab0 AS cor0
----
4386
4641
4947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5043
SELECT ALL CAST( NULL AS SIGNED ) * - col2 * col1 + col1 * 55 + + col1 * ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 * col1 + col1 * 55 + + col1 * ( col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5044
SELECT ALL + ( 30 ) * + cor0.col0 + + col0 DIV - col2 - - col1 FROM tab0 AS cor0
----
1112
2760
806
skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL + ( 30 ) * + cor0.col0 + + col0 / - col2 - - col1 FROM tab0 AS cor0
----
1112
2760
806
query I rowsort
SELECT 6 + 13 AS col2 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT ALL + 67 + - 5 FROM tab2 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + + 49 + + col2 * + col0 + + col0 AS col1 FROM tab1 AS cor0
----
214
3761
7809
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 + col2 * col2 FROM tab2 cor0
----
1602
743
832
query I rowsort
SELECT ALL - col0 + - 47 AS col2 FROM tab1 AS cor0
----
-111
-127
-50
query I rowsort
SELECT - + 34 FROM tab0 cor0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT + ( col1 ) + - col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5052
SELECT DISTINCT - ( col0 ) DIV + col1 + + 83 DIV + col1 FROM tab2 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - ( col0 ) / + col1 + + 83 / + col1 FROM tab2 cor0
----
0
2
query I rowsort
SELECT + 71 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1704
2485
6319
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5054
SELECT col2 + - CAST( + 97 AS SIGNED ) FROM tab1
----
-1
-40
-43
skipif mysql # not compatible
query I rowsort label-5054
SELECT col2 + - CAST ( + 97 AS INTEGER ) FROM tab1
----
-1
-40
-43
query I rowsort
SELECT ALL + 36 * + col2 AS col2 FROM tab2 AS cor0
----
1368
936
972
query I rowsort
SELECT DISTINCT + - col0 * 81 AS col1 FROM tab2 AS cor0
----
-567
-6318
-6399
onlyif mysql # use DIV operator for integer division
query I rowsort label-5057
SELECT 78 DIV 33 FROM tab2 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-5057
SELECT 78 / 33 FROM tab2 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT - ( 14 ) + - col0 AS col1 FROM tab0 AS cor0
----
-103
-38
-49
query I rowsort
SELECT DISTINCT + + 36 * - col1 AS col2 FROM tab2 cor0
----
-1116
-2124
-612
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5061
SELECT + - col0 DIV 53 AS col1 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5061
SELECT + - col0 / 53 AS col1 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + cor2.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
7
78
79
query I rowsort
SELECT ALL - ( col2 ) * tab0.col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 - col1 AS col2 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-5065
SELECT + ( col0 ) * col2 DIV - tab2.col1 FROM tab2
----
-176
-34
-6
skipif mysql # not compatible
query I rowsort label-5065
SELECT + ( col0 ) * col2 / - tab2.col1 FROM tab2
----
-176
-34
-6
query I rowsort
SELECT ALL - col2 + 63 FROM tab2 AS cor0
----
25
36
37
query I rowsort
SELECT ALL - ( tab0.col2 ) AS col0 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col0 FROM tab1
----
-31
-31
-31
query I rowsort
SELECT + 68 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5070
SELECT col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5070
SELECT col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + tab2.col2 + col2 AS col1 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT - + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5072
SELECT - + col1 / - col1 AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5073
SELECT - col1 + - col0 DIV + ( + col2 * + 8 ) FROM tab0 AS cor0
----
-101
-86
-91
skipif mysql # not compatible
query I rowsort label-5073
SELECT - col1 + - col0 / + ( + col2 * + 8 ) FROM tab0 AS cor0
----
-101
-86
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5074
SELECT + col1 DIV ( - cor0.col0 * + col1 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5074
SELECT + col1 / ( - cor0.col0 * + col1 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5075
SELECT col1 DIV + col0 + + tab1.col0 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-5075
SELECT col1 / + col0 + + tab1.col0 FROM tab1
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 * - col0 + - ( col1 ) + + col0 * col0 * + col2 col0 FROM tab1
----
231670
376
612147
query I rowsort
SELECT col1 + col2 + - col0 FROM tab1
----
29
3
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5078
SELECT col2 + + col1 + col2 * - col0 DIV - col0 AS col2 FROM tab0
----
152
255
99
skipif mysql # not compatible
query I rowsort label-5078
SELECT col2 + + col1 + col2 * - col0 / - col0 AS col2 FROM tab0
----
152
255
99
query I rowsort
SELECT ALL - col1 * col0 * + col2 + col2 * col0 FROM tab0
----
-3360
-656820
-67320
query I rowsort
SELECT cor1.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT + + col1 + 21 DIV + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5081
SELECT + + col1 + 21 / + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL col0 * + 61 FROM tab2 cor0
----
427
4758
4819
onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT + - col0 + col0 DIV 59 FROM tab0 AS cor0
----
-24
-35
-88
skipif mysql # not compatible
query I rowsort label-5083
SELECT + - col0 + col0 / 59 FROM tab0 AS cor0
----
-24
-35
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5084
SELECT ALL - - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5084
SELECT ALL - - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5085
SELECT DISTINCT - cor0.col2 + CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5085
SELECT DISTINCT - cor0.col2 + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL cor0.col2 - ( col1 + cor0.col2 ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - + cor0.col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT + 97 * - cor1.col2 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to bffef995f2157ad2ea135c0731aa2c13
query I rowsort
SELECT + cor0.col2 + 2 * 62 AS col1 FROM tab1 AS cor0
----
178
181
220
query I rowsort
SELECT col1 + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - - col2 + ( 77 ) * - col1 AS col1 FROM tab0 AS cor0
----
-6589
-6925
-7468
query I rowsort
SELECT - 71 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT tab2.col0 + - 18 FROM tab2
----
-11
60
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 61 col1 FROM tab0
----
-1464
-2135
-5429
query I rowsort
SELECT DISTINCT col0 * - 34 * col0 + col1 FROM tab1
----
-139254
-217587
-280
query I rowsort
SELECT ALL - 42 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
onlyif mysql # use DIV operator for integer division
query I rowsort label-5097
SELECT ALL tab0.col1 DIV col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5097
SELECT ALL tab0.col1 / col0 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL col2 * ( - tab2.col0 ) FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5099
SELECT ( col2 ) DIV col0 AS col1 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5099
SELECT ( col2 ) / col0 AS col1 FROM tab2
----
0
0
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5100
SELECT + - col2 DIV col1 + + ( cor0.col2 ) + - col2 col0 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5100
SELECT + - col2 / col1 + + ( cor0.col2 ) + - col2 col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT + - 55 * col1 * - col1 + 16 + + cor0.col1 FROM tab1 AS cor0
----
37222
5526
9324
query I rowsort
SELECT 58 * col0 AS col1 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT col0 * cor0.col0 * ( 26 ) AS col2 FROM tab2 AS cor0
----
1274
158184
162266
query I rowsort
SELECT - col1 + col2 + col2 FROM tab1 AS cor0
----
104
179
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5105
SELECT - ( + cor0.col1 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5105
SELECT - ( + cor0.col1 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5106
SELECT + col1 * col2 DIV CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5106
SELECT + col1 * col2 / CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT 21 - + col2 DIV - tab2.col1 col2 FROM tab2
----
21
21
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5107
SELECT 21 - + col2 / - tab2.col1 col2 FROM tab2
----
21
21
23
query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab1
----
5
query I rowsort
SELECT ALL 73 * tab2.col2 * col0 FROM tab2
----
13797
148044
219146
query I rowsort
SELECT - + ( + col2 ) * col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5111
SELECT col1 + cor0.col0 DIV col1 AS col2 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-5111
SELECT col1 + cor0.col0 / col1 AS col2 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT ALL - cor0.col1 * ( + col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + col0 * - col2 + - 71 - col0 FROM tab2 AS cor0
----
-2177
-267
-3152
query I rowsort
SELECT ALL - + col2 * 99 FROM tab1 cor0
----
-5346
-5643
-9504
onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT + col2 DIV cor0.col2 - + col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-5115
SELECT + col2 / cor0.col2 - + col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT DISTINCT - col0 * + col1 + + 54 AS col1 FROM tab2 AS cor0
----
-1289
-163
-4548
query I rowsort
SELECT + + cor0.col1 + + ( - col1 ) * col1 + col1 AS col1 FROM tab1 AS cor0
----
-143
-624
-80
query I rowsort
SELECT + col2 + + 54 - + cor0.col0 AS col2 FROM tab2 AS cor0
----
13
2
74
query I rowsort
SELECT - col1 * cor0.col1 + 79 * + col1 * + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
22621
271596
74965
query I rowsort
SELECT - col2 + - col2 * - col0 * - col2 FROM tab0 AS cor0
----
-26169
-36
-598518
onlyif mysql # use DIV operator for integer division
query I rowsort label-5121
SELECT - col1 DIV 72 col1 FROM tab1 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5121
SELECT - col1 / 72 col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * ( col2 ) + col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - + col1 + ( 60 ) AS col2 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT DISTINCT + - col2 + + 33 FROM tab1 AS cor0
----
-21
-24
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 + - col0 col2 FROM tab2 AS cor0
----
-45
40
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5126
SELECT - col1 + + col2 - + 45 * col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5126
SELECT - col1 + + col2 - + 45 * 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 ALL col2 + col0 * col2 col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + cor0.col1 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT + 6 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 44f233d1b3804e00d9436c0a41d1e2c8
query I rowsort
SELECT DISTINCT col2 + col2 * col0 * 53 AS col0 FROM tab1
----
193401
407136
8640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5131
SELECT CAST( 86 AS SIGNED ) - + col2 * + CAST( 81 + - col0 AS SIGNED ) FROM tab2
----
-1912
10
8
skipif mysql # not compatible
query I rowsort label-5131
SELECT CAST ( 86 AS INTEGER ) - + col2 * + CAST ( 81 + - col0 AS INTEGER ) FROM tab2
----
-1912
10
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 * col1 col0 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - ( cor0.col0 + - col0 ) col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab1 cor0
----
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 + cor0.col1 + - col1 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT ALL col2 DIV cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL col2 / cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + col2 * 89 AS col2 FROM tab0 AS cor0
----
2937
7298
89
query I rowsort
SELECT DISTINCT - ( 96 ) + col2 * + col2 FROM tab0 AS cor0
----
-95
6628
993
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 col2 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * col2 + - col1 * 50 * + cor0.col1 col1 FROM tab0 AS cor0
----
-369008
-406752
-470415
query I rowsort
SELECT col2 * - col1 * col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - 9 AS col2 FROM tab0 cor0
----
-9
-9
-9
query I rowsort
SELECT DISTINCT - ( - col1 ) + - col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + + ( + col2 ) + - ( + 22 ) AS col2 FROM tab1 AS cor0
----
32
35
74
query I rowsort
SELECT DISTINCT + ( + col0 ) + col1 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + cor0.col2 col1 FROM tab0 AS cor0
----
-12
-44
37
query I rowsort
SELECT - 38 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query I rowsort
SELECT - tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT - col1 * - ( - 15 ) FROM tab2
----
-255
-465
-885
query I rowsort
SELECT DISTINCT - 78 * 85 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-6533
-6539
-6544
query I rowsort
SELECT ALL + + 79 * + col1 AS col2 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT DISTINCT - 90 - 42 FROM tab0 cor0
----
-132
query I rowsort
SELECT ALL + - ( - 11 ) * col1 FROM tab2 AS cor0
----
187
341
649
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT DISTINCT - + col2 + ( col1 ) * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1560
-684
-864
skipif mysql # not compatible
query I rowsort label-5154
SELECT DISTINCT - + col2 + ( col1 ) * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + 76 * - col0 * col1 FROM tab2 AS cor0
----
-102068
-16492
-349752
onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT - 63 DIV - col2 AS col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5156
SELECT - 63 / - col2 AS col2 FROM tab1
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5157
SELECT ALL - CAST( ( + col0 ) AS SIGNED ) * col2 + + ( col2 * - col2 ) FROM tab2 AS cor0
----
-2704
-4446
-918
skipif mysql # not compatible
query I rowsort label-5157
SELECT ALL - CAST ( ( + col0 ) AS INTEGER ) * col2 + + ( col2 * - col2 ) FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - ( 33 ) * + cor0.col2 AS col2 FROM tab1 cor0
----
-1782
-1881
-3168
query I rowsort
SELECT ALL + + col0 * - 75 - col2 * - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-13973
-2592
-2660
query I rowsort
SELECT + 0 * - 21 * col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + ( col1 ) - col2 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - + 69 + + col2 FROM tab2 AS cor0
----
-31
-42
-43
query I rowsort
SELECT 95 * tab1.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 74d8404425fae93311b1b301bfea41ec
query I rowsort
SELECT ALL + col2 * - ( - col0 ) AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5166
SELECT ALL - - ( - col0 ) * cor0.col1 DIV 39 FROM tab2 AS cor0
----
-118
-34
-5
skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - - ( - col0 ) * cor0.col1 / 39 FROM tab2 AS cor0
----
-118
-34
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 21 * col0 - - col1 * col1 col2 FROM tab0 AS cor0
----
6412
6892
8674
query I rowsort
SELECT - 92 * col2 * 57 AS col0 FROM tab0 AS cor0
----
-173052
-430008
-5244
query I rowsort
SELECT + - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT ALL - + 27 DIV cor0.col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL - + 27 / cor0.col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - - col0 * - col2 AS col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT 70 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5173
SELECT col1 + + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-5173
SELECT col1 + + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5174
SELECT DISTINCT + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + col2 + cor0.col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - tab1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
query I rowsort
SELECT ALL - col1 + - ( cor0.col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5179
SELECT DISTINCT - + col2 DIV 19 AS col0 FROM tab1 AS cor0
----
-2
-3
-5
skipif mysql # not compatible
query I rowsort label-5179
SELECT DISTINCT - + col2 / 19 AS col0 FROM tab1 AS cor0
----
-2
-3
-5
query I rowsort
SELECT col1 * + col2 + - 47 * col0 + cor0.col2 FROM tab2 AS cor0
----
-2106
-3029
535
query I rowsort
SELECT ALL + col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-5182
SELECT - col1 DIV 70 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5182
SELECT - col1 / 70 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL cor0.col2 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT col0 * - col1 + + 39 * + col2 AS col1 FROM tab1 AS cor0
----
1583
2028
2704
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * - CAST ( 75 * col0 AS REAL ) + - col2 * 63 + col0 FROM tab2 AS cor0
----
-103040
-17969
-346710
query I rowsort
SELECT ALL col0 * 59 + ( cor0.col0 + col2 ) FROM tab2 AS cor0
----
447
4706
4778
query I rowsort
SELECT DISTINCT + col0 + 23 * col1 FROM tab1 AS cor0
----
294
379
601
query I rowsort
SELECT ALL - col0 + 7 + col2 AS col2 FROM tab1 AS cor0
----
0
23
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col1 * - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT + cor0.col1 * ( 31 ) AS col2 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - 96 * cor0.col1 + col0 FROM tab2 AS cor0
----
-1553
-2969
-5586
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - cor0.col1 - - 30 * + 1 * + col1 col1 FROM tab0 AS cor0
----
10192
3007
5418
query I rowsort
SELECT - 75 + 99 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - 3 * - col1 * + col2 + col2 * col0 FROM tab2 AS cor0
----
2700
4940
6630
query I rowsort
SELECT 95 AS col1 FROM tab0 cor0
----
95
95
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col0 - + 62 col1 FROM tab0 AS cor0
----
-7360
-854
-97
query I rowsort
SELECT - + col0 + 35 AS col0 FROM tab0 AS cor0
----
-54
0
11
query I rowsort
SELECT - tab1.col0 * - col1 + - col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT + col1 * - 24 + - col2 AS col0 FROM tab0 AS cor0
----
-2097
-2266
-2329
onlyif mysql # use DIV operator for integer division
query I rowsort label-5204
SELECT col1 DIV 44 + col0 DIV + col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-5204
SELECT col1 / 44 + col0 / + col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT DISTINCT + 15 AS col1 FROM tab2
----
15
query I rowsort
SELECT DISTINCT - 53 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-53
query I rowsort
SELECT DISTINCT + col1 + col1 * + col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT DISTINCT 2 * col0 + col0 * col2 FROM tab2
----
203
2184
3160
query I rowsort
SELECT - col1 * + col0 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT 91 + col1 * col2 FROM tab2 AS cor0
----
1625
737
928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5211
SELECT + CAST( + cor0.col1 AS SIGNED ) + + col0 * - col1 FROM tab1 AS cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort label-5211
SELECT + CAST ( + cor0.col1 AS INTEGER ) + + col0 * - col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + col0 * - ( + col1 * cor0.col1 ) FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5213
SELECT CAST( + ( + col0 ) AS SIGNED ) col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5213
SELECT CAST ( + ( + col0 ) AS INTEGER ) col2 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT - cor0.col1 - col0 DIV 52 AS col0 FROM tab1 AS cor0
----
-11
-14
-26
skipif mysql # not compatible
query I rowsort label-5214
SELECT - cor0.col1 - col0 / 52 AS col0 FROM tab1 AS cor0
----
-11
-14
-26
query I rowsort
SELECT ALL - + col0 * + col2 + - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT + col0 * + col0 + col2 AS col1 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5217
SELECT DISTINCT col0 + col0 DIV 44 FROM tab0 AS cor0
----
24
35
91
skipif mysql # not compatible
query I rowsort label-5217
SELECT DISTINCT col0 + col0 / 44 FROM tab0 AS cor0
----
24
35
91
query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
24
35
89
query I rowsort
SELECT - - cor0.col2 + - col0 * - 38 AS col2 FROM tab2 AS cor0
----
293
2990
3040
query I rowsort
SELECT - cor0.col1 * col1 + col1 * col1 * - ( + ( + col1 ) ) FROM tab2 AS cor0
----
-208860
-30752
-5202
query I rowsort
SELECT + + cor0.col1 * + col1 * 0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( - col1 AS REAL ) * - col0 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col0 * + 57 FROM tab2 AS cor0
----
399
4446
4503
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * cor0.col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 + + ( - col0 ) FROM tab0 AS cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5226
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 * + 17 FROM tab2 AS cor0
----
119
1326
1343
query I rowsort
SELECT + 73 + + 29 * - col1 FROM tab0 AS cor0
----
-2421
-2566
-2740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 * + col2 col1 FROM tab2
----
158
1969
2985
query I rowsort
SELECT DISTINCT + col2 + 81 + ( col0 * ( + col1 ) ) FROM tab1
----
1217
213
778
query I rowsort
SELECT + 29 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - col2 - + tab2.col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col2 - - 58 AS col1 FROM tab0
----
140
59
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * - col0 - col2 col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT + cor0.col1 * - 65 AS col0 FROM tab2 AS cor0
----
-1105
-2015
-3835
query I rowsort
SELECT - 57 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 31 * - col1 col0 FROM tab2 AS cor0
----
-1829
-527
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5239
SELECT DISTINCT - + ( col2 ) * col0 DIV - 64 AS col1 FROM tab2 AS cor0
----
2
31
46
skipif mysql # not compatible
query I rowsort label-5239
SELECT DISTINCT - + ( col2 ) * col0 / - 64 AS col1 FROM tab2 AS cor0
----
2
31
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5240
SELECT - + ( col2 ) + col0 DIV col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-5240
SELECT - + ( col2 ) + col0 / col0 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5241
SELECT CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5241
SELECT CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 4 * col1 FROM tab1 AS cor0
----
104
40
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 * + tab1.col1 col2 FROM tab1
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 51 * tab0.col1 col2 FROM tab0
----
-4386
-4641
-4947
query I rowsort
SELECT 90 * - col2 + 31 AS col2 FROM tab2 AS cor0
----
-2309
-2399
-3389
query I rowsort
SELECT + 0 * + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - 83 * - col0 + cor0.col0 + - col0 * - col2 * 21 AS col1 FROM tab1 AS cor0
----
168000
3654
81984
query I rowsort
SELECT + 24 FROM tab1, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - 10 * + tab1.col1 FROM tab1
----
-100
-130
-260
query I rowsort
SELECT DISTINCT 58 + cor0.col1 FROM tab1, tab0 AS cor0
----
144
149
155
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5251
SELECT DISTINCT ( + col1 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT ( + col1 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 25 * col2 + + col1 FROM tab1 AS cor0
----
1376
1435
2413
query I rowsort
SELECT + - ( col1 ) * ( + col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * + col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 * + col0 * col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT col1 + + col2 + 86 FROM tab1 cor0
----
153
166
195
query I rowsort
SELECT ALL + col1 * - cor0.col1 - + ( 18 * col0 ) FROM tab2 AS cor0
----
-1087
-1711
-4885
onlyif mysql # use DIV operator for integer division
query I rowsort label-5259
SELECT ALL cor0.col0 DIV col0 + - 29 FROM tab0 AS cor0
----
-28
-28
-28
skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL cor0.col0 / col0 + - 29 FROM tab0 AS cor0
----
-28
-28
-28
query I rowsort
SELECT 85 * col0 AS col2 FROM tab0 AS cor0
----
2040
2975
7565
onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT ALL - - col2 DIV + col1 + col1 + + col0 * + col0 * 96 FROM tab1 AS cor0
----
393231
614420
892
skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL - - col2 / + col1 + col1 + + col0 * + col0 * 96 FROM tab1 AS cor0
----
393231
614420
892
query I rowsort
SELECT + 80 * + col2 FROM tab0
----
2640
6560
80
query I rowsort
SELECT DISTINCT 28 + - col2 FROM tab0
----
-5
-54
27
query I rowsort
SELECT DISTINCT col1 + - col0 * col2 FROM tab2
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + col0 * 85 col2 FROM tab2 AS cor0
----
622
6656
6753
query I rowsort
SELECT + 17 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT + col2 + col2 * + col2 AS col0 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT DISTINCT col0 + tab0.col1 - ( - tab0.col1 + col1 * tab0.col1 ) AS col2 FROM tab0
----
-7200
-8010
-9180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5269
SELECT 38 DIV col0 + - col2 FROM tab2 AS cor0
----
-22
-26
-38
skipif mysql # not compatible
query I rowsort label-5269
SELECT 38 / col0 + - col2 FROM tab2 AS cor0
----
-22
-26
-38
query I rowsort
SELECT DISTINCT - + col0 * 55 FROM tab1 cor0
----
-165
-3520
-4400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab2 AS cor0
----
94
query I rowsort
SELECT 13 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab1 cor3
----
243 values hashing to 080cec2ce43a6e2d501ce533b54b909e
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT + col2 + - 69 * col0 AS col2 FROM tab0
----
-1623
-2414
-6059
onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT DISTINCT col0 * + col0 + - col0 DIV 10 + col0 DIV col0 col0 FROM tab1
----
10
4091
6393
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT col0 * + col0 + - col0 / 10 + col0 / col0 col0 FROM tab1
----
10
4091
6393
query I rowsort
SELECT DISTINCT - 40 * + col0 + - col0 FROM tab1
----
-123
-2624
-3280
query I rowsort
SELECT col0 * + 65 AS col1 FROM tab0
----
1560
2275
5785
query I rowsort
SELECT 30 - 78 FROM tab0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT col1 + 58 AS col1 FROM tab1
----
68
71
84
query I rowsort
SELECT ALL + + ( col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - 66 + col1 AS col2 FROM tab0 AS cor0
----
20
25
31
query I rowsort
SELECT ALL + 85 * + col0 AS col0 FROM tab2 AS cor0
----
595
6630
6715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM tab0, tab2 cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT - 92 DIV col1 AS col2 FROM tab2
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-5284
SELECT - 92 / col1 AS col2 FROM tab2
----
-1
-2
-5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + col1 * - 88 col2 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT ALL cor0.col2 * - 81 FROM tab2 cor0
----
-2106
-2187
-3078
query I rowsort
SELECT - 63 * col0 FROM tab1 AS cor0
----
-189
-4032
-5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-5288
SELECT ALL + - 33 DIV + col1 AS col2 FROM tab1 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL + - 33 / + col1 AS col2 FROM tab1 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * ( col0 ) col2 FROM tab0
----
178
48
70
query I rowsort
SELECT 57 * - col1 FROM tab0 AS cor0
----
-4902
-5187
-5529
query I rowsort
SELECT DISTINCT - 97 * col1 AS col0 FROM tab2 AS cor0
----
-1649
-3007
-5723
query I rowsort
SELECT ALL + col0 * + col2 + + cor0.col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT 44 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5294
SELECT DISTINCT 85 DIV - col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5294
SELECT DISTINCT 85 / - col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 * col1 * col1 col2 FROM tab2
----
21097
254113
70153
query I rowsort
SELECT - + col1 + col0 AS col2 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT 4 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT ALL + col0 + ( + 37 ) FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT + col1 * + ( col0 ) + col0 + col2 AS col1 FROM tab1
----
1216
135
761
query I rowsort
SELECT DISTINCT - col0 - - 52 * 27 AS col0 FROM tab2 AS cor0
----
1325
1326
1397
query I rowsort
SELECT + + col1 + + 48 FROM tab1 AS cor0
----
58
61
74
query I rowsort
SELECT - col1 * - 49 AS col0 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT + + col2 + 29 * col2 FROM tab0 AS cor0
----
2460
30
990
query I rowsort
SELECT + col2 + cor0.col2 * col2 * col1 AS col2 FROM tab1 AS cor0
----
119904
32547
75870
query I rowsort
SELECT ALL - + ( + ( + col1 ) ) + + 23 * 90 * - col1 AS col1 FROM tab0 AS cor0
----
-178106
-188461
-200887
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5307
SELECT ALL + CAST( - col2 AS SIGNED ) + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL + CAST ( - col2 AS INTEGER ) + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 21 + cor0.col2 AS col1 FROM tab2 AS cor0
----
47
48
59
query I rowsort
SELECT + + col0 * col2 + - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT col2 + ( col2 + - col0 ) FROM tab2
----
-26
-3
47
query I rowsort
SELECT 49 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
query I rowsort
SELECT - - cor0.col1 * + col2 + + col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT + col2 * 5 - + cor0.col2 FROM tab1 AS cor0
----
216
228
384
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 * - col1 + + 81 col2 FROM tab2 AS cor0
----
-1466
-2740
-5288
query I rowsort
SELECT - - 76 * col2 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT + 18 + col0 + - 3 * + 25 FROM tab0 AS cor0
----
-22
-33
32
query I rowsort
SELECT - col2 + - tab2.col1 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT - 88 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT DISTINCT - col0 * col0 + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT + - cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT ( cor1.col1 ) DIV - 7 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c3fbcc82e475da0f9b0cdbdf102982a8
skipif mysql # not compatible
query I rowsort label-5321
SELECT ( cor1.col1 ) / - 7 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c3fbcc82e475da0f9b0cdbdf102982a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5322
SELECT ALL cor0.col0 + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL cor0.col0 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT col1 + - col2 * - col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + ( tab1.col2 ) - col0 FROM tab1
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5325
SELECT + CAST( - 6 AS SIGNED ) FROM tab2 AS cor0
----
-6
-6
-6
skipif mysql # not compatible
query I rowsort label-5325
SELECT + CAST ( - 6 AS INTEGER ) FROM tab2 AS cor0
----
-6
-6
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5326
SELECT + CAST( - col1 + col2 AS SIGNED ) col0 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5326
SELECT + CAST ( - col1 + col2 AS INTEGER ) col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + col0 * 20 AS col0 FROM tab2 AS cor0
----
140
1560
1580
query I rowsort
SELECT + - col1 + ( col1 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 FROM tab0 cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col1 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT ALL 0 + col0 + 21 * 53 FROM tab2 AS cor0
----
1120
1191
1192
query I rowsort
SELECT + - ( - col2 ) + + 41 + + col1 FROM tab2 cor0
----
126
96
99
query I rowsort
SELECT + ( - col1 ) + 35 * - 28 AS col1 FROM tab0 AS cor0
----
-1066
-1071
-1077
query I rowsort
SELECT - col0 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + - col1 + - col1 col0 FROM tab2 cor0
----
-26
30
58
query I rowsort
SELECT + col2 * col0 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT + 26 FROM tab2, tab1 AS cor0
----
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT + cor0.col0 * + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5338
SELECT + cor0.col0 * + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * - cor0.col1 * + col2 + + 74 AS col0 FROM tab2 AS cor0
----
-119578
-50960
-5785
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5340
SELECT 32 * + cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5340
SELECT 32 * + cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - col2 ) * + 10 + + col1 FROM tab0
----
-244
-729
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5342
SELECT DISTINCT + col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT + col0 / + col1 AS col1 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT DISTINCT + - col1 * 28 AS col2 FROM tab1 AS cor0
----
-280
-364
-728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5344
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + col2 col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + col2 col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5345
SELECT DISTINCT col1 + + col0 * col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT col1 + + col0 * col0 / - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - - col2 * col0 * ( col2 + col2 ) AS col2 FROM tab1 cor0
----
1474560
17496
415872
onlyif mysql # use DIV operator for integer division
query I rowsort label-5347
SELECT + - cor0.col0 DIV + CAST( col1 AS SIGNED ) + - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-1448
-677
-729
skipif mysql # not compatible
query I rowsort label-5347
SELECT + - cor0.col0 / + CAST ( col1 AS INTEGER ) + - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-1448
-677
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5348
SELECT ALL col2 + - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 39 + - tab0.col0 FROM tab0
----
-50
15
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 87 + + tab1.col0 col0 FROM tab1
----
-23
-7
-84
query I rowsort
SELECT col0 * col0 + 11 AS col0 FROM tab1
----
20
4107
6411
onlyif mysql # use DIV operator for integer division
query I rowsort label-5352
SELECT + 14 - col1 * 19 DIV - 24 AS col0 FROM tab2
----
27
38
60
skipif mysql # not compatible
query I rowsort label-5352
SELECT + 14 - col1 * 19 / - 24 AS col0 FROM tab2
----
27
38
60
query I rowsort
SELECT - col2 - - 78 * col0 FROM tab0 AS cor0
----
1839
2729
6860
query I rowsort
SELECT DISTINCT + - 5 * + ( + col2 ) FROM tab1 AS cor0
----
-270
-285
-480
query I rowsort
SELECT ALL col2 * 2 AS col0 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 + + cor0.col1 * - cor0.col0 + 75 col1 FROM tab2 cor0
----
-1270
-144
-4529
query I rowsort
SELECT ALL - 89 * 88 AS col1 FROM tab0 AS cor0
----
-7832
-7832
-7832
query I rowsort
SELECT DISTINCT - 87 * col1 FROM tab0 cor0
----
-7482
-7917
-8439
query I rowsort
SELECT ( + 18 ) * - col2 - cor0.col1 AS col0 FROM tab0 AS cor0
----
-115
-1567
-680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 * + ( + cor0.col2 ) + 79 * cor0.col0 + + col2 col2 FROM tab1 AS cor0
----
2289
7222
9968
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5362
SELECT DISTINCT + + col1 * ( - cor0.col0 ) - 57 DIV col0 FROM tab1 AS cor0
----
-1040
-640
-97
skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + + col1 * ( - cor0.col0 ) - 57 / col0 FROM tab1 AS cor0
----
-1040
-640
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 - col1 col0 FROM tab1 AS cor0
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 37 col0 FROM tab2 cor0
----
-41
-42
30
query I rowsort
SELECT + col0 * col1 * - ( col2 ) FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT 59 * col0 AS col0 FROM tab1
----
177
3776
4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT DISTINCT 64 + col0 * col1 DIV + col1 AS col2 FROM tab2
----
142
143
71
skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT 64 + col0 * col1 / + col1 AS col2 FROM tab2
----
142
143
71
query I rowsort
SELECT - 76 * col2 * col0 AS col2 FROM tab0
----
-2660
-554648
-60192
query I rowsort
SELECT DISTINCT col2 - - 75 FROM tab0
----
108
157
76
query I rowsort
SELECT 84 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
20
4
81
query I rowsort
SELECT 51 + col0 FROM tab1 AS cor0
----
115
131
54
query I rowsort
SELECT ALL + ( col0 ) * + col2 - - col0 * ( col0 ) FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT 50 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5374
SELECT + col1 * - CAST( - ( - col2 ) AS SIGNED ) FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-5374
SELECT + col1 * - CAST ( - ( - col2 ) AS INTEGER ) FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + tab1.col2 + + col0 * col0 * 84 col1 FROM tab1
----
344111
537683
784
query I rowsort
SELECT + col2 * col0 + + tab2.col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT - col1 * ( - ( col0 ) ) + + ( - col0 ) FROM tab1
----
576
75
960
query I rowsort
SELECT + col2 * ( 0 ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 + col2 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - - col1 + - 84 * - cor0.col1 FROM tab0 AS cor0
----
7310
7735
8245
query I rowsort
SELECT - - 8 * + col0 FROM tab2 cor0
----
56
624
632
query I rowsort
SELECT DISTINCT - 60 * - col0 FROM tab1 AS cor0
----
180
3840
4800
query I rowsort
SELECT + col0 + 40 * + col0 FROM tab0 AS cor0
----
1435
3649
984
query I rowsort
SELECT ( 51 ) * col1 FROM tab2 cor0
----
1581
3009
867
onlyif mysql # use DIV operator for integer division
query I rowsort label-5385
SELECT + col2 * 76 + - col0 DIV + 19 + + col0 AS col2 FROM tab0 AS cor0
----
110
2531
6317
skipif mysql # not compatible
query I rowsort label-5385
SELECT + col2 * 76 + - col0 / + 19 + + col0 AS col2 FROM tab0 AS cor0
----
110
2531
6317
query I rowsort
SELECT DISTINCT 35 + 71 * col1 FROM tab0 AS cor0
----
6141
6496
6922
query I rowsort
SELECT ALL col1 + 28 AS col2 FROM tab2 AS cor0
----
45
59
87
query I rowsort
SELECT - col0 * - col0 * + col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT + col0 * + 78 + col2 FROM tab1 AS cor0
----
288
5049
6336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5390
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT - col2 * + ( col2 ) + col2 AS col1 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT - col2 + 71 AS col0 FROM tab1 AS cor0
----
-25
14
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5393
SELECT CAST( cor0.col0 AS SIGNED ) + col1 col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5393
SELECT CAST ( cor0.col0 AS INTEGER ) + col1 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - cor0.col1 * 2 + col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT col2 * cor0.col2 * ( ( col0 ) ) + col1 * col1 FROM tab2 AS cor0
----
114365
56209
6064
query I rowsort
SELECT - + 65 * + col1 AS col2 FROM tab1 AS cor0
----
-1690
-650
-845
query I rowsort
SELECT - col0 * + col1 - - ( + 3 ) FROM tab2 AS cor0
----
-1340
-214
-4599
query I rowsort
SELECT ALL 88 + - col1 FROM tab1 AS cor0
----
62
75
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + 19 + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
-30
-6065
-6222
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5401
SELECT ALL + - cor0.col0 + + col0 * CAST( col0 AS SIGNED ) col0 FROM tab1 AS cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + - cor0.col0 + + col0 * CAST ( col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL col2 + + col2 + cor0.col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT + - col0 + col1 - - col0 * col0 * col1 AS col2 FROM tab2 AS cor0
----
106035
1543
358937
query I rowsort
SELECT ALL + 73 AS col1 FROM tab2 cor0
----
73
73
73
query I rowsort
SELECT ALL + 85 + col2 FROM tab2 AS cor0
----
111
112
123
query I rowsort
SELECT ALL col0 * col1 * - col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT 56 + + cor0.col1 + + 47 FROM tab0 AS cor0
----
189
194
200
query I rowsort
SELECT DISTINCT + 91 AS col0 FROM tab0
----
91
query I rowsort
SELECT ALL - col1 * col0 + 45 AS col1 FROM tab1 AS cor0
----
-33
-595
-995
query I rowsort
SELECT DISTINCT - - col0 * - col0 + + 88 * - col2 FROM tab1 AS cor0
----
-14848
-4761
-9112
query I rowsort
SELECT DISTINCT ( col0 ) - col2 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT ALL col1 + - ( + cor0.col2 ) * col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + col0 + ( col2 + col0 ) AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT + col1 * + col0 + - col1 * col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT - col1 + + col2 * 27 FROM tab1 cor0
----
1432
1529
2579
query I rowsort
SELECT - - col2 * col0 - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-2574
-28
1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-5417
SELECT + col1 DIV - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-5417
SELECT + col1 / - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-132
-26
-90
query I rowsort
SELECT col1 + - col1 * col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT tab1.col1 + col2 AS col0 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT 2 DIV cor0.col0 + + 29 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
skipif mysql # not compatible
query I rowsort label-5420
SELECT 2 / cor0.col0 + + 29 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT ALL + col0 + + 65 * 71 AS col0 FROM tab2
----
4622
4693
4694
query I rowsort
SELECT + col2 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + + col1 * + col0 + col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - + col0 * ( col0 ) + - col0 AS col2 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL col0 * col2 * + col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT - 36 FROM tab0, tab0 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT - 68 + - col1 FROM tab2
----
-127
-85
-99
query I rowsort
SELECT - - cor0.col2 * cor0.col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT + ( 95 ) FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT DISTINCT col2 * col0 * - col1 FROM tab0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + col1 * - cor0.col1 col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + - col2 + - col0 * col2 AS col1 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL + + ( col1 ) + - col0 * col2 AS col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - col1 * col1 * - col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 WHERE ( - col1 * - col1 ) BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5436
SELECT ALL col0 - col2 DIV - tab1.col0 AS col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL col0 - col2 / - tab1.col0 AS col0 FROM tab1
----
21
64
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT + col1 DIV - cor0.col2 + ( - ( col0 ) + ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-5437
SELECT + col1 / - cor0.col2 + ( - ( col0 ) + ( col2 ) ) AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT - 78 * col0 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT - 97 * col0 AS col1 FROM tab0 AS cor0
----
-2328
-3395
-8633
query I rowsort
SELECT - col2 * - col1 + col1 AS col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT DISTINCT col1 + col0 + col1 AS col0 FROM tab0
----
196
229
271
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> ( + col2 )
----
query I rowsort
SELECT ALL + tab2.col1 * col2 * + tab2.col2 FROM tab2
----
22599
24548
39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT DISTINCT tab0.col0 - - col2 DIV col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5444
SELECT DISTINCT tab0.col0 - - col2 / col2 FROM tab0
----
25
36
90
query I rowsort
SELECT + col2 * col2 - - col0 FROM tab2
----
1523
736
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab0
----
25
query I rowsort
SELECT col1 * + col2 + - col1 FROM tab0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-5449
SELECT + col1 + - col2 DIV 74 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5449
SELECT + col1 + - col2 / 74 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT 81 * + col2 FROM tab1
----
4374
4617
7776
query I rowsort
SELECT + + col2 + col1 * ( + 11 ) * - col1 AS col2 FROM tab2 cor0
----
-10544
-3141
-38265
query I rowsort
SELECT col1 * + col1 + - col1 * + col0 * col1 AS col0 FROM tab0
----
-170108
-319906
-728728
query I rowsort
SELECT DISTINCT col2 + tab0.col0 * - col0 AS col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT col1 * - cor0.col1 + + col1 - + col0 AS col2 FROM tab0 AS cor0
----
-7334
-8279
-9347
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col0 col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT + col1 * - col0 * cor0.col1 + + col0 * + cor0.col0 - cor0.col2 FROM tab0 AS cor0
----
-176961
-328091
-729170
query I rowsort
SELECT ALL col0 * col1 * - col0 + - tab2.col1 FROM tab2
----
-106114
-1550
-359015
query I rowsort
SELECT + col0 * + col1 - col1 AS col2 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - col1 + col0 * col1 * - col1 FROM tab1 AS cor0
----
-13533
-2054
-6410
query I rowsort
SELECT + col0 * col2 + + col0 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + tab2.col2 + col0 IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT + col2 + col1 DIV tab1.col2 - + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5462
SELECT + col2 + col1 / tab1.col2 - + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col1 * col0 * tab2.col2 AS col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL tab1.col0 * + tab1.col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT col0 - - col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL col2 * tab0.col1 FROM tab0 WHERE NOT + col0 + col1 * col1 NOT IN ( + tab0.col0 )
----
query I rowsort
SELECT ALL col2 + - tab0.col0 + tab0.col1 FROM tab0
----
63
84
95
query I rowsort
SELECT ALL + col0 * col1 * col0 AS col0 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col1 FROM tab1 WHERE NOT - col1 / + col0 + + col1 * col2 NOT IN ( + col0 + - col1 + + col1 * col1 )
----
query I rowsort
SELECT - col0 * col1 * tab0.col0 AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - col0 + tab2.col1 * - col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT col0 * - col0 FROM tab2 WHERE NOT ( NULL ) <> ( col0 )
----
query I rowsort
SELECT col1 / col1 AS col2 FROM tab0 WHERE NOT ( - col1 + - col0 * - col0 ) NOT BETWEEN ( NULL ) AND col0 - - col2
----
query I rowsort
SELECT + col0 + col2 FROM tab0 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT col2 * + col1 + - col1 * col2 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + col2 * - col1 col2 FROM tab2
----
-620
3068
697
query I rowsort
SELECT col1 * tab0.col2 FROM tab0 WHERE NOT NULL IN ( col2 )
----
query I rowsort
SELECT col0 * + col2 + + col2 FROM tab2
----
2054
216
3040
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( NULL )
----
query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5481
SELECT CAST( NULL AS SIGNED ) * col0 + + col0 * 47 col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5481
SELECT CAST ( NULL AS INTEGER ) * col0 + + col0 * 47 col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 91 - col0 FROM tab2 AS cor0
----
12
13
84
query I rowsort
SELECT + 41 * 45 FROM tab1
----
1845
1845
1845
onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT - col2 + 9 DIV + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5484
SELECT - col2 + 9 / + col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + ( col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col2 * col0 - - col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5487
SELECT DISTINCT + + CAST( + col1 AS SIGNED ) * col0 - ( - col0 + col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-5487
SELECT DISTINCT + + CAST ( + col1 AS INTEGER ) * col0 - ( - col0 + col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - - ( cor0.col1 ) * col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor0.col0 * - col2 - - col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + 44 - cor0.col2 FROM tab1 AS cor0
----
-10
-13
-52
query I rowsort
SELECT DISTINCT 50 + - col2 - - col2 AS col2 FROM tab0 AS cor0
----
50
query I rowsort
SELECT DISTINCT - ( + col1 ) + ( + col1 ) * col2 * + 61 FROM tab2 AS cor0
----
39389
51026
93515
query I rowsort
SELECT ALL - - col0 * + col0 * + 72 + + col1 * col0 FROM tab2 AS cor0
----
3745
442650
450695
query I rowsort
SELECT ALL - col0 + col1 + + 61 FROM tab1 cor0
----
-6
7
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5495
SELECT + 53 + col0 DIV 25 AS col2 FROM tab1 AS cor0
----
53
55
56
skipif mysql # not compatible
query I rowsort label-5495
SELECT + 53 + col0 / 25 AS col2 FROM tab1 AS cor0
----
53
55
56
query I rowsort
SELECT DISTINCT - - cor0.col1 * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col2 * + col1 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - ( - col1 * col2 ) + col1 + + col0 AS col1 FROM tab1
----
1341
1433
644
query I rowsort
SELECT DISTINCT col0 + + col2 - - col1 AS col1 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL - 12 AS col1 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL 80 + + col1 * ( + col1 ) FROM tab2 AS cor0
----
1041
3561
369
query I rowsort
SELECT 55 + col0 * col1 AS col2 FROM tab1
----
1095
133
695
query I rowsort
SELECT + col2 * 16 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1482
2268
2784
onlyif mysql # use DIV operator for integer division
query I rowsort label-5504
SELECT ALL col1 - - 62 DIV col2 AS col2 FROM tab1 AS cor0
----
11
13
27
skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL col1 - - 62 / col2 AS col2 FROM tab1 AS cor0
----
11
13
27
query I rowsort
SELECT DISTINCT + - cor0.col0 + ( - col0 ) * + col0 AS col2 FROM tab0 cor0
----
-1260
-600
-8010
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT cor0.col0 * CAST ( col2 AS REAL ) + - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - - col1 * col2 * 88 AS col2 FROM tab2 AS cor0
----
134992
56848
73656
query I rowsort
SELECT ALL col0 * + 16 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT - - col0 * cor0.col1 * col2 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT - col0 + + 25 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2174
-2364
-2460
query I rowsort
SELECT 24 FROM tab0, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL - 18 + + col0 AS col2 FROM tab1 AS cor0
----
-15
46
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 * + 16 + + col0 col0 FROM tab1 AS cor0
----
1139
1200
1216
query I rowsort
SELECT ALL 2 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT col1 + 66 * + col1 FROM tab0
----
5762
6097
6499
query I rowsort
SELECT col0 - - 42 FROM tab1
----
106
122
45
query I rowsort
SELECT + col1 + 25 - + col0 AS col1 FROM tab1
----
-29
-42
48
query I rowsort
SELECT ALL - cor0.col0 - tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4e9085bbd32382601228dfccc8b349ef
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT ( col1 ) + - col2 + - col0 AS col1 FROM tab1
----
-111
-163
-31
query I rowsort
SELECT ALL col0 - - col0 * col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL - tab2.col0 * 78 + col2 - tab2.col2 * - col1 AS col2 FROM tab2
----
-4524
-5478
318
query I rowsort
SELECT DISTINCT - ( + col0 * col2 ) + - col0 AS col2 FROM tab2
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT - col1 DIV + ( tab2.col0 ) FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-5524
SELECT - col1 / + ( tab2.col0 ) FROM tab2
----
-4
0
0
query I rowsort
SELECT col0 + + 38 * col1 + - col0 FROM tab2 AS cor0
----
1178
2242
646
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 + col0 * - col1 * + col0 col2 FROM tab2
----
-106057
-1479
-358916
query I rowsort
SELECT ALL + cor0.col1 * cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
query I rowsort
SELECT ALL - 23 + col2 * - col1 FROM tab0
----
-120
-2861
-7485
query I rowsort
SELECT - + tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL - cor0.col1 * col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - cor0.col0 * + col0 + col1 + + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5533
SELECT col0 DIV - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-5533
SELECT col0 / - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT DISTINCT 2 * col0 * + col1 AS col2 FROM tab1
----
1280
156
2080
query I rowsort
SELECT ALL - + 90 * + col1 * - col2 + col0 * col2 FROM tab0 AS cor0
----
256212
678878
8765
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 - col2 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT 67 + col2 AS col1 FROM tab0 cor0
----
100
149
68
query I rowsort
SELECT - col2 * + col1 + - col0 * - col2 * col1 FROM tab0 AS cor0
----
3298
65274
656656
query I rowsort
SELECT + + col2 * cor0.col2 * cor0.col1 + col1 + + col2 FROM tab2 cor0
----
22657
24603
39969
query I rowsort
SELECT - col2 * + col1 + + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + cor0.col0 * + col1 + - cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - - col2 + col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5543
SELECT - + col1 + col2 DIV + col2 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-5543
SELECT - + col1 + col2 / + col2 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT ALL col0 + cor0.col0 * - col2 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT col1 * + col0 + - cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col0 * - ( + col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + + col0 * + col0 * - 41 FROM tab1 AS cor0
----
-167936
-262400
-369
query I rowsort
SELECT ALL - col0 + + 68 - cor0.col0 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-128
-2038
-3013
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5549
SELECT DISTINCT + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5549
SELECT DISTINCT + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + col2 + - 90 FROM tab2 AS cor0
----
-52
-63
-64
query I rowsort
SELECT DISTINCT + cor0.col0 + + ( + col1 ) * col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 3 FROM tab2, tab2 AS cor0
----
3
query I rowsort
SELECT ALL 81 * + col1 FROM tab2 AS cor0
----
1377
2511
4779
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to d6a6e32c6adcc8525ed3eb7827781237
query I rowsort
SELECT ALL - col0 + cor0.col0 * + col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT DISTINCT col1 + col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 * - col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT - - col0 * - cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col1 * col1 * + col2 AS col0 FROM tab2 AS cor0 WHERE col2 <= NULL
----
query I rowsort
SELECT ALL col2 * - col2 + col1 FROM tab0 WHERE NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - tab1.col0 col1 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT * FROM tab2 WHERE ( col2 / + col1 ) IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col1 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT col0 DIV - col1 + + col2 * + tab2.col1 FROM tab2
----
1533
642
837
skipif mysql # not compatible
query I rowsort label-5565
SELECT col0 / - col1 + + col2 * + tab2.col1 FROM tab2
----
1533
642
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5566
SELECT ALL col0 + - col0 DIV col2 AS col1 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL col0 + - col0 / col2 AS col1 FROM tab1 AS cor0
----
3
63
80
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col2 + col0 AS col2 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT - + col2 + - col0 AS col0 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT - + col2 + ( 65 ) FROM tab1 cor0
----
-31
11
8
query I rowsort
SELECT - cor0.col2 * - 21 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT + col2 - - 96 FROM tab2 cor0
----
122
123
134
query I rowsort
SELECT - - col1 * - 76 * - col0 + col1 FROM tab2 AS cor0
----
102085
16523
349811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + cor0.col2 * cor0.col0 col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - col2 - + col2 * + col0 * col2 FROM tab1 AS cor0
----
-207993
-737376
-8802
query I rowsort
SELECT - col1 + 35 AS col0 FROM tab0 AS cor0
----
-51
-56
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + + col0 col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT col0 + + 25 FROM tab0 AS cor0
----
114
49
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5578
SELECT col1 DIV col0 - + col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif mysql # not compatible
query I rowsort label-5578
SELECT col1 / col0 - + col1 AS col1 FROM tab2 AS cor0
----
-17
-27
-59
query I rowsort
SELECT ALL - - col1 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT + col0 * + CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-5580
SELECT + col0 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - + col0 col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col0 - + col2 * col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - col2 * - col1 + + ( - col1 * - col2 ) AS col1 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT ALL + 87 * cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 94d3f50bda14108158af1067c622f947
query I rowsort
SELECT + 49 * + 33 * tab1.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to b37a6dfc4b827bd5a2e0dfe352c09424
query I rowsort
SELECT 57 * 10 FROM tab2 AS cor0
----
570
570
570
query I rowsort
SELECT DISTINCT + + col0 * - 41 FROM tab2 AS cor0
----
-287
-3198
-3239
onlyif mysql # use DIV operator for integer division
query I rowsort label-5588
SELECT + + col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5588
SELECT + + col2 / + col2 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col2 + ( col2 ) FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( 43 ) * col2 + + tab0.col1 * 76 col0 FROM tab0
----
10531
7450
7979
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5591
SELECT + col0 * - CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-5591
SELECT + col0 * - CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + tab0.col0 * + 78 FROM tab0
----
1872
2730
6942
query I rowsort
SELECT ALL + + col1 + + col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5594
SELECT ALL - col1 + col1 * + ( + 6 ) - + col2 * + CAST( - 9 * col1 AS SIGNED ) FROM tab1 AS cor0
----
11297
12766
5180
skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL - col1 + col1 * + ( + 6 ) - + col2 * + CAST ( - 9 * col1 AS INTEGER ) FROM tab1 AS cor0
----
11297
12766
5180
query I rowsort
SELECT + 21 + + tab0.col1 FROM tab0
----
107
112
118
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col0 * + CAST ( - col1 AS REAL ) - - col1 AS col2 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT + - 25 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT tab1.col2 - - ( + 54 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f4f955d4ded7cdde1a8c9cd78ded9361
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * ( + ( + col1 ) + 2 ) * col0 col1 FROM tab0 AS cor0
----
121275
50688
736653
query I rowsort
SELECT DISTINCT tab2.col2 + + col1 * col1 * + col1 FROM tab2
----
205405
29818
4951
query I rowsort
SELECT - col1 * + 92 FROM tab1 AS cor0
----
-1196
-2392
-920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * 11 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT + + col2 * 68 AS col0 FROM tab2 AS cor0
----
1768
1836
2584
onlyif mysql # use DIV operator for integer division
query I rowsort label-5604
SELECT ALL - - cor0.col0 DIV col1 - ( - col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3642
-7674
skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL - - cor0.col0 / col1 - ( - col2 ) * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3642
-7674
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab1 cor2
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12
query I rowsort
SELECT - cor0.col0 * col1 * 3 AS col1 FROM tab1 AS cor0
----
-1920
-234
-3120
query I rowsort
SELECT ALL + - col2 * + 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 65 AS col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT + ( 59 + - col0 ) * 82 * - ( col0 ) AS col1 FROM tab0
----
-68880
-68880
218940
query I rowsort
SELECT - 20 - col0 AS col0 FROM tab2
----
-27
-98
-99
query I rowsort
SELECT + ( - col2 ) - + col1 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5613
SELECT DISTINCT 75 * col2 DIV col0 AS col2 FROM tab1
----
1350
66
90
skipif mysql # not compatible
query I rowsort label-5613
SELECT DISTINCT 75 * col2 / col0 AS col2 FROM tab1
----
1350
66
90
query I rowsort
SELECT ALL col0 + col0 * - col2 * + col2 AS col0 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT + ( col0 ) + col2 * - 59 AS col1 FROM tab1
----
-3183
-3299
-5584
query I rowsort
SELECT DISTINCT col2 * + tab1.col0 * tab1.col0 + tab1.col2 + 35 * tab1.col1 FROM tab1
----
1450
233879
614951
query I rowsort
SELECT DISTINCT - - col0 * cor0.col1 + cor0.col1 AS col1 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - - col0 + col1 * col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT ALL + + col0 * col2 DIV col1 FROM tab0 AS cor0
----
0
80
9
skipif mysql # not compatible
query I rowsort label-5619
SELECT ALL + + col0 * col2 / col1 FROM tab0 AS cor0
----
0
80
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col0 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5621
SELECT ALL + - ( col2 ) + + col1 DIV 41 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL + - ( col2 ) + + col1 / 41 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ( col1 ) * + 20 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-13520
-2000
-3380
query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab0 AS cor0
----
-21
query I rowsort
SELECT - + 20 AS col1 FROM tab1 cor0
----
-20
-20
-20
query I rowsort
SELECT ALL 90 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - col2 - + col2 AS col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + - 3 * - col0 AS col1 FROM tab0 cor0
----
105
267
72
query I rowsort
SELECT ALL col2 * - col1 + ( + 51 ) AS col2 FROM tab2 AS cor0
----
-1483
-595
-786
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5629
SELECT ALL + col2 + col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + col2 + col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * - col0 + - col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + 2 + + col1 FROM tab1 cor0
----
12
15
28
query I rowsort
SELECT DISTINCT - - ( 14 ) + col1 AS col2 FROM tab1 AS cor0
----
24
27
40
query I rowsort
SELECT ALL + + 63 * 52 + col0 + + 24 FROM tab1 AS cor0
----
3303
3364
3380
query I rowsort
SELECT - 33 * 69 AS col1 FROM tab1 AS cor0
----
-2277
-2277
-2277
query I rowsort
SELECT ALL 43 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT + col0 * col2 * 34 + + cor0.col2 - col2 AS col1 FROM tab0 AS cor0
----
1190
248132
26928
query I rowsort
SELECT + cor0.col2 * - col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + ( - tab1.col0 ) * + col1 AS col0 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5639
SELECT DISTINCT CAST( - col2 AS SIGNED ) DIV col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5639
SELECT DISTINCT CAST ( - col2 AS INTEGER ) / col2 FROM tab0
----
-1
query I rowsort
SELECT DISTINCT + + ( col2 ) * col0 * col2 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5641
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-5641
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 18 col2 FROM tab0
----
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + ( - col1 ) + col2 col1 FROM tab1
----
-50
-593
-957
query I rowsort
SELECT DISTINCT - 49 + + col2 * - 77 FROM tab0
----
-126
-2590
-6363
query I rowsort
SELECT - col0 * - ( cor0.col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 80 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 6dd5038be71dffa82f5ceba787caab91
query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab2, tab0 cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT col1 + + col0 + 81 * col0 * - col0 FROM tab2
----
-3931
-492667
-505425
query I rowsort
SELECT tab0.col2 + 23 * tab0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 758e6150fe4c66b63a36fddd3f8c71bf
query I rowsort
SELECT DISTINCT - col0 + col0 + - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col1 * + col1 + col2 FROM tab1
----
157
265
730
query I rowsort
SELECT ALL + cor0.col0 * - ( - 30 * + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
19200
2340
31200
query I rowsort
SELECT col1 * + 21 * 28 AS col1 FROM tab2 AS cor0
----
18228
34692
9996
query I rowsort
SELECT DISTINCT + + col0 + + 95 AS col2 FROM tab1 AS cor0
----
159
175
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5655
SELECT DISTINCT + + col2 * CAST( 19 AS SIGNED ) FROM tab1 AS cor0
----
1026
1083
1824
skipif mysql # not compatible
query I rowsort label-5655
SELECT DISTINCT + + col2 * CAST ( 19 AS INTEGER ) FROM tab1 AS cor0
----
1026
1083
1824
query I rowsort
SELECT - col0 * + 2 FROM tab2 AS cor0
----
-14
-156
-158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 col0 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - tab1.col1 * col0 * 73 AS col0 FROM tab1
----
-46720
-5694
-75920
query I rowsort
SELECT col1 + - 37 FROM tab2
----
-20
-6
22
query I rowsort
SELECT + + 16 AS col1 FROM tab1 cor0
----
16
16
16
query I rowsort
SELECT - 40 * cor0.col2 AS col2 FROM tab0 cor0
----
-1320
-3280
-40
query I rowsort
SELECT 21 + col2 AS col0 FROM tab2 AS cor0
----
47
48
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5663
SELECT + + col0 + - col1 DIV cor0.col0 AS col1 FROM tab0 cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-5663
SELECT + + col0 + - col1 / cor0.col0 AS col1 FROM tab0 cor0
----
21
33
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-5664
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-5664
SELECT DISTINCT + col0 / col1 col0 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT - - 97 * + col2 + - col0 FROM tab0 AS cor0
----
3177
62
7865
query I rowsort
SELECT - 67 * col0 + - 35 AS col2 FROM tab0 AS cor0
----
-1643
-2380
-5998
query I rowsort
SELECT - col0 * - cor0.col0 + ( col1 ) FROM tab2 cor0
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - - col2 col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 AS col1 FROM tab2 cor0
----
-42
-6006
-6162
query I rowsort
SELECT + - 94 * cor0.col2 - - col2 FROM tab2 AS cor0
----
-2418
-2511
-3534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5671
SELECT + col1 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5671
SELECT + col1 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * - 30 AS col2 FROM tab1 AS cor0
----
300
390
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-5673
SELECT - cor0.col0 DIV - ( 17 * col2 ) AS col2 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5673
SELECT - cor0.col0 / - ( 17 * col2 ) AS col2 FROM tab0 AS cor0
----
0
0
2
query I rowsort
SELECT - - cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + tab2.col2 + col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT ( col0 * col1 ) AS col0 FROM tab2
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 22 ) col1 FROM tab0 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - + cor0.col1 * + 88 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-249744
-656656
-8536
query I rowsort
SELECT ALL - - 85 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-7224
-7644
-8148
onlyif mysql # use DIV operator for integer division
query I rowsort label-5681
SELECT 69 DIV 36 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5681
SELECT 69 / 36 AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT + + ( - col0 ) + col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5683
SELECT - - col0 / col2 + - CAST( NULL AS SIGNED ) * ( col2 ) * col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5683
SELECT - - col0 / col2 + - CAST ( NULL AS INTEGER ) * ( col2 ) * col0 - cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 5 * + cor0.col0 col1 FROM tab1 AS cor0
----
-15
-320
-400
onlyif mysql # use DIV operator for integer division
query I rowsort label-5685
SELECT + cor0.col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5685
SELECT + cor0.col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT + col2 + + ( + ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT - - col1 * + ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - - col0 * - 16 FROM tab1 AS cor0
----
-1024
-1280
-48
query I rowsort
SELECT col1 + + 79 * col2 AS col0 FROM tab2
----
2113
2164
3019
query I rowsort
SELECT DISTINCT + 83 FROM tab2, tab2 AS cor0, tab1 cor1
----
83
query I rowsort
SELECT ALL - + col1 * + 55 - + col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1120
-1963
-2834
query I rowsort
SELECT ALL - col1 * - 6 + col0 + - ( col1 * + col2 + + cor0.col1 * + col1 ) AS col1 FROM tab0 AS cor0
----
-15108
-8889
-9694
query I rowsort
SELECT DISTINCT cor0.col2 - cor0.col2 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL 66 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
81 values hashing to dc112f70fecc29a6e605a39541192f43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5697
SELECT DISTINCT + ( col2 ) DIV - col2 + - col1 + cor0.col0 FROM tab1 AS cor0
----
-24
53
66
skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT + ( col2 ) / - col2 + - col1 + cor0.col0 FROM tab1 AS cor0
----
-24
53
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ( + col2 ) + col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 31 - 47 AS col2 FROM tab2
----
-16
-16
-16
query I rowsort
SELECT - ( + col1 ) * + col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5703
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL cor2.col0 + - cor0.col1 AS col1 FROM tab0, tab1 AS cor0, tab0 cor1, tab0 AS cor2
----
81 values hashing to 953a67dded818f62d39dfdd4579d2525
query I rowsort
SELECT + 49 AS col0 FROM tab2 cor0
----
49
49
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( + 51 ) * + col2 col1 FROM tab1 AS cor0
----
-2754
-2907
-4896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5707
SELECT CAST( NULL AS SIGNED ) + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5707
SELECT CAST ( NULL AS INTEGER ) + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( + col0 * - col0 ) FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL ( + 76 ) * col0 AS col1 FROM tab0
----
1824
2660
6764
onlyif mysql # use DIV operator for integer division
query I rowsort label-5710
SELECT ALL 64 DIV + col1 - tab0.col0 AS col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL 64 / + col1 - tab0.col0 AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL + col2 + col1 + col0 * + ( + col0 ) FROM tab1
----
4163
6509
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) + tab1.col0 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT 98 * col0 + + col1 FROM tab2
----
717
7703
7759
query I rowsort
SELECT + - cor0.col1 + - col2 * - col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT 11 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT + 76 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT DISTINCT tab0.col2 + - col2 AS col2 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5718
SELECT DISTINCT + tab1.col0 * - col0 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5718
SELECT DISTINCT + tab1.col0 * - col0 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT - col0 DIV col0 + + col2 col1 FROM tab2
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5719
SELECT - col0 / col0 + + col2 col1 FROM tab2
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5720
SELECT ALL 91 * col0 + - col2 + - tab0.col2 DIV - tab0.col2 FROM tab0
----
2152
3185
8018
skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL 91 * col0 + - col2 + - tab0.col2 / - tab0.col2 FROM tab0
----
2152
3185
8018
query I rowsort
SELECT - col1 + col0 * col0 FROM tab1 cor0
----
-17
4086
6387
query I rowsort
SELECT + col0 * + 68 * + 94 AS col0 FROM tab0 AS cor0
----
153408
223720
568888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 58 * - col0 col1 FROM tab1 cor0
----
-171
-3648
-4560
query I rowsort
SELECT ALL col0 * 17 + - 4 FROM tab1
----
1084
1356
47
query I rowsort
SELECT DISTINCT + - col0 + + cor0.col2 * col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5726
SELECT col1 + + CAST( - 27 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
-14
-17
skipif mysql # not compatible
query I rowsort label-5726
SELECT col1 + + CAST ( - 27 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
-14
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5727
SELECT DISTINCT - col1 + col2 DIV + cor0.col0 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-5727
SELECT DISTINCT - col1 + col2 / + cor0.col0 FROM tab0 AS cor0
----
-85
-91
-97
query I rowsort
SELECT DISTINCT - col0 - + 47 FROM tab2 AS cor0
----
-125
-126
-54
query I rowsort
SELECT DISTINCT + col1 * col2 * 30 - - col2 AS col1 FROM tab0 AS cor0
----
223942
2911
85173
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5730
SELECT ALL col2 * - CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL col2 * - CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col0 * 73 * col0 + + col0 * + col1 + + col0 AS col0 FROM tab0 AS cor0
----
44136
586421
92855
query I rowsort
SELECT - col2 * 2 + col1 * col2 AS col0 FROM tab0 AS cor0
----
2772
7298
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * 21 + 44 col2 FROM tab0 AS cor0
----
1850
1955
2081
query I rowsort
SELECT DISTINCT cor0.col1 + 16 AS col0 FROM tab0 AS cor0
----
102
107
113
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT ALL col1 DIV + 8 AS col1 FROM tab1 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL col1 / + 8 AS col1 FROM tab1 AS cor0
----
1
1
3
query I rowsort
SELECT + col2 * - ( col0 ) + + col1 * col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
32832
4050
92160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 94 * + cor0.col1 col2 FROM tab1 AS cor0
----
117312
131976
53580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + - col1 col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + 11 AS col0 FROM tab1 cor0
----
11
11
11
query I rowsort
SELECT DISTINCT 78 AS col0 FROM tab2 cor0
----
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5741
SELECT ALL - - col1 * - cor0.col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL - - col1 * - cor0.col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 79 * col0 FROM tab2 AS cor0
----
553
6162
6241
query I rowsort
SELECT col2 * - ( + 85 ) FROM tab2 AS cor0
----
-2210
-2295
-3230
query I rowsort
SELECT - col2 + - ( 78 ) * col1 AS col1 FROM tab0 AS cor0
----
-6741
-7180
-7567
query I rowsort
SELECT - - cor0.col1 * - 8 AS col1 FROM tab2 cor0
----
-136
-248
-472
query I rowsort
SELECT - 36 + + tab2.col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to e39b7eab9a7f46175fa7deecb9111e31
query I rowsort
SELECT - + col2 + 19 FROM tab2 AS cor0
----
-19
-7
-8
query I rowsort
SELECT ALL + ( + 97 ) + col2 FROM tab0 AS cor0
----
130
179
98
query I rowsort
SELECT DISTINCT - col2 * - col0 * - col0 + - ( + ( col1 ) ) + col2 FROM tab2 AS cor0
----
-1327
-158217
-237137
onlyif mysql # use DIV operator for integer division
query I rowsort label-5750
SELECT ALL + col0 DIV - 85 - - col2 FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL + col0 / - 85 - - col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 86 + + col1 FROM tab1 AS cor0
----
112
96
99
query I rowsort
SELECT ALL - cor0.col2 * col2 + + col1 * ( - col0 ) * - col0 + + col0 AS col1 FROM tab0 AS cor0
----
118859
48471
714176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 - - col1 col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5754
SELECT CAST( NULL AS SIGNED ) / + ( + col0 ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5754
SELECT CAST ( NULL AS INTEGER ) / + ( + col0 ) + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col0 AS REAL ) + + col0 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5756
SELECT ALL - CAST( col1 AS SIGNED ) * + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL - CAST ( col1 AS INTEGER ) * + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT - ( + col1 ) - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL tab2.col1 - - ( col2 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT + ( + 85 ) AS col2 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT - - cor0.col1 * ( cor0.col1 ) + + col0 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5761
SELECT ALL CAST( NULL AS SIGNED ) * - col1 + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5761
SELECT ALL CAST ( NULL AS INTEGER ) * - col1 + col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + ( - col2 ) + 32 col0 FROM tab2 AS cor0
----
-23
-26
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT + 63 + tab1.col2 DIV 12 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9dc2604ca8f228ca190d17f492b63b15
skipif mysql # not compatible
query I rowsort label-5763
SELECT + 63 + tab1.col2 / 12 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 9dc2604ca8f228ca190d17f492b63b15
query I rowsort
SELECT + col0 + col1 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT 32 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2752
-2912
-3104
query I rowsort
SELECT - 19 + + cor0.col2 FROM tab0 AS cor0
----
-18
14
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-5768
SELECT ALL - col2 * - col2 DIV - tab0.col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5768
SELECT ALL - col2 * - col2 / - tab0.col2 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab2.col1 * col1 col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT + ( + 2 ) + col1 AS col2 FROM tab1
----
12
15
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT 18 DIV - 46 + - cor1.col2 * - ( cor1.col0 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e1120e7b687b32270ef70393236e7341
skipif mysql # not compatible
query I rowsort label-5771
SELECT 18 / - 46 + - cor1.col2 * - ( cor1.col0 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e1120e7b687b32270ef70393236e7341
query I rowsort
SELECT ( - col1 ) + 33 * col2 FROM tab2 AS cor0
----
1237
799
860
query I rowsort
SELECT + col1 * + col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5774
SELECT - 21 * col0 + CAST( - col1 + col1 AS SIGNED ) * + ( 17 ) AS col0 FROM tab0 AS cor0
----
-1869
-504
-735
skipif mysql # not compatible
query I rowsort label-5774
SELECT - 21 * col0 + CAST ( - col1 + col1 AS INTEGER ) * + ( 17 ) AS col0 FROM tab0 AS cor0
----
-1869
-504
-735
query I rowsort
SELECT + 32 + + col0 FROM tab1 cor0
----
112
35
96
query I rowsort
SELECT - col2 + ( + cor0.col0 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col1 * cor0.col2 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT ALL + + col1 DIV 6 AS col1 FROM tab2 cor0
----
2
5
9
skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL + + col1 / 6 AS col1 FROM tab2 cor0
----
2
5
9
query I rowsort
SELECT DISTINCT col0 * - 80 AS col2 FROM tab1 AS cor0
----
-240
-5120
-6400
query I rowsort
SELECT 12 * + col0 - - cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
1080
455
8366
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 2 AS REAL ) FROM tab1, tab0, tab0 cor0
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-5783
SELECT ( + col1 ) + col0 DIV col2 + + 80 * col1 FROM tab1 AS cor0
----
1053
2106
811
skipif mysql # not compatible
query I rowsort label-5783
SELECT ( + col1 ) + col0 / col2 + + 80 * col1 FROM tab1 AS cor0
----
1053
2106
811
query I rowsort
SELECT DISTINCT - tab2.col0 + + tab2.col2 AS col0 FROM tab2
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5785
SELECT - + CAST( NULL AS SIGNED ) * 57 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5785
SELECT - + CAST ( NULL AS INTEGER ) * 57 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 * 94 AS col0 FROM tab2 AS cor0
----
1598
2914
5546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 * - tab2.col1 col1 FROM tab2 WHERE NOT col0 * + col1 * col2 <= col1 - tab2.col2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT + tab0.col1 * + col0 + + col2 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT col2 * + col2 * + col0 + - col1 FROM tab1
----
207926
737267
8722
query I rowsort
SELECT col2 + - tab0.col0 - col1 AS col1 FROM tab0
----
-131
-77
-98
query I rowsort
SELECT col2 + col0 * - col0 + col0 * col1 AS col0 FROM tab0
----
1521
2171
260
query I rowsort
SELECT DISTINCT col1 * - col1 + col0 AS col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT - tab0.col1 + + col2 * + col2 + col2 AS col0 FROM tab0
----
-95
1036
6715
query I rowsort
SELECT + col2 + col1 - col0 FROM tab0
----
63
84
95
query I rowsort
SELECT - col1 + col2 - + tab2.col1 AS col0 FROM tab2 WHERE col2 >= + col1
----
4
query I rowsort
SELECT DISTINCT col0 + - tab2.col1 AS col0 FROM tab2
----
-24
19
62
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) NOT IN ( + col1 * col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 AND + col1 + col0
----
query I rowsort
SELECT col2 - tab0.col0 * - col0 FROM tab0
----
1226
609
8003
query I rowsort
SELECT - tab1.col0 * col2 - col0 AS col2 FROM tab1 WHERE NULL < - col1
----
query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NULL = - tab1.col1
----
query I rowsort
SELECT col1 + + col1 * col0 AS col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT - col1 + col0 + + col0 AS col0 FROM tab0
----
-27
-38
87
query I rowsort
SELECT + col1 + col0 - col1 FROM tab2
----
7
78
79
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 + + col1 * - col2 IN ( + col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + + cor0.col0 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - col1 + col1 AS col1 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT ALL col1 * col1 * - col0 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( - col1 + col1 ) AND NULL
----
query I rowsort
SELECT + col2 * + col2 + + col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0 + col1 * col2 - col1 )
----
query I rowsort
SELECT - col1 * + col2 * + col1 FROM tab1 cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT DISTINCT col2 DIV 94 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5815
SELECT DISTINCT col2 / 94 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - - col0 + + col2 * - col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT ALL + col1 + cor0.col2 * col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 * + col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT ALL + - col0 * 75 + col1 AS col0 FROM tab0 AS cor0
----
-1714
-2528
-6584
query I rowsort
SELECT DISTINCT - col0 * - 64 + col2 FROM tab0 AS cor0
----
1569
2241
5778
query I rowsort
SELECT + cor0.col2 + + col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5822
SELECT + cor0.col2 DIV col1 + + 65 * + col1 FROM tab2 AS cor0
----
1107
2015
3835
skipif mysql # not compatible
query I rowsort label-5822
SELECT + cor0.col2 / col1 + + 65 * + col1 FROM tab2 AS cor0
----
1107
2015
3835
onlyif mysql # use DIV operator for integer division
query I rowsort label-5823
SELECT DISTINCT col2 DIV col0 + 57 + col1 AS col0 FROM tab2 cor0
----
116
74
91
skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT col2 / col0 + 57 + col1 AS col0 FROM tab2 cor0
----
116
74
91
query I rowsort
SELECT DISTINCT col2 * ( 65 ) + + col2 FROM tab0 cor0
----
2178
5412
66
query I rowsort
SELECT ALL + col2 * cor0.col0 - col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT + cor0.col0 + - CAST( - col0 * - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif mysql # not compatible
query I rowsort label-5826
SELECT + cor0.col0 + - CAST ( - col0 * - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT ALL + col2 * 2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + col2 + col0 * col0 * col2 FROM tab1 AS cor0
----
233529
540
614496
query I rowsort
SELECT ALL - col1 * - col2 + col0 + + cor0.col2 * col0 FROM tab0 AS cor0
----
14849
167
3654
query I rowsort
SELECT DISTINCT - col2 * col2 + + 17 FROM tab0 AS cor0
----
-1072
-6707
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col1 FROM tab2 cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( cor0.col0 AS REAL ) * + col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 67 * - col1 FROM tab0 cor0
----
5762
6097
6499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5834
SELECT ALL CAST( + cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL CAST ( + cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col1 * 99 AS col1 FROM tab2 AS cor0
----
1683
3069
5841
query I rowsort
SELECT DISTINCT + - col0 * - col2 * - col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col1 + - ( + col0 * + col1 ) FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-5838
SELECT + col0 * CAST( + col1 AS SIGNED ) DIV - col0 + col1 * - tab0.col0 * tab0.col0 AS col0 FROM tab0
----
-118922
-49622
-720902
skipif mysql # not compatible
query I rowsort label-5838
SELECT + col0 * CAST ( + col1 AS INTEGER ) / - col0 + col1 * - tab0.col0 * tab0.col0 AS col0 FROM tab0
----
-118922
-49622
-720902
query I rowsort
SELECT DISTINCT - col0 + + 72 + 87 FROM tab0
----
124
135
70
query I rowsort
SELECT ALL + + col1 * - col2 + ( cor0.col1 * - col1 ) FROM tab2 cor0
----
-1798
-5015
-935
query I rowsort
SELECT ALL 48 - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1177
-528
-7873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * cor0.col0 col1 FROM tab0 AS cor0
----
-1155
-2937
-792
query I rowsort
SELECT - 51 - col1 FROM tab2 AS cor0
----
-110
-68
-82
query I rowsort
SELECT DISTINCT - 68 + - col0 FROM tab0 AS cor0
----
-103
-157
-92
query I rowsort
SELECT ALL - cor0.col0 * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 + col0 * + tab1.col1 * - col0 - + col0 * - col0 FROM tab1
----
-199
-36854
-76787
query I rowsort
SELECT DISTINCT - col2 + + col1 FROM tab2 WHERE NULL NOT IN ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT DISTINCT + + cor0.col1 DIV - col0 col2 FROM tab1 AS cor0
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5848
SELECT DISTINCT + + cor0.col1 / - col0 col2 FROM tab1 AS cor0
----
-8
0
query I rowsort
SELECT ALL - col0 + tab0.col1 * col1 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT ALL - cor0.col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-5851
SELECT - + col1 + col1 DIV + col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-5851
SELECT - + col1 + col1 / + col1 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5852
SELECT col2 * + col2 + - CAST( NULL AS SIGNED ) + - 32 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5852
SELECT col2 * + col2 + - CAST ( NULL AS INTEGER ) + - 32 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 14 + + col1 * + col1 AS col0 FROM tab0
----
7410
8295
9423
query I rowsort
SELECT ( + tab0.col2 ) + - col1 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5855
SELECT + col0 * tab2.col1 + - col0 - + col2 DIV col1 AS col1 FROM tab2
----
1262
210
4524
skipif mysql # not compatible
query I rowsort label-5855
SELECT + col0 * tab2.col1 + - col0 - + col2 / col1 AS col1 FROM tab2
----
1262
210
4524
query I rowsort
SELECT 83 + + col1 FROM tab2
----
100
114
142
query I rowsort
SELECT - 48 + + col0 FROM tab2 AS cor0
----
-41
30
31
query I rowsort
SELECT - col0 * 3 AS col1 FROM tab2
----
-21
-234
-237
query I rowsort
SELECT DISTINCT + col0 * col2 + 64 AS col2 FROM tab2 AS cor0
----
2092
253
3066
query I rowsort
SELECT ALL cor0.col0 * cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT DISTINCT col0 + + col2 DIV - col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT col0 + + col2 / - col2 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5862
SELECT ALL col0 * 96 DIV 14 FROM tab2
----
48
534
541
skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL col0 * 96 / 14 FROM tab2
----
48
534
541
query I rowsort
SELECT - 86 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
query I rowsort
SELECT ALL + - 79 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-2449
-4661
query I rowsort
SELECT - 21 * col1 FROM tab1 AS cor0
----
-210
-273
-546
query I rowsort
SELECT + ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT 66 * col2 FROM tab2
----
1716
1782
2508
onlyif mysql # use DIV operator for integer division
query I rowsort label-5868
SELECT + col2 DIV + cor0.col0 col0 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5868
SELECT + col2 / + cor0.col0 col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT + col0 + - col0 * 87 FROM tab2
----
-602
-6708
-6794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5870
SELECT DISTINCT - - col2 * col0 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT - - col2 * col0 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + col1 * col1 + - 52 FROM tab1 cor0
----
117
48
624
query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
97
query I rowsort
SELECT + col0 + 2 - + ( - cor0.col0 ) FROM tab1 AS cor0
----
130
162
8
query I rowsort
SELECT col0 + + 77 - col2 FROM tab0 AS cor0
----
111
68
84
query I rowsort
SELECT ALL + col2 * ( cor0.col2 ) FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col2 col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - col2 + cor0.col2 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - col1 * ( col2 ) AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col0 * tab1.col0 + col0 * col1 AS col2 FROM tab1
----
4736
7440
87
query I rowsort
SELECT DISTINCT + 79 + + col2 FROM tab2
----
105
106
117
query I rowsort
SELECT + col0 * - col1 + - col2 * - col0 AS col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT + cor0.col0 + - col0 - + 44 FROM tab0 AS cor0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT col2 + - tab2.col0 - + tab2.col0 * - tab2.col2 AS col1 FROM tab2
----
1976
209
2961
query I rowsort
SELECT - col1 * + col1 * - col2 + - col2 AS col0 FROM tab0 cor0
----
244035
678960
9408
query I rowsort
SELECT ALL tab0.col0 - - col2 AS col1 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5887
SELECT col1 * - col2 + col1 - + col1 DIV col1 AS col2 FROM tab0 cor0
----
-1
-2753
-7372
skipif mysql # not compatible
query I rowsort label-5887
SELECT col1 * - col2 + col1 - + col1 / col1 AS col2 FROM tab0 cor0
----
-1
-2753
-7372
query I rowsort
SELECT ALL - - col1 * col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT col1 + - col2 DIV col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-5890
SELECT col1 + - col2 / col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT + - col0 + col1 * + col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT + col0 * col1 NOT BETWEEN NULL AND col1 AND NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * cor0.col1 + col1 col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT tab2.col1 + ( col2 ) FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5895
SELECT + CAST( - 98 * col2 AS SIGNED ) FROM tab2
----
-2548
-2646
-3724
skipif mysql # not compatible
query I rowsort label-5895
SELECT + CAST ( - 98 * col2 AS INTEGER ) FROM tab2
----
-2548
-2646
-3724
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * - cor0.col0 + + col0 col0 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT DISTINCT ( col0 ) + ( - 86 ) * col0 + - col2 * - 31 AS col2 FROM tab2 AS cor0
----
-5537
-5824
242
query I rowsort
SELECT - col0 * - cor0.col1 + + col1 * - col1 FROM tab2 AS cor0
----
-744
1054
1121
query I rowsort
SELECT DISTINCT col0 * col1 + 29 AS col1 FROM tab2 AS cor0
----
1372
246
4631
query I rowsort
SELECT ALL - + cor0.col1 * - col1 - col2 * - col2 AS col0 FROM tab2 cor0
----
1690
1733
4157
onlyif mysql # use DIV operator for integer division
query I rowsort label-5902
SELECT cor0.col1 * col2 DIV - col1 + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-5902
SELECT cor0.col1 * col2 / - col1 + - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - + ( col2 ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - col1 * col0 + - ( col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
-3926
101
512
query I rowsort
SELECT DISTINCT - + 92 + - cor0.col0 FROM tab2 AS cor0
----
-170
-171
-99
query I rowsort
SELECT - 51 + + col1 FROM tab2 AS cor0
----
-20
-34
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5907
SELECT ALL + ( col1 ) * cor0.col0 DIV col2 FROM tab0 AS cor0
----
3395
62
98
skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + ( col1 ) * cor0.col0 / col2 FROM tab0 AS cor0
----
3395
62
98
query I rowsort
SELECT DISTINCT - + ( - col0 ) + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT tab2.col1 * tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
query I rowsort
SELECT ALL + tab2.col1 * - col2 * + col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + col2 * col2 + - col1 * + col0 FROM tab2
----
-3926
101
512
query I rowsort
SELECT ALL + ( + 69 * tab2.col0 ) FROM tab2, tab0 cor0
----
9 values hashing to 327033a0552226769c3eef5e7d8d7666
query I rowsort
SELECT - 23 FROM tab0, tab2 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT ALL + - col0 * + 0 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 81 * 89 + tab2.col0 AS col0 FROM tab2
----
7216
7287
7288
query I rowsort
SELECT ALL + ( + tab0.col0 ) * col0 * + col1 + - tab0.col1 FROM tab0
----
118728
49450
720720
query I rowsort
SELECT col1 * col2 * col0 AS col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT tab1.col2 * col0 * col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + col1 + - 41 FROM tab1 AS cor0
----
-15
-28
-31
query I rowsort
SELECT + 21 * 57 FROM tab1 cor0
----
1197
1197
1197
query I rowsort
SELECT col0 * + 5 FROM tab0 AS cor0
----
120
175
445
query I rowsort
SELECT ALL - ( - 24 ) * col1 + ( 18 ) + - col0 AS col1 FROM tab0
----
2058
2113
2311
query I rowsort
SELECT col1 + col1 * col2 + 45 AS col2 FROM tab1
----
1306
1475
625
query I rowsort
SELECT DISTINCT col2 + - 42 * + col2 FROM tab1 cor0
----
-2214
-2337
-3936
query I rowsort
SELECT ALL + ( cor0.col1 ) + + col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT ALL - col1 DIV ( - col1 * - 41 ) + - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5926
SELECT ALL - col1 / ( - col1 * - 41 ) + - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col1 * - 47 * - cor0.col0 FROM tab0 AS cor0
----
-159565
-380653
-97008
query I rowsort
SELECT ALL col2 + ( col2 ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - ( - col1 ) + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT DISTINCT col2 + - col1 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
-118824
-49503
-720729
query I rowsort
SELECT + col1 + - col2 * + col0 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT col2 + + col2 * col0 * col0 AS col1 FROM tab2 AS cor0
----
1350
158210
237196
onlyif mysql # use DIV operator for integer division
query I rowsort label-5934
SELECT - col0 + + col1 * 55 DIV col0 FROM tab2 AS cor0
----
-37
-68
236
skipif mysql # not compatible
query I rowsort label-5934
SELECT - col0 + + col1 * 55 / col0 FROM tab2 AS cor0
----
-37
-68
236
query I rowsort
SELECT DISTINCT + 17 - - tab0.col0 AS col1 FROM tab0
----
106
41
52
query I rowsort
SELECT DISTINCT - + 55 AS col1 FROM tab0 AS cor0
----
-55
query I rowsort
SELECT - 20 * col0 FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT DISTINCT - - col2 + ( col1 ) * col1 + 35 AS col2 FROM tab2 cor0
----
1023
3542
362
query I rowsort
SELECT ALL col2 * col1 * ( col0 * 16 ) AS col1 FROM tab0
----
10625888
1089792
54320
onlyif mysql # use DIV operator for integer division
query I rowsort label-5940
SELECT ALL + - col2 * col0 + - col2 DIV - col2 FROM tab0 AS cor0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + - col2 * col0 + - col2 / - col2 FROM tab0 AS cor0
----
-34
-7297
-791
query I rowsort
SELECT DISTINCT - + col1 - + 15 AS col0 FROM tab2 cor0
----
-32
-46
-74
query I rowsort
SELECT ALL + col1 * + col2 + + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT + - col1 * + 95 + + 57 AS col2 FROM tab2 AS cor0
----
-1558
-2888
-5548
query I rowsort
SELECT ALL - - col1 * - ( - 21 ) + + col2 FROM tab0 AS cor0
----
1839
1993
2038
query I rowsort
SELECT ALL + col2 + + 34 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT ALL col1 - 60 FROM tab2 cor0
----
-1
-29
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5947
SELECT - + cor0.col0 DIV col0 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5947
SELECT - + cor0.col0 / col0 AS col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5948
SELECT - + CAST( + cor0.col0 AS SIGNED ) + col2 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-5948
SELECT - + CAST ( + cor0.col0 AS INTEGER ) + col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5949
SELECT DISTINCT cor0.col1 + - col2 * - col1 + col0 DIV + col0 FROM tab1 AS cor0
----
1262
1431
581
skipif mysql # not compatible
query I rowsort label-5949
SELECT DISTINCT cor0.col1 + - col2 * - col1 + col0 / + col0 FROM tab1 AS cor0
----
1262
1431
581
query I rowsort
SELECT ALL col0 + 98 * + col0 AS col2 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT - cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * col0 + - col1 * col1 FROM tab1 AS cor0
----
-4196
-6569
-685
query I rowsort
SELECT col2 * + 2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - col2 + 82 AS col2 FROM tab1
----
-14
25
28
query I rowsort
SELECT tab1.col1 * col0 + - 62 AS col0 FROM tab1
----
16
578
978
query I rowsort
SELECT DISTINCT - 75 + + col0 AS col1 FROM tab0
----
-40
-51
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( col0 ) col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT ALL 50 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL 8 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT col0 * tab2.col2 * + col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - col0 * + ( - col1 * - col1 ) FROM tab2
----
-22831
-271518
-6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5962
SELECT - col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5962
SELECT - col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 - col1 * - col2 * - col1 FROM tab2 AS cor0
----
-11020
-25974
-90532
query I rowsort
SELECT - col0 - col0 AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT - - col0 - 80 FROM tab1 AS cor0
----
-16
-77
0
query I rowsort
SELECT DISTINCT - 75 * col2 AS col0 FROM tab0
----
-2475
-6150
-75
query I rowsort
SELECT ALL + + 89 * - 78 FROM tab1 AS cor0
----
-6942
-6942
-6942
query I rowsort
SELECT ALL 25 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
125
194
701
query I rowsort
SELECT DISTINCT 24 + + col0 FROM tab0 AS cor0
----
113
48
59
query I rowsort
SELECT + + col2 + - col1 * - col1 FROM tab1 AS cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 * - col0 col2 FROM tab1 AS cor0
----
-225
-4800
-6000
onlyif mysql # use DIV operator for integer division
query I rowsort label-5972
SELECT DISTINCT - col2 - col2 DIV + col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - col2 - col2 / + col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 8 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-154
-3640
-7672
query I rowsort
SELECT ALL + + 61 * cor0.col0 + - 35 + + 92 AS col1 FROM tab2 AS cor0
----
4815
484
4876
query I rowsort
SELECT + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + + col1 + col2 * - 49 AS col0 FROM tab2 cor0
----
-1215
-1292
-1845
query I rowsort
SELECT 70 * - col2 AS col0 FROM tab1 AS cor0
----
-3780
-3990
-6720
query I rowsort
SELECT ALL - 34 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT ALL + 63 * + tab2.col2 FROM tab2
----
1638
1701
2394
onlyif mysql # use DIV operator for integer division
query I rowsort label-5981
SELECT + - 77 DIV + col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5981
SELECT + - 77 / + col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col1 FROM tab2
----
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( 42 ) * - col2 col0 FROM tab0 AS cor0
----
-1300
-3353
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5984
SELECT + cor0.col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5984
SELECT + cor0.col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col2 + - 37 ) FROM tab0
----
-119
-38
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5986
SELECT + - cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5986
SELECT + - cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col0 * - col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + cor0.col2 * 25 FROM tab0 cor0
----
2050
25
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col1 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT DISTINCT + + col0 * col2 + + col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 3 + + col2 FROM tab0 cor0
----
-2
30
79
query I rowsort
SELECT DISTINCT - col0 * + 6 + + cor0.col0 FROM tab2 AS cor0
----
-35
-390
-395
query I rowsort
SELECT - + 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-5994
SELECT col0 + + CAST( - 73 AS SIGNED ) * col0 FROM tab2
----
-504
-5616
-5688
skipif mysql # not compatible
query I rowsort label-5994
SELECT col0 + + CAST ( - 73 AS INTEGER ) * col0 FROM tab2
----
-504
-5616
-5688
onlyif mysql # use DIV operator for integer division
query I rowsort label-5995
SELECT + - col0 + + col0 DIV - 60 FROM tab0 AS cor0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-5995
SELECT + - col0 + + col0 / - 60 FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT DISTINCT col2 + - col1 * col2 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-5997
SELECT + cor0.col0 + cor0.col1 * col1 DIV - col1 FROM tab2 cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort label-5997
SELECT + cor0.col0 + cor0.col1 * col1 / - col1 FROM tab2 cor0
----
-24
19
62
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * + CAST ( - col2 * col0 AS REAL ) + col2 FROM tab2
----
-114038
-5076
-52702
query I rowsort
SELECT DISTINCT col0 * 42 + col0 * + col1 FROM tab0
----
11837
3072
4865
query I rowsort
SELECT ALL - 79 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
onlyif mysql # use DIV operator for integer division
query I rowsort label-6001
SELECT ALL col1 DIV - 35 + + col2 AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL col1 / - 35 + + col2 AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT - col2 + col0 - 83 AS col2 FROM tab1 AS cor0
----
-134
-76
-99
query I rowsort
SELECT DISTINCT col2 * ( 64 ) + col0 AS col1 FROM tab0 AS cor0
----
2136
5337
99
query I rowsort
SELECT ALL - col2 + 91 AS col1 FROM tab1 AS cor0
----
-5
34
37
query I rowsort
SELECT cor0.col1 * cor0.col1 * + 65 + - col1 - - col2 * - col1 AS col2 FROM tab2 AS cor0
----
18122
224672
61597
query I rowsort
SELECT - col1 + + col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT ALL + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 69 * + col2 FROM tab2 AS cor0
----
1794
1863
2622
query I rowsort
SELECT DISTINCT - 14 * cor0.col0 FROM tab2 AS cor0
----
-1092
-1106
-98
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 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - 92 * - 55 + col2 FROM tab0 AS cor0
----
5061
5093
5142
query I rowsort
SELECT ALL + - col1 * cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT + col2 * 37 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT - + 61 * - col2 + col0 AS col0 FROM tab2 cor0
----
1654
1664
2397
query I rowsort
SELECT ALL + col0 * 79 * col0 FROM tab0 AS cor0
----
45504
625759
96775
onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT ALL tab1.col0 DIV 19 + - 43 AS col2 FROM tab1
----
-39
-40
-43
skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL tab1.col0 / 19 + - 43 AS col2 FROM tab1
----
-39
-40
-43
query I rowsort
SELECT ALL - col0 + + col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 + 50 FROM tab1 cor0
----
104
107
146
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + - col1 col1 FROM tab1 AS cor0
----
23
36
39
query I rowsort
SELECT ALL ( col2 ) + ( + col2 ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + - ( - col2 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + + 83 * col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
57216
6483
92720
query I rowsort
SELECT DISTINCT - col2 * + col0 + + ( - col0 ) * col1 * 30 + - col0 FROM tab0 AS cor0
----
-101920
-250357
-62736
query I rowsort
SELECT - cor0.col1 * col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL - 77 * cor0.col0 FROM tab1 cor0
----
-231
-4928
-6160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6029
SELECT ALL - cor0.col2 * + col0 * CAST( NULL AS DECIMAL ) + + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL - cor0.col2 * + col0 * CAST ( NULL AS REAL ) + + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * 17 - col0 FROM tab0 AS cor0
----
-1486
-1636
-1684
query I rowsort
SELECT DISTINCT - col1 * 81 * - 88 AS col1 FROM tab2 AS cor0
----
121176
220968
420552
query I rowsort
SELECT ALL + col1 * - 99 + + ( col0 ) AS col1 FROM tab0 cor0
----
-8490
-8920
-9568
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6033
SELECT - - cor0.col0 + col2 * - CAST( ( - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-6033
SELECT - - cor0.col0 + col2 * - CAST ( ( - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT - ( + col1 ) * + col2 + col0 AS col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL + col2 + - cor0.col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT cor0.col2 * + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-6037
SELECT - ( + tab0.col1 * + 82 ) + 24 * col2 DIV 28 FROM tab0
----
-7024
-7392
-7954
skipif mysql # not compatible
query I rowsort label-6037
SELECT - ( + tab0.col1 * + 82 ) + 24 * col2 / 28 FROM tab0
----
-7024
-7392
-7954
query I rowsort
SELECT ALL - tab2.col1 * + col2 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL 22 * - col1 * + col0 AS col1 FROM tab0
----
-178178
-45408
-74690
query I rowsort
SELECT + 20 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ALL + col0 * + col2 + col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL + col0 * - 14 - col2 FROM tab1 AS cor0
----
-1216
-953
-96
query I rowsort
SELECT DISTINCT col1 * + cor0.col1 + col1 AS col0 FROM tab0 cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6045
SELECT DISTINCT + col2 * CAST( col1 AS SIGNED ) + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT + col2 * CAST ( col1 AS INTEGER ) + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - + col2 - - col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + - col1 * - col2 + + col1 AS col0 FROM tab1
----
1274
1456
590
query I rowsort
SELECT ( 59 ) - + col0 * 1 AS col0 FROM tab0
----
-30
24
35
query I rowsort
SELECT ALL + 8 FROM tab1, tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-6051
SELECT + + col2 DIV 58 col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6051
SELECT + + col2 / 58 col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + - 47 * col1 AS col2 FROM tab2 AS cor0
----
-1457
-2773
-799
onlyif mysql # use DIV operator for integer division
query I rowsort label-6053
SELECT DISTINCT - + col1 DIV - 56 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6053
SELECT DISTINCT - + col1 / - 56 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT - 61 + col1 FROM tab0 AS cor0
----
25
30
36
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 + + col0 + - CAST ( + col1 * col1 + cor0.col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
-103
-198
-753
query I rowsort
SELECT DISTINCT - - col1 * - col0 + ( + 25 * - col1 ) AS col2 FROM tab2 AS cor0
----
-1768
-6077
-992
onlyif mysql # use DIV operator for integer division
query I rowsort label-6057
SELECT DISTINCT 27 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
9
skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT 27 / + col0 AS col1 FROM tab1 AS cor0
----
0
9
query I rowsort
SELECT ALL col1 + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col1 + + col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL col2 * - col1 + + col2 + + col1 AS col1 FROM tab2 AS cor0
----
-1449
-591
-779
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + cor0.col0 * col2 col1 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL - cor0.col0 + - 40 AS col0 FROM tab1 AS cor0
----
-104
-120
-43
query I rowsort
SELECT ALL - + ( col1 ) + - col0 * + col0 FROM tab2 AS cor0
----
-6143
-6258
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6064
SELECT ALL CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6065
SELECT + - CAST( 78 AS SIGNED ) + col2 * + ( - col2 ) FROM tab0 AS cor0
----
-1167
-6802
-79
skipif mysql # not compatible
query I rowsort label-6065
SELECT + - CAST ( 78 AS INTEGER ) + col2 * + ( - col2 ) FROM tab0 AS cor0
----
-1167
-6802
-79
query I rowsort
SELECT - - col1 + + 91 FROM tab0 AS cor0
----
177
182
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT - - col1 * col0 DIV - col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6067
SELECT - - col1 * col0 / - col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + col2 * ( - col0 ) AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + 34 FROM tab1 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT + 65 FROM tab1, tab1 cor0, tab1 cor1
----
65
query I rowsort
SELECT DISTINCT - 12 * + col1 AS col1 FROM tab0
----
-1032
-1092
-1164
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 AS cor2
----
13122 values hashing to 18479fc5deeab4448e9e03cded22be56
query I rowsort
SELECT DISTINCT 9 * - tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
-486
-513
-864
query I rowsort
SELECT + - col1 * col0 + - 58 * - col0 FROM tab1 AS cor0
----
3072
3600
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 82 + col0 * - col1 col1 FROM tab0 AS cor0
----
-525
-801
-96
skipif mysql # not compatible
query I rowsort
SELECT ALL + cor0.col1 * - CAST ( 69 AS REAL ) FROM tab0 cor0
----
-5934
-6279
-6693
onlyif mysql # use DIV operator for integer division
query I rowsort label-6077
SELECT DISTINCT - - col2 + + col1 DIV cor0.col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-6077
SELECT DISTINCT - - col2 + + col1 / cor0.col1 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6078
SELECT - + col2 + + col1 * ( col0 ) DIV 74 col1 FROM tab0 AS cor0
----
-6
27
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6078
SELECT - + col2 + + col1 * ( col0 ) / 74 col1 FROM tab0 AS cor0
----
-6
27
44
query I rowsort
SELECT DISTINCT + + 31 FROM tab0, tab1, tab2 AS cor0, tab2
----
31
query I rowsort
SELECT ALL - col1 * + ( col2 ) + - col2 FROM tab0 cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT + col1 DIV 1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-6081
SELECT + col1 / 1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - col0 + 41 AS col2 FROM tab1 AS cor0
----
-23
-39
38
query I rowsort
SELECT ALL + - col0 + + 5 * - col2 AS col2 FROM tab2 AS cor0
----
-142
-208
-269
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 88 col1 FROM tab1, tab2 cor0
----
88
query I rowsort
SELECT + - 81 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( tab0.col2 ) col0 FROM tab0
----
1
33
82
query I rowsort
SELECT - cor0.col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT 31 * col2 AS col1 FROM tab2 AS cor0
----
1178
806
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6089
SELECT ALL cor0.col2 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL cor0.col2 / + CAST ( NULL AS REAL ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6090
SELECT - + ( - col2 ) + ( col2 ) DIV col1 - - 63 FROM tab1 AS cor0
----
119
125
166
skipif mysql # not compatible
query I rowsort label-6090
SELECT - + ( - col2 ) + ( col2 ) / col1 - - 63 FROM tab1 AS cor0
----
119
125
166
query I rowsort
SELECT col2 + ( + ( + col1 ) * + col1 + + 78 ) FROM tab0 AS cor0
----
7507
8441
9488
query I rowsort
SELECT - cor0.col0 + - ( cor0.col1 ) FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT - + col2 * cor0.col1 DIV ( - col0 ) + - col0 col2 FROM tab0 AS cor0
----
-33
-6
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6093
SELECT - + col2 * cor0.col1 / ( - col0 ) + - col0 col2 FROM tab0 AS cor0
----
-33
-6
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT + col1 DIV col0 - - col2 FROM tab0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-6094
SELECT + col1 / col0 - - col2 FROM tab0
----
3
36
83
query I rowsort
SELECT - 58 - col2 AS col0 FROM tab1
----
-112
-115
-154
query I rowsort
SELECT DISTINCT 7 * + tab0.col2 AS col1 FROM tab0
----
231
574
7
query I rowsort
SELECT + 61 * + col2 AS col0 FROM tab2
----
1586
1647
2318
query I rowsort
SELECT DISTINCT + 47 AS col2 FROM tab2, tab0 AS cor0
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-6099
SELECT tab1.col1 DIV col0 AS col2 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6099
SELECT tab1.col1 / col0 AS col2 FROM tab1
----
0
0
8
query I rowsort
SELECT - 67 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT + 37 * - col2 - - col2 AS col0 FROM tab2
----
-1368
-936
-972
query I rowsort
SELECT 94 + col1 * + col2 AS col1 FROM tab2 AS cor0
----
1628
740
931
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 17 * ( col1 ) * col2 + col2 col0 FROM tab2 AS cor0
----
11020
14256
26104
query I rowsort
SELECT ALL + 44 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT - col2 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 4 * col0 AS col2 FROM tab1 AS cor0
----
12
256
320
query I rowsort
SELECT + + col1 * col0 * col0 + 37 FROM tab1 AS cor0
----
271
40997
83237
query I rowsort
SELECT ALL col2 * + col2 + - col2 + - 43 AS col1 FROM tab2 AS cor0
----
1363
607
659
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6109
SELECT DISTINCT + col1 - + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT + col1 - + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6110
SELECT 92 DIV - col1 + + col2 AS col2 FROM tab2 AS cor0
----
25
25
33
skipif mysql # not compatible
query I rowsort label-6110
SELECT 92 / - col1 + + col2 AS col2 FROM tab2 AS cor0
----
25
25
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6111
SELECT col2 * - col2 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6111
SELECT col2 * - col2 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - 35 FROM tab1 AS cor0
----
-35
-35
-35
query I rowsort
SELECT + 79 - col1 * - ( + col1 + col1 ) AS col0 FROM tab2 AS cor0
----
2001
657
7041
query I rowsort
SELECT DISTINCT - ( col0 ) + - 70 FROM tab1 AS cor0
----
-134
-150
-73
query I rowsort
SELECT ALL 16 * + col0 FROM tab2 AS cor0
----
112
1248
1264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - cor0.col1 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + 44 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1364
2596
748
query I rowsort
SELECT - + col1 + col0 + 36 AS col2 FROM tab1 AS cor0
----
103
13
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6119
SELECT + col0 * col1 + col2 DIV col0 FROM tab2 AS cor0
----
1343
220
4602
skipif mysql # not compatible
query I rowsort label-6119
SELECT + col0 * col1 + col2 / col0 FROM tab2 AS cor0
----
1343
220
4602
query I rowsort
SELECT ALL - - 15 * + col0 + 45 FROM tab1 AS cor0
----
1005
1245
90
query I rowsort
SELECT col1 * + 17 FROM tab0 cor0
----
1462
1547
1649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 27 col2 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT DISTINCT + - col2 + - 48 * col1 AS col1 FROM tab1 AS cor0
----
-1302
-537
-720
query I rowsort
SELECT DISTINCT - - col2 + - ( - 31 ) * + col0 + col1 AS col0 FROM tab0 AS cor0
----
1183
2932
863
onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT DISTINCT + col0 + ( col0 ) DIV col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT + col0 + ( col0 ) / col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col1 + col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL 15 * - cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to eb91a7cd3d386d9d68515c604425c526
query I rowsort
SELECT ALL - col0 + ( col1 + + col2 ) FROM tab0 AS cor0
----
63
84
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6129
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) * 44 * - col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT - - CAST ( NULL AS REAL ) * 44 * - col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 85 AS col1 FROM tab0 cor0
----
85
85
85
query I rowsort
SELECT DISTINCT + + 0 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + 78 + + 73 * col2 AS col1 FROM tab1 AS cor0
----
4020
4239
7086
query I rowsort
SELECT DISTINCT + + col1 * + 86 + - col1 AS col0 FROM tab0 AS cor0
----
7310
7735
8245
query I rowsort
SELECT DISTINCT - col1 - 24 * + cor0.col1 FROM tab1 cor0
----
-250
-325
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 * - col1 col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - 3 * col1 FROM tab0 cor0
----
-258
-273
-291
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6137
SELECT CAST( NULL AS SIGNED ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6137
SELECT CAST ( NULL AS INTEGER ) / - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col1 ) + + col1 AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT ( col2 ) * col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL ( - col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT col1 + ( col2 ) DIV col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-6141
SELECT col1 + ( col2 ) / col2 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL - col1 + + 12 AS col1 FROM tab0 AS cor0
----
-74
-79
-85
query I rowsort
SELECT ALL 20 * col2 - col1 * col1 FROM tab1 AS cor0
----
1040
1751
404
query I rowsort
SELECT DISTINCT ( + 22 ) + cor0.col1 * - 17 FROM tab2 cor0
----
-267
-505
-981
query I rowsort
SELECT - 56 * 91 + + cor0.col2 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
-12776
-5258
-8744
query I rowsort
SELECT + col2 + cor0.col2 * + col2 FROM tab0 cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-6147
SELECT + col1 * col2 + - col1 DIV 31 col0 FROM tab0
----
2836
7460
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6147
SELECT + col1 * col2 + - col1 / 31 col0 FROM tab0
----
2836
7460
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-6148
SELECT ALL + col1 DIV col2 + + col1 col1 FROM tab0 AS cor0
----
194
88
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL + col1 / col2 + + col1 col1 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT + cor0.col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - tab1.col0 * col0 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col1 + - col2 + - 54 AS col1 FROM tab0
----
-1
-45
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col1 * ( + col1 ) + + col0 * 14 FROM tab2 cor0
----
-2389
-863
817
query I rowsort
SELECT ( cor1.col0 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col1 + col1 + 60 * col1 FROM tab2
----
1054
1922
3658
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 col1 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6157
SELECT + 99 * - col1 + - CAST( NULL AS SIGNED ) * col0 + + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6157
SELECT + 99 * - col1 + - CAST ( NULL AS INTEGER ) * col0 + + col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT col0 + tab0.col1 DIV col2 AS col2 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-6158
SELECT col0 + tab0.col1 / col2 AS col2 FROM tab0
----
132
26
90
query I rowsort
SELECT + col2 + - 70 * - col1 + + tab2.col1 AS col2 FROM tab2
----
1245
2228
4215
query I rowsort
SELECT DISTINCT col0 * tab1.col2 + 97 * col0 FROM tab1
----
15440
453
9856
query I rowsort
SELECT ALL - 91 FROM tab1, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 + col0 * col0 FROM tab1 cor0
----
-45
4039
6304
query I rowsort
SELECT + 79 + - col2 FROM tab1 AS cor0
----
-17
22
25
query I rowsort
SELECT - - 59 AS col1 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT + 32 * col0 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1500
2618
3808
query I rowsort
SELECT - + col2 + - col0 + col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 + 65 AS col2 FROM tab2 AS cor0
----
124
82
96
query I rowsort
SELECT DISTINCT 59 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
59
query I rowsort
SELECT - - cor0.col0 * 77 AS col1 FROM tab1 AS cor0
----
231
4928
6160
onlyif mysql # use DIV operator for integer division
query I rowsort label-6171
SELECT col0 + + cor0.col1 DIV 12 AS col1 FROM tab2 AS cor0
----
80
82
9
skipif mysql # not compatible
query I rowsort label-6171
SELECT col0 + + cor0.col1 / 12 AS col1 FROM tab2 AS cor0
----
80
82
9
query I rowsort
SELECT + col2 * - ( + col1 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + 34 * col2 AS col0 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT DISTINCT + - 88 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-24
-8
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6175
SELECT - + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6175
SELECT - + col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 86 * + col1 FROM tab1 AS cor0
----
-1118
-2236
-860
query I rowsort
SELECT ALL 49 * - col1 FROM tab0 AS cor0
----
-4214
-4459
-4753
query I rowsort
SELECT - + col1 * - col0 + + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - col0 + - ( col0 ) * col1 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT - 28 + - 62 FROM tab1
----
-90
-90
-90
query I rowsort
SELECT + ( cor0.col1 ) * ( - ( - col1 ) ) * + ( - 33 ) + col1 * col2 + 5 AS col1 FROM tab0 AS cor0
----
-241225
-265806
-310395
query I rowsort
SELECT - ( - col0 ) + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + ( + col2 ) * col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT 12 * col2 + col2 FROM tab1
----
1248
702
741
onlyif mysql # use DIV operator for integer division
query I rowsort label-6185
SELECT tab0.col1 DIV - 89 AS col2 FROM tab0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6185
SELECT tab0.col1 / - 89 AS col2 FROM tab0
----
-1
-1
0
query I rowsort
SELECT col0 + tab1.col0 + col1 * + col0 FROM tab1
----
1200
768
84
query I rowsort
SELECT 19 * col2 + 85 AS col2 FROM tab0 AS cor0
----
104
1643
712
query I rowsort
SELECT DISTINCT + col2 + col1 * + 48 FROM tab0 AS cor0
----
4161
4450
4657
query I rowsort
SELECT - cor1.col0 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376
onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT ALL + 12 DIV cor0.col2 + ( 47 ) * col2 * ( cor0.col0 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
1692
343095
37248
skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL + 12 / cor0.col2 + ( 47 ) * col2 * ( cor0.col0 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
1692
343095
37248
query I rowsort
SELECT + - 29 AS col0 FROM tab0 cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 AS col1 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6193
SELECT ALL + 53 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL + 53 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + - col2 * - ( col2 ) - - col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - 83 AS col0 FROM tab2
----
-83
-83
-83
query I rowsort
SELECT ALL tab0.col2 * col0 + 83 FROM tab0
----
118
7381
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col2 FROM tab2
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6199
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6200
SELECT + CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6200
SELECT + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 96 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f1d978c2d5bfc6f26e0907ac777be83e
query I rowsort
SELECT + col2 * col1 - - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6203
SELECT 23 DIV col2 + col1 * + col0 FROM tab0 AS cor0
----
2064
3418
8099
skipif mysql # not compatible
query I rowsort label-6203
SELECT 23 / col2 + col1 * + col0 FROM tab0 AS cor0
----
2064
3418
8099
query I rowsort
SELECT ( - 98 ) * col2 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT + + col1 - + col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - 53 - + 49 AS col0 FROM tab0 AS cor0
----
-102
-102
-102
query I rowsort
SELECT DISTINCT - - cor0.col0 * - 80 + + col2 * + ( - col2 ) * + col0 AS col1 FROM tab1 cor0
----
-213056
-743680
-8988
query I rowsort
SELECT DISTINCT + 3 * col1 + col1 AS col1 FROM tab0 cor0
----
344
364
388
query I rowsort
SELECT cor0.col1 + 7 FROM tab0 AS cor0
----
104
93
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT DISTINCT + 77 * - col2 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-4140
-4389
-7391
skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT + 77 * - col2 + col2 / col0 AS col1 FROM tab1 AS cor0
----
-4140
-4389
-7391
query I rowsort
SELECT DISTINCT 42 - + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
16
29
32
query I rowsort
SELECT DISTINCT 87 AS col0 FROM tab1, tab1 AS cor0
----
87
query I rowsort
SELECT ALL - cor0.col0 + 46 FROM tab1, tab0 AS cor0
----
9 values hashing to 62f9eab6fb84c12d07daa80b262b2851
query I rowsort
SELECT ALL - col0 * - col1 + - col1 * + col2 FROM tab0
----
-774
3298
637
query I rowsort
SELECT col2 * + 73 AS col2 FROM tab1
----
3942
4161
7008
onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT ALL col1 DIV + 55 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL col1 / + 55 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT ( ( + col0 ) + - col2 ) AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT 1 + 49 AS col1 FROM tab2 cor0
----
50
query I rowsort
SELECT ALL + + col1 * + col1 + - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT ALL cor0.col1 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT 50 + + col0 FROM tab2
----
128
129
57
query I rowsort
SELECT + - cor0.col0 + + col2 - col1 AS col2 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT DISTINCT 73 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
73
query I rowsort
SELECT tab2.col0 * + col1 + + col1 + + col0 AS col2 FROM tab2
----
1439
255
4739
query I rowsort
SELECT - cor0.col0 + - 84 FROM tab0 AS cor0
----
-108
-119
-173
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 + - 10 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT ALL - col2 - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT + col1 * + col2 * + col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col1 + + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + col2 + ( col0 * - col1 ) AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + - col2 + ( - col2 ) FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + + col1 + + 14 * + 99 AS col2 FROM tab0 AS cor0
----
1472
1477
1483
query I rowsort
SELECT ALL + col2 - - ( + 44 ) AS col0 FROM tab0 AS cor0
----
126
45
77
query I rowsort
SELECT + cor0.col1 * 43 + + cor0.col0 FROM tab0 AS cor0
----
3722
4002
4206
query I rowsort
SELECT DISTINCT col2 + 7 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 + 81 FROM tab0 AS cor0
----
116
7379
873
query I rowsort
SELECT col2 * + ( + col0 ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6239
SELECT ALL - col1 * col0 * col2 - cor0.col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-6239
SELECT ALL - col1 * col0 * col2 - cor0.col0 / col1 AS col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col2 + 49 AS col0 FROM tab2
----
11
22
23
query I rowsort
SELECT + tab2.col2 + col2 * + col2 FROM tab2
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-6243
SELECT + col0 + + cor0.col0 DIV + col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-6243
SELECT + col0 + + cor0.col0 / + col1 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT DISTINCT - 83 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-83
query I rowsort
SELECT 27 FROM tab1, tab0 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT DISTINCT - ( + 55 ) FROM tab2 AS cor0
----
-55
query I rowsort
SELECT ALL - col0 + - 79 + - col2 FROM tab0 AS cor0
----
-115
-136
-250
query I rowsort
SELECT 53 AS col1 FROM tab2 cor0
----
53
53
53
query I rowsort
SELECT ALL - - col0 * + ( col2 * col1 ) - col0 FROM tab0 cor0
----
3360
664029
68088
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 28 ) + col1 col0 FROM tab0 AS cor0
----
58
63
69
query I rowsort
SELECT ALL + 54 * - col2 FROM tab0 AS cor0
----
-1782
-4428
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-6252
SELECT + cor0.col1 DIV - col0 + col0 * 48 AS col1 FROM tab2 AS cor0
----
332
3744
3792
skipif mysql # not compatible
query I rowsort label-6252
SELECT + cor0.col1 / - col0 + col0 * 48 AS col1 FROM tab2 AS cor0
----
332
3744
3792
query I rowsort
SELECT ALL + + col1 * ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6254
SELECT ALL CAST( NULL AS SIGNED ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL CAST ( NULL AS INTEGER ) / + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 * + cor0.col1 * - col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6256
SELECT ALL + col1 DIV - cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL + col1 / - cor0.col1 + + cor0.col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT DISTINCT + cor0.col1 * 37 AS col1 FROM tab0, tab2 AS cor0
----
1147
2183
629
onlyif mysql # use DIV operator for integer division
query I rowsort label-6258
SELECT ALL tab2.col0 + col0 DIV 15 + col2 AS col1 FROM tab2
----
109
122
34
skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL tab2.col0 + col0 / 15 + col2 AS col1 FROM tab2
----
109
122
34
query I rowsort
SELECT ( 0 + cor0.col0 ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT col1 * + col0 + col0 AS col1 FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * cor0.col1 col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + 62 * - col0 + col1 - + 26 FROM tab1 AS cor0
----
-186
-3984
-4973
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + ( col2 ) * + CAST ( col0 AS REAL ) col1 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6264
SELECT col2 DIV + col1 + ( cor0.col1 ) - - col2 FROM tab1 AS cor0
----
116
72
82
skipif mysql # not compatible
query I rowsort label-6264
SELECT col2 / + col1 + ( cor0.col1 ) - - col2 FROM tab1 AS cor0
----
116
72
82
query I rowsort
SELECT - 34 * - col0 * col2 + - col2 * col1 FROM tab2 cor0
----
101422
5589
67418
query I rowsort
SELECT ALL col1 + - cor0.col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + + ( + col2 ) AS col2 FROM tab1 cor0
----
-1152
-1350
-513
query I rowsort
SELECT + + col1 + - cor0.col1 + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + 22 * col1 * col0 + col0 - cor0.col2 * ( + col2 ) * + col1 FROM tab0 AS cor0
----
-433617
-48222
74628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 72 * - col2 AS col0 FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT ALL - 44 * - cor0.col0 + + ( cor0.col0 + + cor0.col0 ) * + col0 FROM tab2 AS cor0
----
15600
15958
406
query I rowsort
SELECT ALL + 86 + - col2 * + 32 FROM tab1 AS cor0
----
-1642
-1738
-2986
onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT + - col1 DIV 52 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6274
SELECT + - col1 / 52 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 98 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT DISTINCT + - 66 DIV - 42 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + - 66 / - 42 col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * 54 col0 FROM tab2
----
1647
3160
880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * - col0 col1 FROM tab1
----
-234
-4992
-6240
query I rowsort
SELECT - 52 * 87 * col0 AS col0 FROM tab1
----
-13572
-289536
-361920
query I rowsort
SELECT + cor0.col1 * - col0 + ( cor0.col0 + col0 ) * + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-10185
-24297
-6192
onlyif mysql # use DIV operator for integer division
query I rowsort label-6281
SELECT + 27 DIV - col0 FROM tab1
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-6281
SELECT + 27 / - col0 FROM tab1
----
-9
0
0
query I rowsort
SELECT DISTINCT - ( + 95 ) FROM tab2
----
-95
query I rowsort
SELECT col0 * + 49 * - tab0.col2 FROM tab0
----
-1715
-357602
-38808
query I rowsort
SELECT col2 * + ( col1 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT col1 * col0 * col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT - 37 * - tab1.col2 * col0 AS col1 FROM tab1
----
134976
284160
5994
query I rowsort
SELECT cor0.col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - tab0.col1 + col2 AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col1 * + tab0.col2 * ( + col1 ) FROM tab0
----
244068
679042
9409
query I rowsort
SELECT col1 * + ( + ( col2 ) ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT col0 * ( 82 ) * col2 FROM tab2 AS cor0
----
15498
166296
246164
query I rowsort
SELECT ALL - - col0 + ( 23 ) * col1 AS col1 FROM tab2 AS cor0
----
1435
470
720
query I rowsort
SELECT DISTINCT cor0.col1 + col0 * - col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT ( 77 ) AS col1 FROM tab1
----
77
77
77
query I rowsort
SELECT ALL + 92 FROM tab1 cor0
----
92
92
92
query I rowsort
SELECT - + 78 - + ( - col1 ) * - 34 AS col1 FROM tab2 AS cor0
----
-1132
-2084
-656
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 21 * col0 + col0 - + col1 col0 FROM tab1
----
1398
1747
40
query I rowsort
SELECT + 59 + col0 * + col0 FROM tab0 AS cor0
----
1284
635
7980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 76 * cor0.col2 * - col2 col0 FROM tab2 cor0
----
109744
51376
55404
query I rowsort
SELECT ALL - 47 FROM tab1, tab0 AS cor0
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * - cor0.col1 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 35 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT DISTINCT col1 * - col1 + + col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 * 34 col0 FROM tab1 AS cor0
----
-1326
-1326
-1326
query I rowsort
SELECT DISTINCT cor0.col1 - - col1 AS col0 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ALL - col1 * col2 + + ( - col2 + col0 ) FROM tab2 AS cor0
----
-1482
-605
-857
onlyif mysql # use DIV operator for integer division
query I rowsort label-6307
SELECT + 83 DIV + col1 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-6307
SELECT + 83 / + col1 FROM tab2 AS cor0
----
1
2
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 82 + + col0 ) * col0 col2 FROM tab2
----
12480
12719
623
query I rowsort
SELECT - col2 * 47 AS col0 FROM tab2
----
-1222
-1269
-1786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col0 FROM tab1, tab0 cor0
----
90
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * 11 FROM tab0 AS cor0
----
103499
81356
91091
query I rowsort
SELECT + + cor0.col0 + - col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + - 8 * + col1 FROM tab1 AS cor0
----
-144
-184
-211
query I rowsort
SELECT ALL col2 + + ( 47 ) * col1 AS col1 FROM tab2 AS cor0
----
1484
2799
837
query I rowsort
SELECT ALL + 83 AS col0 FROM tab2
----
83
83
83
query I rowsort
SELECT ALL + col0 * 47 FROM tab0
----
1128
1645
4183
query I rowsort
SELECT ( cor0.col1 ) * col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * 70 * + col0 + ( + cor0.col0 * + col0 ) FROM tab2 AS cor0
----
100251
15239
328224
query I rowsort
SELECT DISTINCT + col1 * - col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - - col1 + + 73 * col0 FROM tab2 cor0
----
542
5753
5784
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col2 FROM tab1, tab0 AS cor0
----
-21
query I rowsort
SELECT - col2 + - 13 FROM tab0
----
-14
-46
-95
query I rowsort
SELECT - + col2 + col1 + ( cor0.col0 ) AS col1 FROM tab2 AS cor0
----
11
111
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col0 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 + - cor0.col1 col1 FROM tab1 cor0
----
-110
-182
-702
query I rowsort
SELECT DISTINCT + col1 + + col1 * col2 * - col1 AS col1 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT col2 * - col1 + + col0 AS col0 FROM tab1 cor0
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort
SELECT ALL 32 + col1 * - CAST ( + col2 + col2 AS REAL ) FROM tab0 AS cor0
----
-14892
-162
-5644
query I rowsort
SELECT ALL - - col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col1 * + cor0.col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT col0 * col1 + tab0.col0 * - 28 * + col0 AS col2 FROM tab0
----
-14064
-213689
-30905
query I rowsort
SELECT DISTINCT cor0.col1 * 85 AS col2 FROM tab1 cor0
----
1105
2210
850
query I rowsort
SELECT col0 * - col1 - - ( + col2 ) AS col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - col0 + + col2 * 23 FROM tab1
----
1239
1247
2128
query I rowsort
SELECT + 40 * 12 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 9acccc87c27a3471de9d1287dcd8e1b6
query I rowsort
SELECT ALL + cor0.col2 * col2 + 78 * + col2 FROM tab2 AS cor0
----
2704
2835
4408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6338
SELECT DISTINCT + col0 / + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
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 + col2 * - tab1.col1 - tab1.col0 AS col0 FROM tab1
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-6341
SELECT 25 DIV tab1.col1 + ( 14 * col2 ) AS col2 FROM tab1
----
1345
756
800
skipif mysql # not compatible
query I rowsort label-6341
SELECT 25 / tab1.col1 + ( 14 * col2 ) AS col2 FROM tab1
----
1345
756
800
query I rowsort
SELECT DISTINCT + 13 + col1 AS col1 FROM tab0
----
104
110
99
query I rowsort
SELECT ALL + - ( - col2 ) * - cor0.col1 + + col0 * cor0.col2 FROM tab1 cor0
----
-1242
3078
6432
query I rowsort
SELECT - ( + col1 ) * - cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6345
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 62 + + col0 * col0 FROM tab1 cor0
----
4158
6462
71
query I rowsort
SELECT DISTINCT + 82 + col2 FROM tab2 AS cor0
----
108
109
120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 85 * col2 * col0 col2 FROM tab0 AS cor0
----
-2975
-620330
-67320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT col2 DIV col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6349
SELECT col2 / col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - + 94 + + 56 * + col2 AS col1 FROM tab0 AS cor0
----
-38
1754
4498
query I rowsort
SELECT ALL col0 * 69 * + col1 AS col0 FROM tab0 AS cor0
----
142416
234255
558831
onlyif mysql # use DIV operator for integer division
query I rowsort label-6352
SELECT col2 DIV + col1 + + 89 DIV - col0 AS col1 FROM tab1
----
-27
4
6
skipif mysql # not compatible
query I rowsort label-6352
SELECT col2 / + col1 + + 89 / - col0 AS col1 FROM tab1
----
-27
4
6
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
onlyif mysql # use DIV operator for integer division
query I rowsort label-6354
SELECT + tab1.col1 DIV tab1.col2 + - col2 - - col0 * + col2 AS col1 FROM tab1
----
108
3591
7584
skipif mysql # not compatible
query I rowsort label-6354
SELECT + tab1.col1 / tab1.col2 + - col2 - - col0 * + col2 AS col1 FROM tab1
----
108
3591
7584
query I rowsort
SELECT 2 + - col1 * col1 * - col2 AS col2 FROM tab0
----
244070
679044
9411
onlyif mysql # use DIV operator for integer division
query I rowsort label-6356
SELECT 14 DIV col2 + - col2 DIV - col2 FROM tab0
----
1
1
15
skipif mysql # not compatible
query I rowsort label-6356
SELECT 14 / col2 + - col2 / - col2 FROM tab0
----
1
1
15
query I rowsort
SELECT col0 + + ( - col0 ) + tab1.col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT 13 + tab1.col1 AS col1 FROM tab1
----
23
26
39
query I rowsort
SELECT - + col2 * - col1 - col0 * - col1 FROM tab1 cor0
----
1210
1482
2288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6360
SELECT ALL + + CAST( NULL AS SIGNED ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6360
SELECT ALL + + CAST ( NULL AS INTEGER ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col1 * + col1 - + col2 AS col2 FROM tab0 AS cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * col0 + col2 col1 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT + ( + ( col0 ) ) + - col1 * - col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL - 49 * tab0.col1 + tab0.col1 AS col0 FROM tab0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL + - 60 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 1a0b29f8e6f82c54623a665ba4af8fd1
query I rowsort
SELECT DISTINCT - 53 + tab0.col1 FROM tab0, tab2 AS cor0
----
33
38
44
query I rowsort
SELECT col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + + 19 + col1 * col1 AS col1 FROM tab2 AS cor0
----
308
3500
980
query I rowsort
SELECT + col2 + - col1 * col1 + col1 * + col0 FROM tab1 cor0
----
-544
597
967
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6370
SELECT CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6370
SELECT CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 51 + + 8 FROM tab2 AS cor0
----
59
59
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6372
SELECT - ( ( + col1 ) ) + - CAST( col1 AS SIGNED ) + + col2 AS col2 FROM tab0
----
-100
-139
-193
skipif mysql # not compatible
query I rowsort label-6372
SELECT - ( ( + col1 ) ) + - CAST ( col1 AS INTEGER ) + + col2 AS col2 FROM tab0
----
-100
-139
-193
query I rowsort
SELECT ( + 77 ) AS col0 FROM tab2
----
77
77
77
query I rowsort
SELECT ALL - col2 + col1 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT ALL + 44 + col0 AS col2 FROM tab0 AS cor0
----
133
68
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6376
SELECT DISTINCT col0 + - col2 DIV 20 FROM tab0 AS cor0
----
23
35
85
skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT col0 + - col2 / 20 FROM tab0 AS cor0
----
23
35
85
query I rowsort
SELECT ( col2 ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + 58 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
onlyif mysql # use DIV operator for integer division
query I rowsort label-6379
SELECT ALL - col1 DIV col1 + 1 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - col1 / col1 + 1 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col2 + cor0.col0 + 80 AS col2 FROM tab1 cor0
----
29
64
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col0 FROM tab0 cor0
----
-21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col2 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + 37 - + col2 FROM tab0 AS cor0
----
-45
36
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6384
SELECT col1 * col0 * CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6384
SELECT col1 * col0 * CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT ALL + col1 DIV col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + col1 / col0 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-46
-57
-96
query I rowsort
SELECT ALL - col2 * col2 - - cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT - - 47 * col2 AS col0 FROM tab0 cor0
----
1551
3854
47
query I rowsort
SELECT + ( + col2 ) * - ( 68 ) * - cor0.col2 - 8 FROM tab1 cor0
----
198280
220924
626680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6389
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-6389
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT + + col2 + cor0.col1 DIV + 53 AS col2 FROM tab2 AS cor0
----
27
27
38
skipif mysql # not compatible
query I rowsort label-6390
SELECT + + col2 + cor0.col1 / + 53 AS col2 FROM tab2 AS cor0
----
27
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6391
SELECT ALL + - col1 + - col0 DIV 7 AS col0 FROM tab1 cor0
----
-19
-24
-26
skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL + - col1 + - col0 / 7 AS col0 FROM tab1 cor0
----
-19
-24
-26
query I rowsort
SELECT DISTINCT - - col2 * + ( col2 * cor0.col2 ) + col2 FROM tab0 AS cor0
----
2
35970
551450
query I rowsort
SELECT ALL + col2 * ( ( + cor0.col2 ) ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT cor0.col0 + 76 FROM tab1 AS cor0
----
140
156
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT DISTINCT + col2 DIV + 30 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT + col2 / + 30 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT col0 * + 69 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT DISTINCT + col0 * col1 - col2 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - cor0.col0 col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + cor1.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + + col0 * + ( col1 ) - - col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + - col0 * col2 - col2 * col0 FROM tab1 AS cor0
----
-15360
-324
-7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-6402
SELECT DISTINCT + - col0 - col2 DIV col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-6402
SELECT DISTINCT + - col0 - col2 / col2 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL - - cor0.col1 * 41 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 623a2110760016cd6c6cebc359e0e845
query I rowsort
SELECT - + col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + - 71 * col1 FROM tab0 AS cor0
----
-6106
-6461
-6887
query I rowsort
SELECT cor0.col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT + col1 * + col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + - col2 - + col0 * 44 FROM tab1 AS cor0
----
-186
-2873
-3616
query I rowsort
SELECT - col2 * ( 78 ) - col0 FROM tab0 AS cor0
----
-113
-2598
-6485
query I rowsort
SELECT ALL tab2.col0 + + tab2.col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT - 13 * col0 FROM tab0 AS cor0
----
-1157
-312
-455
query I rowsort
SELECT ALL col0 * 5 AS col0 FROM tab2
----
35
390
395
query I rowsort
SELECT 33 FROM tab0, tab2 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL + cor0.col1 + + col2 * col0 * + col2 FROM tab1 AS cor0
----
207946
737293
8774
query I rowsort
SELECT + col1 * col0 + ( - cor0.col2 * col1 ) FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT - - col0 * col0 + col2 * - col0 FROM tab2 AS cor0
----
-140
3239
4056
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT + col2 * col1 + + 49 AS col1 FROM tab0 AS cor0
----
146
2887
7511
query I rowsort
SELECT DISTINCT + 48 + - col1 * ( 6 ) AS col2 FROM tab2 AS cor0
----
-138
-306
-54
query I rowsort
SELECT DISTINCT col2 + col2 - col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - col2 col1 FROM tab0 AS cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6424
SELECT - col2 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6424
SELECT - col2 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6425
SELECT DISTINCT + col1 DIV + col1 col0 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT + col1 / + col1 col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT + - col0 + - col0 * 81 * col2 AS col1 FROM tab0 AS cor0
----
-2870
-591227
-64176
query I rowsort
SELECT ALL + col1 - + 86 AS col2 FROM tab2 AS cor0
----
-27
-55
-69
query I rowsort
SELECT DISTINCT col0 * + ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6429
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6429
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ( + col0 ) * - col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + cor0.col0 * 55 FROM tab0, tab2 AS cor0
----
9 values hashing to b19fd216dfa330e434e3d951022bc36d
query I rowsort
SELECT + 47 * - col1 FROM tab1
----
-1222
-470
-611
query I rowsort
SELECT DISTINCT ( - 10 ) * col1 * + tab2.col2 + col2 + col1 FROM tab2
----
-15255
-6405
-8312
query I rowsort
SELECT - cor1.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - + ( - 59 ) + col0 * col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-284
-474493
-492980
query I rowsort
SELECT - 71 * - col2 * + col0 FROM tab0 AS cor0
----
2485
518158
56232
query I rowsort
SELECT ALL + - col2 * - cor0.col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col1 FROM tab2 cor0
----
-63
-63
-63
query I rowsort
SELECT col0 * - col2 * col1 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - tab2.col2 * col1 * col0 AS col0 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-6443
SELECT DISTINCT col0 DIV - 50 col0 FROM tab2
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT col0 / - 50 col0 FROM tab2
----
-1
0
query I rowsort
SELECT ALL - ( tab1.col0 ) * col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL + 38 * + tab2.col1 AS col2 FROM tab2
----
1178
2242
646
onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT DISTINCT col2 DIV + 73 + - col0 * tab1.col0 + + col0 DIV 1 AS col1 FROM tab1
----
-4032
-6
-6319
skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT col2 / + 73 + - col0 * tab1.col0 + + col0 / 1 AS col1 FROM tab1
----
-4032
-6
-6319
query I rowsort
SELECT DISTINCT col2 + + 8 AS col1 FROM tab0
----
41
9
90
query I rowsort
SELECT + cor0.col1 - + 61 AS col0 FROM tab1 AS cor0
----
-35
-48
-51
query I rowsort
SELECT ALL col2 * 21 FROM tab0 AS cor0
----
1722
21
693
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2, tab1 AS cor2, tab1
----
13122 values hashing to 958e0bbd6a927138d7af71eb1e784c24
query I rowsort
SELECT DISTINCT col2 + - ( col2 ) FROM tab2
----
0
query I rowsort
SELECT ALL - - cor0.col2 + - col1 * col0 * col2 AS col0 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT ALL col2 + col2 * - col2 FROM tab1 cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT ( + ( col2 ) ) * col1 AS col0 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT ALL 99 DIV + cor0.col2 + + 55 FROM tab0, tab0 cor0
----
9 values hashing to 809745656fd2837c13ce95b300be7bc4
skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL 99 / + cor0.col2 + + 55 FROM tab0, tab0 cor0
----
9 values hashing to 809745656fd2837c13ce95b300be7bc4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6456
SELECT CAST( 58 AS SIGNED ) AS col2 FROM tab1
----
58
58
58
skipif mysql # not compatible
query I rowsort label-6456
SELECT CAST ( 58 AS INTEGER ) AS col2 FROM tab1
----
58
58
58
query I rowsort
SELECT col1 + col2 * - col0 - col0 FROM tab1
----
-139
-3702
-7747
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col0 + - col1 * cor0.col1 FROM tab0 cor0
----
-15579
-8188
-9444
query I rowsort
SELECT DISTINCT + col0 * - 14 AS col1 FROM tab1 AS cor0
----
-1120
-42
-896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col2 col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + + 60 * + col1 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT 32 + col1 FROM tab2 cor0
----
49
63
91
query I rowsort
SELECT - - 14 * col0 AS col2 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT ( - col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6465
SELECT + - ( col1 ) DIV - 13 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-6465
SELECT + - ( col1 ) / - 13 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * - ( col0 ) FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT 29 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2494
2639
2813
query I rowsort
SELECT ALL - 73 * 96 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 5470df13962fa51ec01bb1f7d0d6ff5d
query I rowsort
SELECT ALL - 78 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4
query I rowsort
SELECT ALL - cor0.col1 * col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6471
SELECT ALL + + cor0.col1 DIV - col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + + cor0.col1 / - col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT col0 * col2 + - col1 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6473
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6473
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6474
SELECT DISTINCT - col1 DIV + 12 - + col0 FROM tab0 AS cor0
----
-31
-43
-96
skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT - col1 / + 12 - + col0 FROM tab0 AS cor0
----
-31
-43
-96
query I rowsort
SELECT ALL col1 * + 10 FROM tab0 cor0
----
860
910
970
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6476
SELECT + col1 - CAST( col2 * + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-6476
SELECT + col1 - CAST ( col2 * + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col2 + col2 + - 28 FROM tab0 cor0
----
-26
136
38
query I rowsort
SELECT ALL + - col1 * col0 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6479
SELECT DISTINCT - col2 DIV + 67 AS col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6479
SELECT DISTINCT - col2 / + 67 AS col0 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT col0 * 42 FROM tab0 AS cor0
----
1008
1470
3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-6481
SELECT - - col2 * - col0 + - col2 * + cor0.col0 + - 1 * col1 DIV - col2 col0 FROM tab0 cor0
----
-14595
-1582
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6481
SELECT - - col2 * - col0 + - col2 * + cor0.col0 + - 1 * col1 / - col2 col0 FROM tab0 cor0
----
-14595
-1582
27
query I rowsort
SELECT DISTINCT col0 * ( col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - + col0 * - col2 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col2 + 92 * - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-8031
-8545
-9022
query I rowsort
SELECT DISTINCT + col2 * - col1 + - ( - cor0.col0 ) * + col0 * - col1 AS col2 FROM tab2 cor0
----
-106743
-2356
-360490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + ( - col1 ) col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col2 ) + - col0 col0 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT ALL + col0 * + tab2.col0 + - col0 * col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL tab2.col0 * tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col0 * col1 col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - ( 43 ) + col0 - - col2 AS col0 FROM tab1 AS cor0
----
133
14
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + col0 - - col2 col0 FROM tab1 AS cor0
----
1424
1461
691
query I rowsort
SELECT - col2 - - col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * col0 + 57 * col0 + - CAST ( col0 * + col2 AS REAL ) FROM tab2
----
-3666
-4740
161
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 - + col2 col2 FROM tab1
----
-2
-41
1
query I rowsort
SELECT ALL + 18 AS col1 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298
query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 FROM tab1
----
0
query I rowsort
SELECT + 69 * 61 AS col2 FROM tab2
----
4209
4209
4209
query I rowsort
SELECT - ( 35 + + col2 ) * + ( col0 ) AS col0 FROM tab0
----
-10413
-1260
-1632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6500
SELECT + CAST( NULL AS SIGNED ) + col0 + + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6500
SELECT + CAST ( NULL AS INTEGER ) + col0 + + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 45 + - 65 AS col2 FROM tab0
----
-20
-20
-20
query I rowsort
SELECT ( + col2 + tab2.col1 ) FROM tab2
----
55
58
85
query I rowsort
SELECT + 6 + col2 AS col1 FROM tab2 AS cor0
----
32
33
44
query I rowsort
SELECT ALL + 48 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
148
217
724
query I rowsort
SELECT ALL - + col0 * col1 + + 77 FROM tab2 AS cor0
----
-1266
-140
-4525
query I rowsort
SELECT DISTINCT + 51 * col2 AS col2 FROM tab2 AS cor0
----
1326
1377
1938
query I rowsort
SELECT ALL col2 + col2 * + col1 * + col1 AS col1 FROM tab2 cor0
----
11020
25974
90532
query I rowsort
SELECT DISTINCT + 53 - cor0.col1 FROM tab1 AS cor0
----
27
40
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6509
SELECT DISTINCT + + col1 DIV + col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6509
SELECT DISTINCT + + col1 / + col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT DISTINCT col0 * - 34 AS col2 FROM tab2
----
-238
-2652
-2686
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6511
SELECT + CAST( + col2 AS SIGNED ) / + tab1.col2 - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6511
SELECT + CAST ( + col2 AS INTEGER ) / + tab1.col2 - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 10 + + col2 * + col2 AS col2 FROM tab1 AS cor0
----
2906
3239
9206
query I rowsort
SELECT + - ( + 73 ) FROM tab2 AS cor0
----
-73
-73
-73
query I rowsort
SELECT + col1 * 23 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT - 49 * col0 * 53 FROM tab1 AS cor0
----
-166208
-207760
-7791
query I rowsort
SELECT - 73 * col2 + col1 * col0 FROM tab0 AS cor0
----
-345
2113
3322
query I rowsort
SELECT + - col1 * col1 * + col1 + + col0 + + col0 FROM tab1 AS cor0
----
-17570
-2037
-872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + col1 col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col0 * + col2 - + 44 AS col1 FROM tab0 AS cor0
----
-7342
-79
-836
onlyif mysql # use DIV operator for integer division
query I rowsort label-6520
SELECT DISTINCT - 98 DIV - col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT - 98 / - col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL + 99 + col0 FROM tab0 AS cor0
----
123
134
188
query I rowsort
SELECT - 52 * col1 FROM tab1 AS cor0
----
-1352
-520
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT ALL - col0 * col1 + col1 DIV 30 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - col0 * col1 + col1 / 30 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT cor0.col0 * col2 - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + + cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + - cor0.col1 + - 56 AS col2 FROM tab1 AS cor0
----
-66
-69
-82
query I rowsort
SELECT + col1 + + col2 + - col2 * col2 FROM tab2 AS cor0
----
-1389
-591
-671
query I rowsort
SELECT ALL 97 + - col2 FROM tab0
----
15
64
96
query I rowsort
SELECT + cor0.col2 * + col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + col1 + col1 * col1 FROM tab0 cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6531
SELECT - 23 DIV - col2 col2 FROM tab0 AS cor0
----
0
0
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6531
SELECT - 23 / - col2 col2 FROM tab0 AS cor0
----
0
0
23
query I rowsort
SELECT 2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab2, tab1 cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
query I rowsort
SELECT ALL 85 + ( - col1 ) * 58 FROM tab2 AS cor0
----
-1713
-3337
-901
onlyif mysql # use DIV operator for integer division
query I rowsort label-6535
SELECT + - col1 * + col2 + col2 + 12 DIV col0 AS col0 FROM tab1 AS cor0
----
-1152
-1346
-513
skipif mysql # not compatible
query I rowsort label-6535
SELECT + - col1 * + col2 + col2 + 12 / col0 AS col0 FROM tab1 AS cor0
----
-1152
-1346
-513
query I rowsort
SELECT + 61 * - col2 * + cor0.col1 FROM tab0 AS cor0
----
-173118
-455182
-5917
query I rowsort
SELECT ALL + + col1 * cor0.col0 + - col2 + - col0 * + col1 AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT 9 * col0 FROM tab2 AS cor0
----
63
702
711
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 + col0 col0 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT - col0 + 36 AS col2 FROM tab2 AS cor0
----
-42
-43
29
query I rowsort
SELECT DISTINCT col2 + 64 AS col1 FROM tab0 AS cor0
----
146
65
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6542
SELECT + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6542
SELECT + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * 9 AS col1 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT + col1 * + 12 FROM tab0
----
1032
1092
1164
query I rowsort
SELECT + 66 * - col0 FROM tab0 cor0
----
-1584
-2310
-5874
query I rowsort
SELECT DISTINCT - 39 + + col1 FROM tab2 cor0
----
-22
-8
20
query I rowsort
SELECT DISTINCT + - tab1.col2 FROM tab1, tab2, tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT - tab2.col2 DIV 44 - + col1 DIV 25 AS col0 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6548
SELECT - tab2.col2 / 44 - + col1 / 25 AS col0 FROM tab2
----
-1
-2
0
query I rowsort
SELECT cor1.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - - col2 + - ( col1 ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - + ( ( col2 ) ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL 74 FROM tab1, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT col2 DIV + 29 + + col0 AS col2 FROM tab2 cor0
----
7
78
80
skipif mysql # not compatible
query I rowsort label-6553
SELECT col2 / + 29 + + col0 AS col2 FROM tab2 cor0
----
7
78
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6554
SELECT 78 DIV - col0 FROM tab0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-6554
SELECT 78 / - col0 FROM tab0
----
-2
-3
0
query I rowsort
SELECT - + cor0.col0 - col1 * col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT - 8 + col0 + col0 * + 13 FROM tab1 AS cor0
----
1112
34
888
query I rowsort
SELECT + col0 * + 73 FROM tab1 cor0
----
219
4672
5840
query I rowsort
SELECT DISTINCT col0 * col2 * + 11 + + col2 AS col2 FROM tab2
----
2106
22334
33060
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6559
SELECT cor0.col1 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6559
SELECT cor0.col1 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + col0 * - col2 * col2 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - col2 NOT IN ( - col2 )
----
query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----
query I rowsort
SELECT ALL + tab1.col2 / col0 - + col2 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( - col2 / + col0 + col1 )
----
query I rowsort
SELECT + col2 + col1 * - col0 AS col0 FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6566
SELECT - col1 DIV - col0 + col2 * + col1 * + col2 FROM tab0
----
611885
93657
99
skipif mysql # not compatible
query I rowsort label-6566
SELECT - col1 / - col0 + col2 * + col1 * + col2 FROM tab0
----
611885
93657
99
query I rowsort
SELECT DISTINCT col2 * + col0 * - col2 AS col0 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT - col2 * - tab1.col1 + - col2 * - col0 * col1 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT + col2 * tab2.col0 + col0 + col2 AS col2 FROM tab2
----
2132
223
3119
query I rowsort
SELECT - col0 * tab1.col1 + + col1 - col0 FROM tab1
----
-1107
-55
-694
onlyif mysql # use DIV operator for integer division
query I rowsort label-6571
SELECT DISTINCT col0 DIV cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT col0 / cor0.col2 - col1 AS col2 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT col0 - - col2 * - cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - col1 * col1 - + col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT col1 - col0 AS col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col0 * col1 * + col1 FROM tab1 AS cor0
----
13520
2028
6400
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT ALL 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-6577
SELECT ALL col1 / col2 col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT col0 - - col2 AS col1 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + col2 * - tab2.col2 - col1 FROM tab2
----
-1461
-735
-760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6580
SELECT + col0 DIV + col1 + col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-6580
SELECT + col0 / + col1 + col1 FROM tab2
----
21
31
60
query I rowsort
SELECT - col2 * tab0.col0 - - tab0.col0 AS col0 FROM tab0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6582
SELECT - tab0.col0 * + col0 + - col0 DIV col0 AS col0 FROM tab0
----
-1226
-577
-7922
skipif mysql # not compatible
query I rowsort label-6582
SELECT - tab0.col0 * + col0 + - col0 / col0 AS col0 FROM tab0
----
-1226
-577
-7922
onlyif mysql # use DIV operator for integer division
query I rowsort label-6583
SELECT ALL + + cor0.col1 + col2 * col2 DIV - col2 FROM tab0 cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL + + cor0.col1 + col2 * col2 / - col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - + col2 + cor0.col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - col1 - col1 * col0 FROM tab0 cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL + cor0.col2 * col1 * - cor0.col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + col1 + - col1 * - col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT + cor0.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 DISTINCT col0 * + col1 col2 FROM tab2
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6590
SELECT - col2 * col1 DIV tab2.col1 - - col1 AS col0 FROM tab2
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-6590
SELECT - col2 * col1 / tab2.col1 - - col1 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT col1 * col0 * + col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT DISTINCT + - cor0.col1 + cor0.col1 - + col0 * cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6593
SELECT DISTINCT + col0 - col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT + col0 - col1 / - col0 AS col1 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - 68 + - col2 + col2 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT col0 * - cor0.col0 + ( + cor0.col0 ) * col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 58 + col0 * col0 AS col2 FROM tab1 cor0
----
-49
4038
6342
query I rowsort
SELECT col2 + col2 + 63 FROM tab2 AS cor0
----
115
117
139
query I rowsort
SELECT + col2 + col2 * + col0 AS col1 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-6600
SELECT - cor0.col0 DIV ( - col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6600
SELECT - cor0.col0 / ( - col0 ) AS col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6601
SELECT - col1 DIV 75 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6601
SELECT - col1 / 75 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 81 + + col2 * col0 AS col2 FROM tab0
----
116
7379
873
query I rowsort
SELECT ALL - 74 AS col1 FROM tab2
----
-74
-74
-74
query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 * - col0 ) > ( - col1 + + col1 * + col0 - col1 )
----
query I rowsort
SELECT DISTINCT + col0 + + col1 + + col1 FROM tab1 WHERE NOT NULL NOT IN ( col2 * col0 )
----
query I rowsort
SELECT ALL - col0 * col0 * - col1 + col1 + col0 * col1 FROM tab1
----
338
41610
84253
query I rowsort
SELECT col1 * - col1 + + col0 * - col2 AS col0 FROM tab0
----
-15579
-8188
-9444
query I rowsort
SELECT ALL col1 * + col0 * - tab0.col0 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT col1 + col1 + col2 FROM tab0
----
195
205
264
query I rowsort
SELECT ALL col2 + col2 + col0 * - col2 FROM tab2
----
-135
-1976
-2926
query I rowsort
SELECT + col1 * col0 * col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - col2 * - col1 * + col1 + col1 * col2 FROM tab0
----
246906
686504
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6613
SELECT DISTINCT - col1 DIV - col1 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - col1 / - col1 AS col0 FROM tab1
----
1
query I rowsort
SELECT + col0 FROM tab1 WHERE - col0 + col0 NOT BETWEEN + col2 + + col2 AND NULL
----
3
64
80
query I rowsort
SELECT - col2 * col1 * + col1 - tab1.col1 * + col2 FROM tab1
----
-17472
-37908
-6270
query I rowsort
SELECT - col0 * col0 * tab0.col1 + + col0 AS col2 FROM tab0
----
-118790
-49512
-720722
query I rowsort
SELECT + col0 * col2 + - tab2.col0 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - col0 AS col0 FROM tab0 WHERE NOT + col0 <> NULL
----
query I rowsort
SELECT DISTINCT - tab1.col2 / - col0 AS col2 FROM tab1 WHERE - col1 * - col1 = + col2
----
query I rowsort
SELECT ALL col1 * col0 AS col1 FROM tab2 WHERE NOT col2 >= NULL
----
query I rowsort
SELECT col0 + col1 * tab0.col0 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1, tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL col1 * ( + col0 * col2 ) AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + 25 AS col1 FROM tab0
----
25
query I rowsort
SELECT ALL 84 * col0 FROM tab1
----
252
5376
6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT + col0 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6626
SELECT + col0 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) * + col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL 44 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT - col2 * 79 AS col2 FROM tab1 AS cor0
----
-4266
-4503
-7584
query I rowsort
SELECT cor0.col0 * col2 * - col2 AS col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT - - cor0.col2 * 36 FROM tab1 AS cor0
----
1944
2052
3456
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6632
SELECT col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6632
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - col1 + col1 * col1 ) AS col0 FROM tab2
----
272
3422
930
query I rowsort
SELECT col0 - - 79 * - col0 AS col2 FROM tab0 AS cor0
----
-1872
-2730
-6942
onlyif mysql # use DIV operator for integer division
query I rowsort label-6635
SELECT col1 DIV 40 AS col1 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6635
SELECT col1 / 40 AS col1 FROM tab2
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6636
SELECT col1 DIV - col2 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6636
SELECT col1 / - col2 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - - 35 AS col1 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT + col2 + 47 * + col2 * ( col2 ) FROM tab2 AS cor0
----
31798
34290
67906
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6639
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 * + col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 * + col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + - col1 * + 17 + - col2 FROM tab0 AS cor0
----
-1495
-1629
-1650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6641
SELECT CAST( col2 AS SIGNED ) + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-6641
SELECT CAST ( col2 AS INTEGER ) + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - + 45 + col2 FROM tab0 AS cor0
----
-12
-44
37
query I rowsort
SELECT + - col0 * + col2 - col0 * col0 FROM tab1 AS cor0
----
-14080
-171
-7744
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6645
SELECT + + 13 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6645
SELECT + + 13 / col0 AS col1 FROM tab1 AS cor0
----
0
0
4
query I rowsort
SELECT col2 * - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT 93 + col1 FROM tab2 cor0
----
110
124
152
query I rowsort
SELECT DISTINCT - 10 AS col0 FROM tab2 AS cor0
----
-10
query I rowsort
SELECT ALL + 45 + + col1 * - col2 FROM tab0 AS cor0
----
-2793
-52
-7417
onlyif mysql # use DIV operator for integer division
query I rowsort label-6650
SELECT - col1 + cor0.col2 DIV + col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-6650
SELECT - col1 + cor0.col2 / + col0 AS col1 FROM tab0 AS cor0
----
-85
-91
-97
query I rowsort
SELECT DISTINCT + + col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + 18 + col0 AS col1 FROM tab2 AS cor0
----
25
96
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6653
SELECT ALL + cor0.col2 DIV cor0.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-6653
SELECT ALL + cor0.col2 / cor0.col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col1 ) + col1 - col1 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT + tab2.col2 * - col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 19 + + col2 + + col2 FROM tab1
----
173
89
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6657
SELECT col1 + + col1 * col1 + col2 DIV col2 FROM tab0
----
7483
8373
9507
skipif mysql # not compatible
query I rowsort label-6657
SELECT col1 + + col1 * col1 + col2 / col2 FROM tab0
----
7483
8373
9507
query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT + CAST( NULL AS SIGNED ) + - col1 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-6659
SELECT + CAST ( NULL AS INTEGER ) + - col1 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 52 + col0 + col1 AS col0 FROM tab1 AS cor0
----
126
145
81
query I rowsort
SELECT col0 * 89 AS col1 FROM tab1 AS cor0
----
267
5696
7120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT + CAST( col1 AS SIGNED ) * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-6662
SELECT + CAST ( col1 AS INTEGER ) * + col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 29 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT + 86 FROM tab1, tab2 AS cor0
----
86
query I rowsort
SELECT col1 * 20 AS col2 FROM tab2
----
1180
340
620
query I rowsort
SELECT DISTINCT - 68 * 87 AS col2 FROM tab0
----
-5916
onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT + 83 DIV col2 + col0 AS col1 FROM tab1
----
4
65
80
skipif mysql # not compatible
query I rowsort label-6667
SELECT + 83 / col2 + col0 AS col1 FROM tab1
----
4
65
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6668
SELECT ALL - CAST( NULL AS SIGNED ) - 83 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL - CAST ( NULL AS INTEGER ) - 83 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 * - col0 AS REAL ) + - col2 + col2 * col0 FROM tab2
----
351
4030
5966
onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT - col1 DIV 33 col2 FROM tab0
----
-2
-2
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6670
SELECT - col1 / 33 col2 FROM tab0
----
-2
-2
-2
query I rowsort
SELECT ALL - 1 - + col2 * col0 FROM tab0
----
-36
-7299
-793
query I rowsort
SELECT DISTINCT - tab2.col0 * tab2.col1 FROM tab2, tab1 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6673
SELECT DISTINCT col1 DIV 61 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT col1 / 61 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - + 31 * col2 + col0 FROM tab0 AS cor0
----
-2453
-999
4
query I rowsort
SELECT ALL - - 17 AS col0 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT ALL + - col0 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL + ( - col0 ) + - col1 * 84 FROM tab1 cor0
----
-1172
-2187
-904
query I rowsort
SELECT DISTINCT + 75 * - col0 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT ALL 37 + - 97 AS col0 FROM tab0 AS cor0
----
-60
-60
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6680
SELECT - CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6680
SELECT - CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + cor0.col1 + col1 * col1 AS col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col0 * - col2 * - col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL + + 73 FROM tab0 AS cor0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6685
SELECT - cor0.col0 DIV - 66 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6685
SELECT - cor0.col0 / - 66 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 94 + col1 * col2 + col0 col1 FROM tab2 AS cor0
----
-1694
-2847
-832
query I rowsort
SELECT ALL + 38 + - 42 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
query I rowsort
SELECT DISTINCT 23 + - tab1.col0 AS col1 FROM tab1
----
-41
-57
20
query I rowsort
SELECT - - ( 6 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT DISTINCT col2 + col0 * - col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL ( - 36 ) FROM tab1, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT - col0 + tab2.col2 * + 25 FROM tab2
----
572
668
871
query I rowsort
SELECT ALL - col0 * + 7 AS col1 FROM tab0 AS cor0
----
-168
-245
-623
query I rowsort
SELECT - + cor0.col1 * - col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col0 + + ( col2 ) AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + 12 FROM tab2, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL - 67 * 89 FROM tab0, tab1 cor0
----
9 values hashing to f940c2acb5edac762f673f8036bb7166
query I rowsort
SELECT 64 + 34 * - col0 AS col1 FROM tab2 AS cor0
----
-174
-2588
-2622
onlyif mysql # use DIV operator for integer division
query I rowsort label-6699
SELECT + col2 * + col1 DIV ( + col1 ) AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6699
SELECT + col2 * + col1 / ( + col1 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT col1 + - 62 - 92 FROM tab2 AS cor0
----
-123
-137
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + col2 + ( 72 ) AS col0 FROM tab1 cor0
----
126
129
168
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + 55 + cor0.col1 AS col0 FROM tab1 AS cor0
----
65
68
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT DISTINCT col0 * + col1 + 31 FROM tab2
----
1374
248
4633
query I rowsort
SELECT ALL ( col1 ) * + col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + + col0 * + col1 - + col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT - cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT + + col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - - 66 AS col2 FROM tab1 AS cor0
----
66
66
66
query I rowsort
SELECT ALL col0 + col0 * + 24 AS col2 FROM tab2 AS cor0
----
175
1950
1975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( col2 ) * 94 col1 FROM tab1 AS cor0
----
-5076
-5358
-9024
query I rowsort
SELECT + - cor0.col0 * + 24 + cor0.col2 * col2 FROM tab1 AS cor0
----
1713
2844
7296
onlyif mysql # use DIV operator for integer division
query I rowsort label-6715
SELECT col1 DIV 41 + + col2 FROM tab2 AS cor0
----
27
27
38
skipif mysql # not compatible
query I rowsort label-6715
SELECT col1 / 41 + + col2 FROM tab2 AS cor0
----
27
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6716
SELECT - col2 DIV col1 + 23 AS col1 FROM tab0 AS cor0
----
23
23
23
skipif mysql # not compatible
query I rowsort label-6716
SELECT - col2 / col1 + 23 AS col1 FROM tab0 AS cor0
----
23
23
23
query I rowsort
SELECT ALL + + col0 + + col0 * + col2 * + col1 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT col0 * 81 + col2 - col0 AS col0 FROM tab1 AS cor0
----
294
5177
6496
query I rowsort
SELECT DISTINCT + col1 + ( - 55 ) * - col2 FROM tab2 AS cor0
----
1489
1516
2107
query I rowsort
SELECT - cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col2 + 26 FROM tab0 AS cor0
----
-56
-7
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-6722
SELECT ALL tab1.col1 + col2 DIV - col0 FROM tab1
----
10
12
8
skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL tab1.col1 + col2 / - col0 FROM tab1
----
10
12
8
query I rowsort
SELECT ALL + col0 + + col0 * + ( tab2.col0 ) + - col1 FROM tab2
----
25
6103
6303
query I rowsort
SELECT + col2 * - col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + + ( col1 ) * col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT DISTINCT - ( col2 ) DIV + ( + col0 ) AS col1 FROM tab2 cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-6726
SELECT DISTINCT - ( col2 ) / + ( + col0 ) AS col1 FROM tab2 cor0
----
-3
0
query I rowsort
SELECT ALL - 35 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT - - ( + col2 ) AS col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6729
SELECT ALL + ( - cor0.col0 ) + + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL + ( - cor0.col0 ) + + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL cor1.col1 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL 65 AS col1 FROM tab0 AS cor0
----
65
65
65
query I rowsort
SELECT ALL - cor1.col0 + + 56 AS col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to ba35111e33288cfbd9ec9b740b17b766
query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - - col1 * + 19 AS col0 FROM tab1 AS cor0
----
190
247
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + cor0.col1 * + col1 col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT - 21 AS col2 FROM tab1
----
-21
-21
-21
query I rowsort
SELECT + ( + cor0.col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - tab0.col0 + - col1 col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + col0 + col1 + - 81 FROM tab1
----
-52
-7
12
query I rowsort
SELECT ALL + col1 * cor0.col1 + + col0 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT - - col0 + + col0 * col2 - 86 * - col2 AS col2 FROM tab0 cor0
----
14439
156
3654
query I rowsort
SELECT ALL 48 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT 67 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT cor0.col2 + 46 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1c7e2c9b050317e6fca79360109a86db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 58 * cor0.col1 - + col2 col2 FROM tab0 AS cor0
----
-5021
-5360
-5627
query I rowsort
SELECT ( col0 ) + col2 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT + ( - 42 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6747
SELECT + ( - 42 ) / - col1 AS col2 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT col2 + - col0 - - col1 AS col2 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + + 70 + 32 FROM tab2 AS cor0
----
102
102
102
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( + col1 ) + + ( col0 ) col0 FROM tab1
----
138
173
32
query I rowsort
SELECT - 76 + - 72 FROM tab2
----
-148
-148
-148
query I rowsort
SELECT 45 FROM tab0, tab2, tab2 AS cor0, tab0 AS cor1
----
81 values hashing to 8a6d20810140ea088e8e0fd74ffb8339
query I rowsort
SELECT DISTINCT col2 - + 54 FROM tab0
----
-21
-53
28
query I rowsort
SELECT DISTINCT - ( - col2 * + tab0.col1 ) - col1 FROM tab0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * 14 col2 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT col1 + + 1 FROM tab2 cor0
----
18
32
60
query I rowsort
SELECT ALL 40 AS col0 FROM tab1
----
40
40
40
query I rowsort
SELECT + 84 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT ALL - 9 AS col1 FROM tab1
----
-9
-9
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - cor0.col2 * col2 - - col2 * + col0 col0 FROM tab2 AS cor0
----
19604
19872
57874
query I rowsort
SELECT DISTINCT + col1 + col2 + 95 AS col2 FROM tab1 AS cor0
----
162
175
204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 + + col2 * col2 col2 FROM tab1 AS cor0
----
2818
3151
9118
query I rowsort
SELECT - cor0.col1 * + tab2.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 3f5ea019223361c8c7a5502ecc1aeefb
query I rowsort
SELECT ALL - col1 * - col0 + 72 FROM tab1 cor0
----
1112
150
712
query I rowsort
SELECT + 35 + col1 FROM tab2 AS cor0
----
52
66
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + col1 * ( col2 ) col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - 91 * - col2 - + 43 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1248
1296
1824
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL col1 * + col0 + - ( + col1 ) AS col0 FROM tab2 AS cor0
----
1326
186
4543
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 * col0 - + CAST ( + 39 AS REAL ) * + col1 FROM tab2 AS cor0
----
-1258
-6904
-8385
onlyif mysql # use DIV operator for integer division
query I rowsort label-6771
SELECT + cor0.col0 DIV col2 - + col1 AS col1 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-6771
SELECT + cor0.col0 / col2 - + col1 AS col1 FROM tab1 AS cor0
----
-13
-26
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6772
SELECT ( + 22 + col2 ) DIV - 51 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6772
SELECT ( + 22 + col2 ) / - 51 FROM tab2
----
-1
0
0
query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab2 cor0
----
77
query I rowsort
SELECT ALL - col1 * + cor0.col2 + col0 * - col1 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT ALL + 4 + - col1 AS col1 FROM tab1 AS cor0
----
-22
-6
-9
query I rowsort
SELECT ALL + col1 + - col0 + - 86 FROM tab2 AS cor0
----
-105
-148
-62
query I rowsort
SELECT ALL - 21 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT DISTINCT + + col1 * - 36 * + col2 FROM tab0 AS cor0
----
-102168
-268632
-3492
query I rowsort
SELECT + col0 * - col0 + col0 + col2 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
18386
22557
33878
query I rowsort
SELECT - + col2 + - ( col1 ) * - col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT - col1 + col1 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1978
3298
8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6782
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6782
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + + ( - col0 ) FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT col1 * + cor0.col0 + col2 + + col2 * - col1 * col1 FROM tab2 AS cor0
----
-25703
-85878
-9601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col1 FROM tab2, tab1 AS cor0
----
25
query I rowsort
SELECT - + col2 + - 41 * - col0 AS col1 FROM tab0 cor0
----
1434
3567
951
query I rowsort
SELECT DISTINCT col0 * 2 * + col2 AS col2 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT DISTINCT - + cor0.col2 * + ( - col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 36 * - 33 FROM tab1 AS cor0
----
1188
1188
1188
query I rowsort
SELECT ALL + cor0.col2 - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 7 * + 47 AS col0 FROM tab1 cor0
----
-329
query I rowsort
SELECT ALL - col1 * col2 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - ( - col0 ) + - 34 FROM tab0 AS cor0
----
-10
1
55
query I rowsort
SELECT ALL + + 43 * col0 AS col0 FROM tab0 cor0
----
1032
1505
3827
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) * + ( 83 ) AS col0 FROM tab2 cor0
----
2158
2241
3154
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6796
SELECT DISTINCT + - col2 + - col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT + - col2 + - col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + - 18 * - col1 AS col0 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL - 68 + col2 * col2 FROM tab1 AS cor0
----
2848
3181
9148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL 15 * - col0 AS col2 FROM tab0 AS cor0
----
-1335
-360
-525
query I rowsort
SELECT DISTINCT + + 75 + cor0.col2 FROM tab0 AS cor0
----
108
157
76
query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab0 AS cor0
----
-26
query I rowsort
SELECT - 0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6804
SELECT + col0 DIV ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6804
SELECT + col0 / ( cor0.col0 ) AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ( 39 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT - col1 * col0 + + 6 AS col1 FROM tab0 AS cor0
----
-2058
-3389
-8093
query I rowsort
SELECT + + col1 * ( 38 ) FROM tab0 cor0
----
3268
3458
3686
query I rowsort
SELECT - 44 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6809
SELECT + CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6809
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 27 + + col1 + + col0 FROM tab1
----
101
120
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT - col2 * col2 + + col1 * 27 + col1 FROM tab0 AS cor0
----
-4176
1319
2715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6813
SELECT ALL CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6814
SELECT DISTINCT - col2 * + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT - col2 * + col1 / - col1 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - 52 * - col2 + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
3534
4212
6240
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
9 values hashing to 737dbb26f65dd374aa3c71dabdd3903c
query I rowsort
SELECT ALL + 26 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor1.col2 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + + cor0.col2 * - cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - cor0.col1 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * 88 col2 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT ALL + col1 - tab2.col2 AS col0 FROM tab2
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6824
SELECT + - 90 DIV - col0 AS col2 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6824
SELECT + - 90 / - col0 AS col2 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT cor1.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT - 11 DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6826
SELECT - 11 / cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 57 + - tab2.col0 + col2 * 44 FROM tab2
----
1123
1238
1650
query I rowsort
SELECT col0 * 15 AS col2 FROM tab0
----
1335
360
525
onlyif mysql # use DIV operator for integer division
query I rowsort label-6829
SELECT - 86 DIV - 69 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6829
SELECT - 86 / - 69 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL col2 + 11 FROM tab0
----
12
44
93
query I rowsort
SELECT + col1 + col1 + + ( - col2 * col0 ) FROM tab2 AS cor0
----
-127
-1910
-2968
query I rowsort
SELECT + 49 + + col0 FROM tab1 AS cor0
----
113
129
52
query I rowsort
SELECT DISTINCT col2 + + col2 * col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT - ( col2 ) * 31 FROM tab2
----
-1178
-806
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT ALL tab2.col0 DIV + col0 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6835
SELECT ALL tab2.col0 / + col0 AS col0 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT - 97 - cor0.col2 DIV - col0 FROM tab0 AS cor0
----
-96
-97
-97
skipif mysql # not compatible
query I rowsort label-6836
SELECT - 97 - cor0.col2 / - col0 FROM tab0 AS cor0
----
-96
-97
-97
query I rowsort
SELECT DISTINCT + ( - col0 ) + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - 65 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT tab1.col2 + + col0 * col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT 41 - 98 FROM tab0, tab2 cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6841
SELECT ALL - col0 * CAST( - 8 AS SIGNED ) * col1 AS col0 FROM tab1
----
5120
624
8320
skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - col0 * CAST ( - 8 AS INTEGER ) * col1 AS col0 FROM tab1
----
5120
624
8320
query I rowsort
SELECT ALL - col0 * 26 AS col0 FROM tab0
----
-2314
-624
-910
query I rowsort
SELECT - - col1 * + ( col1 ) * + col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT ALL - cor0.col2 * 56 * ( tab0.col2 ) AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 240ee51719b3c18a9321103aeed6c5d9
query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab1 cor0
----
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - col2 * + 75 col1 FROM tab1 AS cor0
----
-4024
-4265
-7187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6847
SELECT DISTINCT CAST( 96 AS SIGNED ) FROM tab2 cor0
----
96
skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT CAST ( 96 AS INTEGER ) FROM tab2 cor0
----
96
query I rowsort
SELECT ALL - 9 + + 24 * col1 FROM tab0 AS cor0
----
2055
2175
2319
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 73 col0 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT - col1 + - 1 FROM tab1 cor0
----
-11
-14
-27
query I rowsort
SELECT ALL - - cor0.col0 + + col0 + col2 FROM tab1 AS cor0
----
185
256
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT - col0 DIV 37 - 79 * col2 AS col1 FROM tab2 AS cor0
----
-2056
-2133
-3004
skipif mysql # not compatible
query I rowsort label-6852
SELECT - col0 / 37 - 79 * col2 AS col1 FROM tab2 AS cor0
----
-2056
-2133
-3004
query I rowsort
SELECT col2 * 7 + - 66 + - col2 * col2 AS col0 FROM tab2 AS cor0
----
-1244
-560
-606
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6854
SELECT col0 + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-6854
SELECT col0 + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 * 97 FROM tab0 cor0
----
-3201
-7954
-97
query I rowsort
SELECT + - 13 AS col1 FROM tab0 cor0
----
-13
-13
-13
query I rowsort
SELECT ALL - col0 + col2 * col1 * col0 FROM tab1 AS cor0
----
36416
4209
99760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6858
SELECT CAST( col1 AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-6858
SELECT CAST ( col1 AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + cor0.col2 * col1 + col2 * - cor0.col2 - - 71 AS col1 FROM tab1 AS cor0
----
-1441
-2608
-7897
query I rowsort
SELECT col1 * + col2 + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col2 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col2 * tab0.col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT col2 * - 23 FROM tab0
----
-1886
-23
-759
query I rowsort
SELECT + 30 * cor0.col0 AS col1 FROM tab2 cor0
----
210
2340
2370
query I rowsort
SELECT 50 AS col0 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT - ( + col0 ) * col2 + tab2.col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT ALL - col0 * - 35 * - col1 AS col2 FROM tab2
----
-161070
-47005
-7595
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col1 FROM tab2, tab1 AS cor0, tab0, tab0 AS cor1
----
-54
-57
-96
query I rowsort
SELECT tab1.col2 * - 86 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to d17498ac0e257bcfabe8c52fbb5bd89d
query I rowsort
SELECT col1 + col2 * ( - 67 * - col2 ) FROM tab2 AS cor0
----
45351
48874
96765
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - col1 + - cor0.col0 * CAST ( cor0.col0 AS REAL ) col2 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT ALL - + col1 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6874
SELECT ALL - col0 + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL - col0 + col2 / - col1 AS col0 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT ALL + col2 + 72 * - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-15597
-331318
-96658
query I rowsort
SELECT - col0 + + col0 * - 35 * + col1 FROM tab2 AS cor0
----
-161148
-47084
-7602
query I rowsort
SELECT ( col1 ) - col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ( - cor0.col0 ) * + ( 30 ) + - cor0.col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 299f11c92945d296085bca4d90f777e1
query I rowsort
SELECT col0 * col0 * col2 + col2 FROM tab1
----
233529
540
614496
query I rowsort
SELECT + col1 * col1 + col0 FROM tab1
----
164
249
679
query I rowsort
SELECT - 62 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6882
SELECT DISTINCT - cor0.col2 * CAST( NULL AS SIGNED ) + col0 * + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - cor0.col2 * CAST ( NULL AS INTEGER ) + col0 * + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * + col2 - + col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL cor0.col2 * col2 + + ( + col1 ) * 79 * col1 + col0 AS col2 FROM tab1 AS cor0
----
11213
22647
56323
query I rowsort
SELECT DISTINCT - - col0 + 79 * 54 FROM tab0 AS cor0
----
4290
4301
4355
query I rowsort
SELECT ALL col2 * cor0.col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT 30 + col2 * + col2 FROM tab1
----
2946
3279
9246
query I rowsort
SELECT 50 * - ( - col1 ) + - cor0.col2 AS col0 FROM tab0 AS cor0
----
4267
4468
4849
onlyif mysql # use DIV operator for integer division
query I rowsort label-6889
SELECT 61 DIV - 59 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6889
SELECT 61 / - 59 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col0 * + col2 + col0 * - 81 AS col1 FROM tab0 AS cor0
----
-14507
-2736
-2870
query I rowsort
SELECT + 37 * + cor0.col0 + col0 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT ALL + col1 * + col2 * + col1 AS col0 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT ALL col0 + + cor0.col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + + ( - col1 ) * + ( - 84 * + col1 ) + - 32 AS col1 FROM tab2 AS cor0
----
24244
292372
80692
onlyif mysql # use DIV operator for integer division
query I rowsort label-6895
SELECT + - col2 DIV - col1 + cor0.col2 DIV col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6895
SELECT + - col2 / - col1 + cor0.col2 / col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT col1 * + col2 + col2 * + 37 + + col2 FROM tab2 AS cor0
----
1863
2090
2522
query I rowsort
SELECT ALL ( - cor0.col2 ) - + ( col1 ) FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6898
SELECT ALL + col2 DIV - col1 + - col1 col1 FROM tab2
----
-19
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6898
SELECT ALL + col2 / - col1 + - col1 col1 FROM tab2
----
-19
-31
-59
query I rowsort
SELECT - col1 * - cor0.col2 + col0 * col2 AS col1 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT DISTINCT - tab2.col0 + tab2.col0 AS col1 FROM tab2
----
0
query I rowsort
SELECT + col2 - col0 * - tab0.col2 AS col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col2 + col1 * - col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col1 + - col0 * col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT - - col2 * + col0 + col2 * - cor0.col2 FROM tab0 AS cor0
----
-297
34
574
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col2 * col2 col1 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT ALL tab0.col0 * - tab0.col2 + + col2 AS col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT ALL + - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col0 * col0 + col0 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-35
-5928
-6083
query I rowsort
SELECT DISTINCT - col1 * col0 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT col0 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL col1 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - col2 FROM tab2 WHERE NULL > + tab2.col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6913
SELECT - + col2 DIV + col2 + col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-6913
SELECT - + col2 / + col2 + col2 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT - col0 * col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT - col2 + col1 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
3394
664036
68079
query I rowsort
SELECT + col1 * col2 - + col1 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT col0 - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + 72 * col0 AS col0 FROM tab0 cor0
----
1728
2520
6408
query I rowsort
SELECT ALL - 72 + col2 * col0 AS col0 FROM tab1 AS cor0
----
3576
7608
90
query I rowsort
SELECT DISTINCT + cor0.col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT ALL 69 DIV - col0 FROM tab2 AS cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-6921
SELECT ALL 69 / - col0 FROM tab2 AS cor0
----
-9
0
0
query I rowsort
SELECT DISTINCT - col1 - - col0 FROM tab2 AS cor0
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 * col2 + cor0.col1 * col0 col0 FROM tab2 AS cor0
----
22816
25891
44486
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * - col1 col2 FROM tab2 cor0
----
-3559
-368
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-6925
SELECT DISTINCT - - 11 DIV col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - - 11 / col2 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - + col2 * cor0.col0 + col1 * col0 AS col1 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT col2 - - col0 * col2 * + col2 FROM tab0 AS cor0
----
26169
36
598518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + col2 * col0 - col0 FROM tab1 cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6930
SELECT - - col2 * + cor0.col0 - col1 DIV + col0 FROM tab0 AS cor0
----
33
7297
789
skipif mysql # not compatible
query I rowsort label-6930
SELECT - - col2 * + cor0.col0 - col1 / + col0 FROM tab0 AS cor0
----
33
7297
789
query I rowsort
SELECT + + col1 + col2 AS col1 FROM tab0 cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 - - col1 col0 FROM tab1
----
109
67
80
query I rowsort
SELECT - col0 * col2 + + col0 FROM tab2 WHERE NOT NULL BETWEEN col0 AND - col0
----
query I rowsort
SELECT - col2 FROM tab1 WHERE - col1 <> ( NULL )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) IN ( col0 * - col0 )
----
query I rowsort
SELECT + tab0.col0 + + tab0.col2 * - col2 + col0 * col2 AS col0 FROM tab0
----
-273
663
69
query I rowsort
SELECT col2 + col2 + + tab1.col2 FROM tab1
----
162
171
288
query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT - col2 < - col0 - - col0
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( tab2.col1 * + col0 )
----
query I rowsort
SELECT ALL + col1 * + col0 FROM tab0 WHERE NULL IN ( col1 )
----
query I rowsort
SELECT DISTINCT + col1 + + col0 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - col1 * col0 AS col2 FROM tab0 WHERE ( NULL ) BETWEEN ( + col1 ) AND NULL
----
query I rowsort
SELECT DISTINCT - col2 * - col1 * col1 AS col1 FROM tab0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6944
SELECT col1 * col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6944
SELECT col1 * col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + col1 * col2 FROM tab2 WHERE NOT NULL <= + col0 / - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 col0 FROM tab0
----
-2
-62
-62
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 * col1 ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col2 * + tab0.col1 AS col0 FROM tab0 WHERE NULL BETWEEN NULL AND + tab0.col2 * + col1
----
query I rowsort
SELECT + col2 - tab0.col0 AS col0 FROM tab0 WHERE ( + col0 ) <= + col2
----
9
query I rowsort
SELECT - col0 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT cor0.col2 AS col2 FROM tab1, tab2 AS cor0 WHERE NULL >= NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col1 )
----
query I rowsort
SELECT DISTINCT col0 + + col0 * tab0.col1 + col2 FROM tab0
----
2121
3431
8270
onlyif mysql # use DIV operator for integer division
query I rowsort label-6954
SELECT - col1 DIV + col0 + - col2 DIV col0 AS col1 FROM tab0 cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-6954
SELECT - col1 / + col0 + - col2 / col0 AS col1 FROM tab0 cor0
----
-1
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6955
SELECT + tab1.col0 DIV - col1 + tab1.col0 AS col2 FROM tab1
----
3
58
74
skipif mysql # not compatible
query I rowsort label-6955
SELECT + tab1.col0 / - col1 + tab1.col0 AS col2 FROM tab1
----
3
58
74
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab1, tab2 cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + tab2.col0 + - col0 * col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT ALL col2 + tab2.col1 * + col1 AS col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT + col1 - - col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL col0 + col0 * col0 AS col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL tab2.col2 + + col2 FROM tab2
----
52
54
76
query I rowsort
SELECT + col1 / col2 AS col0 FROM tab1 WHERE NULL <= col2
----
query I rowsort
SELECT ALL - col0 + col0 * col1 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - ( - col1 ) * col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + ( - ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
13122 values hashing to 14437cf3bb44cde925ac19d75ad6e0fc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 * tab2.col2 ) col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( + col2 ) * + col0 - + col0 * - col0 AS col2 FROM tab2
----
238
8112
9243
query I rowsort
SELECT ALL + + cor0.col1 * cor0.col1 + ( 51 ) FROM tab0 cor0
----
7447
8332
9460
query I rowsort
SELECT + - ( - col1 ) + + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6971
SELECT + col2 * + col0 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6971
SELECT + col2 * + col0 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 93 * col0 AS col2 FROM tab0 cor0
----
-2232
-3255
-8277
query I rowsort
SELECT + 1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6974
SELECT ALL col2 DIV col1 col2 FROM tab1 AS cor0
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6974
SELECT ALL col2 / col1 col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + ( - col2 ) + - 16 * col1 + - col0 FROM tab2 AS cor0
----
-1048
-389
-530
onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT DISTINCT - col2 DIV - 53 + ( tab0.col1 * col0 ) AS col1 FROM tab0
----
2064
3395
8100
skipif mysql # not compatible
query I rowsort label-6976
SELECT DISTINCT - col2 / - 53 + ( tab0.col1 * col0 ) AS col1 FROM tab0
----
2064
3395
8100
query I rowsort
SELECT ALL + col1 * + ( + col0 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT col0 + + 83 AS col0 FROM tab1 AS cor0
----
147
163
86
query I rowsort
SELECT + - col2 * - 24 FROM tab2 AS cor0
----
624
648
912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 * + col1 col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - + ( col0 ) * + col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 10 * col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT ALL 82 + col0 FROM tab0 AS cor0
----
106
117
171
query I rowsort
SELECT + 20 AS col0 FROM tab1 AS cor0
----
20
20
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6985
SELECT + CAST( col2 AS SIGNED ) + - col2 AS col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6985
SELECT + CAST ( col2 AS INTEGER ) + - col2 AS col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + 23 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
23
query I rowsort
SELECT DISTINCT - ( ( + col0 ) ) + - col1 AS col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + + ( col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + ( - cor0.col2 ) + col0 * + col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT - + cor0.col1 + + col1 + + cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT 29 * col2 + - col1 AS col0 FROM tab1 cor0
----
1540
1643
2771
query I rowsort
SELECT 90 * - tab1.col0 AS col1 FROM tab1
----
-270
-5760
-7200
query I rowsort
SELECT + ( ( col2 ) + + col2 ) AS col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col0 * + col1 col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT 18 * - col0 FROM tab1 AS cor0
----
-1152
-1440
-54
query I rowsort
SELECT + - ( 32 ) + + col2 FROM tab0 AS cor0
----
-31
1
50
query I rowsort
SELECT DISTINCT + - col0 * 7 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT ALL + 43 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7000
SELECT DISTINCT col2 DIV 6 FROM tab2
----
4
6
skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT col2 / 6 FROM tab2
----
4
6
query I rowsort
SELECT DISTINCT - col1 * 85 FROM tab2
----
-1445
-2635
-5015
query I rowsort
SELECT + 25 FROM tab1, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7003
SELECT col0 + tab1.col0 DIV + col0 AS col2 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7003
SELECT col0 + tab1.col0 / + col0 AS col2 FROM tab1
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + - col1 * col2 col0 FROM tab0 cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7005
SELECT DISTINCT - + 58 * + col0 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
-58
skipif mysql # not compatible
query I rowsort label-7005
SELECT DISTINCT - + 58 * + col0 / cor0.col0 AS col0 FROM tab1 AS cor0
----
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7006
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - 42 + + 22 FROM tab2
----
-20
-20
-20
query I rowsort
SELECT col1 * 27 * + col2 + col1 * + col1 AS col2 FROM tab1
----
15490
33865
38584
query I rowsort
SELECT ( ( + col0 ) ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab0
----
-72
query I rowsort
SELECT DISTINCT col1 + - 37 * cor0.col0 FROM tab1 AS cor0
----
-2358
-2947
-85
query I rowsort
SELECT col2 - 57 AS col2 FROM tab0 AS cor0
----
-24
-56
25
query I rowsort
SELECT ALL - cor0.col0 * 71 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
-524
-5564
-5647
query I rowsort
SELECT ALL - + col0 + 8 AS col0 FROM tab0 cor0
----
-16
-27
-81
query I rowsort
SELECT col0 * - col1 * col1 + - col1 * col0 FROM tab1 AS cor0
----
-14560
-2106
-7040
onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT ALL - col0 DIV 20 AS col1 FROM tab0 cor0
----
-1
-1
-4
skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL - col0 / 20 AS col1 FROM tab0 cor0
----
-1
-1
-4
query I rowsort
SELECT + cor0.col2 - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 * 2 AS col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL - col2 + + 8 FROM tab1 AS cor0
----
-46
-49
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7020
SELECT DISTINCT + col2 DIV CAST( 62 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7020
SELECT DISTINCT + col2 / CAST ( 62 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT - + cor0.col1 - ( col0 ) FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7022
SELECT ALL col2 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col1 - - col1 * + col1 * 48 AS col0 FROM tab0
----
355094
397579
451729
query I rowsort
SELECT DISTINCT + col2 + - col2 - 75 AS col0 FROM tab1
----
-75
query I rowsort
SELECT DISTINCT - col0 - - tab1.col2 * col2 AS col2 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT - col1 + - col0 + + 62 * + col1 AS col0 FROM tab1
----
1583
546
713
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT 73 * + col0 FROM tab0
----
1752
2555
6497
query I rowsort
SELECT tab1.col0 - - 95 * col1 AS col0 FROM tab1
----
1014
1315
2473
query I rowsort
SELECT DISTINCT + col0 + col1 + - col1 AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT col1 - + 1 AS col1 FROM tab1
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT ALL col0 DIV - 83 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL col0 / - 83 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - cor0.col0 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + col0 * col1 + - ( tab1.col2 ) + col1 * col1 FROM tab1
----
1113
683
700
query I rowsort
SELECT ALL tab0.col0 + col0 AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - cor0.col1 + + ( col2 ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT cor0.col1 * - ( 16 ) FROM tab2 cor0
----
-272
-496
-944
query I rowsort
SELECT + + col1 + ( col2 ) AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL col2 + + cor0.col0 + + 99 AS col1 FROM tab0 AS cor0
----
135
156
270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * 34 col2 FROM tab1 AS cor0
----
-128
-2186
-2733
query I rowsort
SELECT + 74 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT DISTINCT col2 * col2 * col2 + col0 * + 20 FROM tab0
----
36417
553148
701
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT ALL col1 * ( + col0 ) FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7045
SELECT - col2 + + col1 DIV col2 AS col1 FROM tab0 AS cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-7045
SELECT - col2 + + col1 / col2 AS col1 FROM tab0 AS cor0
----
-31
-81
96
query I rowsort
SELECT ALL - col1 * ( col2 ) FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7047
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * - 43 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * - 43 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT cor0.col2 + + 33 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT DISTINCT - col2 + - 27 * col0 FROM tab0 AS cor0
----
-2485
-681
-946
query I rowsort
SELECT ALL + ( - 80 ) AS col0 FROM tab2
----
-80
-80
-80
query I rowsort
SELECT - + 33 AS col0 FROM tab2 AS cor0
----
-33
-33
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7052
SELECT ALL + CAST( + col0 AS SIGNED ) - - col0 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL + CAST ( + col0 AS INTEGER ) - - col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT 10 * - 3 AS col0 FROM tab2 AS cor0
----
-30
onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT ALL + col0 * col0 + col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL + col0 * col0 + col2 / cor0.col2 AS col2 FROM tab0 AS cor0
----
1226
577
7922
query I rowsort
SELECT 49 * + cor0.col1 AS col1 FROM tab2 cor0
----
1519
2891
833
query I rowsort
SELECT DISTINCT + ( - col0 ) - col1 * + 61 * - col1 FROM tab1 AS cor0
----
10229
41233
6036
query I rowsort
SELECT DISTINCT + - col2 * - col0 + + ( + col1 + col0 ) FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT + - cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + + col2 col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7060
SELECT ALL + - col1 DIV cor0.col0 + + cor0.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-7060
SELECT ALL + - col1 / cor0.col0 + + cor0.col1 col0 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT + 85 * - col1 AS col2 FROM tab0 AS cor0
----
-7310
-7735
-8245
onlyif mysql # use DIV operator for integer division
query I rowsort label-7062
SELECT DISTINCT + - 25 DIV col2 + - 90 AS col0 FROM tab0 AS cor0
----
-115
-90
skipif mysql # not compatible
query I rowsort label-7062
SELECT DISTINCT + - 25 / col2 + - 90 AS col0 FROM tab0 AS cor0
----
-115
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7063
SELECT ALL - - col0 * - col0 + + ( 9 ) DIV col0 AS col0 FROM tab2 AS cor0
----
-48
-6084
-6241
skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL - - col0 * - col0 + + ( 9 ) / col0 AS col0 FROM tab2 AS cor0
----
-48
-6084
-6241
query I rowsort
SELECT col1 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT col2 * - col0 + ( + col1 * col2 + + 46 * + col2 ) FROM tab2 AS cor0
----
-608
1890
702
query I rowsort
SELECT DISTINCT - 74 + col1 FROM tab1 AS cor0
----
-48
-61
-64
query I rowsort
SELECT DISTINCT 77 - - col0 AS col2 FROM tab0 AS cor0
----
101
112
166
query I rowsort
SELECT ALL + cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + 51 * + col2 + col0 FROM tab2 AS cor0
----
1384
1404
2017
query I rowsort
SELECT - + col0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT col1 * - col1 * + 96 AS col0 FROM tab1 AS cor0
----
-16224
-64896
-9600
query I rowsort
SELECT + cor0.col1 * + col0 AS col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - cor0.col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + 33 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT col2 * - ( - 39 ) + - col2 FROM tab2 AS cor0
----
1026
1444
988
query I rowsort
SELECT ALL - 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + 18 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-121032
-18
-19602
query I rowsort
SELECT ALL + 57 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7081
SELECT ALL 18 DIV + col1 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL 18 / + col1 AS col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT + 11 * 18 + col0 AS col1 FROM tab0 cor0
----
222
233
287
query I rowsort
SELECT - col2 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT 43 * - col2 * - cor0.col2 FROM tab0 cor0
----
289132
43
46827
query I rowsort
SELECT 10 * col0 AS col1 FROM tab1 AS cor0
----
30
640
800
query I rowsort
SELECT col1 + + 72 * col1 AS col0 FROM tab2
----
1241
2263
4307
query I rowsort
SELECT - ( col0 ) * tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7088
SELECT DISTINCT 67 + + tab2.col2 + - CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7088
SELECT DISTINCT 67 + + tab2.col2 + - CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0
----
NULL
query I rowsort
SELECT ( + ( col2 ) ) AS col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + ( - 91 ) FROM tab0
----
-91
-91
-91
query I rowsort
SELECT ALL + 22 - cor0.col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 680750bf691d33349e6b9be9ee14b5cf
query I rowsort
SELECT - col0 * ( col2 + col0 * + ( - 19 ) ) AS col2 FROM tab0
----
10152
143201
23240
query I rowsort
SELECT DISTINCT - ( - col0 ) + cor0.col2 * + col0 FROM tab0 AS cor0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 52 col0 FROM tab1 AS cor0
----
52
52
52
query I rowsort
SELECT + - ( - col1 ) + - cor0.col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7097
SELECT + CAST( 6 AS SIGNED ) FROM tab1 AS cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-7097
SELECT + CAST ( 6 AS INTEGER ) FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT DISTINCT + 40 + col0 * col2 AS col2 FROM tab0 cor0
----
7338
75
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-7099
SELECT DISTINCT - col0 + - col0 DIV col2 AS col1 FROM tab1
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-7099
SELECT DISTINCT - col0 + - col0 / col2 AS col1 FROM tab1
----
-3
-65
-80
query I rowsort
SELECT ALL + 32 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT + col0 * + ( + tab2.col2 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT 8 * tab0.col1 FROM tab0, tab2 AS cor0
----
688
728
776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT 92 DIV + col1 + col2 * ( - col2 ) col2 FROM tab0
----
-1
-1088
-6723
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7103
SELECT 92 / + col1 + col2 * ( - col2 ) col2 FROM tab0
----
-1
-1088
-6723
query I rowsort
SELECT ( - 14 ) - - col2 AS col0 FROM tab0
----
-13
19
68
query I rowsort
SELECT 5 - ( col2 ) AS col1 FROM tab0
----
-28
-77
4
query I rowsort
SELECT - 27 + - 72 FROM tab0
----
-99
-99
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT - + 68 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7107
SELECT - + 68 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7108
SELECT col0 * + col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7108
SELECT col0 * + col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 4 * cor1.col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 5c8a4a6a354c51cbd345cc55323c1b1e
query I rowsort
SELECT + 17 * col0 * - ( - col1 ) FROM tab2
----
22831
3689
78234
query I rowsort
SELECT ALL col1 * col2 * - tab2.col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT + - col2 * - col2 - - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT DISTINCT - col0 + - col2 * col2 AS col0 FROM tab1 cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL - - col1 * col2 + + col2 + - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
2785
7453
query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab1
----
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - tab2.col0 col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + col1 * + 34 FROM tab2 AS cor0
----
1054
2006
578
onlyif mysql # use DIV operator for integer division
query I rowsort label-7118
SELECT DISTINCT col1 + tab2.col2 + tab2.col1 DIV col1 FROM tab2
----
56
59
86
skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT col1 + tab2.col2 + tab2.col1 / col1 FROM tab2
----
56
59
86
query I rowsort
SELECT ALL col0 + ( + col2 * - col2 ) FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT col0 * - 42 AS col1 FROM tab0 AS cor0
----
-1008
-1470
-3738
query I rowsort
SELECT - - col2 + + ( - ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - cor0.col1 * + ( col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col0 * ( - 71 ) + col2 FROM tab2 AS cor0
----
524
5564
5647
query I rowsort
SELECT ALL + + col1 * 24 * - col1 FROM tab1 AS cor0
----
-16224
-2400
-4056
query I rowsort
SELECT ALL - col2 * + col1 - col2 * col2 AS col1 FROM tab0 AS cor0
----
-14186
-3927
-98
query I rowsort
SELECT ALL + - 51 FROM tab1 AS cor0
----
-51
-51
-51
query I rowsort
SELECT col0 * ( - col2 ) + - col1 * - col2 FROM tab2 cor0
----
-2356
-494
648
query I rowsort
SELECT DISTINCT + col0 * 71 AS col0 FROM tab2 AS cor0
----
497
5538
5609
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - 82 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-25
-28
14
query I rowsort
SELECT ALL + col2 + ( col1 ) AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL 1 * + col2 * col1 + cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1292
1674
3068
query I rowsort
SELECT - - 59 + + 88 * col2 AS col2 FROM tab2 cor0
----
2347
2435
3403
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7134
SELECT + - CAST( col0 AS SIGNED ) * col1 + + col1 * - col0 * + col2 FROM tab1 AS cor0
----
-100880
-37120
-4290
skipif mysql # not compatible
query I rowsort label-7134
SELECT + - CAST ( col0 AS INTEGER ) * col1 + + col1 * - col0 * + col2 FROM tab1 AS cor0
----
-100880
-37120
-4290
query I rowsort
SELECT DISTINCT 41 + + col1 FROM tab2 AS cor0
----
100
58
72
query I rowsort
SELECT ALL - 11 + - 56 FROM tab2 AS cor0
----
-67
-67
-67
query I rowsort
SELECT - 1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 * + 15 col1 FROM tab0 AS cor0
----
1005
1005
1005
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * - col1 col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT 1 * col2 + + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL col0 * 28 + col2 FROM tab1
----
138
1849
2336
query I rowsort
SELECT ALL + - ( - col1 ) * ( col0 * col1 ) FROM tab0 AS cor0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - col1 * + col1 + - 21 AS col2 FROM tab2 AS cor0
----
-310
-3502
-982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col0 col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT - - col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7146
SELECT - - col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7147
SELECT - + col1 + col1 DIV + 88 FROM tab0 AS cor0
----
-86
-90
-96
skipif mysql # not compatible
query I rowsort label-7147
SELECT - + col1 + col1 / + 88 FROM tab0 AS cor0
----
-86
-90
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT ALL - 7 DIV + 63 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7148
SELECT ALL - 7 / + 63 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + ( + col1 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7150
SELECT - + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7150
SELECT - + col0 / col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 83 * + col0 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT - col2 DIV col0 + - 15 AS col1 FROM tab1
----
-15
-16
-33
skipif mysql # not compatible
query I rowsort label-7153
SELECT - col2 / col0 + - 15 AS col1 FROM tab1
----
-15
-16
-33
query I rowsort
SELECT ALL + col2 * + col2 - ( - 18 ) * tab1.col2 FROM tab1
----
10944
3888
4275
query I rowsort
SELECT ALL + col2 + col0 - 29 FROM tab1
----
147
28
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 94 col1 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT ALL + + col0 + - cor0.col1 * col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT 11 * + 53 AS col2 FROM tab0 AS cor0
----
583
query I rowsort
SELECT ALL 9 * + 75 * col1 AS col1 FROM tab2
----
11475
20925
39825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7160
SELECT + CAST( col1 AS SIGNED ) + + col0 AS col1 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-7160
SELECT + CAST ( col1 AS INTEGER ) + + col0 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0, tab1 AS cor0
----
87
query I rowsort
SELECT DISTINCT ( 97 ) AS col0 FROM tab0 AS cor0
----
97
query I rowsort
SELECT 34 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
1666
206856
212194
query I rowsort
SELECT ALL + col1 * col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + 96 * col2 * col1 FROM tab0 AS cor0
----
272448
716352
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7166
SELECT - col0 + - col2 * CAST( + 92 AS SIGNED ) * col2 FROM tab1 cor0
----
-268275
-298972
-847952
skipif mysql # not compatible
query I rowsort label-7166
SELECT - col0 + - col2 * CAST ( + 92 AS INTEGER ) * col2 FROM tab1 cor0
----
-268275
-298972
-847952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7167
SELECT CAST( NULL AS SIGNED ) * 9 * col1 + + CAST( + ( col1 ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7167
SELECT CAST ( NULL AS INTEGER ) * 9 * col1 + + CAST ( + ( col1 ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 84 + col1 AS col1 FROM tab0
----
170
175
181
query I rowsort
SELECT DISTINCT ( + tab2.col0 ) FROM tab2
----
7
78
79
query I rowsort
SELECT ( - 30 ) FROM tab0
----
-30
-30
-30
query I rowsort
SELECT DISTINCT cor0.col0 * 95 + col0 AS col1 FROM tab1 AS cor0
----
288
6144
7680
query I rowsort
SELECT ALL col1 * 5 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT DISTINCT - - col1 + ( cor0.col2 ) FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + col2 + - ( - col2 ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - - col1 * + ( 85 ) + cor0.col0 AS col0 FROM tab2 AS cor0
----
1524
2642
5093
query I rowsort
SELECT + col1 + 93 AS col2 FROM tab2 AS cor0
----
110
124
152
query I rowsort
SELECT DISTINCT - col1 + cor0.col1 * col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT cor0.col0 * 95 * + col2 FROM tab2 AS cor0
----
17955
192660
285190
query I rowsort
SELECT ALL + + col1 * 7 FROM tab2 AS cor0
----
119
217
413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7180
SELECT + - col0 * CAST( NULL AS SIGNED ) + - ( cor0.col0 ) * 79 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7180
SELECT + - col0 * CAST ( NULL AS INTEGER ) + - ( cor0.col0 ) * 79 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 73 + col2 + ( - 59 ) AS col2 FROM tab0
----
-131
-50
-99
query I rowsort
SELECT DISTINCT + - col1 * 67 AS col1 FROM tab1 AS cor0
----
-1742
-670
-871
query I rowsort
SELECT - tab1.col0 * + 43 * + col0 AS col1 FROM tab1
----
-176128
-275200
-387
query I rowsort
SELECT ( + ( + col1 ) ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 * + 43 FROM tab1
----
1118
430
559
query I rowsort
SELECT + tab1.col2 * 28 AS col1 FROM tab1
----
1512
1596
2688
query I rowsort
SELECT - cor0.col2 * + 60 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 2d5eb23b2f60a81eeab38e1c3b1d968a
query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab0
----
45
query I rowsort
SELECT 55 * + col0 AS col0 FROM tab0
----
1320
1925
4895
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7190
SELECT - - col0 * - col2 + col0 * CAST( - col2 * col2 AS SIGNED ) + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-211527
-744864
-8856
skipif mysql # not compatible
query I rowsort label-7190
SELECT - - col0 * - col2 + col0 * CAST ( - col2 * col2 AS INTEGER ) + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-211527
-744864
-8856
query I rowsort
SELECT + 80 + 34 * + col1 FROM tab2 cor0
----
1134
2086
658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7192
SELECT ( + col0 ) * - cor0.col1 + - CAST( NULL AS SIGNED ) + 91 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-7192
SELECT ( + col0 ) * - cor0.col1 + - CAST ( NULL AS INTEGER ) + 91 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 15 + col0 FROM tab1
----
-12
49
65
query I rowsort
SELECT + ( + col0 ) + + col2 + cor0.col2 FROM tab1 AS cor0
----
111
178
272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col2 FROM tab1 AS cor0
----
18
18
18
query I rowsort
SELECT - 69 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to ca5f4bc365dc2c6b14187d6ffc83a01d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7197
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7197
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col2 + col1 * 30 * 89 + - tab0.col0 AS col0 FROM tab0
----
229629
242963
258956
query I rowsort
SELECT DISTINCT + + ( + col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 * - col0 + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT - + cor0.col2 - cor0.col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7202
SELECT ALL CAST( cor0.col0 AS SIGNED ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL CAST ( cor0.col0 AS INTEGER ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT col1 + 49 FROM tab2 cor0
----
108
66
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7204
SELECT + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7204
SELECT + col0 / + col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - 59 + col0 FROM tab1
----
-56
21
5
query I rowsort
SELECT 14 * - col2 AS col2 FROM tab0 AS cor0
----
-1148
-14
-462
onlyif mysql # use DIV operator for integer division
query I rowsort label-7207
SELECT col2 DIV 13 AS col0 FROM tab2
----
2
2
2
skipif mysql # not compatible
query I rowsort label-7207
SELECT col2 / 13 AS col0 FROM tab2
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7208
SELECT + col1 DIV col2 + + col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-7208
SELECT + col1 / col2 + + col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + 66 * col0 * - 23 FROM tab2 AS cor0
----
-10626
-118404
-119922
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7210
SELECT ALL + col2 + - col2 * CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort label-7210
SELECT ALL + col2 + - col2 * CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col2 * 22 col2 FROM tab1 AS cor0
----
1162
1244
2099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7212
SELECT DISTINCT + - col2 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-7212
SELECT DISTINCT + - col2 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7213
SELECT ALL - + col1 + CAST( NULL AS SIGNED ) * + 91 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7213
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) * + 91 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + cor0.col1 - - ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col1 col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7216
SELECT ALL + col2 * + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + col2 * + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + col2 * 16 + - col2 AS col0 FROM tab0 AS cor0
----
-1394
-17
-561
query I rowsort
SELECT col0 * col2 * col2 AS col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL - 87 * tab0.col2 + + 65 FROM tab0
----
-22
-2806
-7069
query I rowsort
SELECT DISTINCT - 45 * col0 + - 53 FROM tab1
----
-188
-2933
-3653
query I rowsort
SELECT ALL - col2 + - ( col2 ) * + col0 FROM tab2 cor0
----
-2054
-216
-3040
query I rowsort
SELECT + ( col0 ) * + cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + cor0.col0 * col2 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + col1 * 92 * col2 FROM tab0
----
261096
686504
8924
query I rowsort
SELECT DISTINCT - 64 FROM tab2, tab0 AS cor0
----
-64
query I rowsort
SELECT 21 + col0 + tab1.col2 AS col2 FROM tab1
----
142
197
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7227
SELECT + col2 * tab1.col1 DIV col2 AS col0 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7227
SELECT + col2 * tab1.col1 / col2 AS col0 FROM tab1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7228
SELECT + + CAST( 82 AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
skipif mysql # not compatible
query I rowsort label-7228
SELECT + + CAST ( 82 AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT DISTINCT + col0 + col2 + - ( 86 ) * - col1 AS col2 FROM tab2 cor0
----
1579
2700
5178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
1
33
82
query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 * - ( - 21 ) FROM tab1
----
-11970
-26208
-29484
query I rowsort
SELECT - ( col1 ) * + col2 AS col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + 20 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT DISTINCT - col0 + col0 * col0 * ( - col2 + - col2 ) AS col2 FROM tab2
----
-2653
-316446
-474395
onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT ALL - col1 + cor0.col0 DIV - col0 - col2 FROM tab2 AS cor0
----
-56
-59
-86
skipif mysql # not compatible
query I rowsort label-7235
SELECT ALL - col1 + cor0.col0 / - col0 - col2 FROM tab2 AS cor0
----
-56
-59
-86
query I rowsort
SELECT ALL + 89 + col1 AS col2 FROM tab2
----
106
120
148
query I rowsort
SELECT - col2 + - col0 + - col1 FROM tab1
----
-131
-189
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7238
SELECT ALL + col1 * + col1 + - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
7399
8282
9411
skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + col1 * + col1 + - col1 / - col0 AS col2 FROM tab0 AS cor0
----
7399
8282
9411
onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT + cor0.col1 DIV + col2 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7239
SELECT + cor0.col1 / + col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 43 AS col2 FROM tab1 AS cor0
----
43
query I rowsort
SELECT - col0 + - 52 * col0 FROM tab1
----
-159
-3392
-4240
query I rowsort
SELECT tab0.col2 + + ( - col1 * col1 ) AS col0 FROM tab0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-7243
SELECT + col0 + tab2.col0 DIV + col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-7243
SELECT + col0 + tab2.col0 / + col0 FROM tab2
----
79
8
80
query I rowsort
SELECT DISTINCT col2 * ( - col0 ) AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 + - ( - 64 ) * col0 AS col0 FROM tab0 cor0
----
1560
2275
5785
query I rowsort
SELECT + + col0 + 91 * col2 AS col1 FROM tab2 cor0
----
2444
2464
3537
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col1 + - col1 FROM tab1 AS cor0
----
-106
-55
-84
query I rowsort
SELECT ALL - + col1 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + cor0.col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col0 + + col2 - col0 AS col2 FROM tab2 AS cor0
----
-120
-130
13
query I rowsort
SELECT + + col2 + + 84 * + col1 FROM tab1 AS cor0
----
1188
2238
897
query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - - ( col0 ) * col2 - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - col0 * col0 * - col1 FROM tab0 AS cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( + col0 ) ) col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 97 * cor0.col1 FROM tab0 AS cor0
----
8342
8827
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7257
SELECT ALL col2 * ( col1 ) * - col1 + ( col2 ) DIV + 1 + 57 * + col0 FROM tab0 AS cor0
----
-242667
-673887
-7413
skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL col2 * ( col1 ) * - col1 + ( col2 ) / + 1 + 57 * + col0 FROM tab0 AS cor0
----
-242667
-673887
-7413
query I rowsort
SELECT - 99 * - col1 AS col1 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT DISTINCT + col2 - 82 * - cor0.col1 FROM tab2 AS cor0
----
1432
2569
4864
query I rowsort
SELECT + - col2 + - 39 AS col1 FROM tab0 AS cor0
----
-121
-40
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-7261
SELECT ALL - + cor0.col1 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL - + cor0.col1 + col1 / col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7262
SELECT DISTINCT + col0 * col2 + + col1 DIV - CAST( 80 * - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT + col0 * col2 + + col1 / - CAST ( 80 * - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 46 + - ( col0 ) + + col2 FROM tab1 AS cor0
----
-30
-53
5
query I rowsort
SELECT DISTINCT + 44 + - 31 FROM tab2, tab2 AS cor0
----
13
query I rowsort
SELECT DISTINCT 75 * col2 AS col2 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT DISTINCT - + col1 + 59 + cor0.col2 FROM tab0 cor0
----
-37
50
6
query I rowsort
SELECT + 12 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT ALL - 76 + col1 FROM tab2 AS cor0
----
-17
-45
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT ALL - col0 + col1 DIV + col2 FROM tab0 AS cor0
----
-22
-88
62
skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL - col0 + col1 / + col2 FROM tab0 AS cor0
----
-22
-88
62
query I rowsort
SELECT DISTINCT 99 * - col2 + ( + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-2
-3181
-8027
query I rowsort
SELECT DISTINCT + + col0 + 4 AS col0 FROM tab0 AS cor0
----
28
39
93
query I rowsort
SELECT DISTINCT + - col1 * cor0.col0 - - col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + col2 + + col2 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - col2 * - col1 + - 37 FROM tab0 AS cor0
----
2801
60
7425
query I rowsort
SELECT cor0.col0 + col1 * + cor0.col2 * + col1 FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT - 35 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT DISTINCT col1 - - cor0.col2 DIV col2 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7277
SELECT DISTINCT col1 - - cor0.col2 / col2 AS col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT - cor0.col1 + + col2 * + 3 AS col1 FROM tab2 cor0
----
19
50
97
query I rowsort
SELECT ALL - - col2 + 16 AS col1 FROM tab2 AS cor0
----
42
43
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7280
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + 38 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7280
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + 38 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + 58 * col2 col0 FROM tab1
----
-3648
216
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7282
SELECT ALL + ( - col2 ) + CAST( + col2 * + col1 AS SIGNED ) AS col0 FROM tab1
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-7282
SELECT ALL + ( - col2 ) + CAST ( + col2 * + col1 AS INTEGER ) AS col0 FROM tab1
----
1152
1350
513
query I rowsort
SELECT - - col1 + + 88 FROM tab1 AS cor0
----
101
114
98
query I rowsort
SELECT ALL - 77 * - col2 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT + - 29 + 87 * col1 AS col1 FROM tab0 AS cor0
----
7453
7888
8410
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 AS REAL ) + - cor0.col0 * 46 FROM tab2 cor0
----
-295
-3562
-3596
onlyif mysql # use DIV operator for integer division
query I rowsort label-7287
SELECT ALL - cor0.col1 + + 96 * col1 DIV 9 AS col1 FROM tab0 AS cor0
----
831
879
937
skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL - cor0.col1 + + 96 * col1 / 9 AS col1 FROM tab0 AS cor0
----
831
879
937
query I rowsort
SELECT - 1 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 7 + col1 + - col2 col0 FROM tab0 AS cor0
----
2
46
89
query I rowsort
SELECT ALL 16 * col2 FROM tab1 AS cor0
----
1536
864
912
query I rowsort
SELECT - - col0 * col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-7292
SELECT ALL + col2 DIV col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7292
SELECT ALL + col2 / col1 + - col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 1 * + col2 + col2 * + 35 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT ALL - 0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - ( - 5 ) * - col2 + + ( + col0 ) AS col2 FROM tab0 AS cor0
----
-141
-321
30
query I rowsort
SELECT ALL - col0 * + ( - cor0.col0 ) FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + ( - col0 ) + col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - ( + col2 ) * col0 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 8 col0 FROM tab2, tab0 AS cor0
----
-8
query I rowsort
SELECT col1 * col1 + col2 + 55 FROM tab2
----
1043
3562
382
query I rowsort
SELECT + col0 * col1 + col2 + + 42 AS col1 FROM tab2 AS cor0
----
1423
286
4670
query I rowsort
SELECT 98 + + col1 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT - col0 * col2 + 96 FROM tab1 AS cor0
----
-3552
-66
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-7304
SELECT - 32 DIV col1 FROM tab1 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7304
SELECT - 32 / col1 FROM tab1 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - cor0.col0 * - col1 + + col2 - 59 FROM tab2 AS cor0
----
1322
185
4569
query I rowsort
SELECT - col0 + col2 + + col2 AS col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT col0 * + col2 + col0 + - cor0.col1 FROM tab1 AS cor0
----
139
3702
7747
query I rowsort
SELECT - 90 * + col0 + col0 - + col0 FROM tab1 AS cor0
----
-270
-5760
-7200
query I rowsort
SELECT ALL col1 * col2 + col0 AS col2 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT - - cor0.col0 + col2 DIV 64 FROM tab0 cor0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-7310
SELECT - - cor0.col0 + col2 / 64 FROM tab0 cor0
----
24
35
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-7311
SELECT - 69 + cor0.col0 DIV col0 FROM tab1 AS cor0
----
-68
-68
-68
skipif mysql # not compatible
query I rowsort label-7311
SELECT - 69 + cor0.col0 / col0 FROM tab1 AS cor0
----
-68
-68
-68
query I rowsort
SELECT + cor0.col1 * + col0 * + col1 + col0 - + col1 FROM tab1 AS cor0
----
13587
2005
6454
query I rowsort
SELECT - tab2.col1 + + cor0.col2 FROM tab2, tab0 cor0
----
9 values hashing to a315d120f944e987e8b5f24efc4da004
query I rowsort
SELECT tab2.col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col2 * + 39 + + col2 FROM tab0
----
1320
3280
40
query I rowsort
SELECT ALL col2 + + ( + col0 ) + - tab1.col1 AS col2 FROM tab1
----
111
163
31
query I rowsort
SELECT - 74 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL IN ( cor0.col2 )
----
query I rowsort
SELECT ALL - 57 * col0 + - col1 AS col0 FROM tab0 AS cor0
----
-1454
-2092
-5164
query I rowsort
SELECT ALL ( + 5 ) * + col2 FROM tab1 cor0
----
270
285
480
query I rowsort
SELECT DISTINCT + col0 + - 43 FROM tab0 AS cor0
----
-19
-8
46
query I rowsort
SELECT DISTINCT - 90 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 cor1, tab1 AS cor2
----
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7323
SELECT ALL CAST( - 61 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL CAST ( - 61 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT DISTINCT - col2 * 41 - col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1324
-2901
-5668
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL col1 * + 58 FROM tab0 AS cor0
----
4988
5278
5626
query I rowsort
SELECT - col2 * col1 - col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - col2 * - 17 + 42 FROM tab1 AS cor0
----
1011
1674
960
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 * - 88 FROM tab0 AS cor0
----
-14732
-8537
-8657
query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab2, tab2 AS cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-7331
SELECT - cor0.col0 DIV col1 + col0 AS col2 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-7331
SELECT - cor0.col0 / col1 + col0 AS col2 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
24
35
89
query I rowsort
SELECT ALL + 73 * col2 FROM tab0
----
2409
5986
73
query I rowsort
SELECT 48 * - cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to dc2b56952b2528c559ae6a69737db8f2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7335
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7335
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col2 * + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT tab1.col0 - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT 81 AS col2 FROM tab2
----
81
81
81
query I rowsort
SELECT ALL - 41 * col0 AS col2 FROM tab2
----
-287
-3198
-3239
query I rowsort
SELECT ALL + col1 + - col2 * - 40 FROM tab1 AS cor0
----
2186
2290
3853
query I rowsort
SELECT ALL - col2 + ( col2 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + col0 + + 78 * + col2 FROM tab0 cor0
----
113
2598
6485
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 25 col0 FROM tab0 AS cor0
----
-57
-8
24
query I rowsort
SELECT DISTINCT col2 * cor0.col0 AS col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7345
SELECT CAST( - 28 AS SIGNED ) + cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 36fbe539d611557de08914453fa11eff
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7345
SELECT CAST ( - 28 AS INTEGER ) + cor0.col1 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 36fbe539d611557de08914453fa11eff
query I rowsort
SELECT ALL + col1 * ( col2 * + col1 ) FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
-86
-91
-97
query I rowsort
SELECT ALL - col0 * - ( 81 ) FROM tab0
----
1944
2835
7209
query I rowsort
SELECT DISTINCT - tab1.col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-3
-64
-80
query I rowsort
SELECT ALL - tab0.col1 + + col1 * col0 AS col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT ALL - ( cor0.col2 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT ALL - col1 * col0 + ( col1 ) * - cor0.col2 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT - - col2 * - cor0.col0 * - col1 + - col2 * col0 AS col2 FROM tab0 AS cor0
----
3360
656820
67320
query I rowsort
SELECT 17 * + col0 * - tab1.col1 FROM tab1
----
-10880
-1326
-17680
query I rowsort
SELECT 42 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT ALL + 84 + + tab0.col2 FROM tab0
----
117
166
85
query I rowsort
SELECT ALL col1 * + col2 + - col2 AS col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT tab0.col1 + + col0 * - col0 FROM tab0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7359
SELECT cor0.col0 DIV 76 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-7359
SELECT cor0.col0 / 76 FROM tab1, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7360
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7360
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7362
SELECT ALL col2 + col2 * - CAST( col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
skipif mysql # not compatible
query I rowsort label-7362
SELECT ALL col2 + col2 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT - + 24 + - col1 AS col2 FROM tab0 AS cor0
----
-110
-115
-121
query I rowsort
SELECT + - 89 + - col2 AS col0 FROM tab1 cor0
----
-143
-146
-185
onlyif mysql # use DIV operator for integer division
query I rowsort label-7365
SELECT ALL - - cor0.col2 + cor0.col2 * col2 DIV col0 AS col0 FROM tab0 AS cor0
----
1
157
78
skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - - cor0.col2 + cor0.col2 * col2 / col0 AS col0 FROM tab0 AS cor0
----
1
157
78
query I rowsort
SELECT ALL - - 91 + col2 FROM tab0 AS cor0
----
124
173
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7367
SELECT DISTINCT + + ( col0 ) * + col0 + + col1 + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
35
4106
6413
skipif mysql # not compatible
query I rowsort label-7367
SELECT DISTINCT + + ( col0 ) * + col0 + + col1 + col1 / col2 AS col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL ( - col0 ) + - col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 + 40 FROM tab0 AS cor0
----
212
222
234
query I rowsort
SELECT - + col0 * - col0 + - 26 * col1 AS col0 FROM tab2 AS cor0
----
-757
4550
5799
query I rowsort
SELECT DISTINCT + col1 * + col0 + + col1 - + col0 FROM tab0 AS cor0
----
2126
3457
8101
query I rowsort
SELECT DISTINCT + + 81 * + col1 AS col0 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL - cor0.col1 + - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT - + 47 * col1 AS col2 FROM tab2 AS cor0
----
-1457
-2773
-799
query I rowsort
SELECT 15 + 74 + col1 FROM tab1
----
102
115
99
query I rowsort
SELECT ALL col2 * - 44 + + col2 + 23 AS col1 FROM tab1
----
-2299
-2428
-4105
onlyif mysql # use DIV operator for integer division
query I rowsort label-7377
SELECT DISTINCT tab0.col2 DIV + col0 col1 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7377
SELECT DISTINCT tab0.col2 / + col0 col1 FROM tab0
----
0
1
query I rowsort
SELECT DISTINCT 12 + 47 FROM tab1
----
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7379
SELECT - CAST( NULL AS SIGNED ) / + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7379
SELECT - CAST ( NULL AS INTEGER ) / + col0 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
3
64
80
query I rowsort
SELECT ( cor1.col2 ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - - 89 + col1 * - ( cor0.col2 ) FROM tab1 AS cor0
----
-1159
-1315
-481
query I rowsort
SELECT tab2.col2 * - tab2.col1 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col2 + + 13 AS col0 FROM tab1
----
-41
-44
-83
query I rowsort
SELECT col0 * 46 FROM tab1 AS cor0
----
138
2944
3680
query I rowsort
SELECT ALL + col0 + col1 + ( col1 * + 43 ) FROM tab1 AS cor0
----
1147
504
652
query I rowsort
SELECT 48 - - cor0.col0 FROM tab2 AS cor0
----
126
127
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col1 + 72 FROM tab0 AS cor0
----
-14
-19
-25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT - + CAST( - col2 AS SIGNED ) + col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-7390
SELECT - + CAST ( - col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + 73 * col2 + - cor0.col2 + 88 * + 14 FROM tab1 cor0
----
5120
5336
8144
query I rowsort
SELECT ALL + col0 + 6 * - col1 AS col0 FROM tab0 AS cor0
----
-457
-492
-547
onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT DISTINCT - - col1 + - col0 * col0 DIV + 17 AS col1 FROM tab2 AS cor0
----
-298
-350
29
skipif mysql # not compatible
query I rowsort label-7393
SELECT DISTINCT - - col1 + - col0 * col0 / + 17 AS col1 FROM tab2 AS cor0
----
-298
-350
29
query I rowsort
SELECT col0 * + 80 FROM tab0 AS cor0
----
1920
2800
7120
query I rowsort
SELECT - 18 * ( col2 * + 38 ) AS col1 FROM tab1 cor0
----
-36936
-38988
-65664
query I rowsort
SELECT + - ( 54 ) FROM tab2 AS cor0
----
-54
-54
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT - ( 86 ) - - col1 DIV + col0 FROM tab0
----
-83
-84
-85
skipif mysql # not compatible
query I rowsort label-7397
SELECT - ( 86 ) - - col1 / + col0 FROM tab0
----
-83
-84
-85
query I rowsort
SELECT ALL - 98 FROM tab2, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + cor0.col1 col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + col1 - - col0 * col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + cor0.col2 * + col1 * + 23 - ( cor0.col2 + - 81 ) * col0 FROM tab1 AS cor0
----
14646
27504
32373
query I rowsort
SELECT - col1 * + col1 + + cor0.col2 AS col0 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT + 99 + col0 FROM tab0 AS cor0
----
123
134
188
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT - ( tab1.col2 + col1 ) FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ALL col2 * - col1 * ( + 79 ) AS col1 FROM tab0 AS cor0
----
-224202
-589498
-7663
query I rowsort
SELECT col0 * col1 * 97 - - col0 AS col0 FROM tab1 AS cor0
----
100960
62144
7569
query I rowsort
SELECT DISTINCT - col0 + - col2 * 33 FROM tab2 AS cor0
----
-1333
-898
-936
onlyif mysql # use DIV operator for integer division
query I rowsort label-7409
SELECT ALL - ( col1 ) DIV 72 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - ( col1 ) / 72 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - col2 + + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT 71 * - col2 FROM tab1 AS cor0
----
-3834
-4047
-6816
query I rowsort
SELECT + + col2 + col2 * - col1 * col2 FROM tab2 AS cor0
----
-22572
-24510
-39858
query I rowsort
SELECT DISTINCT 44 FROM tab0, tab1 AS cor0
----
44
query I rowsort
SELECT + + col1 + + 68 * - col2 FROM tab0 cor0
----
-2158
-5485
29
query I rowsort
SELECT - col1 + - col1 * 76 AS col1 FROM tab0 AS cor0
----
-6622
-7007
-7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT - col2 DIV + 60 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7416
SELECT - col2 / + 60 FROM tab0 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7417
SELECT + - col1 DIV + 39 AS col2 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-7417
SELECT + - col1 / + 39 AS col2 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT ALL 58 + cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to fbd2c3707bc639edb0ea057b45eb4637
query I rowsort
SELECT DISTINCT 69 + - cor1.col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-13
36
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab0, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7422
SELECT + + CAST( 60 AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349
skipif mysql # not compatible
query I rowsort label-7422
SELECT + + CAST ( 60 AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 1ef27a1d2784b3ab642571630db70349
query I rowsort
SELECT ALL - + col0 * col0 * - ( + col1 ) AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - - col1 * col0 * + 31 + col2 FROM tab0 AS cor0
----
105246
251151
64017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 col1 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 + col1 col2 FROM tab1
----
110
94
97
query I rowsort
SELECT + 81 * - col0 + col1 AS col0 FROM tab1
----
-217
-5174
-6467
query I rowsort
SELECT ALL + 28 * ( + cor1.col0 ) AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 30aa3594d67af24d5272b70ab120f514
query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) * - tab1.col0 AS col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT ALL col0 * + ( col1 * - col1 ) FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL + col2 + + ( + 94 ) * + col2 AS col1 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT DISTINCT + + col0 * + ( col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT cor0.col1 * 10 FROM tab2 AS cor0
----
170
310
590
query I rowsort
SELECT - - col1 * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - col0 * 77 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT DISTINCT + col2 + - 16 * - 69 FROM tab1 cor0
----
1158
1161
1200
query I rowsort
SELECT ALL + col0 + - col1 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-101
-586
-973
query I rowsort
SELECT - col1 + + col2 * col2 * + col1 FROM tab0
----
0
611793
93568
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * + col2 col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 * + col0 * col0 AS col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + col1 + col0 * col2 - + col2 FROM tab2
----
193
2061
2981
query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) > NULL
----
query I rowsort
SELECT - col0 + col1 * tab2.col0 FROM tab2
----
1264
210
4524
query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) IN ( col2 + tab0.col1 )
----
query I rowsort
SELECT ALL tab1.col0 * + col0 FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT col1 * col2 + col1 + col2 AS col0 FROM tab2
----
1619
701
895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab1.col2 * + col0 col1 FROM tab1 WHERE NULL < ( - col0 / - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7449
SELECT + col0 DIV col2 + - col1 * col1 * col1 + + col2 * col1 AS col2 FROM tab1
----
-16172
-429
-949
skipif mysql # not compatible
query I rowsort label-7449
SELECT + col0 / col2 + - col1 * col1 * col1 + + col2 * col1 AS col2 FROM tab1
----
-16172
-429
-949
onlyif mysql # use DIV operator for integer division
query I rowsort label-7450
SELECT + col1 * - tab1.col1 + col0 DIV + col0 FROM tab1
----
-168
-675
-99
skipif mysql # not compatible
query I rowsort label-7450
SELECT + col1 * - tab1.col1 + col0 / + col0 FROM tab1
----
-168
-675
-99
query I rowsort
SELECT DISTINCT + 96 + + col0 AS col0 FROM tab2 AS cor0
----
103
174
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + col0 + col2 col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7453
SELECT ALL + - ( col2 ) * CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7453
SELECT ALL + - ( col2 ) * CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 - col0 * - col2 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT ALL + 60 * - col1 + 4 FROM tab2 cor0
----
-1016
-1856
-3536
query I rowsort
SELECT + 32 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7457
SELECT cor0.col2 DIV - col1 + - col1 FROM tab1 AS cor0
----
-15
-20
-28
skipif mysql # not compatible
query I rowsort label-7457
SELECT cor0.col2 / - col1 + - col1 FROM tab1 AS cor0
----
-15
-20
-28
query I rowsort
SELECT 12 * - col2 FROM tab0 cor0
----
-12
-396
-984
query I rowsort
SELECT 79 + col2 FROM tab0 AS cor0
----
112
161
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + cor0.col0 col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + col1 * col1 + + ( + col0 ) * col0 AS col2 FROM tab2 AS cor0
----
1010
6530
9565
query I rowsort
SELECT ALL - col1 - - col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7463
SELECT DISTINCT - - col2 * col1 * - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-7463
SELECT DISTINCT - - col2 * col1 * - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - col0 + - col0 * - col2 AS col1 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT 92 + col1 AS col2 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT + 98 * col0 AS col0 FROM tab1 AS cor0
----
294
6272
7840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7467
SELECT 30 * col2 * CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
1050
218940
23760
skipif mysql # not compatible
query I rowsort label-7467
SELECT 30 * col2 * CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
1050
218940
23760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7468
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7468
SELECT - CAST ( NULL AS REAL ) col1 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + + cor0.col1 + 65 * + col0 FROM tab1 AS cor0
----
221
4170
5213
query I rowsort
SELECT ALL - col0 + + cor0.col2 + col1 * + col0 AS col1 FROM tab2 cor0
----
1302
237
4550
query I rowsort
SELECT DISTINCT col2 * 88 - 15 AS col1 FROM tab0 AS cor0
----
2889
7201
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7472
SELECT DISTINCT cor0.col1 + 42 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
14
16
27
skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT cor0.col1 + 42 / cor0.col1 AS col2 FROM tab1 AS cor0
----
14
16
27
query I rowsort
SELECT + 54 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT ALL + 72 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL + - 50 FROM tab2 AS cor0
----
-50
-50
-50
query I rowsort
SELECT - 76 AS col2 FROM tab2 AS cor0
----
-76
-76
-76
query I rowsort
SELECT ALL - ( col0 ) + + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 40 col1 FROM tab0 AS cor0
----
126
131
137
query I rowsort
SELECT DISTINCT - - ( - 57 ) FROM tab2 AS cor0
----
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7480
SELECT - - col0 + 28 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7480
SELECT - - col0 + 28 / cor0.col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT cor0.col2 + col1 - col0 * 3 FROM tab2 AS cor0
----
-149
-182
37
query I rowsort
SELECT DISTINCT + 30 * - 60 FROM tab2 cor0
----
-1800
query I rowsort
SELECT + cor0.col0 * + 57 FROM tab0 cor0
----
1368
1995
5073
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 31 + col2 col0 FROM tab0 AS cor0
----
-30
2
51
query I rowsort
SELECT cor2.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT + 47 + ( col1 ) FROM tab2
----
106
64
78
query I rowsort
SELECT ALL ( col2 ) + + col0 * col2 + col1 FROM tab0
----
133
7471
911
query I rowsort
SELECT ALL - col2 + col2 * col0 * col1 FROM tab0
----
3394
664036
68079
query I rowsort
SELECT 58 + + 66 AS col1 FROM tab0
----
124
124
124
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7491
SELECT + 32 + col0 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7491
SELECT + 32 + col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7492
SELECT - CAST( NULL AS SIGNED ) + - 42 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7492
SELECT - CAST ( NULL AS INTEGER ) + - 42 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 38 + + 73 FROM tab0
----
35
query I rowsort
SELECT - ( + col1 ) + col2 AS col1 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT ALL + 87 DIV col1 + + col0 AS col2 FROM tab0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL + 87 / col1 + + col0 AS col2 FROM tab0
----
25
35
89
query I rowsort
SELECT DISTINCT 26 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
26
query I rowsort
SELECT + - col0 + ( + col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT col1 * 98 + + 70 FROM tab0 AS cor0
----
8498
8988
9576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7499
SELECT - + col1 * + CAST( col2 + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-1079
-470
-728
skipif mysql # not compatible
query I rowsort label-7499
SELECT - + col1 * + CAST ( col2 + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT ALL - col1 * - col2 + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT + col1 + + cor0.col0 AS col0 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 - col0 col0 FROM tab0 AS cor0
----
-13
41
52
query I rowsort
SELECT DISTINCT col1 + - ( - col1 ) + - col1 FROM tab1
----
10
13
26
query I rowsort
SELECT + 23 * col2 * + col0 + + col2 + ( col1 ) FROM tab0 AS cor0
----
168027
18335
903
query I rowsort
SELECT col0 * + 30 * + 84 AS col1 FROM tab1
----
161280
201600
7560
query I rowsort
SELECT ( - cor0.col0 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0, tab0 cor1
----
972 values hashing to 909b7ebab62aff8f69dc42ccbb5c2eae
query I rowsort
SELECT col1 + + ( - col1 ) + col2 * - col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + 51 * + col2 FROM tab1 AS cor0
----
2754
2907
4896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( + tab0.col2 ) * + col1 col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + 81 * + tab0.col2 AS col1 FROM tab0, tab1 AS cor0
----
2673
6642
81
query I rowsort
SELECT col1 * - col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT ( 40 ) * + col1 FROM tab0
----
3440
3640
3880
query I rowsort
SELECT 9 * - 16 * col0 AS col2 FROM tab1
----
-11520
-432
-9216
query I rowsort
SELECT + col2 + + ( - tab2.col1 ) AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + ( - col1 ) * + col1 + - col1 AS col1 FROM tab1
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-7517
SELECT DISTINCT - - col2 * - col2 DIV col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT - - col2 * - col2 / col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - + 25 FROM tab2 cor0
----
-25
query I rowsort
SELECT - 20 * + col2 FROM tab1 cor0
----
-1080
-1140
-1920
query I rowsort
SELECT DISTINCT + - 3 + col2 * col2 FROM tab1 AS cor0
----
2913
3246
9213
query I rowsort
SELECT ALL col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7522
SELECT DISTINCT - - ( col2 ) / CAST( NULL AS SIGNED ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - - ( col2 ) / CAST ( NULL AS INTEGER ) + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col2 col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL + 68 AS col1 FROM tab1
----
68
68
68
query I rowsort
SELECT - 11 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7120875811e4d19a19b69cd34b6bc202
query I rowsort
SELECT - - ( - col1 ) * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 * col2 * - col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7528
SELECT - + col1 + + col2 DIV + col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-7528
SELECT - + col1 + + col2 / + col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59
query I rowsort
SELECT col1 + 11 * + cor0.col1 FROM tab1 AS cor0
----
120
156
312
query I rowsort
SELECT col1 + 0 AS col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - - col0 + 22 FROM tab1 AS cor0
----
102
25
86
query I rowsort
SELECT ALL - + cor0.col2 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2862
3192
9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7534
SELECT - col2 DIV 90 col0 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7534
SELECT - col2 / 90 col0 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT ( - col1 + + col0 ) FROM tab0
----
-2
-62
query I rowsort
SELECT 80 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT 96 * + cor0.col0 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT - 45 * + cor0.col0 - + col1 FROM tab0 AS cor0
----
-1166
-1672
-4096
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7539
SELECT + - CAST( NULL AS SIGNED ) + - cor0.col0 * + col1 * 27 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7539
SELECT + - CAST ( NULL AS INTEGER ) + - cor0.col0 * + col1 * 27 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7540
SELECT - 95 DIV col1 + - col1 - + col0 FROM tab2 AS cor0
----
-101
-138
-41
skipif mysql # not compatible
query I rowsort label-7540
SELECT - 95 / col1 + - col1 - + col0 FROM tab2 AS cor0
----
-101
-138
-41
query I rowsort
SELECT - - 91 + col1 FROM tab0 AS cor0
----
177
182
188
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( 37 AS REAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f
query I rowsort
SELECT + 29 * col0 AS col0 FROM tab0 AS cor0
----
1015
2581
696
query I rowsort
SELECT + - 34 + col2 FROM tab0 AS cor0
----
-1
-33
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 30 ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 71 ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT ALL + col1 * + 32 AS col2 FROM tab2 AS cor0
----
1888
544
992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7548
SELECT - CAST( + col0 AS SIGNED ) * col2 + - 45 FROM tab1 AS cor0
----
-207
-3693
-7725
skipif mysql # not compatible
query I rowsort label-7548
SELECT - CAST ( + col0 AS INTEGER ) * col2 + - 45 FROM tab1 AS cor0
----
-207
-3693
-7725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7549
SELECT DISTINCT col0 + - col0 * + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT col0 + - col0 * + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 4 * + 90 + col1 FROM tab1 AS cor0
----
370
373
386
query I rowsort
SELECT - 80 + + col2 + col0 FROM tab2 AS cor0
----
-46
24
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + - col0 * + col1 + - col2 + ( 43 + col1 ) * + 8 * - 10 AS col0 FROM tab2 cor0
----
-12788
-6164
-6181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7554
SELECT ALL CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7554
SELECT ALL CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 * 77 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab2 cor0
----
60
query I rowsort
SELECT - ( - cor0.col2 ) * col2 AS col2 FROM tab1 cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 50 col2 FROM tab2 AS cor0
----
-1300
-1350
-1900
query I rowsort
SELECT ALL + 33 * col2 AS col0 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT col2 * + 12 AS col1 FROM tab2 AS cor0
----
312
324
456
onlyif mysql # use DIV operator for integer division
query I rowsort label-7561
SELECT DISTINCT col1 + + col2 + - col0 DIV + col1 AS col0 FROM tab1
----
103
61
80
skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT col1 + + col2 + - col0 / + col1 AS col0 FROM tab1
----
103
61
80
query I rowsort
SELECT ALL - 50 AS col0 FROM tab0 AS cor0
----
-50
-50
-50
query I rowsort
SELECT + + ( + col1 ) + + col1 * - col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + - 99 * - ( + col2 * - 2 ) + col2 AS col0 FROM tab1 cor0
----
-10638
-11229
-18912
query I rowsort
SELECT 1 FROM tab0, tab0 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL - - 13 * + col1 AS col1 FROM tab2 AS cor0
----
221
403
767
query I rowsort
SELECT - col1 + 77 * col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
539
6006
6083
query I rowsort
SELECT - + col0 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + + 36 * - col2 * col0 AS col1 FROM tab2 AS cor0
----
-108072
-6804
-73008
query I rowsort
SELECT DISTINCT cor0.col1 * 86 FROM tab2 AS cor0
----
1462
2666
5074
onlyif mysql # use DIV operator for integer division
query I rowsort label-7571
SELECT ALL + + col2 * col1 DIV - 97 + + col2 FROM tab1 AS cor0
----
40
52
84
skipif mysql # not compatible
query I rowsort label-7571
SELECT ALL + + col2 * col1 / - 97 + + col2 FROM tab1 AS cor0
----
40
52
84
query I rowsort
SELECT DISTINCT cor0.col2 + + 50 FROM tab2, tab1 AS cor0
----
104
107
146
query I rowsort
SELECT ALL + 3 - tab2.col1 FROM tab2
----
-14
-28
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7574
SELECT + col1 + - col2 DIV - col1 - + col0 FROM tab2
----
-19
-60
24
skipif mysql # not compatible
query I rowsort label-7574
SELECT + col1 + - col2 / - col1 - + col0 FROM tab2
----
-19
-60
24
query I rowsort
SELECT DISTINCT - 2 AS col2 FROM tab2, tab2 AS cor0
----
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col0 + + col2 + + tab2.col2 col1 FROM tab2
----
130
155
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT ALL + col1 * + col2 * + 99 + col1 * 39 DIV 97 FROM tab1
----
123557
139006
56434
skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + col1 * + col2 * + 99 + col1 * 39 / 97 FROM tab1
----
123557
139006
56434
onlyif mysql # use DIV operator for integer division
query I rowsort label-7578
SELECT ALL col1 + + col2 + col2 DIV - col1 AS col1 FROM tab2
----
53
58
85
skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL col1 + + col2 + col2 / - col1 AS col1 FROM tab2
----
53
58
85
query I rowsort
SELECT - col2 * col1 * - 86 + col1 * col0 + 75 FROM tab2 AS cor0
----
136601
56974
72274
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7580
SELECT ALL col2 * CAST( 22 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1804
22
726
skipif mysql # not compatible
query I rowsort label-7580
SELECT ALL col2 * CAST ( 22 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT DISTINCT col2 + 44 AS col1 FROM tab1
----
101
140
98
query I rowsort
SELECT DISTINCT - 18 FROM tab1, tab0 AS cor0
----
-18
query I rowsort
SELECT ALL + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT - col1 + col0 * 66 AS col1 FROM tab2
----
431
5089
5197
query I rowsort
SELECT col2 + + col2 + col2 * + col0 FROM tab1
----
270
3762
7872
query I rowsort
SELECT ALL - col2 * col2 * - cor0.col1 + col2 FROM tab0 AS cor0
----
611966
93687
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7587
SELECT DISTINCT - cor0.col0 + CAST( - 78 AS SIGNED ) + col0 FROM tab2 AS cor0
----
-78
skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT - cor0.col0 + CAST ( - 78 AS INTEGER ) + col0 FROM tab2 AS cor0
----
-78
query I rowsort
SELECT + - col2 * - col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL + cor1.col1 * cor0.col0 - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 79ca90334a4845c49747931ac1e1336d
query I rowsort
SELECT ALL - col0 + + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL col0 * + ( col0 ) + ( col0 ) FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 51 ) + + cor0.col1 * cor0.col0 * col2 col0 FROM tab1 AS cor0
----
36531
4263
99891
query I rowsort
SELECT - 48 FROM tab1 cor0
----
-48
-48
-48
query I rowsort
SELECT DISTINCT + - col1 * ( + col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7596
SELECT ALL + CAST( NULL AS SIGNED ) + col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( 93 ) AS col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
243 values hashing to b79a9a99166058a24a9978c475531e1c
query I rowsort
SELECT DISTINCT - col1 + col2 - col0 AS col0 FROM tab2 AS cor0
----
-11
-111
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * col0 col0 FROM tab0 AS cor0
----
-1513
-408
-595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab2 cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + 30 * + col1 AS col2 FROM tab1 AS cor0
----
300
390
780
query I rowsort
SELECT ALL + cor0.col0 - + 70 * col1 AS col2 FROM tab2 cor0
----
-1111
-2163
-4052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7603
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-7603
SELECT - + col0 + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * + 25 + + col0 FROM tab1 AS cor0
----
1664
2080
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7605
SELECT DISTINCT + cor0.col2 * - CAST( 61 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856
skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT + cor0.col2 * - CAST ( 61 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT col1 * - 21 - - col0 FROM tab0 AS cor0
----
-1782
-1822
-2002
query I rowsort
SELECT ALL - 72 * col2 * col1 - - col1 FROM tab1
----
-101062
-41030
-89843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - ( - 34 ) col2 FROM tab2 AS cor0
----
112
113
41
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + col1 * col0 + col0 AS col1 FROM tab0 AS cor0
----
15650
3527
4926
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( 1 ) - cor0.col2 col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL + col2 - - ( - 59 ) FROM tab1 AS cor0
----
-2
-5
37
query I rowsort
SELECT DISTINCT cor0.col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 45 + col0 + + 85 * - col2 AS col1 FROM tab1
----
-4542
-4736
-8035
query I rowsort
SELECT DISTINCT col2 * col1 - - col0 * col0 FROM tab0
----
1322
15383
3414
query I rowsort
SELECT DISTINCT col2 - - col1 * col2 AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL cor0.col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 47 col2 FROM tab1 cor0
----
-1222
-470
-611
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + ( - 52 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT + + 28 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT ALL - cor0.col2 * col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - col2 + - col2 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT + col2 * + cor0.col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + tab2.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + col0 * - ( col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT col0 * cor0.col0 * + cor0.col2 + col1 FROM tab0 AS cor0
----
1322
19094
649613
query I rowsort
SELECT DISTINCT + 27 FROM tab2, tab2 AS cor0
----
27
query I rowsort
SELECT ALL + 37 FROM tab2, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT - - ( + cor0.col0 ) FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7630
SELECT + - CAST( NULL AS SIGNED ) / cor0.col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7630
SELECT + - CAST ( NULL AS INTEGER ) / cor0.col2 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * + col0 + col2 * col2 * + ( + col2 ) FROM tab1 AS cor0
----
157542
185833
885776
query I rowsort
SELECT tab1.col1 * - tab1.col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + col1 * ( col2 ) + col1 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
-118118
-5022
-50388
query I rowsort
SELECT - col2 * col0 + - col1 FROM tab0 cor0
----
-132
-7389
-878
query I rowsort
SELECT ( - 14 ) + cor0.col2 * + 19 FROM tab1 AS cor0
----
1012
1069
1810
query I rowsort
SELECT - ( + 13 ) * - col0 * + col2 FROM tab0 cor0
----
10296
455
94874
onlyif mysql # use DIV operator for integer division
query I rowsort label-7637
SELECT DISTINCT + - col2 + col2 * col2 DIV + col1 FROM tab0 AS cor0
----
-1
-21
-9
skipif mysql # not compatible
query I rowsort label-7637
SELECT DISTINCT + - col2 + col2 * col2 / + col1 FROM tab0 AS cor0
----
-1
-21
-9
query I rowsort
SELECT DISTINCT - 33 + ( - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-122
-57
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7639
SELECT ALL 91 * - col0 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
-634
-7098
-7189
skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL 91 * - col0 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
-634
-7098
-7189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7640
SELECT - ( + col2 + col2 ) * CAST( + 1 AS SIGNED ) AS col0 FROM tab1
----
-108
-114
-192
skipif mysql # not compatible
query I rowsort label-7640
SELECT - ( + col2 + col2 ) * CAST ( + 1 AS INTEGER ) AS col0 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT ( cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + - cor0.col1 + col0 + - 38 * col0 AS col2 FROM tab0 AS cor0
----
-1392
-3384
-974
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col1 FROM tab0
----
25
25
25
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7645
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7646
SELECT - CAST( col2 AS SIGNED ) * + col2 FROM tab0 cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-7646
SELECT - CAST ( col2 AS INTEGER ) * + col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT 68 * 72 FROM tab2 AS cor0
----
4896
4896
4896
query I rowsort
SELECT ALL + col2 + 4 AS col0 FROM tab2
----
30
31
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-7649
SELECT ALL - ( 44 * - col1 ) + ( + col2 ) DIV + col0 + + col2 DIV + col2 FROM tab0
----
3786
4005
4269
skipif mysql # not compatible
query I rowsort label-7649
SELECT ALL - ( 44 * - col1 ) + ( + col2 ) / + col0 + + col2 / + col2 FROM tab0
----
3786
4005
4269
query I rowsort
SELECT ALL - 21 + col0 AS col0 FROM tab0
----
14
3
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7651
SELECT ALL col2 DIV - col2 + + col2 * col2 AS col1 FROM tab1
----
2915
3248
9215
skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL col2 / - col2 + + col2 * col2 AS col1 FROM tab1
----
2915
3248
9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-7652
SELECT 81 DIV + col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-7652
SELECT 81 / + col0 FROM tab0
----
0
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + + cor0.col0 + + CAST ( - 3 AS REAL ) * col0 - col2 col0 FROM tab2 AS cor0
----
-182
-196
-41
query I rowsort
SELECT DISTINCT - + col0 * - 44 + - 82 FROM tab2 AS cor0
----
226
3350
3394
query I rowsort
SELECT - col2 * col2 + col0 * - col0 - col0 AS col1 FROM tab0 AS cor0
----
-1261
-14734
-1689
query I rowsort
SELECT DISTINCT + - 13 AS col0 FROM tab0, tab1, tab2 AS cor0
----
-13
query I rowsort
SELECT DISTINCT - tab1.col2 + - 52 FROM tab1, tab1 AS cor0
----
-106
-109
-148
query I rowsort
SELECT + - col1 + + ( col1 ) * col2 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT ALL col2 * + 77 * col1 AS col1 FROM tab0
----
218526
574574
7469
query I rowsort
SELECT col0 + + 13 AS col2 FROM tab0 AS cor0
----
102
37
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-7661
SELECT col1 + cor0.col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7661
SELECT col1 + cor0.col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 - ( 72 ) * col1 FROM tab2 AS cor0
----
-1303
-2239
-4326
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 * - col1 * col0 col0 FROM tab2
----
22752
271440
6720
query I rowsort
SELECT - + 39 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT - 31 + - col2 AS col1 FROM tab1
----
-127
-85
-88
query I rowsort
SELECT 98 + col0 FROM tab2 AS cor0
----
105
176
177
query I rowsort
SELECT ALL + col0 * col2 + + col2 * + 2 AS col1 FROM tab1
----
270
3762
7872
query I rowsort
SELECT ALL 8 + col2 * + tab1.col2 FROM tab1
----
2924
3257
9224
onlyif mysql # use DIV operator for integer division
query I rowsort label-7669
SELECT ALL cor0.col1 DIV col0 + cor0.col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL cor0.col1 / col0 + cor0.col2 FROM tab0 AS cor0
----
3
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 87 * + col2 col0 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT ALL col2 * + col0 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col1 * - col1 - + col0 * - 97 FROM tab2 AS cor0
----
11047
1640
7952
query I rowsort
SELECT DISTINCT - - col0 + - col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT col0 + ( - col0 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL col0 + col2 * col2 + col0 AS col0 FROM tab1 AS cor0
----
2922
3377
9376
onlyif mysql # use DIV operator for integer division
query I rowsort label-7677
SELECT DISTINCT - cor0.col1 DIV - col2 col1 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT - cor0.col1 / - col2 col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - col2 * - cor0.col1 * col0 + + col1 AS col0 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT + - col1 + 19 FROM tab2 cor0
----
-12
-40
2
query I rowsort
SELECT col0 * 32 AS col2 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT DISTINCT + + col0 + + ( - ( - col0 ) * cor0.col1 ) + - ( col1 ) FROM tab2 AS cor0
----
1405
193
4621
query I rowsort
SELECT ALL + + col0 * - 84 + col0 AS col0 FROM tab1 AS cor0
----
-249
-5312
-6640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7683
SELECT DISTINCT + - col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7683
SELECT DISTINCT + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7684
SELECT + col0 DIV 61 + - col2 AS col0 FROM tab2 cor0
----
-25
-27
-37
skipif mysql # not compatible
query I rowsort label-7684
SELECT + col0 / 61 + - col2 AS col0 FROM tab2 cor0
----
-25
-27
-37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7685
SELECT ALL - cor0.col0 + - col2 DIV cor0.col0 FROM tab1 AS cor0
----
-21
-64
-81
skipif mysql # not compatible
query I rowsort label-7685
SELECT ALL - cor0.col0 + - col2 / cor0.col0 FROM tab1 AS cor0
----
-21
-64
-81
query I rowsort
SELECT col0 + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col0 * - ( col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col1 + - col0 - - ( - col2 + + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 17 AS REAL ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT DISTINCT col0 * - col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL ( + col1 ) * - cor0.col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7692
SELECT ALL - + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT cor0.col2 * + col1 * - col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT 53 * 73 AS col1 FROM tab1 AS cor0
----
3869
3869
3869
query I rowsort
SELECT + - col2 + 48 * + col2 * ( ( col0 ) ) FROM tab0 AS cor0
----
1679
350222
37983
query I rowsort
SELECT DISTINCT + col2 + - 37 AS col2 FROM tab1 AS cor0
----
17
20
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT + 19 + + col0 DIV col1 FROM tab0 AS cor0
----
19
19
19
skipif mysql # not compatible
query I rowsort label-7697
SELECT + 19 + + col0 / col1 FROM tab0 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT + - 13 + + col0 AS col2 FROM tab0 AS cor0
----
11
22
76
query I rowsort
SELECT - - 73 AS col1 FROM tab1 AS cor0
----
73
73
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7700
SELECT ALL CAST( 85 AS SIGNED ) FROM tab0 cor0
----
85
85
85
skipif mysql # not compatible
query I rowsort label-7700
SELECT ALL CAST ( 85 AS INTEGER ) FROM tab0 cor0
----
85
85
85
query I rowsort
SELECT DISTINCT + - 23 * col0 FROM tab0 AS cor0
----
-2047
-552
-805
query I rowsort
SELECT ALL + 40 * 4 FROM tab0 cor0
----
160
160
160
onlyif mysql # use DIV operator for integer division
query I rowsort label-7703
SELECT 64 + - col0 DIV 22 AS col2 FROM tab2 AS cor0
----
61
61
64
skipif mysql # not compatible
query I rowsort label-7703
SELECT 64 + - col0 / 22 AS col2 FROM tab2 AS cor0
----
61
61
64
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + 52 AS col2 FROM tab1 AS cor0
----
1300
1456
622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + cor0.col0 col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - cor0.col0 * - 27 col0 FROM tab0 AS cor0
----
197046
21384
945
query I rowsort
SELECT + col0 + - 24 + - col0 AS col0 FROM tab2
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-7708
SELECT + col2 DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7708
SELECT + col2 / col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT + + 84 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1332
1488
654
onlyif mysql # use DIV operator for integer division
query I rowsort label-7710
SELECT ALL + + cor0.col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7710
SELECT ALL + + cor0.col1 / - col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT DISTINCT - + col1 + + col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7712
SELECT + col0 + col0 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7712
SELECT + col0 + col0 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 46 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 41 AS REAL ) FROM tab0
----
41
41
41
query I rowsort
SELECT ( + col1 ) + + col2 * col2 AS col1 FROM tab0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7716
SELECT DISTINCT - col1 DIV col0 col2 FROM tab2
----
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT - col1 / col0 col2 FROM tab2
----
-4
0
query I rowsort
SELECT col2 + 90 FROM tab0
----
123
172
91
query I rowsort
SELECT 1 + + col2 + + col1 FROM tab1
----
110
68
81
query I rowsort
SELECT DISTINCT - col1 + + col0 * tab2.col2 + - ( col2 ) * - col0 FROM tab2
----
347
3997
5987
query I rowsort
SELECT DISTINCT - col2 * - col2 + - col0 * col2 * col0 FROM tab2
----
-157508
-235714
-594
query I rowsort
SELECT col0 * col0 + - 66 - + 96 AS col1 FROM tab1 AS cor0
----
-153
3934
6238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7722
SELECT ALL + + ( + col2 ) * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7722
SELECT ALL + + ( + col2 ) * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - col0 * - col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7724
SELECT DISTINCT + col1 * - CAST( + col0 AS SIGNED ) + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT + col1 * - CAST ( + col0 AS INTEGER ) + + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL 38 + 74 FROM tab2 AS cor0
----
112
112
112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7727
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-7727
SELECT - + col1 / - col0 col0 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ( tab2.col2 * 40 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to e4fd78a366a8ff8c665c624ac16afe2c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * ( - col0 ) * col1 col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ( - 21 ) FROM tab1
----
-21
-21
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7731
SELECT DISTINCT col0 + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT col0 + col1 / col1 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 28 col0 FROM tab0 AS cor0
----
-114
-119
-125
query I rowsort
SELECT + cor0.col2 + col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT + ( 9 ) * col2 FROM tab1 AS cor0
----
486
513
864
query I rowsort
SELECT ALL col2 + 40 * col2 AS col2 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT DISTINCT - 9 + - col0 FROM tab1 AS cor0
----
-12
-73
-89
query I rowsort
SELECT ALL - + col2 + 77 * - col1 AS col0 FROM tab2 AS cor0
----
-1347
-2414
-4569
query I rowsort
SELECT + col1 + - col1 * - col2 * cor0.col2 + - col0 FROM tab2 AS cor0
----
22623
24486
39865
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * col0 + col2 col1 FROM tab0 AS cor0
----
1377
1961
5066
query I rowsort
SELECT - 48 + + cor0.col0 FROM tab1 cor0
----
-45
16
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col0 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7742
SELECT ALL - col2 * col1 DIV + col0 AS col2 FROM tab1
----
-15
-468
-8
skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - col2 * col1 / + col0 AS col2 FROM tab1
----
-15
-468
-8
query I rowsort
SELECT + cor0.col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-7744
SELECT col1 + - col0 * - col0 + + col2 DIV cor0.col1 FROM tab1 AS cor0
----
37
4111
6420
skipif mysql # not compatible
query I rowsort label-7744
SELECT col1 + - col0 * - col0 + + col2 / cor0.col1 FROM tab1 AS cor0
----
37
4111
6420
query I rowsort
SELECT - col1 + col1 * col1 + col1 * col1 FROM tab1 AS cor0
----
1326
190
325
query I rowsort
SELECT col0 * + tab1.col0 * col1 FROM tab1
----
234
40960
83200
query I rowsort
SELECT 60 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-7748
SELECT + 53 DIV col0 AS col1 FROM tab1
----
0
0
17
skipif mysql # not compatible
query I rowsort label-7748
SELECT + 53 / col0 AS col1 FROM tab1
----
0
0
17
query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab1
----
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT DISTINCT col0 + 20 AS col2 FROM tab1 AS cor0
----
100
23
84
query I rowsort
SELECT + col2 - col2 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + col0 * - col2 - col1 * - col1 AS col0 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT col2 * col2 - - col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-7755
SELECT + cor0.col0 DIV - col0 + col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7755
SELECT + cor0.col0 / - col0 + col1 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7756
SELECT DISTINCT + ( col1 ) DIV col0 + col1 * col1 + col0 AS col2 FROM tab1 AS cor0
----
164
249
687
skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT + ( col1 ) / col0 + col1 * col1 + col0 AS col2 FROM tab1 AS cor0
----
164
249
687
query I rowsort
SELECT DISTINCT col0 + + col1 * tab1.col0 AS col2 FROM tab1
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7758
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 + tab0.col2 * col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 + tab0.col2 * col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col2 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + - 41 + col0 FROM tab0 cor0
----
-17
-6
48
query I rowsort
SELECT - col2 * col2 + col1 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7762
SELECT col0 DIV col1 - cor0.col2 DIV + col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7762
SELECT col0 / col1 - cor0.col2 / + col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT col0 * - col0 * - tab2.col0 + col1 AS col2 FROM tab2
----
374
474611
493056
query I rowsort
SELECT ALL + col1 * col1 * tab0.col2 + - col1 + col2 AS col1 FROM tab0
----
244015
679033
9313
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 - col2 IN ( col1 * col0 + col0 * + col0 * col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - col0 - cor0.col0 * + col2 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN ( col2 + + col0 ) AND ( NULL )
----
query I rowsort
SELECT col2 / - col1 FROM tab2 WHERE ( + col1 ) IN ( - col1 )
----
query I rowsort
SELECT ALL col2 * col2 + - col2 AS col2 FROM tab0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-7770
SELECT ALL + col1 * col2 DIV col1 + + col0 DIV + col1 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL + col1 * col2 / col1 + + col0 / + col1 AS col0 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7771
SELECT DISTINCT + col1 DIV + col1 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT + col1 / + col1 + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT col0 + col2 + col1 AS col0 FROM tab1
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7773
SELECT tab0.col0 DIV + tab0.col2 AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7773
SELECT tab0.col0 / + tab0.col2 AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT - - cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + col2 * + col2 * + tab2.col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT + col2 FROM tab2 WHERE NOT NULL IN ( - col2 ) AND NOT - col2 + + col1 IN ( - col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) = ( NULL ) AND ( NULL ) = ( + col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE - col1 + col1 * - col1 / + col0 >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE NOT ( - col2 ) IN ( - col0 * + col1 )
----
-10
-13
-26
query I rowsort
SELECT - tab1.col1 * col2 + col1 + col0 AS col1 FROM tab1
----
-1155
-1375
-496
query I rowsort
SELECT DISTINCT - col0 - + 4 FROM tab0
----
-28
-39
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7782
SELECT tab0.col1 * ( + 51 ) + + col0 - - col2 DIV - 52 AS col2 FROM tab0
----
4410
4729
4982
skipif mysql # not compatible
query I rowsort label-7782
SELECT tab0.col1 * ( + 51 ) + + col0 - - col2 / - 52 AS col2 FROM tab0
----
4410
4729
4982
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7783
SELECT col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7783
SELECT col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + 81 + + col2 AS col2 FROM tab1
----
132
74
97
query I rowsort
SELECT ALL - col2 + 74 AS col2 FROM tab1 AS cor0
----
-22
17
20
query I rowsort
SELECT DISTINCT col1 * - col0 - - tab1.col2 AS col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL col0 - ( 92 ) FROM tab2
----
-13
-14
-85
query I rowsort
SELECT DISTINCT + col2 * - 84 * + col1 AS col0 FROM tab1 AS cor0
----
-104832
-117936
-47880
onlyif mysql # use DIV operator for integer division
query I rowsort label-7789
SELECT ALL - ( + 97 ) DIV + col0 FROM tab1 AS cor0
----
-1
-1
-32
skipif mysql # not compatible
query I rowsort label-7789
SELECT ALL - ( + 97 ) / + col0 FROM tab1 AS cor0
----
-1
-1
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7790
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT + + CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7791
SELECT ALL + - col2 * ( col2 * CAST( cor0.col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-157464
-185193
-884736
skipif mysql # not compatible
query I rowsort label-7791
SELECT ALL + - col2 * ( col2 * CAST ( cor0.col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT + - 51 - + col1 FROM tab2 cor0
----
-110
-68
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 + - col2 col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL - ( + 72 ) + col2 FROM tab0 AS cor0
----
-39
-71
10
query I rowsort
SELECT - col2 * + col1 - col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + cor0.col2 * - col2 + col0 FROM tab0 cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL - 63 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
178794
470106
6111
query I rowsort
SELECT + - ( - 74 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
105
133
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7799
SELECT DISTINCT - ( col2 ) DIV - col0 col1 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT - ( col2 ) / - col0 col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - ( col2 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + 85 * + col0 + + col2 FROM tab2 AS cor0
----
622
6656
6753
onlyif mysql # use DIV operator for integer division
query I rowsort label-7802
SELECT ALL col2 + + col0 DIV + col1 col1 FROM tab2 cor0
----
27
27
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL col2 + + col0 / + col1 col1 FROM tab2 cor0
----
27
27
42
query I rowsort
SELECT ( - 56 ) + - col1 FROM tab1 AS cor0
----
-66
-69
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7804
SELECT ALL - 5 DIV - col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7804
SELECT ALL - 5 / - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 * - 13 - col2 AS col2 FROM tab2 AS cor0
----
-1040
-1065
-118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - 31 col2 FROM tab0 cor0
----
-30
2
51
query I rowsort
SELECT + ( + 0 ) * - col1 * col0 + 56 * col2 AS col1 FROM tab2 AS cor0
----
1456
1512
2128
query I rowsort
SELECT DISTINCT - col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7809
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 68 * col2 AS col0 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT ALL - col2 + - col1 * + cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + - cor0.col0 * + col0 + + col2 * col1 FROM tab1 cor0
----
-3526
-5152
1395
query I rowsort
SELECT cor0.col0 + col1 * - 2 AS col1 FROM tab0 cor0
----
-148
-159
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7815
SELECT ALL + cor0.col0 DIV + 88 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL + cor0.col0 / + 88 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( + col2 ) + cor0.col0 col1 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-7817
SELECT DISTINCT - col1 DIV + cor0.col0 + col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
44
skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT - col1 / + cor0.col0 + col1 + + col1 AS col2 FROM tab1 AS cor0
----
20
26
44
query I rowsort
SELECT ALL + col0 - 99 FROM tab1 AS cor0
----
-19
-35
-96
query I rowsort
SELECT + - col1 * - 42 AS col2 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT ALL + + col2 * + ( col2 + col0 ) AS col1 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT ALL - - col2 * - ( col0 ) AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + col2 * cor0.col1 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 70 col0 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT + + col1 * + 1 * + 10 FROM tab1 AS cor0
----
100
130
260
query I rowsort
SELECT - + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7826
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 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-7826
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( tab1.col2 ) FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL 98 * col1 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT + col1 * - cor0.col2 + col0 + - col0 * - col1 AS col1 FROM tab0 cor0
----
-750
3333
726
query I rowsort
SELECT DISTINCT - 1 * - col2 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - - col1 + + col2 * 91 FROM tab2 AS cor0
----
2425
2488
3475
query I rowsort
SELECT col2 + + col1 + col1 FROM tab2
----
144
72
89
query I rowsort
SELECT + - cor0.col0 + 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d5e3b25ee88cf43674442386492d8e33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col0 * col0 + - col0 col2 FROM tab2
----
-56
-6162
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * + tab1.col1 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT - - 89 FROM tab0, tab2, tab0 AS cor0
----
89
query I rowsort
SELECT DISTINCT + - col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT col1 * col1 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT + 46 - col2 FROM tab2 AS cor0
----
19
20
8
query I rowsort
SELECT + 38 * col1 AS col0 FROM tab2
----
1178
2242
646
query I rowsort
SELECT + ( col0 ) + - col2 - - cor0.col2 * + col1 * cor0.col2 FROM tab1 AS cor0
----
119792
32497
75765
query I rowsort
SELECT DISTINCT + 45 * + col0 + col2 AS col2 FROM tab0
----
1113
1576
4087
query I rowsort
SELECT ALL + col2 + 82 FROM tab1 AS cor0
----
136
139
178
query I rowsort
SELECT DISTINCT - - col1 * - col0 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + + 20 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7847
SELECT ALL + CAST( + cor1.col0 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + CAST ( + cor1.col0 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
query I rowsort
SELECT + col0 * 15 AS col1 FROM tab1
----
1200
45
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT ( + ( col0 ) + + col0 ) DIV - 45 FROM tab0
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-7849
SELECT ( + ( col0 ) + + col0 ) / - 45 FROM tab0
----
-1
-1
-3
query I rowsort
SELECT - 13 AS col2 FROM tab1 cor0
----
-13
-13
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + - col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + 35 AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to ca814400b6361c20866ff8fe01717430
query I rowsort
SELECT cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7854
SELECT - CAST( + 57 AS SIGNED ) AS col2 FROM tab0
----
-57
-57
-57
skipif mysql # not compatible
query I rowsort label-7854
SELECT - CAST ( + 57 AS INTEGER ) AS col2 FROM tab0
----
-57
-57
-57
query I rowsort
SELECT ALL + col0 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 33 * + 73 FROM tab1 AS cor0
----
2409
2409
2409
query I rowsort
SELECT ( + ( + col2 ) * 20 ) FROM tab0
----
1640
20
660
query I rowsort
SELECT + 89 + col0 AS col2 FROM tab2 AS cor0
----
167
168
96
query I rowsort
SELECT col2 + col2 - - col2 * - col2 * + col1 FROM tab2 cor0
----
-22545
-24472
-39832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT 58 + - col1 * 98 AS col0 FROM tab2 AS cor0
----
-1608
-2980
-5724
query I rowsort
SELECT DISTINCT + 23 FROM tab0 cor0
----
23
query I rowsort
SELECT 21 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT ALL - col1 * + 4 + col0 * - tab1.col1 AS col1 FROM tab1
----
-1092
-182
-680
query I rowsort
SELECT + col0 * cor0.col1 + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + - col0 * + 0 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7868
SELECT ALL + + col1 DIV + col1 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7397
8282
9410
skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + + col1 / + col1 + col1 * + col1 AS col0 FROM tab0 AS cor0
----
7397
8282
9410
query I rowsort
SELECT ALL + col1 * - cor0.col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col2 + 50 * col0 AS col0 FROM tab1 AS cor0
----
204
3257
4096
query I rowsort
SELECT DISTINCT - + cor0.col1 * + col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + ( - 21 ) * col1 AS col0 FROM tab1 AS cor0
----
-210
-273
-546
query I rowsort
SELECT - col2 + 72 FROM tab0 AS cor0
----
-10
39
71
query I rowsort
SELECT + + 3 * cor0.col1 FROM tab0 AS cor0
----
258
273
291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 38 ) - col2 col1 FROM tab2 AS cor0
----
0
11
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 46 col2 FROM tab1 AS cor0
----
-100
-103
-142
query I rowsort
SELECT ALL + + col2 * + col0 AS col1 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7878
SELECT ALL - CAST( NULL AS SIGNED ) - + 77 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7878
SELECT ALL - CAST ( NULL AS INTEGER ) - + 77 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + col1 + 96 * + col0 FROM tab1 AS cor0
----
314
6154
7693
query I rowsort
SELECT ALL - cor0.col2 - col1 * col0 * + cor0.col1 FROM tab0 AS cor0
----
-177537
-329316
-737091
query I rowsort
SELECT ALL + + col0 * - 51 * + col0 FROM tab1 cor0
----
-208896
-326400
-459
query I rowsort
SELECT + col2 - + col0 AS col0 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab0, tab2 cor0, tab0 AS cor1
----
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7884
SELECT col1 DIV 61 + col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7884
SELECT col1 / 61 + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 * col0 * col0 + col0 AS col0 FROM tab1 AS cor0
----
-233408
-483
-614320
query I rowsort
SELECT - col1 * tab2.col1 + col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT - col0 + + 93 FROM tab0
----
4
58
69
query I rowsort
SELECT + 54 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT DISTINCT col2 + - col0 + - col0 * 32 * - 74 AS col1 FROM tab0
----
210745
56841
82846
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7890
SELECT DISTINCT CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7891
SELECT ALL - col2 DIV + col2 + col1 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL - col2 / + col2 + col1 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL + col2 + tab0.col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT 30 + - col2 FROM tab2 AS cor0
----
-8
3
4
query I rowsort
SELECT + col0 + col1 + cor0.col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT ALL + cor0.col1 + + col0 * col1 * + col0 AS col1 FROM tab1 AS cor0
----
260
40970
83213
query I rowsort
SELECT + + 25 - - 81 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e3a970c661a05070afa8a3ed8dca742e
query I rowsort
SELECT ALL - - col2 + col0 * col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7898
SELECT ALL cor0.col1 * col0 + CAST( 36 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
1333
1955
6726
skipif mysql # not compatible
query I rowsort label-7898
SELECT ALL cor0.col1 * col0 + CAST ( 36 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
1333
1955
6726
query I rowsort
SELECT - + 56 * col2 FROM tab0 AS cor0
----
-1848
-4592
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT ALL col1 * col1 + col1 DIV 39 + - col2 * 93 AS col2 FROM tab0 AS cor0
----
4329
657
9318
skipif mysql # not compatible
query I rowsort label-7900
SELECT ALL col1 * col1 + col1 / 39 + - col2 * 93 AS col2 FROM tab0 AS cor0
----
4329
657
9318
query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab0 AS cor0
----
95
query I rowsort
SELECT DISTINCT - + col0 * col2 * col2 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT - col1 + col1 * + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-10999
-25978
-90565
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * - cor0.col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - cor0.col0 + - col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + 39 FROM tab0 AS cor0
----
-50
15
4
query I rowsort
SELECT DISTINCT - col1 * - col2 + - col1 * col2 + cor0.col1 * ( + col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - 20 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT ALL + - col2 * cor0.col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7910
SELECT DISTINCT col1 * col2 + + CAST( 73 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1607
719
910
skipif mysql # not compatible
query I rowsort label-7910
SELECT DISTINCT col1 * col2 + + CAST ( 73 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1607
719
910
query I rowsort
SELECT - col2 * 86 FROM tab2 AS cor0
----
-2236
-2322
-3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-7912
SELECT - + col1 + + col0 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-7912
SELECT - + col1 + + col0 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT - - col0 * cor0.col1 * 1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL cor0.col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 * + 55 * col0 AS col0 FROM tab0 AS cor0
----
-31680
-435655
-67375
query I rowsort
SELECT DISTINCT + - col0 * - 64 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT - + col0 + 5 AS col2 FROM tab1 AS cor0
----
-59
-75
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7918
SELECT + col0 * + col1 + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
1040
640
86
skipif mysql # not compatible
query I rowsort label-7918
SELECT + col0 * + col1 + col1 / col0 AS col2 FROM tab1 AS cor0
----
1040
640
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - 90 * col1 col1 FROM tab2 AS cor0
----
-1451
-2783
-5232
query I rowsort
SELECT ALL - col0 + - 46 + col0 AS col1 FROM tab2 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ALL + col1 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7922
SELECT ALL - CAST( NULL AS DECIMAL ) * + col1 + col2 + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL - CAST ( NULL AS REAL ) * + col1 + col2 + 92 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col2 ) - + col2 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7924
SELECT ALL CAST( - col1 + col0 AS SIGNED ) FROM tab1
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL CAST ( - col1 + col0 AS INTEGER ) FROM tab1
----
-23
54
67
query I rowsort
SELECT - 83 * - 27 + col0 * 47 AS col0 FROM tab2 cor0
----
2570
5907
5954
onlyif mysql # use DIV operator for integer division
query I rowsort label-7926
SELECT + col1 DIV + col1 - col0 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-7926
SELECT + col1 / + col1 - col0 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT 54 + ( cor0.col2 ) * col2 * col1 AS col1 FROM tab1 AS cor0
----
119862
32544
75870
query I rowsort
SELECT - ( 91 ) + - col1 * col0 + col0 FROM tab1 cor0
----
-1051
-166
-667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * 79 + col0 * col2 AS col0 FROM tab1 cor0
----
2216
4438
8707
query I rowsort
SELECT ALL - 37 AS col0 FROM tab2 AS cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 9 + + col2 col2 FROM tab1 AS cor0
----
-519
-624
27
query I rowsort
SELECT DISTINCT + col0 * col1 + col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT col0 + tab2.col2 * + tab2.col2 FROM tab2
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-7936
SELECT cor0.col0 + + cor0.col0 DIV - ( 97 ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7936
SELECT cor0.col0 + + cor0.col0 / - ( 97 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col0 + + tab2.col0 + - col2 * 46 FROM tab2
----
-1040
-1228
-1590
query I rowsort
SELECT ALL col0 + + 33 AS col1 FROM tab1 AS cor0
----
113
36
97
query I rowsort
SELECT + cor0.col2 + + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - + col1 + col0 * - 50 FROM tab1 AS cor0
----
-176
-3210
-4013
query I rowsort
SELECT col0 + + 60 FROM tab2 AS cor0
----
138
139
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + - cor0.col0 * col0 col2 FROM tab1 AS cor0
----
-4134
-47
-6438
query I rowsort
SELECT - + col1 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT 67 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT cor1.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab0, tab2 cor1, tab1 AS cor2, tab0 AS cor3
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT + col1 * + col2 + - col0 + - col1 AS col1 FROM tab2
----
1397
550
799
query I rowsort
SELECT + cor0.col1 + col0 + - 3 AS col1 FROM tab0 AS cor0
----
107
129
177
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7948
SELECT + + 13 * - cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7948
SELECT + + 13 * - cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * col0 + 21 * + col0 FROM tab1 AS cor0
----
-2304
-6000
-99
query I rowsort
SELECT DISTINCT + col0 * col1 * - 76 FROM tab2
----
-102068
-16492
-349752
query I rowsort
SELECT ALL col0 * - col1 * ( col2 ) FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT 28 DIV col0 + col2 AS col1 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-7952
SELECT 28 / col0 + col2 AS col1 FROM tab0
----
1
34
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + 25 + 48 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fdd5d95f4d7493e8a2856bb57aac8dec
query I rowsort
SELECT DISTINCT col1 + - col1 * 13 + + col0 AS col1 FROM tab0 AS cor0
----
-1003
-1008
-1129
query I rowsort
SELECT ALL - 14 * col1 AS col1 FROM tab0
----
-1204
-1274
-1358
onlyif mysql # use DIV operator for integer division
query I rowsort label-7956
SELECT col1 DIV + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7956
SELECT col1 / + ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7957
SELECT ALL - + col2 * CAST( - 28 AS SIGNED ) FROM tab0 AS cor0
----
2296
28
924
skipif mysql # not compatible
query I rowsort label-7957
SELECT ALL - + col2 * CAST ( - 28 AS INTEGER ) FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT DISTINCT + cor0.col2 * ( ( col1 ) ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + cor0.col2 * + ( col0 * cor0.col2 ) FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + col1 * 61 AS col1 FROM tab0 AS cor0
----
5246
5551
5917
query I rowsort
SELECT col1 - ( - col2 ) * tab1.col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT ALL + col0 * - ( - col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT - + col2 + col1 * - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT + col1 * - col1 * col1 AS col1 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT ( + 22 * col0 ) FROM tab2
----
154
1716
1738
query I rowsort
SELECT 51 * + col0 FROM tab1
----
153
3264
4080
query I rowsort
SELECT 89 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT col0 * - tab2.col0 + - col1 * + col0 AS col0 FROM tab2
----
-10686
-266
-7584
query I rowsort
SELECT col2 * tab2.col0 - - col0 FROM tab2
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT ALL col0 * - ( - col2 ) * tab1.col0 - + col1 DIV - col2 AS col0 FROM tab1
----
233472
486
614400
skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL col0 * - ( - col2 ) * tab1.col0 - + col1 / - col2 AS col0 FROM tab1
----
233472
486
614400
query I rowsort
SELECT + col2 * col2 + - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT + + 28 * col1 FROM tab1 AS cor0
----
280
364
728
query I rowsort
SELECT ALL col1 * + col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT 20 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
106
111
117
query I rowsort
SELECT + + col1 + - col0 AS col0 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT - 83 + - col0 AS col0 FROM tab2 AS cor0
----
-161
-162
-90
query I rowsort
SELECT + col0 * + cor0.col2 + - 35 * 20 FROM tab0 AS cor0
----
-665
6598
92
query I rowsort
SELECT DISTINCT 79 + col2 FROM tab1 cor0
----
133
136
175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7979
SELECT DISTINCT + - 12 + col1 * cor0.col1 * CAST( ( col1 ) AS SIGNED ) + 97 FROM tab2 AS cor0
----
205464
29876
4998
skipif mysql # not compatible
query I rowsort label-7979
SELECT DISTINCT + - 12 + col1 * cor0.col1 * CAST ( ( col1 ) AS INTEGER ) + 97 FROM tab2 AS cor0
----
205464
29876
4998
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT - 4 * ( cor0.col2 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7980
SELECT - 4 * ( cor0.col2 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * cor0.col0 AS col2 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7982
SELECT ALL - - 2 DIV col1 + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-7982
SELECT ALL - - 2 / col1 + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - + cor0.col1 + 67 AS col0 FROM tab1 AS cor0
----
41
54
57
query I rowsort
SELECT - ( col1 ) + - cor0.col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col2 * ( 5 ) AS col1 FROM tab1
----
-270
-285
-480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7986
SELECT + CAST( 89 AS SIGNED ) * col1 * col1 FROM tab1 AS cor0
----
15041
60164
8900
skipif mysql # not compatible
query I rowsort label-7986
SELECT + CAST ( 89 AS INTEGER ) * col1 * col1 FROM tab1 AS cor0
----
15041
60164
8900
query I rowsort
SELECT DISTINCT + + 67 * col0 FROM tab1 AS cor0
----
201
4288
5360
query I rowsort
SELECT ALL - 78 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT - 45 AS col0 FROM tab1
----
-45
-45
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7991
SELECT ALL + cor0.col1 DIV + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-7991
SELECT ALL + cor0.col1 / + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT ALL - 1 * - col0 + + col2 * - 51 + - col0 FROM tab1 cor0
----
-2754
-2907
-4896
query I rowsort
SELECT DISTINCT + 38 - + col2 * + 17 AS col2 FROM tab0 AS cor0
----
-1356
-523
21
query I rowsort
SELECT ALL ( tab1.col0 ) FROM tab1, tab0 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ( + 39 * - col2 ) + - 35 * + col1 FROM tab2
----
-2077
-2138
-3079
query I rowsort
SELECT - col0 * col0 + col2 AS col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT ( 12 * col2 + - 64 ) FROM tab0
----
-52
332
920
query I rowsort
SELECT ALL 68 FROM tab0, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
onlyif mysql # use DIV operator for integer division
query I rowsort label-7999
SELECT ALL - cor0.col2 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL - cor0.col2 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8000
SELECT + col0 + ( - col0 ) DIV col0 AS col1 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-8000
SELECT + col0 + ( - col0 ) / col0 AS col1 FROM tab2 AS cor0
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8001
SELECT - col0 + col2 DIV - col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-8001
SELECT - col0 + col2 / - col2 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT ALL - col2 * - 2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT col1 + + cor0.col0 * 99 * col0 FROM tab2 cor0
----
4882
602375
617876
query I rowsort
SELECT + col2 * col1 - - 71 AS col2 FROM tab2 AS cor0
----
1605
717
908
query I rowsort
SELECT ALL + cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + 17 - - tab2.col0 FROM tab2
----
24
95
96
query I rowsort
SELECT DISTINCT - 20 * col1 - - col1 FROM tab2
----
-1121
-323
-589
query I rowsort
SELECT col1 + col2 - - 56 FROM tab2
----
111
114
141
query I rowsort
SELECT ALL 3 - + col0 FROM tab0
----
-21
-32
-86
query I rowsort
SELECT DISTINCT tab1.col2 - col1 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT cor0.col0 + cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 0a9ba7ddbb78279db2d78308414e03c9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8012
SELECT 0 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8012
SELECT 0 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - 11 AS col2 FROM tab0
----
-11
-11
-11
query I rowsort
SELECT + col2 + 13 FROM tab0
----
14
46
95
query I rowsort
SELECT DISTINCT col0 + - ( - 43 * - col1 ) FROM tab2
----
-1326
-2459
-652
query I rowsort
SELECT - col2 * - col0 * col1 - col0 AS col0 FROM tab1
----
36416
4209
99760
query I rowsort
SELECT - col1 * - col1 - 62 AS col1 FROM tab0
----
7334
8219
9347
query I rowsort
SELECT + col1 + col0 - col2 FROM tab1 AS cor0
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8019
SELECT DISTINCT col0 + 39 DIV col2 AS col0 FROM tab0 AS cor0
----
25
74
89
skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT col0 + 39 / col2 AS col0 FROM tab0 AS cor0
----
25
74
89
query I rowsort
SELECT + cor0.col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL - col2 + ( - 65 ) FROM tab1 AS cor0
----
-119
-122
-161
onlyif mysql # use DIV operator for integer division
query I rowsort label-8022
SELECT - cor0.col1 DIV - 22 col0 FROM tab0 AS cor0
----
3
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8022
SELECT - cor0.col1 / - 22 col0 FROM tab0 AS cor0
----
3
4
4
query I rowsort
SELECT ALL - col2 + - ( 84 ) * col2 FROM tab1 AS cor0
----
-4590
-4845
-8160
onlyif mysql # use DIV operator for integer division
query I rowsort label-8024
SELECT col0 DIV 42 + 76 FROM tab0
----
76
76
78
skipif mysql # not compatible
query I rowsort label-8024
SELECT col0 / 42 + 76 FROM tab0
----
76
76
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8025
SELECT + + col1 DIV - 28 FROM tab0 cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-8025
SELECT + + col1 / - 28 FROM tab0 cor0
----
-3
-3
-3
query I rowsort
SELECT ALL col2 * + col0 + ( col0 ) FROM tab2
----
196
2106
3081
query I rowsort
SELECT - col2 + - 59 FROM tab1
----
-113
-116
-155
onlyif mysql # use DIV operator for integer division
query I rowsort label-8028
SELECT ALL + tab2.col0 * col2 + tab2.col0 DIV + col0 + + 83 FROM tab2
----
2112
273
3086
skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL + tab2.col0 * col2 + tab2.col0 / + col0 + + 83 FROM tab2
----
2112
273
3086
query I rowsort
SELECT ALL + 37 + 98 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 17b10acf07e16d67b01bcec56d331023
query I rowsort
SELECT ALL col1 + - col0 * + col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) + col1 AS col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * - cor0.col0 + col1 + cor0.col1 col2 FROM tab2 cor0
----
-1261
-158066
-237124
query I rowsort
SELECT ALL + col0 * + 75 AS col1 FROM tab0 cor0
----
1800
2625
6675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8034
SELECT - - CAST( NULL AS SIGNED ) * cor0.col2 * - col1 + - CAST( NULL AS SIGNED ) * 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-8034
SELECT - - CAST ( NULL AS INTEGER ) * cor0.col2 * - col1 + - CAST ( NULL AS INTEGER ) * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( - col2 + + tab0.col1 ) FROM tab0
----
53
9
96
query I rowsort
SELECT + ( col0 ) + - col0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 22 * col1 col0 FROM tab0 AS cor0
----
-178178
-45408
-74690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * ( - col1 ) + + 75 col0 FROM tab0 AS cor0
----
-4827
-5112
-5454
onlyif mysql # use DIV operator for integer division
query I rowsort label-8039
SELECT - ( - col2 ) + col0 DIV col0 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-8039
SELECT - ( - col2 ) + col0 / col0 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL + cor0.col0 * + col0 + cor0.col1 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT ALL + + col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 + 14 * col1 * + 63 col1 FROM tab0 AS cor0
----
75917
80327
85619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 * cor0.col2 col0 FROM tab2 AS cor0
----
1178
806
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8044
SELECT DISTINCT - + col2 + col2 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-8044
SELECT DISTINCT - + col2 + col2 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT DISTINCT 72 * - col2 + + cor0.col1 * - 69 + col0 AS col0 FROM tab1 AS cor0
----
-4730
-5679
-7729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + - cor0.col0 * - cor0.col0 col0 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col1 - - 26 col2 FROM tab2 AS cor0
----
122
163
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab1
----
29
29
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 18 + col1 col2 FROM tab2 cor0
----
35
49
77
query I rowsort
SELECT ALL + 68 - + col2 FROM tab0 AS cor0
----
-14
35
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8051
SELECT ALL cor0.col2 DIV cor0.col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL cor0.col2 / cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - col2 * - col1 + + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-8053
SELECT DISTINCT - - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8053
SELECT DISTINCT - - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 6 + - ( - col2 ) * - col2 - 55 * + col2 col2 FROM tab2 AS cor0
----
-1752
-2028
-3432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8055
SELECT DISTINCT - col1 + - CAST( + col1 AS SIGNED ) * col0 * col0 FROM tab2 cor0
----
-106114
-1550
-359015
skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - col1 + - CAST ( + col1 AS INTEGER ) * col0 * col0 FROM tab2 cor0
----
-106114
-1550
-359015
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col1 * col0 col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col0 + + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ( - 53 * col1 ) FROM tab2
----
-1643
-3127
-901
query I rowsort
SELECT DISTINCT + ( - col0 ) * col1 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8060
SELECT ALL - col2 * tab1.col1 DIV col1 + + col1 * + col2 AS col2 FROM tab1
----
1152
1350
513
skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL - col2 * tab1.col1 / col1 + + col1 * + col2 AS col2 FROM tab1
----
1152
1350
513
query I rowsort
SELECT DISTINCT + ( - 26 ) FROM tab0
----
-26
query I rowsort
SELECT + - ( - col1 ) * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col0 + col2 * col0 AS col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT tab1.col1 - + tab1.col1 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col1 + + 68 AS col1 FROM tab1 AS cor0
----
78
81
94
query I rowsort
SELECT + 58 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8069
SELECT col0 + + CAST( col1 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
132
2862
7551
skipif mysql # not compatible
query I rowsort label-8069
SELECT col0 + + CAST ( col1 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT col1 * 83 + + col2 FROM tab2 AS cor0
----
1449
2600
4923
query I rowsort
SELECT - ( - 22 ) + + col0 * col1 FROM tab1 cor0
----
100
1062
662
query I rowsort
SELECT - 64 + col0 + col1 AS col1 FROM tab0 AS cor0
----
116
46
68
query I rowsort
SELECT col1 * col2 * - col2 AS col2 FROM tab1
----
-119808
-32490
-75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT + - col2 + col1 DIV col1 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-8074
SELECT + - col2 + col1 / col1 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT DISTINCT col2 + cor0.col0 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + + cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col0 + tab0.col2 * col2 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT + cor0.col1 * + cor0.col0 + - col0 * + col0 FROM tab0 AS cor0
----
1488
178
2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + - col2 col2 FROM tab0 cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8081
SELECT tab1.col0 * tab1.col2 DIV + col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8081
SELECT tab1.col0 * tab1.col2 / + col0 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8082
SELECT DISTINCT - col1 DIV - cor0.col0 FROM tab2 cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-8082
SELECT DISTINCT - col1 / - cor0.col0 FROM tab2 cor0
----
0
4
query I rowsort
SELECT - - cor0.col1 + col0 - col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col0 + col1 AS col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - col1 * col1 + col1 AS col1 FROM tab2
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-8086
SELECT DISTINCT + col2 * col0 + col1 DIV - col1 AS col2 FROM tab0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-8086
SELECT DISTINCT + col2 * col0 + col1 / - col1 AS col2 FROM tab0
----
34
7297
791
onlyif mysql # use DIV operator for integer division
query I rowsort label-8087
SELECT + col0 DIV + tab0.col2 + - col0 * col0 AS col2 FROM tab0
----
-1190
-576
-7920
skipif mysql # not compatible
query I rowsort label-8087
SELECT + col0 / + tab0.col2 + - col0 * col0 AS col2 FROM tab0
----
-1190
-576
-7920
query I rowsort
SELECT DISTINCT + tab1.col2 * + col0 * - col0 + col2 AS col1 FROM tab1
----
-233415
-432
-614304
query I rowsort
SELECT DISTINCT - - col0 + + col2 * col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-8090
SELECT col0 DIV col0 - cor0.col1 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8090
SELECT col0 / col0 - cor0.col1 / col0 AS col0 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT + col1 * col1 * - col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 * col1 col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT col1 * col1 * - col1 AS col2 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT col2 * col2 - + col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - col2 - + col1 AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT col0 + col2 + col1 * - col1 AS col1 FROM tab2
----
-172
-3377
-927
onlyif mysql # use DIV operator for integer division
query I rowsort label-8097
SELECT - tab1.col2 DIV + col1 col0 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8097
SELECT - tab1.col2 / + col1 col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL + cor0.col1 + tab0.col1 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c5258bcf385d823888d8f81f12b6caca
query I rowsort
SELECT col0 * + col0 * + col1 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-8100
SELECT DISTINCT col1 - tab0.col1 * col1 DIV col2 AS col1 FROM tab0
----
-138
-9
-9312
skipif mysql # not compatible
query I rowsort label-8100
SELECT DISTINCT col1 - tab0.col1 * col1 / col2 AS col1 FROM tab0
----
-138
-9
-9312
query I rowsort
SELECT ALL - col2 * - col1 - col1 AS col2 FROM tab2
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8102
SELECT col2 + - col1 * + col2 * + cor0.col0 - + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079
skipif mysql # not compatible
query I rowsort label-8102
SELECT col2 + - col1 * + col2 * + cor0.col0 - + col2 / + col1 AS col0 FROM tab0 AS cor0
----
-3394
-664036
-68079
onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT DISTINCT - ( + col1 ) + - col1 + ( + tab2.col0 ) DIV tab2.col0 FROM tab2
----
-117
-33
-61
skipif mysql # not compatible
query I rowsort label-8103
SELECT DISTINCT - ( + col1 ) + - col1 + ( + tab2.col0 ) / tab2.col0 FROM tab2
----
-117
-33
-61
query I rowsort
SELECT DISTINCT 74 + tab0.col0 + col0 FROM tab0
----
122
144
252
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT 38 * + col0 FROM tab0
----
1330
3382
912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8107
SELECT ALL 67 * col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL 67 * col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col1 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col2 * col1 * - col0 + col0 * col0 FROM tab1 AS cor0
----
-32384
-4203
-93440
query I rowsort
SELECT DISTINCT + 69 * + col1 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT DISTINCT - - col2 + + col1 * + ( - 58 ) * col1 FROM tab0 AS cor0
----
-428935
-480216
-545721
onlyif mysql # use DIV operator for integer division
query I rowsort label-8112
SELECT + 19 DIV + col2 + col2 + - col0 * tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort label-8112
SELECT + 19 / + col2 + col2 + - col0 * tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-8113
SELECT - col2 DIV + CAST( col1 AS SIGNED ) + - col0 * cor0.col1 + + col1 FROM tab1 AS cor0
----
-1034
-54
-635
skipif mysql # not compatible
query I rowsort label-8113
SELECT - col2 / + CAST ( col1 AS INTEGER ) + - col0 * cor0.col1 + + col1 FROM tab1 AS cor0
----
-1034
-54
-635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * ( col1 * col0 ) col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL - 85 AS col1 FROM tab0
----
-85
-85
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8116
SELECT DISTINCT + col1 + + 39 + col0 DIV col2 FROM tab0 cor0
----
125
131
171
skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT + col1 + + 39 + col0 / col2 FROM tab0 cor0
----
125
131
171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( col0 ) col0 FROM tab0
----
178
48
70
query I rowsort
SELECT ALL ( - col2 ) - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 70 AS col2 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT + + col0 + + 15 * col0 AS col2 FROM tab0 AS cor0
----
1424
384
560
query I rowsort
SELECT 62 * + col1 AS col1 FROM tab2 AS cor0
----
1054
1922
3658
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) + + cor0.col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8123
SELECT - CAST( + 44 AS SIGNED ) col0 FROM tab2 AS cor0
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8123
SELECT - CAST ( + 44 AS INTEGER ) col0 FROM tab2 AS cor0
----
-44
-44
-44
query I rowsort
SELECT ALL - - col2 + - col0 - cor0.col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL col1 * col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL col0 * col1 + - 0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + 56 AS col2 FROM tab1 cor0
----
56
56
56
query I rowsort
SELECT col2 * cor0.col1 - + 70 AS col2 FROM tab2 AS cor0
----
1464
576
767
query I rowsort
SELECT ALL + + col1 + - col2 * - col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - 72 * col1 - col2 FROM tab0 cor0
----
-6225
-6634
-6985
query I rowsort
SELECT DISTINCT + 73 - col1 AS col0 FROM tab1 cor0
----
47
60
63
query I rowsort
SELECT + col2 * - col2 + col1 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL + + 43 + col1 FROM tab1 cor0
----
53
56
69
query I rowsort
SELECT + col2 + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col1 col1 FROM tab0 AS cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-8136
SELECT + col1 DIV + col0 - - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
193
2028
3002
skipif mysql # not compatible
query I rowsort label-8136
SELECT + col1 / + col0 - - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
193
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col2 col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT - 62 * + col1 - tab2.col1 FROM tab2
----
-1071
-1953
-3717
query I rowsort
SELECT col0 + - 92 FROM tab1
----
-12
-28
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8141
SELECT tab0.col0 DIV 49 - col0 DIV - ( - col0 ) AS col1 FROM tab0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8141
SELECT tab0.col0 / 49 - col0 / - ( - col0 ) AS col1 FROM tab0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8142
SELECT DISTINCT cor0.col1 + - col0 DIV col1 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-8142
SELECT DISTINCT cor0.col1 + - col0 / col1 FROM tab2 AS cor0
----
13
31
58
query I rowsort
SELECT ALL + col2 + cor0.col2 * col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL 98 + - col1 AS col0 FROM tab2
----
39
67
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8146
SELECT - + col2 DIV + 58 + - col0 FROM tab0 AS cor0
----
-24
-35
-90
skipif mysql # not compatible
query I rowsort label-8146
SELECT - + col2 / + 58 + - col0 FROM tab0 AS cor0
----
-24
-35
-90
query I rowsort
SELECT 26 * col0 FROM tab1
----
1664
2080
78
query I rowsort
SELECT DISTINCT 25 FROM tab0, tab1 cor0, tab1 AS cor1
----
25
query I rowsort
SELECT + col1 * - 38 + col2 * 65 + - col0 * - col2 AS col1 FROM tab1 cor0
----
13426
2684
6973
query I rowsort
SELECT - col0 * + 6 + - col0 FROM tab2 AS cor0
----
-49
-546
-553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8151
SELECT + + CAST( col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8151
SELECT + + CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8152
SELECT DISTINCT col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT col2 * 41 FROM tab1
----
2214
2337
3936
query I rowsort
SELECT 72 AS col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col0 FROM tab2
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8156
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8157
SELECT DISTINCT 44 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT 44 / col1 AS col0 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT - ( col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 76 AS col1 FROM tab1 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8160
SELECT ALL - col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + ( + col0 ) * - cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - - 13 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT - col0 + 91 FROM tab1 cor0
----
11
27
88
query I rowsort
SELECT - + col2 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8165
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8165
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab2 cor0
----
NULL
query I rowsort
SELECT ALL - tab2.col1 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT 97 FROM tab0, tab1 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT - col1 * - 69 * - col1 FROM tab1
----
-11661
-46644
-6900
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab2 WHERE NULL > ( tab2.col2 )
----
query I rowsort
SELECT ALL + 3 * - tab1.col0 AS col2 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 50324b81c94ed15e84197701b0db1994
query I rowsort
SELECT + 18 * cor0.col1 * cor0.col0 FROM tab1 cor0
----
11520
1404
18720
query I rowsort
SELECT col2 + + 37 * + col1 FROM tab0 AS cor0
----
3215
3449
3590
query I rowsort
SELECT cor0.col0 * 23 FROM tab2 AS cor0
----
161
1794
1817
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8174
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + CAST ( NULL AS REAL ) + col0 FROM tab0
----
NULL
query I rowsort
SELECT 64 * + col2 * + col0 FROM tab2 AS cor0
----
12096
129792
192128
query I rowsort
SELECT - - 27 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8177
SELECT DISTINCT - col2 DIV + cor0.col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - col2 / + cor0.col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT col0 + col0 * - ( 35 ) AS col2 FROM tab0 AS cor0
----
-1190
-3026
-816
query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 * - 49 AS col1 FROM tab1 AS cor0
----
-27930
-61152
-68796
query I rowsort
SELECT - col1 + col2 * - cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + col0 - + col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT + col1 * + ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col0 * + col2 + - cor0.col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col2 * ( col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT tab0.col1 - col1 AS col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col1 FROM tab2, tab2 AS cor0
----
42
query I rowsort
SELECT - + col1 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * cor0.col1 * - col2 FROM tab0 cor0
----
-244068
-679042
-9409
query I rowsort
SELECT col2 * 87 + 15 FROM tab2 AS cor0
----
2277
2364
3321
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8190
SELECT - col2 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8190
SELECT - col2 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + col2 * - 96 AS col0 FROM tab2 AS cor0
----
2496
2592
3648
query I rowsort
SELECT ALL + 99 * + col0 * col1 + + ( 64 + col1 ) FROM tab0 AS cor0
----
204486
336266
801956
query I rowsort
SELECT + + ( cor0.col1 ) * col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + cor0.col0 + - col2 + col1 FROM tab2 cor0
----
11
111
58
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT - col1 * 81 FROM tab0
----
-6966
-7371
-7857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8197
SELECT ALL + CAST( + cor0.col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-8197
SELECT ALL + CAST ( + cor0.col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + col1 * 37 * - col1 + col0 * + col2 * + col0 AS col0 FROM tab1 cor0
----
-24526
229772
608147
query I rowsort
SELECT DISTINCT - cor1.col0 * 39 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
-1365
-3471
-936
query I rowsort
SELECT - ( + col0 ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + + 14 + col2 * - col0 * col1 FROM tab2 AS cor0
----
-119638
-51020
-5845
query I rowsort
SELECT + + col2 + + ( - col0 ) * - cor0.col2 AS col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + - col1 * col1 + cor0.col1 AS col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - cor0.col0 + 3 FROM tab0 AS cor0
----
-21
-32
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - cor0.col0 col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8206
SELECT ALL col1 + - CAST( NULL AS SIGNED ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) / col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * col0 + + col2 + cor0.col1 AS col2 FROM tab0 cor0
----
-1945
-3297
-7926
query I rowsort
SELECT col0 - col1 * + col1 FROM tab1
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT - tab1.col2 - + col0 DIV col1 FROM tab1
----
-102
-54
-63
skipif mysql # not compatible
query I rowsort label-8209
SELECT - tab1.col2 - + col0 / col1 FROM tab1
----
-102
-54
-63
query I rowsort
SELECT + col2 + col0 + col0 FROM tab2
----
182
196
41
query I rowsort
SELECT - col2 * + tab0.col1 * + col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT col1 + - col1 + col2 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + + col0 + + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + - col2 * col0 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT tab0.col1 + - col2 * - col1 + + col2 AS col2 FROM tab0
----
195
2957
7635
query I rowsort
SELECT + tab2.col0 - + col1 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) >= col0 * - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - tab0.col1 * tab0.col1 - + col2 col1 FROM tab0
----
-177537
-329316
-737091
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + col2 * col1 col0 FROM tab2
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab0 WHERE col0 / + col2 IN ( col1 + - col0 * + tab0.col1 )
----
query I rowsort
SELECT ALL col1 * col2 + - 97 FROM tab0
----
0
2741
7365
query I rowsort
SELECT ALL - col2 + col0 * col0 AS col1 FROM tab1
----
-45
4039
6304
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8223
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8223
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8224
SELECT + + col1 * col2 + + col0 DIV + col1 - + col2 DIV 96 FROM tab2 AS cor0
----
1535
650
837
skipif mysql # not compatible
query I rowsort label-8224
SELECT + + col1 * col2 + + col0 / + col1 - + col2 / 96 FROM tab2 AS cor0
----
1535
650
837
query I rowsort
SELECT DISTINCT - 6 * + col0 AS col0 FROM tab1 AS cor0
----
-18
-384
-480
query I rowsort
SELECT DISTINCT - col1 * col1 + col0 FROM tab0 cor0
----
-7372
-8192
-9374
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN + col1 AND NULL
----
query I rowsort
SELECT ALL - col0 * col2 + - col0 FROM tab2
----
-196
-2106
-3081
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND + col0 * col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT DISTINCT col2 + - col2 * tab2.col0 DIV - tab2.col1 AS col0 FROM tab2
----
214
33
60
skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT col2 + - col2 * tab2.col0 / - tab2.col1 AS col0 FROM tab2
----
214
33
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 col1 FROM tab0 WHERE col0 IN ( + col1 * col1 + - col1 * col0 )
----
query I rowsort
SELECT DISTINCT + col2 * - col0 + col2 FROM tab2
----
-162
-2002
-2964
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 ) > NULL
----
query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= - col2 / + col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE ( + col2 ) < ( col1 )
----
query I rowsort
SELECT + col1 + col0 AS col2 FROM tab1 WHERE ( col0 ) IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 / - col2 col2 FROM tab0 WHERE NOT col1 * + col1 * + col1 >= ( col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE - col1 NOT IN ( + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < col1
----
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( + col2 + - tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0 WHERE NOT col2 * col0 NOT IN ( col1 * - col0 )
----
query I rowsort
SELECT - tab2.col0 - col2 FROM tab2
----
-104
-117
-34
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN col2 * col0 AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8245
SELECT - col2 DIV tab0.col1 + col1 + col1 * - col0 * - col0 AS col0 FROM tab0
----
118922
49622
720902
skipif mysql # not compatible
query I rowsort label-8245
SELECT - col2 / tab0.col1 + col1 + col1 * - col0 * - col0 AS col0 FROM tab0
----
118922
49622
720902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col1 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT DISTINCT + ( 26 ) FROM tab0 AS cor0
----
26
query I rowsort
SELECT DISTINCT 25 + - 68 AS col0 FROM tab2 AS cor0
----
-43
query I rowsort
SELECT - 27 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT ALL 99 DIV cor0.col2 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL 99 / cor0.col2 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 2a004dce2d308bae163576f54ee1a3fc
query I rowsort
SELECT ALL col0 + - col2 * - col1 + - 52 AS col0 FROM tab0 cor0
----
2810
7499
80
query I rowsort
SELECT + - cor0.col2 + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT col1 + col2 * col1 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL col2 * + 49 AS col1 FROM tab1 AS cor0
----
2646
2793
4704
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8255
SELECT + col0 + CAST( NULL AS SIGNED ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8255
SELECT + col0 + CAST ( NULL AS INTEGER ) / - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + cor0.col0 + + 16 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
301
3276
4266
query I rowsort
SELECT ALL cor0.col2 * - ( cor0.col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - + col1 * 94 + - col2 FROM tab1 AS cor0
----
-1318
-2498
-997
query I rowsort
SELECT DISTINCT + col2 - - 69 AS col1 FROM tab1 cor0
----
123
126
165
query I rowsort
SELECT DISTINCT - cor0.col2 * + ( cor0.col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 + cor0.col0 * 13 FROM tab2 AS cor0
----
64
988
989
query I rowsort
SELECT DISTINCT - + col2 - - ( col0 + col2 ) FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8263
SELECT - + col2 * + CAST( NULL AS DECIMAL ) * + col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8263
SELECT - + col2 * + CAST ( NULL AS REAL ) * + col0 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8264
SELECT - + tab0.col1 DIV cor0.col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 6669a3053b62dced2492a955c6394d9b
skipif mysql # not compatible
query I rowsort label-8264
SELECT - + tab0.col1 / cor0.col1 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 6669a3053b62dced2492a955c6394d9b
query I rowsort
SELECT ALL - col0 + - col1 + 34 AS col2 FROM tab1
----
-40
-59
5
query I rowsort
SELECT - col2 + + col0 * + 36 AS col2 FROM tab1 cor0
----
2247
2784
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8267
SELECT col1 + CAST( + col2 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif mysql # not compatible
query I rowsort label-8267
SELECT col1 + CAST ( + col2 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT 24 + col2 FROM tab0
----
106
25
57
query I rowsort
SELECT + ( - 84 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
query I rowsort
SELECT ALL 76 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT 50 * - col2 * ( - col1 ) - col0 AS col0 FROM tab0 AS cor0
----
141876
373011
4815
query I rowsort
SELECT + col0 * tab1.col1 + - col2 + - col0 * col2 FROM tab1
----
-138
-3065
-6736
query I rowsort
SELECT col0 * - col0 - col2 * - col1 FROM tab0
----
-1128
-459
2262
query I rowsort
SELECT ( col0 ) * 77 + - 92 - col0 AS col0 FROM tab1
----
136
4772
5988
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 + - ( + 88 + col2 ) FROM tab0 AS cor0
----
-121
-170
-89
query I rowsort
SELECT - ( - col0 ) + + 81 * - 26 FROM tab2 AS cor0
----
-2027
-2028
-2099
query I rowsort
SELECT col2 * + col2 * 20 + - 76 AS col0 FROM tab0 cor0
----
-56
134404
21704
query I rowsort
SELECT DISTINCT - - col0 * + col1 + - 46 * 75 AS col1 FROM tab1 cor0
----
-2410
-2810
-3372
skipif mysql # not compatible
query I rowsort
SELECT + col2 * + CAST ( col1 AS REAL ) * + col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-8281
SELECT ALL + col1 * 67 + + col1 * - col1 DIV col1 FROM tab1 AS cor0
----
1716
660
858
skipif mysql # not compatible
query I rowsort label-8281
SELECT ALL + col1 * 67 + + col1 * - col1 / col1 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT DISTINCT - col0 * + ( ( col2 ) ) AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT cor0.col1 + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT DISTINCT + col2 + 11 * + col0 FROM tab1 AS cor0
----
761
87
976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8285
SELECT ALL - col0 * - CAST( NULL AS DECIMAL ) + + 82 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL - col0 * - CAST ( NULL AS REAL ) + + 82 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8286
SELECT + col0 * + ( col1 ) + col0 + + cor0.col0 * cor0.col2 DIV col1 AS col2 FROM tab2 AS cor0
----
1598
230
4714
skipif mysql # not compatible
query I rowsort label-8286
SELECT + col0 * + ( col1 ) + col0 + + cor0.col0 * cor0.col2 / col1 AS col2 FROM tab2 AS cor0
----
1598
230
4714
query I rowsort
SELECT DISTINCT + - col1 * 38 AS col1 FROM tab1 AS cor0
----
-380
-494
-988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8288
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col2 * + col0 * + col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - + 0 + 50 * col1 FROM tab2 AS cor0
----
1550
2950
850
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-8292
SELECT CAST( col1 AS SIGNED ) * - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
skipif mysql # not compatible
query I rowsort label-8292
SELECT CAST ( col1 AS INTEGER ) * - cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + + ( col2 ) + col2 * + 9 AS col0 FROM tab2 cor0
----
260
270
380
query I rowsort
SELECT ALL + 90 * - col0 AS col1 FROM tab1
----
-270
-5760
-7200
query I rowsort
SELECT 6 * + col2 FROM tab0 AS cor0
----
198
492
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + col2 * 82 * + 33 col0 FROM tab2 AS cor0
----
102772
70300
73006
query I rowsort
SELECT ALL 0 + col2 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col0 * col2 * + col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-8299
SELECT DISTINCT + ( + col2 ) DIV col1 col2 FROM tab2
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT + ( + col2 ) / col1 col2 FROM tab2
----
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8300
SELECT - CAST( + col1 * + col0 AS SIGNED ) FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-8300
SELECT - CAST ( + col1 * + col0 AS INTEGER ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8301
SELECT ALL col0 DIV col1 - ( 51 ) FROM tab2
----
-47
-50
-51
skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL col0 / col1 - ( 51 ) FROM tab2
----
-47
-50
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-8302
SELECT 26 DIV - col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8302
SELECT 26 / - col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) * col1 * - 53 AS col1 FROM tab2 AS cor0
----
-15317
-184493
-50933
query I rowsort
SELECT + col2 * cor0.col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8305
SELECT DISTINCT - 66 + col1 DIV - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-67
skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT - 66 + col1 / - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-67
query I rowsort
SELECT ALL + cor0.col1 * - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + 16 AS col2 FROM tab1 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-8308
SELECT DISTINCT tab0.col0 DIV 52 AS col2 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-8308
SELECT DISTINCT tab0.col0 / 52 AS col2 FROM tab0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8309
SELECT - col2 + CAST( NULL AS SIGNED ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8309
SELECT - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + 60 col2 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT ALL 54 FROM tab0 cor0
----
54
54
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8312
SELECT ALL CAST( col2 AS SIGNED ) + + col0 FROM tab2 cor0
----
104
117
34
skipif mysql # not compatible
query I rowsort label-8312
SELECT ALL CAST ( col2 AS INTEGER ) + + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + col1 * - 73 * - col0 FROM tab1 AS cor0
----
-46720
-5694
-75920
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * + col2 + - col1 * + col2 col0 FROM tab1 AS cor0
----
1512
2679
7968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * col1 col2 FROM tab2 AS cor0
----
1705
3245
935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8317
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 57 * col0 + 99 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 57 * col0 + 99 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 5 * col2 AS col1 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT + cor0.col2 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + + cor0.col2 * cor0.col0 + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - + 0 + + 39 * col2 + col0 AS col2 FROM tab2 AS cor0
----
1060
1092
1561
query I rowsort
SELECT ALL col1 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + col1 * col1 + + col2 * - col2 * ( ( col0 ) ) + col2 FROM tab0 AS cor0
----
-18707
-590073
9375
query I rowsort
SELECT DISTINCT col0 + + col2 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + + col2 * col2 + ( col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
14823
3153
3396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + 95 * - col2 col2 FROM tab0 AS cor0
----
-192
-3221
-7881
query I rowsort
SELECT - + cor0.col0 * - 4 AS col2 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT ALL - col0 * 42 AS col2 FROM tab2 AS cor0
----
-294
-3276
-3318
query I rowsort
SELECT ALL + cor0.col0 + ( col2 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - 70 AS col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f
query I rowsort
SELECT ( + col1 ) - - tab0.col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + - col2 + - 83 - + col1 FROM tab2 cor0
----
-138
-141
-168
query I rowsort
SELECT DISTINCT + col1 + 77 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - 58 + 71 FROM tab2, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - + col1 + col0 * - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + 87 * col0 col0 FROM tab0 AS cor0
----
2121
3046
7825
query I rowsort
SELECT DISTINCT - col1 * - 77 FROM tab2
----
1309
2387
4543
query I rowsort
SELECT DISTINCT - - col2 - col1 AS col2 FROM tab2 cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + col1 + - cor0.col2 col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
76
query I rowsort
SELECT - col0 + + col1 * 99 AS col2 FROM tab2 AS cor0
----
1604
3062
5763
query I rowsort
SELECT + - col2 + col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8344
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + - col0 + - ( ( + tab0.col2 ) + - col2 ) * col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + - col0 + - ( ( + tab0.col2 ) + - col2 ) * col1 FROM tab0
----
NULL
query I rowsort
SELECT - 78 FROM tab1, tab0 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT ( - col0 ) DIV 69 + - tab2.col2 * - col1 col1 FROM tab2
----
1533
645
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8347
SELECT ( - col0 ) / 69 + - tab2.col2 * - col1 col1 FROM tab2
----
1533
645
837
query I rowsort
SELECT DISTINCT + ( col2 * col1 + + col2 ) FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT 67 * + col2 FROM tab2
----
1742
1809
2546
query I rowsort
SELECT ALL + 12 AS col2 FROM tab0 AS cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + tab0.col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + + ( - cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL 55 * + col2 AS col0 FROM tab0 AS cor0
----
1815
4510
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + 32 col1 FROM tab2 AS cor0
----
6116
6273
81
query I rowsort
SELECT - col1 + 8 * 32 AS col2 FROM tab0 AS cor0
----
159
165
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT + col2 + + col1 DIV - col0 FROM tab2
----
23
26
38
skipif mysql # not compatible
query I rowsort label-8356
SELECT + col2 + + col1 / - col0 FROM tab2
----
23
26
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-47
query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab0 AS cor0
----
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8359
SELECT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8359
SELECT CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - - col0 * - ( col2 + col2 ) FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT - + cor0.col0 + 94 * - col1 AS col2 FROM tab1 AS cor0
----
-1004
-1302
-2447
query I rowsort
SELECT - + col1 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-8364
SELECT ALL 86 DIV + col1 col1 FROM tab1
----
3
6
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8364
SELECT ALL 86 / + col1 col1 FROM tab1
----
3
6
8
query I rowsort
SELECT DISTINCT cor0.col1 + + 33 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
50
64
92
query I rowsort
SELECT ALL - 37 + - col0 FROM tab1 AS cor0
----
-101
-117
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-8367
SELECT DISTINCT + - 72 DIV 83 AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + - 72 / 83 AS col0 FROM tab1 cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8368
SELECT + - CAST( NULL AS DECIMAL ) * 30 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8368
SELECT + - CAST ( NULL AS REAL ) * 30 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 79 - - ( col0 ) AS col0 FROM tab1 AS cor0
----
-15
-76
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 78 + - col1 col2 FROM tab1 AS cor0
----
208
4982
6227
query I rowsort
SELECT ALL 6 + + 31 * - col0 FROM tab0 AS cor0
----
-1079
-2753
-738
query I rowsort
SELECT DISTINCT + col1 + col2 * + col1 AS col1 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-8373
SELECT ALL 61 + + col2 DIV - col0 AS col1 FROM tab1
----
43
60
61
skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL 61 + + col2 / - col0 AS col1 FROM tab1
----
43
60
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT 71 * cor0.col1 + CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8374
SELECT 71 * cor0.col1 + CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col0 * + ( col0 ) FROM tab1 AS cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 + + col0 col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + col0 * + col0 + 48 AS col0 FROM tab0
----
1273
624
7969
query I rowsort
SELECT col1 + 22 AS col0 FROM tab0
----
108
113
119
onlyif mysql # use DIV operator for integer division
query I rowsort label-8379
SELECT ALL col0 DIV + 81 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8379
SELECT ALL col0 / + 81 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT + col1 * - col1 + col1 - cor0.col0 * + col1 FROM tab2 AS cor0
----
-1147
-1615
-8024
skipif mysql # not compatible
query I rowsort
SELECT ( + 83 ) * + col2 + - CAST ( + col0 AS REAL ) * + col1 FROM tab1 AS cor0
----
4091
4404
6928
onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT cor0.col2 * 57 + col0 DIV col1 - ( col1 + - ( 51 ) ) DIV col1 FROM tab1 cor0
----
3078
3259
5480
skipif mysql # not compatible
query I rowsort label-8382
SELECT cor0.col2 * 57 + col0 / col1 - ( col1 + - ( 51 ) ) / col1 FROM tab1 cor0
----
3078
3259
5480
query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab1 AS cor0
----
-74
skipif mysql # not compatible
query I rowsort
SELECT - + ( + col0 ) + col0 - CAST ( col2 AS REAL ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL ( col0 ) + col1 + + 27 * col0 * col1 AS col0 FROM tab1 AS cor0
----
17354
2135
28173
query I rowsort
SELECT ALL + 58 + col2 FROM tab0 AS cor0
----
140
59
91
query I rowsort
SELECT DISTINCT col0 + ( col0 ) * + cor0.col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - cor0.col2 * 47 FROM tab1 AS cor0
----
-2538
-2679
-4512
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) AS col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 * col0 + - col1 * + col1 col2 FROM tab1 AS cor0
----
-469
4316
5351
query I rowsort
SELECT DISTINCT - ( + ( - col1 ) ) FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col0 * col2 + + col2 AS col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT - - col2 * col1 + + ( col0 + + col2 ) AS col1 FROM tab2 AS cor0
----
1638
763
871
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8394
SELECT cor0.col0 * - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8394
SELECT cor0.col0 * - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 37 * col2 + - 87 AS col0 FROM tab0 AS cor0
----
-50
1134
2947
query I rowsort
SELECT + - 53 * - col2 + - col0 FROM tab1 AS cor0
----
2859
2957
5008
query I rowsort
SELECT - - cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - 49 * col1 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
139062
365638
4753
query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
0
query I rowsort
SELECT cor0.col1 + cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - cor0.col0 - + 69 * + col1 AS col2 FROM tab1 AS cor0
----
-1797
-754
-977
query I rowsort
SELECT col1 + col1 * - col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - + col2 * + cor0.col0 + - col0 * col2 FROM tab2 cor0
----
-378
-4056
-6004
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8405
SELECT DISTINCT + + col2 + + 75 DIV col0 col1 FROM tab1 AS cor0
----
58
79
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT + + col2 + + 75 / col0 col1 FROM tab1 AS cor0
----
58
79
96
query I rowsort
SELECT ALL - - col0 * 25 FROM tab1 AS cor0
----
1600
2000
75
query I rowsort
SELECT DISTINCT - col1 * 73 - col2 AS col0 FROM tab1 AS cor0
----
-1045
-1952
-787
query I rowsort
SELECT + 51 * - col1 AS col0 FROM tab2
----
-1581
-3009
-867
onlyif mysql # use DIV operator for integer division
query I rowsort label-8409
SELECT - 53 * col1 - + col0 DIV col1 AS col2 FROM tab2
----
-1643
-3128
-905
skipif mysql # not compatible
query I rowsort label-8409
SELECT - 53 * col1 - + col0 / col1 AS col2 FROM tab2
----
-1643
-3128
-905
query I rowsort
SELECT col0 + + ( - col2 ) * col0 AS col0 FROM tab0 cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - ( + col1 ) col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + ( - col2 + - col1 ) col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT 95 FROM tab0, tab1 AS cor0
----
95
query I rowsort
SELECT - 62 * + 96 FROM tab2 AS cor0
----
-5952
-5952
-5952
query I rowsort
SELECT ALL + 64 - col1 FROM tab1
----
38
51
54
query I rowsort
SELECT DISTINCT 2 FROM tab0, tab1 AS cor0
----
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT - 11 DIV + cor0.col0 - col2 * col2 * ( - col2 ) FROM tab1 AS cor0
----
157461
185193
884736
skipif mysql # not compatible
query I rowsort label-8417
SELECT - 11 / + cor0.col0 - col2 * col2 * ( - col2 ) FROM tab1 AS cor0
----
157461
185193
884736
query I rowsort
SELECT ALL - 11 + - col2 * + 89 AS col0 FROM tab1
----
-4817
-5084
-8555
query I rowsort
SELECT + 5 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 * + col0 + - col1 + col2 col2 FROM tab1
----
207983
737363
8776
query I rowsort
SELECT col0 * + col1 - col1 FROM tab2
----
1326
186
4543
query I rowsort
SELECT ALL tab2.col2 + - col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL + cor0.col0 + tab1.col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 1a4f43ea4186b2b16e5524688d4e5ca6
query I rowsort
SELECT ALL col1 + - col1 * + col1 AS col0 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL 22 * + cor0.col1 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8427
SELECT ALL cor0.col1 DIV + col2 col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL cor0.col1 / + col2 col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8428
SELECT - - 32 + + col1 DIV - col0 FROM tab0 AS cor0
----
29
30
31
skipif mysql # not compatible
query I rowsort label-8428
SELECT - - 32 + + col1 / - col0 FROM tab0 AS cor0
----
29
30
31
query I rowsort
SELECT ALL 81 * + col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT DISTINCT 85 * + ( col1 ) + + ( col0 ) - col0 AS col1 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT + ( 25 ) AS col0 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT ALL - col0 + - ( col0 ) * ( + col0 * col0 ) AS col0 FROM tab1 cor0
----
-262208
-30
-512080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8433
SELECT ALL - - CAST( col0 AS SIGNED ) 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-8433
SELECT ALL - - CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col1 * ( + col0 ) + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + - ( + 77 ) * + col2 - - ( col1 ) FROM tab0 AS cor0
----
-2455
-6223
20
query I rowsort
SELECT DISTINCT - col0 - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - ( + col1 ) + cor0.col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - - cor0.col0 + + cor0.col0 + - col2 FROM tab0 AS cor0
----
15
69
96
query I rowsort
SELECT ALL ( 92 ) + + col2 AS col0 FROM tab1 cor0
----
146
149
188
query I rowsort
SELECT DISTINCT - 31 - + col1 AS col1 FROM tab2 AS cor0
----
-48
-62
-90
query I rowsort
SELECT + + cor0.col0 * col1 + - cor0.col0 * + 79 FROM tab0 AS cor0
----
1068
168
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-8442
SELECT - - 11 DIV col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8442
SELECT - - 11 / col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT ( 50 ) * - col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8444
SELECT DISTINCT col1 * col2 + + CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT col1 * col2 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT ALL + - 31 + col2 * + 24 * 45 FROM tab1 AS cor0
----
103649
58289
61529
query I rowsort
SELECT ALL col0 * cor0.col0 + - 1 AS col2 FROM tab1 AS cor0
----
4095
6399
8
query I rowsort
SELECT + 92 + - col2 AS col0 FROM tab0 AS cor0
----
10
59
91
query I rowsort
SELECT DISTINCT - ( col2 * col2 ) AS col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL tab1.col0 * + 46 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7db746df40ae3d894b158289d2e62a24
query I rowsort
SELECT ALL + + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + 3 + + col2 * + col2 FROM tab1 AS cor0
----
2919
3252
9219
query I rowsort
SELECT 61 * + 73 + col0 * + col0 FROM tab1
----
10853
4462
8549
query I rowsort
SELECT + col0 * - ( 49 ) FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT ALL cor0.col0 + ( + col1 + + col1 ) FROM tab1 AS cor0
----
106
55
84
query I rowsort
SELECT ALL - - col0 * - ( col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8456
SELECT ALL col1 * - CAST( + ( col1 ) * col1 AS SIGNED ) FROM tab1 AS cor0
----
-1000
-17576
-2197
skipif mysql # not compatible
query I rowsort label-8456
SELECT ALL col1 * - CAST ( + ( col1 ) * col1 AS INTEGER ) FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT ALL + col2 + 63 AS col2 FROM tab0
----
145
64
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8458
SELECT col1 + - CAST( NULL AS SIGNED ) * tab1.col2 + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8458
SELECT col1 + - CAST ( NULL AS INTEGER ) * tab1.col2 + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( - 77 ) * - col1 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT - + 50 + - col2 FROM tab2 AS cor0
----
-76
-77
-88
query I rowsort
SELECT - tab1.col1 + col1 * col0 FROM tab1
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8462
SELECT ALL - col1 + CAST( col1 AS SIGNED ) col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8462
SELECT ALL - col1 + CAST ( col1 AS INTEGER ) col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8463
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8463
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + + ( col2 ) AS col1 FROM tab0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT col0 * col2 DIV 88 AS col2 FROM tab2
----
2
23
34
skipif mysql # not compatible
query I rowsort label-8465
SELECT col0 * col2 / 88 AS col2 FROM tab2
----
2
23
34
query I rowsort
SELECT ALL ( - 29 ) FROM tab0, tab1 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT col1 + + col0 * tab2.col2 + col0 AS col0 FROM tab2
----
2165
227
3098
query I rowsort
SELECT DISTINCT - col2 * - 1 * col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to 1654646feeae82f39d2f564fe4ea26c2
query I rowsort
SELECT DISTINCT + col2 + 3 + 55 FROM tab0
----
140
59
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 * + 25 col1 FROM tab2
----
675
675
675
query I rowsort
SELECT DISTINCT + ( 78 ) FROM tab1
----
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8473
SELECT CAST( col0 + + col1 AS SIGNED ) FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-8473
SELECT CAST ( col0 + + col1 AS INTEGER ) FROM tab2
----
137
38
96
query I rowsort
SELECT ALL + cor1.col0 * 36 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1bbc1aef7348cb59e24bd24954e32d73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * + col1 col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + ( - ( tab2.col2 ) ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL 9 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT col2 + + tab2.col1 * - 68 * col1 FROM tab2
----
-19614
-236682
-65321
query I rowsort
SELECT ALL - 35 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b
query I rowsort
SELECT - col0 * + col0 + col1 AS col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT col0 * - tab1.col0 + - col2 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT DISTINCT + - col2 * col0 * ( col2 ) + + col0 * col1 * col1 FROM tab1 cor0
----
-201536
-6720
-723760
query I rowsort
SELECT DISTINCT + - 48 + col0 * ( col1 ) AS col1 FROM tab0 AS cor0
----
2016
3347
8051
query I rowsort
SELECT - col1 * - 92 + 7 - col2 FROM tab1 cor0
----
1107
2345
870
query I rowsort
SELECT ALL + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8486
SELECT ALL - + col2 DIV - 35 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8486
SELECT ALL - + col2 / - 35 FROM tab0 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT + col1 DIV ( + col1 ) AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8487
SELECT + col1 / ( + col1 ) AS col0 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8488
SELECT - - col2 DIV - col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8488
SELECT - - col2 / - col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT - + col2 + + col1 * + 61 AS col1 FROM tab0 AS cor0
----
5213
5469
5916
query I rowsort
SELECT ALL cor0.col0 * col2 - col0 AS col2 FROM tab0 AS cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8492
SELECT DISTINCT CAST( 81 AS SIGNED ) col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT CAST ( 81 AS INTEGER ) col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
81
query I rowsort
SELECT 66 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT - col1 * + 52 FROM tab1 AS cor0
----
-1352
-520
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-8495
SELECT - col0 DIV cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-8495
SELECT - col0 / cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - + cor0.col2 * ( col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT ALL cor0.col2 DIV - 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL cor0.col2 / - 1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - 16 AS col0 FROM tab0
----
-16
-16
-16
query I rowsort
SELECT + 10 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
query I rowsort
SELECT ALL + cor0.col0 + 74 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 5976b78409596af53bf9a7de3e7bf7f6
query I rowsort
SELECT ALL - 18 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2dbe09d9295cfd52d854fefabf2cec4e
query I rowsort
SELECT + 16 * - col1 FROM tab2
----
-272
-496
-944
query I rowsort
SELECT DISTINCT 11 * cor0.col1 FROM tab0, tab2 cor0
----
187
341
649
query I rowsort
SELECT DISTINCT 53 + col1 - col1 AS col1 FROM tab1
----
53
query I rowsort
SELECT - + 87 + col2 FROM tab2 AS cor0
----
-49
-60
-61
query I rowsort
SELECT - ( col0 ) * 39 + ( col2 ) AS col1 FROM tab2 AS cor0
----
-246
-3016
-3043
query I rowsort
SELECT + col2 * col2 + col2 AS col1 FROM tab0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8508
SELECT - col1 + col1 DIV - col0 AS col0 FROM tab2 cor0
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-8508
SELECT - col1 + col1 / - col0 AS col0 FROM tab2 cor0
----
-17
-35
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col2 * ( col2 * col1 ) col0 FROM tab2 cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT - + 63 + col2 AS col2 FROM tab2 AS cor0
----
-25
-36
-37
query I rowsort
SELECT DISTINCT - + 24 * col1 AS col0 FROM tab2 AS cor0
----
-1416
-408
-744
query I rowsort
SELECT + - 10 + + col0 * ( - col0 + - col1 ) FROM tab1 AS cor0
----
-4746
-7450
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8513
SELECT - 52 DIV col0 + + col0 FROM tab0 AS cor0
----
22
34
89
skipif mysql # not compatible
query I rowsort label-8513
SELECT - 52 / col0 + + col0 FROM tab0 AS cor0
----
22
34
89
query I rowsort
SELECT - - ( col2 ) + col1 * ( - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 + + col2 * col0 + ( + col0 ) col0 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT DISTINCT + 22 * + col2 * tab2.col2 + + col0 + tab2.col2 FROM tab2
----
14976
16072
31885
query I rowsort
SELECT DISTINCT - + col0 + col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 33 * + col2 AS col2 FROM tab1 AS cor0
----
1782
1881
3168
onlyif mysql # use DIV operator for integer division
query I rowsort label-8519
SELECT ALL - col2 DIV + tab1.col1 + col1 FROM tab1
----
24
5
6
skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - col2 / + tab1.col1 + col1 FROM tab1
----
24
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT ALL - col2 + col1 DIV col1 AS col0 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL - col2 + col1 / col1 AS col0 FROM tab1
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - + 20 * col2 + - col1 FROM tab1 AS cor0
----
-1106
-1150
-1933
query I rowsort
SELECT ALL col2 * + col2 * 66 + - col1 * col2 FROM tab1 AS cor0
----
191052
213864
607008
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col2 col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - 24 * col2 AS col1 FROM tab1 AS cor0
----
-1296
-1368
-2304
query I rowsort
SELECT DISTINCT col2 * 48 FROM tab1 AS cor0
----
2592
2736
4608
query I rowsort
SELECT + col1 + + col2 + col2 * cor0.col0 FROM tab2 AS cor0
----
2113
247
3057
query I rowsort
SELECT ALL + col0 + + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + - col0 * ( col0 * - col2 ) + + 38 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
233500
498
614425
query I rowsort
SELECT ALL + + cor0.col2 + col2 * - 58 FROM tab2 AS cor0
----
-1482
-1539
-2166
query I rowsort
SELECT ALL - col2 + 34 FROM tab1 AS cor0
----
-20
-23
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( 18 * - col1 ) col1 FROM tab1 AS cor0
----
-12168
-1800
-3042
onlyif mysql # use DIV operator for integer division
query I rowsort label-8534
SELECT ALL - col1 DIV - cor0.col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8534
SELECT ALL - col1 / - cor0.col1 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8535
SELECT DISTINCT col2 + col2 DIV col0 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-8535
SELECT DISTINCT col2 + col2 / col0 FROM tab0
----
1
34
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8536
SELECT ALL - 72 + col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - 72 + col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + - ( - ( - col0 ) ) + - col1 AS col0 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT - + col1 + - col1 + 65 AS col0 FROM tab2 AS cor0
----
-53
3
31
query I rowsort
SELECT + col1 * - col0 + 66 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-564
-961
14
query I rowsort
SELECT - col0 - - tab1.col1 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT col2 * col2 + 59 FROM tab1
----
2975
3308
9275
query I rowsort
SELECT ALL + ( cor0.col1 ) * - col0 + + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8543
SELECT CAST( col0 AS SIGNED ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-8543
SELECT CAST ( col0 AS INTEGER ) * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL 65 + + cor0.col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1278
-152
-4537
query I rowsort
SELECT DISTINCT + + col1 + col2 * + col0 * col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
167
26246
598616
query I rowsort
SELECT + - 4 AS col1 FROM tab2 cor0
----
-4
-4
-4
query I rowsort
SELECT - col2 * + 16 AS col1 FROM tab0 AS cor0
----
-1312
-16
-528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8548
SELECT - + CAST( 59 AS SIGNED ) * col2 - + col0 AS col0 FROM tab1 AS cor0
----
-3189
-3427
-5744
skipif mysql # not compatible
query I rowsort label-8548
SELECT - + CAST ( 59 AS INTEGER ) * col2 - + col0 AS col0 FROM tab1 AS cor0
----
-3189
-3427
-5744
query I rowsort
SELECT col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8550
SELECT ALL 30 + + col0 DIV col0 col0 FROM tab1 AS cor0
----
31
31
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL 30 + + col0 / col0 col0 FROM tab1 AS cor0
----
31
31
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8551
SELECT ALL - col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 99 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL - + col0 * 13 + + col2 AS col2 FROM tab2 AS cor0
----
-64
-988
-989
query I rowsort
SELECT DISTINCT + - 2 + - col0 * - cor0.col2 FROM tab0 AS cor0
----
33
7296
790
query I rowsort
SELECT ALL - cor0.col2 * 57 AS col2 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT DISTINCT + col1 * ( col0 ) + col1 * col1 * col1 AS col0 FROM tab1 cor0
----
1640
17654
3237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8557
SELECT ALL + CAST( NULL AS DECIMAL ) + - col1 - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8557
SELECT ALL + CAST ( NULL AS REAL ) + - col1 - + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + - col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col1 * col2 * tab0.col1 FROM tab0
----
-244068
-679042
-9409
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col1 / - col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( tab1.col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( col2 ) AND NULL
----
query I rowsort
SELECT DISTINCT col1 * + col0 * - col1 FROM tab0
----
-177504
-329315
-737009
query III rowsort
SELECT * FROM tab2 WHERE + col0 * col1 + col1 <> + col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + col2 * + col1 AS col2 FROM tab2
----
1534
646
837
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN ( col1 ) AND NULL
----
query I rowsort
SELECT + col2 * col2 + - col0 FROM tab2
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 * - col1 col0 FROM tab2
----
-1534
-646
-837
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - col2 * + col1 * + col2 FROM tab0
----
-611884
-93654
-97
query III rowsort
SELECT * FROM tab0 WHERE + col1 / - col0 IN ( + col0 )
----
query I rowsort
SELECT tab2.col1 * - col1 - + tab2.col0 * + col0 FROM tab2
----
-1010
-6530
-9565
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 ) NOT BETWEEN col1 AND col2
----
query I rowsort
SELECT col2 * col0 - + col2 FROM tab1
----
108
3591
7584
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( tab2.col0 / - col1 )
----
query I rowsort
SELECT ALL col2 + + col0 * col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT col2 FROM tab1 WHERE NOT col0 < + col2
----
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8578
SELECT ALL col1 DIV - col0 + - col2 AS col2 FROM tab1
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL col1 / - col0 + - col2 AS col2 FROM tab1
----
-57
-62
-96
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND col0 / + col2
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT IN ( + col1 + tab1.col2 )
----
query I rowsort
SELECT ALL tab1.col2 - - col1 * tab1.col0 AS col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + col2 + + tab0.col0 + - col2 * tab0.col1 * - col0 FROM tab0
----
3431
664289
68169
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 + - col2 ) <= NULL
----
query I rowsort
SELECT + col2 + tab1.col0 * col0 + col0 * - tab1.col1 FROM tab1
----
-15
3513
5456
onlyif mysql # use DIV operator for integer division
query I rowsort label-8586
SELECT tab0.col2 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-8586
SELECT tab0.col2 / - col1 col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * col0 + col0 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT tab1.col2 + - col2 DIV col1 col1 FROM tab1
----
52
52
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8588
SELECT tab1.col2 + - col2 / col1 col1 FROM tab1
----
52
52
89
query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( - col2 ) = NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col0 + col1 )
----
query I rowsort
SELECT ALL + tab2.col1 * - tab2.col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 * - col1 col1 FROM tab0 cor0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8594
SELECT DISTINCT + + col0 + cor0.col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
21
64
81
skipif mysql # not compatible
query I rowsort label-8594
SELECT DISTINCT + + col0 + cor0.col2 / + col0 AS col1 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT DISTINCT - col1 * + col1 + col1 * + col0 + col1 * - col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col2 FROM tab0 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT ALL col1 * - cor0.col1 + col2 + col1 * + col0 FROM tab0 AS cor0
----
-100
-5299
-6013
query I rowsort
SELECT DISTINCT + + col0 + cor0.col2 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8599
SELECT + col0 DIV + col0 + + col1 - - col0 AS col0 FROM tab0 AS cor0
----
111
133
181
skipif mysql # not compatible
query I rowsort label-8599
SELECT + col0 / + col0 + + col1 - - col0 AS col0 FROM tab0 AS cor0
----
111
133
181
query I rowsort
SELECT - ( - col2 ) + + cor0.col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col1 * - tab0.col2 AS col2 FROM tab0 WHERE NOT NULL >= + col1
----
query I rowsort
SELECT - col0 * - col1 * 99 AS col2 FROM tab2 AS cor0
----
132957
21483
455598
query I rowsort
SELECT - cor1.col2 FROM tab2, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT col2 * - 40 AS col0 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT - cor0.col2 + - col2 * col2 AS col1 FROM tab2 cor0
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col2 FROM tab1, tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 col0 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT + col1 * + 46 AS col1 FROM tab2 AS cor0
----
1426
2714
782
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8609
SELECT ALL - CAST( col2 AS SIGNED ) + col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL - CAST ( col2 AS INTEGER ) + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor1.col1 AS col2 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - - col0 * - col1 * col2 + + col0 AS col0 FROM tab2 cor0
----
-119574
-50955
-5852
query I rowsort
SELECT cor1.col1 AS col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT DISTINCT + - 14 + col2 AS col0 FROM tab0 AS cor0
----
-13
19
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-8614
SELECT ALL - ( 7 ) DIV col0 - ( - col2 ) * col1 AS col1 FROM tab1 cor0
----
1248
1402
570
skipif mysql # not compatible
query I rowsort label-8614
SELECT ALL - ( 7 ) / col0 - ( - col2 ) * col1 AS col1 FROM tab1 cor0
----
1248
1402
570
query I rowsort
SELECT - col1 + + 32 * - col1 FROM tab0 cor0
----
-2838
-3003
-3201
query I rowsort
SELECT - col2 * 9 FROM tab1
----
-486
-513
-864
query I rowsort
SELECT ALL - col1 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT - col2 - cor0.col1 FROM tab1 cor0
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 * + col0 col2 FROM tab0 AS cor0
----
-140
-356
-96
query I rowsort
SELECT ALL + - col0 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL - 14 * - tab2.col1 + col0 FROM tab2
----
317
441
904
query I rowsort
SELECT ALL col1 + col2 * tab0.col1 AS col0 FROM tab0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-8623
SELECT DISTINCT col0 DIV col1 + col1 * + col1 * + 94 col0 FROM tab2
----
27170
327215
90334
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT col0 / col1 + col1 * + col1 * + 94 col0 FROM tab2
----
27170
327215
90334
query I rowsort
SELECT DISTINCT col1 * + col1 * - col1 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT col1 + + ( - 67 ) FROM tab2 AS cor0
----
-36
-50
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8626
SELECT ALL + col0 * - 9 + + 15 DIV - col1 + 15 * col0 FROM tab2 AS cor0
----
42
468
474
skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + col0 * - 9 + + 15 / - col1 + 15 * col0 FROM tab2 AS cor0
----
42
468
474
onlyif mysql # use DIV operator for integer division
query I rowsort label-8627
SELECT + col2 DIV - col0 + col2 DIV - col2 + - col2 FROM tab0 AS cor0
----
-2
-35
-83
skipif mysql # not compatible
query I rowsort label-8627
SELECT + col2 / - col0 + col2 / - col2 + - col2 FROM tab0 AS cor0
----
-2
-35
-83
query I rowsort
SELECT DISTINCT + col0 * 58 + - 11 AS col2 FROM tab2 AS cor0
----
395
4513
4571
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8629
SELECT + tab1.col1 * CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8629
SELECT + tab1.col1 * CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 39 * + 0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab2
----
66
66
66
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 cor2
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to f0b9665afa0b835e4e5097af17c51766
query I rowsort
SELECT - col0 + tab0.col1 * + 49 AS col0 FROM tab0
----
4190
4370
4718
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8635
SELECT - + col0 + CAST( + 85 AS SIGNED ) - cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
-1175
-515
-7925
skipif mysql # not compatible
query I rowsort label-8635
SELECT - + col0 + CAST ( + 85 AS INTEGER ) - cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
-1175
-515
-7925
query I rowsort
SELECT - + col1 + - col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT - col0 + + cor0.col2 - ( col0 ) AS col1 FROM tab2 AS cor0
----
-120
-130
13
query I rowsort
SELECT col2 * col0 * - ( + col2 ) + - ( - 22 ) + col1 * cor0.col0 FROM tab0 AS cor0
----
-24050
-590315
3382
query I rowsort
SELECT + col2 * 67 FROM tab2 AS cor0
----
1742
1809
2546
query I rowsort
SELECT col2 * + 88 + - col2 FROM tab1 AS cor0
----
4698
4959
8352
onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT + col2 + - cor0.col2 DIV col1 - + col0 col2 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8641
SELECT + col2 + - cor0.col2 / col1 - + col0 col2 FROM tab0 AS cor0
----
-34
-7
9
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-8643
SELECT DISTINCT col2 - - CAST( - tab0.col2 + col1 AS SIGNED ) FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT col2 - - CAST ( - tab0.col2 + col1 AS INTEGER ) FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8644
SELECT tab1.col2 + - CAST( 54 * + col1 AS SIGNED ) AS col0 FROM tab1
----
-1350
-483
-606
skipif mysql # not compatible
query I rowsort label-8644
SELECT tab1.col2 + - CAST ( 54 * + col1 AS INTEGER ) AS col0 FROM tab1
----
-1350
-483
-606
query I rowsort
SELECT + col2 + col1 + + col1 FROM tab2
----
144
72
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8646
SELECT - col2 DIV tab2.col0 + + 86 FROM tab2
----
83
86
86
skipif mysql # not compatible
query I rowsort label-8646
SELECT - col2 / tab2.col0 + + 86 FROM tab2
----
83
86
86
query I rowsort
SELECT + col1 + 28 - - col1 FROM tab1
----
48
54
80
query I rowsort
SELECT ALL - col0 * - col0 * 67 - - col2 * col2 FROM tab0
----
39681
537431
82076
query I rowsort
SELECT col1 + + 50 - ( col1 ) AS col0 FROM tab2
----
50
50
50
query I rowsort
SELECT DISTINCT + col0 + - 60 + + ( col2 ) * + col0 FROM tab2 AS cor0
----
136
2046
3021
query I rowsort
SELECT col2 + + col0 * + col2 + + col2 FROM tab2
----
2080
243
3078
query I rowsort
SELECT + 45 + cor0.col2 FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT DISTINCT + cor0.col2 + - 92 AS col2 FROM tab2 cor0
----
-54
-65
-66
query I rowsort
SELECT + cor0.col2 + ( col2 ) AS col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT cor0.col2 * - 87 - col2 AS col0 FROM tab0 AS cor0
----
-2904
-7216
-88
query I rowsort
SELECT ALL - 15 AS col2 FROM tab2 cor0
----
-15
-15
-15
query I rowsort
SELECT DISTINCT ( - col2 ) + + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 + 99 * - col0 + col0 * 77 FROM tab0 AS cor0
----
-2047
-552
-805
query I rowsort
SELECT DISTINCT - - ( - col2 ) + - cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT DISTINCT + 66 DIV col0 FROM tab2 AS cor0
----
0
9
skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT + 66 / col0 FROM tab2 AS cor0
----
0
9
query I rowsort
SELECT - 32 * - cor0.col1 FROM tab1 AS cor0
----
320
416
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-8662
SELECT col2 DIV - col0 + ( col1 ) AS col0 FROM tab1
----
10
12
8
skipif mysql # not compatible
query I rowsort label-8662
SELECT col2 / - col0 + ( col1 ) AS col0 FROM tab1
----
10
12
8
query I rowsort
SELECT - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT + - 77 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8665
SELECT ALL + - col1 * + col2 + - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL + - col1 * + col2 + - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 * + col1 + - 56 AS col0 FROM tab1 AS cor0
----
-156
-225
-732
query I rowsort
SELECT + + cor0.col0 + col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col2 - - col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT 59 + col1 FROM tab0 AS cor0
----
145
150
156
query I rowsort
SELECT col2 + - col1 * - 39 FROM tab1 AS cor0
----
1068
447
603
query I rowsort
SELECT ALL 91 * col1 * ( col2 ) + + col1 AS col0 FROM tab0 AS cor0
----
258344
679133
8924
query I rowsort
SELECT ALL 19 + col1 * + ( 71 ) * col0 AS col1 FROM tab1 cor0
----
45459
5557
73859
query I rowsort
SELECT ALL - - ( col1 ) * - col0 + + cor0.col2 + col1 AS col2 FROM tab1 AS cor0
----
-573
-931
2
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + - col1 * col0 FROM tab2 AS cor0
----
-1054
-1121
744
query I rowsort
SELECT ALL - col1 + - ( + cor0.col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL + cor0.col0 * + ( col1 ) FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT - 55 + + col2 * col1 AS col0 FROM tab1
----
1193
1349
515
query I rowsort
SELECT DISTINCT cor0.col0 * - 42 + 7 AS col2 FROM tab0 AS cor0
----
-1001
-1463
-3731
query I rowsort
SELECT DISTINCT 97 * col0 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT + 51 * + col0 + - 6 AS col2 FROM tab2 AS cor0
----
351
3972
4023
query I rowsort
SELECT + col1 * cor0.col1 * 70 FROM tab0 AS cor0
----
517720
579670
658630
query I rowsort
SELECT - cor0.col1 * + col1 + cor0.col0 FROM tab0 cor0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8684
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col0 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-8684
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT col0 * ( tab1.col1 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT - tab0.col2 * col1 + col0 + + 84 * + col2 * col1 FROM tab0
----
235578
619435
8086
onlyif mysql # use DIV operator for integer division
query I rowsort label-8687
SELECT DISTINCT col0 * - col2 * - 12 + col2 DIV col1 FROM tab2
----
2268
24336
36026
skipif mysql # not compatible
query I rowsort label-8687
SELECT DISTINCT col0 * - col2 * - 12 + col2 / col1 FROM tab2
----
2268
24336
36026
query I rowsort
SELECT 84 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT 22 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # use DIV operator for integer division
query I rowsort label-8690
SELECT DISTINCT - - cor0.col1 DIV col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT - - cor0.col1 / col2 AS col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 * col1 + col2 col2 FROM tab0 AS cor0
----
4247
4541
4754
query I rowsort
SELECT ALL + 5 * + col0 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT col2 * - col0 - col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT 66 + cor0.col1 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT - + 90 * + col2 + - col2 AS col1 FROM tab2 AS cor0
----
-2366
-2457
-3458
query I rowsort
SELECT + - 12 + + col0 * + 12 AS col2 FROM tab0 AS cor0
----
1056
276
408
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 cor1, tab2 AS cor2
----
972 values hashing to e610acd60f342127e6cdba18673d9f0e
query I rowsort
SELECT ALL + + col2 + + col1 * col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - 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-8700
SELECT - - col2 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8700
SELECT - - col2 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 21 AS col0 FROM tab1 AS cor0
----
21
21
21
query I rowsort
SELECT ALL col0 * - ( col2 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + + 92 AS col2 FROM tab0 AS cor0
----
92
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT + ( + col2 + tab0.col2 ) FROM tab0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col2 FROM tab1, tab2 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT ALL col1 * + 61 FROM tab0
----
5246
5551
5917
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8708
SELECT + tab2.col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8708
SELECT + tab2.col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - 55 AS col1 FROM tab2 AS cor0
----
-55
query I rowsort
SELECT 94 - - cor0.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 8c55f2bb0261b3a787b0c948756d169b
query I rowsort
SELECT - + ( + 84 ) FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT col2 * 68 AS col1 FROM tab2 cor0
----
1768
1836
2584
query I rowsort
SELECT - ( + 15 * col0 ) AS col2 FROM tab1
----
-1200
-45
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col0 FROM tab1 AS cor0
----
-79
-79
-79
query I rowsort
SELECT 96 AS col2 FROM tab1 cor0
----
96
96
96
query I rowsort
SELECT + 86 * - cor0.col2 FROM tab2 AS cor0
----
-2236
-2322
-3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-8717
SELECT ALL + col0 DIV 26 FROM tab1 cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL + col0 / 26 FROM tab1 cor0
----
0
2
3
query I rowsort
SELECT col2 * col0 + - col2 * + col1 FROM tab1 AS cor0
----
-1242
3078
6432
onlyif mysql # use DIV operator for integer division
query I rowsort label-8719
SELECT - + 9 + + col0 DIV col0 FROM tab2 AS cor0
----
-8
-8
-8
skipif mysql # not compatible
query I rowsort label-8719
SELECT - + 9 + + col0 / col0 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT - tab1.col2 + ( + col0 ) FROM tab1
----
-16
-51
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8721
SELECT - col0 * CAST( col1 AS SIGNED ) FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-8721
SELECT - col0 * CAST ( col1 AS INTEGER ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + cor0.col2 + - col1 * + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-13424
-1974
-6343
query I rowsort
SELECT ALL + col2 + - col1 * + col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + col2 * + col2 * - cor0.col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT col2 * + col1 + 30 + - col0 FROM tab0 AS cor0
----
2844
7403
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8726
SELECT col1 * col1 + 94 DIV ( - cor0.col0 ) FROM tab2 AS cor0
----
288
3480
948
skipif mysql # not compatible
query I rowsort label-8726
SELECT col1 * col1 + 94 / ( - cor0.col0 ) FROM tab2 AS cor0
----
288
3480
948
query I rowsort
SELECT DISTINCT col2 + col1 + 13 FROM tab2 AS cor0
----
68
71
98
query I rowsort
SELECT - - 59 + - cor0.col0 FROM tab1 AS cor0
----
-21
-5
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-8729
SELECT - col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8729
SELECT - col2 / - col2 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + + col1 * 99 * + 52 AS col0 FROM tab0 AS cor0
----
442728
468468
499356
query I rowsort
SELECT col1 + cor0.col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-8732
SELECT ALL + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL + col1 / col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 17 * - col0 col2 FROM tab1 AS cor0
----
-1098
-1373
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8734
SELECT ALL + - col2 DIV 30 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8734
SELECT ALL + - col2 / 30 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + cor0.col0 + ( + col0 ) * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 + ( - col0 ) col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT - - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8737
SELECT - - col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 58b53d9f2c5d79e6fe94b4a97272440e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT + + CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8739
SELECT + + CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 5 ) FROM tab2 AS cor0
----
5
5
5
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT DISTINCT - + ( col0 ) * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8743
SELECT ALL - col2 DIV - 35 + + cor0.col1 * - 97 * col0 col1 FROM tab2 AS cor0
----
-130270
-21049
-446394
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL - col2 / - 35 + + cor0.col1 * - 97 * col0 col1 FROM tab2 AS cor0
----
-130270
-21049
-446394
onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT ALL - - col2 DIV col0 + + col1 * 25 - cor0.col1 AS col0 FROM tab2 AS cor0
----
1416
408
747
skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL - - col2 / col0 + + col1 * 25 - cor0.col1 AS col0 FROM tab2 AS cor0
----
1416
408
747
query I rowsort
SELECT DISTINCT + 23 + + cor0.col0 AS col0 FROM tab2, tab2 AS cor0
----
101
102
30
query I rowsort
SELECT ALL + - 1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 + col0 * - 25 * col1 FROM tab1 AS cor0
----
-15990
-1924
-25987
query I rowsort
SELECT DISTINCT + col2 + col2 * - ( cor0.col0 * col0 ) FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT - - col2 * - col2 * + col2 - + col1 AS col1 FROM tab0 AS cor0
----
-36023
-551459
-98
query I rowsort
SELECT ALL + - cor0.col2 * col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT 41 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT 0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - 83 * cor0.col2 FROM tab1 AS cor0
----
-4482
-4731
-7968
onlyif mysql # use DIV operator for integer division
query I rowsort label-8754
SELECT DISTINCT + + 9 + col1 DIV - col2 FROM tab0 AS cor0
----
-88
7
8
skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + + 9 + col1 / - col2 FROM tab0 AS cor0
----
-88
7
8
query I rowsort
SELECT - + 48 * col1 AS col0 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT DISTINCT - col2 + - col2 * 5 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT ALL - col0 * col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT ALL + - 96 AS col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - col0 col0 FROM tab1
----
-8
69
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8760
SELECT tab2.col2 * col0 + CAST( + col2 AS SIGNED ) * col1 AS col1 FROM tab2
----
1026
3562
3648
skipif mysql # not compatible
query I rowsort label-8760
SELECT tab2.col2 * col0 + CAST ( + col2 AS INTEGER ) * col1 AS col1 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT + tab2.col0 * col1 * col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL - + ( - col0 ) - + col2 * 96 FROM tab1 AS cor0
----
-5181
-5408
-9136
query I rowsort
SELECT col2 * tab1.col0 * - col0 + col2 FROM tab1
----
-233415
-432
-614304
onlyif mysql # use DIV operator for integer division
query I rowsort label-8764
SELECT tab0.col1 + col2 DIV ( + col0 ) col2 FROM tab0
----
87
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8764
SELECT tab0.col1 + col2 / ( + col0 ) col2 FROM tab0
----
87
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8765
SELECT DISTINCT - col0 DIV CAST( + col1 AS SIGNED ) + col1 AS col2 FROM tab2
----
13
31
58
skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT - col0 / CAST ( + col1 AS INTEGER ) + col1 AS col2 FROM tab2
----
13
31
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8766
SELECT ALL CAST( + 14 AS SIGNED ) + col0 FROM tab1 AS cor0
----
17
78
94
skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL CAST ( + 14 AS INTEGER ) + col0 FROM tab1 AS cor0
----
17
78
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col2 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 * 57 AS col2 FROM tab2
----
1767
3363
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-8770
SELECT + + col0 + - 24 DIV - col0 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-8770
SELECT + + col0 + - 24 / - col0 FROM tab1 AS cor0
----
11
64
80
query I rowsort
SELECT ALL - 71 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT DISTINCT + col2 + 94 AS col1 FROM tab0
----
127
176
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * tab2.col1 col1 FROM tab2, tab2 cor0
----
9 values hashing to 84095675e4eb2576eef6dc0aa6381667
query I rowsort
SELECT ALL + tab0.col0 + 40 * 91 FROM tab0
----
3664
3675
3729
query I rowsort
SELECT ALL + col1 + - 83 * 17 * col2 + - col2 AS col0 FROM tab0
----
-115693
-1315
-46510
query I rowsort
SELECT + 59 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 * - tab0.col1 + + 99 * ( cor0.col1 ) col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7b17af35be1e492e997c9ba7fcac6d3d
query I rowsort
SELECT ALL - + ( + col2 ) * - col2 * - 20 + col1 FROM tab0 AS cor0
----
-134389
-21694
77
query I rowsort
SELECT DISTINCT col0 * 21 - - col0 AS col2 FROM tab2 AS cor0
----
154
1716
1738
query I rowsort
SELECT ALL ( - col2 ) + - col1 * + col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT - + 45 AS col1 FROM tab0 cor0
----
-45
query I rowsort
SELECT - cor0.col0 + 66 * col2 FROM tab0 AS cor0
----
2154
31
5323
query I rowsort
SELECT + ( + cor0.col2 ) * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + + ( col0 ) * col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col0 + - col2 + - col0 * + 47 FROM tab1 AS cor0
----
-198
-3129
-3936
query I rowsort
SELECT ALL + ( + 17 ) FROM tab0 AS cor0
----
17
17
17
query I rowsort
SELECT DISTINCT + 49 + + col0 AS col1 FROM tab2 AS cor0
----
127
128
56
query I rowsort
SELECT + cor0.col1 + - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8789
SELECT + + cor0.col1 * CAST( + ( col0 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8789
SELECT + + cor0.col1 * CAST ( + ( col0 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
2064
3395
8099
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE NOT NULL >= NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8791
SELECT ALL + cor0.col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8791
SELECT ALL + cor0.col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 36 AS col1 FROM tab0 cor0
----
36
36
36
query I rowsort
SELECT + + col2 + col2 * col0 * col2 AS col0 FROM tab0 AS cor0
----
26169
36
598518
query I rowsort
SELECT col2 + + col2 * - col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT 62 * + col1 FROM tab2 AS cor0
----
1054
1922
3658
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8796
SELECT - CAST( 87 AS SIGNED ) FROM tab0 AS cor0
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-8796
SELECT - CAST ( 87 AS INTEGER ) FROM tab0 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - cor0.col2 * 29 AS col0 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT col1 * 51 + 58 FROM tab2
----
1639
3067
925
query I rowsort
SELECT + - ( col0 ) * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8800
SELECT DISTINCT - col1 DIV 15 AS col2 FROM tab1
----
-1
0
skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT - col1 / 15 AS col2 FROM tab1
----
-1
0
query I rowsort
SELECT + + col2 * + col2 + ( - col2 ) AS col1 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT col0 * col0 + 82 AS col2 FROM tab2 AS cor0
----
131
6166
6323
query I rowsort
SELECT + - 47 * col1 FROM tab1 cor0
----
-1222
-470
-611
query I rowsort
SELECT DISTINCT - + col0 + - col0 * - 61 * col1 AS col2 FROM tab2 AS cor0
----
13230
280644
81844
query I rowsort
SELECT DISTINCT + col0 * col2 + + 23 * + cor0.col0 FROM tab1 AS cor0
----
231
5120
9520
query I rowsort
SELECT col1 * col1 * col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + col1 * - col2 - ( 22 ) AS col0 FROM tab1 AS cor0
----
-1270
-1426
-592
query I rowsort
SELECT ALL col0 * cor0.col0 * ( col1 ) + cor0.col0 FROM tab2 AS cor0
----
106176
1526
359034
query I rowsort
SELECT - col0 + - col1 * col0 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT - tab2.col2 * - col1 - + col0 * + col1 FROM tab2
----
-3068
-697
620
query I rowsort
SELECT ALL - 9 + - col2 FROM tab1
----
-105
-63
-66
query I rowsort
SELECT DISTINCT + ( col2 ) + - col0 AS col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - 38 * 92 + + col0 FROM tab0
----
-3407
-3461
-3472
onlyif mysql # use DIV operator for integer division
query I rowsort label-8814
SELECT + 20 DIV - col1 + - col1 FROM tab1
----
-12
-14
-26
skipif mysql # not compatible
query I rowsort label-8814
SELECT + 20 / - col1 + - col1 FROM tab1
----
-12
-14
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * 51 col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * - 65 - - col0 col0 FROM tab2 AS cor0
----
462
5148
5214
query I rowsort
SELECT ALL cor0.col1 - - col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + col1 + 3 * col2 AS col0 FROM tab1 AS cor0
----
181
188
301
onlyif mysql # use DIV operator for integer division
query I rowsort label-8819
SELECT DISTINCT - col1 DIV ( cor0.col0 ) AS col0 FROM tab2 cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-8819
SELECT DISTINCT - col1 / ( cor0.col0 ) AS col0 FROM tab2 cor0
----
-4
0
query I rowsort
SELECT ALL + col1 - 93 FROM tab2 AS cor0
----
-34
-62
-76
query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + cor0.col0 * - ( - cor0.col2 ) + col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col1 + col0 * cor0.col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + col2 + - 14 FROM tab1 cor0
----
40
43
82
query I rowsort
SELECT + ( col0 ) * + 48 AS col2 FROM tab0
----
1152
1680
4272
query I rowsort
SELECT 67 AS col2 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT DISTINCT + ( col0 ) * - 19 AS col2 FROM tab1
----
-1216
-1520
-57
query I rowsort
SELECT - + col1 + - ( 66 ) AS col1 FROM tab0 AS cor0
----
-152
-157
-163
query I rowsort
SELECT + col0 * cor0.col2 + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT col2 + col0 * - 0 AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT - ( col1 + + col2 ) * - 39 FROM tab0
----
3822
4641
6747
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
86
91
97
query I rowsort
SELECT DISTINCT ( col0 ) + - col1 * 99 AS col2 FROM tab2
----
-1604
-3062
-5763
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT CAST( - col2 AS SIGNED ) * + col2 FROM tab0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-8834
SELECT CAST ( - col2 AS INTEGER ) * + col2 FROM tab0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8835
SELECT - + CAST( NULL AS SIGNED ) + col0 / + col1 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8835
SELECT - + CAST ( NULL AS INTEGER ) + col0 / + col1 - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * - 37 FROM tab0 AS cor0
----
-3182
-3367
-3589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8837
SELECT - 92 + col0 - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8837
SELECT - 92 + col0 - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8838
SELECT + + cor0.col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8838
SELECT + + cor0.col0 / - cor0.col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8839
SELECT DISTINCT - 29 DIV - col1 - - col2 FROM tab2
----
26
27
39
skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - 29 / - col1 - - col2 FROM tab2
----
26
27
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 * col0 + - col1 col1 FROM tab0
----
-2049
-614
-867
onlyif mysql # use DIV operator for integer division
query I rowsort label-8841
SELECT - + col2 + col0 DIV CAST( cor0.col1 AS SIGNED ) FROM tab1 cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-8841
SELECT - + col2 + col0 / CAST ( cor0.col1 AS INTEGER ) FROM tab1 cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + cor1.col1 AS REAL ) * - cor1.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0456bcedc217ad4d7d255310d4eb4931
onlyif mysql # use DIV operator for integer division
query I rowsort label-8843
SELECT 22 * - col1 DIV col1 + - col2 FROM tab1 AS cor0
----
-118
-76
-79
skipif mysql # not compatible
query I rowsort label-8843
SELECT 22 * - col1 / col1 + - col2 FROM tab1 AS cor0
----
-118
-76
-79
query I rowsort
SELECT - col1 * + col2 - col2 * tab2.col0 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT DISTINCT cor0.col0 + 38 AS col1 FROM tab1 AS cor0
----
102
118
41
query I rowsort
SELECT + col1 + - col1 * col1 AS col1 FROM tab0
----
-7310
-8190
-9312
query I rowsort
SELECT + col1 * - ( + col0 ) - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT - col1 + col1 - + col0 AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT - col1 + + 37 FROM tab0
----
-49
-54
-60
query I rowsort
SELECT + ( col0 ) + col0 + + col0 * - tab1.col0 AS col1 FROM tab1
----
-3
-3968
-6240
query I rowsort
SELECT ALL + ( 88 ) * cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT DISTINCT + col0 * + ( col2 + + col1 ) AS col0 FROM tab0 cor0
----
15397
2856
3430
query I rowsort
SELECT ALL + 48 FROM tab2, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL + col2 + col0 * - col1 * - 10 FROM tab2
----
13468
2197
46046
query I rowsort
SELECT - - cor0.col1 + cor0.col0 * 2 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT + col1 * cor0.col0 + - col0 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL - col0 + + 23 * col1 AS col0 FROM tab0 AS cor0
----
1954
2004
2196
query I rowsort
SELECT DISTINCT + + col0 * 36 FROM tab2 AS cor0
----
252
2808
2844
onlyif mysql # use DIV operator for integer division
query I rowsort label-8859
SELECT DISTINCT - col0 * col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-409
-492
0
skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT - col0 * col0 / col1 AS col2 FROM tab1 AS cor0
----
-409
-492
0
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * - 78 AS col0 FROM tab0 AS cor0
----
-1839
-2729
-6860
query I rowsort
SELECT DISTINCT + cor0.col1 + cor0.col0 * + col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT + col2 * col1 + cor0.col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT col1 + col0 * + col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT - + col2 * col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT col2 * col2 + col2 - cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col2 * + col0 + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + + cor0.col1 * col2 + + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL + + col2 * col0 + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col2 + col1 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
119712
32433
75762
query I rowsort
SELECT ALL + - col0 * - col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 14 + col0 AS col0 FROM tab2 AS cor0
----
21
92
93
query I rowsort
SELECT + cor0.col1 * + col2 + - col1 * + col0 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT DISTINCT - + col0 * col1 + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - col0 + + cor0.col1 - + col0 FROM tab2 AS cor0
----
-141
-97
17
query I rowsort
SELECT - cor0.col2 * - col2 + - col0 AS col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT + 28 * col1 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
2375
2466
2715
query I rowsort
SELECT - 82 + cor0.col2 * col0 FROM tab1 AS cor0
----
3566
7598
80
query I rowsort
SELECT ALL + 94 * col2 FROM tab0 AS cor0
----
3102
7708
94
query I rowsort
SELECT - col2 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT 5 FROM tab0 cor0
----
5
query I rowsort
SELECT DISTINCT + ( col2 ) - - col2 FROM tab1
----
108
114
192
query I rowsort
SELECT + 5 FROM tab2, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT + tab2.col1 + ( - tab2.col1 ) * col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - 23 - - tab1.col1 FROM tab1
----
-10
-13
3
query I rowsort
SELECT - 41 - col2 AS col0 FROM tab0
----
-123
-42
-74
onlyif mysql # use DIV operator for integer division
query I rowsort label-8888
SELECT DISTINCT - col2 - 97 DIV col0 FROM tab1
----
-58
-86
-97
skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT - col2 - 97 / col0 FROM tab1
----
-58
-86
-97
query I rowsort
SELECT 9 * - tab0.col1 + col1 - - col1 FROM tab0
----
-602
-637
-679
query I rowsort
SELECT - 82 * col1 AS col0 FROM tab0
----
-7052
-7462
-7954
query I rowsort
SELECT tab2.col2 - 16 AS col1 FROM tab2
----
10
11
22
query I rowsort
SELECT DISTINCT tab2.col1 - col2 * col0 AS col2 FROM tab2
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + col1 col0 FROM tab0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 8 * tab0.col0 + + col1 col2 FROM tab0
----
278
377
803
query I rowsort
SELECT - 1 + + col0 FROM tab0 cor0
----
23
34
88
query I rowsort
SELECT ALL + + col1 * - cor0.col1 + - col0 * col0 FROM tab1 AS cor0
----
-4196
-6569
-685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * cor0.col1 + cor0.col2 col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - 91 * col1 AS col0 FROM tab1 AS cor0
----
-1183
-2366
-910
query I rowsort
SELECT + cor0.col0 * col2 * - col2 + - col2 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT 93 * 39 * - col2 FROM tab2
----
-137826
-94302
-97929
query I rowsort
SELECT ALL ( tab0.col2 ) * + tab0.col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT ( 55 ) AS col1 FROM tab1
----
55
query I rowsort
SELECT 94 * col1 AS col1 FROM tab2
----
1598
2914
5546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8904
SELECT + - CAST( - col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-8904
SELECT + - CAST ( - col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 + - 55 FROM tab0 cor0
----
-22
-54
27
query I rowsort
SELECT ALL - 86 FROM tab1, tab0 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
onlyif mysql # use DIV operator for integer division
query I rowsort label-8907
SELECT 50 DIV tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-8907
SELECT 50 / tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8908
SELECT DISTINCT + 26 * - col2 + CAST( NULL AS DECIMAL ) / col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT + 26 * - col2 + CAST ( NULL AS REAL ) / col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) * + col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - cor0.col0 * + col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + 49 * col1 + 67 * ( cor0.col2 ) FROM tab0 AS cor0
----
-2003
-4686
1035
query I rowsort
SELECT ALL - col0 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT - 21 * col0 AS col0 FROM tab0 AS cor0
----
-1869
-504
-735
query I rowsort
SELECT + + 89 * - col0 + col2 + col2 AS col1 FROM tab0 AS cor0
----
-2070
-3113
-7757
query I rowsort
SELECT + - 91 * - cor0.col1 FROM tab1 AS cor0
----
1183
2366
910
query I rowsort
SELECT col1 * - col2 * ( + col1 ) + - col1 FROM tab0 AS cor0
----
-244154
-679133
-9506
query I rowsort
SELECT DISTINCT + col0 * + 90 + + col1 FROM tab2 cor0
----
661
7079
7127
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * col1 col0 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT - col1 - 70 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
15159
322081
93993
query I rowsort
SELECT + - col0 + 80 FROM tab2 AS cor0
----
1
2
73
query I rowsort
SELECT DISTINCT - + col2 * cor0.col2 + 61 FROM tab2 AS cor0
----
-1383
-615
-668
query I rowsort
SELECT + - col2 * ( - 4 ) + + col0 FROM tab2 AS cor0
----
115
182
231
query I rowsort
SELECT DISTINCT cor0.col1 * - col2 + 30 * col2 AS col0 FROM tab1 AS cor0
----
1140
1632
216
query I rowsort
SELECT ALL cor0.col0 + - 32 * - 92 FROM tab2 AS cor0
----
2951
3022
3023
query I rowsort
SELECT ALL + col2 * 13 + 74 FROM tab2 AS cor0
----
412
425
568
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8926
SELECT + CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8926
SELECT + CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ( 77 ) + col0 FROM tab2 AS cor0
----
155
156
84
query I rowsort
SELECT - 26 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39
query I rowsort
SELECT col1 * - 32 AS col0 FROM tab2
----
-1888
-544
-992
query I rowsort
SELECT DISTINCT - col2 + col0 * col0 * - col1 + ( 23 + col0 ) * col1 FROM tab0
----
-113200
-45527
-710701
query I rowsort
SELECT ALL - 16 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT - col1 * ( col0 ) + col1 * col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT DISTINCT + tab0.col0 * - 29 + + 76 FROM tab0
----
-2505
-620
-939
query I rowsort
SELECT ALL - col1 + + 79 FROM tab1
----
53
66
69
query I rowsort
SELECT - 1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8936
SELECT + col2 DIV col1 - + col0 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-8936
SELECT + col2 / col1 - + col0 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT - 71 + + col2 FROM tab0 cor0
----
-38
-70
11
query I rowsort
SELECT + 18 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298
onlyif mysql # use DIV operator for integer division
query I rowsort label-8939
SELECT ALL + - col2 DIV - col1 + cor0.col0 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + - col2 / - col1 + cor0.col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL + - col0 * col2 + col2 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT 39 * cor1.col2 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
1287
3198
39
query I rowsort
SELECT ALL + 62 - - 54 AS col2 FROM tab1
----
116
116
116
query I rowsort
SELECT + ( - 46 + tab2.col2 ) * col1 * - col2 FROM tab2
----
15903
30680
5168
query I rowsort
SELECT col1 * - 69 AS col2 FROM tab0 AS cor0
----
-5934
-6279
-6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - ( 66 ) * - cor0.col0 col0 FROM tab2 AS cor0
----
489
5174
5252
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8946
SELECT col0 + + CAST( NULL AS SIGNED ) * - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8946
SELECT col0 + + CAST ( NULL AS INTEGER ) * - cor0.col2 * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT - col2 DIV 95 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8948
SELECT - col2 / 95 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 9 FROM tab2, tab0 cor0, tab2 AS cor1
----
9
query I rowsort
SELECT ALL - - col1 * 24 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT ALL - + col2 * 30 - col2 FROM tab1 AS cor0
----
-1674
-1767
-2976
query I rowsort
SELECT col0 + 37 * 65 FROM tab1 AS cor0
----
2408
2469
2485
onlyif mysql # use DIV operator for integer division
query I rowsort label-8953
SELECT DISTINCT - col0 DIV - col0 + col0 + col0 FROM tab2 AS cor0
----
15
157
159
skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - col0 / - col0 + col0 + col0 FROM tab2 AS cor0
----
15
157
159
query I rowsort
SELECT col1 + 85 FROM tab0 cor0
----
171
176
182
query I rowsort
SELECT DISTINCT + + col0 + cor0.col1 + 30 * col1 FROM tab0 AS cor0
----
2690
2910
3042
query I rowsort
SELECT + col2 * tab1.col2 + + tab1.col0 * + col0 FROM tab1
----
15616
2925
7345
query I rowsort
SELECT 84 - - col0 AS col0 FROM tab2
----
162
163
91
query I rowsort
SELECT DISTINCT tab1.col1 * col0 * col1 + col2 FROM tab1
----
13616
2082
6457
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8959
SELECT DISTINCT - + col0 + ( cor0.col0 ) + + col2 * CAST( NULL AS SIGNED ) / 25 AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT - + col0 + ( cor0.col0 ) + + col2 * CAST ( NULL AS INTEGER ) / 25 AS col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 + col0 col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + col2 * + 69 FROM tab2 AS cor0
----
1794
1863
2622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8962
SELECT DISTINCT col1 / + CAST( NULL AS DECIMAL ) + 93 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT col1 / + CAST ( NULL AS REAL ) + 93 * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 * + 79 + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 cor1
----
9 values hashing to 640917cee3e36811b2243bbfcbff1fd0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor1.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
86
91
97
query I rowsort
SELECT DISTINCT - ( tab0.col2 ) FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
-1
-33
-82
query I rowsort
SELECT - col1 - + tab1.col2 AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + ( col1 ) + - tab2.col1 - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT ALL col0 + - tab1.col0 DIV + 21 AS col1 FROM tab1
----
3
61
77
skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL col0 + - tab1.col0 / + 21 AS col1 FROM tab1
----
3
61
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8970
SELECT ALL - 49 DIV col0 AS col1 FROM tab1 AS cor0
----
-16
0
0
skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL - 49 / col0 AS col1 FROM tab1 AS cor0
----
-16
0
0
query I rowsort
SELECT ALL + col1 * + col2 * col1 + + col2 * col1 FROM tab1 AS cor0
----
17472
37908
6270
query I rowsort
SELECT DISTINCT + 54 + - col1 AS col1 FROM tab1 AS cor0
----
28
41
44
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 4037d65571c1bbf6e0e7d759f858120e
query I rowsort
SELECT - + 77 + col2 * col2 FROM tab1 cor0
----
2839
3172
9139
query I rowsort
SELECT DISTINCT - col1 * col2 + - col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT - 19 * + col2 AS col2 FROM tab2 cor0
----
-494
-513
-722
query I rowsort
SELECT - + 70 * - col1 AS col0 FROM tab1 cor0
----
1820
700
910
onlyif mysql # use DIV operator for integer division
query I rowsort label-8978
SELECT ALL + + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8978
SELECT ALL + + col1 / col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col1 - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + ( - col0 ) * 32 * col1 AS col0 FROM tab1 AS cor0
----
-20480
-2496
-33280
query I rowsort
SELECT 49 * + col1 AS col1 FROM tab0 AS cor0
----
4214
4459
4753
onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT cor0.col1 DIV col2 + col1 DIV - col0 FROM tab0 AS cor0
----
-1
0
95
skipif mysql # not compatible
query I rowsort label-8982
SELECT cor0.col1 / col2 + col1 / - col0 FROM tab0 AS cor0
----
-1
0
95
query I rowsort
SELECT + + col2 * 39 * 13 AS col0 FROM tab2 AS cor0
----
13182
13689
19266
query I rowsort
SELECT DISTINCT + - col0 + - col1 + col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - cor0.col0 col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + + cor0.col2 + ( col0 ) AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 97 + - cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 2f8c3d812260f80e9b2e35822eb5f24d
query I rowsort
SELECT DISTINCT - col2 * col1 * - col0 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + col2 + cor0.col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + cor0.col0 - - CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 * + 76 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT DISTINCT - col0 * ( 72 ) FROM tab1 AS cor0
----
-216
-4608
-5760
query I rowsort
SELECT ALL - + 54 * col2 * col2 + ( - col2 + col0 ) * - 51 AS col0 FROM tab0 AS cor0
----
-1788
-363453
-58347
query I rowsort
SELECT ALL col0 + - col2 - + col2 AS col2 FROM tab0 AS cor0
----
-42
-75
33
query I rowsort
SELECT + 25 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT - + 37 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT + + cor0.col2 + - col1 * col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - 18 * col0 * col0 + col1 + col2 FROM tab2
----
-109427
-112283
-824
query I rowsort
SELECT col0 + 77 AS col2 FROM tab0
----
101
112
166
query I rowsort
SELECT DISTINCT - col2 * - col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT - 92 + col0 FROM tab2 AS cor0
----
-13
-14
-85
query I rowsort
SELECT DISTINCT ( ( col1 ) ) + + 17 + ( col2 ) FROM tab0 AS cor0
----
115
136
190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor2.col0 col1 FROM tab2, tab0 AS cor0, tab0 cor1, tab0 AS cor2
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL + ( - col1 ) + + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 + - 1 * + col0 * + col1 AS col2 FROM tab2 cor0
----
-3926
101
512
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 * cor0.col2 * - col0 + + cor0.col0 * col1 col1 FROM tab0 AS cor0
----
-626827
-66840
350
query I rowsort
SELECT DISTINCT - - 69 * + col0 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT DISTINCT + + 14 FROM tab1 AS cor0
----
14
query I rowsort
SELECT - + 59 * col2 + - 76 * - col1 AS col0 FROM tab1 AS cor0
----
-1210
-2603
-4676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT ALL tab0.col0 + + col1 * + col2 - col2 DIV col2 col1 FROM tab0
----
131
2861
7550
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL tab0.col0 + + col1 * + col2 - col2 / col2 col1 FROM tab0
----
131
2861
7550
query I rowsort
SELECT col2 * + cor0.col1 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL tab0.col0 * tab0.col1 * col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT col2 * + ( col1 ) AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT ( - col0 ) * col2 AS col2 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 * tab1.col0 ) col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT - ( col0 + col0 ) AS col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT ( + 0 ) * col0 AS col0 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9019
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9020
SELECT ALL CAST( NULL AS SIGNED ) * 2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9020
SELECT ALL CAST ( NULL AS INTEGER ) * 2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 50 * + col2 FROM tab2
----
1300
1350
1900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9022
SELECT CAST( - 76 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-76
-76
-76
skipif mysql # not compatible
query I rowsort label-9022
SELECT CAST ( - 76 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-76
-76
-76
query I rowsort
SELECT DISTINCT 3 AS col2 FROM tab0
----
3
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab1 AS cor0 WHERE NULL < ( NULL )
----
query I rowsort
SELECT DISTINCT + 38 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
38
query I rowsort
SELECT ALL - col2 * - tab1.col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL - col0 * - tab0.col1 AS col1 FROM tab0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( tab0.col0 ) + 63 col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 86cfc83b3309ffe8f13959249586b2ac
query I rowsort
SELECT - + cor0.col0 * - col0 - + 30 AS col2 FROM tab2 AS cor0
----
19
6054
6211
query I rowsort
SELECT DISTINCT col0 + - 74 * cor0.col0 AS col0 FROM tab2 cor0
----
-511
-5694
-5767
query I rowsort
SELECT cor0.col2 - 57 AS col0 FROM tab1 AS cor0
----
-3
0
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9032
SELECT ALL - col1 / CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9032
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9033
SELECT col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9033
SELECT col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * col2 - col1 * col1 AS col1 FROM tab2 AS cor0
----
-1798
-5015
-935
query I rowsort
SELECT - cor0.col1 * ( col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + - col2 * 53 AS col0 FROM tab2 AS cor0
----
-1378
-1431
-2014
skipif mysql # not compatible
query I rowsort
SELECT cor0.col0 + CAST ( col2 AS REAL ) * + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col2 + ( 8 ) FROM tab1 AS cor0
----
104
62
65
query I rowsort
SELECT + cor0.col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 95 + 25 FROM tab1, tab2 AS cor0
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3
onlyif mysql # use DIV operator for integer division
query I rowsort label-9041
SELECT ALL col1 DIV + tab1.col2 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9041
SELECT ALL col1 / + tab1.col2 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 + 45 AS col1 FROM tab0
----
-37
12
44
query I rowsort
SELECT + cor0.col0 + cor0.col2 * col0 - ( + col2 ) FROM tab0 AS cor0
----
69
7305
783
query I rowsort
SELECT - ( - 17 ) AS col2 FROM tab1 AS cor0
----
17
17
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9045
SELECT CAST( NULL AS SIGNED ) * + 52 / - col2 + col1 / + ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9045
SELECT CAST ( NULL AS INTEGER ) * + 52 / - col2 + col1 / + ( + col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 15 FROM tab2 cor0
----
-15
query I rowsort
SELECT ALL + col1 + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ( cor0.col2 ) + + col0 - + cor0.col1 * - cor0.col1 FROM tab0 AS cor0
----
7453
8452
9445
query I rowsort
SELECT ALL - + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT DISTINCT + + col2 DIV cor0.col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT + + col2 / cor0.col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - 18 + col1 AS col0 FROM tab2 AS cor0
----
-1
13
41
query I rowsort
SELECT DISTINCT col2 + - tab1.col2 * - ( col2 ) * col1 FROM tab1
----
119904
32547
75870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9053
SELECT - col1 * col2 * - CAST( - col1 * col0 AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9053
SELECT - col1 * col2 * - CAST ( - col1 * col0 AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - col0 * + ( 30 ) + - col0 FROM tab1 AS cor0
----
-2048
-2560
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9055
SELECT col1 DIV col1 + + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9055
SELECT col1 / col1 + + col1 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9056
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9056
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT 58 + + 53 * col1 AS col1 FROM tab2 AS cor0
----
1701
3185
959
query I rowsort
SELECT ALL - ( col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + ( + 40 ) * col2 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT DISTINCT + col2 + 13 FROM tab0
----
14
46
95
query I rowsort
SELECT - - ( + col2 ) * - col0 + - col0 AS col1 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT - 35 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1188
-2952
-36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9063
SELECT ALL + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + - cor0.col2 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
11
111
58
query I rowsort
SELECT DISTINCT + - 38 * 71 AS col2 FROM tab0 AS cor0
----
-2698
query I rowsort
SELECT 35 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
102
2176
2720
query I rowsort
SELECT DISTINCT + 85 + 78 FROM tab2 AS cor0
----
163
query I rowsort
SELECT DISTINCT - 84 + - 89 AS col1 FROM tab2 AS cor0
----
-173
onlyif mysql # use DIV operator for integer division
query I rowsort label-9069
SELECT + + 23 DIV + col1 + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-9069
SELECT + + 23 / + col1 + col0 * cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 87 + + col0 FROM tab0 cor0
----
-52
-63
2
query I rowsort
SELECT + + 37 + - 92 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT col2 - - col2 AS col2 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT + - 88 + + col0 FROM tab2 AS cor0
----
-10
-81
-9
query I rowsort
SELECT - cor0.col1 * 10 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f5c002c6d944f584b3086b44d5866d9f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9075
SELECT ALL ( 69 + + col1 ) * col0 DIV 14 col1 FROM tab2
----
485
50
713
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9075
SELECT ALL ( 69 + + col1 ) * col0 / 14 col1 FROM tab2
----
485
50
713
query I rowsort
SELECT DISTINCT + - col0 + col0 + col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL 79 + col1 FROM tab1
----
105
89
92
query I rowsort
SELECT col2 + ( - col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col0 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col0 * col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL - col0 * ( cor0.col1 ) * - col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9083
SELECT ALL - cor0.col2 DIV + 27 FROM tab1, tab0 AS cor0
----
9 values hashing to cda644b3598f09ee13d1ed33f1c1ac92
skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL - cor0.col2 / + 27 FROM tab1, tab0 AS cor0
----
9 values hashing to cda644b3598f09ee13d1ed33f1c1ac92
query I rowsort
SELECT ALL + tab2.col2 - 75 FROM tab2
----
-37
-48
-49
query I rowsort
SELECT - tab0.col2 * 10 + col1 * col0 + col1 * col1 AS col0 FROM tab0
----
12794
15560
9130
query IIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab0 AS cor0 WHERE NOT - cor0.col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col1 - + 96 AS col2 FROM tab0
----
-10
-5
1
query I rowsort
SELECT DISTINCT - tab0.col1 - - ( - col0 + + col0 ) * + 14 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9089
SELECT - col2 DIV - 5 AS col0 FROM tab1
----
10
11
19
skipif mysql # not compatible
query I rowsort label-9089
SELECT - col2 / - 5 AS col0 FROM tab1
----
10
11
19
query I rowsort
SELECT - col0 * ( - 4 ) * tab2.col0 FROM tab2
----
196
24336
24964
query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab0, tab0 cor0
----
58
query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
90
query I rowsort
SELECT DISTINCT + + 26 AS col1 FROM tab1 AS cor0
----
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9094
SELECT ALL CAST( NULL AS SIGNED ) - + 90 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9094
SELECT ALL CAST ( NULL AS INTEGER ) - + 90 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9095
SELECT - ( + 31 ) + - col2 DIV + col1 FROM tab0
----
-31
-31
-31
skipif mysql # not compatible
query I rowsort label-9095
SELECT - ( + 31 ) + - col2 / + col1 FROM tab0
----
-31
-31
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 49 * col2 * - 14 + col2 col2 FROM tab0
----
-22519
-56079
-588
query I rowsort
SELECT ALL - col1 * - col2 * col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + ( col0 ) - - col0 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9099
SELECT ALL 55 DIV + col1 + + col2 AS col0 FROM tab2
----
26
28
41
skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL 55 / + col1 + + col2 AS col0 FROM tab2
----
26
28
41
query I rowsort
SELECT ALL - col1 + - 5 FROM tab0
----
-102
-91
-96
query I rowsort
SELECT ALL + col2 + col0 + - col2 * - col2 FROM tab1
----
2973
3370
9392
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 - cor0.col0 FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT + 91 + + col1 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT ALL + + ( - 43 ) * cor0.col1 FROM tab1 AS cor0
----
-1118
-430
-559
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab1 cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
query I rowsort
SELECT DISTINCT + 53 + + cor0.col2 FROM tab0 AS cor0
----
135
54
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9108
SELECT ALL CAST( NULL AS SIGNED ) * + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9108
SELECT ALL CAST ( NULL AS INTEGER ) * + 81 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 87 + + col1 * ( - col0 ) * col2 FROM tab0
----
-3308
-664031
-68025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9110
SELECT col1 * + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9110
SELECT col1 * + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + tab0.col1 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL 17 AS col1 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT DISTINCT + - col1 * - col0 + + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL 2 + - col0 FROM tab0 AS cor0
----
-22
-33
-87
query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9116
SELECT DISTINCT ( col0 ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT ( col0 ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9117
SELECT ALL + + cor0.col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + + cor0.col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT 21 FROM tab2 cor0
----
21
21
21
query I rowsort
SELECT - 32 + col0 * - 19 AS col2 FROM tab0 AS cor0
----
-1723
-488
-697
query I rowsort
SELECT DISTINCT - col2 * - 4 + col1 AS col2 FROM tab1 AS cor0
----
238
242
397
onlyif mysql # use DIV operator for integer division
query I rowsort label-9121
SELECT ALL col0 DIV + 85 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL col0 / + 85 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col2 * 5 AS col1 FROM tab1 AS cor0
----
270
285
480
query I rowsort
SELECT ALL - col2 * - 83 AS col0 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT + col0 * 68 AS col2 FROM tab1 AS cor0
----
204
4352
5440
onlyif mysql # use DIV operator for integer division
query I rowsort label-9126
SELECT - col2 DIV - 52 AS col0 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9126
SELECT - col2 / - 52 AS col0 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT - cor0.col2 * - col0 * + ( col2 ) FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - - col2 * + ( 17 ) FROM tab0 cor0
----
1394
17
561
query I rowsort
SELECT + - cor0.col0 + col1 * + 1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - - cor0.col2 * 78 FROM tab0 AS cor0
----
2574
6396
78
query I rowsort
SELECT ALL + col0 * ( col0 * col2 + - col1 ) FROM tab0 AS cor0
----
-2170
16944
641423
query I rowsort
SELECT - 74 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT ALL col0 + - col1 * + 11 + + col1 FROM tab2
----
-303
-512
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9134
SELECT + 26 * + col2 * CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-174824
-26
-28314
skipif mysql # not compatible
query I rowsort label-9134
SELECT + 26 * + col2 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-174824
-26
-28314
query I rowsort
SELECT + col2 * - col0 + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 + 57 + - cor0.col2 AS col1 FROM tab1, tab0, tab2 AS cor0
----
-19
-6053
-6222
query I rowsort
SELECT DISTINCT + 64 AS col1 FROM tab1
----
64
query I rowsort
SELECT + col0 * 74 AS col2 FROM tab1 cor0
----
222
4736
5920
query I rowsort
SELECT + col2 * + 4 AS col1 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT ( - col2 ) * col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - 45 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT DISTINCT + 6 AS col2 FROM tab0, tab1, tab1 AS cor0, tab1 AS cor1
----
6
query I rowsort
SELECT ALL + + col1 * col2 + + col2 * - col0 + ( + col0 ) * + 9 AS col1 FROM tab0 AS cor0
----
2262
377
965
query I rowsort
SELECT ALL + cor0.col2 + ( col1 ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + ( 36 ) + + col1 * - col1 FROM tab0 AS cor0
----
-7360
-8245
-9373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9146
SELECT ALL + + CAST( - col2 AS SIGNED ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-9146
SELECT ALL + + CAST ( - col2 AS INTEGER ) - - cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col2 * + 54 * col2 AS col1 FROM tab1 cor0
----
157464
175446
497664
query I rowsort
SELECT ALL col0 + + 28 FROM tab0 AS cor0
----
117
52
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-9149
SELECT DISTINCT - 34 * + ( - col2 ) DIV col2 + - 12 FROM tab1 AS cor0
----
22
skipif mysql # not compatible
query I rowsort label-9149
SELECT DISTINCT - 34 * + ( - col2 ) / col2 + - 12 FROM tab1 AS cor0
----
22
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ( - 68 + - col2 ) FROM tab2
----
-106
-94
-95
query I rowsort
SELECT DISTINCT - 47 + + cor0.col2 * col1 FROM tab2 cor0
----
1487
599
790
query I rowsort
SELECT - col2 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-9154
SELECT + - col1 DIV cor0.col0 col0 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9154
SELECT + - col1 / cor0.col0 col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT + + ( - col1 ) + - col1 * + col0 FROM tab0 cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL + 31 + 19 AS col1 FROM tab0
----
50
50
50
query I rowsort
SELECT col1 * - col2 - col1 * - ( + 83 * col1 ) FROM tab1
----
12779
54704
7730
query I rowsort
SELECT + ( cor0.col1 ) + col0 * col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-9159
SELECT ALL - col0 * cor0.col2 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL - col0 * cor0.col2 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col2 FROM tab2 cor0
----
45
query I rowsort
SELECT + 21 * col2 AS col1 FROM tab0 AS cor0
----
1722
21
693
query I rowsort
SELECT + 9 * - col0 FROM tab1 cor0
----
-27
-576
-720
query I rowsort
SELECT + + ( + col1 ) * col0 + + col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9164
SELECT + cor0.col1 + + CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9164
SELECT + cor0.col1 + + CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + cor0.col2 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 + 80 * col0 FROM tab2 AS cor0
----
567
6318
6399
query I rowsort
SELECT + col2 * cor0.col1 + col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT - + cor0.col1 + col2 + col2 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT 31 * + col1 + col1 + col0 FROM tab2 AS cor0
----
1966
623
999
query I rowsort
SELECT 40 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-122
-3608
-7640
query I rowsort
SELECT - - col0 * cor0.col2 + col2 + 54 AS col1 FROM tab1 AS cor0
----
270
3759
7830
query I rowsort
SELECT ALL col0 * 11 FROM tab0
----
264
385
979
query I rowsort
SELECT col0 * - 15 FROM tab0
----
-1335
-360
-525
query I rowsort
SELECT - col2 * 19 AS col1 FROM tab0
----
-1558
-19
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + col1 + + col2 col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT col0 + + col0 + + col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT DISTINCT - col1 + - col2 - col2 AS col2 FROM tab0
----
-152
-255
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9178
SELECT col2 + col0 * - CAST( col1 AS SIGNED ) * col1 + tab2.col2 AS col0 FROM tab2
----
-22755
-271466
-6673
skipif mysql # not compatible
query I rowsort label-9178
SELECT col2 + col0 * - CAST ( col1 AS INTEGER ) * col1 + tab2.col2 AS col0 FROM tab2
----
-22755
-271466
-6673
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + col1 * - ( + col2 ) col0 FROM tab1
----
-1329
-1485
-651
query I rowsort
SELECT - col0 * - col0 + + col2 * col0 + col0 AS col1 FROM tab1
----
14160
174
7808
query I rowsort
SELECT ALL col2 - - tab1.col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL col1 - col1 * col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT col1 + + col1 - + col2 FROM tab2 AS cor0
----
-4
35
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 * + 80 col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
6880
query I rowsort
SELECT DISTINCT + 21 + + col2 * + 16 FROM tab0
----
1333
37
549
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 0 col0 FROM tab0, tab1, tab0 AS cor0
----
0
query I rowsort
SELECT - + col1 * col0 * - cor0.col2 AS col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + col0 * ( - col1 + col1 ) FROM tab0 cor0
----
0
query I rowsort
SELECT col2 - + cor0.col1 AS col2 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9190
SELECT DISTINCT + col0 DIV + 26 + + cor0.col2 FROM tab2 AS cor0
----
27
29
41
skipif mysql # not compatible
query I rowsort label-9190
SELECT DISTINCT + col0 / + 26 + + cor0.col2 FROM tab2 AS cor0
----
27
29
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-9191
SELECT ALL + + col1 DIV 71 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9191
SELECT ALL + + col1 / 71 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + + col2 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT + + col2 * + 15 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT - col0 + ( - col1 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL - col0 + 1 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT DISTINCT col2 * + col1 * + 2 AS col2 FROM tab1 AS cor0
----
1140
2496
2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-9197
SELECT DISTINCT + - col0 DIV 31 col1 FROM tab2 AS cor0
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9197
SELECT DISTINCT + - col0 / 31 col1 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT ALL - col2 * col2 + ( - col1 ) FROM tab2 cor0
----
-1461
-735
-760
query I rowsort
SELECT - col1 * + 94 AS col0 FROM tab1 AS cor0
----
-1222
-2444
-940
query I rowsort
SELECT ALL - col2 + ( + cor0.col1 ) - col2 AS col1 FROM tab2 AS cor0
----
-23
-59
7
query I rowsort
SELECT + col1 - - 16 FROM tab2 AS cor0
----
33
47
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( cor0.col0 ) col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 + + ( - col1 ) * col2 col0 FROM tab1
----
-1180
-1336
-502
query I rowsort
SELECT + + ( + ( + col0 ) ) AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - 46 * col0 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT DISTINCT - + 46 * ( col2 ) + col0 * cor0.col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
12306
42829
701197
query I rowsort
SELECT - 97 * 19 FROM tab1 AS cor0
----
-1843
-1843
-1843
query I rowsort
SELECT ALL 22 * - 65 AS col2 FROM tab0 AS cor0
----
-1430
-1430
-1430
query I rowsort
SELECT ALL + + 56 * col1 + - col2 AS col0 FROM tab1 AS cor0
----
1402
503
632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9210
SELECT DISTINCT - CAST( 21 AS SIGNED ) * - col1 * col2 AS col1 FROM tab1 AS cor0
----
11970
26208
29484
skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - CAST ( 21 AS INTEGER ) * - col1 * col2 AS col1 FROM tab1 AS cor0
----
11970
26208
29484
query I rowsort
SELECT ALL 51 * + col1 FROM tab1 AS cor0
----
1326
510
663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9212
SELECT ALL + CAST( + col2 AS SIGNED ) FROM tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + CAST ( + col2 AS INTEGER ) FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - cor0.col0 ) * col2 col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT ALL + col0 DIV - col1 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + col0 / - col1 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col0 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col2 * + col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-9217
SELECT ALL + + col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL + + col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 60 * col0 FROM tab2
----
-420
-4680
-4740
query I rowsort
SELECT DISTINCT 18 FROM tab0, tab1 cor0
----
18
query I rowsort
SELECT ALL + col2 * col2 + col0 AS col2 FROM tab1 cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9221
SELECT ALL 33 - cor0.col2 DIV cor0.col0 FROM tab2 AS cor0
----
30
33
33
skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL 33 - cor0.col2 / cor0.col0 FROM tab2 AS cor0
----
30
33
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-9222
SELECT ALL - + 33 DIV cor0.col2 + + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2
29
61
skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL - + 33 / cor0.col2 + + col1 + - col0 AS col1 FROM tab0 AS cor0
----
2
29
61
query I rowsort
SELECT DISTINCT - - col1 - + col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + col2 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT + cor0.col2 * + col1 + col1 + cor0.col1 AS col0 FROM tab1 cor0
----
1274
1456
590
query I rowsort
SELECT + - 22 AS col1 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL - + col2 * - cor0.col0 + cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT - 59 FROM tab0 cor0
----
-59
-59
-59
query I rowsort
SELECT 51 * col0 - + tab1.col2 * - col2 FROM tab1
----
13296
3069
6513
query I rowsort
SELECT + - cor0.col1 + cor0.col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT DISTINCT 83 DIV col0 AS col1 FROM tab1
----
1
27
skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT 83 / col0 AS col1 FROM tab1
----
1
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-9232
SELECT ALL - col2 + - 86 DIV cor0.col1 FROM tab0 AS cor0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL - col2 + - 86 / cor0.col1 FROM tab0 AS cor0
----
-1
-34
-82
query I rowsort
SELECT + 65 + - col2 AS col2 FROM tab0 AS cor0
----
-17
32
64
query I rowsort
SELECT ALL ( col0 ) * + cor0.col2 + col0 * + cor0.col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL + col1 - col2 * - col0 * col1 FROM tab2 AS cor0
----
119711
51051
5890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col2 FROM tab2, tab0 AS cor0
----
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-9237
SELECT DISTINCT col1 * col0 + 50 DIV col2 AS col2 FROM tab0
----
2065
3445
8099
skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT col1 * col0 + 50 / col2 AS col2 FROM tab0
----
2065
3445
8099
query I rowsort
SELECT cor1.col0 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 2afdaba7b80c700b7635230c4f8524be
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 * tab0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a4c03ca6c2bf093d444de067328ee864
onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT - CAST( 37 AS SIGNED ) * + col1 * col0 + + col2 * col0 DIV col1 AS col0 FROM tab2
----
-170240
-49515
-8023
skipif mysql # not compatible
query I rowsort label-9240
SELECT - CAST ( 37 AS INTEGER ) * + col1 * col0 + + col2 * col0 / col1 AS col0 FROM tab2
----
-170240
-49515
-8023
query I rowsort
SELECT - 32 * + tab0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to a71b7d462076286f67108a2c40fcd61d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9242
SELECT CAST( NULL AS SIGNED ) * - 35 + col0 * - col2 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9242
SELECT CAST ( NULL AS INTEGER ) * - 35 + col0 * - col2 * col1 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 73 AS col2 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT DISTINCT col0 * cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9245
SELECT DISTINCT + col2 + 38 DIV col2 FROM tab1 cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + col2 + 38 / col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT - col0 * + col1 + + cor0.col1 FROM tab0 cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 46 + ( + col0 ) col0 FROM tab2 AS cor0
----
124
125
53
query I rowsort
SELECT 90 FROM tab1, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9249
SELECT - CAST( + col2 AS SIGNED ) + + col0 * + col0 FROM tab2 AS cor0
----
22
6058
6203
skipif mysql # not compatible
query I rowsort label-9249
SELECT - CAST ( + col2 AS INTEGER ) + + col0 * + col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL col0 * 37 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
286
2912
2961
onlyif mysql # use DIV operator for integer division
query I rowsort label-9251
SELECT col1 DIV 72 AS col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9251
SELECT col1 / 72 AS col0 FROM tab0 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9252
SELECT - col2 + CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-9252
SELECT - col2 + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + + col1 * col2 * 44 AS col2 FROM tab1 AS cor0
----
25080
54912
61776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9254
SELECT + - CAST( NULL AS DECIMAL ) * col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9254
SELECT + - CAST ( NULL AS REAL ) * col0 * - col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - ( + ( col0 ) ) * - cor0.col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - - 80 AS col1 FROM tab2, tab0, tab0 AS cor0
----
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9258
SELECT - col2 + + cor0.col1 DIV ( - 7 ) + + cor0.col1 DIV + col1 FROM tab2 AS cor0
----
-30
-33
-39
skipif mysql # not compatible
query I rowsort label-9258
SELECT - col2 + + cor0.col1 / ( - 7 ) + + cor0.col1 / + col1 FROM tab2 AS cor0
----
-30
-33
-39
query I rowsort
SELECT + + col0 + + col2 + cor0.col2 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT cor0.col0 * - ( + col2 ) + + col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT - - col0 * 32 + + 46 FROM tab0 AS cor0
----
1166
2894
814
query I rowsort
SELECT - - col2 * ( 42 ) + col2 + col0 * - 25 FROM tab1 AS cor0
----
2128
2247
851
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9263
SELECT - - col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9263
SELECT - - col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 60 * col2 FROM tab2
----
-1560
-1620
-2280
onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT ALL + col0 * tab1.col2 DIV - ( 17 ) FROM tab1
----
-214
-451
-9
skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + col0 * tab1.col2 / - ( 17 ) FROM tab1
----
-214
-451
-9
query I rowsort
SELECT - 24 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT DISTINCT tab0.col2 * 55 FROM tab0, tab1 AS cor0
----
1815
4510
55
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1, tab1 cor0
----
10
13
26
query I rowsort
SELECT col1 + - col0 * + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT + ( col0 ) * + 97 AS col2 FROM tab0
----
2328
3395
8633
query I rowsort
SELECT col2 * ( ( col0 ) ) * - ( - ( col2 ) ) + - col1 AS col1 FROM tab1 AS cor0
----
207926
737267
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-9272
SELECT DISTINCT col2 - col1 DIV col0 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT col2 - col1 / col0 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + CAST ( - 26 AS REAL ) + col1 AS col1 FROM tab0 AS cor0
----
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 68 col0 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT DISTINCT - col0 * 37 + - col1 * - cor0.col1 FROM tab1 AS cor0
----
-2268
-2791
565
query I rowsort
SELECT 9 * - 16 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3676328d75056be335dcb8cc110835b4
query I rowsort
SELECT + tab1.col1 - col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT - 75 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT ALL - + 52 AS col1 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT + ( col1 ) + + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT + + 90 FROM tab0 cor0
----
90
90
90
query I rowsort
SELECT ALL - col0 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + tab0.col2 * - 95 AS col0 FROM tab0
----
-3135
-7790
-95
query I rowsort
SELECT 20 + - 53 FROM tab0, tab0 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT DISTINCT + col2 + 7 * + 3 AS col0 FROM tab0
----
103
22
54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9286
SELECT ALL - col0 + CAST( 45 AS SIGNED ) + col0 FROM tab2
----
45
45
45
skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - col0 + CAST ( 45 AS INTEGER ) + col0 FROM tab2
----
45
45
45
query I rowsort
SELECT DISTINCT + col2 * + col1 + col0 * + col0 AS col2 FROM tab2
----
6887
7618
886
onlyif mysql # use DIV operator for integer division
query I rowsort label-9288
SELECT + col2 * col0 DIV - tab0.col1 - col0 FROM tab0
----
-169
-33
-35
skipif mysql # not compatible
query I rowsort label-9288
SELECT + col2 * col0 / - tab0.col1 - col0 FROM tab0
----
-169
-33
-35
query I rowsort
SELECT ALL col0 * 58 AS col2 FROM tab2
----
406
4524
4582
query I rowsort
SELECT DISTINCT + 54 * cor0.col0 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) AS col1 FROM tab2, tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - + 79 FROM tab0 AS cor0
----
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9293
SELECT ALL - col2 DIV col1 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9293
SELECT ALL - col2 / col1 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - 86 AS col0 FROM tab0 cor0
----
-86
-86
-86
query I rowsort
SELECT col0 - + 80 FROM tab1
----
-16
-77
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + ( col2 ) col1 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT + 52 + col0 * col0 AS col2 FROM tab2 AS cor0
----
101
6136
6293
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9298
SELECT - cor0.col1 * col2 + CAST( - 98 AS SIGNED ) FROM tab0 AS cor0
----
-195
-2936
-7560
skipif mysql # not compatible
query I rowsort label-9298
SELECT - cor0.col1 * col2 + CAST ( - 98 AS INTEGER ) FROM tab0 AS cor0
----
-195
-2936
-7560
query I rowsort
SELECT col1 * col2 + 96 FROM tab2 AS cor0
----
1630
742
933
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9300
SELECT + cor0.col2 * - col0 - CAST( + col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9300
SELECT + cor0.col2 * - col0 - CAST ( + col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-9301
SELECT - + ( - cor0.col1 ) DIV - ( cor0.col0 ) + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1223
573
7920
skipif mysql # not compatible
query I rowsort label-9301
SELECT - + ( - cor0.col1 ) / - ( cor0.col0 ) + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
1223
573
7920
query I rowsort
SELECT + 7 FROM tab1 cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9303
SELECT ALL col1 DIV + cor0.col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL col1 / + cor0.col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + - 68 + - col0 FROM tab2 cor0
----
-146
-147
-75
query I rowsort
SELECT DISTINCT - + col0 + col1 * + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT + col0 * - col1 * - col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + + 39 + + col0 FROM tab2 cor0
----
117
118
46
query I rowsort
SELECT DISTINCT + + 29 AS col0 FROM tab2 AS cor0
----
29
query I rowsort
SELECT ALL - - 78 * + col0 FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT - 43 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT ALL ( - col2 ) + - col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL ( + 22 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9313
SELECT DISTINCT + CAST( + 5 AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
5
skipif mysql # not compatible
query I rowsort label-9313
SELECT DISTINCT + CAST ( + 5 AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
5
query I rowsort
SELECT ALL - 86 * col1 - + ( col1 * col1 ) AS col0 FROM tab1 AS cor0
----
-1287
-2912
-960
query I rowsort
SELECT ALL col0 + col1 * + col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT cor0.col0 * + cor0.col0 - col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT DISTINCT + col0 + col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9318
SELECT DISTINCT - ( + cor0.col1 ) + ( ( col1 ) ) * + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT - ( + cor0.col1 ) + ( ( col1 ) ) * + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col2 * col0 - - col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT tab0.col1 + cor0.col2 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to ed0f18675169071c56b762ebcebeac71
query I rowsort
SELECT + cor0.col2 + col2 * + col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + col0 * + ( 46 ) + - col0 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT + + 81 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 * col0 col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT DISTINCT ( + 59 ) + + cor0.col1 * 23 AS col0 FROM tab1 AS cor0
----
289
358
657
query I rowsort
SELECT - + 2 * + cor0.col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - col0 * - 41 * col1 FROM tab1 AS cor0
----
26240
3198
42640
onlyif mysql # use DIV operator for integer division
query I rowsort label-9328
SELECT ALL - + 41 DIV + col0 + col1 + ( + col0 * - col1 ) AS col2 FROM tab1 cor0
----
-1027
-630
-65
skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - + 41 / + col0 + col1 + ( + col0 * - col1 ) AS col2 FROM tab1 cor0
----
-1027
-630
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 1 + - col0 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col1 * - 77 FROM tab2 AS cor0
----
-1309
-2387
-4543
query I rowsort
SELECT - 28 FROM tab1, tab1 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 70e92c218433163922867899a16e1269
query I rowsort
SELECT ALL + 24 * cor0.col0 AS col0 FROM tab1 AS cor0
----
1536
1920
72
query I rowsort
SELECT DISTINCT - col0 * col1 - + col0 * col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-234112
-564
-615440
query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + - 34 * - 3 - col0 FROM tab2 cor0
----
23
24
95
query I rowsort
SELECT + + cor1.col1 + 87 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fe143c9ebe1a2411aebece9f4ade32d2
query I rowsort
SELECT DISTINCT + - col2 + + 99 FROM tab0 AS cor0
----
17
66
98
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 61 col0 FROM tab0 AS cor0
----
61
query I rowsort
SELECT ALL - col1 + cor0.col2 + col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9341
SELECT - ( + col2 ) + col2 DIV 23 + 1 * + col1 AS col2 FROM tab1 AS cor0
----
-26
-45
-79
skipif mysql # not compatible
query I rowsort label-9341
SELECT - ( + col2 ) + col2 / 23 + 1 * + col1 AS col2 FROM tab1 AS cor0
----
-26
-45
-79
query I rowsort
SELECT DISTINCT - - 97 * col2 FROM tab0 AS cor0
----
3201
7954
97
query I rowsort
SELECT DISTINCT + + col1 * col1 * col0 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT CAST( col0 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-9344
SELECT CAST ( col0 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9345
SELECT + col1 DIV col2 + col0 * - ( - col0 ) + - col0 col2 FROM tab1 AS cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9345
SELECT + col1 / col2 + col0 * - ( - col0 ) + - col0 col2 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT DISTINCT + - 7 * - 9 AS col1 FROM tab0 AS cor0
----
63
query I rowsort
SELECT DISTINCT - col1 * col1 * + cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
-635970
-753480
-912576
query I rowsort
SELECT + ( + col1 ) + col0 * col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - 80 * - col1 FROM tab2 AS cor0
----
1360
2480
4720
query I rowsort
SELECT - 50 + - col1 * col1 FROM tab0 AS cor0
----
-7446
-8331
-9459
query I rowsort
SELECT DISTINCT + col0 + + 70 * - col0 AS col0 FROM tab0 AS cor0
----
-1656
-2415
-6141
query I rowsort
SELECT + cor0.col2 * 32 + - 13 FROM tab0 cor0
----
1043
19
2611
query I rowsort
SELECT + col1 * col0 * - 21 FROM tab2 AS cor0
----
-28203
-4557
-96642
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( 7 ) * + col2 col0 FROM tab2 AS cor0
----
10738
4522
5859
query I rowsort
SELECT ALL col2 * 13 FROM tab0 AS cor0
----
1066
13
429
query I rowsort
SELECT ALL + col0 * cor0.col1 * 8 AS col0 FROM tab1 AS cor0
----
5120
624
8320
query I rowsort
SELECT ALL + + col1 * + col1 + col2 AS col1 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT tab2.col1 + - ( - 64 * + col1 ) AS col2 FROM tab2
----
1105
2015
3835
query I rowsort
SELECT + ( - ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + col1 * + col2 + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT col2 * - col1 + col1 AS col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + 34 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
query I rowsort
SELECT - col2 + col1 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
-106135
-1546
-358982
onlyif mysql # use DIV operator for integer division
query I rowsort label-9365
SELECT DISTINCT - tab1.col2 DIV + col2 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-9365
SELECT DISTINCT - tab1.col2 / + col2 FROM tab1
----
-1
query I rowsort
SELECT + col2 + col2 * - col1 * + col0 AS col2 FROM tab1
----
-36423
-4158
-99744
query I rowsort
SELECT ALL - + col2 + col0 * + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
106059
1492
358930
query I rowsort
SELECT - col2 + + col2 + - col0 AS col1 FROM tab1 WHERE + col2 <> NULL
----
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( col1 * + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT ALL col1 DIV + tab1.col1 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9370
SELECT ALL col1 / + tab1.col1 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT col0 * - col0 + - col1 AS col2 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT ALL - col1 * - tab1.col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9373
SELECT - col2 + + col0 DIV + col1 AS col0 FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-9373
SELECT - col2 + + col0 / + col1 AS col0 FROM tab1 AS cor0
----
-51
-54
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9374
SELECT DISTINCT + cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT + cor0.col0 / + col2 AS col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT col2 + + col2 * col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + col2 * + col0 + - col2 - cor0.col1 FROM tab2 cor0
----
131
1943
2947
query I rowsort
SELECT ALL - + col1 * col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - cor0.col2 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-9379
SELECT + cor0.col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9379
SELECT + cor0.col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + col0 col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + col1 + - col0 * col0 AS col1 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT col0 + col0 * + col1 * col0 AS col2 FROM tab1 AS cor0
----
237
41024
83280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col1 col1 FROM tab2
----
55
58
85
query I rowsort
SELECT 7 + - col0 + col2 AS col1 FROM tab0
----
-27
0
16
query I rowsort
SELECT DISTINCT - ( - col2 ) - + ( + 36 + col0 ) FROM tab0
----
-27
-43
-70
query I rowsort
SELECT 33 - col0 AS col0 FROM tab1
----
-31
-47
30
query I rowsort
SELECT - col2 * - col2 + col2 - col0 FROM tab0
----
-33
1098
6717
query I rowsort
SELECT tab0.col0 * + col0 + col0 * col1 * - col1 FROM tab0
----
-176928
-328090
-729088
onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT DISTINCT col0 DIV + col1 + ( + ( col0 ) ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT col0 / + col1 + ( + ( col0 ) ) FROM tab0
----
24
35
89
query I rowsort
SELECT - col1 * + col1 * 38 + cor0.col1 * col0 FROM tab1 AS cor0
----
-25610
-3160
-5382
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 91 col1 FROM tab0 AS cor0
----
-91
-91
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 + + 99 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT + col1 + col1 DIV 72 AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9393
SELECT + col1 + col1 / 72 AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 * col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - col1 * 31 * col2 + - col0 FROM tab0 AS cor0
----
-231411
-3042
-88002
query I rowsort
SELECT - - col0 * col2 + - ( cor0.col0 ) * col0 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT DISTINCT col2 * ( - ( col2 ) ) FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9398
SELECT ALL - col1 + + 71 DIV col2 AS col0 FROM tab1 cor0
----
-13
-25
-9
skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL - col1 + + 71 / col2 AS col0 FROM tab1 cor0
----
-13
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 27 col2 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT ALL - - col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT DISTINCT + col0 + col2 DIV + col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT + col0 + col2 / + col1 FROM tab0 cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 40 col1 FROM tab1 AS cor0
----
2160
2280
3840
query I rowsort
SELECT ALL - col1 * - col0 * - col0 + + col1 FROM tab2
----
-106080
-1488
-358897
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN - col0 AND ( - col2 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT ALL - col2 + + col2 DIV col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL - col2 + + col2 / col2 FROM tab1
----
-53
-56
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9407
SELECT - col0 DIV + col1 - - col1 DIV - col2 AS col2 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-9407
SELECT - col0 / + col1 - - col1 / - col2 AS col2 FROM tab1
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - + tab2.col1 col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 * col0 col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT + col0 * tab2.col0 + + col2 * - tab2.col1 + col2 FROM tab2
----
-761
4576
5633
query I rowsort
SELECT - col2 * - tab0.col2 + col0 * col1 + + col1 AS col0 FROM tab0
----
14914
3239
3493
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT + col0 + - col0 + col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col0 NOT BETWEEN col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9415
SELECT ALL - cor0.col2 + col0 DIV ( + col0 * - col1 ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9415
SELECT ALL - cor0.col2 + col0 / ( + col0 * - col1 ) FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9416
SELECT DISTINCT - + cor0.col0 DIV + col0 + col1 AS col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-9416
SELECT DISTINCT - + cor0.col0 / + col0 + col1 AS col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT DISTINCT + col0 + 53 AS col0 FROM tab2 AS cor0
----
131
132
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9418
SELECT - CAST( NULL AS SIGNED ) col1 FROM tab0, tab1, tab1 cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9418
SELECT - CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1, tab1 cor0, tab2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT col1 + 98 FROM tab0
----
184
189
195
query I rowsort
SELECT ALL - col2 + 28 * - 69 AS col2 FROM tab2 AS cor0
----
-1958
-1959
-1970
query I rowsort
SELECT DISTINCT + + col2 * 11 FROM tab2 AS cor0
----
286
297
418
onlyif mysql # use DIV operator for integer division
query I rowsort label-9422
SELECT DISTINCT - + col0 * - 49 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
346
3822
3871
skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - + col0 * - 49 + col2 / col0 AS col0 FROM tab2 AS cor0
----
346
3822
3871
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9424
SELECT DISTINCT + col1 + - 39 DIV - 77 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9424
SELECT DISTINCT + col1 + - 39 / - 77 AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9425
SELECT ALL + CAST( col1 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL + CAST ( col1 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab2 AS cor0
----
-7
-7
-7
query I rowsort
SELECT ( - cor0.col1 ) * - col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col0 * - 9 FROM tab0 AS cor0
----
-216
-315
-801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9429
SELECT DISTINCT CAST( + 77 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
1001
2002
770
skipif mysql # not compatible
query I rowsort label-9429
SELECT DISTINCT CAST ( + 77 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT ( + col1 ) + - col2 * col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL col2 * 86 FROM tab2
----
2236
2322
3268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT - + cor0.col2 * + col0 - col0 * col0 FROM tab0 AS cor0
----
-1260
-1368
-15219
query I rowsort
SELECT ALL + 69 * cor0.col1 + + 10 AS col0 FROM tab1 AS cor0
----
1804
700
907
query I rowsort
SELECT ALL + 63 + + col0 FROM tab0 cor0
----
152
87
98
query I rowsort
SELECT + - col1 * col1 + col1 * - col2 AS col0 FROM tab1 cor0
----
-1417
-2080
-670
query I rowsort
SELECT ALL col2 + col1 * 50 FROM tab0 AS cor0
----
4333
4632
4851
onlyif mysql # use DIV operator for integer division
query I rowsort label-9438
SELECT col1 DIV - col1 + + col0 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-9438
SELECT col1 / - col1 + + col0 FROM tab2 AS cor0
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col2 * col2 + 3 + ( cor0.col0 + cor0.col0 ) FROM tab0 AS cor0
----
1140
6905
74
query I rowsort
SELECT ALL col2 * tab0.col1 - - col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col2 * - 76 * - col2 + col2 FROM tab0
----
-510942
-75
-82731
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col0 * + col0 col0 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT + 58 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT 25 - - col2 FROM tab0
----
107
26
58
query I rowsort
SELECT ALL - tab0.col1 FROM tab1, tab2, tab1 cor0, tab0
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT ALL - 6 * + tab1.col1 - + col1 AS col1 FROM tab1
----
-182
-70
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9448
SELECT + col1 DIV - tab1.col1 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9448
SELECT + col1 / - tab1.col1 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL + - 21 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
-1280
-1600
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9450
SELECT cor0.col0 * col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9450
SELECT cor0.col0 * col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 + + col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT - col2 * col2 + 83 FROM tab2 AS cor0
----
-1361
-593
-646
query I rowsort
SELECT ALL - col1 + col1 + ( + cor0.col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col0 + + tab2.col2 * + col1 * + col1 AS col1 FROM tab2
----
11061
25954
90584
query I rowsort
SELECT + ( col1 ) + + 85 FROM tab1 AS cor0
----
111
95
98
query I rowsort
SELECT + + 88 + col0 AS col0 FROM tab1 AS cor0
----
152
168
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9457
SELECT DISTINCT tab2.col2 + col1 DIV - col0 + - 32 FROM tab2
----
-6
-9
6
skipif mysql # not compatible
query I rowsort label-9457
SELECT DISTINCT tab2.col2 + col1 / - col0 + - 32 FROM tab2
----
-6
-9
6
query I rowsort
SELECT col2 + + ( col2 + col1 ) FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT + col1 * + 77 AS col0 FROM tab0 AS cor0
----
6622
7007
7469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col2 FROM tab0
----
-36
-36
-36
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL + 15 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT ALL ( - col2 ) + col1 AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL col1 + - col0 * - 24 + ( col2 ) AS col2 FROM tab2
----
1951
1957
226
query I rowsort
SELECT + col1 * 69 AS col0 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT ALL + 91 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT - col2 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 49 + + ( cor0.col1 + + 88 * col2 ) col0 FROM tab1 AS cor0
----
3504
4536
7824
query I rowsort
SELECT - col1 * + col0 + + 23 AS col1 FROM tab0 AS cor0
----
-2041
-3372
-8076
query I rowsort
SELECT DISTINCT + + col2 * - 87 * 41 AS col1 FROM tab0 AS cor0
----
-117711
-292494
-3567
query I rowsort
SELECT ALL col0 + ( + col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col0 * tab1.col1 + - col0 * col0 FROM tab1
----
-3456
-5360
69
query I rowsort
SELECT + + 72 * tab2.col0 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 708029b93651262d0fd3e762efc179fb
query I rowsort
SELECT ALL tab0.col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-9475
SELECT DISTINCT - col0 DIV + col2 + col2 * + 21 col1 FROM tab1
----
1134
1196
2016
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - col0 / + col2 + col2 * + 21 col1 FROM tab1
----
1134
1196
2016
query I rowsort
SELECT DISTINCT - + 43 + 59 AS col1 FROM tab1 AS cor0
----
16
query I rowsort
SELECT ALL - 27 AS col1 FROM tab1 AS cor0
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 + - col2 col0 FROM tab2 AS cor0
----
-58
-59
-70
query I rowsort
SELECT + 89 * col0 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT ALL 54 * + col2 FROM tab2 AS cor0
----
1404
1458
2052
query I rowsort
SELECT DISTINCT + + 32 * + col2 * + col1 FROM tab2 AS cor0
----
20672
26784
49088
query I rowsort
SELECT DISTINCT + + col2 * col1 + - cor0.col1 * col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL 4 + + 57 * col1 FROM tab1 cor0
----
1486
574
745
query I rowsort
SELECT - - 3 AS col2 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT ALL - col2 * col1 + - col0 * - cor0.col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT + col1 + - 6 AS col0 FROM tab0 AS cor0
----
80
85
91
query I rowsort
SELECT ALL 4 AS col2 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT ( col0 ) + col1 + col2 AS col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT - ( - cor0.col1 ) + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + 43 FROM tab1 cor0
----
43
43
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-9491
SELECT - col2 * - 20 + col0 DIV - ( col1 ) FROM tab1 AS cor0
----
1080
1134
1914
skipif mysql # not compatible
query I rowsort label-9491
SELECT - col2 * - 20 + col0 / - ( col1 ) FROM tab1 AS cor0
----
1080
1134
1914
query I rowsort
SELECT + col1 * + col1 + col2 * + col1 AS col1 FROM tab0 AS cor0
----
10234
15743
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9493
SELECT CAST( NULL AS SIGNED ) - col2 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9493
SELECT CAST ( NULL AS INTEGER ) - col2 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 29 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9496
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9496
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
119711
51051
5890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9498
SELECT - + CAST( + col0 AS SIGNED ) + col0 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9498
SELECT - + CAST ( + col0 AS INTEGER ) + col0 + - ( - col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - ( - col0 ) * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0 AS cor2
----
3645 values hashing to 01eead0dd25d3467de7ffefe027bc35f
query I rowsort
SELECT - 89 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
query I rowsort
SELECT ALL + cor1.col0 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab0 cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f
query I rowsort
SELECT DISTINCT - 77 + - col2 + col0 FROM tab2 AS cor0
----
-25
-36
-97
query I rowsort
SELECT + cor0.col0 + col1 + cor0.col0 FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT DISTINCT 75 FROM tab0, tab2 cor0
----
75
query I rowsort
SELECT ALL + cor0.col1 * 47 FROM tab2, tab0 AS cor0
----
9 values hashing to a2d92791da4ec24a091aacfb7b519042
query I rowsort
SELECT ( 3 ) + - tab0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 90d39f7cb09eedf0ef04fff7232bcc17
query I rowsort
SELECT - 54 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT - col1 + 85 * col1 AS col0 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT + cor0.col0 * + 42 AS col1 FROM tab0 AS cor0
----
1008
1470
3738
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + - col1 * + col0 AS col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT - col1 - 88 FROM tab2
----
-105
-119
-147
onlyif mysql # use DIV operator for integer division
query I rowsort label-9513
SELECT + 36 - - 49 DIV col1 FROM tab2 AS cor0
----
36
37
38
skipif mysql # not compatible
query I rowsort label-9513
SELECT + 36 - - 49 / col1 FROM tab2 AS cor0
----
36
37
38
query I rowsort
SELECT col0 - + col1 * - col0 AS col1 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT col0 + col2 * + col2 FROM tab2
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-9516
SELECT ALL - tab2.col2 + ( + col2 ) DIV 13 FROM tab2
----
-24
-25
-36
skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL - tab2.col2 + ( + col2 ) / 13 FROM tab2
----
-24
-25
-36
query I rowsort
SELECT - col0 * + 70 + tab1.col0 + - tab1.col0 AS col1 FROM tab1
----
-210
-4480
-5600
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 + - col2 * col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - ( 28 ) * col0 * ( 3 * + col2 ) AS col0 FROM tab1 AS cor0
----
-13608
-306432
-645120
query I rowsort
SELECT DISTINCT - ( + 66 ) FROM tab0 AS cor0
----
-66
query I rowsort
SELECT - cor0.col2 * + col1 * col1 FROM tab1 cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL - 57 AS col2 FROM tab1 cor0
----
-57
-57
-57
query I rowsort
SELECT ALL - 20 + col1 FROM tab2
----
-3
11
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9524
SELECT + ( + col2 ) * + col1 + - col1 * col2 * CAST( + col0 + col0 AS SIGNED ) FROM tab0
----
-1320774
-133386
-6693
skipif mysql # not compatible
query I rowsort label-9524
SELECT + ( + col2 ) * + col1 + - col1 * col2 * CAST ( + col0 + col0 AS INTEGER ) FROM tab0
----
-1320774
-133386
-6693
query I rowsort
SELECT + col2 * - col0 * - ( 14 * col1 ) + col2 * + col1 FROM tab2
----
1676662
715122
82863
query I rowsort
SELECT ALL - cor1.col1 * 41 FROM tab0, tab2, tab1 cor0, tab2 cor1
----
81 values hashing to b06757fafd9a2f29cdadbea3f4a1c53d
query I rowsort
SELECT + + col2 + - col0 * 56 FROM tab2 AS cor0
----
-365
-4342
-4386
query I rowsort
SELECT ALL + 76 * cor0.col2 FROM tab2 AS cor0
----
1976
2052
2888
query I rowsort
SELECT - col2 + cor0.col0 * + col0 FROM tab2 cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - + col1 * ( - col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - - col1 + col1 * cor0.col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL + col1 * 99 + - col0 AS col2 FROM tab2 AS cor0
----
1604
3062
5763
query I rowsort
SELECT + ( cor1.col2 ) FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9535
SELECT + + col0 + + col1 DIV col0 col1 FROM tab2 AS cor0
----
11
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9535
SELECT + + col0 + + col1 / col0 col1 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT ALL + - col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + col1 * - 96 + col1 + 93 AS col1 FROM tab1
----
-1142
-2377
-857
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * + col1 + col1 col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT - ( + col1 ) * - col1 + + 65 FROM tab0
----
7461
8346
9474
query I rowsort
SELECT ALL 28 + + col1 AS col0 FROM tab0
----
114
119
125
query I rowsort
SELECT DISTINCT + - 55 + + col0 FROM tab1 AS cor0
----
-52
25
9
query I rowsort
SELECT - 8 * 57 FROM tab0 AS cor0
----
-456
-456
-456
query I rowsort
SELECT DISTINCT 93 * + cor0.col1 FROM tab2 cor0
----
1581
2883
5487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9544
SELECT - + CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9544
SELECT - + CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9545
SELECT ALL + + CAST( NULL AS SIGNED ) / + col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL + + CAST ( NULL AS INTEGER ) / + col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab0, tab0 AS cor0, tab0 cor1
----
-86
-91
-97
query I rowsort
SELECT - + 28 * - 70 AS col2 FROM tab1 cor0
----
1960
1960
1960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 + - col0 + 79 col1 FROM tab1 AS cor0
----
106
167
90
query I rowsort
SELECT DISTINCT col0 * col2 * - ( cor0.col1 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - 27 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT - col2 + col2 * 35 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT DISTINCT - - cor0.col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col2 col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col1 * col1 * col0 AS col0 FROM tab1 cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9555
SELECT col1 DIV - col2 + 0 + 28 FROM tab1 AS cor0
----
28
28
28
skipif mysql # not compatible
query I rowsort label-9555
SELECT col1 / - col2 + 0 + 28 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT - - 74 * col0 FROM tab2 cor0
----
518
5772
5846
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( + cor0.col1 ) col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + ( - 12 ) * + tab2.col0 - col1 * + col1 AS col1 FROM tab2
----
-1045
-1237
-4417
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 * - col0 ) + - col2 * + col0 col2 FROM tab1
----
-15360
-324
-7296
query I rowsort
SELECT ( col0 ) * - col1 + 83 AS col1 FROM tab2
----
-1260
-134
-4519
query I rowsort
SELECT col2 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT + ( col0 ) + + 63 AS col0 FROM tab1 AS cor0
----
127
143
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + + cor0.col1 col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT 11 - + col1 AS col0 FROM tab1
----
-15
-2
1
query I rowsort
SELECT + col0 + + ( col0 * col2 ) AS col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col0 * + cor0.col0 * + col2 + + col2 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
-1224
-98154
16929
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9567
SELECT ALL + + col2 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + + col2 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + col2 ) col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9569
SELECT DISTINCT - cor0.col2 * CAST( - 93 AS SIGNED ) FROM tab0 AS cor0
----
3069
7626
93
skipif mysql # not compatible
query I rowsort label-9569
SELECT DISTINCT - cor0.col2 * CAST ( - 93 AS INTEGER ) FROM tab0 AS cor0
----
3069
7626
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9570
SELECT ALL + col1 + 29 - 35 DIV + col1 FROM tab1 AS cor0
----
36
40
54
skipif mysql # not compatible
query I rowsort label-9570
SELECT ALL + col1 + 29 - 35 / + col1 FROM tab1 AS cor0
----
36
40
54
query I rowsort
SELECT DISTINCT - - col2 * - col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col0 * 96 + col1 FROM tab2 AS cor0
----
703
7547
7601
query I rowsort
SELECT + - col2 + + 88 AS col0 FROM tab0 AS cor0
----
55
6
87
query I rowsort
SELECT ALL - col0 * + cor0.col2 + - 9 FROM tab2 AS cor0
----
-198
-2037
-3011
onlyif mysql # use DIV operator for integer division
query I rowsort label-9575
SELECT col0 + - col2 DIV col1 + col0 FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-9575
SELECT col0 + - col2 / col1 + col0 FROM tab0
----
178
48
70
query I rowsort
SELECT + col0 + - 18 AS col1 FROM tab2 AS cor0
----
-11
60
61
query I rowsort
SELECT ALL - col2 * 46 + 58 * + col2 AS col2 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT DISTINCT + col0 + + col0 * 56 FROM tab0 AS cor0
----
1368
1995
5073
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL cor0.col2 + ( - 99 * + col2 ) FROM tab0 cor0
----
-3234
-8036
-98
query I rowsort
SELECT ALL - col1 + - 26 AS col2 FROM tab0 AS cor0
----
-112
-117
-123
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 + - col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - - col2 - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - col0 + + 2 AS col1 FROM tab2 cor0
----
-5
-76
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + - tab2.col1 * col1 + + tab2.col0 col0 FROM tab2
----
-117
-1869
436
query I rowsort
SELECT DISTINCT - 33 AS col2 FROM tab1, tab2 AS cor0
----
-33
query I rowsort
SELECT + - col0 + - 91 FROM tab1 AS cor0
----
-155
-171
-94
query I rowsort
SELECT ALL col1 + col0 * - col0 + tab1.col1 AS col0 FROM tab1
----
-4076
-6374
43
query I rowsort
SELECT col2 * 57 AS col1 FROM tab2
----
1482
1539
2166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col0 + - col1 col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT + - cor0.col2 * col2 + col2 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - 62 + cor0.col1 FROM tab2 AS cor0
----
-3
-31
-45
query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab1 cor0
----
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-9595
SELECT - col2 DIV cor0.col1 - - col1 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-9595
SELECT - col2 / cor0.col1 - - col1 FROM tab1 AS cor0
----
24
5
6
query I rowsort
SELECT col0 * 74 + col1 AS col1 FROM tab0 AS cor0
----
1862
2687
6677
query I rowsort
SELECT + 66 - + col1 AS col2 FROM tab0 AS cor0
----
-20
-25
-31
query I rowsort
SELECT DISTINCT cor0.col2 * - 54 FROM tab2, tab1 AS cor0
----
-2916
-3078
-5184
query I rowsort
SELECT col2 + - tab2.col1 AS col1 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT col2 DIV 93 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9600
SELECT col2 / 93 FROM tab0
----
0
0
0
query I rowsort
SELECT - col2 * ( + col0 ) + - col0 * ( - col0 ) AS col1 FROM tab2
----
-140
3239
4056
query I rowsort
SELECT DISTINCT - 57 + + 34 AS col1 FROM tab0
----
-23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9603
SELECT + CAST( col0 + + col0 AS SIGNED ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9603
SELECT + CAST ( col0 + + col0 AS INTEGER ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT + 51 DIV - tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9604
SELECT + 51 / - tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) + + cor0.col0 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9607
SELECT ALL + CAST( + col2 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9607
SELECT ALL + CAST ( + col2 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 * 89 FROM tab2 AS cor0
----
-623
-6942
-7031
query I rowsort
SELECT ALL + 99 + 58 * col0 + - col1 FROM tab0 AS cor0
----
1405
2032
5170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9610
SELECT ALL CAST( cor0.col0 AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL CAST ( cor0.col0 AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9611
SELECT + CAST( NULL AS SIGNED ) / col1 col0 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9611
SELECT + CAST ( NULL AS INTEGER ) / col1 col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9612
SELECT DISTINCT ( - 89 ) DIV col0 FROM tab2
----
-1
-12
skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT ( - 89 ) / col0 FROM tab2
----
-1
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-9613
SELECT col0 + col2 DIV col1 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-9613
SELECT col0 + col2 / col1 FROM tab2
----
7
78
81
query I rowsort
SELECT ALL + - cor0.col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 32 * + col0 + - ( - 97 ) FROM tab2 AS cor0
----
2593
2625
321
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col1 FROM tab1 AS cor0
----
6
6
6
query I rowsort
SELECT DISTINCT 82 AS col0 FROM tab1
----
82
query I rowsort
SELECT ALL col1 + - col1 * + col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9619
SELECT ALL CAST( 38 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL CAST ( 38 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT + 49 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9622
SELECT col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9622
SELECT col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + - col2 + - 88 FROM tab2 AS cor0
----
-108
-36
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9624
SELECT ALL + + col1 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL + + col1 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 1 * - col2 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 col1 FROM tab2 AS cor0
----
-52
-54
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9627
SELECT + + col1 DIV - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-9627
SELECT + + col1 / - col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + 96 * col2 AS col1 FROM tab1 AS cor0
----
5184
5472
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9629
SELECT + - col2 + - cor0.col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-9629
SELECT + - col2 + - cor0.col1 / + col1 AS col2 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT DISTINCT + 1 * tab0.col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL - 61 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT - cor0.col2 * col1 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + 96 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL - col1 * col1 + - ( + cor0.col0 ) - - col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + + 61 AS col0 FROM tab1 AS cor0
----
61
query I rowsort
SELECT DISTINCT + col2 * - col0 + 54 * + col1 + col2 * 3 * 6 FROM tab2 AS cor0
----
-1400
1626
1971
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 + col2 * - col1 col1 FROM tab2 AS cor0
----
-1474
-586
-777
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9640
SELECT + col1 * tab0.col1 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9640
SELECT + col1 * tab0.col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT cor0.col0 * - 50 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0788ba0c1e73e77469ca1e1de47aaf2b
query I rowsort
SELECT - tab2.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9644
SELECT col0 DIV col0 - tab1.col0 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-9644
SELECT col0 / col0 - tab1.col0 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT + col1 + - 81 * col1 + - col1 * 71 FROM tab2
----
-2567
-4681
-8909
query I rowsort
SELECT + cor0.col1 + 32 * - col2 * 46 FROM tab0 AS cor0
----
-120613
-1375
-48490
query I rowsort
SELECT - + ( - col2 ) + - col1 * 76 FROM tab0 AS cor0
----
-6503
-6834
-7371
query I rowsort
SELECT - 85 * cor0.col2 FROM tab0 AS cor0
----
-2805
-6970
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9649
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col2 + + col2 col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9649
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col2 + + col2 col1 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 - col1 col1 FROM tab2
----
-103
-61
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - col1 + col1 col1 FROM tab2 cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 * col1 col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 * ( 51 ) - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-105297
-173146
-413131
onlyif mysql # use DIV operator for integer division
query I rowsort label-9654
SELECT - - col0 + col2 DIV col0 col0 FROM tab0 cor0
----
25
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9654
SELECT - - col0 + col2 / col0 col0 FROM tab0 cor0
----
25
35
89
query I rowsort
SELECT DISTINCT col2 * ( - 37 + + col0 ) AS col0 FROM tab1
----
-1836
1539
4128
onlyif mysql # use DIV operator for integer division
query I rowsort label-9656
SELECT - col2 DIV ( col0 ) + ( + 30 + + col2 ) AS col1 FROM tab2 AS cor0
----
54
56
68
skipif mysql # not compatible
query I rowsort label-9656
SELECT - col2 / ( col0 ) + ( + 30 + + col2 ) AS col1 FROM tab2 AS cor0
----
54
56
68
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col2 + 97 * col2 AS col2 FROM tab0 AS cor0
----
3168
7872
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9659
SELECT ALL + - col0 * - 14 + + col0 DIV - col0 FROM tab0 AS cor0
----
1245
335
489
skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL + - col0 * - 14 + + col0 / - col0 FROM tab0 AS cor0
----
1245
335
489
query I rowsort
SELECT ALL + 8 + - col0 FROM tab1 cor0
----
-56
-72
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9661
SELECT ALL - - col1 DIV + col0 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-9661
SELECT ALL - - col1 / + col0 - + cor0.col2 AS col2 FROM tab2 AS cor0
----
-23
-26
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9662
SELECT - col0 DIV 16 FROM tab0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-9662
SELECT - col0 / 16 FROM tab0
----
-1
-2
-5
query I rowsort
SELECT - 1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9664
SELECT - col1 DIV tab1.col1 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9664
SELECT - col1 / tab1.col1 AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL + col0 + - col1 * col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT ALL col2 * + 88 + col1 * col0 * - 13 FROM tab2
----
-14115
-445
-57538
query I rowsort
SELECT + 47 AS col1 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT + + 69 + col2 FROM tab0 AS cor0
----
102
151
70
query I rowsort
SELECT DISTINCT 60 + + col0 AS col2 FROM tab1 cor0
----
124
140
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 + + col2 col0 FROM tab1 AS cor0
----
12
51
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col0 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - col2 * 69 + col1 * + ( - col2 ) FROM tab1 AS cor0
----
-4503
-5130
-7872
query I rowsort
SELECT ALL 91 * + col0 - 40 FROM tab1 AS cor0
----
233
5784
7240
query I rowsort
SELECT DISTINCT col1 * - col0 + + ( col0 ) * - col2 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 28 FROM tab0 cor0
----
28
28
28
query I rowsort
SELECT + cor0.col1 * - cor0.col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + col1 * 68 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT DISTINCT - col2 * col1 + cor0.col1 FROM tab0 cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * + col0 col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - ( col2 ) * col1 col0 FROM tab0 cor0
----
-2871
-7544
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9682
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + - col1 col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9682
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + - col1 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 * 30 * 70 AS col1 FROM tab1 AS cor0
----
-113400
-119700
-201600
query I rowsort
SELECT DISTINCT + col1 + - 31 FROM tab1 AS cor0
----
-18
-21
-5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9685
SELECT ALL col2 + + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 85 FROM tab2 AS cor0
----
2210
2295
3230
query I rowsort
SELECT DISTINCT - col1 * col1 * col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-9688
SELECT DISTINCT + col0 DIV + 55 AS col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT + col0 / + 55 AS col0 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL - col0 * - col1 - - 11 FROM tab0 AS cor0
----
2075
3406
8110
query I rowsort
SELECT ALL col1 * ( col1 ) FROM tab1
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9691
SELECT - col1 * + CAST( - 45 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3870
4095
4365
skipif mysql # not compatible
query I rowsort label-9691
SELECT - col1 * + CAST ( - 45 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT ALL col1 + - ( 59 ) FROM tab2 AS cor0
----
-28
-42
0
query I rowsort
SELECT ALL + tab1.col0 FROM tab1, tab0, tab0 cor0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT - - 60 + + 6 FROM tab2 AS cor0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9695
SELECT + 47 * + cor0.col2 + cor0.col1 DIV col0 FROM tab0 AS cor0
----
1554
3855
49
skipif mysql # not compatible
query I rowsort label-9695
SELECT + 47 * + cor0.col2 + cor0.col1 / col0 FROM tab0 AS cor0
----
1554
3855
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9696
SELECT - CAST( NULL AS SIGNED ) * + 70 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9696
SELECT - CAST ( NULL AS INTEGER ) * + 70 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 73 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9698
SELECT CAST( NULL AS SIGNED ) / ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9698
SELECT CAST ( NULL AS INTEGER ) / ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 97 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT - col2 * + col2 + col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-15616
-2925
-7345
query I rowsort
SELECT ALL - + col2 + col0 AS col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - 89 + + col0 FROM tab2 AS cor0
----
-10
-11
-82
query I rowsort
SELECT - - 16 + - col0 FROM tab1 AS cor0
----
-48
-64
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-9704
SELECT + 8 DIV cor0.col0 FROM tab1 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9704
SELECT + 8 / cor0.col0 FROM tab1 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9705
SELECT ALL + + col0 + col2 + - ( col1 ) DIV col1 FROM tab0 cor0
----
170
35
56
skipif mysql # not compatible
query I rowsort label-9705
SELECT ALL + + col0 + col2 + - ( col1 ) / col1 FROM tab0 cor0
----
170
35
56
query I rowsort
SELECT DISTINCT + col0 + + tab0.col1 + + col0 FROM tab0
----
134
167
269
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9707
SELECT - CAST( NULL AS SIGNED ) + 61 + - tab1.col1 * 87 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9707
SELECT - CAST ( NULL AS INTEGER ) + 61 + - tab1.col1 * 87 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - col0 * + col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT ALL 27 + col2 FROM tab1
----
123
81
84
query I rowsort
SELECT DISTINCT + col2 + + 56 FROM tab0
----
138
57
89
query I rowsort
SELECT col0 + + col2 * col1 AS col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT - tab2.col1 + + col2 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT col0 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL + + cor0.col0 + col1 * - col1 AS col2 FROM tab0 cor0
----
-7372
-8192
-9374
query I rowsort
SELECT - cor0.col1 + - tab1.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0f6ec6b87929e67cae93b9c64afb5c9c
query I rowsort
SELECT DISTINCT col0 * - col0 + + cor0.col1 - cor0.col0 * col0 FROM tab1 AS cor0
----
-12787
-8182
8
query I rowsort
SELECT DISTINCT - col1 * - tab2.col1 * col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT - + col0 * - cor0.col1 * col1 FROM tab1 cor0
----
13520
2028
6400
query I rowsort
SELECT - col1 * tab2.col1 * + col0 - - col1 * + col1 AS col2 FROM tab2
----
-22542
-268037
-5766
query I rowsort
SELECT ALL - - col0 * - col2 + + col2 FROM tab1 cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL + col2 * col2 + - col1 FROM tab0 cor0
----
-96
1003
6633
query I rowsort
SELECT ALL - 8 + col1 AS col0 FROM tab2
----
23
51
9
query I rowsort
SELECT cor0.col0 * cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT - 50 * col2 AS col1 FROM tab0 AS cor0
----
-1650
-4100
-50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + col0 * + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - 54 + - cor0.col2 FROM tab1 AS cor0
----
-108
-111
-150
query I rowsort
SELECT col2 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT 88 * col2 AS col0 FROM tab1
----
4752
5016
8448
onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT + col2 + + col1 DIV + col1 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-9730
SELECT + col2 + + col1 / + col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT + col0 / + col2 + col2 AS col2 FROM tab2 WHERE NOT col0 * col2 * col2 NOT BETWEEN NULL AND - col2 * + col2
----
query I rowsort
SELECT - col0 * col1 + col2 * + col2 * col0 AS col2 FROM tab0
----
-3360
24072
590337
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * - col2 NOT IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 / - col1 NOT IN ( tab2.col2 * + col2 )
----
query I rowsort
SELECT ALL + tab0.col2 + + col1 AS col0 FROM tab0 WHERE NOT NULL <> col1
----
query I rowsort
SELECT DISTINCT + + 1 * - col1 * - ( 59 ) FROM tab2 AS cor0
----
1003
1829
3481
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * - col2 + - col2 + col2 * col1 * 9 col1 FROM tab1 AS cor0
----
12744
18816
8721
query I rowsort
SELECT DISTINCT col1 / col1 AS col0 FROM tab0 WHERE NULL IN ( + tab0.col2 )
----
query I rowsort
SELECT ALL - 81 * col1 FROM tab0 cor0
----
-6966
-7371
-7857
query I rowsort
SELECT cor0.col0 * + 93 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 551dde140f452eb43ad412c25452df50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( cor0.col0 ) * - ( + col0 + - col2 ) col1 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT col2 + - col0 * ( + col2 ) * col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-233425
-458
-614317
query I rowsort
SELECT DISTINCT col0 * - col1 * - col0 FROM tab1
----
234
40960
83200
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= ( col2 )
----
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE ( NULL ) < ( NULL )
----
query I rowsort
SELECT ALL tab1.col2 * - tab1.col1 AS col1 FROM tab1
----
-1248
-1404
-570
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> ( col0 * col2 )
----
query I rowsort
SELECT + col2 * col0 + col0 * - col2 * - col0 AS col0 FROM tab1
----
237120
622080
648
query I rowsort
SELECT ALL - col0 + - tab1.col2 FROM tab1 WHERE NULL NOT IN ( + col0 * + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * - col1 ) NOT IN ( + col1 * + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT ALL - col1 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9752
SELECT ALL - col1 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + col2 * - col0 + - col1 AS col0 FROM tab1 cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-9754
SELECT DISTINCT col2 DIV + col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT col2 / + col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT col2 * + tab2.col1 + + col1 + - col2 AS col1 FROM tab2
----
1567
625
841
onlyif mysql # use DIV operator for integer division
query I rowsort label-9756
SELECT DISTINCT - col0 DIV + col0 + col2 + + col0 AS col2 FROM tab0
----
170
35
56
skipif mysql # not compatible
query I rowsort label-9756
SELECT DISTINCT - col0 / + col0 + col2 + + col0 AS col2 FROM tab0
----
170
35
56
query I rowsort
SELECT + col0 * - tab2.col0 * + tab2.col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT cor0.col1 - - col1 AS col1 FROM tab2 cor0 WHERE NOT ( - col0 ) IN ( col1 + - col0 )
----
118
34
62
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT ALL - col0 * - col0 * + col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT ALL + col1 * col1 * + tab2.col2 + + col0 + + col0 FROM tab2
----
11140
25961
90662
query I rowsort
SELECT - tab2.col1 * col1 + - col1 * + col1 + - col1 AS col0 FROM tab2
----
-1953
-595
-7021
query I rowsort
SELECT - col1 * col0 * + col0 AS col2 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - col2 * col1 + col1 * + col0 + - col0 FROM tab0
----
-798
3263
548
onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT DISTINCT - tab2.col0 DIV - col0 + col0 + col0 FROM tab2
----
15
157
159
skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT - tab2.col0 / - col0 + col0 + col0 FROM tab2
----
15
157
159
query I rowsort
SELECT ALL + 58 + col0 * - cor0.col1 FROM tab0 cor0
----
-2006
-3337
-8041
query I rowsort
SELECT ALL + cor0.col1 * col1 - 41 AS col1 FROM tab1 AS cor0
----
128
59
635
query I rowsort
SELECT ALL + + 22 AS col2 FROM tab1 AS cor0
----
22
22
22
query I rowsort
SELECT + - col0 + col0 * - 48 FROM tab0 AS cor0
----
-1176
-1715
-4361
query I rowsort
SELECT + 40 * 77 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 4d82416541c538885d4e07a8e75f7e35
query I rowsort
SELECT - col1 * col0 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - 48 + col2 AS col2 FROM tab0
----
-15
-47
34
query I rowsort
SELECT col2 + col0 + + col1 AS col2 FROM tab1
----
131
189
83
query I rowsort
SELECT - 57 - cor0.col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to d8b7a51c1b8ae60c18458cce3a602bf6
query I rowsort
SELECT - + cor0.col0 * 31 - 61 AS col2 FROM tab2 AS cor0
----
-2479
-2510
-278
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + col1 * - col1 col2 FROM tab0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-9777
SELECT col0 + col2 DIV + tab1.col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-9777
SELECT col0 + col2 / + tab1.col0 FROM tab1
----
21
64
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9778
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9778
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT - + col1 + - ( col1 ) FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + - 19 FROM tab2 AS cor0
----
-19
-19
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9781
SELECT DISTINCT - - ( + col0 ) + col0 * col2 * - 31 + - col0 * CAST( NULL AS SIGNED ) / col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - - ( + col0 ) + col0 * col2 * - 31 + - col0 * CAST ( NULL AS INTEGER ) / col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * + col1 - + col1 col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - col0 + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT DISTINCT + col0 * + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT + col0 * + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col1 * + 27 + + 79 AS col2 FROM tab2
----
1672
538
916
query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab0, tab1 AS cor0
----
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9787
SELECT DISTINCT - CAST( col1 AS SIGNED ) - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9787
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - col0 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - + 22 AS col1 FROM tab1 AS cor0
----
-22
query I rowsort
SELECT col2 * + col0 * - col2 + - col0 AS col1 FROM tab1
----
-208000
-737360
-8751
query I rowsort
SELECT ALL + + 78 AS col0 FROM tab2, tab2 cor0, tab0, tab0 AS cor1
----
81 values hashing to f0487ba81d377516702723e098c02ba1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 46 col1 FROM tab1, tab0 AS cor0
----
-46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9792
SELECT - ( + col2 ) * + col0 + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9792
SELECT - ( + col2 ) * + col0 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 14 + cor0.col1 * col1 FROM tab0 AS cor0
----
7382
8267
9395
query I rowsort
SELECT DISTINCT 59 * col1 FROM tab1 AS cor0
----
1534
590
767
query I rowsort
SELECT + - 67 * + 13 AS col1 FROM tab0 AS cor0
----
-871
-871
-871
query I rowsort
SELECT DISTINCT + + col2 + + col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col1 - - 34 * col1 * col1 AS col0 FROM tab0 AS cor0
----
251550
281645
320003
query I rowsort
SELECT + 67 * 84 AS col2 FROM tab1 cor0
----
5628
5628
5628
query I rowsort
SELECT ALL + - 53 AS col2 FROM tab1 AS cor0
----
-53
-53
-53
query I rowsort
SELECT ALL + ( + ( - col2 ) ) * - ( + col0 ) FROM tab1 AS cor0
----
162
3648
7680
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-9802
SELECT ALL - - col1 DIV + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9802
SELECT ALL - - col1 / + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT DISTINCT col0 DIV 12 AS col2 FROM tab1
----
0
5
6
skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT col0 / 12 AS col2 FROM tab1
----
0
5
6
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT 32 * + col2 * + tab0.col2 FROM tab0
----
215168
32
34848
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9806
SELECT ALL + col1 * + ( col2 + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + col1 * + ( col2 + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - 92 * - col1 FROM tab2
----
1643
2859
5506
query I rowsort
SELECT ALL + ( 18 ) * - col2 AS col2 FROM tab0
----
-1476
-18
-594
query I rowsort
SELECT DISTINCT - 83 + - col0 AS col0 FROM tab0 AS cor0
----
-107
-118
-172
onlyif mysql # use DIV operator for integer division
query I rowsort label-9810
SELECT ALL 55 DIV + 82 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL 55 / + 82 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col0 * + tab2.col1 * - col1 AS col0 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ( - col1 * - col1 ) AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT - 1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 82 + 86 FROM tab0 AS cor0
----
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-9817
SELECT DISTINCT + - col2 + - cor0.col0 DIV CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-9817
SELECT DISTINCT + - col2 + - cor0.col0 / CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT 33 + cor0.col1 * 33 AS col0 FROM tab0 AS cor0
----
2871
3036
3234
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9819
SELECT DISTINCT - col0 - - col0 * + CAST( 53 * - col1 AS SIGNED ) FROM tab0 AS cor0
----
-109416
-179970
-429336
skipif mysql # not compatible
query I rowsort label-9819
SELECT DISTINCT - col0 - - col0 * + CAST ( 53 * - col1 AS INTEGER ) FROM tab0 AS cor0
----
-109416
-179970
-429336
onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT ALL col0 DIV - cor0.col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL col0 / - cor0.col1 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + cor0.col0 col0 FROM tab2 AS cor0
----
11
82
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9822
SELECT ALL + 27 + col0 DIV col0 FROM tab0 AS cor0
----
28
28
28
skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL + 27 + col0 / col0 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT - + cor0.col2 * - col2 + 78 AS col1 FROM tab1 AS cor0
----
2994
3327
9294
onlyif mysql # use DIV operator for integer division
query I rowsort label-9824
SELECT col0 + - col2 DIV cor0.col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-9824
SELECT col0 + - col2 / cor0.col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT ALL - + col2 + + col2 * + 26 * col0 AS col1 FROM tab2 AS cor0
----
4887
52702
78014
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 + + col1 col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + col2 + - 67 AS col1 FROM tab1 AS cor0
----
-10
-13
29
query I rowsort
SELECT ALL - cor0.col1 * + col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - col2 * 93 * col1 - cor0.col0 * + col1 * col0 AS col1 FROM tab2 AS cor0
----
-166175
-501618
-79360
onlyif mysql # use DIV operator for integer division
query I rowsort label-9830
SELECT DISTINCT + col0 * ( col1 ) DIV + col1 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT + col0 * ( col1 ) / + col1 + col1 * col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT - col0 * + col1 + - 76 FROM tab1 cor0
----
-1116
-154
-716
query I rowsort
SELECT + - col2 + 13 AS col1 FROM tab2 AS cor0
----
-13
-14
-25
query I rowsort
SELECT - ( + cor0.col0 ) + col1 * col1 + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
15490
8164
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9834
SELECT - - CAST( NULL AS SIGNED ) * 18 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9834
SELECT - - CAST ( NULL AS INTEGER ) * 18 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9835
SELECT + CAST( + ( - col1 ) AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
skipif mysql # not compatible
query I rowsort label-9835
SELECT + CAST ( + ( - col1 ) AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + tab1.col1 * - col2 + col1 AS col2 FROM tab1
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
60
query I rowsort
SELECT ALL - col0 + 41 * col0 AS col2 FROM tab1 AS cor0
----
120
2560
3200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9839
SELECT DISTINCT - col2 * CAST( - 18 AS SIGNED ) - - col0 col1 FROM tab0 cor0
----
1565
53
618
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9839
SELECT DISTINCT - col2 * CAST ( - 18 AS INTEGER ) - - col0 col1 FROM tab0 cor0
----
1565
53
618
query I rowsort
SELECT + 35 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT ALL + ( + tab0.col0 + 19 ) AS col0 FROM tab0
----
108
43
54
query I rowsort
SELECT + 42 * col1 AS col0 FROM tab0
----
3612
3822
4074
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a
query I rowsort
SELECT ALL + + cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9845
SELECT - col1 + col0 DIV - 78 FROM tab2 AS cor0
----
-18
-31
-60
skipif mysql # not compatible
query I rowsort label-9845
SELECT - col1 + col0 / - 78 FROM tab2 AS cor0
----
-18
-31
-60
query I rowsort
SELECT - - col0 * ( 58 ) + - col2 * + cor0.col2 FROM tab1 AS cor0
----
-2742
-4576
463
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 64 col2 FROM tab0
----
146
65
97
query I rowsort
SELECT DISTINCT - 99 FROM tab0, tab0 AS cor0
----
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9849
SELECT CAST( col1 AS SIGNED ) DIV col0 AS col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-9849
SELECT CAST ( col1 AS INTEGER ) / col0 AS col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT + 19 + 74 * - col1 AS col0 FROM tab2
----
-1239
-2275
-4347
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9851
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col0 * 4 + ( + cor0.col0 ) * cor0.col2 AS col1 FROM tab1 cor0
----
200
3914
8013
skipif mysql # not compatible
query I rowsort label-9851
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col0 * 4 + ( + cor0.col0 ) * cor0.col2 AS col1 FROM tab1 cor0
----
200
3914
8013
query I rowsort
SELECT + - 85 * - 77 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
6569
6580
6634
query I rowsort
SELECT col0 * + col0 - cor0.col2 FROM tab2 cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT - 49 DIV tab0.col2 col1 FROM tab0
----
-1
-49
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9854
SELECT - 49 / tab0.col2 col1 FROM tab0
----
-1
-49
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9855
SELECT DISTINCT col1 * 82 DIV - tab2.col0 FROM tab2
----
-17
-363
-62
skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT col1 * 82 / - tab2.col0 FROM tab2
----
-17
-363
-62
query I rowsort
SELECT DISTINCT + col0 + + col2 * - 18 AS col0 FROM tab0
----
-1387
-570
17
query I rowsort
SELECT ALL 18 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 903ac227935c1532300db45a8537c595
onlyif mysql # use DIV operator for integer division
query I rowsort label-9858
SELECT col1 + - col1 DIV - col1 FROM tab2 cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9858
SELECT col1 + - col1 / - col1 FROM tab2 cor0
----
18
32
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-9859
SELECT - - ( col0 ) DIV col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9859
SELECT - - ( col0 ) / col0 + ( col1 ) AS col0 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * 54 col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 844a72dde6ceee76fcc1d53f52d38ec1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9861
SELECT DISTINCT - 83 DIV - col1 + - ( col0 ) + - col2 FROM tab1
----
-113
-170
-54
skipif mysql # not compatible
query I rowsort label-9861
SELECT DISTINCT - 83 / - col1 + - ( col0 ) + - col2 FROM tab1
----
-113
-170
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9862
SELECT ( + cor0.col1 ) - - col2 DIV col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-9862
SELECT ( + cor0.col1 ) - - col2 / col2 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT - 71 * - col1 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT - + cor0.col2 + col2 - + col1 AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - cor0.col0 * + col2 + 3 - col0 FROM tab1 AS cor0
----
162
3587
7603
query I rowsort
SELECT + col2 * cor0.col0 - ( - 45 ) AS col2 FROM tab2 AS cor0
----
2073
234
3047
query I rowsort
SELECT + - col0 + col1 * + 79 AS col0 FROM tab2 AS cor0
----
1264
2442
4583
query I rowsort
SELECT DISTINCT + col0 * + col2 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + - col1 * - 5 AS col2 FROM tab0 cor0
----
430
455
485
query I rowsort
SELECT - cor0.col2 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT ALL + col2 DIV - ( - col2 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL + col2 / - ( - col2 ) FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 + - col1 col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL col2 + 44 FROM tab0 cor0
----
126
45
77
query I rowsort
SELECT DISTINCT 85 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
85
query I rowsort
SELECT ALL + col0 * col1 - - 95 * col0 AS col2 FROM tab0 AS cor0
----
16554
4344
6720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9876
SELECT - CAST( col2 AS SIGNED ) AS col0 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9876
SELECT - CAST ( col2 AS INTEGER ) AS col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT - col0 + 65 AS col0 FROM tab1
----
-15
1
62
query I rowsort
SELECT ALL - + col0 * - 89 + col2 FROM tab1 AS cor0
----
321
5753
7216
query I rowsort
SELECT DISTINCT + + 43 + col2 FROM tab0 AS cor0
----
125
44
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT DISTINCT - col2 DIV 6 + cor0.col1 AS col1 FROM tab2 AS cor0
----
11
27
55
skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - col2 / 6 + cor0.col1 AS col1 FROM tab2 AS cor0
----
11
27
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9881
SELECT ALL + 21 DIV + cor0.col0 - 58 FROM tab2, tab1 AS cor0
----
9 values hashing to 75c6ecef4226052367b534f91bd973d8
skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + 21 / + cor0.col0 - 58 FROM tab2, tab1 AS cor0
----
9 values hashing to 75c6ecef4226052367b534f91bd973d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * + col0 col2 FROM tab2 cor0
----
252
2808
2844
query I rowsort
SELECT + ( - 10 ) FROM tab1 cor0
----
-10
-10
-10
query I rowsort
SELECT DISTINCT ( 71 ) * col2 AS col0 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT ( col0 ) * col1 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + 78 * + col2 + - 75 FROM tab2 AS cor0
----
1953
2031
2889
onlyif mysql # use DIV operator for integer division
query I rowsort label-9887
SELECT ALL - ( + col1 ) DIV + tab2.col0 AS col1 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL - ( + col1 ) / + tab2.col0 AS col1 FROM tab2
----
-4
0
0
query I rowsort
SELECT col0 * - col2 + - 22 FROM tab2 AS cor0
----
-2050
-211
-3024
query I rowsort
SELECT ALL 35 * + col2 AS col0 FROM tab0 cor0
----
1155
2870
35
query I rowsort
SELECT + col2 + - col0 - + col1 FROM tab2 cor0
----
-11
-111
-58
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 * - col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - - ( - col2 ) * - 78 AS col0 FROM tab2 AS cor0
----
2028
2106
2964
query I rowsort
SELECT - ( tab2.col2 * - cor0.col2 ) FROM tab2, tab2 AS cor0
----
9 values hashing to b336c500cf10b0a0ff50fcdda3308e9b
query I rowsort
SELECT DISTINCT + tab0.col2 * 14 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
1148
14
462
query I rowsort
SELECT ALL 2 * 84 AS col0 FROM tab0
----
168
168
168
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - col0 + + ( + col0 ) * + col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT DISTINCT - col2 * col2 + 36 * - col0 FROM tab1 AS cor0
----
-12096
-3024
-5553
query I rowsort
SELECT + col2 * cor0.col1 + col0 * col0 + 50 AS col1 FROM tab0 AS cor0
----
1372
15433
3464
query I rowsort
SELECT ALL - + cor0.col1 * 97 AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970
onlyif mysql # use DIV operator for integer division
query I rowsort label-9901
SELECT ALL + col0 DIV - ( col1 ) FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + col0 / - ( col1 ) FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT + - col0 * 86 FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT col1 + 93 AS col1 FROM tab0 AS cor0
----
179
184
190
query I rowsort
SELECT DISTINCT + + col2 * 69 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
1026
1976
260
query I rowsort
SELECT ALL col1 + 32 * - col2 FROM tab0 AS cor0
----
-2533
-970
65
query I rowsort
SELECT + col1 + col1 * + col0 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9907
SELECT DISTINCT + - CAST( NULL AS SIGNED ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9908
SELECT CAST( col0 AS SIGNED ) * col1 FROM tab1 cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9908
SELECT CAST ( col0 AS INTEGER ) * col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9909
SELECT DISTINCT + 53 DIV + col1 AS col0 FROM tab2 cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-9909
SELECT DISTINCT + 53 / + col1 AS col0 FROM tab2 cor0
----
0
1
3
query I rowsort
SELECT - + col0 + - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 + + col2 * + col2 col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - ( col1 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col1 * + col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - + col0 * cor0.col0 + + col1 FROM tab0 cor0
----
-1128
-490
-7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + + col1 col0 FROM tab2
----
102
130
88
query I rowsort
SELECT + col2 + col0 * - 80 + + col1 AS col0 FROM tab1
----
-160
-5053
-6291
query I rowsort
SELECT - col2 * 20 + + 28 + + col1 * - col2 FROM tab0 AS cor0
----
-3470
-89
-9074
query I rowsort
SELECT - col0 + - col0 * ( col1 ) AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ( col0 ) * + 37 * col2 + col2 AS col1 FROM tab0
----
1296
270108
29337
query I rowsort
SELECT col1 * col0 + + col1 AS col2 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT - col0 * col1 + col1 * col0 AS col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9924
SELECT ALL + col1 DIV tab2.col0 + + 46 FROM tab2
----
46
46
50
skipif mysql # not compatible
query I rowsort label-9924
SELECT ALL + col1 / tab2.col0 + + 46 FROM tab2
----
46
46
50
query I rowsort
SELECT - tab1.col2 * - 56 AS col1 FROM tab1
----
3024
3192
5376
onlyif mysql # use DIV operator for integer division
query I rowsort label-9926
SELECT ALL col2 DIV - ( + 86 + col2 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL col2 / - ( + 86 + col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col0 * - 9 AS col1 FROM tab0
----
-216
-315
-801
query I rowsort
SELECT + 37 FROM tab1, tab1 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT + 34 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + col0 col1 FROM tab2
----
166
167
95
query I rowsort
SELECT ALL - ( 30 ) FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
query I rowsort
SELECT DISTINCT ( tab0.col1 * col1 ) FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9933
SELECT CAST( col0 AS SIGNED ) col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9933
SELECT CAST ( col0 AS INTEGER ) col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + 18 * - col1 AS col1 FROM tab0
----
-1548
-1638
-1746
onlyif mysql # use DIV operator for integer division
query I rowsort label-9935
SELECT DISTINCT + cor0.col0 DIV - col1 + ( col2 ) FROM tab2 AS cor0
----
25
27
34
skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT + cor0.col0 / - col1 + ( col2 ) FROM tab2 AS cor0
----
25
27
34
query I rowsort
SELECT + col2 * col0 + + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - 17 + col0 AS col0 FROM tab2 AS cor0
----
-10
61
62
query I rowsort
SELECT DISTINCT + col1 * + col1 + ( col0 ) + - col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + col0 * col0 - cor0.col2 * + cor0.col0 FROM tab1 AS cor0
----
-1280
-153
448
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col0 ) + + 36 * - 63 col1 FROM tab0 AS cor0
----
-2179
-2233
-2244
onlyif mysql # use DIV operator for integer division
query I rowsort label-9941
SELECT - ( col2 ) DIV 2 FROM tab1
----
-27
-28
-48
skipif mysql # not compatible
query I rowsort label-9941
SELECT - ( col2 ) / 2 FROM tab1
----
-27
-28
-48
query I rowsort
SELECT + - 59 + - cor0.col2 * cor0.col1 * + col0 FROM tab1 AS cor0
----
-36539
-4271
-99899
query I rowsort
SELECT + 88 * + col0 AS col2 FROM tab1 AS cor0
----
264
5632
7040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9944
SELECT + CAST( NULL AS SIGNED ) * + 82 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9944
SELECT + CAST ( NULL AS INTEGER ) * + 82 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT + 3 DIV 65 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9945
SELECT + 3 / 65 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + col0 + - col0 * col1 - ( col1 ) FROM tab1
----
-95
3446
5347
query I rowsort
SELECT col0 * - col0 + tab1.col0 FROM tab1
----
-4032
-6
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT DISTINCT + 8 + - col1 * + col0 FROM tab2
----
-1335
-209
-4594
query I rowsort
SELECT + 4 - col1 FROM tab1
----
-22
-6
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9951
SELECT ALL - 63 + + 38 DIV col2 AS col2 FROM tab0 AS cor0
----
-25
-62
-63
skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - 63 + + 38 / col2 AS col2 FROM tab0 AS cor0
----
-25
-62
-63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9952
SELECT + - CAST( - col1 AS SIGNED ) + col2 * - cor0.col1 FROM tab1 cor0
----
-1235
-1378
-560
skipif mysql # not compatible
query I rowsort label-9952
SELECT + - CAST ( - col1 AS INTEGER ) + col2 * - cor0.col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT cor0.col2 * - 75 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to bd534cb80a1036d1d0450f6f6ae186eb
query I rowsort
SELECT ALL cor0.col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col1 - cor0.col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + + 27 * - col2 - col0 AS col2 FROM tab1 AS cor0
----
-1461
-1603
-2672
onlyif mysql # use DIV operator for integer division
query I rowsort label-9957
SELECT + col0 DIV - col2 + 73 * + ( - cor0.col0 + + ( + ( col2 ) ) ) * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-112128
-201042
29126
skipif mysql # not compatible
query I rowsort label-9957
SELECT + col0 / - col2 + 73 * + ( - cor0.col0 + + ( + ( col2 ) ) ) * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-112128
-201042
29126
query I rowsort
SELECT ALL + 77 * - col2 AS col0 FROM tab1 AS cor0
----
-4158
-4389
-7392
query I rowsort
SELECT DISTINCT - tab2.col0 AS col0 FROM tab2, tab1 cor0
----
-7
-78
-79
query I rowsort
SELECT - col2 + col2 * - tab0.col1 AS col2 FROM tab0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9961
SELECT ALL 83 DIV 3 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL 83 / 3 col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL col1 + - 77 AS col0 FROM tab2 AS cor0
----
-18
-46
-60
query I rowsort
SELECT col2 + col1 * col0 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT - - col0 + col2 * + 6 AS col2 FROM tab2 AS cor0
----
169
234
307
query I rowsort
SELECT - col2 + ( 12 ) FROM tab2 AS cor0
----
-14
-15
-26
query I rowsort
SELECT 56 * 73 FROM tab0, tab2 AS cor0
----
9 values hashing to 4d92a610a99b47e87dc4a44225729d82
query I rowsort
SELECT ALL 53 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda
onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT + col1 DIV ( - col1 * col1 ) AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9968
SELECT + col1 / ( - col1 * col1 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-9970
SELECT + col0 + + col1 DIV - 90 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9970
SELECT + col0 + + col1 / - 90 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL col2 * col0 - - col2 FROM tab2
----
2054
216
3040
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
query I rowsort
SELECT DISTINCT - 22 + - 17 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
267
505
981
query I rowsort
SELECT + ( - cor0.col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + 21 + 61 AS col0 FROM tab2 AS cor0
----
82
82
82
query I rowsort
SELECT + 0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9977
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + - col1 * cor0.col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT + 6 AS col2 FROM tab1 cor0
----
6
6
6
query I rowsort
SELECT DISTINCT - - col1 + + 68 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT DISTINCT + ( + 54 ) + + col1 FROM tab2 AS cor0
----
113
71
85
query I rowsort
SELECT - cor0.col0 * ( col0 ) + + cor0.col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT - + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col2 + col2 * cor0.col1 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT col0 + col2 * - col2 * tab1.col2 AS col1 FROM tab1
----
-157461
-185129
-884656
onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT DISTINCT + 52 - col0 DIV + col2 FROM tab0 AS cor0
----
17
51
52
skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT + 52 - col0 / + col2 FROM tab0 AS cor0
----
17
51
52
query I rowsort
SELECT - - 3 + 81 AS col1 FROM tab2 AS cor0
----
84
84
84
query I rowsort
SELECT ALL - 5 + col2 * col0 FROM tab1 AS cor0
----
157
3643
7675
query I rowsort
SELECT - 71 - + col1 FROM tab2 AS cor0
----
-102
-130
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) * - col2 + + 25 col0 FROM tab2 AS cor0
----
1469
701
754
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * col2 * 3 AS col1 FROM tab2 AS cor0
----
574
6162
9085
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 * col0 col0 FROM tab2 AS cor0
----
287
3198
3239
onlyif mysql # use DIV operator for integer division
query I rowsort label-9994
SELECT - - col2 DIV 86 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9994
SELECT - - col2 / 86 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT ( cor0.col1 ) + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL 95 + - tab1.col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 5caffec67a639708c6807343212cab8a
query I rowsort
SELECT - - 97 + + col1 FROM tab2 AS cor0
----
114
128
156
query I rowsort
SELECT DISTINCT - col2 * 46 * col2 FROM tab0 AS cor0
----
-309304
-46
-50094
query I rowsort
SELECT - col1 * 54 - col1 AS col2 FROM tab1 AS cor0
----
-1430
-550
-715