hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT col1 * col1 + col0 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 * col1 + + cor0.col0 FROM tab0 AS cor0
----
7444
8459
9479
query I rowsort
SELECT + - col2 * col0 * - 58 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
11439
431565
53332
onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT DISTINCT ( + tab1.col1 ) DIV + 96 + col0 * - col2 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT ( + tab1.col1 ) / + 96 + col0 * - col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4
SELECT - col1 + col2 + - col2 DIV + 91 FROM tab1
----
28
47
82
skipif mysql # not compatible
query I rowsort label-4
SELECT - col1 + col2 + - col2 / + 91 FROM tab1
----
28
47
82
query I rowsort
SELECT DISTINCT - col2 * + tab1.col2 + tab1.col1 * - col1 AS col0 FROM tab1
----
-3349
-3592
-9385
query I rowsort
SELECT ALL 60 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7
SELECT - + ( + col0 ) * CAST( + 31 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-186
-2359
-2432
skipif mysql # not compatible
query I rowsort label-7
SELECT - + ( + col0 ) * CAST ( + 31 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-186
-2359
-2432
query I rowsort
SELECT - col1 * col2 + - ( + cor0.col0 ) FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT - - 69 * col0 - col1 * col1 * + col0 FROM tab0 AS cor0
----
-175848
-326900
-730868
query I rowsort
SELECT tab2.col2 * 2 + - col1 FROM tab2
----
-7
23
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col0 col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-12
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + + col2 * + col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-12
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col2 * + col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 * col1 + + cor0.col2 col1 FROM tab2 AS cor0
----
22869
271544
6754
query I rowsort
SELECT DISTINCT - 75 * - ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
1800
2625
6675
query I rowsort
SELECT ALL 32 + + 75 AS col1 FROM tab0 AS cor0
----
107
107
107
query I rowsort
SELECT - - 56 FROM tab0 cor0
----
56
56
56
query I rowsort
SELECT ALL ( col1 ) + col2 * 67 FROM tab0 AS cor0
----
164
2297
5585
query I rowsort
SELECT DISTINCT ( ( col1 ) ) + ( col1 ) * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + col1 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + col1 * + 79 AS col0 FROM tab0 AS cor0
----
6794
7189
7663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-21
SELECT ALL + - CAST( + col1 AS SIGNED ) + col1 * 6 * 5 + + col2 AS col0 FROM tab2 AS cor0
----
1737
531
926
skipif mysql # not compatible
query I rowsort label-21
SELECT ALL + - CAST ( + col1 AS INTEGER ) + col1 * 6 * 5 + + col2 AS col0 FROM tab2 AS cor0
----
1737
531
926
query I rowsort
SELECT ALL + - 17 + - col0 AS col1 FROM tab0 cor0
----
-106
-41
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) + col1 * cor0.col2 col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col1 - ( + 22 ) * col1 FROM tab2
----
-1239
-357
-651
onlyif mysql # use DIV operator for integer division
query I rowsort label-25
SELECT - 38 DIV 4 FROM tab1 cor0
----
-9
-9
-9
skipif mysql # not compatible
query I rowsort label-25
SELECT - 38 / 4 FROM tab1 cor0
----
-9
-9
-9
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + tab1.col0 * + col0 + 93 * - col1 FROM tab1
----
-2409
3166
5191
query I rowsort
SELECT 6 * col0 + - 71 FROM tab2
----
-29
397
403
query I rowsort
SELECT ALL - 92 + - col2 AS col0 FROM tab1 AS cor0
----
-146
-149
-188
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) * + col0 + col1 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT + + 36 + col2 * + ( + col2 ) FROM tab0 AS cor0
----
1125
37
6760
onlyif mysql # use DIV operator for integer division
query I rowsort label-32
SELECT DISTINCT + ( - col2 ) DIV col1 + cor0.col2 * cor0.col0 col0 FROM tab1 AS cor0
----
160
3643
7673
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-32
SELECT DISTINCT + ( - col2 ) / col1 + cor0.col2 * cor0.col0 col0 FROM tab1 AS cor0
----
160
3643
7673
skipif mysql # not compatible
query I rowsort
SELECT - + col2 * + CAST ( - col2 AS REAL ) * - col2 AS col0 FROM tab2 AS cor0
----
-17576
-19683
-54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( cor0.col0 ) col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col1 * + 25 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT DISTINCT + col1 * - 65 * - col0 FROM tab1 AS cor0
----
41600
5070
67600
query I rowsort
SELECT DISTINCT - cor0.col0 * + 90 FROM tab0 cor0
----
-2160
-3150
-8010
query I rowsort
SELECT 92 * col0 + ( - tab1.col1 + - col2 ) FROM tab1
----
196
5821
7251
query I rowsort
SELECT ALL cor0.col0 * - col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 + col2 * + cor0.col0 col2 FROM tab0 cor0
----
73
7336
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab2 AS cor0
----
-89
-89
-89
query I rowsort
SELECT DISTINCT 18 * col2 + col2 FROM tab1 AS cor0
----
1026
1083
1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-43
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-43
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * ( cor0.col0 ) - col0 * 41 AS col1 FROM tab1 AS cor0
----
-114
1472
3120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 * - col0 + col1 col2 FROM tab0 cor0
----
-2098
-3088
-8008
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 DISTINCT + + col1 * 5 col2 FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT - 82 * + col0 AS col1 FROM tab1 AS cor0
----
-246
-5248
-6560
query I rowsort
SELECT DISTINCT + 39 * cor0.col1 FROM tab0 AS cor0
----
3354
3549
3783
query I rowsort
SELECT ALL + - 10 * - ( + col1 ) + + 59 FROM tab1 AS cor0
----
159
189
319
query I rowsort
SELECT col0 - + col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL tab2.col1 * col2 - + tab2.col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT - 84 - + col0 FROM tab0 AS cor0
----
-108
-119
-173
query I rowsort
SELECT col0 * col2 * - col2 + - col0 * col0 FROM tab1 AS cor0
----
-212032
-743680
-8757
query I rowsort
SELECT DISTINCT + + 94 + col1 AS col0 FROM tab2 AS cor0
----
111
125
153
query I rowsort
SELECT ALL - ( - col1 ) - col2 AS col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-57
SELECT 11 DIV - col0 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-57
SELECT 11 / - col0 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 80 * + col1 + col1 FROM tab0
----
6966
7371
7857
query I rowsort
SELECT DISTINCT col0 + - col0 * col0 AS col1 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT 20 + 25 * tab2.col1 AS col2 FROM tab2
----
1495
445
795
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + col2 + col1 col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + 51 + col0 * - ( + col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
-118774
-49485
-720760
query I rowsort
SELECT - col0 + col1 * 78 FROM tab2 AS cor0
----
1247
2411
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT DISTINCT - 14 DIV + col0 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT - 14 / + col0 AS col0 FROM tab0
----
0
query I rowsort
SELECT + tab2.col0 * 78 AS col2 FROM tab2
----
546
6084
6162
query I rowsort
SELECT ALL col1 + + 72 + tab0.col0 FROM tab0
----
182
204
252
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-67
SELECT CAST( NULL AS SIGNED ) * - 13 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-67
SELECT CAST ( NULL AS INTEGER ) * - 13 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col2 + 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3fb6e781758370638c793aa475cb1117
query I rowsort
SELECT + col0 * col0 * 28 + + cor0.col0 FROM tab1 AS cor0
----
114752
179280
255
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-70
SELECT - cor0.col2 * cor0.col1 + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
skipif mysql # not compatible
query I rowsort label-70
SELECT - cor0.col2 * cor0.col1 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT col0 + cor0.col1 AS col2 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT - ( + col0 + + 76 ) * - 60 FROM tab0
----
6000
6660
9900
query I rowsort
SELECT ALL 67 FROM tab0, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT 89 - - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8c151964edc1e225624b5ba969b32169
query I rowsort
SELECT - - col1 + - 27 * + cor0.col0 * + col1 FROM tab2 AS cor0
----
-124195
-36244
-5828
query I rowsort
SELECT ALL + - col2 * - col1 + 89 + - cor0.col1 AS col0 FROM tab2 cor0
----
1564
718
895
onlyif mysql # use DIV operator for integer division
query I rowsort label-77
SELECT DISTINCT col2 DIV + 89 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT col2 / + 89 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col2 * - 71 * 61 FROM tab1
----
-233874
-246867
-415776
onlyif mysql # use DIV operator for integer division
query I rowsort label-79
SELECT col2 DIV + 77 col2 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-79
SELECT col2 / + 77 col2 FROM tab0
----
0
0
1
query I rowsort
SELECT - 20 * + col0 FROM tab0 AS cor0
----
-1780
-480
-700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 77 * + col0 * - col1 col0 FROM tab0 AS cor0
----
158928
261415
623623
query I rowsort
SELECT col2 * + 6 AS col2 FROM tab0
----
198
492
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-83
SELECT - CAST( - col1 AS SIGNED ) DIV + col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-83
SELECT - CAST ( - col1 AS INTEGER ) / + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - + col1 * + col2 + - cor0.col2 * col2 FROM tab0 AS cor0
----
-14186
-3927
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
query I rowsort
SELECT ALL col0 + - cor0.col0 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + col1 * ( cor0.col2 ) + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + + col1 + col2 + 76 FROM tab1 AS cor0
----
143
156
185
query I rowsort
SELECT col1 * - 95 AS col0 FROM tab0 AS cor0
----
-8170
-8645
-9215
query I rowsort
SELECT DISTINCT - - col1 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - + 39 * 97 AS col2 FROM tab1 AS cor0
----
-3783
-3783
-3783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-92
SELECT + col1 / 71 + - col1 + ( ( - col1 ) ) * CAST( NULL AS SIGNED ) * 94 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-92
SELECT + col1 / 71 + - col1 + ( ( - col1 ) ) * CAST ( NULL AS INTEGER ) * 94 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - ( + 21 ) AS col2 FROM tab2 AS cor0
----
21
query I rowsort
SELECT DISTINCT - + col0 + - col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-192
-240
-9
query I rowsort
SELECT ALL - ( + 13 ) AS col0 FROM tab1 cor0
----
-13
-13
-13
query I rowsort
SELECT ALL cor0.col0 * - ( - cor0.col0 * 65 ) FROM tab2 cor0
----
3185
395460
405665
query I rowsort
SELECT ( - 23 ) FROM tab2, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT 10 AS col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
onlyif mysql # use DIV operator for integer division
query I rowsort label-99
SELECT 80 DIV - 39 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
skipif mysql # not compatible
query I rowsort label-99
SELECT 80 / - 39 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT DISTINCT 58 FROM tab2, tab2 cor0, tab0 cor1
----
58
query I rowsort
SELECT DISTINCT 47 * tab2.col2 FROM tab2
----
1222
1269
1786
query I rowsort
SELECT ALL + cor0.col1 + cor0.col1 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1a063bfb694f348122cd0739295ca641
query I rowsort
SELECT - col0 * col2 - - col0 AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-104
SELECT DISTINCT - + col1 + + CAST( NULL AS SIGNED ) + + 56 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-104
SELECT DISTINCT - + col1 + + CAST ( NULL AS INTEGER ) + + 56 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * + ( - col1 ) * - col0 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT cor0.col1 * + tab2.col0 + + tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to ec8f7bb28e718e0cc519b482a05bc89d
query I rowsort
SELECT ALL - 65 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT ALL - + col0 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col1 * + 98 FROM tab1 AS cor0
----
-1274
-2548
-980
query I rowsort
SELECT DISTINCT col0 + + ( col0 ) AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - tab0.col1 * - col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL 28 AS col0 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT ALL ( 98 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col1 col0 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT - col0 * ( col1 ) DIV col2 AS col0 FROM tab1
----
-1
-10
-11
skipif mysql # not compatible
query I rowsort label-116
SELECT - col0 * ( col1 ) / col2 AS col0 FROM tab1
----
-1
-10
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 71 col2 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT DISTINCT col0 * 71 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT ALL + col2 * 58 AS col2 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT DISTINCT ( - tab1.col1 ) + - col2 * col2 * col0 AS col2 FROM tab1
----
-207946
-737293
-8774
query I rowsort
SELECT ALL - col2 + 35 + + tab2.col0 * - col2 AS col0 FROM tab2
----
-181
-2019
-3005
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-122
SELECT - - CAST( col0 AS SIGNED ) + + cor0.col2 AS col1 FROM tab1 cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-122
SELECT - - CAST ( col0 AS INTEGER ) + + cor0.col2 AS col1 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col0 FROM tab2, tab1 AS cor0
----
38
query I rowsort
SELECT DISTINCT + col2 + col2 * - col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT + col1 + + 81 * + col1 + + tab2.col1 FROM tab2
----
1411
2573
4897
query I rowsort
SELECT 52 * + col0 * ( col1 + col1 ) FROM tab1 AS cor0
----
108160
66560
8112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-127
SELECT - - col0 * - col1 / ( col2 ) + cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-127
SELECT - - col0 * - col1 / ( col2 ) + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-128
SELECT ALL col0 * + col1 + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1360
248
4661
skipif mysql # not compatible
query I rowsort label-128
SELECT ALL col0 * + col1 + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT - 68 * col1 FROM tab2 AS cor0
----
-1156
-2108
-4012
query I rowsort
SELECT DISTINCT - 20 * col2 FROM tab2 cor0
----
-520
-540
-760
query I rowsort
SELECT DISTINCT + col2 + - col2 * - col2 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 * col0 col2 FROM tab0 AS cor0
----
-2136
-576
-840
query I rowsort
SELECT - 6 * tab2.col2 FROM tab2
----
-156
-162
-228
query I rowsort
SELECT ALL col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 86 + col1 * col2 AS col1 FROM tab0 cor0
----
183
2924
7548
onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT DISTINCT col0 + col1 DIV + col0 col0 FROM tab2 AS cor0
----
11
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT col0 + col1 / + col0 col0 FROM tab2 AS cor0
----
11
78
79
query I rowsort
SELECT col2 FROM tab0 WHERE ( NULL ) NOT IN ( - tab0.col2 + col0 / + col1 )
----
query I rowsort
SELECT tab0.col0 * col1 * col2 FROM tab0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col1 * col1 * + CAST ( 61 AS REAL ) + col2 * col2 AS col2 FROM tab0 AS cor0
----
-450067
-498417
-573948
onlyif mysql # use DIV operator for integer division
query I rowsort label-140
SELECT + col1 + tab1.col0 DIV col0 AS col0 FROM tab1 WHERE col1 * col1 NOT BETWEEN NULL AND + col2
----
11
14
27
skipif mysql # not compatible
query I rowsort label-140
SELECT + col1 + tab1.col0 / col0 AS col0 FROM tab1 WHERE col1 * col1 NOT BETWEEN NULL AND + col2
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-141
SELECT col2 DIV - col0 + col1 * col1 FROM tab0
----
7395
8281
9409
skipif mysql # not compatible
query I rowsort label-141
SELECT col2 / - col0 + col1 * col1 FROM tab0
----
7395
8281
9409
query I rowsort
SELECT col1 * + col0 + col2 * tab1.col0 FROM tab1
----
240
4288
8720
query I rowsort
SELECT - col1 FROM tab0 WHERE - col0 + col0 IN ( col0 + - col0 * - col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE col1 IN ( + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL - tab1.col1 + cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 17c10b049c4bab241687e228247609ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-146
SELECT + - 87 * - col0 + ( - col1 ) DIV + col2 AS col0 FROM tab0 cor0
----
2086
2948
7742
skipif mysql # not compatible
query I rowsort label-146
SELECT + - 87 * - col0 + ( - col1 ) / + col2 AS col0 FROM tab0 cor0
----
2086
2948
7742
query I rowsort
SELECT - + 9 * col2 + col2 AS col1 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT + 27 * col0 + + 47 * - 55 AS col1 FROM tab1 AS cor0
----
-2504
-425
-857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-149
SELECT ALL + - col0 + + col0 * CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-149
SELECT ALL + - col0 + + col0 * CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + col2 AS col2 FROM tab1 WHERE col0 * - col1 <> NULL
----
query I rowsort
SELECT + col2 / col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT col2 - - col2 * col2 * col1 AS col2 FROM tab1
----
119904
32547
75870
query I rowsort
SELECT DISTINCT col1 + - col1 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-156
SELECT col1 DIV col0 - col0 AS col0 FROM tab0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-156
SELECT col1 / col0 - col0 AS col0 FROM tab0
----
-21
-33
-88
query I rowsort
SELECT ALL + col2 - + tab0.col0 * col1 AS col1 FROM tab0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-158
SELECT col2 DIV + tab2.col0 - col2 col1 FROM tab2
----
-24
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-158
SELECT col2 / + tab2.col0 - col2 col1 FROM tab2
----
-24
-26
-38
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 IN ( + col1 * col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-160
SELECT col0 + + col2 * col2 DIV col0 FROM tab1
----
114
195
975
skipif mysql # not compatible
query I rowsort label-160
SELECT col0 + + col2 * col2 / col0 FROM tab1
----
114
195
975
query I rowsort
SELECT + col1 - + tab1.col2 * - col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-162
SELECT DISTINCT col0 DIV - tab1.col1 FROM tab1
----
-6
0
skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT col0 / - tab1.col1 FROM tab1
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-163
SELECT col2 + col1 DIV + col1 + col2 AS col2 FROM tab2
----
53
55
77
skipif mysql # not compatible
query I rowsort label-163
SELECT col2 + col1 / + col1 + col2 AS col2 FROM tab2
----
53
55
77
query I rowsort
SELECT ALL + 16 * col1 AS col1 FROM tab1
----
160
208
416
query I rowsort
SELECT + 10 FROM tab2, tab2 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col2 FROM tab1
----
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT DISTINCT - col1 DIV tab2.col1 AS col2 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - col1 / tab2.col1 AS col2 FROM tab2
----
-1
query I rowsort
SELECT 42 FROM tab0, tab1 cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
onlyif mysql # use DIV operator for integer division
query I rowsort label-169
SELECT + col1 + - 77 DIV col0 FROM tab0 AS cor0
----
83
91
95
skipif mysql # not compatible
query I rowsort label-169
SELECT + col1 + - 77 / col0 FROM tab0 AS cor0
----
83
91
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - 25 col2 FROM tab0 AS cor0
----
1200
551
7896
query I rowsort
SELECT DISTINCT + 67 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT + - col2 * cor0.col2 + - 94 FROM tab0 AS cor0
----
-1183
-6818
-95
query I rowsort
SELECT ( col0 ) * - 11 - + col1 AS col2 FROM tab1 AS cor0
----
-59
-714
-893
onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT - 77 DIV tab0.col0 AS col1 FROM tab0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-174
SELECT - 77 / tab0.col0 AS col1 FROM tab0
----
-2
-3
0
query I rowsort
SELECT + ( - col2 ) * col2 * + ( + col1 ) AS col1 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT ALL 92 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
onlyif mysql # use DIV operator for integer division
query I rowsort label-177
SELECT + 38 DIV - col0 + - ( col0 ) + - col0 FROM tab0 AS cor0
----
-178
-49
-71
skipif mysql # not compatible
query I rowsort label-177
SELECT + 38 / - col0 + - ( col0 ) + - col0 FROM tab0 AS cor0
----
-178
-49
-71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-178
SELECT ALL CAST( ( col1 ) AS SIGNED ) + tab2.col0 * + col0 + col1 AS col0 FROM tab2
----
111
6202
6275
skipif mysql # not compatible
query I rowsort label-178
SELECT ALL CAST ( ( col1 ) AS INTEGER ) + tab2.col0 * + col0 + col1 AS col0 FROM tab2
----
111
6202
6275
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * ( - col0 ) + col2 + - col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + col0 + col0 * col1 * + col0 FROM tab1 AS cor0
----
231
40896
83120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-181
SELECT - tab2.col1 * tab2.col2 * + CAST( + col0 AS SIGNED ) FROM tab2
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-181
SELECT - tab2.col1 * tab2.col2 * + CAST ( + col0 AS INTEGER ) FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ( - col1 ) * 42 + 48 AS col1 FROM tab1
----
-1044
-372
-498
onlyif mysql # use DIV operator for integer division
query I rowsort label-183
SELECT DISTINCT - col1 + col1 DIV - col0 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-183
SELECT DISTINCT - col1 + col1 / - col0 FROM tab1 AS cor0
----
-10
-13
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-184
SELECT + + CAST( + col2 AS SIGNED ) col0 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-184
SELECT + + CAST ( + col2 AS INTEGER ) col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col2 * - 14 AS col0 FROM tab0
----
-1148
-14
-462
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-186
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-186
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 0 + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + ( col0 ) - - col0 * + tab0.col2 * col0 FROM tab0
----
1260
19032
649611
onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT 70 * col2 - + col1 * col1 DIV col0 AS col0 FROM tab1
----
3555
3989
6718
skipif mysql # not compatible
query I rowsort label-189
SELECT 70 * col2 - + col1 * col1 / col0 AS col0 FROM tab1
----
3555
3989
6718
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-190
SELECT + CAST( NULL AS SIGNED ) + col0 * - tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-190
SELECT + CAST ( NULL AS INTEGER ) + col0 * - tab0.col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-191
SELECT CAST( NULL AS SIGNED ) / col1 + - tab1.col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-191
SELECT CAST ( NULL AS INTEGER ) / col1 + - tab1.col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 - + col2 col1 FROM tab0
----
-31
18
50
query I rowsort
SELECT ALL - ( col2 ) * col2 FROM tab1 cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + + col2 col0 FROM tab0
----
145
64
96
query I rowsort
SELECT 24 + + col1 AS col0 FROM tab0
----
110
115
121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + cor0.col2 ) * col2 col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT - - col1 - - col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - + col1 * col2 + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + col2 + - col0 * tab1.col1 FROM tab1
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + - col0 col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col0 - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + col2 * col1 + - col0 FROM tab1 AS cor0
----
1168
1401
506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * - col2 - col1 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + + col2 * - col2 + col2 * col0 * + cor0.col1 FROM tab0 AS cor0
----
3394
657394
67023
query I rowsort
SELECT DISTINCT - 6 - + col0 FROM tab2 AS cor0
----
-13
-84
-85
query I rowsort
SELECT DISTINCT col2 + col2 * 37 FROM tab2
----
1026
1444
988
query I rowsort
SELECT DISTINCT col1 + - col2 + col2 * col0 AS col1 FROM tab1
----
134
3601
7597
query I rowsort
SELECT - col0 - col2 * - 87 AS col1 FROM tab2
----
2184
2342
3227
query I rowsort
SELECT + + 47 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL + cor0.col2 + col1 * col1 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL - - col1 + - 91 AS col0 FROM tab1 AS cor0
----
-65
-78
-81
query I rowsort
SELECT - col2 + ( + col1 * + col2 ) FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - col1 + col1 * + ( col0 ) FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL - - 75 * - col0 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT 86 * cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3010
7654
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col2 col1 FROM tab0, tab1 cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col1 FROM tab0 AS cor0
----
-49
-49
-49
query I rowsort
SELECT ALL - 78 * 41 FROM tab2 AS cor0
----
-3198
-3198
-3198
query I rowsort
SELECT - - cor0.col2 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT ALL + col2 + col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-220
SELECT ALL + col2 + col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
57
72
97
query I rowsort
SELECT DISTINCT + col1 + - col2 * col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT - col0 + - cor0.col2 * col0 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + col2 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 + col0 col1 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT col2 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL cor0.col0 * cor0.col0 + col0 * - col2 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT + cor0.col0 + + col1 * + cor0.col0 * + col1 FROM tab0 cor0
----
177528
329350
737098
query I rowsort
SELECT ALL - col1 + + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col0 + - col1 ) AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * tab1.col1 col2 FROM tab1
----
100
169
676
query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + - col1 + col2 + col2 AS col1 FROM tab2 AS cor0
----
-7
23
59
query I rowsort
SELECT ALL - col1 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - - col0 + col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL col0 * + col2 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT 75 * - tab0.col2 - + col1 * col1 AS col2 FROM tab0
----
-14431
-9484
-9871
query I rowsort
SELECT ALL + ( - tab1.col0 ) * - col1 - col1 * col1 FROM tab1
----
-598
540
871
query I rowsort
SELECT + col1 + col0 * + tab2.col0 FROM tab2
----
6143
6258
80
query I rowsort
SELECT ALL - col1 + col1 * col1 FROM tab2
----
272
3422
930
query I rowsort
SELECT ALL + col0 * + col1 + + col2 FROM tab0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-241
SELECT ALL col1 + - tab0.col2 DIV col0 AS col1 FROM tab0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-241
SELECT ALL col1 + - tab0.col2 / col0 AS col1 FROM tab0
----
85
91
97
query I rowsort
SELECT - col2 * col0 - + col2 AS col0 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - col2 * col2 + col2 * col0 AS col2 FROM tab1 cor0
----
-1536
-2754
399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT + col1 * - tab2.col0 + col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT ALL - 39 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
query I rowsort
SELECT ALL + col1 * ( 98 ) AS col0 FROM tab1 AS cor0
----
1274
2548
980
query I rowsort
SELECT DISTINCT 0 * + col1 AS col2 FROM tab1
----
0
query I rowsort
SELECT - tab2.col1 + + 73 FROM tab2, tab2 AS cor0
----
9 values hashing to eb80f196b63711f176cbdc1cd9762b78
onlyif mysql # use DIV operator for integer division
query I rowsort label-251
SELECT ALL col2 + - col0 * + col1 * - tab1.col1 + + tab1.col2 DIV + 29 FROM tab1
----
13619
2083
6458
skipif mysql # not compatible
query I rowsort label-251
SELECT ALL col2 + - col0 * + col1 * - tab1.col1 + + tab1.col2 / + 29 FROM tab1
----
13619
2083
6458
query I rowsort
SELECT + col1 + ( col2 ) * col0 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT col0 * col0 + col1 AS col2 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT - 84 + col1 AS col2 FROM tab0
----
13
2
7
query I rowsort
SELECT ( - col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT ( col2 ) * + col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ( - 1 ) + - col2 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT + col2 * 89 * + col2 + 52 * - col2 FROM tab0
----
37
594172
95205
query I rowsort
SELECT + 3 * + col1 FROM tab0 AS cor0
----
258
273
291
query I rowsort
SELECT ALL + 83 AS col0 FROM tab1 cor0
----
83
83
83
query I rowsort
SELECT + + 52 * - col1 * - col2 FROM tab1 AS cor0
----
29640
64896
73008
query I rowsort
SELECT + col1 * cor0.col2 * - ( 32 ) AS col0 FROM tab0 AS cor0
----
-238784
-3104
-90816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-263
SELECT + 85 * col1 * CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-263
SELECT + 85 * col1 * CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + 35 col2 FROM tab2, tab1 cor0
----
9 values hashing to 6bfaa8b4bded141a2af24e80450e64a5
query I rowsort
SELECT 38 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT ALL 4 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT - ( + col2 ) * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - 61 AS col0 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT cor0.col0 + 82 FROM tab1 AS cor0
----
146
162
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 41 col2 FROM tab0 AS cor0
----
-3526
-3731
-3977
query I rowsort
SELECT col1 * + ( col0 ) AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + col1 * 36 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT - - col1 + cor0.col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 18 AS col1 FROM tab2 cor0
----
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-275
SELECT + CAST( NULL AS DECIMAL ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-275
SELECT + CAST ( NULL AS REAL ) * + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 10 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1333
-207
-4592
query I rowsort
SELECT 41 + + col2 AS col2 FROM tab1 AS cor0
----
137
95
98
query I rowsort
SELECT col0 + + 76 FROM tab1 AS cor0
----
140
156
79
query I rowsort
SELECT - - col0 * + col1 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT - + col2 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-281
SELECT - col1 * ( col2 ) - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-281
SELECT - col1 * ( col2 ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + col0 * + ( col0 ) FROM tab0 AS cor0
----
1224
543
7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 * + ( cor0.col0 ) col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 + + 96 col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to fcecc8d0e43be26e5b598e96ad2cc316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 62 col2 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT ALL + ( + col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-287
SELECT ALL ( 87 ) DIV col0 + ( + 83 ) * col2 - + ( col0 + + col2 * cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1020
209
4346
skipif mysql # not compatible
query I rowsort label-287
SELECT ALL ( 87 ) / col0 + ( + 83 ) * col2 - + ( col0 + + col2 * cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1020
209
4346
query I rowsort
SELECT + 35 + + 47 * - col0 AS col0 FROM tab0 AS cor0
----
-1093
-1610
-4148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 + col0 col2 FROM tab1 AS cor0
----
121
137
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-290
SELECT ALL - CAST( NULL AS DECIMAL ) + 58 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-290
SELECT ALL - CAST ( NULL AS REAL ) + 58 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * 34 * - 31 FROM tab0
----
-1054
-34782
-86428
query I rowsort
SELECT - col2 - - 69 FROM tab2
----
31
42
43
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 cor2
----
24
35
89
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab0 cor2
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-295
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-295
SELECT - CAST ( NULL AS REAL ) * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + 79 * - col0 * col0 AS col1 FROM tab2 AS cor0
----
-3840
-480577
-493022
query I rowsort
SELECT ALL + + ( - cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL 30 * + col0 - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
399
4368
5372
query I rowsort
SELECT DISTINCT - ( + col0 ) + cor0.col1 * + 93 AS col1 FROM tab1 AS cor0
----
1129
2415
866
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 col1 FROM tab0 AS cor0
----
-96
-96
-96
query I rowsort
SELECT + col2 * + col0 + - col0 AS col0 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT + cor0.col0 + - col1 + + 28 * - col2 FROM tab1 AS cor0
----
-1535
-1542
-2621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) - - 60 * + ( - col2 ) col1 FROM tab1
----
-3266
-3430
-5773
query I rowsort
SELECT + - col2 + + 62 AS col2 FROM tab0 AS cor0
----
-20
29
61
query I rowsort
SELECT ALL + tab1.col2 + + col1 * 91 FROM tab1
----
1279
2420
967
query I rowsort
SELECT - col2 * - 84 AS col1 FROM tab1
----
4536
4788
8064
query I rowsort
SELECT - col1 * - col2 + col2 AS col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - col1 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 + ( + col0 ) FROM tab2
----
14
156
158
query I rowsort
SELECT col0 * col2 + 55 * col2 + + col1 FROM tab2 AS cor0
----
1705
3517
5109
query I rowsort
SELECT ALL cor0.col1 + col2 + col0 AS col0 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-312
SELECT + col1 - CAST( 55 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-24
-38
4
skipif mysql # not compatible
query I rowsort label-312
SELECT + col1 - CAST ( 55 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-24
-38
4
query I rowsort
SELECT ALL + col1 * + 9 * - 35 + - col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-27099
-28658
-30521
query I rowsort
SELECT DISTINCT col1 * col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col2 * + 38 + col0 + + col2 FROM tab1 AS cor0
----
2109
2287
3824
query I rowsort
SELECT + col1 + - col2 + + col2 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-317
SELECT ALL + col1 + col0 * - col0 + + col0 DIV 31 AS col1 FROM tab0 AS cor0
----
-1127
-490
-7828
skipif mysql # not compatible
query I rowsort label-317
SELECT ALL + col1 + col0 * - col0 + + col0 / 31 AS col1 FROM tab0 AS cor0
----
-1127
-490
-7828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - cor0.col1 + col1 * + cor0.col2 * col1 FROM tab1 AS cor0
----
16211
36478
5690
query I rowsort
SELECT DISTINCT - 10 + + 25 * - col1 FROM tab2 AS cor0
----
-1485
-435
-785
query I rowsort
SELECT 71 + 98 AS col0 FROM tab1 AS cor0
----
169
169
169
query I rowsort
SELECT - + col1 + 38 FROM tab1 AS cor0
----
12
25
28
query I rowsort
SELECT DISTINCT col0 * 64 AS col1 FROM tab0 AS cor0
----
1536
2240
5696
onlyif mysql # use DIV operator for integer division
query I rowsort label-324
SELECT + 5 + col2 DIV - col1 + - 5 DIV + col1 AS col0 FROM tab0 AS cor0
----
5
5
5
skipif mysql # not compatible
query I rowsort label-324
SELECT + 5 + col2 / - col1 + - 5 / + col1 AS col0 FROM tab0 AS cor0
----
5
5
5
query I rowsort
SELECT DISTINCT - 81 * col2 + col2 FROM tab2 AS cor0
----
-2080
-2160
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-326
SELECT ALL + col2 DIV + 74 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-326
SELECT ALL + col2 / + 74 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT + col2 + - 82 * col0 FROM tab0
----
-1935
-2869
-7216
query I rowsort
SELECT ALL - - col2 * - cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT cor0.col1 * - 75 * - 62 AS col1 FROM tab2, tab1 AS cor0
----
120900
46500
60450
query I rowsort
SELECT 41 * 3 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 8b257741ae85b3094e99cd0033791abd
query I rowsort
SELECT cor0.col1 + + 45 FROM tab0, tab1 AS cor0
----
9 values hashing to c646207615c2745ffbc171cd4ca4c906
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-332
SELECT DISTINCT cor0.col0 * - col0 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-106097
-1519
-358956
skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT cor0.col0 * - col0 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL col2 * + cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + cor0.col2 * - 32 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e9bd98bd0b109bb81e666f77d070e90f
query I rowsort
SELECT ALL - + col0 * - col2 + ( col2 + col1 ) FROM tab0 AS cor0
----
133
7471
911
query I rowsort
SELECT DISTINCT col1 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - col2 * 19 AS col1 FROM tab2 cor0
----
-494
-513
-722
query I rowsort
SELECT - tab2.col1 * col0 * col1 + - col0 FROM tab2
----
-22910
-271596
-6734
query I rowsort
SELECT DISTINCT 49 - - tab1.col0 AS col2 FROM tab1
----
113
129
52
query I rowsort
SELECT col0 * cor0.col0 + 4 AS col2 FROM tab2 AS cor0
----
53
6088
6245
query I rowsort
SELECT ALL col1 + ( + col2 ) AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col0 + col0 + col0 FROM tab1 cor0
----
192
240
9
query I rowsort
SELECT + + col2 * + col0 * - col1 - + col2 AS col1 FROM tab2 AS cor0
----
-119678
-51072
-5886
query I rowsort
SELECT ALL col2 * - col1 * col0 - col0 AS col0 FROM tab1
----
-36544
-4215
-99920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( col1 ) col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-346
SELECT 15 DIV - 13 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-346
SELECT 15 / - 13 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-347
SELECT - 49 DIV ( - col0 * col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-347
SELECT - 49 / ( - col0 * col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + + 4 * - 15 FROM tab0 AS cor0
----
-60
-60
-60
query I rowsort
SELECT + + 48 + cor0.col2 FROM tab2 AS cor0
----
74
75
86
query I rowsort
SELECT 3 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 3e22859a313d85a6146c6df5f23d77cf
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-351
SELECT DISTINCT col2 - - CAST( ( - col2 ) AS SIGNED ) * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT col2 - - CAST ( ( - col2 ) AS INTEGER ) * col2 AS col0 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + 67 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL col1 * + col1 + - 79 AS col1 FROM tab0 AS cor0
----
7317
8202
9330
query I rowsort
SELECT cor0.col2 * - 67 + col2 AS col1 FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT tab2.col1 + - col0 * + 77 AS col2 FROM tab2
----
-508
-5947
-6066
query I rowsort
SELECT - + ( 55 ) AS col1 FROM tab2 cor0
----
-55
-55
-55
query I rowsort
SELECT ALL + 63 AS col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT - + 45 + + 42 * col0 * cor0.col0 AS col0 FROM tab0 cor0
----
24147
332637
51405
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-359
SELECT DISTINCT + 96 + cor0.col1 * col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT + 96 + cor0.col1 * col1 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-360
SELECT ALL + - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-360
SELECT ALL + - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( + 96 ) FROM tab2 AS cor0
----
96
query I rowsort
SELECT + 62 FROM tab1, tab0 cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT ALL 51 * + ( + col0 ) * 23 AS col2 FROM tab0
----
104397
28152
41055
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 * 18 + col1 * + 59 col1 FROM tab2 AS cor0
----
2767
3593
5245
query I rowsort
SELECT - - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT 92 + - col1 * col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-10890
-25855
-90414
query I rowsort
SELECT 95 - ( - col1 * 96 ) FROM tab0
----
8351
8831
9407
query I rowsort
SELECT ALL + 16 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
query I rowsort
SELECT - 1 * col0 AS col2 FROM tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-370
SELECT col2 DIV - tab2.col0 AS col2 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-370
SELECT col2 / - tab2.col0 AS col2 FROM tab2
----
-3
0
0
query I rowsort
SELECT col1 + + ( - 23 + + cor0.col2 ) * 5 * + col2 AS col1 FROM tab2 AS cor0
----
2867
449
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT 60 DIV + col1 AS col0 FROM tab1
----
2
4
6
skipif mysql # not compatible
query I rowsort label-372
SELECT 60 / + col1 AS col0 FROM tab1
----
2
4
6
query I rowsort
SELECT - col0 + + ( + col0 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * 79 + 69 FROM tab1
----
-168
-4987
-6251
query I rowsort
SELECT + col0 * col0 + - 13 AS col0 FROM tab1 AS cor0
----
-4
4083
6387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-376
SELECT DISTINCT + col2 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT + col2 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col2 * - ( - col1 ) * col1 - col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-25440
-39420
-8949
query I rowsort
SELECT 11 * col2 + + col2 AS col0 FROM tab1
----
1152
648
684
query I rowsort
SELECT DISTINCT 12 * col2 AS col1 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT + 95 * tab0.col1 FROM tab0
----
8170
8645
9215
query I rowsort
SELECT DISTINCT - 7 + col1 * col2 AS col2 FROM tab2
----
1527
639
830
query I rowsort
SELECT ALL - 47 + col1 FROM tab2 AS cor0
----
-16
-30
12
query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + ( col0 ) + 33 * - cor0.col0 + - col1 FROM tab0 cor0
----
-1217
-2939
-854
query I rowsort
SELECT + col2 * col2 + + 30 * + col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
17286
3858
7197
query I rowsort
SELECT - col0 * col1 + - 42 AS col0 FROM tab0 AS cor0
----
-2106
-3437
-8141
query I rowsort
SELECT DISTINCT col0 + + cor0.col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT + col2 * + col0 + - ( - cor0.col0 ) * + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
396
44608
90880
query I rowsort
SELECT - - col0 * - cor0.col0 * + 36 + cor0.col2 FROM tab2 AS cor0
----
-1737
-218998
-224638
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 86 col1 FROM tab2 AS cor0
----
1462
2666
5074
onlyif mysql # use DIV operator for integer division
query I rowsort label-391
SELECT ALL - col1 + - col2 DIV col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-391
SELECT ALL - col1 + - col2 / col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col1 * - CAST ( col0 AS REAL ) + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL cor0.col2 + col2 * 83 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT - col2 + + cor0.col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT - + col1 + col2 * col2 FROM tab1 AS cor0
----
2890
3239
9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 63 col0 FROM tab0 AS cor0
----
-26
28
39
query I rowsort
SELECT - 44 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 38f05fdaaf15e64b62f27cd96f73fb79
onlyif mysql # use DIV operator for integer division
query I rowsort label-398
SELECT DISTINCT - col2 + - col1 DIV + col2 + + col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT - col2 + - col1 / + col2 + + col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT ALL col0 * - col2 + 52 AS col0 FROM tab0
----
-7246
-740
17
query I rowsort
SELECT DISTINCT + 59 + - col1 AS col1 FROM tab1
----
33
46
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col0 * col1 + col2 col2 FROM tab1
----
1056
129
633
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * col1 * + 52 AS col1 FROM tab0 cor0
----
147600
388113
5079
query I rowsort
SELECT ALL 64 * col2 AS col0 FROM tab0 AS cor0
----
2112
5248
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-404
SELECT - + 30 * - cor0.col1 / - cor0.col1 - CAST( NULL AS SIGNED ) * - col0 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-404
SELECT - + 30 * - cor0.col1 / - cor0.col1 - CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 93 * + col1 - col1 AS col0 FROM tab0 AS cor0
----
7912
8372
8924
query I rowsort
SELECT DISTINCT - - 60 * 82 + + col2 AS col1 FROM tab2 AS cor0
----
4946
4947
4958
query I rowsort
SELECT DISTINCT - + col2 + 73 FROM tab2 AS cor0
----
35
46
47
query I rowsort
SELECT - col1 * ( col2 ) - ( col1 ) FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT + cor0.col0 - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-410
SELECT DISTINCT + ( col1 ) + + col2 * - CAST( 72 AS SIGNED ) FROM tab0 AS cor0
----
-2290
-5813
25
skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT + ( col1 ) + + col2 * - CAST ( 72 AS INTEGER ) FROM tab0 AS cor0
----
-2290
-5813
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - ( + col1 ) ) * - 81 col2 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT + + ( col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 - - 19 FROM tab1 AS cor0
----
22
83
99
query I rowsort
SELECT DISTINCT - col1 + 56 + + col1 AS col2 FROM tab2 AS cor0
----
56
query I rowsort
SELECT + col2 - 71 AS col2 FROM tab0
----
-38
-70
11
query I rowsort
SELECT ALL + - col2 * 40 AS col2 FROM tab1 cor0
----
-2160
-2280
-3840
query I rowsort
SELECT ALL col2 * + ( col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - ( - col1 ) - - tab2.col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + 80 FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT DISTINCT ( col2 * tab0.col1 ) - 20 * 80 FROM tab0
----
-1503
1238
5862
query I rowsort
SELECT + cor0.col1 * + col1 AS col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ( - col1 ) + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT col0 - col0 * tab0.col0 AS col1 FROM tab0
----
-1190
-552
-7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT + 65 DIV col0 FROM tab2
----
0
0
9
skipif mysql # not compatible
query I rowsort label-425
SELECT + 65 / col0 FROM tab2
----
0
0
9
query I rowsort
SELECT - + 79 - col1 * - ( col2 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
10903
25868
90427
query I rowsort
SELECT ALL 64 * + 14 * col1 AS col0 FROM tab1
----
11648
23296
8960
query I rowsort
SELECT ALL + 10 AS col0 FROM tab0, tab1, tab1 AS cor0, tab2
----
81 values hashing to bf75e71325a06683558cf93fd725ad16
query I rowsort
SELECT DISTINCT + col2 * + 54 FROM tab0
----
1782
4428
54
query I rowsort
SELECT ( - 38 ) FROM tab2
----
-38
-38
-38
query I rowsort
SELECT + ( + col2 ) + col2 AS col0 FROM tab0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-432
SELECT CAST( + ( + col0 ) AS SIGNED ) + + ( 6 ) * col1 + - col2 FROM tab2
----
143
166
406
skipif mysql # not compatible
query I rowsort label-432
SELECT CAST ( + ( + col0 ) AS INTEGER ) + + ( 6 ) * col1 + - col2 FROM tab2
----
143
166
406
query I rowsort
SELECT + + 95 - ( - cor0.col0 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fc8c20ce208c5367480b470f0e20e6d0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-434
SELECT + CAST( NULL AS SIGNED ) + 49 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-434
SELECT + CAST ( NULL AS INTEGER ) + 49 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - 40 * - 44 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61e40b96c0f4bb9a5ca9ab3e803966ee
query I rowsort
SELECT DISTINCT - col1 * + col2 + + 77 FROM tab2 AS cor0
----
-1457
-569
-760
query I rowsort
SELECT DISTINCT - 15 + col2 FROM tab2 AS cor0
----
11
12
23
query I rowsort
SELECT ALL + - cor0.col0 - - col2 * ( + col1 ) FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + cor0.col0 * col2 * + ( col1 ) + col2 FROM tab2 cor0
----
119678
51072
5886
query I rowsort
SELECT ALL - - cor0.col2 + col2 * col2 - col0 FROM tab2 AS cor0
----
1403
624
749
query I rowsort
SELECT - 4 + + col2 * ( col1 + col0 ) * col0 FROM tab2 cor0
----
277832
288188
7178
query I rowsort
SELECT - + 59 - - col0 FROM tab1 AS cor0
----
-56
21
5
query I rowsort
SELECT + col2 * + col1 + - col0 * 62 AS col2 FROM tab2 cor0
----
-3302
-4252
403
query I rowsort
SELECT ALL + tab2.col2 * 8 AS col0 FROM tab2
----
208
216
304
query I rowsort
SELECT - - 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT DISTINCT - cor0.col2 DIV 60 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - cor0.col2 / 60 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL + col0 * - 12 * col1 FROM tab1 AS cor0
----
-12480
-7680
-936
query I rowsort
SELECT ALL - col1 + - 49 * - 16 FROM tab2 AS cor0
----
725
753
767
query I rowsort
SELECT + cor0.col0 + 71 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
-2319
-36
-5733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-450
SELECT + + col2 * - CAST( NULL AS SIGNED ) * - 34 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-450
SELECT + + col2 * - CAST ( NULL AS INTEGER ) * - 34 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + ( - 65 ) AS col1 FROM tab0 AS cor0
----
-1560
-2275
-5785
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 51 col1 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT + + col2 * 87 FROM tab1 AS cor0
----
4698
4959
8352
query I rowsort
SELECT DISTINCT + 81 FROM tab2 cor0
----
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col1 + + cor0.col2 col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - + 97 AS col1 FROM tab1 AS cor0
----
-97
query I rowsort
SELECT ALL + col2 + cor0.col0 * + col2 AS col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT + 50 * - 83 * col0 FROM tab1 AS cor0
----
-12450
-265600
-332000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 * col0 * col2 col2 FROM tab1 AS cor0
----
156864
330240
6966
onlyif mysql # use DIV operator for integer division
query I rowsort label-460
SELECT DISTINCT + - ( cor0.col1 ) DIV + CAST( 25 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT + - ( cor0.col1 ) / + CAST ( 25 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT 11 * col0 + col2 + + 32 * cor0.col1 FROM tab2 AS cor0
----
1096
1451
2772
query I rowsort
SELECT ALL - col0 + + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT + col2 * + col2 + 61 FROM tab1 AS cor0
----
2977
3310
9277
query I rowsort
SELECT - col0 + - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-465
SELECT - + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-465
SELECT - + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + tab0.col0 * col1 + ( col2 ) ) AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-468
SELECT ALL CAST( - col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-468
SELECT ALL CAST ( - col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - cor0.col0 * + 63 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT - col2 + - col2 + + col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 60 * + tab0.col0 FROM tab0
----
-1440
-2100
-5340
query I rowsort
SELECT ( + col1 ) + + col1 * cor0.col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + cor0.col0 * - ( col1 ) + - 41 + col2 AS col2 FROM tab0 cor0
----
-2072
-3435
-8058
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 16 + - cor0.col2 + - col0 col1 FROM tab1 AS cor0
----
-105
-1145
-1456
query I rowsort
SELECT DISTINCT - 51 * col0 AS col1 FROM tab0 AS cor0
----
-1224
-1785
-4539
onlyif mysql # use DIV operator for integer division
query I rowsort label-476
SELECT ALL - 50 DIV + 62 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - 50 / + 62 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 + col2 * ( col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT - col2 * - col0 + + cor0.col2 DIV ( + col0 ) + 95 FROM tab2 cor0
----
2123
287
3097
skipif mysql # not compatible
query I rowsort label-478
SELECT - col2 * - col0 + + cor0.col2 / ( + col0 ) + 95 FROM tab2 cor0
----
2123
287
3097
query I rowsort
SELECT col2 * cor0.col0 + + 86 + col1 FROM tab1 AS cor0
----
274
3744
7779
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-480
SELECT ALL - CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-480
SELECT ALL - CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT tab2.col2 * - tab2.col1 + + col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT 79 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL + col2 + tab2.col2 + col2 * - col1 AS col1 FROM tab2
----
-1482
-570
-783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-484
SELECT DISTINCT + col0 * 29 + + col1 * CAST( NULL AS SIGNED ) + + tab1.col0 / - col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-484
SELECT DISTINCT + col0 * 29 + + col1 * CAST ( NULL AS INTEGER ) + + tab1.col0 / - col0 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col0 FROM tab2, tab0 AS cor0
----
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-486
SELECT - + col2 * col2 + col1 * col0 DIV col0 FROM tab2 cor0
----
-1427
-617
-698
skipif mysql # not compatible
query I rowsort label-486
SELECT - + col2 * col2 + col1 * col0 / col0 FROM tab2 cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-487
SELECT ALL + col2 * - col0 - + col2 DIV col0 AS col1 FROM tab0 cor0
----
-35
-7298
-793
skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + col2 * - col0 - + col2 / col0 AS col1 FROM tab0 cor0
----
-35
-7298
-793
query I rowsort
SELECT - 66 * - col2 - col0 AS col0 FROM tab2 AS cor0
----
1638
1775
2429
query I rowsort
SELECT DISTINCT col0 * col0 + - 15 AS col0 FROM tab1 AS cor0
----
-6
4081
6385
query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + 56 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 + + col0 ) * + col0 col0 FROM tab1
----
14080
171
7744
query I rowsort
SELECT ALL - col0 * + col0 + ( col0 ) AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-494
SELECT ALL + + col2 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-494
SELECT ALL + + col2 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col1 * - 26 FROM tab2 AS cor0
----
1534
442
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT - cor0.col0 + + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-496
SELECT - cor0.col0 + + col2 / - col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - 47 - col0 AS col1 FROM tab2
----
-125
-126
-54
query I rowsort
SELECT ALL col2 * - col2 - col2 AS col1 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT ALL + ( col2 ) * - 52 - - ( col2 ) FROM tab1
----
-2754
-2907
-4896
query I rowsort
SELECT tab2.col0 AS col0 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - 6 col0 FROM tab2 AS cor0
----
65
65
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-503
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT + - CAST ( NULL AS REAL ) + - cor0.col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 col2 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT + - cor0.col1 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT 91 * - col1 + col1 * col1 AS col0 FROM tab1 AS cor0
----
-1014
-1690
-810
query I rowsort
SELECT ALL - col0 * - 62 FROM tab1
----
186
3968
4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-509
SELECT - 52 DIV ( col0 ) FROM tab2
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-509
SELECT - 52 / ( col0 ) FROM tab2
----
-7
0
0
query I rowsort
SELECT + + ( + 55 ) FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT col2 + - 96 AS col0 FROM tab2 AS cor0
----
-58
-69
-70
query I rowsort
SELECT 82 * + col1 FROM tab0 cor0
----
7052
7462
7954
query I rowsort
SELECT col1 - col0 * 65 AS col0 FROM tab2
----
-424
-5011
-5118
query I rowsort
SELECT - col2 * 53 FROM tab1
----
-2862
-3021
-5088
query I rowsort
SELECT ALL col1 - 55 * 95 * col1 FROM tab0
----
-449264
-475384
-506728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-516
SELECT ALL + cor0.col1 * ( - cor0.col2 * col2 + + CAST( NULL AS SIGNED ) * col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-516
SELECT ALL + cor0.col1 * ( - cor0.col2 * col2 + + CAST ( NULL AS INTEGER ) * col2 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - 87 FROM tab0 AS cor0
----
-52
-63
2
query I rowsort
SELECT ALL col2 + + tab1.col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT - col1 * 0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL + + 45 AS col2 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT ALL - + 5 AS col0 FROM tab1 cor0
----
-5
-5
-5
query I rowsort
SELECT ALL + 48 * col0 * - col1 FROM tab0 AS cor0
----
-162960
-388752
-99072
query I rowsort
SELECT col2 * col0 + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT + - 33 * col1 + - col2 AS col0 FROM tab0 cor0
----
-2871
-3085
-3202
query I rowsort
SELECT + ( + 7 ) * + cor0.col0 + - col1 + + col2 FROM tab2 AS cor0
----
45
513
574
query I rowsort
SELECT ( + cor0.col2 ) + + col1 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-180
-40903
-83104
query I rowsort
SELECT ALL col2 + - cor0.col1 * col2 * + 83 AS col1 FROM tab1 AS cor0
----
-103488
-116478
-47253
query I rowsort
SELECT ( col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col0 + col0 + col2 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT DISTINCT - 13 * + col2 FROM tab1 AS cor0
----
-1248
-702
-741
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col2 AS REAL ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + ( 18 ) * col0 AS col0 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT ALL - ( 41 ) FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT DISTINCT + + ( + col2 ) * - col2 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT DISTINCT - 79 * - col1 AS col1 FROM tab1 cor0
----
1027
2054
790
query I rowsort
SELECT DISTINCT - 81 * - col2 FROM tab2 AS cor0
----
2106
2187
3078
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-537
SELECT + CAST( - col2 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-537
SELECT + CAST ( - col2 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 62 * cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-39680
-4836
-64480
query I rowsort
SELECT - + cor0.col0 + + col2 * 99 * col1 FROM tab2 AS cor0
----
151788
63875
82856
query I rowsort
SELECT DISTINCT + col2 * - cor0.col1 + 95 FROM tab0 cor0
----
-2
-2743
-7367
query I rowsort
SELECT + - 72 * col1 + col2 FROM tab2 cor0
----
-1186
-2205
-4222
query I rowsort
SELECT - + ( - col0 ) + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL 12 + col1 FROM tab0 AS cor0
----
103
109
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 + + 17 * 77 col1 FROM tab2 AS cor0
----
1343
1413
1426
query I rowsort
SELECT cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - - col2 - - ( - col0 ) AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT col2 + - ( col0 ) * col0 AS col2 FROM tab0 cor0
----
-1224
-543
-7839
query I rowsort
SELECT - - col1 + + ( + col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL col2 * + col0 + + col0 * col2 AS col1 FROM tab0 cor0
----
14596
1584
70
query I rowsort
SELECT DISTINCT col1 * + col2 + col2 * - col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - - col0 - 86 FROM tab2 AS cor0
----
-7
-79
-8
query I rowsort
SELECT ALL + - col1 * - ( col2 * - col1 ) AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT DISTINCT - + col1 DIV col1 + 38 FROM tab1 AS cor0
----
37
skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT - + col1 / col1 + 38 FROM tab1 AS cor0
----
37
query I rowsort
SELECT DISTINCT - col2 * - col2 - 8 FROM tab0 cor0
----
-7
1081
6716
query I rowsort
SELECT ALL - + cor0.col1 - 45 * + cor0.col2 FROM tab2 AS cor0
----
-1229
-1246
-1727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-557
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-557
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-558
SELECT ALL CAST( NULL AS DECIMAL ) col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-558
SELECT ALL CAST ( NULL AS REAL ) col2 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-559
SELECT + tab1.col2 + - tab1.col2 * CAST( col0 AS SIGNED ) FROM tab1
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort label-559
SELECT + tab1.col2 + - tab1.col2 * CAST ( col0 AS INTEGER ) FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT + col2 + tab1.col2 * col0 - col1 FROM tab1
----
190
3695
7763
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 71d467ba3372dfdd21847af1687c92e7
query I rowsort
SELECT - cor2.col0 * + cor1.col2 + - 37 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
243 values hashing to aed2496af6f7034304802924d7140644
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-563
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-563
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - - col1 * col0 + - col2 * col2 * + col2 FROM tab2 AS cor0
----
-12974
-19466
-53529
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - - col0 col0 FROM tab0 cor0
----
0
query I rowsort
SELECT col2 * - 38 * col1 + - col2 * 58 * - col2 FROM tab0
----
-3628
-44682
106436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col2 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + ( + col2 ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-569
SELECT - col0 + + col1 DIV + 25 FROM tab0
----
-21
-32
-86
skipif mysql # not compatible
query I rowsort label-569
SELECT - col0 + + col1 / + 25 FROM tab0
----
-21
-32
-86
query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL + 42 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
onlyif mysql # use DIV operator for integer division
query I rowsort label-572
SELECT DISTINCT - - col2 DIV col1 + - col2 - - col2 AS col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-572
SELECT DISTINCT - - col2 / col1 + - col2 - - col2 AS col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT DISTINCT - col2 + - col0 * col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT 76 + col0 FROM tab1 AS cor0
----
140
156
79
query I rowsort
SELECT ALL cor0.col0 * col1 * col0 - 96 * + col0 * - col1 AS col0 FROM tab0 AS cor0
----
1498315
247680
444745
query I rowsort
SELECT DISTINCT + 96 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
96
query I rowsort
SELECT ( + col1 ) * cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT + ( + 68 ) DIV - col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-578
SELECT + ( + 68 ) / - col0 FROM tab0
----
-1
-2
0
query I rowsort
SELECT col1 - + col0 * col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-580
SELECT DISTINCT tab1.col0 * CAST( NULL AS SIGNED ) * + tab1.col2 FROM tab1, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-580
SELECT DISTINCT tab1.col0 * CAST ( NULL AS INTEGER ) * + tab1.col2 FROM tab1, tab2 AS cor0
----
NULL
query I rowsort
SELECT 69 * + col1 FROM tab1 cor0
----
1794
690
897
query I rowsort
SELECT - ( + col1 ) * 20 + + col1 FROM tab1 AS cor0
----
-190
-247
-494
query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
73
query I rowsort
SELECT + 87 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 969f31ae779866644763e8a07f1ec501
query I rowsort
SELECT + + col1 * - ( - cor0.col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL - cor0.col2 + + 67 FROM tab1 AS cor0
----
-29
10
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-587
SELECT col2 DIV + 43 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-587
SELECT col2 / + 43 AS col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT - tab2.col1 DIV + 67 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-588
SELECT - tab2.col1 / + 67 FROM tab2
----
0
0
0
query I rowsort
SELECT - col0 * + 65 + - col1 * col1 AS col2 FROM tab2 AS cor0
----
-1416
-5424
-8551
query I rowsort
SELECT - 15 - col0 FROM tab0 AS cor0
----
-104
-39
-50
query I rowsort
SELECT ALL col1 * - 64 * col0 FROM tab0
----
-132096
-217280
-518336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 89 col2 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT - cor0.col2 * cor0.col0 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
query I rowsort
SELECT - col0 + col2 * + col2 AS col1 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT + + cor0.col0 * - col0 * - col1 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-597
SELECT + + 91 DIV - col0 + 71 * col1 col1 FROM tab2 AS cor0
----
1206
2188
4188
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-597
SELECT + + 91 / - col0 + 71 * col1 col1 FROM tab2 AS cor0
----
1206
2188
4188
query I rowsort
SELECT DISTINCT + 59 + col2 AS col2 FROM tab0 cor0
----
141
60
92
query I rowsort
SELECT + col2 * + cor0.col1 + - col2 * + col2 FROM tab2 cor0
----
-798
108
858
query I rowsort
SELECT - ( col2 ) * ( 70 ) FROM tab2 AS cor0
----
-1820
-1890
-2660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 41 * + col2 col2 FROM tab1 AS cor0
----
2214
2337
3936
query I rowsort
SELECT col0 + cor0.col2 * ( col1 * col2 ) FROM tab2 AS cor0
----
22606
24627
39962
query I rowsort
SELECT - - col0 * - col2 + - 62 * - col0 * col1 FROM tab0 AS cor0
----
127176
210455
494840
query I rowsort
SELECT ALL + col1 * - cor0.col0 + ( + 86 ) * - cor0.col2 FROM tab2 AS cor0
----
-2539
-4611
-6838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col2 col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-606
SELECT + col0 * + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-606
SELECT + col0 * + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 + ( - 91 ) FROM tab2 AS cor0
----
-32
-60
-74
query I rowsort
SELECT DISTINCT col0 * + 87 AS col0 FROM tab0 cor0
----
2088
3045
7743
query I rowsort
SELECT + 78 * - cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 417989dda1c8e28639bb31d9f39cc256
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-610
SELECT - cor0.col1 + + CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-610
SELECT - cor0.col1 + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + - col1 * - 94 FROM tab1 cor0
----
1235
2470
950
query I rowsort
SELECT - col0 + 67 AS col1 FROM tab0 AS cor0
----
-22
32
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-613
SELECT ALL CAST( NULL AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-613
SELECT ALL CAST ( NULL AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * - ( + col0 ) + - col1 * col0 * col1 + - 42 FROM tab0 AS cor0
----
-178122
-330582
-744972
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 + - 27 col0 FROM tab1 AS cor0
----
-60
-60
-60
query I rowsort
SELECT ALL - col0 * cor0.col0 * + col0 + 96 AS col2 FROM tab0 AS cor0
----
-13728
-42779
-704873
query I rowsort
SELECT ALL + ( 16 ) FROM tab0, tab0 cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT DISTINCT + col0 * - col0 * - col0 AS col2 FROM tab1
----
262144
27
512000
query I rowsort
SELECT + cor1.col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - - col2 * - cor0.col2 * + col2 FROM tab2 AS cor0
----
-17576
-19683
-54872
query I rowsort
SELECT ALL + col2 + - ( - col0 * cor0.col2 ) FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + - col0 + - col2 + 29 AS col0 FROM tab0 AS cor0
----
-142
-28
-7
query I rowsort
SELECT - cor0.col1 * 75 FROM tab2 AS cor0
----
-1275
-2325
-4425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-624
SELECT DISTINCT ( - col0 ) * CAST( col2 + col1 AS SIGNED ) FROM tab1
----
-240
-4288
-8720
skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT ( - col0 ) * CAST ( col2 + col1 AS INTEGER ) FROM tab1
----
-240
-4288
-8720
query I rowsort
SELECT ALL + col2 * - col1 * col0 + - col1 AS col0 FROM tab0
----
-3492
-664209
-68198
query I rowsort
SELECT ALL - col1 + + ( col0 * - col1 ) FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - col1 - - 33 FROM tab0
----
-53
-58
-64
query I rowsort
SELECT ALL col0 * 77 - tab1.col1 AS col0 FROM tab1
----
205
4918
6147
query I rowsort
SELECT DISTINCT + tab2.col1 - + 25 FROM tab2
----
-8
34
6
query I rowsort
SELECT DISTINCT col0 * - 43 AS col1 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT DISTINCT + col2 * 0 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-632
SELECT ALL col2 * + CAST( col1 * - col1 AS SIGNED ) FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort label-632
SELECT ALL col2 * + CAST ( col1 * - col1 AS INTEGER ) FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT cor0.col1 * + 43 * - col2 AS col2 FROM tab2 AS cor0
----
-27778
-35991
-65962
query I rowsort
SELECT tab2.col1 * 96 + col2 AS col1 FROM tab2
----
1670
3003
5690
query I rowsort
SELECT ALL + col1 + 11 AS col1 FROM tab2
----
28
42
70
query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab2, tab0 cor0
----
96
query I rowsort
SELECT ALL ( tab0.col0 ) + + cor0.col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 000003476840160ea4e33204b8667672
onlyif mysql # use DIV operator for integer division
query I rowsort label-638
SELECT ALL tab0.col2 + tab0.col2 DIV - col2 AS col0 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-638
SELECT ALL tab0.col2 + tab0.col2 / - col2 AS col0 FROM tab0
----
0
32
81
query I rowsort
SELECT - 13 * - col0 + + col2 + 19 FROM tab2 AS cor0
----
1059
1084
137
query I rowsort
SELECT DISTINCT 38 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1026
-1444
-988
query I rowsort
SELECT + cor0.col2 * 19 + col2 * - col1 FROM tab1 cor0
----
-378
513
576
query I rowsort
SELECT ALL 11 * tab0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c44b43a805a948be0e3edc787dc7b72e
query I rowsort
SELECT - 75 + col1 AS col2 FROM tab1
----
-49
-62
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + col1 col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT - 68 * - col1 FROM tab0 AS cor0
----
5848
6188
6596
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col0 * + 10 col0 FROM tab2 cor0
----
39
721
773
query I rowsort
SELECT ALL - 31 * - cor0.col1 - 54 * - col0 FROM tab0 cor0
----
3962
4897
7627
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 - - ( - 85 ) AS col2 FROM tab2 AS cor0
----
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-649
SELECT ALL + 53 DIV col0 + col2 * + col1 FROM tab1 AS cor0
----
1248
1421
570
skipif mysql # not compatible
query I rowsort label-649
SELECT ALL + 53 / col0 + col2 * + col1 FROM tab1 AS cor0
----
1248
1421
570
query I rowsort
SELECT DISTINCT - col0 * + col2 * - 85 - + col0 FROM tab0 AS cor0
----
2940
620241
67296
query I rowsort
SELECT DISTINCT - 80 + + cor0.col1 FROM tab0 AS cor0
----
11
17
6
query I rowsort
SELECT ALL - 64 * - col1 AS col0 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT DISTINCT - 65 + + col0 * - col1 * col1 FROM tab2 AS cor0
----
-22896
-271583
-6792
query I rowsort
SELECT DISTINCT 28 * + col0 FROM tab0 AS cor0
----
2492
672
980
onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT ALL - + col1 * - col1 + - cor0.col1 DIV + 15 FROM tab1 AS cor0
----
100
169
675
skipif mysql # not compatible
query I rowsort label-655
SELECT ALL - + col1 * - col1 + - cor0.col1 / + 15 FROM tab1 AS cor0
----
100
169
675
query I rowsort
SELECT ALL + 86 + col1 * + col2 * - col1 FROM tab0 cor0
----
-243982
-678956
-9323
query I rowsort
SELECT ALL + col0 * col1 + - 41 FROM tab1 AS cor0
----
37
599
999
query I rowsort
SELECT DISTINCT + - 63 + + col0 FROM tab2 AS cor0
----
-56
15
16
query I rowsort
SELECT DISTINCT ( + col0 ) + - 71 FROM tab2 AS cor0
----
-64
7
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * tab1.col1 col0 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT + 30 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
30
query I rowsort
SELECT ALL + 74 * - cor0.col1 * + col0 FROM tab1 AS cor0
----
-47360
-5772
-76960
query I rowsort
SELECT - 45 * - col2 + - 63 FROM tab2 AS cor0
----
1107
1152
1647
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-664
SELECT col1 + - CAST( 19 AS SIGNED ) col1 FROM tab2 AS cor0
----
-2
12
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-664
SELECT col1 + - CAST ( 19 AS INTEGER ) col1 FROM tab2 AS cor0
----
-2
12
40
query I rowsort
SELECT + col1 + ( - 27 ) AS col0 FROM tab1 AS cor0
----
-1
-14
-17
query I rowsort
SELECT + col0 * + 51 AS col0 FROM tab1 cor0
----
153
3264
4080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 * cor0.col2 col0 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT ALL + 62 * tab0.col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to ba2e23481bc67fe069e496f8a7842be3
query I rowsort
SELECT ALL + col1 + + col1 + col2 AS col2 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT DISTINCT - col0 + col2 + col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT DISTINCT + - col1 * - 76 FROM tab1 AS cor0
----
1976
760
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-672
SELECT + + CAST( col0 AS SIGNED ) DIV + col0 + 75 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
100
111
165
skipif mysql # not compatible
query I rowsort label-672
SELECT + + CAST ( col0 AS INTEGER ) / + col0 + 75 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT ALL + 5 * col1 FROM tab2 AS cor0
----
155
295
85
query I rowsort
SELECT 87 * + col1 FROM tab0
----
7482
7917
8439
query I rowsort
SELECT DISTINCT - - col2 * col0 + + col1 * cor0.col2 + 77 FROM tab0 AS cor0
----
14837
209
3707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 13 ) + - col1 col1 FROM tab2 AS cor0
----
-18
-4
-46
query I rowsort
SELECT DISTINCT + 63 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
1641
694
899
query I rowsort
SELECT 5 + + 73 * - col0 FROM tab0 cor0
----
-1747
-2550
-6492
query I rowsort
SELECT - tab0.col2 + 11 * - 27 - + col2 FROM tab0
----
-299
-363
-461
query I rowsort
SELECT + 3 + 0 + col0 FROM tab1 AS cor0
----
6
67
83
query I rowsort
SELECT - + col0 * col1 + cor0.col1 - col1 * - col2 FROM tab2 cor0
----
-3009
-680
651
query I rowsort
SELECT ALL col2 * cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + - ( ( cor0.col1 ) ) + - col1 + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - 94 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-685
SELECT + CAST( NULL AS SIGNED ) + ( - col1 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-685
SELECT + CAST ( NULL AS INTEGER ) + ( - col1 ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-686
SELECT + - 5 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-686
SELECT + - 5 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * col0 + col2 * + col2 + col2 FROM tab1 AS cor0
----
15712
2979
7402
query I rowsort
SELECT ALL - - 94 + 97 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 91850c2a027707aab8b9d50c0822f03d
query I rowsort
SELECT + + col0 + 22 AS col0 FROM tab1 AS cor0
----
102
25
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-690
SELECT col1 DIV 82 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-690
SELECT col1 / 82 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * - tab2.col1 * col2 AS col1 FROM tab2
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-692
SELECT + col1 DIV - col1 + cor0.col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-692
SELECT + col1 / - col1 + cor0.col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT col2 * - 44 FROM tab0 AS cor0
----
-1452
-3608
-44
query I rowsort
SELECT - 1 - col1 AS col1 FROM tab1 cor0
----
-11
-14
-27
query I rowsort
SELECT - col1 * + 93 + col1 * col2 + + cor0.col1 FROM tab0 AS cor0
----
-5074
-8827
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-696
SELECT ALL col2 DIV ( col2 ) FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-696
SELECT ALL col2 / ( col2 ) FROM tab1
----
1
1
1
query I rowsort
SELECT + ( col2 ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col2 * + col2 * - 54 AS col0 FROM tab0 AS cor0
----
363096
54
58806
query I rowsort
SELECT + + 87 AS col2 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT + 4 AS col2 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT ALL cor0.col2 + + 47 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8423aeb7e1be4f0dcbdd167132af4cbd
query I rowsort
SELECT ALL + col1 * - col1 + col2 * - col0 FROM tab2 AS cor0
----
-1150
-3291
-5509
query I rowsort
SELECT ( - col0 ) * + ( + col2 ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * ( col2 ) col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col0 * 41 + - col1 AS col2 FROM tab0 cor0
----
-1070
-1532
-3740
query I rowsort
SELECT + col0 * + col1 + + 29 * + col2 FROM tab2 AS cor0
----
1000
2445
5356
query I rowsort
SELECT + col2 - - 50 FROM tab2
----
76
77
88
query I rowsort
SELECT DISTINCT col1 + 84 FROM tab1 AS cor0
----
110
94
97
query I rowsort
SELECT ALL + 10 * - 2 AS col2 FROM tab0
----
-20
-20
-20
query I rowsort
SELECT + ( 5 ) AS col1 FROM tab2
----
5
5
5
query I rowsort
SELECT ALL 62 * 97 + + col0 + ( col0 ) AS col0 FROM tab1
----
6020
6142
6174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + - col2 + - 84 + - cor0.col1 FROM tab0 AS cor0
----
-182
-203
-257
query I rowsort
SELECT + 41 + + col2 * col0 + 33 FROM tab0 AS cor0
----
109
7372
866
query I rowsort
SELECT 6 * col2 + + col0 FROM tab1 AS cor0
----
327
406
656
onlyif mysql # use DIV operator for integer division
query I rowsort label-716
SELECT + ( + col2 ) * - 36 + 97 + col0 DIV + 3 FROM tab1 AS cor0
----
-1846
-1934
-3333
skipif mysql # not compatible
query I rowsort label-716
SELECT + ( + col2 ) * - 36 + 97 + col0 / + 3 FROM tab1 AS cor0
----
-1846
-1934
-3333
query I rowsort
SELECT DISTINCT - 36 + + tab2.col1 FROM tab2, tab0 AS cor0
----
-19
-5
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-718
SELECT ALL - - col1 DIV col1 col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-718
SELECT ALL - - col1 / col1 col0 FROM tab2 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 87 + col0 * - col2 col1 FROM tab0 AS cor0
----
-122
-7385
-879
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col0 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - ( - col2 ) * + col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - 47 - - col1 FROM tab0 AS cor0
----
39
44
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + 81 + + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-19
-595
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-725
SELECT ALL - ( col2 ) - col2 DIV col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-725
SELECT ALL - ( col2 ) - col2 / col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + - col1 + + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col0 + - ( - col0 ) FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) AS col2 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-729
SELECT 79 DIV tab0.col2 + + col0 * - col2 AS col1 FROM tab0
----
-7298
-790
44
skipif mysql # not compatible
query I rowsort label-729
SELECT 79 / tab0.col2 + + col0 * - col2 AS col1 FROM tab0
----
-7298
-790
44
query I rowsort
SELECT 30 + - col2 AS col2 FROM tab0
----
-3
-52
29
query I rowsort
SELECT ALL ( 0 ) FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * - col1 col2 FROM tab0
----
-7826
-8281
-8827
query I rowsort
SELECT DISTINCT + col1 * 87 AS col2 FROM tab2 cor0
----
1479
2697
5133
query I rowsort
SELECT 99 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT DISTINCT + col0 * + 76 + cor0.col0 AS col1 FROM tab0 AS cor0
----
1848
2695
6853
query I rowsort
SELECT ALL + col2 * - 51 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
-1248
-1370
-1859
query I rowsort
SELECT DISTINCT ( col1 ) - - 91 AS col0 FROM tab0
----
177
182
188
query I rowsort
SELECT - col0 + col0 + ( + col1 ) AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL col0 * + col1 - 41 FROM tab1
----
37
599
999
query I rowsort
SELECT + + 70 + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4f0561b6a3809ce19aa7925ed3fd26e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-741
SELECT DISTINCT col0 + CAST( col1 AS SIGNED ) * - col1 FROM tab1
----
-36
-673
-89
skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT col0 + CAST ( col1 AS INTEGER ) * - col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT ALL col0 + 63 + - 77 AS col0 FROM tab2 AS cor0
----
-7
64
65
query I rowsort
SELECT DISTINCT + - col0 + 38 FROM tab0 AS cor0
----
-51
14
3
query I rowsort
SELECT ALL + col1 - cor0.col2 * col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - - col0 * + col2 * - col2 + + cor0.col0 FROM tab2 AS cor0
----
-113997
-5096
-52650
query I rowsort
SELECT DISTINCT col1 * 1 + col0 * col2 * 22 + 25 AS col2 FROM tab2 AS cor0
----
4214
44700
66086
query I rowsort
SELECT ALL - col1 - + 13 FROM tab2 AS cor0
----
-30
-44
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-748
SELECT col1 + CAST( col1 + col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
177
51
93
skipif mysql # not compatible
query I rowsort label-748
SELECT col1 + CAST ( col1 + col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
177
51
93
query I rowsort
SELECT DISTINCT + cor0.col0 + 0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT 21 * 29 FROM tab0, tab2 AS cor0
----
9 values hashing to 8e42535306b49b56ab02d126708c9972
query I rowsort
SELECT col2 + col1 * + ( tab2.col2 ) + - 45 FROM tab2
----
1515
639
819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-752
SELECT + tab0.col1 * + CAST( col0 * + col2 AS SIGNED ) col1 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-752
SELECT + tab0.col1 * + CAST ( col0 * + col2 AS INTEGER ) col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - + col1 * col2 + + 69 AS col0 FROM tab1 cor0
----
-1179
-1335
-501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * + 55 col1 FROM tab0 AS cor0
----
1406
2022
4986
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL 5 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) * col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 * 96 FROM tab2 AS cor0
----
-672
-7488
-7584
query I rowsort
SELECT - + 68 + 4 AS col2 FROM tab0 AS cor0
----
-64
-64
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-760
SELECT ALL CAST( NULL AS SIGNED ) * + col2 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-760
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-761
SELECT ALL CAST( NULL AS DECIMAL ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-761
SELECT ALL CAST ( NULL AS REAL ) + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 33 + - col2 FROM tab2 AS cor0
----
-59
-60
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-763
SELECT DISTINCT + 83 * cor0.col2 + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
180
2741
6807
skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT + 83 * cor0.col2 + col1 / col2 AS col0 FROM tab0 AS cor0
----
180
2741
6807
query I rowsort
SELECT - 64 + - col0 AS col2 FROM tab2 AS cor0
----
-142
-143
-71
query I rowsort
SELECT + - col1 * col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-766
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-767
SELECT ALL - - 89 * cor0.col1 + col1 + 24 DIV - col0 FROM tab2 AS cor0
----
1530
2787
5310
skipif mysql # not compatible
query I rowsort label-767
SELECT ALL - - 89 * cor0.col1 + col1 + 24 / - col0 FROM tab2 AS cor0
----
1530
2787
5310
query I rowsort
SELECT + + ( 93 ) FROM tab2 cor0
----
93
93
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT - col2 * + col1 DIV + col1 + 33 AS col1 FROM tab0 AS cor0
----
-49
0
32
skipif mysql # not compatible
query I rowsort label-769
SELECT - col2 * + col1 / + col1 + 33 AS col1 FROM tab0 AS cor0
----
-49
0
32
query I rowsort
SELECT col1 * - col1 + + col2 AS col0 FROM tab0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col0 col0 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-772
SELECT cor0.col0 * - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-772
SELECT cor0.col0 * - col2 / col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT + + 56 + - col1 DIV 75 AS col2 FROM tab0 AS cor0
----
55
55
55
skipif mysql # not compatible
query I rowsort label-773
SELECT + + 56 + - col1 / 75 AS col2 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT + - cor0.col0 + + col0 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * col1 * col1 FROM tab1 AS cor0
----
1000
17576
2197
onlyif mysql # use DIV operator for integer division
query I rowsort label-776
SELECT - 19 DIV + col2 AS col1 FROM tab0 AS cor0
----
-19
0
0
skipif mysql # not compatible
query I rowsort label-776
SELECT - 19 / + col2 AS col1 FROM tab0 AS cor0
----
-19
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT DISTINCT col2 DIV ( cor0.col0 ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-777
SELECT DISTINCT col2 / ( cor0.col0 ) FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT + col2 * col0 + + col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + col2 + + col2 * col1 + + col2 FROM tab1 cor0
----
1440
1512
684
onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT DISTINCT - cor0.col1 DIV - 81 col1 FROM tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT - cor0.col1 / - 81 col1 FROM tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 * 56 + col1 AS col2 FROM tab0 AS cor0
----
-1762
-4501
41
query I rowsort
SELECT ALL + cor0.col2 + 5 AS col2 FROM tab2 AS cor0
----
31
32
43
query I rowsort
SELECT ALL col2 + tab1.col0 + - col1 AS col0 FROM tab1
----
111
163
31
query I rowsort
SELECT ALL 45 * col1 FROM tab1
----
1170
450
585
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - 19 * - cor0.col0 col1 FROM tab0 AS cor0
----
153881
39216
64505
query I rowsort
SELECT + tab0.col1 * 74 + tab0.col2 AS col2 FROM tab0
----
6397
6816
7179
query I rowsort
SELECT DISTINCT col0 + + col2 + ( - cor0.col0 ) * + col1 AS col1 FROM tab2 AS cor0
----
-1226
-183
-4498
query I rowsort
SELECT ALL 69 - + col1 * ( col2 ) AS col1 FROM tab2 cor0
----
-1465
-577
-768
query I rowsort
SELECT ALL - + col2 * - col2 - col2 * - cor0.col2 FROM tab0 AS cor0
----
13448
2
2178
query I rowsort
SELECT + + 10 + cor0.col1 AS col0 FROM tab2 AS cor0
----
27
41
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-792
SELECT ALL + col2 + + 89 * + ( + col2 ) / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-792
SELECT ALL + col2 + + 89 * + ( + col2 ) / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 * 29 + + cor0.col2 + + cor0.col0 FROM tab2 AS cor0
----
2366
237
2408
query I rowsort
SELECT col1 * 11 AS col1 FROM tab2
----
187
341
649
onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT + - col2 + - col1 * col0 DIV - cor0.col1 - + ( col2 ) AS col0 FROM tab0 cor0
----
-42
-75
33
skipif mysql # not compatible
query I rowsort label-796
SELECT + - col2 + - col1 * col0 / - cor0.col1 - + ( col2 ) AS col0 FROM tab0 cor0
----
-42
-75
33
query I rowsort
SELECT col0 * + col2 + col2 * - col1 + - col0 FROM tab0 AS cor0
----
-2070
-253
-97
query I rowsort
SELECT + col1 + cor0.col0 * - col0 * - col0 FROM tab1 cor0
----
262154
512013
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-799
SELECT 22 DIV - col2 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-799
SELECT 22 / - col2 col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 + - col0 col2 FROM tab2 AS cor0
----
5
6
77
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 73 AS REAL ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2409
-5986
-73
query I rowsort
SELECT cor0.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 9 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT ALL col0 + + col0 * col0 FROM tab1 cor0
----
12
4160
6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + - cor0.col0 col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT 71 * ( + col1 ) + + col0 AS col2 FROM tab2 AS cor0
----
1286
2208
4267
query I rowsort
SELECT ALL 9 * 94 * col2 + col1 AS col1 FROM tab2 AS cor0
----
22055
22873
32165
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-808
SELECT - CAST( NULL AS DECIMAL ) / 55 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-808
SELECT - CAST ( NULL AS REAL ) / 55 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 65 FROM tab2 AS cor0
----
1690
1755
2470
onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT + 71 + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
71
71
71
skipif mysql # not compatible
query I rowsort label-810
SELECT + 71 + col2 / + col1 AS col0 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT + 4 * + col1 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT - col0 * ( - col1 ) + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT DISTINCT + + 13 AS col1 FROM tab1 AS cor0
----
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-814
SELECT + + col1 DIV 89 + col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-814
SELECT + + col1 / 89 + col2 + - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 * 5 * + col2 + - col1 * col1 FROM tab1 AS cor0
----
-15256
-16345
-46249
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 * col1 col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-817
SELECT ALL col2 * col0 + - col1 * col2 + ( + col2 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
-1240
3083
6439
skipif mysql # not compatible
query I rowsort label-817
SELECT ALL col2 * col0 + - col1 * col2 + ( + col2 ) / + col1 AS col1 FROM tab1 AS cor0
----
-1240
3083
6439
query I rowsort
SELECT - - 53 + col1 FROM tab2 AS cor0
----
112
70
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-819
SELECT ALL + - cor0.col1 DIV + col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-819
SELECT ALL + - cor0.col1 / + col2 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-820
SELECT ALL CAST( + ( col1 ) AS SIGNED ) + CAST( ( col2 ) AS SIGNED ) DIV - col0 + col0 * + col1 FROM tab1
----
1052
650
86
skipif mysql # not compatible
query I rowsort label-820
SELECT ALL CAST ( + ( col1 ) AS INTEGER ) + CAST ( ( col2 ) AS INTEGER ) / - col0 + col0 * + col1 FROM tab1
----
1052
650
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-821
SELECT - 1 * col0 DIV - tab1.col2 + col1 AS col0 FROM tab1
----
11
13
26
skipif mysql # not compatible
query I rowsort label-821
SELECT - 1 * col0 / - tab1.col2 + col1 AS col0 FROM tab1
----
11
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-823
SELECT DISTINCT col1 * - col1 - - ( col2 + - CAST( - cor0.col2 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
-7330
-8117
-9407
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-823
SELECT DISTINCT col1 * - col1 - - ( col2 + - CAST ( - cor0.col2 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
-7330
-8117
-9407
query I rowsort
SELECT - col2 * 59 - + 83 FROM tab1 AS cor0
----
-3269
-3446
-5747
query I rowsort
SELECT ALL + col0 + + 85 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT - - col1 * col1 - - ( + col0 ) * col0 FROM tab0 AS cor0
----
10634
16202
7972
query I rowsort
SELECT ALL + col2 + + 10 FROM tab1 AS cor0
----
106
64
67
query I rowsort
SELECT ALL - - cor0.col0 * col0 + col2 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + col2 col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL 64 AS col0 FROM tab1
----
64
64
64
query I rowsort
SELECT DISTINCT - 43 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-43
query I rowsort
SELECT DISTINCT ( - col0 * - col0 ) FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-833
SELECT ( + col0 ) DIV - 85 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-833
SELECT ( + col0 ) / - 85 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 78 + - tab2.col0 * - col2 col2 FROM tab2
----
2607
4328
6630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-835
SELECT - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-835
SELECT - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab1.col2 - + ( col1 ) FROM tab1
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-837
SELECT ALL - col0 * col1 - col1 DIV - col0 AS col2 FROM tab1
----
-1040
-640
-70
skipif mysql # not compatible
query I rowsort label-837
SELECT ALL - col0 * col1 - col1 / - col0 AS col2 FROM tab1
----
-1040
-640
-70
query I rowsort
SELECT ALL - + 14 FROM tab2, tab2 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT cor0.col0 + ( + col2 + col2 ) FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL + 31 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT - ( cor0.col1 ) + 11 + + ( + col2 ) * col1 FROM tab2 AS cor0
----
1486
640
817
query I rowsort
SELECT DISTINCT + - 22 * col2 AS col1 FROM tab1 AS cor0
----
-1188
-1254
-2112
query I rowsort
SELECT DISTINCT - col0 + col0 + + ( + col1 ) * col2 * + 39 AS col0 FROM tab2 AS cor0
----
25194
32643
59826
onlyif mysql # use DIV operator for integer division
query I rowsort label-844
SELECT ALL + col2 DIV + cor0.col1 + 0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-844
SELECT ALL + col2 / + cor0.col1 + 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 17 - + col2 FROM tab1 AS cor0
----
-37
-40
-79
query I rowsort
SELECT + 2 * + col0 AS col1 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL + cor0.col2 * cor0.col2 * - col0 AS col0 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - 33 * cor0.col1 FROM tab2 AS cor0
----
-1023
-1947
-561
query I rowsort
SELECT 57 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT DISTINCT - cor0.col2 - col1 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-851
SELECT ALL cor0.col1 DIV col0 col2 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-851
SELECT ALL cor0.col1 / col0 col2 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-852
SELECT ALL + CAST( + 44 AS SIGNED ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-852
SELECT ALL + CAST ( + 44 AS INTEGER ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-853
SELECT - col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-853
SELECT - col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 84 FROM tab1, tab1 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ( - col0 ) + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + + 97 AS col0 FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT ALL + - ( col0 ) + + col2 * - 15 AS col0 FROM tab1 AS cor0
----
-1520
-813
-919
query I rowsort
SELECT DISTINCT + col2 + tab0.col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL tab0.col1 + 40 * col2 + + tab0.col2 * 66 * col2 AS col0 FROM tab0
----
203
447155
73280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-860
SELECT + CAST( - col1 AS SIGNED ) + - col2 + - col0 FROM tab2 cor0
----
-134
-163
-65
skipif mysql # not compatible
query I rowsort label-860
SELECT + CAST ( - col1 AS INTEGER ) + - col2 + - col0 FROM tab2 cor0
----
-134
-163
-65
query I rowsort
SELECT + col1 * - 12 + col1 * + cor0.col2 + col0 FROM tab1 AS cor0
----
1095
1172
514
query I rowsort
SELECT DISTINCT - + 49 * - col2 AS col2 FROM tab2 AS cor0
----
1274
1323
1862
query I rowsort
SELECT ALL 91 AS col2 FROM tab2 cor0
----
91
91
91
query I rowsort
SELECT DISTINCT + col2 * 35 FROM tab2 AS cor0
----
1330
910
945
onlyif mysql # use DIV operator for integer division
query I rowsort label-865
SELECT DISTINCT col2 + col0 DIV + col2 AS col0 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-865
SELECT DISTINCT col2 + col0 / + col2 AS col0 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT - col1 + + col1 + 73 AS col0 FROM tab2 AS cor0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 + col1 * + col2 col0 FROM tab0
----
-1
2719
7289
query I rowsort
SELECT col1 * + 12 FROM tab2
----
204
372
708
query I rowsort
SELECT - + cor0.col1 + + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - + ( col2 ) * + 59 AS col0 FROM tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT DISTINCT + + col2 * - col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL 54 + ( - col1 ) FROM tab2
----
-5
23
37
query I rowsort
SELECT + col2 * - 35 + col0 AS col1 FROM tab0
----
-1131
-2781
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-874
SELECT DISTINCT - 7 * - col1 * col1 - col2 DIV - tab0.col2 FROM tab0
----
51773
57968
65864
skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - 7 * - col1 * col1 - col2 / - tab0.col2 FROM tab0
----
51773
57968
65864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) + col2 * tab1.col0 col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT + + 76 + col2 AS col1 FROM tab1 AS cor0
----
130
133
172
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
query I rowsort
SELECT 89 - col1 * + col1 AS col0 FROM tab1 AS cor0
----
-11
-587
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-879
SELECT - cor0.col1 DIV tab1.col0 + 98 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to bb1118ab5675dfb0a4975fafc4ac04ef
skipif mysql # not compatible
query I rowsort label-879
SELECT - cor0.col1 / tab1.col0 + 98 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to bb1118ab5675dfb0a4975fafc4ac04ef
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-880
SELECT + col2 + CAST( col1 AS SIGNED ) + - col1 AS col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-880
SELECT + col2 + CAST ( col1 AS INTEGER ) + - col1 AS col1 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL - 24 + + col2 * 76 + col1 AS col0 FROM tab2
----
2011
2059
2881
query I rowsort
SELECT + tab1.col1 * - col1 * - 34 AS col2 FROM tab1
----
22984
3400
5746
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + - cor0.col2 col1 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-884
SELECT ALL 14 DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-884
SELECT ALL 14 / col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * cor0.col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-886
SELECT DISTINCT 3 DIV col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-886
SELECT DISTINCT 3 / col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-887
SELECT 67 DIV col0 FROM tab2
----
0
0
9
skipif mysql # not compatible
query I rowsort label-887
SELECT 67 / col0 FROM tab2
----
0
0
9
query I rowsort
SELECT - 4 * col1 * col0 FROM tab2
----
-18408
-5372
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-889
SELECT + col2 + 98 DIV - col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-889
SELECT + col2 + 98 / - col2 FROM tab1
----
53
56
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-890
SELECT col1 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-890
SELECT col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 19 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab1 AS cor0
----
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-893
SELECT ( col2 ) + col2 * CAST( + 7 * + col1 AS SIGNED ) FROM tab1 AS cor0
----
4047
8832
9882
skipif mysql # not compatible
query I rowsort label-893
SELECT ( col2 ) + col2 * CAST ( + 7 * + col1 AS INTEGER ) FROM tab1 AS cor0
----
4047
8832
9882
query I rowsort
SELECT ALL + + 97 * - col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-8318
-8738
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-895
SELECT DISTINCT - ( - col2 ) * col0 + col2 DIV + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-895
SELECT DISTINCT - ( - col2 ) * col0 + col2 / + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
163
3649
7681
query I rowsort
SELECT ALL + + col2 * + col2 + - cor0.col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT - col2 * 57 AS col1 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT ALL + - ( col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col0 - col0 * col0 AS col0 FROM tab2
----
-42
-6006
-6162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - tab2.col0 col0 FROM tab2
----
0
query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE ( NULL ) BETWEEN - col0 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - tab0.col0 col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col0 * + tab1.col2 + col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - col2 + + tab2.col1 * - col0 AS col0 FROM tab2
----
-1381
-244
-4628
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 > - col0 + col2
----
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( col0 - col2 * col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 >= NULL
----
query I rowsort
SELECT + col0 * col2 + col1 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT col0 + + col0 + - tab0.col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-910
SELECT ALL col2 + + col0 DIV + tab0.col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-910
SELECT ALL col2 + + col0 / + tab0.col2 FROM tab0
----
33
36
83
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + col1 / + col0 + + tab2.col1
----
query I rowsort
SELECT + col1 + col1 * + col1 FROM tab1
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-913
SELECT - col1 DIV - col0 col1 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-913
SELECT - col1 / - col0 col1 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT + col0 * - col2 + col1 AS col0 FROM tab0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-915
SELECT ALL col1 - col1 * - tab1.col2 DIV col2 AS col2 FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-915
SELECT ALL col1 - col1 * - tab1.col2 / col2 AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT + col1 * - col2 + - col2 AS col2 FROM tab0
----
-2871
-7544
-98
query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NULL ) > col1 + - col0 * - col0
----
query I rowsort
SELECT + col0 + col0 * + tab2.col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT + col0 + col1 FROM tab0 WHERE NOT + col2 = col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT ALL col1 * + col1 + col0 DIV col1 AS col1 FROM tab2
----
293
3482
961
skipif mysql # not compatible
query I rowsort label-920
SELECT ALL col1 * + col1 + col0 / col1 AS col1 FROM tab2
----
293
3482
961
query I rowsort
SELECT + col2 * col1 * + cor0.col2 + col1 FROM tab2 AS cor0
----
22630
24565
39943
query I rowsort
SELECT col2 * col0 + + col2 * col1 FROM tab0 AS cor0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-923
SELECT - col1 DIV + cor0.col0 - + col2 FROM tab1 cor0
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-923
SELECT - col1 / + cor0.col0 - + col2 FROM tab1 cor0
----
-57
-62
-96
query III rowsort
SELECT * FROM tab1 WHERE ( col2 * + col0 ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT - tab0.col0 FROM tab0 WHERE - col2 * - col2 NOT IN ( col2 * + col2 - + tab0.col2 )
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-926
SELECT cor0.col1 DIV + col0 - cor0.col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-833
skipif mysql # not compatible
query I rowsort label-926
SELECT cor0.col1 / + col0 - cor0.col2 * col1 FROM tab2 AS cor0
----
-1534
-646
-833
query I rowsort
SELECT - - col1 + + col1 * col0 * + col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT - col2 * col0 + col2 * col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-929
SELECT col2 * col0 DIV col2 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif mysql # not compatible
query I rowsort label-929
SELECT col2 * col0 / col2 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT col0 + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col0 + + col2 + + col1 FROM tab2 AS cor0
----
134
163
65
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-933
SELECT - col0 - - col2 DIV - col2 col1 FROM tab1 AS cor0
----
-4
-65
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-933
SELECT - col0 - - col2 / - col2 col1 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT cor0.col1 * ( + 10 ) FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT - - col1 * ( - cor0.col2 ) + col2 + col1 FROM tab2 cor0
----
-1449
-591
-779
query I rowsort
SELECT + + col1 + 29 * + 15 * + cor0.col0 AS col2 FROM tab1 cor0
----
1331
27850
34813
query I rowsort
SELECT DISTINCT + col1 + col1 * 54 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT DISTINCT + col0 + - 90 AS col2 FROM tab1 AS cor0
----
-10
-26
-87
query I rowsort
SELECT + cor0.col2 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-940
SELECT ALL - - col2 DIV + 45 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-940
SELECT ALL - - col2 / + 45 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - 59 + - col0 FROM tab2 cor0
----
-19
-20
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-942
SELECT DISTINCT + + CAST( 22 AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
1892
2002
2134
skipif mysql # not compatible
query I rowsort label-942
SELECT DISTINCT + + CAST ( 22 AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
1892
2002
2134
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 + - col2 col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL - 36 * + col0 AS col0 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT + 39 + 60 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - col2 + - col1 * - col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT 59 - 92 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
query I rowsort
SELECT - - cor0.col1 - col0 AS col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL col2 * + 8 AS col2 FROM tab2 AS cor0
----
208
216
304
query I rowsort
SELECT tab1.col0 + tab1.col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT col2 * tab2.col0 + + ( col2 ) AS col1 FROM tab2
----
2054
216
3040
query I rowsort
SELECT + col0 * ( tab0.col0 ) + col2 + col0 AS col2 FROM tab0
----
1261
633
8092
query I rowsort
SELECT ALL col2 + 80 - col1 FROM tab2
----
101
47
76
query I rowsort
SELECT + tab0.col1 + + col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT - col0 * ( - 85 ) + col0 AS col2 FROM tab2 AS cor0
----
602
6708
6794
query I rowsort
SELECT DISTINCT - + col1 * 51 + col0 FROM tab0 AS cor0
----
-4362
-4552
-4912
onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT ALL + col1 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-957
SELECT ALL + col1 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT DISTINCT - col0 + col0 * tab1.col2 AS col1 FROM tab1
----
159
3584
7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-959
SELECT ALL - CAST( NULL AS SIGNED ) + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-959
SELECT ALL - CAST ( NULL AS INTEGER ) + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( col2 ) * + col2 + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-961
SELECT ALL - ( col1 ) + col0 * tab0.col1 DIV - col2 FROM tab0
----
-148
-189
-3492
skipif mysql # not compatible
query I rowsort label-961
SELECT ALL - ( col1 ) + col0 * tab0.col1 / - col2 FROM tab0
----
-148
-189
-3492
query I rowsort
SELECT ( 4 * tab0.col2 + + col2 ) AS col0 FROM tab0
----
165
410
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col0 ) + cor0.col1 col0 FROM tab0 cor0
----
2
62
query I rowsort
SELECT + - 25 + + col1 AS col2 FROM tab2 AS cor0
----
-8
34
6
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL - 68 + + col0 AS col1 FROM tab0 AS cor0
----
-33
-44
21
query I rowsort
SELECT ALL + - ( col1 ) + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col0 * + col1 + - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - col2 - 0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-970
SELECT + 95 DIV col2 FROM tab0 AS cor0
----
1
2
95
skipif mysql # not compatible
query I rowsort label-970
SELECT + 95 / col2 FROM tab0 AS cor0
----
1
2
95
query I rowsort
SELECT - col0 * - col1 - col1 * - 56 FROM tab2
----
1953
2295
7906
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-972
SELECT DISTINCT cor0.col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-972
SELECT DISTINCT cor0.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
NULL
query I rowsort
SELECT 28 AS col0 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT - 70 * + col0 FROM tab1 AS cor0
----
-210
-4480
-5600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 * - cor0.col1 col1 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - col1 + 95 FROM tab2 cor0
----
36
64
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-977
SELECT - - col2 * 58 DIV - 59 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-977
SELECT - - col2 * 58 / - 59 AS col2 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT ALL col0 * 66 + col1 AS col2 FROM tab0 cor0
----
1670
2407
5965
query I rowsort
SELECT + - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - col1 + ( - col0 ) * col0 AS col1 FROM tab1 cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT - - col1 * col2 + 43 FROM tab2 AS cor0
----
1577
689
880
query I rowsort
SELECT DISTINCT - - col0 * col0 + col2 + cor0.col0 FROM tab2 cor0
----
6188
6358
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-984
SELECT col0 + + col0 DIV - col2 col2 FROM tab0 cor0
----
0
24
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-984
SELECT col0 + + col0 / - col2 col2 FROM tab0 cor0
----
0
24
88
query I rowsort
SELECT + cor0.col1 + col2 * col2 FROM tab1 AS cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 * col1 * col0 + col1 col1 FROM tab1
----
36490
4238
99853
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = col2 AND NOT ( + col2 + - col1 * + col2 / + col2 ) <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-988
SELECT ALL col0 * col2 DIV - col1 AS col1 FROM tab1
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-988
SELECT ALL col0 * col2 / - col1 AS col1 FROM tab1
----
-364
-590
-6
query I rowsort
SELECT ALL col2 * col1 * - col1 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT - + 54 * col2 + + col2 * col0 FROM tab0 AS cor0
----
-19
-990
2870
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT col2 DIV cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-36
-57
-95
skipif mysql # not compatible
query I rowsort label-991
SELECT col2 / cor0.col0 + - cor0.col2 FROM tab1 AS cor0
----
-36
-57
-95
query I rowsort
SELECT - + col0 + - cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col2 * - cor0.col1 * + col1 col0 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT ALL col2 * col0 + + col0 + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2022
-27
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 + col1 * + col0 * + col0 col0 FROM tab0
----
118892
49603
720878
query I rowsort
SELECT DISTINCT 64 AS col2 FROM tab1, tab0 AS cor0
----
64
query I rowsort
SELECT DISTINCT col1 * - col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + - col1 * cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-999
SELECT DISTINCT + - col0 DIV cor0.col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT + - col0 / cor0.col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL - col1 + - col1 AS col0 FROM tab2 cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1001
SELECT col0 DIV col1 + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1001
SELECT col0 / col1 + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + col1 + col2 + ( - col0 ) * - col2 FROM tab2 AS cor0
----
2113
247
3057
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1003
SELECT ALL - + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1003
SELECT ALL - + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + 99 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * cor0.col2 - col0 * col0 col0 FROM tab1 AS cor0
----
1472
4419
578
query I rowsort
SELECT - col1 + col1 * - col2 + col2 AS col0 FROM tab2 AS cor0
----
-1567
-625
-841
query I rowsort
SELECT DISTINCT ( col1 ) * - 42 * + col1 AS col1 FROM tab1 AS cor0
----
-28392
-4200
-7098
query I rowsort
SELECT + col2 + col2 * - col0 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-26070
-33
-598272
query I rowsort
SELECT + - col1 + 30 * + col2 FROM tab1 AS cor0
----
1594
1700
2867
query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
-36
query I rowsort
SELECT col0 * tab0.col2 * ( col2 * col2 ) FROM tab0
----
35
49071752
862488
query I rowsort
SELECT DISTINCT col0 * col1 + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + 40 AS col2 FROM tab2 cor0
----
40
40
40
query I rowsort
SELECT col2 + col2 * 82 AS col1 FROM tab2
----
2158
2241
3154
query I rowsort
SELECT + 61 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT - 42 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 9894093f29c0defae91347934f060329
query I rowsort
SELECT + 99 + - col2 * - col2 AS col1 FROM tab2 cor0
----
1543
775
828
query I rowsort
SELECT + ( + 32 ) FROM tab2 cor0
----
32
32
32
query I rowsort
SELECT ALL - 2 - - 72 AS col2 FROM tab2
----
70
70
70
query I rowsort
SELECT - col0 + ( - col2 ) * col1 + col2 FROM tab2 cor0
----
-1586
-687
-817
query I rowsort
SELECT ( col0 ) * col0 + col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT - col1 + - col0 * - col2 FROM tab0
----
-62
706
7207
query I rowsort
SELECT DISTINCT 52 * - col1 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT DISTINCT col1 * col0 - - col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 * cor0.col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ( - col0 * - tab0.col1 + col0 ) FROM tab0
----
2088
3430
8188
query I rowsort
SELECT col2 * - col1 + col2 AS col0 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT col2 + 16 * - col2 FROM tab1
----
-1440
-810
-855
onlyif mysql # use DIV operator for integer division
query I rowsort label-1029
SELECT ALL col1 + col1 DIV - col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1029
SELECT ALL col1 + col1 / - col2 FROM tab1
----
10
13
26
query I rowsort
SELECT 35 + - col2 * col1 FROM tab1 AS cor0
----
-1213
-1369
-535
query I rowsort
SELECT ALL - col0 + + col1 * 27 FROM tab2 AS cor0
----
1515
380
830
query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 * - col1 + + col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT + + col2 + + col1 + ( + col1 ) * col0 FROM tab1 cor0
----
1149
158
707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 67 + col1 col0 FROM tab0 cor0
----
19
24
30
query I rowsort
SELECT ALL + col1 * + col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 col2 FROM tab0 AS cor0
----
54
query I rowsort
SELECT + 55 AS col2 FROM tab0 cor0
----
55
55
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 + ( + col0 ) col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL col2 - - col0 * 20 FROM tab1 AS cor0
----
114
1337
1696
query I rowsort
SELECT ALL 11 + col0 AS col0 FROM tab1 AS cor0
----
14
75
91
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + - ( - 86 ) * - col0 FROM tab1 AS cor0
----
-1856
-96
800
query I rowsort
SELECT + + col0 - - col1 * + 52 FROM tab1 AS cor0
----
1355
584
756
query I rowsort
SELECT DISTINCT + + 99 * + col0 FROM tab2 cor0
----
693
7722
7821
query I rowsort
SELECT ALL - 4 + col0 + 70 FROM tab0 AS cor0
----
101
155
90
query I rowsort
SELECT + - col2 * ( 30 ) * + col1 AS col2 FROM tab1 AS cor0
----
-17100
-37440
-42120
onlyif mysql # use DIV operator for integer division
query I rowsort label-1046
SELECT + 46 DIV 96 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-1046
SELECT + 46 / 96 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1047
SELECT tab1.col0 + CAST( + col0 AS SIGNED ) col1 FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1047
SELECT tab1.col0 + CAST ( + col0 AS INTEGER ) col1 FROM tab1
----
128
160
6
query I rowsort
SELECT - col1 * + 44 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT DISTINCT + - cor0.col1 * cor0.col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT col0 + 13 FROM tab0 AS cor0
----
102
37
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT ALL - + ( - col2 ) DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1051
SELECT ALL - + ( - col2 ) / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT 22 * - 47 * col0 AS col0 FROM tab2 AS cor0
----
-7238
-80652
-81686
query I rowsort
SELECT 10 * - 66 AS col2 FROM tab0 AS cor0
----
-660
-660
-660
query I rowsort
SELECT ALL - ( - 86 ) * cor0.col2 AS col1 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT col2 + + cor0.col2 * - col1 FROM tab2 cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1056
SELECT DISTINCT + - ( 74 ) DIV col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + - ( 74 ) / col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT - cor0.col0 * + 26 FROM tab0 AS cor0
----
-2314
-624
-910
query I rowsort
SELECT - - cor0.col2 * cor0.col2 + 67 FROM tab0 AS cor0
----
1156
6791
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 97 col0 FROM tab2 cor0
----
1649
3007
5723
query I rowsort
SELECT DISTINCT + col0 * - col1 + - col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( cor0.col0 + col1 ) col1 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT ALL + col0 + ( 66 ) AS col1 FROM tab2 AS cor0
----
144
145
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1064
SELECT - - col2 DIV + col1 AS col0 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1064
SELECT - - col2 / + col1 AS col0 FROM tab2 cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col0 + col1 * - cor0.col1 col1 FROM tab0 AS cor0
----
-6604
-9374
-983
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 + col2 col1 FROM tab0
----
-9
23
72
query I rowsort
SELECT ( + col0 + - 91 * - tab1.col1 ) FROM tab1
----
1263
2369
974
query I rowsort
SELECT + ( col0 ) - + col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + cor0.col1 * - col2 + + col0 AS col2 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL col1 * + col0 + - 36 FROM tab2
----
1307
181
4566
query I rowsort
SELECT - col2 * + ( - cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL 90 * - cor0.col0 + col0 * col1 FROM tab2 AS cor0
----
-2418
-413
-5767
query I rowsort
SELECT DISTINCT col1 + - tab1.col0 * col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ( col0 * + col1 ) + - 19 * - 13 AS col2 FROM tab1
----
1287
325
887
query I rowsort
SELECT ALL - - tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab0
----
-17
query I rowsort
SELECT + col1 + col1 * 47 FROM tab2
----
1488
2832
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col2 FROM tab1
----
73
query I rowsort
SELECT DISTINCT - + 99 * + col1 + 54 * 24 AS col0 FROM tab1 AS cor0
----
-1278
306
9
query I rowsort
SELECT ALL + cor0.col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 AS col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 - 74 FROM tab2 AS cor0
----
-2102
-263
-3076
query I rowsort
SELECT DISTINCT - 95 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1084
SELECT DISTINCT + 36 + col0 * ( + col2 ) DIV cor0.col0 + 91 FROM tab2 AS cor0
----
153
154
165
skipif mysql # not compatible
query I rowsort label-1084
SELECT DISTINCT + 36 + col0 * ( + col2 ) / cor0.col0 + 91 FROM tab2 AS cor0
----
153
154
165
onlyif mysql # use DIV operator for integer division
query I rowsort label-1085
SELECT + - ( - col1 ) DIV col1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1085
SELECT + - ( - col1 ) / col1 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - + 99 * + col1 * col1 + col1 FROM tab1 AS cor0
----
-16718
-66898
-9890
onlyif mysql # use DIV operator for integer division
query I rowsort label-1087
SELECT DISTINCT + 38 - - col0 * col1 DIV col0 FROM tab0 AS cor0
----
124
129
135
skipif mysql # not compatible
query I rowsort label-1087
SELECT DISTINCT + 38 - - col0 * col1 / col0 FROM tab0 AS cor0
----
124
129
135
query I rowsort
SELECT 9 + + cor0.col0 FROM tab1 AS cor0
----
12
73
89
query I rowsort
SELECT col1 * - col2 * - col2 FROM tab0
----
611884
93654
97
query I rowsort
SELECT + - col1 * 39 FROM tab1 AS cor0
----
-1014
-390
-507
query I rowsort
SELECT + - col2 * ( col0 ) + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - col0 * 4 AS col1 FROM tab1 cor0
----
-12
-256
-320
query I rowsort
SELECT DISTINCT 58 * tab2.col1 AS col1 FROM tab2
----
1798
3422
986
query I rowsort
SELECT DISTINCT 71 AS col1 FROM tab1 AS cor0
----
71
query I rowsort
SELECT - tab1.col1 * + 38 AS col0 FROM tab1
----
-380
-494
-988
query I rowsort
SELECT + ( col0 ) + col1 * + cor0.col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - 23 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1099
SELECT ALL + CAST( + col0 AS SIGNED ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + CAST ( + col0 AS INTEGER ) * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + ( - 68 ) + col1 AS col1 FROM tab1 AS cor0
----
-42
-55
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col0 * 1 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT - + cor0.col1 * col2 + 66 AS col2 FROM tab0 AS cor0
----
-2772
-31
-7396
query I rowsort
SELECT + cor0.col0 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT col0 * - col2 + - CAST( NULL AS SIGNED ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1104
SELECT col0 * - col2 + - CAST ( NULL AS INTEGER ) * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 92 + - tab0.col2 AS col1 FROM tab0
----
-125
-174
-93
query I rowsort
SELECT DISTINCT col1 * + col2 * + col1 + tab1.col2 FROM tab1
----
16320
36558
5757
onlyif mysql # use DIV operator for integer division
query I rowsort label-1107
SELECT col1 DIV 27 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1107
SELECT col1 / 27 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1108
SELECT - col1 DIV 98 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1108
SELECT - col1 / 98 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + - col2 * ( 11 ) + col2 FROM tab1 cor0
----
-540
-570
-960
query I rowsort
SELECT - - 18 - - col1 FROM tab0 AS cor0
----
104
109
115
query I rowsort
SELECT 22 * - col2 AS col0 FROM tab0 AS cor0
----
-1804
-22
-726
query I rowsort
SELECT col1 * col1 * + col1 FROM tab0 AS cor0
----
636056
753571
912673
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1113
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1113
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 * cor0.col0 + + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - + col1 * col0 * - col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT - col0 + + 40 * col1 AS col1 FROM tab1 AS cor0
----
1037
336
440
query I rowsort
SELECT - + 14 + col2 AS col1 FROM tab1 AS cor0
----
40
43
82
query I rowsort
SELECT tab0.col2 * 85 FROM tab0
----
2805
6970
85
query I rowsort
SELECT ALL col0 * 88 FROM tab0
----
2112
3080
7832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1120
SELECT ALL + - cor0.col2 * - col2 * col2 - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
17550
19656
54834
skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + - cor0.col2 * - col2 * col2 - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
17550
19656
54834
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT DISTINCT - ( + col2 ) DIV - col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - ( + col2 ) / - col1 FROM tab0
----
0
query I rowsort
SELECT - - cor0.col1 + + cor0.col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - cor0.col2 + + ( + ( + col2 ) ) * + col1 * col0 col2 FROM tab2 AS cor0
----
121680
54036
6048
query I rowsort
SELECT DISTINCT + 80 * - col2 AS col2 FROM tab0
----
-2640
-6560
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1125
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1125
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * 54 AS col0 FROM tab1 cor0
----
1404
540
702
query I rowsort
SELECT ALL + col1 * ( col0 ) + cor0.col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1128
SELECT ALL - + col2 - + ( col1 ) DIV col1 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-1128
SELECT ALL - + col2 - + ( col1 ) / col1 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT col1 + + 53 FROM tab2 AS cor0
----
112
70
84
query I rowsort
SELECT ALL col1 * - col2 * col2 + - col1 FROM tab1 cor0
----
-119821
-32500
-75842
query I rowsort
SELECT DISTINCT - col1 + - ( 2 * - col0 ) FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT ALL col2 + ( + col1 ) - + cor0.col1 AS col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1133
SELECT ALL + col2 + + 65 DIV 58 + col1 FROM tab1 cor0
----
110
68
81
skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL + col2 + + 65 / 58 + col1 FROM tab1 cor0
----
110
68
81
query I rowsort
SELECT DISTINCT - col0 * - 25 FROM tab1 AS cor0
----
1600
2000
75
query I rowsort
SELECT DISTINCT - tab1.col1 * col1 + + col1 AS col0 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL + 71 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT col0 + 28 FROM tab1 AS cor0
----
108
31
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + col2 * col0 col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT DISTINCT cor0.col0 DIV col1 + + col0 AS col2 FROM tab2 cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT cor0.col0 / col1 + + col0 AS col2 FROM tab2 cor0
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1141
SELECT - cor0.col0 DIV - cor1.col0 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to a5ccaf2ac5800f8f9a111e1f6ecab6d9
skipif mysql # not compatible
query I rowsort label-1141
SELECT - cor0.col0 / - cor1.col0 FROM tab1, tab2 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to a5ccaf2ac5800f8f9a111e1f6ecab6d9
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT - col2 * + 87 * col1 + + col2 * + 64 AS col1 FROM tab2 AS cor0
----
-131794
-53770
-71091
query I rowsort
SELECT - 35 + col1 FROM tab0 cor0
----
51
56
62
query I rowsort
SELECT - + col1 - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT + col0 + - cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + col0 * tab2.col1 + col0 AS col1 FROM tab2
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1148
SELECT col1 + + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1148
SELECT col1 + + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + col1 * 60 * + 1 AS col2 FROM tab1 AS cor0
----
1563
664
860
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT DISTINCT + cor0.col0 - - col2 DIV - col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1151
SELECT DISTINCT + cor0.col0 - - col2 / - col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + - 30 * - cor0.col2 + col1 AS col1 FROM tab2 cor0
----
1157
839
841
query I rowsort
SELECT DISTINCT - 61 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-28
-60
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1154
SELECT col0 + col1 * + CAST( ( - col1 ) AS SIGNED ) col1 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1154
SELECT col0 + col1 * + CAST ( ( - col1 ) AS INTEGER ) col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + 40 + col2 AS col0 FROM tab0 AS cor0
----
122
41
73
query I rowsort
SELECT + 94 * col0 + col0 * 74 AS col2 FROM tab2 cor0
----
1176
13104
13272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - cor0.col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - - 30 * col0 FROM tab2 AS cor0
----
210
2340
2370
query I rowsort
SELECT DISTINCT + col0 + + 3 FROM tab0 cor0
----
27
38
92
query I rowsort
SELECT DISTINCT + col0 * + 85 FROM tab0
----
2040
2975
7565
query I rowsort
SELECT - + 59 * col1 FROM tab1 AS cor0
----
-1534
-590
-767
onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT - + 64 DIV - cor0.col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1162
SELECT - + 64 / - cor0.col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + col2 + - 78 FROM tab2 AS cor0
----
-40
-51
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1164
SELECT DISTINCT ( 7 ) DIV col1 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT ( 7 ) / col1 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - + col0 * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + + col1 + - 85 AS col0 FROM tab2 AS cor0
----
-26
-54
-68
query I rowsort
SELECT - + ( 59 ) + + cor0.col1 FROM tab2 AS cor0
----
-28
-42
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1168
SELECT - CAST( col2 AS SIGNED ) * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-1168
SELECT - CAST ( col2 AS INTEGER ) * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col0 + + col2 * col0 col1 FROM tab2 cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * - col2 col2 FROM tab2
----
-2132
-2214
-3116
query I rowsort
SELECT DISTINCT + - col1 + - 11 AS col0 FROM tab2 AS cor0
----
-28
-42
-70
query I rowsort
SELECT col1 * + 65 + cor0.col0 * col2 AS col1 FROM tab1 AS cor0
----
1852
4298
8525
onlyif mysql # use DIV operator for integer division
query I rowsort label-1173
SELECT + cor0.col2 + - 20 DIV - col0 FROM tab1 AS cor0
----
57
60
96
skipif mysql # not compatible
query I rowsort label-1173
SELECT + cor0.col2 + - 20 / - col0 FROM tab1 AS cor0
----
57
60
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1174
SELECT DISTINCT + - col2 + CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT + - col2 + CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + col1 - col0 FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT col1 + - ( + col2 + - col0 ) FROM tab2 AS cor0
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1177
SELECT ALL - col0 * col0 + + col0 DIV cor0.col1 FROM tab2 AS cor0
----
-49
-6083
-6237
skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL - col0 * col0 + + col0 / cor0.col1 FROM tab2 AS cor0
----
-49
-6083
-6237
query I rowsort
SELECT DISTINCT - + col1 + + ( col1 * cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT - col1 * col0 + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL + col2 - - 53 * col0 AS col2 FROM tab1 cor0
----
213
3449
4336
query I rowsort
SELECT ALL + col0 * + 16 + col0 FROM tab1
----
1088
1360
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1182
SELECT ALL col0 + CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL col0 + CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + col1 + - tab1.col0 AS col1 FROM tab1
----
36
673
89
query I rowsort
SELECT ALL cor0.col2 + 16 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 82db36d6c769e0638d7306c45a3628ef
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1185
SELECT DISTINCT + + col0 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1185
SELECT DISTINCT + + col0 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col2 + + 82 FROM tab1
----
-14
25
28
query I rowsort
SELECT col0 + + 34 AS col1 FROM tab2
----
112
113
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-1188
SELECT DISTINCT + col0 * 44 DIV + tab0.col0 FROM tab0
----
44
skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT + col0 * 44 / + tab0.col0 FROM tab0
----
44
query I rowsort
SELECT + col2 + - 67 FROM tab1 AS cor0
----
-10
-13
29
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 1c1b1a313871216b88e662d7d3078b12
query I rowsort
SELECT col0 * + col0 + - 84 FROM tab1
----
-75
4012
6316
query I rowsort
SELECT ALL + 28 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT + col2 + 44 * + col1 FROM tab2
----
1391
2622
786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col1 FROM tab1
----
-86
query I rowsort
SELECT - 17 AS col1 FROM tab1
----
-17
-17
-17
query I rowsort
SELECT + + 28 + col0 FROM tab1 AS cor0
----
108
31
92
query I rowsort
SELECT col0 * col1 + - col1 * - col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT ( - col1 ) * cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * col0 + 82 * col1 FROM tab2 AS cor0
----
-1608
2353
2810
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - ( cor0.col2 ) + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab1, tab0 cor0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT ALL - 83 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 77a48ad722db122f51d5ef36604ad843
query I rowsort
SELECT 98 + - cor0.col1 FROM tab1 AS cor0
----
72
85
88
query I rowsort
SELECT + + col1 * + 68 - - col1 * + col0 FROM tab2 AS cor0
----
2325
2499
8614
query I rowsort
SELECT ALL cor0.col1 + 25 AS col0 FROM tab1 cor0
----
35
38
51
query I rowsort
SELECT ALL - - col1 * - ( col0 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col1 + - 68 * 83 AS col0 FROM tab2 AS cor0
----
-5585
-5613
-5627
query I rowsort
SELECT - col2 - 0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col2 * - ( 28 ) + - cor0.col2 - 89 AS col1 FROM tab1 AS cor0
----
-1655
-1742
-2873
query I rowsort
SELECT - + cor0.col1 + - 31 * - 76 AS col0 FROM tab0 AS cor0
----
2259
2265
2270
query I rowsort
SELECT ALL - 0 * - col1 + tab0.col0 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT col0 * 29 + col0 AS col2 FROM tab0 AS cor0
----
1050
2670
720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1214
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1214
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 20 * col2 - col1 col2 FROM tab2 AS cor0
----
12903
16709
30621
query I rowsort
SELECT DISTINCT + col1 + - col2 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1217
SELECT DISTINCT + col2 + + cor0.col0 DIV col1 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT + col2 + + cor0.col0 / col1 FROM tab1 AS cor0
----
102
54
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1218
SELECT DISTINCT + col0 + col1 DIV col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT + col0 + col1 / col1 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * tab0.col2 * - col0 col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - col1 + col1 * - col0 + tab2.col2 * + col0 AS col1 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col1 - + col0 * col0 FROM tab0 WHERE NOT ( - col2 * col0 ) NOT BETWEEN - col2 AND col2 + + tab0.col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT tab0.col2 + tab0.col2 DIV col0 + col2 * + tab0.col1 FROM tab0
----
2872
7544
98
skipif mysql # not compatible
query I rowsort label-1223
SELECT tab0.col2 + tab0.col2 / col0 + col2 * + tab0.col1 FROM tab0
----
2872
7544
98
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 ) IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( - col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 <> + col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col1 FROM tab0 cor0 WHERE col0 - + col2 BETWEEN + col2 AND NULL
----
query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 > ( col0 * - col2 )
----
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 AS cor0 WHERE NULL >= + col1
----
query I rowsort
SELECT col1 * tab2.col1 * col0 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL + col2 * - col1 + + col2 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT - - col1 * - col1 * col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
-16211
-36478
-5690
query I rowsort
SELECT ALL col1 * col1 + tab0.col2 * col2 FROM tab0
----
15005
8485
9410
query I rowsort
SELECT cor0.col0 + cor0.col2 AS col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1235
SELECT col2 + - col1 + col2 DIV cor0.col0 FROM tab2 AS cor0
----
-1
-33
21
skipif mysql # not compatible
query I rowsort label-1235
SELECT col2 + - col1 + col2 / cor0.col0 FROM tab2 AS cor0
----
-1
-33
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1236
SELECT + col1 + + col1 * col0 DIV col2 FROM tab1 AS cor0
----
21
23
27
skipif mysql # not compatible
query I rowsort label-1236
SELECT + col1 + + col1 * col0 / col2 FROM tab1 AS cor0
----
21
23
27
query I rowsort
SELECT ALL col2 * - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT 85 AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT - col2 * col0 + + 57 AS col0 FROM tab0 AS cor0
----
-7241
-735
22
query I rowsort
SELECT - + ( col0 ) + col2 + + ( cor0.col0 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + col1 * + col2 + + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1242
SELECT DISTINCT + 85 * + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1242
SELECT DISTINCT + 85 * + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * cor0.col0 col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1244
SELECT DISTINCT col1 * + col1 + ( - col1 ) DIV col1 + ( + col0 ) DIV - col0 FROM tab1 AS cor0
----
167
674
98
skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT col1 * + col1 + ( - col1 ) / col1 + ( + col0 ) / - col0 FROM tab1 AS cor0
----
167
674
98
query I rowsort
SELECT + col1 * + cor0.col0 * 65 + - cor0.col0 + - col1 FROM tab0 AS cor0
----
134050
220543
526255
query I rowsort
SELECT + - 45 + col2 + + col2 * col0 FROM tab0 AS cor0
----
-9
7335
780
query I rowsort
SELECT DISTINCT + + col1 + - ( cor0.col0 ) FROM tab0 AS cor0
----
2
62
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 * col0 AS col2 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT + col1 + + cor0.col2 AS col0 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1250
SELECT + cor0.col0 DIV 69 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1250
SELECT + cor0.col0 / 69 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL col0 * col1 + - 31 * - col0 FROM tab1 AS cor0
----
171
2624
3520
query I rowsort
SELECT DISTINCT col1 - - col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col0 * - 76 + col0 AS col2 FROM tab1 AS cor0
----
-225
-4800
-6000
query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + col2 * - col2 + - tab0.col1 * tab0.col2 AS col0 FROM tab0
----
-14186
-3927
-98
query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT col0 + col2 * - tab1.col0 AS col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT tab1.col0 * col1 * - col0 FROM tab1
----
-234
-40960
-83200
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + col2 * - col0 >= - col0
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL tab2.col0 * col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT + col0 * col0 + col1 + col1 NOT IN ( col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col0 col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT - tab2.col0 * - tab2.col0 FROM tab2
----
49
6084
6241
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col0 + - col1 * - tab1.col1 * - col2 )
----
query I rowsort
SELECT col0 * - col2 * + tab1.col0 + - col0 AS col0 FROM tab1
----
-233536
-489
-614480
onlyif mysql # use DIV operator for integer division
query I rowsort label-1266
SELECT col2 * col0 DIV - col1 FROM tab1
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-1266
SELECT col2 * col0 / - col1 FROM tab1
----
-364
-590
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1267
SELECT col2 * col2 DIV + tab2.col1 AS col1 FROM tab2
----
11
23
84
skipif mysql # not compatible
query I rowsort label-1267
SELECT col2 * col2 / + tab2.col1 AS col1 FROM tab2
----
11
23
84
query I rowsort
SELECT ALL - col0 * col2 + col1 + + col1 FROM tab0
----
-620
-7116
159
query I rowsort
SELECT + col2 * col2 * + tab0.col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT col0 + col1 - col2 AS col0 FROM tab2
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT DISTINCT col2 * col1 DIV col0 AS col0 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT col2 * col1 / col0 AS col0 FROM tab2
----
119
19
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1272
SELECT DISTINCT - col2 + - col0 + col1 DIV + col0 AS col1 FROM tab0
----
-170
-34
-54
skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT - col2 + - col0 + col1 / + col0 AS col1 FROM tab0
----
-170
-34
-54
query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT ( + col2 + col1 ) < - col2 + - col2
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 col0 FROM tab1 WHERE ( NULL ) IN ( + col0 )
----
query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 * - col1 + col2 * col0 ) <= NULL
----
query I rowsort
SELECT ALL + col1 * col0 * col2 FROM tab0 WHERE NULL IN ( col1 * + col0 * + col2 )
----
query I rowsort
SELECT DISTINCT tab2.col0 * tab2.col1 FROM tab2 WHERE NOT ( NULL ) >= ( NULL )
----
query I rowsort
SELECT ALL + tab2.col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL col1 * tab0.col0 * col2 FROM tab0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * 91 * + 4 col0 FROM tab1, tab2 AS cor0
----
2548
28392
28756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * - cor0.col1 + - col2 col0 FROM tab0 AS cor0
----
-5709
-6088
-6403
query I rowsort
SELECT DISTINCT - col0 * + col2 + - 48 AS col1 FROM tab2 AS cor0
----
-2076
-237
-3050
query I rowsort
SELECT ALL + + cor0.col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT DISTINCT - ( cor0.col0 ) + - 29 DIV - col1 FROM tab1 AS cor0
----
-2
-62
-78
skipif mysql # not compatible
query I rowsort label-1284
SELECT DISTINCT - ( cor0.col0 ) + - 29 / - col1 FROM tab1 AS cor0
----
-2
-62
-78
query I rowsort
SELECT ALL - cor0.col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 + + col2 * 26 + col1 col0 FROM tab2 AS cor0
----
1043
760
761
query I rowsort
SELECT DISTINCT + col0 + + 13 * col1 * + col0 AS col2 FROM tab2 AS cor0
----
17538
2828
59904
query I rowsort
SELECT DISTINCT - + col0 * + col0 - 54 * col2 FROM tab0 AS cor0
----
-12349
-1279
-2358
query I rowsort
SELECT DISTINCT - - cor0.col2 + ( 90 ) FROM tab2 AS cor0
----
116
117
128
query I rowsort
SELECT + col2 + ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT + col0 + + 23 AS col1 FROM tab0 AS cor0
----
112
47
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * + col1 + - col1 * - cor0.col2 col1 FROM tab2 AS cor0
----
1292
1674
3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + 47 * col2 col1 FROM tab1 cor0
----
13728
5454
5928
query I rowsort
SELECT ALL col2 * col0 + 59 FROM tab2 AS cor0
----
2087
248
3061
query I rowsort
SELECT + - col0 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - - 66 * + 53 FROM tab0 AS cor0
----
3498
query I rowsort
SELECT ( + 61 ) * - col2 FROM tab1 cor0
----
-3294
-3477
-5856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 col0 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-1299
SELECT DISTINCT 56 * + tab0.col2 + tab0.col2 * ( col0 ) DIV col1 FROM tab0
----
1857
4672
56
skipif mysql # not compatible
query I rowsort label-1299
SELECT DISTINCT 56 * + tab0.col2 + tab0.col2 * ( col0 ) / col1 FROM tab0
----
1857
4672
56
query I rowsort
SELECT col1 + - 4 AS col0 FROM tab0 AS cor0
----
82
87
93
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col1 * col0 FROM tab2 AS cor0
----
2787
5278
946
onlyif mysql # use DIV operator for integer division
query I rowsort label-1302
SELECT DISTINCT cor0.col2 * - 27 + + col2 * col2 DIV - col1 - - cor0.col0 * + col2 FROM tab0 AS cor0
----
-111
5011
8
skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT cor0.col2 * - 27 + + col2 * col2 / - col1 - - cor0.col0 * + col2 FROM tab0 AS cor0
----
-111
5011
8
query I rowsort
SELECT DISTINCT + col1 * + col2 + col2 * + 13 AS col1 FROM tab1 AS cor0
----
1311
2106
2496
query I rowsort
SELECT ALL - + 76 * col2 AS col1 FROM tab2 AS cor0
----
-1976
-2052
-2888
query I rowsort
SELECT DISTINCT + 41 * 70 FROM tab0 AS cor0
----
2870
query I rowsort
SELECT ALL cor0.col2 * - col2 * col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT cor0.col2 - cor0.col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL + col2 - - col2 * 87 FROM tab0 cor0
----
2904
7216
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1309
SELECT col1 DIV col0 - - col0 AS col0 FROM tab2 AS cor0
----
11
78
79
skipif mysql # not compatible
query I rowsort label-1309
SELECT col1 / col0 - - col0 AS col0 FROM tab2 AS cor0
----
11
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col0 - 33 col1 FROM tab1 AS cor0
----
-1073
-111
-673
onlyif mysql # use DIV operator for integer division
query I rowsort label-1311
SELECT DISTINCT + col1 DIV col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT + col1 / col1 + col2 AS col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT ALL col0 * col0 + - cor0.col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT ALL - ( col2 ) + col2 * 69 - + col2 AS col0 FROM tab2
----
1742
1809
2546
query I rowsort
SELECT - 31 * + col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
113088
238080
5022
query I rowsort
SELECT - col1 - cor0.col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 - tab0.col2 col0 FROM tab0
----
-121
-170
-89
query I rowsort
SELECT - + col0 * - cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ( - col2 * - col0 + - col2 * col0 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - - 32 * col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT cor0.col1 + + col2 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-573
-931
2
query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT - - ( + cor0.col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - 42 AS col1 FROM tab0 AS cor0
----
42
42
42
query I rowsort
SELECT 78 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT - tab1.col2 * - 41 + col2 FROM tab1
----
2268
2394
4032
query I rowsort
SELECT ( + 5 + cor0.col1 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 9e975552aecb841ab1b71f9e0b60eed3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1327
SELECT DISTINCT + CAST( + 99 AS SIGNED ) FROM tab1
----
99
skipif mysql # not compatible
query I rowsort label-1327
SELECT DISTINCT + CAST ( + 99 AS INTEGER ) FROM tab1
----
99
query I rowsort
SELECT ALL + 9 * cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 7d61f430b3f73ad1ee93cde0973b3fa7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT - cor0.col0 * 67 AS col0 FROM tab0 AS cor0
----
-1608
-2345
-5963
onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT + col0 * col2 DIV col1 FROM tab2 cor0
----
176
34
6
skipif mysql # not compatible
query I rowsort label-1331
SELECT + col0 * col2 / col1 FROM tab2 cor0
----
176
34
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c
query I rowsort
SELECT - col2 * - 48 + - col0 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
120900
52858
7155
query I rowsort
SELECT ALL + cor0.col0 + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT 18 + col0 AS col2 FROM tab0 AS cor0
----
107
42
53
query I rowsort
SELECT ALL col0 * 61 - col2 * + ( - col2 ) FROM tab2 AS cor0
----
1156
5434
6263
query I rowsort
SELECT ALL + 87 AS col2 FROM tab0
----
87
87
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1338
SELECT DISTINCT CAST( + 47 AS SIGNED ) + col2 col0 FROM tab0
----
129
48
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1338
SELECT DISTINCT CAST ( + 47 AS INTEGER ) + col2 col0 FROM tab0
----
129
48
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1339
SELECT + 70 DIV ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
10
skipif mysql # not compatible
query I rowsort label-1339
SELECT + 70 / ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
10
query I rowsort
SELECT DISTINCT 0 + - col2 AS col1 FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 76 col1 FROM tab0
----
10
15
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1342
SELECT - cor0.col2 DIV + col1 + + cor0.col1 FROM tab1 cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-1342
SELECT - cor0.col2 / + col1 + + cor0.col1 FROM tab1 cor0
----
24
5
6
query I rowsort
SELECT DISTINCT 51 * + col0 FROM tab0
----
1224
1785
4539
onlyif mysql # use DIV operator for integer division
query I rowsort label-1344
SELECT DISTINCT col2 DIV + 55 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1344
SELECT DISTINCT col2 / + 55 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - 95 + - cor0.col1 FROM tab1 AS cor0
----
69
82
85
query I rowsort
SELECT + ( tab1.col1 * tab1.col2 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f8894e3f33962cda5901e1c2ce65d5b0
query I rowsort
SELECT + col2 + ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col0 * + 77 - col2 AS col2 FROM tab2
----
512
5980
6045
onlyif mysql # use DIV operator for integer division
query I rowsort label-1349
SELECT + - col1 * cor0.col2 + col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-1349
SELECT + - col1 * cor0.col2 + col1 / col1 AS col1 FROM tab1 AS cor0
----
-1247
-1403
-569
query I rowsort
SELECT + col1 * col1 + cor0.col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT - col1 * + cor0.col1 + col1 FROM tab1 cor0
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1352
SELECT - col2 DIV + 80 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1352
SELECT - col2 / + 80 AS col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - col2 + + col0 * col1 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT col0 * - col0 + + col1 * + col1 FROM tab2
----
-2603
-5952
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-1355
SELECT DISTINCT - col0 + col0 DIV + 65 AS col0 FROM tab2
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT - col0 + col0 / + 65 AS col0 FROM tab2
----
-7
-77
-78
query I rowsort
SELECT DISTINCT 83 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
83
query I rowsort
SELECT - - col2 * col2 + - 29 FROM tab0 AS cor0
----
-28
1060
6695
query I rowsort
SELECT ALL + - col0 + 6 * + col2 FROM tab0 AS cor0
----
-29
174
403
onlyif mysql # use DIV operator for integer division
query I rowsort label-1359
SELECT DISTINCT - + col0 + 34 DIV 57 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT - + col0 + 34 / 57 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-17
-31
-59
query I rowsort
SELECT ALL - 76 * - col1 + col1 + 72 AS col0 FROM tab0 cor0
----
6694
7079
7541
query I rowsort
SELECT ALL + + 83 - col2 * col0 AS col2 FROM tab2 AS cor0
----
-106
-1945
-2919
query I rowsort
SELECT ALL + 76 * 21 FROM tab1 AS cor0
----
1596
1596
1596
query I rowsort
SELECT ALL + col2 + - 53 FROM tab1 cor0
----
1
4
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col0 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT ALL - col2 + + 65 FROM tab1 AS cor0
----
-31
11
8
query I rowsort
SELECT ALL col1 * + col1 - col1 FROM tab2 AS cor0
----
272
3422
930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1368
SELECT ALL - ( - col1 ) * + col0 + CAST( + col0 AS SIGNED ) + - col0 * + 89 col0 FROM tab0 AS cor0
----
-48
267
315
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1368
SELECT ALL - ( - col1 ) * + col0 + CAST ( + col0 AS INTEGER ) + - col0 * + 89 col0 FROM tab0 AS cor0
----
-48
267
315
query I rowsort
SELECT ALL col1 * - col1 * + col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT col2 * + 67 - + col2 AS col1 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT + 57 * - col1 + col0 FROM tab0 AS cor0
----
-4878
-5098
-5494
query I rowsort
SELECT col0 * col0 + 54 AS col0 FROM tab1
----
4150
63
6454
onlyif mysql # use DIV operator for integer division
query I rowsort label-1373
SELECT ALL col1 * 95 - tab1.col0 DIV + col0 AS col0 FROM tab1
----
1234
2469
949
skipif mysql # not compatible
query I rowsort label-1373
SELECT ALL col1 * 95 - tab1.col0 / + col0 AS col0 FROM tab1
----
1234
2469
949
query I rowsort
SELECT - col2 * + col0 * col2 + col0 FROM tab1 AS cor0
----
-207872
-737200
-8745
query I rowsort
SELECT ALL - 79 + + col0 FROM tab0 cor0
----
-44
-55
10
query I rowsort
SELECT DISTINCT - col2 * + 27 FROM tab0 AS cor0
----
-2214
-27
-891
query I rowsort
SELECT col2 + ( - col2 ) * + cor0.col1 * - col2 FROM tab2 AS cor0
----
22626
24586
39910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 col0 FROM tab1 AS cor0
----
96
96
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1379
SELECT + col0 + col0 DIV cor0.col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-1379
SELECT + col0 + col0 / cor0.col2 FROM tab0 AS cor0
----
24
70
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - ( + col1 ) col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 + - 29 AS col2 FROM tab1 cor0
----
25
28
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1382
SELECT + 85 DIV 76 + col2 FROM tab2 cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1382
SELECT + 85 / 76 + col2 FROM tab2 cor0
----
27
28
39
query I rowsort
SELECT ALL + col0 + - col1 * + col1 FROM tab1 AS cor0
----
-36
-673
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1384
SELECT + col1 + + col2 * CAST( NULL AS SIGNED ) / + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1384
SELECT + col1 + + col2 * CAST ( NULL AS INTEGER ) / + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 * - col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - 36 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
153
1992
2966
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1387
SELECT ALL 67 * col2 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1387
SELECT ALL 67 * col2 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * col2 + + col1 + + col2 AS col1 FROM tab2 AS cor0
----
2113
247
3057
query I rowsort
SELECT ALL - col2 * + cor0.col1 + - 28 AS col1 FROM tab0 AS cor0
----
-125
-2866
-7490
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + - 85 * col2 col1 FROM tab0 AS cor0
----
-2781
-50
-6881
query I rowsort
SELECT ALL ( col0 ) + ( + ( - cor0.col2 ) ) FROM tab1 cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col1 * 27 AS col2 FROM tab0 AS cor0
----
-2322
-2457
-2619
query I rowsort
SELECT - + 89 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT ALL + col0 DIV col0 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1395
SELECT ALL + col0 / col0 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT DISTINCT - - 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
49
query I rowsort
SELECT 73 * tab0.col2 FROM tab0
----
2409
5986
73
query I rowsort
SELECT ALL + ( col1 ) + - col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT 27 + col1 FROM tab2 cor0
----
44
58
86
query I rowsort
SELECT + col1 * + col1 + 52 FROM tab1 AS cor0
----
152
221
728
query I rowsort
SELECT - col2 - + cor0.col2 AS col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1402
SELECT ALL ( - col0 ) + - col1 + + col0 DIV 59 AS col1 FROM tab2
----
-136
-38
-95
skipif mysql # not compatible
query I rowsort label-1402
SELECT ALL ( - col0 ) + - col1 + + col0 / 59 AS col1 FROM tab2
----
-136
-38
-95
query I rowsort
SELECT ALL ( col2 ) + + col1 * col0 * + col2 AS col2 FROM tab1
----
36537
4266
99936
query I rowsort
SELECT ALL - ( col1 ) + col2 * + col1 AS col0 FROM tab2
----
1475
629
806
query I rowsort
SELECT DISTINCT ( + 99 ) + col0 * + tab0.col1 * - tab0.col0 FROM tab0
----
-118726
-49437
-720712
query I rowsort
SELECT ALL tab1.col1 * - col2 + + col2 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT - cor0.col0 * - 30 FROM tab0, tab0 cor0, tab2, tab0 AS cor1
----
81 values hashing to a99dc1386820a108c02e71367b550f91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1408
SELECT ALL + 10 + - col2 * - CAST( + col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
1544
656
847
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + 10 + - col2 * - CAST ( + col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
1544
656
847
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1409
SELECT ALL + col2 + + cor0.col0 * - ( + col1 * - cor0.col1 ) + + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL + col2 + + cor0.col0 * - ( + col1 * - cor0.col1 ) + + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT ALL col1 * cor0.col2 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1560
684
864
skipif mysql # not compatible
query I rowsort label-1410
SELECT ALL col1 * cor0.col2 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - - 70 * + col2 + col0 * col2 FROM tab0 AS cor0
----
105
13038
3102
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to a6775d4c5b4880512ff9492a52ee0905
onlyif mysql # use DIV operator for integer division
query I rowsort label-1413
SELECT DISTINCT cor0.col1 * col2 + cor0.col0 DIV col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-1413
SELECT DISTINCT cor0.col1 * col2 + cor0.col0 / col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + - col1 * + col0 + cor0.col1 * + col1 FROM tab1 AS cor0
----
-540
-871
598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 32 col2 FROM tab1 AS cor0
----
-320
-416
-832
query I rowsort
SELECT DISTINCT - col1 - - col1 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL col2 * col1 + - 43 AS col1 FROM tab2 AS cor0
----
1491
603
794
onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT ALL + - cor0.col2 * - col0 + - cor0.col1 * col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
3656
630
7695
skipif mysql # not compatible
query I rowsort label-1419
SELECT ALL + - cor0.col2 * - col0 + - cor0.col1 * col2 / - col0 AS col0 FROM tab1 AS cor0
----
3656
630
7695
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 56 + - col1 col2 FROM tab1 AS cor0
----
1430
550
715
onlyif mysql # use DIV operator for integer division
query I rowsort label-1421
SELECT ALL - + col2 + - cor0.col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL - + col2 + - cor0.col1 / col1 AS col2 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT + col2 * ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + - ( col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + + 51 + + col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1
10
71
query I rowsort
SELECT DISTINCT + 76 * 55 FROM tab0 AS cor0
----
4180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1426
SELECT DISTINCT - CAST( - 40 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
13
14
2
skipif mysql # not compatible
query I rowsort label-1426
SELECT DISTINCT - CAST ( - 40 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
13
14
2
query I rowsort
SELECT ALL 14 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT col2 + - 20 AS col0 FROM tab1 AS cor0
----
34
37
76
query I rowsort
SELECT 3 * col0 AS col2 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT ALL 53 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + + 11 AS col0 FROM tab2 cor0
----
11
11
11
query I rowsort
SELECT ALL + + cor0.col2 * col2 AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - tab0.col1 * col0 * + col2 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + 63 * + col2 FROM tab0 cor0
----
2079
5166
63
query I rowsort
SELECT - col1 * col1 * col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + col0 * - col1 * col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT + - ( 12 ) FROM tab1 AS cor0
----
-12
-12
-12
query I rowsort
SELECT - col2 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT 14 + + col0 * 45 FROM tab1 cor0
----
149
2894
3614
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1440
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1440
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 94 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6
query I rowsort
SELECT DISTINCT + 65 * col2 AS col1 FROM tab1
----
3510
3705
6240
query I rowsort
SELECT DISTINCT + cor1.col0 * + 51 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
1224
1785
4539
query I rowsort
SELECT - 46 * - col0 + col1 FROM tab1
----
164
2954
3693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1445
SELECT + + col2 + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-1445
SELECT + + col2 + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col2 * + col0 + ( - cor0.col1 ) FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT - ( col0 * - col1 ) + - col0 AS col2 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT + col0 * + 62 * + col1 + - col1 AS col1 FROM tab2
----
13423
285265
83249
query I rowsort
SELECT - col1 * + tab2.col1 * - 24 + col1 FROM tab2
----
23095
6953
83603
onlyif mysql # use DIV operator for integer division
query I rowsort label-1450
SELECT DISTINCT col1 DIV 48 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT col1 / 48 FROM tab1
----
0
query I rowsort
SELECT - - 71 * 55 FROM tab2 cor0
----
3905
3905
3905
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( col2 * - col0 ) col1 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT + + 71 - col2 * col0 AS col2 FROM tab1 AS cor0
----
-3577
-7609
-91
query I rowsort
SELECT + + col1 * + col1 - + col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT - + 83 * col0 - col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-2993
-6268
380
query I rowsort
SELECT + - 42 + - cor0.col2 AS col2 FROM tab1 cor0
----
-138
-96
-99
query I rowsort
SELECT + ( cor0.col0 ) * col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + 38 + - col2 * 34 * 82 AS col0 FROM tab2 AS cor0
----
-105906
-72450
-75238
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT DISTINCT + ( col1 ) DIV + 67 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1460
SELECT DISTINCT + ( col1 ) / + 67 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL col1 * + col1 * 33 - + col0 FROM tab2 AS cor0
----
114795
31706
9458
query I rowsort
SELECT ALL + + col2 * ( 41 * col0 ) AS col0 FROM tab1 AS cor0
----
149568
314880
6642
query I rowsort
SELECT + cor0.col1 + + col0 * - 8 AS col2 FROM tab1 AS cor0
----
-502
-627
2
query I rowsort
SELECT DISTINCT col1 + + cor0.col1 AS col0 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 48 + col2 col1 FROM tab0 AS cor0
----
-1119
-1679
-4190
query I rowsort
SELECT ALL + + col1 - - 87 AS col1 FROM tab2 cor0
----
104
118
146
query I rowsort
SELECT 90 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT ALL 62 * + col0 + + ( col0 ) * col0 * + col2 FROM tab1
----
237440
619360
672
query I rowsort
SELECT + col1 * col2 + - cor0.col0 * + col2 FROM tab0 AS cor0
----
164
2046
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1470
SELECT + + 74 + + col2 DIV + col1 FROM tab1 AS cor0
----
76
79
81
skipif mysql # not compatible
query I rowsort label-1470
SELECT + + 74 + + col2 / + col1 FROM tab1 AS cor0
----
76
79
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col0 FROM tab0 AS cor0
----
46
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-1473
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 13 * col1 FROM tab1 AS cor0
----
130
169
338
query I rowsort
SELECT DISTINCT + + 11 * col0 * 82 FROM tab1 AS cor0
----
2706
57728
72160
query I rowsort
SELECT tab0.col0 * - ( - col1 ) AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT - ( 88 ) DIV tab2.col0 - 81 * + 53 col0 FROM tab2
----
-4294
-4294
-4305
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1477
SELECT - ( 88 ) / tab2.col0 - 81 * + 53 col0 FROM tab2
----
-4294
-4294
-4305
query I rowsort
SELECT + col1 * - 16 + - tab1.col0 + ( + 65 ) * col1 FROM tab1
----
1271
426
557
onlyif mysql # use DIV operator for integer division
query I rowsort label-1479
SELECT + col2 + - col2 DIV + ( - col2 ) AS col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1479
SELECT + col2 + - col2 / + ( - col2 ) AS col0 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1480
SELECT DISTINCT + + col0 + + col1 DIV ( col2 ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT + + col0 + + col1 / ( col2 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - tab2.col1 * - col0 + + col2 * - col1 AS col1 FROM tab2
----
-620
3068
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT ALL col1 DIV - col1 + col2 + + 90 DIV tab1.col2 FROM tab1
----
54
57
95
skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL col1 / - col1 + col2 + + 90 / tab1.col2 FROM tab1
----
54
57
95
query I rowsort
SELECT ALL + 48 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT ALL - col1 + tab1.col0 * 77 * col2 AS col1 FROM tab1
----
12448
280886
591347
query I rowsort
SELECT tab2.col1 + - ( - col0 ) FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT + col1 * + ( tab1.col1 ) + col1 FROM tab1
----
110
182
702
query I rowsort
SELECT col2 + + ( + ( - col0 ) + - col0 ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-15264
-270
-7239
query I rowsort
SELECT + col1 * 28 + - 48 FROM tab2 AS cor0
----
1604
428
820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + - col1 col2 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL + col2 + 26 * col1 FROM tab2
----
1560
480
833
onlyif mysql # use DIV operator for integer division
query I rowsort label-1491
SELECT col0 + tab2.col1 DIV + col1 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-1491
SELECT col0 + tab2.col1 / + col1 FROM tab2
----
79
8
80
query I rowsort
SELECT tab0.col2 + + 36 * col0 AS col1 FROM tab0
----
1261
3286
897
query I rowsort
SELECT col0 * - 79 FROM tab1
----
-237
-5056
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1494
SELECT ALL - 61 + + col0 * col2 * CAST( col0 + - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-4597
186063
38471
skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL - 61 + + col0 * col2 * CAST ( col0 + - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-4597
186063
38471
query I rowsort
SELECT DISTINCT + - ( col1 ) * col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT - ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - col0 * col2 + col0 * col2 + 53 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1272
-1855
-4717
query I rowsort
SELECT DISTINCT + col0 * - ( - cor0.col0 ) - + col1 AS col1 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT + 1 + + col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL col1 + + ( cor0.col2 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + - 9 * cor0.col0 FROM tab2 AS cor0
----
-63
-702
-711
query I rowsort
SELECT ALL 85 + col0 * + col2 FROM tab0 cor0
----
120
7383
877
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - - 18 + - col0 AS col0 FROM tab0 AS cor0
----
-17
-6
-71
query I rowsort
SELECT ALL + + col0 + - cor0.col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + + 84 * col1 FROM tab1 AS cor0
----
1092
2184
840
query I rowsort
SELECT DISTINCT - 96 + col0 + - col2 FROM tab0 AS cor0
----
-105
-62
-89
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 87 AS REAL ) * - col1 AS col1 FROM tab2 AS cor0
----
-1479
-2697
-5133
onlyif mysql # use DIV operator for integer division
query I rowsort label-1510
SELECT ALL + ( 14 ) DIV col0 FROM tab1 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + ( 14 ) / col0 FROM tab1 AS cor0
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1511
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-1511
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * - col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1512
SELECT ALL + col2 * col1 + col1 * - CAST( + col1 + + col2 AS SIGNED ) FROM tab2 cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-1512
SELECT ALL + col2 * col1 + col1 * - CAST ( + col1 + + col2 AS INTEGER ) FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT 78 + cor0.col1 - - col2 FROM tab2 AS cor0
----
133
136
163
query I rowsort
SELECT - col1 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col0 * - col1 - - col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL - ( + col2 ) * + col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 30 + cor0.col2 FROM tab1, tab0 AS cor0
----
112
31
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1518
SELECT DISTINCT + + col0 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT + + col0 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col0 * - ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1593
663
868
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 67 AS REAL ) * col0 - + cor0.col2 AS col2 FROM tab0 cor0
----
1575
2344
5881
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1522
SELECT - col2 + CAST( col0 AS SIGNED ) * - col1 FROM tab2
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-1522
SELECT - col2 + CAST ( col0 AS INTEGER ) * - col1 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT + ( - col1 ) * col2 * - ( - col2 * col2 ) FROM tab0 cor0
----
-3090582
-50174488
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1524
SELECT + CAST( col0 AS SIGNED ) * - cor0.col0 + - cor0.col0 col2 FROM tab1 AS cor0
----
-12
-4160
-6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1524
SELECT + CAST ( col0 AS INTEGER ) * - cor0.col0 + - cor0.col0 col2 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT - col0 + col2 * + cor0.col0 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT + col1 + + col0 * + 77 AS col1 FROM tab1 cor0
----
257
4938
6173
query I rowsort
SELECT + 3 * cor0.col0 AS col0 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT 26 + col2 FROM tab1 AS cor0
----
122
80
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col1 * col1 col1 FROM tab1 cor0
----
-1000
-17576
-2197
onlyif mysql # use DIV operator for integer division
query I rowsort label-1530
SELECT 31 + - col1 DIV + col0 FROM tab2
----
27
31
31
skipif mysql # not compatible
query I rowsort label-1530
SELECT 31 + - col1 / + col0 FROM tab2
----
27
31
31
query I rowsort
SELECT - 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT ALL - 61 * - tab0.col0 FROM tab0
----
1464
2135
5429
query I rowsort
SELECT col0 + col0 * col0 * - 19 AS col2 FROM tab1 cor0
----
-121520
-168
-77760
query I rowsort
SELECT ALL + 62 + + col2 AS col0 FROM tab0 AS cor0
----
144
63
95
query I rowsort
SELECT ALL - 65 * col2 FROM tab1 AS cor0
----
-3510
-3705
-6240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1536
SELECT - - col0 * CAST( - ( col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-1536
SELECT - - col0 * CAST ( - ( col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col2 * - col1 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-1798
-5015
-935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1538
SELECT DISTINCT col0 + + CAST( col1 * + col0 AS SIGNED ) FROM tab0 AS cor0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT col0 + + CAST ( col1 * + col0 AS INTEGER ) FROM tab0 AS cor0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 * - CAST ( + col2 * + col2 AS REAL ) FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT ALL col0 + 0 * 86 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 98 * col1 AS col0 FROM tab1
----
1274
2548
980
query I rowsort
SELECT - 57 * + tab0.col2 FROM tab0
----
-1881
-4674
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1543
SELECT DISTINCT col1 DIV + ( 95 ) AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1543
SELECT DISTINCT col1 / + ( 95 ) AS col1 FROM tab2
----
0
query I rowsort
SELECT col1 + - col1 * col0 * tab0.col2 AS col1 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT cor0.col0 + ( col0 ) * - col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT col0 * - 10 + col1 AS col2 FROM tab0 AS cor0
----
-154
-253
-799
query I rowsort
SELECT + col2 * + ( + col0 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 * + col2 * - col0 + 54 FROM tab1 AS cor0
----
-233418
-432
-614346
query I rowsort
SELECT 83 - + ( + col2 ) FROM tab2 AS cor0
----
45
56
57
query I rowsort
SELECT + ( + col0 ) + - col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1551
SELECT ALL - - 18 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1551
SELECT ALL - - 18 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 3 * col0 FROM tab0 cor0
----
105
267
72
query I rowsort
SELECT + - col2 * + col0 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT + cor1.col0 * ( 7 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fcd58c8f5819cd5317a12d4f81ca501
onlyif mysql # use DIV operator for integer division
query I rowsort label-1555
SELECT ( - 21 ) DIV + col0 FROM tab1
----
-7
0
0
skipif mysql # not compatible
query I rowsort label-1555
SELECT ( - 21 ) / + col0 FROM tab1
----
-7
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 + 75 col1 FROM tab2 AS cor0
----
2103
264
3077
query I rowsort
SELECT + 89 FROM tab0, tab0 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1558
SELECT + + col0 + CAST( ( - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-1558
SELECT + + col0 + CAST ( ( - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT DISTINCT 31 DIV cor0.col2 + col1 FROM tab0 AS cor0
----
128
86
91
skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT 31 / cor0.col2 + col1 FROM tab0 AS cor0
----
128
86
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 25 col0 FROM tab1 AS cor0
----
-12
-15
1
query I rowsort
SELECT + col2 * - col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
onlyif mysql # use DIV operator for integer division
query I rowsort label-1562
SELECT DISTINCT + + col2 DIV col1 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-1562
SELECT DISTINCT + + col2 / col1 + - col0 AS col2 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT + 66 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 18 + cor0.col2 + col1 col1 FROM tab1 cor0
----
127
85
98
query I rowsort
SELECT + + col0 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL col2 - col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL + 62 * + col2 + col2 AS col1 FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT tab1.col0 - col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL + 86 * col0 AS col2 FROM tab0 cor0
----
2064
3010
7654
onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT DISTINCT - 89 DIV col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT - 89 / col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT col2 + + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + - col2 * + col0 * - col0 col0 FROM tab0 AS cor0
----
1229
19012
649526
query I rowsort
SELECT - + 82 + - col2 AS col0 FROM tab1 cor0
----
-136
-139
-178
query I rowsort
SELECT DISTINCT + col0 * ( - 83 ) FROM tab1 AS cor0
----
-249
-5312
-6640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1575
SELECT - + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1575
SELECT - + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + + ( col1 ) * col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1577
SELECT DISTINCT col1 + - CAST( 25 AS SIGNED ) col2 FROM tab1 AS cor0
----
-12
-15
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT col1 + - CAST ( 25 AS INTEGER ) col2 FROM tab1 AS cor0
----
-12
-15
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1578
SELECT DISTINCT + - cor0.col0 - col1 DIV col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1578
SELECT DISTINCT + - cor0.col0 - col1 / col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - - col1 * ( col2 ) + col2 + col2 * + col1 * col2 FROM tab2 AS cor0
----
23463
25232
41444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 80 * col1 col1 FROM tab2
----
-1360
-2480
-4720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1581
SELECT DISTINCT - col2 + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1581
SELECT DISTINCT - col2 + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * 18 FROM tab0 AS cor0
----
-1602
-432
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL col1 * + col2 + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT + - col1 * + 27 + - 88 AS col1 FROM tab0 cor0
----
-2410
-2545
-2707
query I rowsort
SELECT - cor0.col0 + + ( - 30 ) AS col1 FROM tab2 AS cor0
----
-108
-109
-37
query I rowsort
SELECT ALL col2 * + 65 AS col1 FROM tab1
----
3510
3705
6240
query I rowsort
SELECT DISTINCT - col2 * ( - col0 ) FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1590
SELECT ALL - CAST( NULL AS SIGNED ) * - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL - CAST ( NULL AS INTEGER ) * - ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT - col1 + 46 * - 39 FROM tab0
----
-1880
-1885
-1891
skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( - col2 * - col1 AS REAL ) AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL - + col0 * - 52 + col1 AS col2 FROM tab0 AS cor0
----
1334
1917
4719
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1595
SELECT col1 * CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-1595
SELECT col1 * CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 + 40 * - col2 AS col0 FROM tab1
----
-2186
-2290
-3853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + - col2 col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT ALL - ( + col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col2 * col2 + - col2 AS col1 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT + + 4 * + col0 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT ALL + + cor0.col1 * + col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col1 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * + ( cor0.col0 ) FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + col1 + + 35 AS col0 FROM tab1
----
45
48
61
query I rowsort
SELECT ALL - 10 + col2 + + col2 AS col2 FROM tab2
----
42
44
66
query I rowsort
SELECT DISTINCT 18 * col1 - col0 FROM tab1
----
116
154
465
query I rowsort
SELECT 68 * + tab0.col0 AS col2 FROM tab0
----
1632
2380
6052
query I rowsort
SELECT ALL 69 + col1 FROM tab2
----
100
128
86
query I rowsort
SELECT DISTINCT + - 28 + col0 FROM tab0 AS cor0
----
-4
61
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1610
SELECT - col1 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-1610
SELECT - col1 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
0
8
query I rowsort
SELECT ALL - + 67 * col1 AS col2 FROM tab0 cor0
----
-5762
-6097
-6499
query I rowsort
SELECT ALL - 65 * col0 + 4 AS col0 FROM tab1 AS cor0
----
-191
-4156
-5196
query I rowsort
SELECT - col1 * col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT ALL + - cor0.col2 + col0 * - col2 * - 30 FROM tab0 AS cor0
----
1049
218858
23727
query I rowsort
SELECT - + 52 * + col0 + + 69 FROM tab2 AS cor0
----
-295
-3987
-4039
query I rowsort
SELECT DISTINCT - col2 * + col0 * cor0.col0 AS col0 FROM tab2 cor0
----
-1323
-158184
-237158
query I rowsort
SELECT ALL - 3 + col1 AS col0 FROM tab2 AS cor0
----
14
28
56
query I rowsort
SELECT ALL - 24 AS col0 FROM tab0
----
-24
-24
-24
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 37 AS REAL ) AS col1 FROM tab0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 99 col1 FROM tab1 AS cor0
----
109
112
125
query I rowsort
SELECT ALL + 85 AS col2 FROM tab2 AS cor0
----
85
85
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1622
SELECT ALL - - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-1622
SELECT ALL - - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + ( 29 ) * + col2 AS col2 FROM tab2 cor0
----
1102
754
783
onlyif mysql # use DIV operator for integer division
query I rowsort label-1624
SELECT DISTINCT + ( 57 ) * col0 DIV ( col1 * col0 ) AS col0 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-1624
SELECT DISTINCT + ( 57 ) * col0 / ( col1 * col0 ) AS col0 FROM tab1 AS cor0
----
2
4
5
query I rowsort
SELECT - 79 * + col2 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT DISTINCT - 48 * + col1 FROM tab2 AS cor0
----
-1488
-2832
-816
query I rowsort
SELECT + + 98 * - col0 AS col2 FROM tab2 AS cor0
----
-686
-7644
-7742
query I rowsort
SELECT + - col1 * col0 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1629
SELECT ALL - - col1 + col0 * col1 DIV - col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL - - col1 + col0 * col1 / - col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - 14 + 78 AS col0 FROM tab1
----
64
64
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1631
SELECT - CAST( 21 AS SIGNED ) FROM tab1
----
-21
-21
-21
skipif mysql # not compatible
query I rowsort label-1631
SELECT - CAST ( 21 AS INTEGER ) FROM tab1
----
-21
-21
-21
query I rowsort
SELECT 91 * + col0 + col2 FROM tab2
----
664
7124
7227
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col1 * - col1 col1 FROM tab0 cor0
----
636056
753571
912673
query I rowsort
SELECT - col1 * + 12 * col0 FROM tab2 AS cor0
----
-16116
-2604
-55224
query I rowsort
SELECT ALL + col2 * + 77 * - col0 FROM tab1 AS cor0
----
-12474
-280896
-591360
query I rowsort
SELECT DISTINCT - + col2 * 20 AS col1 FROM tab1 AS cor0
----
-1080
-1140
-1920
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab0, tab0 AS cor0
----
30
query I rowsort
SELECT ALL - - col2 * 81 FROM tab2 cor0
----
2106
2187
3078
onlyif mysql # use DIV operator for integer division
query I rowsort label-1639
SELECT col0 + col1 DIV 7 + - col0 * col2 FROM tab1 cor0
----
-156
-3583
-7599
skipif mysql # not compatible
query I rowsort label-1639
SELECT col0 + col1 / 7 + - col0 * col2 FROM tab1 cor0
----
-156
-3583
-7599
query I rowsort
SELECT - col1 + ( + 82 ) * - col1 FROM tab2 AS cor0
----
-1411
-2573
-4897
query I rowsort
SELECT ALL - col2 - - col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 * 50 - - ( + col2 ) AS col1 FROM tab0 cor0
----
-1167
-1749
-4368
query I rowsort
SELECT DISTINCT - 98 AS col1 FROM tab0, tab1, tab2 AS cor0
----
-98
query I rowsort
SELECT ALL + - col0 * 78 FROM tab0 AS cor0
----
-1872
-2730
-6942
query I rowsort
SELECT + col0 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT col1 + + cor0.col0 + 97 * - col0 AS col2 FROM tab1 AS cor0
----
-262
-6134
-7667
query I rowsort
SELECT + cor0.col0 * col2 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT col2 * - 26 FROM tab1
----
-1404
-1482
-2496
query I rowsort
SELECT - col1 + - ( 91 + col1 ) FROM tab1
----
-111
-117
-143
query I rowsort
SELECT + ( - 41 ) AS col0 FROM tab2 AS cor0
----
-41
-41
-41
query I rowsort
SELECT col0 + 82 * - col1 + 11 * 27 FROM tab0 AS cor0
----
-6731
-7076
-7622
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1652
SELECT + 9 * + col0 + + cor0.col0 + - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-24
583
704
skipif mysql # not compatible
query I rowsort label-1652
SELECT + 9 * + col0 + + cor0.col0 + - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-24
583
704
query I rowsort
SELECT col0 + - col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT + - ( + col2 ) + - cor0.col2 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1655
SELECT ALL CAST( cor0.col0 AS SIGNED ) * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL CAST ( cor0.col0 AS INTEGER ) * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + - 7 + 34 + - col0 FROM tab1 AS cor0
----
-37
-53
24
query I rowsort
SELECT + 52 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 7f4ae30893ab330784829711032ae599
query I rowsort
SELECT + col0 * - 51 FROM tab0
----
-1224
-1785
-4539
query I rowsort
SELECT + col1 + - 86 FROM tab1 AS cor0
----
-60
-73
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1660
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1660
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 65 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT + tab2.col0 * 7 AS col1 FROM tab2
----
49
546
553
onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT ALL + col0 DIV + 16 FROM tab1
----
0
4
5
skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL + col0 / + 16 FROM tab1
----
0
4
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1664
SELECT col0 * col0 DIV + tab0.col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1664
SELECT col0 * col0 / + tab0.col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1665
SELECT - col0 * col2 DIV - col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-1665
SELECT - col0 * col2 / - col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + col0 + + col1 * col2 AS col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT cor0.col2 * ( 88 ) AS col0 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT DISTINCT - col0 * 97 + - 47 FROM tab1 AS cor0
----
-338
-6255
-7807
query I rowsort
SELECT ALL + col0 + - col1 * 79 FROM tab0 AS cor0
----
-6770
-7100
-7628
onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT col0 DIV CAST( ( cor0.col1 ) AS SIGNED ) FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-1670
SELECT col0 / CAST ( ( cor0.col1 ) AS INTEGER ) FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT - col1 + + 55 FROM tab0 AS cor0
----
-31
-36
-42
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL col0 * - 41 FROM tab0 AS cor0
----
-1435
-3649
-984
onlyif mysql # use DIV operator for integer division
query I rowsort label-1674
SELECT ALL - col0 DIV col0 + col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL - col0 / col0 + col0 FROM tab2
----
6
77
78
query I rowsort
SELECT tab0.col0 + - 94 AS col2 FROM tab0
----
-5
-59
-70
query I rowsort
SELECT DISTINCT + col2 * 64 FROM tab0
----
2112
5248
64
query I rowsort
SELECT ALL - + cor0.col0 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - + cor0.col2 * - col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - col0 * 66 AS col1 FROM tab0
----
-1584
-2310
-5874
query I rowsort
SELECT col0 * + 65 + + col0 * col2 FROM tab0 AS cor0
----
13083
2310
2352
query I rowsort
SELECT - tab0.col0 + - col1 * - tab0.col0 FROM tab0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-1682
SELECT ( col1 ) DIV - 80 + + 35 * col2 AS col1 FROM tab0
----
1154
2869
34
skipif mysql # not compatible
query I rowsort label-1682
SELECT ( col1 ) / - 80 + + 35 * col2 AS col1 FROM tab0
----
1154
2869
34
query I rowsort
SELECT col0 + col1 * + 41 FROM tab1 AS cor0
----
1069
474
613
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT ALL - 17 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1686
SELECT ALL + cor0.col1 - col2 DIV + 51 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1686
SELECT ALL + cor0.col1 - col2 / + 51 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col1 + col0 * ( 84 ) AS col1 FROM tab0 AS cor0
----
2102
3037
7567
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1690
SELECT ALL - col0 * + col0 + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-1128
-490
-7830
skipif mysql # not compatible
query I rowsort label-1690
SELECT ALL - col0 * + col0 + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL 4 * - col2 + + col2 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT + 3 * 10 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 14 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-14
query I rowsort
SELECT + col2 + col0 * + col2 * + 48 FROM tab2
----
144134
9099
97370
query I rowsort
SELECT cor0.col0 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT - - 45 + + col2 AS col1 FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT DISTINCT 61 + - col2 FROM tab2 AS cor0
----
23
34
35
query I rowsort
SELECT DISTINCT + - col2 - - col1 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col2 + ( + col2 ) + + col1 FROM tab0 AS cor0
----
133
7471
911
query I rowsort
SELECT + 20 * - col0 FROM tab0 cor0
----
-1780
-480
-700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * + col0 col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col0 + 60 AS col1 FROM tab0 AS cor0
----
149
84
95
query I rowsort
SELECT DISTINCT + + col2 + - col2 AS col2 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT - cor0.col1 + - ( col2 ) DIV + cor0.col0 FROM tab0 cor0
----
-87
-91
-97
skipif mysql # not compatible
query I rowsort label-1704
SELECT - cor0.col1 + - ( col2 ) / + cor0.col0 FROM tab0 cor0
----
-87
-91
-97
query I rowsort
SELECT DISTINCT + col0 - + col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT - col0 * - col2 + col2 * + col2 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT + 29 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
onlyif mysql # use DIV operator for integer division
query I rowsort label-1708
SELECT ALL - col2 DIV + cor0.col0 + - ( + col0 ) + - 29 * col1 AS col2 FROM tab0 AS cor0
----
-2519
-2728
-2848
skipif mysql # not compatible
query I rowsort label-1708
SELECT ALL - col2 / + cor0.col0 + - ( + col0 ) + - 29 * col1 AS col2 FROM tab0 AS cor0
----
-2519
-2728
-2848
query I rowsort
SELECT 75 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
onlyif mysql # use DIV operator for integer division
query I rowsort label-1710
SELECT DISTINCT - ( col2 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT - ( col2 ) / + col1 AS col2 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT + 86 * cor0.col1 FROM tab1 AS cor0
----
1118
2236
860
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
skipif mysql # not compatible
query I rowsort
SELECT ALL + + CAST ( 35 AS REAL ) FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT col1 + ( col0 ) * cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1715
SELECT ALL + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1715
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( col0 ) + col2 AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT col1 * 9 - + 45 AS col1 FROM tab1
----
189
45
72
query I rowsort
SELECT + 17 + col0 AS col0 FROM tab1 AS cor0
----
20
81
97
query I rowsort
SELECT DISTINCT - - ( + 38 ) FROM tab2 AS cor0
----
38
query I rowsort
SELECT + ( - 1 ) * col2 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + ( col2 ) * + 45 AS col2 FROM tab0 AS cor0
----
1485
3690
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-1722
SELECT col2 DIV 57 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1722
SELECT col2 / 57 FROM tab1
----
0
1
1
query I rowsort
SELECT ( col0 ) + - col0 + + 98 FROM tab2
----
98
98
98
query I rowsort
SELECT + ( col2 ) + - ( col0 ) FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT DISTINCT + col1 DIV + col0 + 15 + + 38 DIV + col0 FROM tab0 AS cor0
----
16
18
19
skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT + col1 / + col0 + 15 + + 38 / + col0 FROM tab0 AS cor0
----
16
18
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1726
SELECT ALL - ( + col0 ) * CAST( 77 AS SIGNED ) + - col1 AS col1 FROM tab1 AS cor0
----
-257
-4938
-6173
skipif mysql # not compatible
query I rowsort label-1726
SELECT ALL - ( + col0 ) * CAST ( 77 AS INTEGER ) + - col1 AS col1 FROM tab1 AS cor0
----
-257
-4938
-6173
query I rowsort
SELECT ALL + 57 * + cor0.col0 * + col0 AS col2 FROM tab0 AS cor0
----
32832
451497
69825
query I rowsort
SELECT ALL + cor0.col2 * - col1 - - col1 * cor0.col1 FROM tab2 AS cor0
----
-357
124
1947
query I rowsort
SELECT ALL - col2 + + col2 + col1 FROM tab2
----
17
31
59
query I rowsort
SELECT + 40 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT - 26 * + col0 + + col2 - + col1 FROM tab0
----
-1006
-2323
-677
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + tab0.col1 + - col0 * col0 col0 FROM tab0
----
-6556
230
714
query I rowsort
SELECT ALL 47 + col2 * - tab1.col2 + 55 FROM tab1
----
-2814
-3147
-9114
query I rowsort
SELECT DISTINCT tab2.col0 + 95 * 45 AS col2 FROM tab2
----
4282
4353
4354
onlyif mysql # use DIV operator for integer division
query I rowsort label-1735
SELECT - + cor0.col1 DIV 30 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1735
SELECT - + cor0.col1 / 30 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - 14 + cor0.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 81b4d6c9832a62b38894dc917c4cedc2
query I rowsort
SELECT 64 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-1738
SELECT DISTINCT + 94 DIV col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT + 94 / col0 FROM tab0
----
1
2
3
query I rowsort
SELECT 18 * 50 FROM tab2
----
900
900
900
query I rowsort
SELECT col1 + + cor0.col2 * col0 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-1741
SELECT DISTINCT + tab0.col2 * col1 DIV + col1 + + col1 * + tab0.col0 col2 FROM tab0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT + tab0.col2 * col1 / + col1 + + col1 * + tab0.col0 col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT ( 11 ) AS col0 FROM tab2, tab2 cor0, tab2 AS cor1
----
11
query I rowsort
SELECT ALL - 45 * col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT DISTINCT - 96 * - col0 AS col2 FROM tab2 cor0
----
672
7488
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 90 * col2 col2 FROM tab1
----
-4860
-5130
-8640
query I rowsort
SELECT DISTINCT col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-1747
SELECT - col1 + + col1 DIV col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-1747
SELECT - col1 + + col1 / col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT + cor0.col1 + + 94 FROM tab1 cor0
----
104
107
120
query I rowsort
SELECT + - col1 + + col1 * col2 * - cor0.col1 FROM tab2 AS cor0
----
-10999
-25978
-90565
query I rowsort
SELECT - col2 * col1 + 9 AS col1 FROM tab2 AS cor0
----
-1525
-637
-828
query I rowsort
SELECT ALL col2 * ( - col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 + + 78 * col2 * + col2 col1 FROM tab1 AS cor0
----
227394
253365
718752
query I rowsort
SELECT - col0 - 21 * - col1 FROM tab1 AS cor0
----
146
193
543
onlyif mysql # use DIV operator for integer division
query I rowsort label-1754
SELECT col1 * col2 + + CAST( - col2 AS SIGNED ) DIV + col0 + col2 AS col0 FROM tab1
----
1343
1440
627
skipif mysql # not compatible
query I rowsort label-1754
SELECT col1 * col2 + + CAST ( - col2 AS INTEGER ) / + col0 + col2 AS col0 FROM tab1
----
1343
1440
627
query I rowsort
SELECT + col0 * ( 34 ) AS col2 FROM tab2 AS cor0
----
238
2652
2686
query I rowsort
SELECT DISTINCT tab1.col2 - - 62 AS col2 FROM tab1
----
116
119
158
query I rowsort
SELECT - col2 + ( + col1 ) + col0 FROM tab2
----
11
111
58
query I rowsort
SELECT - col2 - 55 FROM tab2
----
-81
-82
-93
query I rowsort
SELECT - col2 + - col0 * - tab0.col1 - col0 * tab0.col2 AS col2 FROM tab0
----
1239
3359
719
query I rowsort
SELECT - col0 + ( 79 ) AS col0 FROM tab2 AS cor0
----
0
1
72
query I rowsort
SELECT ALL - ( + col0 ) + col2 * + col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT cor0.col2 * 38 - col1 FROM tab0 AS cor0
----
-59
1168
3025
query I rowsort
SELECT DISTINCT - ( 9 ) + + col2 FROM tab1 AS cor0
----
45
48
87
query I rowsort
SELECT ALL - - col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - ( col1 ) - col2 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-1766
SELECT DISTINCT + col2 + - 66 DIV - col1 FROM tab1 AS cor0
----
101
56
63
skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + col2 + - 66 / - col1 FROM tab1 AS cor0
----
101
56
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 + - col0 col1 FROM tab1 AS cor0
----
-128
-144
-67
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-3
-64
-80
query I rowsort
SELECT - cor0.col2 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - col2 * col1 * + col0 - - col1 FROM tab0 AS cor0
----
-3298
-664027
-68026
query I rowsort
SELECT + col0 * + 59 + + col0 FROM tab2 AS cor0
----
420
4680
4740
query I rowsort
SELECT - + col2 + + cor0.col2 * - 21 AS col1 FROM tab2 AS cor0
----
-572
-594
-836
query I rowsort
SELECT - 47 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-4042
-4277
-4559
onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT ALL col1 + col1 DIV ( + 20 ) AS col0 FROM tab2 AS cor0
----
17
32
61
skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL col1 + col1 / ( + 20 ) AS col0 FROM tab2 AS cor0
----
17
32
61
query I rowsort
SELECT cor0.col0 + ( col2 ) AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + cor0.col1 + 13 FROM tab1 AS cor0
----
23
26
39
query I rowsort
SELECT DISTINCT - 71 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT DISTINCT - col2 DIV tab2.col1 AS col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT - col2 / tab2.col1 AS col1 FROM tab2
----
-2
0
query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 21 * - col1 FROM tab2 AS cor0
----
-1239
-357
-651
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - 97 * + 43 AS col2 FROM tab0 AS cor0
----
-4171
-4171
-4171
query I rowsort
SELECT col0 * col2 + cor0.col2 * 36 FROM tab1 cor0
----
11136
2106
5700
query I rowsort
SELECT + col0 * 19 * col2 AS col1 FROM tab2 AS cor0
----
3591
38532
57038
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1785
SELECT ALL + CAST( - ( + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL + CAST ( - ( + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + cor0.col0 + - col2 + col1 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT 40 + col0 FROM tab1 AS cor0
----
104
120
43
query I rowsort
SELECT col1 * ( + tab0.col2 ) AS col0 FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1789
SELECT DISTINCT - col1 + - cor0.col0 DIV col2 FROM tab1 AS cor0
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT - col1 + - cor0.col0 / col2 FROM tab1 AS cor0
----
-11
-13
-26
query I rowsort
SELECT DISTINCT + col0 * - col0 + cor0.col1 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT + col2 + + 7 * - col0 * ( col2 ) FROM tab1 cor0
----
-1080
-25479
-53664
query I rowsort
SELECT + - ( - 15 ) * - cor0.col0 + + 3 + cor0.col0 FROM tab2 AS cor0
----
-1089
-1103
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1793
SELECT ALL + + col0 * + col2 * + CAST( NULL AS SIGNED ) + - col0 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1793
SELECT ALL + + col0 * + col2 * + CAST ( NULL AS INTEGER ) + - col0 + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * col1 + col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - 90 AS col2 FROM tab2
----
-90
-90
-90
query I rowsort
SELECT DISTINCT col1 * + tab0.col1 + - col2 + - col1 * col0 FROM tab0
----
100
5299
6013
query I rowsort
SELECT col1 * col1 + - col0 - + col0 * col2 FROM tab0 AS cor0
----
6580
894
9339
query I rowsort
SELECT DISTINCT - + col2 * col0 * - cor0.col2 + + col2 AS col2 FROM tab1 AS cor0
----
207993
737376
8802
onlyif mysql # use DIV operator for integer division
query I rowsort label-1799
SELECT + col2 * + col2 + + col0 DIV + col1 - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
10470
3825
4320
skipif mysql # not compatible
query I rowsort label-1799
SELECT + col2 * + col2 + + col0 / + col1 - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
10470
3825
4320
query I rowsort
SELECT col0 * 10 - col0 FROM tab0 AS cor0
----
216
315
801
query I rowsort
SELECT + col0 + + ( col0 ) + col0 AS col0 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT ALL - - cor0.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + col1 + + col2 * col0 * + col1 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT ALL + col0 * ( - col0 ) + tab1.col1 * - 51 + col2 AS col1 FROM tab1
----
-1281
-4549
-6967
query I rowsort
SELECT col0 + col2 * + ( - col2 ) FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT tab0.col1 - - 5 AS col0 FROM tab0
----
102
91
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1807
SELECT DISTINCT - col0 DIV + col2 + col2 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT - col0 / + col2 + col2 FROM tab0
----
-34
33
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1808
SELECT - CAST( - cor0.col0 AS SIGNED ) * cor0.col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
skipif mysql # not compatible
query I rowsort label-1808
SELECT - CAST ( - cor0.col0 AS INTEGER ) * cor0.col1 - cor0.col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT col2 + - col2 * + 80 * col2 FROM tab0 AS cor0
----
-537838
-79
-87087
onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT ALL + - col0 DIV + 70 + + 98 + col1 FROM tab0 cor0
----
184
188
195
skipif mysql # not compatible
query I rowsort label-1810
SELECT ALL + - col0 / + 70 + + 98 + col1 FROM tab0 cor0
----
184
188
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT DISTINCT + tab2.col0 + + CAST( col1 AS SIGNED ) DIV col0 AS col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT + tab2.col0 + + CAST ( col1 AS INTEGER ) / col0 AS col0 FROM tab2
----
11
78
79
query I rowsort
SELECT DISTINCT 28 + + 44 * - col2 FROM tab2 cor0
----
-1116
-1160
-1644
query I rowsort
SELECT ALL 83 * + col1 FROM tab0
----
7138
7553
8051
query I rowsort
SELECT ALL - cor0.col2 + - col1 * + col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-1815
SELECT ALL - col0 + - cor0.col2 DIV + cor0.col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - col0 + - cor0.col2 / + cor0.col2 FROM tab0 AS cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 + + col2 col2 FROM tab1 AS cor0
----
152
155
194
query I rowsort
SELECT - col1 + 82 AS col2 FROM tab0 cor0
----
-15
-4
-9
query I rowsort
SELECT - + col0 * + col2 - - col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1819
SELECT DISTINCT + + CAST( - 29 AS SIGNED ) - + col0 FROM tab0 AS cor0
----
-118
-53
-64
skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT + + CAST ( - 29 AS INTEGER ) - + col0 FROM tab0 AS cor0
----
-118
-53
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + col0 col0 FROM tab1
----
115
131
54
query I rowsort
SELECT ( col2 * col2 ) - 3 * - col0 * 8 FROM tab2
----
2548
3340
897
query I rowsort
SELECT DISTINCT 5 + col1 FROM tab0 AS cor0
----
102
91
96
query I rowsort
SELECT ALL + + col0 * col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT ALL col2 * - col2 + ( - 99 ) FROM tab2 AS cor0
----
-1543
-775
-828
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - cor0.col0 * - ( col0 ) + - col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT ALL - col2 + + 91 FROM tab2 cor0
----
53
64
65
query I rowsort
SELECT ALL col1 + 5 * col1 * - col2 AS col2 FROM tab2 cor0
----
-3213
-4154
-7611
skipif mysql # not compatible
query I rowsort
SELECT + col0 - - CAST ( + 56 AS REAL ) AS col1 FROM tab2 AS cor0
----
134
135
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-1830
SELECT ALL + - cor0.col1 + - 74 DIV col2 FROM tab0 AS cor0
----
-171
-88
-91
skipif mysql # not compatible
query I rowsort label-1830
SELECT ALL + - cor0.col1 + - 74 / col2 FROM tab0 AS cor0
----
-171
-88
-91
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col2 - + 39 * - col0 * + col2 AS col2 FROM tab2 AS cor0
----
117116
7398
79118
query I rowsort
SELECT + cor0.col2 - - col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + col0 + - col1 + col0 * - col0 FROM tab2 cor0
----
-6065
-6179
-73
query I rowsort
SELECT ALL + col1 * col2 * + 36 FROM tab2
----
23256
30132
55224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 43 * col1 col0 FROM tab2 AS cor0
----
-1306
-2511
-693
onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT ALL col2 DIV + col0 - col2 * - col2 FROM tab2 AS cor0
----
1444
676
732
skipif mysql # not compatible
query I rowsort label-1837
SELECT ALL col2 / + col0 - col2 * - col2 FROM tab2 AS cor0
----
1444
676
732
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * ( + col0 ) + + col2 * cor0.col2 col1 FROM tab2 AS cor0
----
2704
4446
918
query I rowsort
SELECT col0 + cor0.col1 * 3 + ( cor0.col0 ) FROM tab0 AS cor0
----
306
361
451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1840
SELECT - col2 * col0 - CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1840
SELECT - col2 * col0 - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + col1 + col2 * 47 FROM tab0 AS cor0
----
1723
241
4036
onlyif mysql # use DIV operator for integer division
query I rowsort label-1842
SELECT + col2 DIV - col0 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1842
SELECT + col2 / - col0 AS col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL ( col0 ) + - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 19 * - tab1.col0 AS col2 FROM tab1, tab0, tab2 AS cor0
----
1216
1520
57
query I rowsort
SELECT + + 36 + col0 + + 10 FROM tab2 cor0
----
124
125
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT ALL + cor0.col2 * + col2 * - CAST( + ( + col1 ) + + col1 AS SIGNED ) FROM tab1 cor0
----
-151632
-239616
-64980
skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + cor0.col2 * + col2 * - CAST ( + ( + col1 ) + + col1 AS INTEGER ) FROM tab1 cor0
----
-151632
-239616
-64980
query I rowsort
SELECT DISTINCT 9 * col1 * ( + col1 * - col2 ) FROM tab1
----
-146016
-328536
-51300
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * col0 + + col2 + 65 col1 FROM tab0 AS cor0
----
-1846
-2769
-7062
query I rowsort
SELECT DISTINCT cor0.col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - 1 * - col1 AS col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1851
SELECT - col2 * - col1 + col1 DIV tab2.col0 AS col2 FROM tab2
----
1534
646
841
skipif mysql # not compatible
query I rowsort label-1851
SELECT - col2 * - col1 + col1 / tab2.col0 AS col2 FROM tab2
----
1534
646
841
query I rowsort
SELECT - col0 * 78 FROM tab0 AS cor0
----
-1872
-2730
-6942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT ALL - CAST( NULL AS SIGNED ) * 82 * tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - CAST ( NULL AS INTEGER ) * 82 * tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col1 * col0 * - ( col1 ) FROM tab2
----
-22831
-271518
-6727
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 * 2 col0 FROM tab1 AS cor0
----
-138
query I rowsort
SELECT - + 19 * - 34 AS col2 FROM tab2 AS cor0
----
646
646
646
query I rowsort
SELECT DISTINCT - 70 * col2 FROM tab1 AS cor0
----
-3780
-3990
-6720
query I rowsort
SELECT - 81 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to bab7cb237ee73283089388c330f59598
query I rowsort
SELECT + - 89 + + 17 * col1 FROM tab1 cor0
----
132
353
81
query I rowsort
SELECT - + col1 + - cor0.col2 * - col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT - col0 + 94 AS col1 FROM tab1 AS cor0
----
14
30
91
query I rowsort
SELECT DISTINCT - - ( - 90 ) + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2748
7
7372
query I rowsort
SELECT - + col2 * + 35 FROM tab2 AS cor0
----
-1330
-910
-945
query I rowsort
SELECT ALL + + ( - 28 ) FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT - + col2 * col0 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + + 96 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1439
313
4698
query I rowsort
SELECT ALL + col1 - - col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - + 43 * col0 AS col1 FROM tab2 AS cor0
----
-301
-3354
-3397
onlyif mysql # use DIV operator for integer division
query I rowsort label-1869
SELECT ALL col1 DIV col2 - - col2 DIV col2 FROM tab0 AS cor0
----
2
3
98
skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL col1 / col2 - - col2 / col2 FROM tab0 AS cor0
----
2
3
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1870
SELECT DISTINCT - 98 * col0 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - 98 * col0 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * col2 + - col2 FROM tab0 AS cor0
----
-36
-7380
-825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + cor0.col0 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8
query I rowsort
SELECT ALL - col1 * col0 + col2 * col1 AS col2 FROM tab1 cor0
----
-70
1326
208
query I rowsort
SELECT ALL - col1 * + col0 + ( cor0.col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-1875
SELECT + col0 DIV 6 + - col0 + col0 FROM tab1 cor0
----
0
10
13
skipif mysql # not compatible
query I rowsort label-1875
SELECT + col0 / 6 + - col0 + col0 FROM tab1 cor0
----
0
10
13
query I rowsort
SELECT col1 + + cor0.col2 + 66 AS col2 FROM tab1 AS cor0
----
133
146
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col1 col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT + col2 DIV + col0 + + col1 * cor0.col2 + col1 * - col1 * + col2 AS col1 FROM tab2 cor0
----
-10336
-25107
-88972
skipif mysql # not compatible
query I rowsort label-1878
SELECT + col2 / + col0 + + col1 * cor0.col2 + col1 * - col1 * + col2 AS col1 FROM tab2 cor0
----
-10336
-25107
-88972
onlyif mysql # use DIV operator for integer division
query I rowsort label-1879
SELECT DISTINCT col0 + + 29 DIV col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-1879
SELECT DISTINCT col0 + + 29 / col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT col2 * + col2 + - col1 * col2 FROM tab2 AS cor0
----
-108
-858
798
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab1, tab2, tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + col0 * - col1 - + tab1.col2 col0 FROM tab1
----
-1056
-129
-633
query I rowsort
SELECT - 89 + tab0.col2 AS col1 FROM tab0
----
-56
-7
-88
query I rowsort
SELECT ALL + col0 * cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL 5 FROM tab1, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0da436460d6fcea5a1eb4b1d2219d7c9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1886
SELECT + 62 * + col1 / CAST( NULL AS SIGNED ) + + 56 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1886
SELECT + 62 * + col1 / CAST ( NULL AS INTEGER ) + + 56 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 53 + col1 * tab1.col2 AS col1 FROM tab1
----
1195
1351
517
query I rowsort
SELECT - + ( col0 ) + + ( col2 ) AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - col1 * + 9 AS col2 FROM tab2 cor0
----
-153
-279
-531
query I rowsort
SELECT DISTINCT + - col2 + - 18 FROM tab1 cor0
----
-114
-72
-75
query I rowsort
SELECT DISTINCT - - col0 * 14 FROM tab1 AS cor0
----
1120
42
896
query I rowsort
SELECT col0 * col0 + - col1 AS col0 FROM tab0 cor0
----
1128
490
7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-1893
SELECT ALL col2 DIV - ( + cor0.col0 ) col2 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1893
SELECT ALL col2 / - ( + cor0.col0 ) col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL + col2 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 75 col2 FROM tab2 AS cor0
----
1275
2325
4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-1896
SELECT DISTINCT col1 DIV - 33 AS col1 FROM tab0 AS cor0
----
-2
skipif mysql # not compatible
query I rowsort label-1896
SELECT DISTINCT col1 / - 33 AS col1 FROM tab0 AS cor0
----
-2
query I rowsort
SELECT + col1 * 22 AS col1 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT ALL col0 * + cor0.col0 - + col1 AS col0 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT DISTINCT - col2 + + cor0.col2 * cor0.col0 FROM tab0 cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT col2 - - col2 DIV col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-1900
SELECT col2 - - col2 / col2 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT ALL + col1 - col2 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + + col0 * + col1 + + col2 FROM tab0 cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT - col0 * 94 + + col0 AS col2 FROM tab2 AS cor0
----
-651
-7254
-7347
query I rowsort
SELECT DISTINCT - col2 + + 29 * - 96 FROM tab1 cor0
----
-2838
-2841
-2880
query I rowsort
SELECT + 18 * col1 AS col1 FROM tab0 AS cor0
----
1548
1638
1746
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 * + col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - + 34 AS col0 FROM tab2 AS cor0
----
-34
-34
-34
query I rowsort
SELECT ALL - col2 * - 97 * col0 FROM tab2 AS cor0
----
18333
196716
291194
onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT DISTINCT + col0 DIV + 83 FROM tab0 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT + col0 / + 83 FROM tab0 cor0
----
0
1
query I rowsort
SELECT ALL + - 50 * col0 AS col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
query I rowsort
SELECT DISTINCT - - ( ( - col2 ) ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + ( + col0 ) + col0 * 1 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( col2 ) + 62 + col1 col0 FROM tab2 AS cor0
----
41
66
95
query I rowsort
SELECT DISTINCT + cor0.col2 * - 15 AS col2 FROM tab1, tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT 59 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1916
SELECT - + col0 DIV col0 - + col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-1916
SELECT - + col0 / col0 - + col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT DISTINCT 33 * - 5 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-165
query I rowsort
SELECT DISTINCT - 0 - col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col0 * - 53 FROM tab1
----
159
3392
4240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 col1 FROM tab1 AS cor0
----
-23
query I rowsort
SELECT - col2 - - col2 * 27 AS col1 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL ( - cor0.col1 ) + - 39 AS col2 FROM tab0 AS cor0
----
-125
-130
-136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + cor0.col2 * - col2 + - 98 col2 FROM tab0 AS cor0
----
-195
-611982
-93752
query I rowsort
SELECT ALL 24 * col1 FROM tab0
----
2064
2184
2328
query I rowsort
SELECT ALL - ( - 42 ) * + col2 FROM tab2
----
1092
1134
1596
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1926
SELECT ALL - col2 + - col0 * + CAST( 45 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1113
-1576
-4087
skipif mysql # not compatible
query I rowsort label-1926
SELECT ALL - col2 + - col0 * + CAST ( 45 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1113
-1576
-4087
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1927
SELECT - cor0.col0 * col1 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-177504
-329315
-737009
skipif mysql # not compatible
query I rowsort label-1927
SELECT - cor0.col0 * col1 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - 66 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT ALL - 21 + col1 - - 44 AS col1 FROM tab2 cor0
----
40
54
82
query I rowsort
SELECT ALL - - 72 - - col2 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT ALL - col0 + + col1 * - 14 * col2 AS col2 FROM tab2 AS cor0
----
-11725
-21554
-9123
query I rowsort
SELECT DISTINCT ( - col1 ) + ( - col1 ) AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT col1 + + col0 * - ( + col2 + - cor0.col1 ) FROM tab0 AS cor0
----
1358
3457
892
query I rowsort
SELECT + - cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT 60 + col0 + - 52 AS col2 FROM tab2
----
15
86
87
query I rowsort
SELECT ALL - - cor1.col1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1937
SELECT ALL + col2 * col2 + + CAST( col1 AS SIGNED ) * - col2 FROM tab0
----
-1749
-738
-96
skipif mysql # not compatible
query I rowsort label-1937
SELECT ALL + col2 * col2 + + CAST ( col1 AS INTEGER ) * - col2 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT + 62 * - col2 + - col2 FROM tab1 AS cor0
----
-3402
-3591
-6048
query I rowsort
SELECT DISTINCT 25 + col1 AS col1 FROM tab0 cor0
----
111
116
122
query I rowsort
SELECT DISTINCT tab1.col2 * + col0 + col1 * + 98 AS col2 FROM tab1
----
2710
4628
8954
query I rowsort
SELECT - - cor0.col1 * - 73 AS col1 FROM tab1 AS cor0
----
-1898
-730
-949
query I rowsort
SELECT ALL - 40 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT DISTINCT col1 + 93 FROM tab0
----
179
184
190
query I rowsort
SELECT - 82 * - col1 AS col0 FROM tab1 cor0
----
1066
2132
820
onlyif mysql # use DIV operator for integer division
query I rowsort label-1945
SELECT DISTINCT + col2 DIV col1 + col1 DIV tab0.col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT + col2 / col1 + col1 / tab0.col1 FROM tab0
----
1
query I rowsort
SELECT col0 * + 40 AS col1 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT ALL + + 29 + 93 FROM tab1 AS cor0
----
122
122
122
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 * col1 col0 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT DISTINCT ( 62 ) AS col2 FROM tab1 AS cor0
----
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1950
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col2 * 7 FROM tab0 cor0
----
231
574
7
query I rowsort
SELECT - + col1 + col1 * + cor0.col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + cor0.col2 * 2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - col1 * - col1 + cor0.col1 * 4 FROM tab0 AS cor0
----
7740
8645
9797
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 col0 FROM tab2, tab2 AS cor0
----
-26
-27
-38
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to e678818485e7b492c8b5d6db976ebc7d
query I rowsort
SELECT ALL - col1 + - 23 * - col2 + + col0 * + col0 AS col2 FROM tab1 cor0
----
1225
5397
8595
query I rowsort
SELECT DISTINCT 10 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
10
query I rowsort
SELECT + - col0 * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 * + col2 - - ( cor0.col1 ) col1 FROM tab1 AS cor0
----
-1162
-1244
-2099
query I rowsort
SELECT - 35 * col0 + - 35 * - col0 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT 32 + - col1 AS col0 FROM tab2
----
-27
1
15
query I rowsort
SELECT + col0 + 61 FROM tab0 cor0
----
150
85
96
query I rowsort
SELECT DISTINCT ( col0 * - col0 + col2 ) AS col2 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT 11 + col1 * + 86 FROM tab0
----
7407
7837
8353
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1966
SELECT tab0.col1 + CAST( NULL AS SIGNED ) * + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1966
SELECT tab0.col1 + CAST ( NULL AS INTEGER ) * + tab0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor0.col0 + + col0 * col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL col1 * 92 FROM tab0 AS cor0
----
7912
8372
8924
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1969
SELECT + col1 + + CAST( NULL AS SIGNED ) * - 20 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1969
SELECT + col1 + + CAST ( NULL AS INTEGER ) * - 20 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 + - col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + col2 * - col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort
SELECT + col1 * CAST ( 79 AS REAL ) * col1 AS col1 FROM tab2 AS cor0
----
22831
274999
75919
query I rowsort
SELECT ALL col0 * - 97 FROM tab2
----
-679
-7566
-7663
onlyif mysql # use DIV operator for integer division
query I rowsort label-1974
SELECT col2 DIV ( cor0.col0 ) + + col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-1974
SELECT col2 / ( cor0.col0 ) + + col0 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT cor0.col1 * 28 FROM tab2, tab0 cor0
----
9 values hashing to a332cfd25dcf64ec1aac7d898652e988
query I rowsort
SELECT tab0.col0 + 89 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to bfa2466e465fd91de2c64217c746cb38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT DISTINCT - col0 * 30 DIV + col0 FROM tab2
----
-30
skipif mysql # not compatible
query I rowsort label-1978
SELECT DISTINCT - col0 * 30 / + col0 FROM tab2
----
-30
query I rowsort
SELECT DISTINCT ( 30 + col1 ) * col2 * tab0.col0 AS col2 FROM tab0
----
4445
883058
91872
onlyif mysql # use DIV operator for integer division
query I rowsort label-1980
SELECT + 24 DIV 5 AS col0 FROM tab2
----
4
4
4
skipif mysql # not compatible
query I rowsort label-1980
SELECT + 24 / 5 AS col0 FROM tab2
----
4
4
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1981
SELECT ALL - cor0.col0 * + col1 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL - cor0.col0 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 81 ) * col0 col1 FROM tab0
----
1944
2835
7209
query I rowsort
SELECT + + 63 AS col2 FROM tab1, tab0, tab2 cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 + + tab2.col2 + col2 col1 FROM tab2
----
111
85
93
query I rowsort
SELECT ( col2 ) + + col0 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + 71 - + col0 FROM tab2
----
-7
-8
64
query I rowsort
SELECT + + col0 * col2 * - col0 + col0 AS col2 FROM tab2 AS cor0
----
-1316
-158106
-237079
query I rowsort
SELECT 47 * - col0 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-1181
-1741
-4192
onlyif mysql # use DIV operator for integer division
query I rowsort label-1989
SELECT col0 * + cor0.col0 + - col0 DIV + 46 FROM tab1 AS cor0
----
4095
6399
9
skipif mysql # not compatible
query I rowsort label-1989
SELECT col0 * + cor0.col0 + - col0 / + 46 FROM tab1 AS cor0
----
4095
6399
9
query I rowsort
SELECT DISTINCT - 61 + - col2 AS col2 FROM tab1 AS cor0
----
-115
-118
-157
query I rowsort
SELECT DISTINCT + col0 * col2 + ( col0 + - col1 ) * - ( col0 ) FROM tab0 cor0
----
2205
2280
7476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * + col2 + 7 * col1 col2 FROM tab1 AS cor0
----
-2734
-3179
-9125
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col1 col0 FROM tab2, tab1, tab0 cor0
----
17
31
59
query I rowsort
SELECT col0 - - col0 * col0 FROM tab1
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-1995
SELECT col0 * + col2 + - col2 * col2 DIV + tab0.col1 AS col1 FROM tab0
----
35
7225
780
skipif mysql # not compatible
query I rowsort label-1995
SELECT col0 * + col2 + - col2 * col2 / + tab0.col1 AS col1 FROM tab0
----
35
7225
780
query I rowsort
SELECT col2 + col2 * - col2 AS col0 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT + - col0 * - col1 - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - - col1 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col0 * col2 + col1 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col1 + col1 * + tab2.col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT col2 * col2 + + tab1.col1 * col0 FROM tab1
----
10256
2994
3889
query I rowsort
SELECT DISTINCT col2 * - col1 * col1 + col0 * - col2 FROM tab1
----
-23904
-36666
-9348
query I rowsort
SELECT col0 + - col1 + col0 FROM tab2 cor0
----
-17
141
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - + cor0.col1 + - col2 * + cor0.col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT - tab1.col0 + - col1 * + col1 AS col0 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT ALL - tab1.col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( - col1 * - col0 * col0 )
----
query I rowsort
SELECT + col1 + - cor0.col0 * + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT - + col0 + cor0.col0 * col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - col2 + - col0 + col2 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col1 * col2 + col1 * col0 FROM tab1 cor0
----
-1326
-208
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - cor0.col0 + - col0 col2 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2013
SELECT ALL col0 + - col0 DIV - col0 + + col1 AS col2 FROM tab1 AS cor0
----
30
75
94
skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL col0 + - col0 / - col0 + + col1 AS col2 FROM tab1 AS cor0
----
30
75
94
query I rowsort
SELECT + col2 - col1 * col0 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT col1 * - col1 - - col2 * + col0 FROM tab1 AS cor0
----
-514
3548
7511
onlyif mysql # use DIV operator for integer division
query I rowsort label-2016
SELECT DISTINCT + col2 * - col2 * col0 + - col1 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
-114076
-5099
-52728
skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT + col2 * - col2 * col0 + - col1 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
-114076
-5099
-52728
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 AS col0 FROM tab1 cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 - col1 col0 FROM tab0
----
-19
-24
-30
query I rowsort
SELECT tab0.col1 * col0 + col0 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - + 78 + col2 AS col2 FROM tab0 AS cor0
----
-45
-77
4
query I rowsort
SELECT + cor0.col2 + - col1 AS col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2022
SELECT DISTINCT + col1 + col1 DIV col0 - - col1 * + cor0.col1 * col2 FROM tab0 AS cor0
----
244157
679134
9508
skipif mysql # not compatible
query I rowsort label-2022
SELECT DISTINCT + col1 + col1 / col0 - - col1 * + cor0.col1 * col2 FROM tab0 AS cor0
----
244157
679134
9508
query I rowsort
SELECT - 2 * col1 + - col0 AS col0 FROM tab0 AS cor0
----
-196
-229
-271
query I rowsort
SELECT ALL - col1 + col2 AS col2 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + col2 + + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 + + col0 col2 FROM tab1 cor0
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 * + col1 col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT col0 + col1 * tab0.col2 AS col0 FROM tab0
----
132
2862
7551
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) IN ( - tab1.col1 * - tab1.col2 + + col1 * - col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT DISTINCT tab2.col1 * col1 + col2 DIV - tab2.col1 FROM tab2
----
287
3481
961
skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT tab2.col1 * col1 + col2 / - tab2.col1 FROM tab2
----
287
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col1 col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL col0 * + tab0.col0 * col1 FROM tab0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-2033
SELECT col0 DIV - tab1.col0 + col1 + + col1 * - tab1.col2 FROM tab1
----
-1236
-1379
-561
skipif mysql # not compatible
query I rowsort label-2033
SELECT col0 / - tab1.col0 + col1 + + col1 * - tab1.col2 FROM tab1
----
-1236
-1379
-561
query I rowsort
SELECT ALL - col0 - - col1 * + col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT col1 + + col1 * tab0.col0 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT tab1.col1 * + col1 AS col1 FROM tab1 WHERE NOT col0 >= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col0 col0 FROM tab0
----
2
62
62
query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 * col1 )
----
query I rowsort
SELECT ALL tab0.col1 - col0 AS col2 FROM tab0
----
2
62
62
query I rowsort
SELECT + cor0.col0 * col1 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
4736
7440
87
query I rowsort
SELECT cor0.col0 + - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a
query I rowsort
SELECT DISTINCT col0 * cor0.col2 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col0 * + col2 * + cor0.col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT col1 + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-2045
SELECT - col2 DIV - col0 + - col0 FROM tab1 cor0
----
-64
-79
15
skipif mysql # not compatible
query I rowsort label-2045
SELECT - col2 / - col0 + - col0 FROM tab1 cor0
----
-64
-79
15
query I rowsort
SELECT ALL + col2 + col2 - col1 * - tab0.col1 AS col2 FROM tab0
----
7462
8445
9411
query I rowsort
SELECT DISTINCT - tab1.col0 * - col0 * col0 AS col0 FROM tab1
----
262144
27
512000
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * tab0.col2 + - col2 * + col0 col2 FROM tab0
----
-34
-574
297
query I rowsort
SELECT col2 + - col1 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-1322
-221
-4635
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
134
163
65
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 > + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col1 * col1 + tab1.col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT + tab2.col1 * tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + col2 - 73 FROM tab1 AS cor0
----
-16
-19
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT - 23 DIV - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2056
SELECT - 23 / - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 85 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1445
2635
5015
query I rowsort
SELECT - col0 * ( + col0 ) FROM tab0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2059
SELECT ( 95 ) DIV + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65
skipif mysql # not compatible
query I rowsort label-2059
SELECT ( 95 ) / + cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 30059525963e6a5b29a2a621770fff65
query I rowsort
SELECT - col1 * + col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - col0 + + col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT - + col1 * 72 + - 36 AS col0 FROM tab0 AS cor0
----
-6228
-6588
-7020
query I rowsort
SELECT col2 + ( col1 ) + col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT + - col0 * col0 + + col1 AS col2 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT - + 63 + col2 FROM tab1 AS cor0
----
-6
-9
33
query I rowsort
SELECT + - col0 * - 93 + col2 AS col2 FROM tab0 AS cor0
----
2265
3256
8359
query I rowsort
SELECT + ( 91 ) FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT col2 * cor0.col0 + col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT - col1 * 71 FROM tab0 cor0
----
-6106
-6461
-6887
query I rowsort
SELECT - col0 * 61 AS col0 FROM tab0
----
-1464
-2135
-5429
query I rowsort
SELECT ALL - col2 + 62 AS col0 FROM tab1
----
-34
5
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2072
SELECT ALL col1 + col2 DIV col2 AS col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col1 + col2 / col2 AS col1 FROM tab1
----
11
14
27
query I rowsort
SELECT ALL col2 * 22 + - col1 FROM tab0
----
-75
1713
640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 col2 FROM tab1, tab2 AS cor0
----
0
query I rowsort
SELECT + + 49 + - 85 AS col0 FROM tab2 cor0
----
-36
-36
-36
query I rowsort
SELECT - 18 + col1 FROM tab0 AS cor0
----
68
73
79
query I rowsort
SELECT DISTINCT - ( - col2 ) + + col0 * col0 FROM tab1 cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-2078
SELECT DISTINCT + 97 DIV 44 col2 FROM tab2 AS cor0
----
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + 97 / 44 col2 FROM tab2 AS cor0
----
2
query I rowsort
SELECT ALL - col1 * + col0 + + col2 - - cor0.col2 FROM tab2 AS cor0
----
-1267
-163
-4550
query I rowsort
SELECT col1 + - col2 * - col2 AS col1 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT - ( cor0.col1 ) + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 * - cor0.col2 + + cor0.col1 AS col0 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT ( col2 ) + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL + + 22 AS col1 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT + 24 * - col0 * + col0 + + col2 FROM tab1 AS cor0
----
-153504
-162
-98247
query I rowsort
SELECT DISTINCT - ( + col0 ) * col0 + - col0 FROM tab2 cor0
----
-56
-6162
-6320
query I rowsort
SELECT - col0 * - 24 * + tab0.col0 AS col1 FROM tab0
----
13824
190104
29400
query I rowsort
SELECT ( col1 ) * - tab2.col0 * col0 AS col2 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - col2 - - col2 * col0 AS col2 FROM tab0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2090
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - col0 + tab2.col2 / tab2.col1 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT CAST ( NULL AS REAL ) * - col0 + tab2.col2 / tab2.col1 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT + 4 * col1 AS col0 FROM tab0
----
344
364
388
onlyif mysql # use DIV operator for integer division
query I rowsort label-2092
SELECT DISTINCT tab2.col2 + - tab2.col2 DIV col0 + + col0 DIV col1 AS col1 FROM tab2
----
24
27
42
skipif mysql # not compatible
query I rowsort label-2092
SELECT DISTINCT tab2.col2 + - tab2.col2 / col0 + + col0 / col1 AS col1 FROM tab2
----
24
27
42
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + col1 + 84 FROM tab0 AS cor0
----
-13
-2
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2095
SELECT col0 DIV 55 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2095
SELECT col0 / 55 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT - col1 + 42 FROM tab2 AS cor0
----
-17
11
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-2097
SELECT DISTINCT - col2 * col2 DIV - col0 AS col0 FROM tab1
----
115
50
972
skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT - col2 * col2 / - col0 AS col0 FROM tab1
----
115
50
972
onlyif mysql # use DIV operator for integer division
query I rowsort label-2098
SELECT ALL + col2 DIV - col0 AS col2 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + col2 / - col0 AS col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL - 27 + cor0.col0 * - cor0.col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 87fe8790a62ea355cfcd16e5b4e1f58d
onlyif mysql # use DIV operator for integer division
query I rowsort label-2100
SELECT + + col0 DIV + 57 + col2 FROM tab2 cor0
----
27
27
39
skipif mysql # not compatible
query I rowsort label-2100
SELECT + + col0 / + 57 + col2 FROM tab2 cor0
----
27
27
39
query I rowsort
SELECT ALL col2 - col2 * 47 FROM tab2
----
-1196
-1242
-1748
query I rowsort
SELECT DISTINCT - + col1 - col0 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + col0 + + col2 * ( col0 ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - + col1 + ( col1 ) * + col2 AS col0 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2105
SELECT ALL col2 + - CAST( 90 AS SIGNED ) * - col0 * 54 AS col2 FROM tab0 AS cor0
----
116673
170101
432622
skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL col2 + - CAST ( 90 AS INTEGER ) * - col0 * 54 AS col2 FROM tab0 AS cor0
----
116673
170101
432622
query I rowsort
SELECT DISTINCT cor0.col0 * + 20 AS col1 FROM tab1, tab1 cor0
----
1280
1600
60
query I rowsort
SELECT + 35 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT + col1 * 40 FROM tab2 cor0
----
1240
2360
680
query I rowsort
SELECT + + col0 * + 68 * col0 FROM tab0 AS cor0
----
39168
538628
83300
query I rowsort
SELECT + col2 - - 23 * tab0.col1 AS col0 FROM tab0
----
2011
2175
2232
query I rowsort
SELECT - col0 * - 65 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT - + 63 * + col0 AS col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2113
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( - cor0.col2 ) FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( - cor0.col2 ) FROM tab0, tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + tab2.col0 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT - col1 * + 36 AS col1 FROM tab1
----
-360
-468
-936
query I rowsort
SELECT DISTINCT col0 * col2 * col0 AS col2 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT col2 + - cor0.col1 * + 7 FROM tab2 AS cor0
----
-190
-387
-81
query I rowsort
SELECT ALL - 70 + col1 AS col2 FROM tab1 AS cor0
----
-44
-57
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT DISTINCT - 22 DIV - col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2119
SELECT DISTINCT - 22 / - col1 FROM tab0 cor0
----
0
query I rowsort
SELECT 99 + col2 FROM tab2 AS cor0
----
125
126
137
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2121
SELECT ALL CAST( ( + col1 ) AS SIGNED ) + + ( 25 ) * - col1 FROM tab2
----
-1416
-408
-744
skipif mysql # not compatible
query I rowsort label-2121
SELECT ALL CAST ( ( + col1 ) AS INTEGER ) + + ( 25 ) * - col1 FROM tab2
----
-1416
-408
-744
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2122
SELECT + CAST( col0 AS SIGNED ) * + col0 AS col1 FROM tab2
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-2122
SELECT + CAST ( col0 AS INTEGER ) * + col0 AS col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-2123
SELECT DISTINCT + col2 DIV 82 + + col1 AS col0 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2123
SELECT DISTINCT + col2 / 82 + + col1 AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT col2 + col0 * + col0 * col2 AS col0 FROM tab2
----
1350
158210
237196
query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT DISTINCT 77 * col1 + 6 DIV - 68 FROM tab2 AS cor0
----
1309
2387
4543
skipif mysql # not compatible
query I rowsort label-2126
SELECT DISTINCT 77 * col1 + 6 / - 68 FROM tab2 AS cor0
----
1309
2387
4543
query I rowsort
SELECT - col2 + cor0.col1 + + 62 AS col1 FROM tab0 AS cor0
----
115
158
71
query I rowsort
SELECT ALL 83 + cor0.col1 FROM tab0 cor0
----
169
174
180
query I rowsort
SELECT + cor0.col0 * - col2 + col1 * 91 + col2 FROM tab0 AS cor0
----
1065
7067
8793
query I rowsort
SELECT DISTINCT + + 87 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1531
763
816
query I rowsort
SELECT DISTINCT - + 48 + + col0 FROM tab2 AS cor0
----
-41
30
31
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * ( cor0.col1 ) FROM tab2 AS cor0
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-2133
SELECT + - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2133
SELECT + - col0 / - col0 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 72 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
72
query I rowsort
SELECT 15 * - col2 AS col2 FROM tab1
----
-1440
-810
-855
query I rowsort
SELECT + cor0.col0 * - 67 AS col1 FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT cor0.col0 * - ( col0 ) + + col2 * 10 FROM tab2 AS cor0
----
-5824
-5861
221
onlyif mysql # use DIV operator for integer division
query I rowsort label-2138
SELECT + + col0 * ( + col2 ) DIV - cor0.col1 + col0 DIV - col2 FROM tab1 AS cor0
----
-365
-590
-6
skipif mysql # not compatible
query I rowsort label-2138
SELECT + + col0 * ( + col2 ) / - cor0.col1 + col0 / - col2 FROM tab1 AS cor0
----
-365
-590
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2139
SELECT DISTINCT - col0 * - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT - col0 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col1 + col1 * - 60 FROM tab1 AS cor0
----
-1534
-590
-767
query I rowsort
SELECT 61 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT + col2 DIV - 80 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2142
SELECT + col2 / - 80 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + - cor0.col0 * + 71 FROM tab2 AS cor0
----
-497
-5538
-5609
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT DISTINCT + col1 + 60 DIV col0 AS col1 FROM tab2
----
17
39
59
skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + col1 + 60 / col0 AS col1 FROM tab2
----
17
39
59
query I rowsort
SELECT + cor0.col0 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 col1 FROM tab2 AS cor0
----
-36
-36
-36
query I rowsort
SELECT + - 41 - - col2 FROM tab1 AS cor0
----
13
16
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2148
SELECT ALL + col0 DIV + ( col1 ) + ( col2 ) col1 FROM tab2
----
27
27
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL + col0 / + ( col1 ) + ( col2 ) col1 FROM tab2
----
27
27
42
query I rowsort
SELECT DISTINCT col1 + 30 AS col2 FROM tab2
----
47
61
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) + - cor0.col2 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 56 * col2 col2 FROM tab1 AS cor0
----
204288
430080
9072
onlyif mysql # use DIV operator for integer division
query I rowsort label-2152
SELECT DISTINCT + + col0 DIV + 83 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT + + col0 / + 83 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ( + col1 ) + col2 AS col1 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2154
SELECT ALL - CAST( - col0 AS SIGNED ) - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-2154
SELECT ALL - CAST ( - col0 AS INTEGER ) - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - + cor0.col2 + cor0.col0 * col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-27
262087
511904
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2156
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2157
SELECT + col1 * + col2 + + ( col1 ) * + col0 * CAST( ( col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
101088
37050
5616
skipif mysql # not compatible
query I rowsort label-2157
SELECT + col1 * + col2 + + ( col1 ) * + col0 * CAST ( ( col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
101088
37050
5616
query I rowsort
SELECT - col1 * cor0.col0 + + col1 AS col0 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + + col1 * + ( - cor0.col0 + - ( 69 ) ) col1 FROM tab1 AS cor0
----
-1950
-1970
-2977
query I rowsort
SELECT ALL + col1 * - cor0.col2 + ( + col2 * cor0.col1 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + + 91 + + col2 FROM tab1 cor0
----
145
148
187
query I rowsort
SELECT DISTINCT 72 FROM tab1, tab2 cor0, tab2 cor1, tab0 cor2
----
72
query I rowsort
SELECT + cor0.col1 + - col2 * + 95 AS col0 FROM tab1 AS cor0
----
-5104
-5405
-9107
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2164
SELECT + ( + col2 ) * col1 / + ( col1 ) + + col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2164
SELECT + ( + col2 ) * col1 / + ( col1 ) + + col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 62 AS col1 FROM tab1 AS cor0
----
-1612
-620
-806
query I rowsort
SELECT - + col1 * - cor0.col2 + col2 * col1 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT + - col2 + col1 * + col1 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-2168
SELECT ALL col2 DIV + 98 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2168
SELECT ALL col2 / + 98 FROM tab0
----
0
0
0
query I rowsort
SELECT + col2 * col2 - col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL + + 34 * + 14 FROM tab0 AS cor0
----
476
476
476
query I rowsort
SELECT col1 * cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - 95 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2173
SELECT + CAST( - 84 AS SIGNED ) + - cor0.col0 * 73 FROM tab1 AS cor0
----
-303
-4756
-5924
skipif mysql # not compatible
query I rowsort label-2173
SELECT + CAST ( - 84 AS INTEGER ) + - cor0.col0 * 73 FROM tab1 AS cor0
----
-303
-4756
-5924
query I rowsort
SELECT ALL + 39 + - col1 AS col2 FROM tab1 AS cor0
----
13
26
29
query I rowsort
SELECT - col1 + col0 * 31 AS col0 FROM tab2 AS cor0
----
186
2359
2432
onlyif mysql # use DIV operator for integer division
query I rowsort label-2176
SELECT col1 DIV 58 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2176
SELECT col1 / 58 AS col0 FROM tab0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2177
SELECT col2 + - CAST( NULL AS SIGNED ) + + 64 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2177
SELECT col2 + - CAST ( NULL AS INTEGER ) + + 64 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - ( + col2 ) AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col0 * 66 AS col1 FROM tab1
----
198
4224
5280
query I rowsort
SELECT + - col2 * - col1 + col2 + col2 FROM tab1 AS cor0
----
1440
1512
684
query I rowsort
SELECT + + col1 * col1 * col1 - col0 FROM tab2 AS cor0
----
205301
29784
4834
query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab2, tab1 AS cor0
----
19
query I rowsort
SELECT col2 * 71 FROM tab2 AS cor0
----
1846
1917
2698
query I rowsort
SELECT + - col0 + 2 + col2 AS col2 FROM tab1 AS cor0
----
-5
18
53
query I rowsort
SELECT DISTINCT + ( + 68 ) AS col0 FROM tab2 AS cor0
----
68
query I rowsort
SELECT DISTINCT - - col0 * - 50 AS col2 FROM tab0 cor0
----
-1200
-1750
-4450
query I rowsort
SELECT - ( + col1 ) + cor0.col0 + + 13 FROM tab2 cor0
----
-11
32
75
query I rowsort
SELECT DISTINCT ( col0 ) * - col0 + + tab2.col1 * + col1 AS col2 FROM tab2
----
-2603
-5952
912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + 90 col2 FROM tab1 cor0
----
64
77
80
query I rowsort
SELECT + + cor0.col0 - - 74 FROM tab2 AS cor0
----
152
153
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT ALL + CAST( NULL AS SIGNED ) + + 77 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL + CAST ( NULL AS INTEGER ) + + 77 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 80 + col2 * - col2 + ( + 24 ) FROM tab2 AS cor0
----
-1340
-572
-625
query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab1, tab0 AS cor0
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2194
SELECT + + ( - col1 ) + cor0.col1 * CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
1235
1378
560
skipif mysql # not compatible
query I rowsort label-2194
SELECT + + ( - col1 ) + cor0.col1 * CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT col1 * - 4 + col1 FROM tab2 AS cor0
----
-177
-51
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
88
query I rowsort
SELECT + 85 - col2 FROM tab1
----
-11
28
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + tab1.col0 col2 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL - - tab0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT 81 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # use DIV operator for integer division
query I rowsort label-2201
SELECT ALL + col1 + cor0.col1 * col2 DIV 58 col0 FROM tab0 cor0
----
134
219
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + col1 + cor0.col1 * col2 / 58 col0 FROM tab0 cor0
----
134
219
98
query I rowsort
SELECT + cor0.col0 * + col1 + - 65 * col1 FROM tab0 AS cor0
----
-2910
-3526
2184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2203
SELECT DISTINCT - - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2203
SELECT DISTINCT - - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * col1 + - col1 FROM tab1 cor0
----
156
650
90
query I rowsort
SELECT - col0 + - col0 * - col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT + col1 * - 61 AS col1 FROM tab2 AS cor0
----
-1037
-1891
-3599
onlyif mysql # use DIV operator for integer division
query I rowsort label-2207
SELECT DISTINCT - col0 DIV + cor0.col1 + col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-2207
SELECT DISTINCT - col0 / + cor0.col1 + col0 + cor0.col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-2208
SELECT DISTINCT + cor0.col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT + cor0.col0 / + col0 AS col0 FROM tab1 AS cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2209
SELECT DISTINCT + ( col1 ) * CAST( col1 AS SIGNED ) AS col2 FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT + ( col1 ) * CAST ( col1 AS INTEGER ) AS col2 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 ) col0 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - - ( + 63 ) + - col1 FROM tab0 AS cor0
----
-23
-28
-34
query I rowsort
SELECT ALL - tab1.col1 * tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-2213
SELECT + - ( 99 ) DIV - cor0.col1 + col2 + - 29 AS col1 FROM tab1 AS cor0
----
28
37
74
skipif mysql # not compatible
query I rowsort label-2213
SELECT + - ( 99 ) / - cor0.col1 + col2 + - 29 AS col1 FROM tab1 AS cor0
----
28
37
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL 56 * col2 AS col1 FROM tab0 AS cor0
----
1848
4592
56
query I rowsort
SELECT DISTINCT ( col1 ) * col2 - + col0 * col2 * col2 FROM tab1 AS cor0
----
-207366
-7344
-736032
query I rowsort
SELECT + 80 * 1 + col2 * col2 FROM tab2 AS cor0
----
1524
756
809
onlyif mysql # use DIV operator for integer division
query I rowsort label-2218
SELECT + col1 + col2 DIV - col1 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-2218
SELECT + col1 + col2 / - col1 FROM tab1 AS cor0
----
24
5
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2219
SELECT DISTINCT + CAST( - ( + col2 ) AS SIGNED ) + 76 + - col0 AS col0 FROM tab0 cor0
----
-95
19
40
skipif mysql # not compatible
query I rowsort label-2219
SELECT DISTINCT + CAST ( - ( + col2 ) AS INTEGER ) + 76 + - col0 AS col0 FROM tab0 cor0
----
-95
19
40
query I rowsort
SELECT DISTINCT 25 * - col1 AS col1 FROM tab0 AS cor0
----
-2150
-2275
-2425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2221
SELECT + - CAST( NULL AS SIGNED ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2221
SELECT + - CAST ( NULL AS INTEGER ) + - col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( ( + col2 ) ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL 84 * + col1 + - col1 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT ALL ( col0 ) * 37 * cor0.col1 + col1 FROM tab1 AS cor0
----
23690
2912
38493
query I rowsort
SELECT - col1 * col2 + + 85 * - col1 * - col0 FROM tab1 AS cor0
----
5226
53830
87152
query I rowsort
SELECT ALL - + cor0.col2 + + col1 * - ( + col2 * cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT - 54 AS col1 FROM tab0 AS cor0
----
-54
-54
-54
query I rowsort
SELECT ALL - cor0.col0 + col2 + + ( col2 + + col2 ) FROM tab0 AS cor0
----
-32
157
75
query I rowsort
SELECT DISTINCT + col0 + + cor0.col0 * 87 FROM tab1 AS cor0
----
264
5632
7040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2230
SELECT ALL CAST( NULL AS DECIMAL ) * 89 * - col2 + ( - 22 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2230
SELECT ALL CAST ( NULL AS REAL ) * 89 * - col2 + ( - 22 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 92 + tab1.col2 * col2 AS col1 FROM tab1
----
3008
3341
9308
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2232
SELECT ALL - CAST( + 70 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-80
-83
-96
skipif mysql # not compatible
query I rowsort label-2232
SELECT ALL - CAST ( + 70 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-80
-83
-96
query I rowsort
SELECT DISTINCT + col0 + col0 * - cor0.col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - + col2 - col2 * 60 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT + col0 + 87 FROM tab0 AS cor0
----
111
122
176
query I rowsort
SELECT + col0 + 10 * - col1 * - col2 AS col1 FROM tab0 AS cor0
----
1005
28404
74709
query I rowsort
SELECT ALL col0 * + 47 * 52 AS col1 FROM tab2 AS cor0
----
17108
190632
193076
onlyif mysql # use DIV operator for integer division
query I rowsort label-2238
SELECT ALL + col2 DIV col0 - cor0.col1 col1 FROM tab1 AS cor0
----
-10
-12
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + col2 / col0 - cor0.col1 col1 FROM tab1 AS cor0
----
-10
-12
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2239
SELECT - col1 * CAST( 11 * - col2 AS SIGNED ) + + cor0.col1 FROM tab0 cor0
----
1164
31304
82173
skipif mysql # not compatible
query I rowsort label-2239
SELECT - col1 * CAST ( 11 * - col2 AS INTEGER ) + + cor0.col1 FROM tab0 cor0
----
1164
31304
82173
query I rowsort
SELECT ALL + col0 * + ( - col2 ) - col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT + col0 + + 58 AS col1 FROM tab1 AS cor0
----
122
138
61
query I rowsort
SELECT ALL - 31 AS col0 FROM tab0
----
-31
-31
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT col2 * + col1 - + 3 DIV col2 FROM tab1
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-2243
SELECT col2 * + col1 - + 3 / col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - cor1.col2 FROM tab0, tab1, tab1 AS cor0, tab2 cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
query I rowsort
SELECT ALL - - cor0.col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2246
SELECT ALL - col2 * - CAST( + 28 AS SIGNED ) FROM tab0 cor0
----
2296
28
924
skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL - col2 * - CAST ( + 28 AS INTEGER ) FROM tab0 cor0
----
2296
28
924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab0, tab0 AS cor0, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL col0 + 48 FROM tab0 AS cor0
----
137
72
83
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 38dccc9c32724260ec175f754830d863
query I rowsort
SELECT ALL tab1.col1 * col0 + + col2 * - col0 AS col1 FROM tab1
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT tab0.col2 + - 37 AS col2 FROM tab0
----
-36
-4
45
query I rowsort
SELECT + col0 * + ( col1 + - col2 ) * 94 AS col1 FROM tab2 cor0
----
-155946
241956
2632
onlyif mysql # use DIV operator for integer division
query I rowsort label-2253
SELECT - col1 + + ( col0 ) DIV - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2253
SELECT - col1 + + ( col0 ) / - col1 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL + col2 * 92 + col0 AS col0 FROM tab0
----
127
3060
7633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + - 35 col2 FROM tab0, tab0 cor0
----
46
query I rowsort
SELECT + + ( + col0 ) * - col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 * + cor0.col0 col0 FROM tab2 AS cor0
----
525
5850
5925
query I rowsort
SELECT + 23 * col0 + col0 * + col0 AS col1 FROM tab1 AS cor0
----
5568
78
8240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2259
SELECT + + ( + col1 ) * col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2259
SELECT + + ( + col1 ) * col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + col0 + col1 * + col2 AS col1 FROM tab1
----
1210
1482
2288
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2261
SELECT DISTINCT - col1 + ( - col0 ) + + col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT - col1 + ( - col0 ) + + col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
query I rowsort
SELECT 62 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT 15 * col2 AS col0 FROM tab2
----
390
405
570
query I rowsort
SELECT - 69 + col2 FROM tab2
----
-31
-42
-43
query I rowsort
SELECT DISTINCT ( col0 * - col2 ) AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - 64 * col1 + col1 + col0 FROM tab1 AS cor0
----
-1635
-566
-739
onlyif mysql # use DIV operator for integer division
query I rowsort label-2267
SELECT + - col1 + 82 DIV col1 + cor0.col0 * + col2 * col2 FROM tab2 AS cor0
----
114063
5074
52670
skipif mysql # not compatible
query I rowsort label-2267
SELECT + - col1 + 82 / col1 + cor0.col0 * + col2 * col2 FROM tab2 AS cor0
----
114063
5074
52670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 68 + col2 * + col0 col2 FROM tab1 AS cor0
----
3580
7612
94
query I rowsort
SELECT ALL + 76 + col0 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT - 77 * col1 AS col2 FROM tab0 AS cor0
----
-6622
-7007
-7469
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2271
SELECT ALL - CAST( ( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL - CAST ( ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 50 * ( col0 ) + col2 AS col0 FROM tab0 AS cor0
----
-1167
-1749
-4368
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT ALL + - cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL + - cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col0 col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - cor0.col0 * col2 + col1 - + 64 AS col2 FROM tab1 AS cor0
----
-200
-3702
-7731
query I rowsort
SELECT DISTINCT + 34 + - col0 FROM tab0 cor0
----
-1
-55
10
query I rowsort
SELECT DISTINCT col1 * - col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - + 26 * col1 * 36 - 38 * - col1 * + 86 AS col2 FROM tab1 AS cor0
----
23320
30316
60632
query I rowsort
SELECT ALL + 36 * - col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
query I rowsort
SELECT ALL cor0.col2 + col2 * - col1 * - col1 FROM tab0 AS cor0
----
244101
679124
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-2282
SELECT - + col0 DIV col2 col2 FROM tab0 cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2282
SELECT - + col0 / col2 col2 FROM tab0 cor0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2283
SELECT - col0 + 78 DIV - col1 FROM tab1 AS cor0
----
-6
-71
-86
skipif mysql # not compatible
query I rowsort label-2283
SELECT - col0 + 78 / - col1 FROM tab1 AS cor0
----
-6
-71
-86
query I rowsort
SELECT 0 * 18 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2285
SELECT ALL + - col0 + - col1 DIV ( - col1 ) FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL + - col0 + - col1 / ( - col1 ) FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT 24 * col2 - 31 AS col0 FROM tab1 AS cor0
----
1265
1337
2273
query I rowsort
SELECT - col2 * - col0 - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * col1 + 93 * - cor0.col1 col2 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT 26 + cor0.col0 FROM tab2 AS cor0
----
104
105
33
query I rowsort
SELECT - col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2292
SELECT - col1 + + CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-2292
SELECT - col1 + + CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL + cor0.col0 * ( - col0 * - col2 ) + + cor0.col0 * + 86 FROM tab1 AS cor0
----
238976
621280
744
query I rowsort
SELECT + col2 + 49 FROM tab0
----
131
50
82
query I rowsort
SELECT ALL + tab2.col2 * col2 * + col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT ALL + 1 * - col0 AS col2 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col0 * col0 AS REAL ) AS col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - ( + col1 + col1 ) FROM tab0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + 73 AS col1 FROM tab1, tab2 AS cor0
----
73
query I rowsort
SELECT ALL - + ( 7 ) AS col0 FROM tab0 AS cor0
----
-7
-7
-7
query I rowsort
SELECT DISTINCT 50 * + 62 AS col0 FROM tab1
----
3100
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + 33 AS REAL ) * - col1 FROM tab2
----
-1023
-1947
-561
query I rowsort
SELECT ALL 60 * + col2 AS col2 FROM tab0
----
1980
4920
60
query I rowsort
SELECT 59 AS col2 FROM tab2 cor0
----
59
59
59
query I rowsort
SELECT tab0.col2 * + col2 + tab0.col1 * + ( 99 ) FROM tab0
----
15733
9603
9604
query I rowsort
SELECT DISTINCT 42 * col0 FROM tab0
----
1008
1470
3738
query I rowsort
SELECT DISTINCT cor2.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 AS cor2
----
10
13
26
query I rowsort
SELECT DISTINCT 1 * + col0 AS col0 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2309
SELECT DISTINCT - ( tab1.col2 * CAST( + 46 AS SIGNED ) ) FROM tab1
----
-2484
-2622
-4416
skipif mysql # not compatible
query I rowsort label-2309
SELECT DISTINCT - ( tab1.col2 * CAST ( + 46 AS INTEGER ) ) FROM tab1
----
-2484
-2622
-4416
query I rowsort
SELECT 3 * - cor0.col0 FROM tab0 AS cor0
----
-105
-267
-72
query I rowsort
SELECT - - col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - 16 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query I rowsort
SELECT + col0 * + tab1.col0 + + col1 AS col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT - tab1.col0 * ( col2 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - + cor0.col1 + 75 AS col2 FROM tab2 AS cor0
----
16
44
58
query I rowsort
SELECT + col1 * 30 + - col2 AS col1 FROM tab2 AS cor0
----
1744
472
903
query I rowsort
SELECT 82 * + col2 AS col1 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT + - 57 AS col2 FROM tab2 cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT + 19 + + 84 * col2 AS col2 FROM tab1 AS cor0
----
4555
4807
8083
query I rowsort
SELECT - + 71 AS col1 FROM tab0 AS cor0
----
-71
-71
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 43 ) + col1 col1 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT DISTINCT + col1 * - col0 * col1 + + ( ( col1 ) * col1 ) FROM tab2 AS cor0
----
-22542
-268037
-5766
query I rowsort
SELECT DISTINCT 25 + - col1 + col1 * ( - col0 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-235
-40945
-83188
query I rowsort
SELECT DISTINCT 29 * col0 AS col2 FROM tab2 cor0
----
203
2262
2291
query I rowsort
SELECT ALL + col0 + - cor0.col2 * - col0 * col1 AS col0 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT - col0 + + col1 + - col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - ( col0 ) * - col0 + col2 * col0 FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT col2 + - tab0.col0 * tab0.col1 AS col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - tab0.col1 + + col0 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT col2 * col1 + col2 * col1 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT col0 * - col2 + + col2 * col2 - col0 FROM tab1 AS cor0
----
-463
1456
2751
query I rowsort
SELECT ALL - col2 + + col1 * col2 FROM tab0 cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2333
SELECT DISTINCT + col2 DIV col2 + col2 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2030
-3393
-8016
skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + col2 / col2 + col2 + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2030
-3393
-8016
onlyif mysql # use DIV operator for integer division
query I rowsort label-2334
SELECT + col2 * - col1 + + cor0.col1 DIV cor0.col1 + + col0 AS col2 FROM tab0 cor0
----
-2813
-61
-7372
skipif mysql # not compatible
query I rowsort label-2334
SELECT + col2 * - col1 + + cor0.col1 / cor0.col1 + + col0 AS col2 FROM tab0 cor0
----
-2813
-61
-7372
query I rowsort
SELECT + col2 * - col0 + - col0 AS col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT tab0.col2 * 81 + col2 FROM tab0
----
2706
6724
82
query I rowsort
SELECT DISTINCT + 0 FROM tab1
----
0
query I rowsort
SELECT - col0 + + col2 * + col1 AS col0 FROM tab2
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 * - col0 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - ( col1 ) * col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2341
SELECT ALL + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2341
SELECT ALL + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT DISTINCT col0 DIV - 95 - col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT col0 / - 95 - col1 * + col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - 90 * + col0 FROM tab2 cor0
----
-630
-7020
-7110
query I rowsort
SELECT - col2 + cor0.col2 * col2 + col0 AS col2 FROM tab0 AS cor0
----
1080
35
6731
query I rowsort
SELECT DISTINCT - + 7 * col0 * + col1 FROM tab0 AS cor0
----
-14448
-23765
-56693
query I rowsort
SELECT + ( - col2 ) * - cor0.col2 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
1465
643
725
query I rowsort
SELECT ALL + + col1 * + col1 + + cor0.col2 * + col2 * - col1 FROM tab2 AS cor0
----
-21638
-24259
-36403
query I rowsort
SELECT 43 + - col2 + + col0 * col2 * col1 FROM tab0 AS cor0
----
3437
664079
68122
query I rowsort
SELECT + col0 * - col1 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT ALL + col2 + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL + col2 + col2 / col2 AS col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - - col1 + + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col2 * + col2 * + cor0.col1 + - col1 * - cor0.col1 FROM tab2 AS cor0
----
23560
24837
43365
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - ( col0 ) - + col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT - col2 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL + 48 FROM tab0
----
48
48
48
query I rowsort
SELECT ALL - + 13 + - cor0.col2 FROM tab1 AS cor0
----
-109
-67
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + + col0 col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - ( - col1 ) * - col0 + + col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT - + 43 FROM tab2 cor0
----
-43
-43
-43
query I rowsort
SELECT DISTINCT + col0 + - col2 * + cor0.col0 * col0 FROM tab1 AS cor0
----
-233408
-483
-614320
query I rowsort
SELECT col0 + col1 * col1 + col1 FROM tab1 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col1 <= NULL
----
query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT tab2.col1 + col0 * col2 AS col0 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 * - col1 col1 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT col2 DIV + col2 + col0 * - tab0.col2 AS col0 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-2367
SELECT col2 / + col2 + col0 * - tab0.col2 AS col0 FROM tab0
----
-34
-7297
-791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT DISTINCT col1 + col2 * col0 * - col2 FROM tab0 WHERE ( col2 + col1 ) NOT BETWEEN col1 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2370
SELECT + tab0.col2 + col0 * col1 * + col2 + + col2 * col1 DIV + col0 AS col0 FROM tab0
----
3398
664283
68263
skipif mysql # not compatible
query I rowsort label-2370
SELECT + tab0.col2 + col0 * col1 * + col2 + + col2 * col1 / + col0 AS col0 FROM tab0
----
3398
664283
68263
query I rowsort
SELECT - col1 * + col2 * + col2 FROM tab0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2372
SELECT col0 * col2 DIV col2 - - col1 AS col0 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-2372
SELECT col0 * col2 / col2 - - col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT col2 * col2 * col0 - - col2 * + col0 * col0 FROM tab2
----
210912
351234
6426
query I rowsort
SELECT ALL tab1.col0 * col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col2 * - tab2.col2 * col0 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT ALL + tab0.col0 DIV + col0 - col0 AS col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-2376
SELECT ALL + tab0.col0 / + col0 - col0 AS col0 FROM tab0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col1 FROM tab1
----
-108
-114
-192
query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / + col1 + col0 NOT IN ( col1 * col1 * tab1.col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT - col2 * - tab0.col0 * col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - tab1.col2 + tab1.col0 AS col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2381
SELECT - col0 DIV cor0.col0 + - col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-2381
SELECT - col0 / cor0.col0 + - col0 FROM tab0 AS cor0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2382
SELECT - col0 + - col0 DIV + col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-2382
SELECT - col0 + - col0 / + col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT ALL + col2 * col1 * col2 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-2384
SELECT col0 DIV + cor0.col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2384
SELECT col0 / + cor0.col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + col2 * tab2.col1 + col1 AS col2 FROM tab2
----
1593
663
868
query III rowsort
SELECT * FROM tab0 WHERE NULL <> + col2
----
query I rowsort
SELECT DISTINCT + cor0.col0 + cor0.col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT - 80 + 80 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL tab2.col2 * - 48 AS col1 FROM tab2
----
-1248
-1296
-1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2390
SELECT ALL col2 * CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL col2 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + + 53 * 96 AS col2 FROM tab0 AS cor0
----
5088
5088
5088
query I rowsort
SELECT ALL col0 + col0 * - col1 FROM tab2 cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2393
SELECT + CAST( - 90 AS SIGNED ) FROM tab0 AS cor0
----
-90
-90
-90
skipif mysql # not compatible
query I rowsort label-2393
SELECT + CAST ( - 90 AS INTEGER ) FROM tab0 AS cor0
----
-90
-90
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2394
SELECT ALL + 23 DIV + col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2394
SELECT ALL + 23 / + col1 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col1 col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 25 + + 61 * col1 * - 15 AS col1 FROM tab0 AS cor0
----
-78665
-83240
-88730
onlyif mysql # use DIV operator for integer division
query I rowsort label-2397
SELECT DISTINCT cor0.col2 * + col1 * col0 + 65 DIV - col0 AS col2 FROM tab0 AS cor0
----
3394
664118
68110
skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT cor0.col2 * + col1 * col0 + 65 / - col0 AS col2 FROM tab0 AS cor0
----
3394
664118
68110
query I rowsort
SELECT ALL - - col2 + + 74 * col0 FROM tab0 AS cor0
----
1809
2591
6668
query I rowsort
SELECT - cor0.col0 * col2 + + 86 FROM tab2 AS cor0
----
-103
-1942
-2916
query I rowsort
SELECT col2 * + col2 + - col0 FROM tab1 cor0
----
2913
3185
9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2401
SELECT + col1 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-2401
SELECT + col1 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - cor0.col1 * - ( 74 ) AS col0 FROM tab2 AS cor0
----
1258
2294
4366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - cor0.col0 + cor0.col0 col0 FROM tab0 cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT col1 + - 30 FROM tab2 AS cor0
----
-13
1
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-2406
SELECT ALL - cor0.col1 DIV CAST( col1 AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL - cor0.col1 / CAST ( col1 AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT - cor0.col0 + + 10 * - ( + col1 ) * col1 AS col0 FROM tab0 AS cor0
----
-73984
-82899
-94125
query I rowsort
SELECT DISTINCT col0 * - 94 * col1 + col1 FROM tab1 AS cor0
----
-60150
-7306
-97747
query I rowsort
SELECT ALL col2 * - ( col1 ) * - col0 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - col0 + + col2 * + cor0.col1 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT 50 * + col0 * tab0.col0 FROM tab0
----
28800
396050
61250
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - cor0.col0 col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - + cor0.col0 * - col2 + 53 AS col2 FROM tab2 AS cor0
----
2081
242
3055
onlyif mysql # use DIV operator for integer division
query I rowsort label-2414
SELECT ALL col2 DIV + 44 + - col2 FROM tab0 cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL col2 / + 44 + - col2 FROM tab0 cor0
----
-1
-33
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * col2 col2 FROM tab2 AS cor0
----
-1523
-736
-754
onlyif mysql # use DIV operator for integer division
query I rowsort label-2416
SELECT DISTINCT + col0 DIV ( col2 ) FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT + col0 / ( col2 ) FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - + ( col0 ) + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - ( 12 ) * col2 FROM tab1 AS cor0
----
-1152
-648
-684
query I rowsort
SELECT col1 * + ( - col0 ) + - col0 * col1 * col1 FROM tab2
----
-24174
-276120
-6944
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * + col0 + 58 col0 FROM tab2 cor0
----
4816
485
4877
query I rowsort
SELECT + col1 * col2 - + col2 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL + col1 - + col2 AS col1 FROM tab0 cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col0 * - col1 - ( 12 ) col1 FROM tab1
----
-246
-40972
-83212
onlyif mysql # use DIV operator for integer division
query I rowsort label-2426
SELECT - ( - col1 ) DIV col1 + + col0 + col1 FROM tab1
----
30
75
94
skipif mysql # not compatible
query I rowsort label-2426
SELECT - ( - col1 ) / col1 + + col0 + col1 FROM tab1
----
30
75
94
query I rowsort
SELECT col0 * - col2 + - 79 FROM tab2
----
-2107
-268
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2428
SELECT - col1 * - col0 + + CAST( NULL AS SIGNED ) * - 76 * + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2428
SELECT - col1 * - col0 + + CAST ( NULL AS INTEGER ) * - 76 * + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 19 AS col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT DISTINCT 65 + col0 AS col1 FROM tab2
----
143
144
72
query I rowsort
SELECT DISTINCT tab0.col2 + + col2 * + tab0.col0 + + col1 * col2 FROM tab0
----
133
14842
3663
query I rowsort
SELECT + col1 + + col1 * - tab1.col2 + - col2 AS col2 FROM tab1
----
-1331
-1432
-617
onlyif mysql # use DIV operator for integer division
query I rowsort label-2433
SELECT ( col1 ) DIV - CAST( 35 AS SIGNED ) + + col0 * - col2 + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort label-2433
SELECT ( col1 ) / - CAST ( 35 AS INTEGER ) + + col0 * - col2 + + cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + col0 + + col2 + 20 * ( cor0.col2 ) AS col1 FROM tab2 AS cor0
----
574
624
877
query I rowsort
SELECT - + 5 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT cor0.col2 * col2 + ( col1 ) + + col0 FROM tab1 AS cor0
----
2945
3323
9309
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + cor0.col0 col0 FROM tab0 cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 73 col0 FROM tab0 AS cor0
----
73
query I rowsort
SELECT 77 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT DISTINCT - 15 + tab1.col2 FROM tab1
----
39
42
81
query I rowsort
SELECT ALL + col1 + + col2 * - 80 FROM tab0
----
-2554
-6469
17
query I rowsort
SELECT ALL + + 39 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 FROM tab2
----
22
6058
6203
query I rowsort
SELECT ALL - tab2.col1 + - col0 + + col1 AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT col0 * - col2 * ( + col1 * col1 ) AS col0 FROM tab0 AS cor0
----
-329315
-5857632
-60434738
query I rowsort
SELECT + cor0.col1 * col0 + col0 AS col0 FROM tab1 cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2447
SELECT ALL + + 91 + - col0 DIV col2 col2 FROM tab0 AS cor0
----
56
90
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2447
SELECT ALL + + 91 + - col0 / col2 col2 FROM tab0 AS cor0
----
56
90
91
query I rowsort
SELECT 50 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT + col0 * - 47 - - col2 FROM tab2
----
-302
-3640
-3675
query I rowsort
SELECT col2 * 40 * ( col1 ) AS col1 FROM tab1
----
22800
49920
56160
query I rowsort
SELECT + + col2 + 31 FROM tab2 AS cor0
----
57
58
69
query I rowsort
SELECT ALL + - cor0.col1 * - 40 + - cor0.col0 * col1 AS col1 FROM tab1 AS cor0
----
-240
-520
962
query I rowsort
SELECT col1 + + 68 AS col0 FROM tab2
----
127
85
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * + col2 col1 FROM tab0 AS cor0
----
-611884
-93654
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col2 FROM tab2 cor0
----
69
69
69
query I rowsort
SELECT + - cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT ( cor0.col2 ) * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2458
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 93 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 93 AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 13 * col0 col1 FROM tab1 AS cor0
----
-1014
-13520
-8320
query I rowsort
SELECT ALL + 87 * + col1 + col2 * 12 + + col2 FROM tab0 AS cor0
----
7911
8452
8983
query I rowsort
SELECT + col2 * 94 FROM tab0 AS cor0
----
3102
7708
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2462
SELECT - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2462
SELECT - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col1 + 4 AS col0 FROM tab2 AS cor0
----
21
35
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2464
SELECT + ( col0 ) + - col0 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2464
SELECT + ( col0 ) + - col0 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 24 * + col0 * - col2 FROM tab2 AS cor0
----
4536
48672
72048
onlyif mysql # use DIV operator for integer division
query I rowsort label-2466
SELECT - 15 DIV + col0 AS col2 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-2466
SELECT - 15 / + col0 AS col2 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT DISTINCT - - 1 * 6 AS col2 FROM tab0 AS cor0
----
6
query I rowsort
SELECT ( ( col0 ) ) * ( col0 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-2469
SELECT + col2 DIV - col0 + - col0 FROM tab2
----
-10
-78
-79
skipif mysql # not compatible
query I rowsort label-2469
SELECT + col2 / - col0 + - col0 FROM tab2
----
-10
-78
-79
query I rowsort
SELECT DISTINCT - + col0 + col1 + cor0.col1 FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT DISTINCT - - ( + ( cor0.col0 ) ) * + 56 FROM tab2 cor0
----
392
4368
4424
query I rowsort
SELECT - ( - 78 ) FROM tab1 AS cor0
----
78
78
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT DISTINCT - col1 DIV + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - col1 / + col0 + - cor0.col1 AS col1 FROM tab1 AS cor0
----
-10
-13
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT - - col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2474
SELECT - - col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 + col1 col2 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT ALL - + col1 * - col0 DIV ( col0 ) - + col1 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2476
SELECT ALL - + col1 * - col0 / ( col0 ) - + col1 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + col0 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-2574
-28
1659
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT ( - 95 ) AS col1 FROM tab0
----
-95
query I rowsort
SELECT DISTINCT 21 AS col2 FROM tab0, tab1 AS cor0
----
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * - cor0.col2 col0 FROM tab0 AS cor0
----
2112
5248
64
query I rowsort
SELECT ALL - - cor0.col1 - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2483
SELECT ALL col0 * + CAST( col1 AS SIGNED ) + - cor0.col2 col0 FROM tab2 AS cor0
----
1305
190
4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL col0 * + CAST ( col1 AS INTEGER ) + - cor0.col2 col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL col0 * + 81 FROM tab0 AS cor0
----
1944
2835
7209
query I rowsort
SELECT - col1 + ( + 22 ) FROM tab1 cor0
----
-4
12
9
query I rowsort
SELECT ALL - col0 + - ( 99 ) + col2 FROM tab1 AS cor0
----
-106
-48
-83
query I rowsort
SELECT DISTINCT + col2 * - col0 - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + col1 * - col0 + 2 AS col1 FROM tab0 AS cor0
----
-2062
-3393
-8097
query I rowsort
SELECT ALL - col2 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( col1 ) + col1 col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT col1 + - 54 + 48 AS col2 FROM tab0 cor0
----
80
85
91
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col0 + ( col2 ) / col2 + CAST ( 76 AS REAL ) AS col1 FROM tab0 AS cor0
----
101
112
166
query I rowsort
SELECT DISTINCT - + col1 - - col1 * col2 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT ALL + - col1 + - col1 * - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT + - cor0.col0 * + 33 - col1 AS col2 FROM tab1 cor0
----
-125
-2122
-2653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2496
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2496
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + ( + 94 ) * - col2 AS col1 FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT - col1 + - col0 * - col2 AS col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) * col0 + - col2 col1 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) + col1 col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT 33 - cor0.col1 FROM tab1, tab0 AS cor0
----
-53
-58
-64
query I rowsort
SELECT - col0 * + 71 FROM tab0
----
-1704
-2485
-6319
query I rowsort
SELECT ALL tab1.col1 * + col1 * - 52 FROM tab1
----
-35152
-5200
-8788
query I rowsort
SELECT ALL + 22 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ALL - col0 + col2 * + col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - 22 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 647e567609c5ada1d3454d2102819bfe
query I rowsort
SELECT DISTINCT + 16 + 48 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
64
query I rowsort
SELECT 81 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # use DIV operator for integer division
query I rowsort label-2509
SELECT DISTINCT - 3 DIV - col2 AS col1 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - 3 / - col2 AS col1 FROM tab1
----
0
query I rowsort
SELECT + col1 + - 7 AS col2 FROM tab1
----
19
3
6
query I rowsort
SELECT + - col1 * 5 * - col1 AS col2 FROM tab1 AS cor0
----
3380
500
845
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 * 92 col1 FROM tab0 AS cor0
----
3220
671416
72864
query I rowsort
SELECT + - col0 * 11 AS col0 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT col0 * - col2 + - col2 AS col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT DISTINCT col2 * col0 + + tab0.col1 * + col2 FROM tab0
----
132
14760
3630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT col1 * - col1 DIV col1 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-2516
SELECT col1 * - col1 / col1 AS col0 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT DISTINCT tab0.col0 DIV tab0.col1 + col2 + col1 * - col0 AS col1 FROM tab0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT tab0.col0 / tab0.col1 + col2 + col1 * - col0 AS col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL - tab1.col0 + col0 AS col1 FROM tab1 WHERE + col0 - col1 = col2 - col1
----
query I rowsort
SELECT ALL col1 + - col0 - tab1.col0 * col0 FROM tab1
----
-4150
-6467
14
query I rowsort
SELECT DISTINCT + col1 + col2 * col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT col1 * - col1 * - col2 + col2 + - col0 * col2 AS col2 FROM tab0
----
243309
671826
9375
onlyif mysql # use DIV operator for integer division
query I rowsort label-2522
SELECT DISTINCT col1 DIV tab1.col1 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-2522
SELECT DISTINCT col1 / tab1.col1 AS col1 FROM tab1
----
1
query I rowsort
SELECT col2 * + tab1.col1 + col2 AS col0 FROM tab1
----
1344
1458
627
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT IN ( col0 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2525
SELECT DISTINCT col0 * col0 DIV - col2 AS col2 FROM tab1
----
-66
-71
0
skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT col0 * col0 / - col2 AS col2 FROM tab1
----
-66
-71
0
query I rowsort
SELECT + col0 + cor0.col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT - 62 - tab0.col1 * + 70 FROM tab0
----
-6082
-6432
-6852
query I rowsort
SELECT 59 + + col0 AS col2 FROM tab2 cor0
----
137
138
66
query I rowsort
SELECT DISTINCT - col1 / col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2530
SELECT DISTINCT cor0.col1 * col1 DIV + col0 FROM tab2 cor0
----
137
3
44
skipif mysql # not compatible
query I rowsort label-2530
SELECT DISTINCT cor0.col1 * col1 / + col0 FROM tab2 cor0
----
137
3
44
query I rowsort
SELECT - col0 + cor0.col0 * + col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT col1 * + col2 + col1 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT - 41 * col1 * col1 + col2 FROM tab1 cor0
----
-27662
-4043
-6833
onlyif mysql # use DIV operator for integer division
query I rowsort label-2534
SELECT DISTINCT + 56 DIV col1 + - ( + col1 + + col1 ) * 81 col0 FROM tab0
----
-13932
-14742
-15714
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2534
SELECT DISTINCT + 56 / col1 + - ( + col1 + + col1 ) * 81 col0 FROM tab0
----
-13932
-14742
-15714
query I rowsort
SELECT ALL cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT ALL ( col0 ) DIV cor0.col1 + col2 * + col2 FROM tab2 AS cor0
----
1448
677
729
skipif mysql # not compatible
query I rowsort label-2536
SELECT ALL ( col0 ) / cor0.col1 + col2 * + col2 FROM tab2 AS cor0
----
1448
677
729
query I rowsort
SELECT ALL 57 * - col0 - - 75 * + col0 AS col1 FROM tab1 AS cor0
----
1152
1440
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) * 60 + + col0 * + col0 col0 FROM tab1 AS cor0
----
-3231
640
676
query I rowsort
SELECT col0 + col0 * - ( - col0 ) AS col2 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2540
SELECT DISTINCT 88 DIV - cor0.col1 FROM tab2 cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT 88 / - cor0.col1 FROM tab2 cor0
----
-1
-2
-5
query I rowsort
SELECT - col0 * cor0.col0 - ( - 43 ) AS col0 FROM tab1 cor0
----
-4053
-6357
34
query I rowsort
SELECT - + ( col0 ) * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 33 + col2 col0 FROM tab0 AS cor0
----
-32
0
49
query I rowsort
SELECT - + col2 * col1 + cor0.col0 * - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-180342
-329412
-744471
query I rowsort
SELECT + 55 AS col1 FROM tab2 AS cor0
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2546
SELECT ALL - 86 DIV - col0 FROM tab0 cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-2546
SELECT ALL - 86 / - col0 FROM tab0 cor0
----
0
2
3
query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col1 + 45 FROM tab2 AS cor0
----
-14
14
28
query I rowsort
SELECT - cor0.col1 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + - col0 + 17 AS col1 FROM tab2 AS cor0
----
-61
-62
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-2551
SELECT DISTINCT - col1 DIV ( col1 ) - - col0 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT - col1 / ( col1 ) - - col0 FROM tab1 AS cor0
----
2
63
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2552
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2552
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * col0 + + ( - tab1.col1 ) AS col1 FROM tab1
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-2554
SELECT ALL - col2 DIV + col1 + + 66 FROM tab1 AS cor0
----
59
61
64
skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - col2 / + col1 + + 66 FROM tab1 AS cor0
----
59
61
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 - - col1 col1 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT - ( 68 ) * col2 FROM tab0 AS cor0
----
-2244
-5576
-68
query I rowsort
SELECT ALL cor2.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
query I rowsort
SELECT - col1 * 30 AS col2 FROM tab0 AS cor0
----
-2580
-2730
-2910
query I rowsort
SELECT + + 9 * ( + col0 ) AS col2 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT ALL cor1.col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2561
SELECT ALL + + col0 * col1 + CAST( NULL AS DECIMAL ) 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-2561
SELECT ALL + + col0 * col1 + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 col1 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - tab2.col1 col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT 5 + - 80 * - col2 FROM tab2
----
2085
2165
3045
query I rowsort
SELECT DISTINCT ( col2 ) - col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL col2 * col1 + - col1 * + col0 * cor0.col1 FROM tab0 AS cor0
----
-174666
-329218
-729547
query I rowsort
SELECT col0 * ( + 99 ) FROM tab2 AS cor0
----
693
7722
7821
onlyif mysql # use DIV operator for integer division
query I rowsort label-2569
SELECT ALL col0 + + cor0.col0 DIV - ( + col1 ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL col0 + + cor0.col0 / - ( + col1 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - - col1 * + 26 + 92 + col1 AS col0 FROM tab2 AS cor0
----
1685
551
929
query I rowsort
SELECT ALL cor0.col1 * - 31 + col1 FROM tab0 AS cor0
----
-2580
-2730
-2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT DISTINCT col1 * 74 DIV cor0.col1 FROM tab0 AS cor0
----
74
skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT col1 * 74 / cor0.col1 FROM tab0 AS cor0
----
74
query I rowsort
SELECT - + col0 + 87 AS col1 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT DISTINCT - + 14 FROM tab2 cor0
----
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-2575
SELECT ALL + col0 DIV col1 + 87 FROM tab2 AS cor0
----
87
88
91
skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + col0 / col1 + 87 FROM tab2 AS cor0
----
87
88
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col2 FROM tab2 AS cor0
----
85
85
85
query I rowsort
SELECT ALL 38 * - col1 * + 25 AS col2 FROM tab1 cor0
----
-12350
-24700
-9500
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - + col2 * col0 + col2 * 9 AS col0 FROM tab2 AS cor0
----
-1794
-2660
54
query I rowsort
SELECT - 35 * col0 + 21 + col2 * - cor0.col0 FROM tab2 AS cor0
----
-413
-4737
-5746
query I rowsort
SELECT + - 80 + cor0.col1 * 28 AS col0 FROM tab0 cor0
----
2328
2468
2636
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2582
SELECT col1 + + CAST( + col2 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif mysql # not compatible
query I rowsort label-2582
SELECT col1 + + CAST ( + col2 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - 43 + - col0 FROM tab2
----
-121
-122
-50
query I rowsort
SELECT - col2 * - col0 + col0 FROM tab2
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2585
SELECT ALL + col2 + col0 + - ( - tab1.col2 ) * - col1 * - CAST( col1 AS SIGNED ) FROM tab1
----
16400
36561
5821
skipif mysql # not compatible
query I rowsort label-2585
SELECT ALL + col2 + col0 + - ( - tab1.col2 ) * - col1 * - CAST ( col1 AS INTEGER ) FROM tab1
----
16400
36561
5821
query I rowsort
SELECT ALL - col0 + + col1 * 1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2587
SELECT ALL col0 * - col0 * CAST( + 11 + - col1 * - col0 AS SIGNED ) FROM tab2
----
-11172
-28065492
-8450314
skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL col0 * - col0 * CAST ( + 11 + - col1 * - col0 AS INTEGER ) FROM tab2
----
-11172
-28065492
-8450314
query I rowsort
SELECT - col1 + col0 * - col1 + - col0 * + 64 AS col2 FROM tab1 AS cor0
----
-296
-4746
-6173
query I rowsort
SELECT + col2 * col1 + col1 * + col1 AS col2 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT + col2 * 72 FROM tab1
----
3888
4104
6912
query I rowsort
SELECT ALL 61 + 21 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2592
SELECT cor0.col2 DIV ( + cor0.col1 ) + - col1 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-2592
SELECT cor0.col2 / ( + cor0.col1 ) + - col1 FROM tab1 AS cor0
----
-24
-5
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2593
SELECT ALL - CAST( - 4 AS SIGNED ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif mysql # not compatible
query I rowsort label-2593
SELECT ALL - CAST ( - 4 AS INTEGER ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT + cor0.col1 * ( 48 ) AS col0 FROM tab1 AS cor0
----
1248
480
624
query I rowsort
SELECT ALL - 52 + col2 AS col2 FROM tab2
----
-14
-25
-26
query I rowsort
SELECT DISTINCT 18 * - 38 + col0 AS col2 FROM tab1
----
-604
-620
-681
query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + - 37 * col1 + ( - col2 ) + col0 * col2 FROM tab1 cor0
----
-854
3221
7103
query I rowsort
SELECT ( - col1 ) + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + 95 + col1 + col0 AS col2 FROM tab0 cor0
----
205
227
275
query I rowsort
SELECT col2 * + col0 + cor0.col0 + - col2 AS col1 FROM tab1 AS cor0
----
111
3655
7664
query I rowsort
SELECT ALL + cor0.col2 + 96 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 4cc6d661237c3c5695e17a7ef8a55cb6
query I rowsort
SELECT DISTINCT + col2 * + 38 + col0 FROM tab0
----
1278
3205
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2604
SELECT DISTINCT CAST( NULL AS DECIMAL ) + col1 * col0 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT CAST ( NULL AS REAL ) + col1 * col0 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT + col1 * col1 + + col1 + - 28 * + 75 AS col2 FROM tab2
----
-1108
-1794
1440
query I rowsort
SELECT 66 - + col2 FROM tab1 AS cor0
----
-30
12
9
query I rowsort
SELECT ALL + 34 + col0 * col1 FROM tab0
----
2098
3429
8133
query I rowsort
SELECT DISTINCT + 94 FROM tab1, tab0 AS cor0
----
94
query I rowsort
SELECT + - col1 * - ( col0 ) + - 57 FROM tab0 AS cor0
----
2007
3338
8042
query I rowsort
SELECT DISTINCT col2 + - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL + - 51 - - col2 AS col0 FROM tab1 AS cor0
----
3
45
6
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) + - col2 + + col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + col1 * col2 - col2 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT ALL - - col2 + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + col2 + col1 * ( col2 ) FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 + + col1 col2 FROM tab0 AS cor0
----
-2
-7
4
query I rowsort
SELECT + + col2 * col2 + - 57 FROM tab2 AS cor0
----
1387
619
672
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2618
SELECT ALL - cor0.col2 + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2618
SELECT ALL - cor0.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-2619
SELECT + col0 * - col0 + - col2 DIV col0 col2 FROM tab0 AS cor0
----
-1225
-577
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2619
SELECT + col0 * - col0 + - col2 / col0 col2 FROM tab0 AS cor0
----
-1225
-577
-7921
query I rowsort
SELECT DISTINCT + 16 * + col1 + + tab2.col2 AS col0 FROM tab2
----
310
523
970
onlyif mysql # use DIV operator for integer division
query I rowsort label-2621
SELECT + col2 * col0 + col1 DIV col2 + col1 FROM tab0
----
229
7390
880
skipif mysql # not compatible
query I rowsort label-2621
SELECT + col2 * col0 + col1 / col2 + col1 FROM tab0
----
229
7390
880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2622
SELECT DISTINCT CAST( col1 + - col1 AS SIGNED ) FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT CAST ( col1 + - col1 AS INTEGER ) FROM tab0
----
0
query I rowsort
SELECT DISTINCT - 41 + - 14 FROM tab1
----
-55
query I rowsort
SELECT - - col1 + - col2 * + col2 * col0 AS col2 FROM tab1 AS cor0
----
-207926
-737267
-8722
query I rowsort
SELECT DISTINCT - col0 * - 60 - col0 AS col2 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT ALL col2 * + col1 + ( cor0.col1 + col2 ) FROM tab1 AS cor0
----
1357
1484
637
query I rowsort
SELECT - col2 * - ( col2 ) * col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT + col0 - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT 62 * col2 FROM tab0
----
2046
5084
62
query I rowsort
SELECT ALL 21 * col1 FROM tab1
----
210
273
546
query I rowsort
SELECT - col2 * 35 + col1 * col2 FROM tab1 AS cor0
----
-1425
-2112
-486
query I rowsort
SELECT col2 + - col2 * col0 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT - col1 * col0 - + 5 AS col0 FROM tab1 AS cor0
----
-1045
-645
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2634
SELECT ALL tab2.col1 - + ( - ( col1 ) * CAST( ( - col2 ) AS SIGNED ) + col2 ) FROM tab2
----
-1501
-667
-833
skipif mysql # not compatible
query I rowsort label-2634
SELECT ALL tab2.col1 - + ( - ( col1 ) * CAST ( ( - col2 ) AS INTEGER ) + col2 ) FROM tab2
----
-1501
-667
-833
query I rowsort
SELECT DISTINCT col2 * - 74 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT ALL - - col2 + + 85 * + cor0.col1 FROM tab1 AS cor0
----
1201
2264
907
query I rowsort
SELECT ALL + col0 + + col0 - col2 FROM tab1
----
-48
64
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-2638
SELECT DISTINCT + col1 DIV ( + col0 * col2 ) AS col0 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT + col1 / ( + col0 * col2 ) AS col0 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 52 col2 FROM tab2
----
-1352
-1404
-1976
query I rowsort
SELECT + col1 * 57 - col2 FROM tab2
----
1740
3337
931
query I rowsort
SELECT 63 * - cor0.col0 - - col2 FROM tab0 cor0
----
-1479
-2204
-5525
query I rowsort
SELECT - col1 * + tab2.col2 + col2 * col0 FROM tab2
----
-648
2356
494
query I rowsort
SELECT DISTINCT - ( ( col0 ) ) * ( cor0.col2 * - col1 ) AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT - + cor0.col2 + + col2 + - cor0.col2 * - col0 * - 31 AS col0 FROM tab1 AS cor0
----
-113088
-238080
-5022
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2645
SELECT ALL - CAST( - cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL - CAST ( - cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2646
SELECT CAST( NULL AS SIGNED ) * cor0.col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2646
SELECT CAST ( NULL AS INTEGER ) * cor0.col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 31 * ( col1 ) AS col1 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT - + cor0.col2 * cor0.col0 * - col0 + col1 FROM tab0 AS cor0
----
1322
19094
649613
onlyif mysql # use DIV operator for integer division
query I rowsort label-2649
SELECT DISTINCT - + col2 DIV + col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT - + col2 / + col1 AS col1 FROM tab1 cor0
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 11 ) col0 FROM tab2 AS cor0
----
11
query I rowsort
SELECT 64 * col1 - - cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1280
1742
1872
query I rowsort
SELECT ALL - + col1 * + cor0.col2 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2653
SELECT - - CAST( col2 AS SIGNED ) - + col0 FROM tab0 cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-2653
SELECT - - CAST ( col2 AS INTEGER ) - + col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT + - 91 * col1 + + col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1090
-2337
-836
query I rowsort
SELECT ALL - col1 + col1 * - cor0.col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ( col1 ) * 32 + 93 * col1 FROM tab1
----
1250
1625
3250
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 + col0 + + col2 * col0 AS col1 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT - + 37 + col0 * - ( + cor0.col0 ) FROM tab1 AS cor0
----
-4133
-46
-6437
query I rowsort
SELECT ALL - 88 + col0 FROM tab0 cor0
----
-53
-64
1
query I rowsort
SELECT ALL + cor0.col2 + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - - cor0.col0 * - col2 + 19 FROM tab2 AS cor0
----
-170
-2009
-2983
onlyif mysql # use DIV operator for integer division
query I rowsort label-2664
SELECT + col1 + - col0 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2664
SELECT + col1 + - col0 / col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + - col0 * 7 AS col0 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT col1 * + 83 AS col2 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT + + col0 * col1 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT cor0.col1 * + col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col1 * - 8 AS col0 FROM tab0
----
-688
-728
-776
onlyif mysql # use DIV operator for integer division
query I rowsort label-2670
SELECT ALL 6 DIV col1 + - tab1.col1 AS col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2670
SELECT ALL 6 / col1 + - tab1.col1 AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + 31 FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
31
query I rowsort
SELECT tab0.col1 + - 10 FROM tab0
----
76
81
87
query I rowsort
SELECT DISTINCT + ( 81 ) * + cor0.col0 + ( + 8 ) AS col2 FROM tab1 AS cor0
----
251
5192
6488
query I rowsort
SELECT ALL + 91 * + col0 * - col0 + - ( 27 ) FROM tab0 AS cor0
----
-111502
-52443
-720838
query I rowsort
SELECT DISTINCT + cor0.col1 - col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - ( col1 ) * + col2 + 37 * - col2 FROM tab0 AS cor0
----
-10496
-134
-4059
onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT - cor0.col1 DIV 40 + col2 AS col0 FROM tab2 AS cor0
----
25
27
38
skipif mysql # not compatible
query I rowsort label-2677
SELECT - cor0.col1 / 40 + col2 AS col0 FROM tab2 AS cor0
----
25
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 3 col2 FROM tab2 cor0
----
20
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2679
SELECT + col1 + - cor0.col1 * - CAST( col0 AS SIGNED ) * cor0.col2 FROM tab0 AS cor0
----
3492
664209
68198
skipif mysql # not compatible
query I rowsort label-2679
SELECT + col1 + - cor0.col1 * - CAST ( col0 AS INTEGER ) * cor0.col2 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT - + col0 * - col2 + + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col2 + - col1 * col0 * 6 FROM tab0 AS cor0
----
-12351
-20369
-48512
query I rowsort
SELECT DISTINCT - - col2 + col1 * col2 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT col0 * col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + + col0 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col2 * col0 col2 FROM tab0 cor0
----
0
7209
768
query I rowsort
SELECT 64 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT col1 + - col1 DIV + col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2687
SELECT col1 + - col1 / + col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL - col0 + 28 AS col0 FROM tab2 AS cor0
----
-50
-51
21
query I rowsort
SELECT ALL - col1 * col2 - - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2691
SELECT col2 DIV - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-2691
SELECT col2 / - col1 + - cor0.col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
query I rowsort
SELECT 44 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2693
SELECT DISTINCT + - col2 + col0 DIV + col1 FROM tab2 cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT + - col2 + col0 / + col1 FROM tab2 cor0
----
-25
-27
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2694
SELECT ALL + col2 - CAST( - cor0.col2 AS SIGNED ) * + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
skipif mysql # not compatible
query I rowsort label-2694
SELECT ALL + col2 - CAST ( - cor0.col2 AS INTEGER ) * + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT col1 * - 79 + + 3 * - col1 AS col1 FROM tab2 AS cor0
----
-1394
-2542
-4838
onlyif mysql # use DIV operator for integer division
query I rowsort label-2696
SELECT CAST( - 21 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-2696
SELECT CAST ( - 21 AS INTEGER ) / col0 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2697
SELECT + col2 DIV col2 + - cor0.col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-2697
SELECT + col2 / col2 + - cor0.col0 FROM tab1 AS cor0
----
-2
-63
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2698
SELECT DISTINCT col0 + - CAST( NULL AS DECIMAL ) * - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2698
SELECT DISTINCT col0 + - CAST ( NULL AS REAL ) * - col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT col2 * + col0 + + col2 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT - cor0.col1 * + 85 AS col2 FROM tab1, tab2, tab1 cor0
----
-1105
-2210
-850
onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT col2 DIV + 15 FROM tab2
----
1
1
2
skipif mysql # not compatible
query I rowsort label-2701
SELECT col2 / + 15 FROM tab2
----
1
1
2
query I rowsort
SELECT DISTINCT 60 * col1 AS col0 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT + ( - col2 ) * col0 + 95 AS col2 FROM tab1 AS cor0
----
-3553
-67
-7585
query I rowsort
SELECT + col0 * col1 + col2 * + 17 FROM tab0 AS cor0
----
2625
3412
9493
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2705
SELECT ALL - CAST( NULL AS DECIMAL ) + - cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - CAST ( NULL AS REAL ) + - cor0.col1 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - 64 ) FROM tab0, tab1 AS cor0
----
-64
query I rowsort
SELECT ALL + col2 + 46 AS col1 FROM tab2
----
72
73
84
query I rowsort
SELECT + col2 + col1 * col0 + - tab2.col1 FROM tab2
----
1364
213
4569
onlyif mysql # use DIV operator for integer division
query I rowsort label-2709
SELECT DISTINCT + col2 + col0 DIV - 6 AS col2 FROM tab1
----
47
54
83
skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT + col2 + col0 / - 6 AS col2 FROM tab1
----
47
54
83
query I rowsort
SELECT DISTINCT - col1 + - 34 * - col1 * + col0 AS col0 FROM tab0
----
115333
275275
70090
query I rowsort
SELECT - col2 - ( col0 * - col1 ) FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + + cor0.col0 + cor0.col1 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL - ( 62 * col2 ) FROM tab2
----
-1612
-1674
-2356
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 + - tab0.col0 ) col0 FROM tab0
----
2
62
62
query I rowsort
SELECT col2 * + 84 FROM tab1
----
4536
4788
8064
query I rowsort
SELECT + col2 * 51 AS col0 FROM tab2 AS cor0
----
1326
1377
1938
query I rowsort
SELECT DISTINCT 27 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT ALL - 22 AS col0 FROM tab1 cor0
----
-22
-22
-22
query I rowsort
SELECT - col1 * 57 * col1 FROM tab1
----
-38532
-5700
-9633
query I rowsort
SELECT ALL - col1 * - col0 * col1 AS col0 FROM tab0
----
177504
329315
737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 58 + tab0.col1 col1 FROM tab0
----
28
33
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT DISTINCT 48 DIV + col1 AS col0 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT 48 / + col1 AS col0 FROM tab1
----
1
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col1 FROM tab0
----
22
22
22
query I rowsort
SELECT ALL + 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab1 cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT DISTINCT - col0 + - 62 * 57 FROM tab0 AS cor0
----
-3558
-3569
-3623
query I rowsort
SELECT + col1 * - col0 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - ( col2 ) col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col1 + - 72 * col2 AS col2 FROM tab1 AS cor0
----
-3862
-4094
-6899
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT ALL col1 DIV + ( cor0.col0 ) FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-2730
SELECT ALL col1 / + ( cor0.col0 ) FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT 54 + col1 - + 8 * 3 * col2 AS col1 FROM tab2
----
-511
-563
-841
query I rowsort
SELECT DISTINCT - ( 5 ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-5
query I rowsort
SELECT + col0 + col2 * col0 AS col1 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT ALL col2 - 15 FROM tab1 AS cor0
----
39
42
81
query I rowsort
SELECT - - col1 * ( col1 ) + + col1 * + 5 AS col2 FROM tab0 AS cor0
----
7826
8736
9894
query I rowsort
SELECT + col2 + 56 AS col0 FROM tab0 AS cor0
----
138
57
89
query I rowsort
SELECT DISTINCT cor0.col1 * col0 * - 1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2738
SELECT ALL + + col1 DIV + col0 col2 FROM tab2 AS cor0
----
0
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2738
SELECT ALL + + col1 / + col0 col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT col2 * 30 AS col2 FROM tab0 AS cor0
----
2460
30
990
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2740
SELECT col2 + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-2740
SELECT col2 + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-2741
SELECT tab0.col0 * + col1 DIV + col1 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2741
SELECT tab0.col0 * + col1 / + col1 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + col2 + ( col2 ) + - col2 * + col0 FROM tab2 AS cor0
----
-135
-1976
-2926
query I rowsort
SELECT 84 * - col2 FROM tab2 cor0
----
-2184
-2268
-3192
query I rowsort
SELECT + ( col2 ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * 44 * col0 AS col0 FROM tab1 AS cor0
----
180224
281600
396
onlyif mysql # use DIV operator for integer division
query I rowsort label-2746
SELECT DISTINCT + col1 DIV 81 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2746
SELECT DISTINCT + col1 / 81 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 34 * 24 - + col0 FROM tab1 AS cor0
----
736
752
813
query I rowsort
SELECT ALL + + 93 + - col2 * col0 - 20 AS col2 FROM tab1 cor0
----
-3575
-7607
-89
query I rowsort
SELECT DISTINCT 2 * - 28 FROM tab1
----
-56
query I rowsort
SELECT + ( + col1 ) * + col0 + + col0 AS col2 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL 52 * col2 * ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-151629
-168884
-479152
query I rowsort
SELECT DISTINCT col1 * + col0 + col1 * col1 AS col1 FROM tab0 AS cor0
----
12804
16380
9460
query I rowsort
SELECT DISTINCT col0 * col0 - + ( - ( - cor0.col0 ) + + 56 ) FROM tab2 AS cor0
----
-14
5950
6106
onlyif mysql # use DIV operator for integer division
query I rowsort label-2754
SELECT + col1 + + cor0.col0 DIV CAST( col2 * - col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2754
SELECT + col1 + + cor0.col0 / CAST ( col2 * - col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + + col2 * col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-2756
SELECT DISTINCT + cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL - 40 * col1 + - 84 FROM tab2 AS cor0
----
-1324
-2444
-764
query I rowsort
SELECT DISTINCT + 27 * col0 AS col0 FROM tab1 AS cor0
----
1728
2160
81
query I rowsort
SELECT ( col1 * - col1 + - col0 ) FROM tab2
----
-3559
-368
-968
query I rowsort
SELECT - col1 * + col1 - + tab2.col1 AS col0 FROM tab2
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT + 52 * col0 FROM tab0 AS cor0
----
1248
1820
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-2762
SELECT ALL - + col2 + + col0 DIV 24 AS col1 FROM tab1 AS cor0
----
-54
-55
-93
skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - + col2 + + col0 / 24 AS col1 FROM tab1 AS cor0
----
-54
-55
-93
query I rowsort
SELECT ALL + + 48 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
-196608
-307200
-432
query I rowsort
SELECT ALL - + 72 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2765
SELECT 99 + + cor0.col0 DIV + tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7b29dd13ccfeff7acf0e24d3e80d3d5c
skipif mysql # not compatible
query I rowsort label-2765
SELECT 99 + + cor0.col0 / + tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7b29dd13ccfeff7acf0e24d3e80d3d5c
query I rowsort
SELECT + col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL ( 88 ) FROM tab0, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e
query I rowsort
SELECT + tab0.col0 * 31 - + col0 AS col1 FROM tab0
----
1050
2670
720
query I rowsort
SELECT ALL - 63 * - tab1.col2 FROM tab1
----
3402
3591
6048
query I rowsort
SELECT DISTINCT 59 * 32 * + col0 AS col0 FROM tab1 AS cor0
----
120832
151040
5664
query I rowsort
SELECT + - ( + 60 ) + + col0 FROM tab0 AS cor0
----
-25
-36
29
query I rowsort
SELECT - ( col1 ) * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 51 AS col1 FROM tab0 AS cor0
----
51
query I rowsort
SELECT ALL - + cor0.col0 * - ( + col1 ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col2 * - 24 AS col0 FROM tab0 cor0
----
-1968
-24
-792
query I rowsort
SELECT + 45 + col2 * col0 AS col1 FROM tab2 AS cor0
----
2073
234
3047
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2778
SELECT + CAST( NULL AS SIGNED ) * cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2778
SELECT + CAST ( NULL AS INTEGER ) * cor0.col1 + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col1 * col1 AS col2 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT - ( + col0 ) + + cor0.col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - cor0.col0 + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT + 33 - 41 AS col0 FROM tab0 AS cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT col1 + col1 * - col2 * col0 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL tab1.col1 + + 99 * - col0 AS col2 FROM tab1
----
-271
-6326
-7907
query I rowsort
SELECT col2 * + ( 33 ) FROM tab0
----
1089
2706
33
query I rowsort
SELECT ALL col0 + - ( + 28 * col2 ) AS col0 FROM tab2
----
-650
-749
-985
query I rowsort
SELECT DISTINCT + col0 + + 94 AS col2 FROM tab1
----
158
174
97
query I rowsort
SELECT - col2 * + col1 * - col1 AS col1 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT + - col0 + + cor0.col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT - ( + 15 ) + - col2 FROM tab0 AS cor0
----
-16
-48
-97
query I rowsort
SELECT - - ( col0 ) + + col2 * - col2 * + cor0.col1 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT + 20 + 29 * col1 FROM tab2 AS cor0
----
1731
513
919
query I rowsort
SELECT DISTINCT ( + col2 ) - col0 * - ( col1 ) FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT - ( col2 ) * col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2795
SELECT ALL - col0 DIV + col2 AS col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2795
SELECT ALL - col0 / + col2 AS col2 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 * - 54 col1 FROM tab1 AS cor0
----
216
3513
4416
query I rowsort
SELECT ALL - + col1 + col0 * - col2 + - col0 * col2 AS col2 FROM tab2 AS cor0
----
-409
-4115
-6021
query I rowsort
SELECT ALL col0 + + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
260
71
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2799
SELECT ALL - col0 * CAST( NULL AS SIGNED ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2800
SELECT - col1 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2800
SELECT - col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2801
SELECT ALL + - col0 * col2 DIV + col0 AS col1 FROM tab2 cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2801
SELECT ALL + - col0 * col2 / + col0 AS col1 FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2802
SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - cor1.col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 - + col2 col1 FROM tab1 AS cor0
----
-28
-31
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2805
SELECT ALL - CAST( col1 AS SIGNED ) + col0 DIV - col2 AS col1 FROM tab0 AS cor0
----
-132
-86
-92
skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - CAST ( col1 AS INTEGER ) + col0 / - col2 AS col1 FROM tab0 AS cor0
----
-132
-86
-92
query I rowsort
SELECT - - col2 * - col0 + - 77 FROM tab1 cor0
----
-239
-3725
-7757
query I rowsort
SELECT + ( + col0 ) * 19 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT ALL - col1 - col2 * ( col1 + + col2 ) * 24 AS col1 FROM tab2 AS cor0
----
-37615
-50177
-53099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2809
SELECT + CAST( col1 AS SIGNED ) * col2 + + col1 * + col1 AS col1 FROM tab1
----
1417
2080
670
skipif mysql # not compatible
query I rowsort label-2809
SELECT + CAST ( col1 AS INTEGER ) * col2 + + col1 * + col1 AS col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT + col2 * - cor0.col2 * - 56 + + 62 AS col1 FROM tab0 AS cor0
----
118
376606
61046
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 * 65 col2 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 551f54d2c5c2cfc0d4090626cdb14100
query I rowsort
SELECT - col0 * tab2.col0 + col2 * + tab2.col0 FROM tab2
----
-3239
-4056
140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col1 FROM tab1
----
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL - col0 * col2 DIV tab0.col1 + tab0.col2 col2 FROM tab0
----
1
2
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - col0 * col2 / tab0.col1 + tab0.col2 col2 FROM tab0
----
1
2
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col1 col0 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE ( NULL ) <> col0
----
query I rowsort
SELECT - tab0.col2 + tab0.col2 AS col2 FROM tab0
----
0
0
0
query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 * - col0 * col2 ) NOT IN ( - col0 + tab1.col2 / col1 )
----
query I rowsort
SELECT ALL col0 + + tab2.col0 * col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT col2 * - col0 NOT IN ( col0 * - col0 * + col2 + - col0 * col0 )
----
query I rowsort
SELECT + col1 + tab1.col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col0 * col2 * - col2 AS col2 FROM tab0 WHERE - col1 * + col0 <= col1
----
-26136
-35
-598436
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2823
SELECT ALL + col1 * - tab0.col1 - CAST( NULL AS SIGNED ) * - 79 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL + col1 * - tab0.col1 - CAST ( NULL AS INTEGER ) * - 79 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 17 + col2 AS col1 FROM tab1
----
113
71
74
query I rowsort
SELECT DISTINCT - 22 - col1 AS col2 FROM tab1
----
-32
-35
-48
query I rowsort
SELECT ALL + tab1.col0 AS col2 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-2827
SELECT + tab0.col2 * col0 + + col2 - + tab0.col2 DIV col1 AS col0 FROM tab0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-2827
SELECT + tab0.col2 * col0 + + col2 - + tab0.col2 / col1 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL - tab1.col2 * col2 * + col1 AS col1 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - col1 + col0 AS col0 FROM tab2 WHERE ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT col1 * - col2 * - col2 + + col2 * col0 - + col2 * - tab0.col0 AS col0 FROM tab0
----
167
626480
95238
query I rowsort
SELECT tab2.col1 * col0 + - col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT - tab1.col1 + + tab1.col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT - col2 - - col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col2 * - col1 * col2 FROM tab1
----
-119808
-32490
-75816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE + col0 * + col1 + col1 * + col2 >= NULL
----
query I rowsort
SELECT DISTINCT - col0 - - col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT tab1.col2 * - col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL col1 + - col1 / col1 AS col0 FROM tab2 WHERE col0 * + col1 BETWEEN ( col0 ) AND ( NULL )
----
query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT + col0 > ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT DISTINCT + col0 * col1 + - col0 DIV + 72 FROM tab2 AS cor0
----
1342
217
4601
skipif mysql # not compatible
query I rowsort label-2840
SELECT DISTINCT + col0 * col1 + - col0 / + 72 FROM tab2 AS cor0
----
1342
217
4601
query I rowsort
SELECT ALL + ( + 82 ) + col2 FROM tab0 AS cor0
----
115
164
83
query I rowsort
SELECT ALL 79 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL 93 * + 63 + - col2 AS col2 FROM tab2 cor0
----
5821
5832
5833
query I rowsort
SELECT DISTINCT - col2 * ( - col1 ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col1 * ( col1 ) * 38 + col2 * - cor0.col0 FROM tab0 AS cor0
----
280256
307380
357507
onlyif mysql # use DIV operator for integer division
query I rowsort label-2846
SELECT DISTINCT + 84 DIV col0 + + col1 AS col0 FROM tab0 AS cor0
----
89
91
99
skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT + 84 / col0 + + col1 AS col0 FROM tab0 AS cor0
----
89
91
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 + col0 col2 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT + + 2 + col1 AS col2 FROM tab1 AS cor0
----
12
15
28
query I rowsort
SELECT DISTINCT + 52 + 21 AS col1 FROM tab0 AS cor0
----
73
query I rowsort
SELECT - + col0 + col2 AS col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col0 * col1 + 37 * - col0 + + col1 FROM tab2 AS cor0
----
-11
-1563
1775
query I rowsort
SELECT DISTINCT col2 * col1 + - 83 FROM tab1 AS cor0
----
1165
1321
487
query I rowsort
SELECT ALL - col2 * col0 + - 87 * - ( + col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-733
1910
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-2854
SELECT DISTINCT - - col0 DIV col2 + 47 + col0 AS col0 FROM tab1 AS cor0
----
112
127
50
skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT - - col0 / col2 + 47 + col0 AS col0 FROM tab1 AS cor0
----
112
127
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * ( cor0.col2 ) col0 FROM tab0 AS cor0
----
0
7209
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 * - cor0.col0 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 3e4108b225cb7fe6996db851fb87e75b
query I rowsort
SELECT ALL + 58 AS col0 FROM tab2
----
58
58
58
query I rowsort
SELECT col1 * + col2 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT + col0 - cor0.col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2859
SELECT + col0 - cor0.col2 / + col1 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + ( 87 ) col0 FROM tab2 AS cor0
----
28
56
70
query I rowsort
SELECT DISTINCT col2 - - 2 * - 57 AS col2 FROM tab0 AS cor0
----
-113
-32
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2862
SELECT DISTINCT + - col2 - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT + - col2 - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + col0 * ( col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + + col2 + col1 * cor0.col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL col1 * + tab0.col2 - - col0 FROM tab0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-2866
SELECT DISTINCT + 56 - col2 DIV 19 AS col0 FROM tab1
----
51
53
54
skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT + 56 - col2 / 19 AS col0 FROM tab1
----
51
53
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-2867
SELECT col2 + + col0 DIV tab2.col1 + + ( col0 ) FROM tab2
----
105
121
34
skipif mysql # not compatible
query I rowsort label-2867
SELECT col2 + + col0 / tab2.col1 + + ( col0 ) FROM tab2
----
105
121
34
query I rowsort
SELECT + col0 * col0 * col1 - cor0.col0 FROM tab1 AS cor0
----
231
40896
83120
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col2 * 56 + + col1 * + 41 AS col0 FROM tab2 AS cor0
----
-35437
-39553
-80167
query I rowsort
SELECT ALL + col1 - col1 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 43 - + ( - col2 + + 10 ) col2 FROM tab1 AS cor0
----
-2278
-2404
-4042
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2872
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab0 cor0, tab0 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-2872
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab0 cor0, tab0 cor1
----
NULL
query I rowsort
SELECT + tab0.col2 * - col1 + col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT tab0.col2 * - 88 FROM tab0
----
-2904
-7216
-88
query I rowsort
SELECT DISTINCT - - col1 * ( 19 ) FROM tab0 AS cor0
----
1634
1729
1843
query I rowsort
SELECT + - cor0.col1 + + 76 FROM tab1 AS cor0
----
50
63
66
query I rowsort
SELECT DISTINCT col1 * - 25 + 75 FROM tab1
----
-175
-250
-575
query I rowsort
SELECT DISTINCT - + col1 + - col0 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - + col0 * col1 + 72 AS col0 FROM tab2 AS cor0
----
-1271
-145
-4530
query I rowsort
SELECT col2 + - col0 * + 98 FROM tab2 AS cor0
----
-659
-7618
-7704
onlyif mysql # use DIV operator for integer division
query I rowsort label-2881
SELECT DISTINCT - - col2 DIV col2 + - col2 + - col1 * + col2 FROM tab0 AS cor0
----
-2870
-7543
-97
skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - - col2 / col2 + - col2 + - col1 * + col2 FROM tab0 AS cor0
----
-2870
-7543
-97
query I rowsort
SELECT ALL + - 91 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
-12
-13
-84
query I rowsort
SELECT + + 69 AS col1 FROM tab0 cor0
----
69
69
69
query I rowsort
SELECT ALL + 41 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL + ( col0 ) + col2 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2886
SELECT + col0 DIV col2 - col0 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-2886
SELECT + col0 / col2 - col0 FROM tab0 AS cor0
----
-24
-88
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 10 col2 FROM tab2, tab0 AS cor0
----
10
query I rowsort
SELECT col0 - + col1 * col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL - + cor0.col1 * - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT + 84 * col1 - col0 * col2 AS col2 FROM tab2 AS cor0
----
-1574
2415
2928
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - + 66 FROM tab2 AS cor0
----
-66
-66
-66
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col1 + col1 * + col0 AS col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT - ( + 57 ) FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 1b1b58f936aab250d5d6d3f1065ea6dd
query I rowsort
SELECT DISTINCT - - cor0.col0 + - col1 * col1 FROM tab2 cor0
----
-210
-3403
-954
query I rowsort
SELECT + + cor0.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT + col1 + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + cor0.col2 col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT DISTINCT tab2.col0 DIV + 43 AS col0 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT tab2.col0 / + 43 AS col0 FROM tab2
----
0
1
query I rowsort
SELECT ALL 57 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT - 18 * - col1 AS col1 FROM tab0 cor0
----
1548
1638
1746
query I rowsort
SELECT - col0 * - cor0.col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + 26 + cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4352cb57ce39aa705bd322c37798874
query I rowsort
SELECT col1 * + 53 + - col2 FROM tab0 cor0
----
4525
4741
5140
query I rowsort
SELECT - tab0.col1 * + 48 FROM tab0
----
-4128
-4368
-4656
query I rowsort
SELECT - col2 * - col1 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT - - col0 + + ( - col2 ) AS col2 FROM tab2 cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT col1 + col1 * col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT - - cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2912
SELECT + + col1 * + col0 DIV col0 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2912
SELECT + + col1 * + col0 / col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col2 + 2 FROM tab2
----
-24
-25
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( cor0.col2 ) * col2 col0 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2915
SELECT DISTINCT - - col2 DIV + 99 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT - - col2 / + 99 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + - col2 * - 95 - + col0 AS col2 FROM tab0 AS cor0
----
3111
60
7701
query I rowsort
SELECT ALL - - col2 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 + + col0 * 10 FROM tab0 AS cor0
----
273
351
972
onlyif mysql # use DIV operator for integer division
query I rowsort label-2919
SELECT DISTINCT - col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - col0 / - col0 AS col1 FROM tab2 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT - 14 DIV + tab1.col1 + + 86 * 14 col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to c81e2bfb4df3c19b40a8216b3bb0460c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2920
SELECT - 14 / + tab1.col1 + + 86 * 14 col0 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to c81e2bfb4df3c19b40a8216b3bb0460c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT + col2 + - CAST( NULL AS SIGNED ) / + cor0.col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2921
SELECT + col2 + - CAST ( NULL AS INTEGER ) / + cor0.col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 3 * - col0 AS col2 FROM tab0
----
-105
-267
-72
query I rowsort
SELECT - 0 * - col1 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2924
SELECT - + col2 DIV col0 + col0 + - 1 * + col2 FROM tab2 AS cor0
----
-23
41
52
skipif mysql # not compatible
query I rowsort label-2924
SELECT - + col2 / col0 + col0 + - 1 * + col2 FROM tab2 AS cor0
----
-23
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT ALL CAST( NULL AS DECIMAL ) / - col2 + tab1.col1 - 51 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2925
SELECT ALL CAST ( NULL AS REAL ) / - col2 + tab1.col1 - 51 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab2
----
73
73
73
query I rowsort
SELECT DISTINCT + 0 * + col0 - - col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL 22 - - col2 AS col0 FROM tab2
----
48
49
60
query I rowsort
SELECT - - 55 * - 84 FROM tab1 AS cor0
----
-4620
-4620
-4620
query I rowsort
SELECT + ( cor0.col2 ) + cor0.col1 * 87 + 26 * col0 AS col2 FROM tab1 AS cor0
----
2394
2591
3307
query I rowsort
SELECT ALL 46 + col2 AS col2 FROM tab1
----
100
103
142
query I rowsort
SELECT + - col2 + col0 + - 85 * 30 FROM tab2 AS cor0
----
-2498
-2509
-2570
query I rowsort
SELECT + 98 + - col2 + col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2960
3290
9218
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2934
SELECT + col1 * - col0 + CAST( 53 AS SIGNED ) + col1 FROM tab2 AS cor0
----
-1273
-133
-4490
skipif mysql # not compatible
query I rowsort label-2934
SELECT + col1 * - col0 + CAST ( 53 AS INTEGER ) + col1 FROM tab2 AS cor0
----
-1273
-133
-4490
query I rowsort
SELECT DISTINCT - + col0 * - cor0.col1 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT ALL cor0.col2 + cor0.col2 DIV - 32 FROM tab2 AS cor0
----
26
27
37
skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL cor0.col2 + cor0.col2 / - 32 FROM tab2 AS cor0
----
26
27
37
query I rowsort
SELECT - + cor0.col1 * + col1 + col0 + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-1003
-6451
-9487
onlyif mysql # use DIV operator for integer division
query I rowsort label-2938
SELECT - col2 DIV col1 + ( + col0 ) AS col0 FROM tab1
----
1
59
73
skipif mysql # not compatible
query I rowsort label-2938
SELECT - col2 / col1 + ( + col0 ) AS col0 FROM tab1
----
1
59
73
query I rowsort
SELECT + col2 + + col2 - + ( tab0.col1 ) * - col1 FROM tab0
----
7462
8445
9411
onlyif mysql # use DIV operator for integer division
query I rowsort label-2940
SELECT - col1 + col2 DIV col1 col0 FROM tab1
----
-24
-5
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2940
SELECT - col1 + col2 / col1 col0 FROM tab1
----
-24
-5
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2941
SELECT DISTINCT 47 DIV col0 + cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
36
7298
793
skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT 47 / col0 + cor0.col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
36
7298
793
query I rowsort
SELECT ALL col1 * - tab1.col0 + 30 * col1 * col2 + 96 * - col0 FROM tab1
----
10316
28720
41754
query I rowsort
SELECT ALL 50 * - cor0.col2 FROM tab1 cor0
----
-2700
-2850
-4800
query I rowsort
SELECT - + col0 * 27 AS col1 FROM tab0 AS cor0
----
-2403
-648
-945
query I rowsort
SELECT ALL - + col0 * - 39 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT col2 * ( col1 ) + col0 AS col1 FROM tab2 cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2947
SELECT ALL - - col0 DIV + 38 + + 77 FROM tab2 AS cor0
----
77
79
79
skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL - - col0 / + 38 + + 77 FROM tab2 AS cor0
----
77
79
79
query I rowsort
SELECT + + cor0.col0 * 35 AS col2 FROM tab1 AS cor0
----
105
2240
2800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + col1 + col1 col0 FROM tab1 AS cor0
----
214
3668
7706
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL - col0 + 1 * col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2952
SELECT ALL - col0 DIV - col1 AS col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL - col0 / - col1 AS col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT DISTINCT + + col0 + 94 FROM tab2 AS cor0
----
101
172
173
query I rowsort
SELECT DISTINCT - col2 + 41 FROM tab0 AS cor0
----
-41
40
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2955
SELECT col1 DIV - ( - col1 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2955
SELECT col1 / - ( - col1 ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - 0 * - 14 + col0 AS col0 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 + 58 col2 FROM tab2 cor0
----
16
query I rowsort
SELECT + - 0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * - 87 FROM tab2 AS cor0
----
-1479
-2697
-5133
query I rowsort
SELECT + - ( 76 ) FROM tab0 cor0
----
-76
-76
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2961
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + - col0 * + cor0.col2 + col1 + col1 * col1 * col0 FROM tab0 AS cor0
----
176798
329377
729802
query I rowsort
SELECT DISTINCT + - 49 - ( - col2 + col1 ) AS col1 FROM tab0 AS cor0
----
-102
-145
-58
query I rowsort
SELECT ALL - + col2 + - cor0.col1 * - col2 AS col0 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT ALL + + ( + col0 ) + col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2966
SELECT DISTINCT ( - 39 ) + col1 * - CAST( NULL AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2966
SELECT DISTINCT ( - 39 ) + col1 * - CAST ( NULL AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * col1 - + col1 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2968
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 44 + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-9
7254
748
query I rowsort
SELECT DISTINCT 73 + - ( - cor0.col1 ) * 9 FROM tab2 cor0
----
226
352
604
query I rowsort
SELECT ALL + + col2 * col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - + cor0.col0 - - col0 * + col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL + - 39 * - col1 AS col2 FROM tab0 AS cor0
----
3354
3549
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-2974
SELECT ALL + cor0.col2 + + col0 DIV col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
172
57
71
skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL + cor0.col2 + + col0 / col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
172
57
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-2975
SELECT DISTINCT ( col0 ) DIV + col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-2975
SELECT DISTINCT ( col0 ) / + col1 FROM tab2
----
0
1
4
query I rowsort
SELECT - col2 * + col0 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 * + 98 FROM tab0 AS cor0
----
8452
9007
9541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 11 ) - col1 col0 FROM tab2
----
-20
-48
-6
query I rowsort
SELECT 0 + - 13 * col2 AS col1 FROM tab0
----
-1066
-13
-429
query I rowsort
SELECT - col2 * 33 AS col2 FROM tab2 AS cor0
----
-1254
-858
-891
onlyif mysql # use DIV operator for integer division
query I rowsort label-2982
SELECT DISTINCT + col0 DIV - ( 25 ) AS col1 FROM tab1
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-2982
SELECT DISTINCT + col0 / - ( 25 ) AS col1 FROM tab1
----
-2
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2983
SELECT col0 * col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2983
SELECT col0 * col1 / + col0 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT 24 * cor0.col1 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT col2 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-2986
SELECT 49 DIV col1 AS col0 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2986
SELECT 49 / col1 AS col0 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT + 19 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * col2 col2 FROM tab0 AS cor0
----
3201
7954
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2989
SELECT + col2 + + col2 * CAST( - 4 + - col0 AS SIGNED ) * ( col0 * col2 ) FROM tab1 cor0
----
-14139591
-61182
-61931424
skipif mysql # not compatible
query I rowsort label-2989
SELECT + col2 + + col2 * CAST ( - 4 + - col0 AS INTEGER ) * ( col0 * col2 ) FROM tab1 cor0
----
-14139591
-61182
-61931424
query I rowsort
SELECT DISTINCT + 62 + - col2 * 31 + ( cor0.col1 ) * col1 FROM tab1 AS cor0
----
-1605
-2745
-936
query I rowsort
SELECT ALL col0 * + col2 - - 99 * col0 AS col2 FROM tab1 AS cor0
----
15600
459
9984
query I rowsort
SELECT + - 20 + - col0 AS col1 FROM tab1 AS cor0
----
-100
-23
-84
query I rowsort
SELECT DISTINCT - 70 * + col0 FROM tab2 AS cor0
----
-490
-5460
-5530
onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT DISTINCT + 72 DIV + col2 + ( 16 + col1 ) FROM tab0 cor0
----
104
107
185
skipif mysql # not compatible
query I rowsort label-2994
SELECT DISTINCT + 72 / + col2 + ( 16 + col1 ) FROM tab0 cor0
----
104
107
185
query I rowsort
SELECT - col2 + col2 * 22 FROM tab1 cor0
----
1134
1197
2016
query I rowsort
SELECT - + ( col1 ) + 0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 93 * + col1 + + col1 FROM tab1 AS cor0
----
1222
2444
940
query I rowsort
SELECT - + col2 * + col1 * col2 + 21 * col0 FROM tab1 AS cor0
----
-118128
-31146
-75753
query I rowsort
SELECT ALL - col0 * col0 * ( - cor0.col0 * + col1 ) + 97 AS col0 FROM tab0 AS cor0
----
1188961
4158972
64152276
onlyif mysql # use DIV operator for integer division
query I rowsort label-3000
SELECT + 53 + - col0 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
52
53
53
skipif mysql # not compatible
query I rowsort label-3000
SELECT + 53 + - col0 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
52
53
53
query I rowsort
SELECT col1 * col1 + - 53 AS col1 FROM tab2 AS cor0
----
236
3428
908
query I rowsort
SELECT - tab1.col0 * col1 + col1 FROM tab1
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT 25 * - 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 10218a2a4c99eb39ed03b5d70f638acf
query I rowsort
SELECT DISTINCT 93 * - col1 AS col0 FROM tab0
----
-7998
-8463
-9021
query I rowsort
SELECT - - col2 * col2 + col1 * + col0 + - 71 AS col2 FROM tab2 AS cor0
----
2716
5207
875
query I rowsort
SELECT + cor0.col0 * 63 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT + + col0 * 40 AS col1 FROM tab1 AS cor0
----
120
2560
3200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - 35 + + 70 * col0 col1 FROM tab2 AS cor0
----
1575
6125
7525
onlyif mysql # use DIV operator for integer division
query I rowsort label-3011
SELECT + col0 * 73 * cor0.col2 + col0 DIV CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2590
532755
57816
skipif mysql # not compatible
query I rowsort label-3011
SELECT + col0 * 73 * cor0.col2 + col0 / CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2590
532755
57816
query I rowsort
SELECT DISTINCT + col1 * - 87 + cor0.col1 FROM tab0 cor0
----
-7396
-7826
-8342
query I rowsort
SELECT DISTINCT ( + 8 ) FROM tab0, tab2 AS cor0
----
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3014
SELECT tab2.col2 - - CAST( 64 AS SIGNED ) FROM tab2
----
102
90
91
skipif mysql # not compatible
query I rowsort label-3014
SELECT tab2.col2 - - CAST ( 64 AS INTEGER ) FROM tab2
----
102
90
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3015
SELECT - cor0.col2 + CAST( + col1 AS SIGNED ) * col0 FROM tab1 cor0
----
24
583
944
skipif mysql # not compatible
query I rowsort label-3015
SELECT - cor0.col2 + CAST ( + col1 AS INTEGER ) * col0 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT DISTINCT - col0 + - col2 + - col2 * - ( + 80 ) FROM tab0
----
2583
44
6389
onlyif mysql # use DIV operator for integer division
query I rowsort label-3017
SELECT 54 DIV + tab2.col0 AS col1 FROM tab2
----
0
0
7
skipif mysql # not compatible
query I rowsort label-3017
SELECT 54 / + tab2.col0 AS col1 FROM tab2
----
0
0
7
query I rowsort
SELECT DISTINCT 62 FROM tab2, tab0, tab2 AS cor0
----
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 * + tab0.col2 + 37 col2 FROM tab0
----
1262
19045
649559
query I rowsort
SELECT - col1 * + col2 * 79 FROM tab2 AS cor0
----
-121186
-51034
-66123
onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT 64 DIV - col2 AS col0 FROM tab0
----
-1
-64
0
skipif mysql # not compatible
query I rowsort label-3021
SELECT 64 / - col2 AS col0 FROM tab0
----
-1
-64
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3022
SELECT + col1 DIV - col2 + - col1 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-3022
SELECT + col1 / - col2 + - col1 FROM tab0 AS cor0
----
-194
-88
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 * col0 col0 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3024
SELECT CAST( col0 AS SIGNED ) + tab1.col1 AS col2 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-3024
SELECT CAST ( col0 AS INTEGER ) + tab1.col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + + 33 * - 89 AS col0 FROM tab2 AS cor0
----
-2937
-2937
-2937
onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT DISTINCT - ( - 86 ) DIV col1 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT - ( - 86 ) / col1 FROM tab2 AS cor0
----
1
2
5
query I rowsort
SELECT ALL - col2 + ( col1 ) AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3028
SELECT - + ( + col2 ) DIV col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3028
SELECT - + ( + col2 ) / col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col0 + - col1 col1 FROM tab0 cor0
----
-131
-77
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * - ( col0 ) + 68 col0 FROM tab1 AS cor0
----
-10
-572
-972
query I rowsort
SELECT + - cor0.col0 * + col0 - - col0 AS col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL + 68 AS col1 FROM tab2 cor0
----
68
68
68
query I rowsort
SELECT col0 * - col1 - col1 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-3034
SELECT - col1 DIV - col2 + - col1 * - 79 FROM tab1 cor0
----
1027
2054
790
skipif mysql # not compatible
query I rowsort label-3034
SELECT - col1 / - col2 + - col1 * - 79 FROM tab1 cor0
----
1027
2054
790
query I rowsort
SELECT - 5 + + col2 FROM tab0 AS cor0
----
-4
28
77
query I rowsort
SELECT DISTINCT + 83 AS col0 FROM tab2 AS cor0
----
83
query I rowsort
SELECT ALL - col1 + - 1 * + col1 FROM tab0 cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * - col1 col1 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT DISTINCT - 99 + col0 FROM tab1 AS cor0
----
-19
-35
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3042
SELECT DISTINCT col0 * col1 + ( + col1 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT col0 * col1 + ( + col1 ) / - col2 AS col1 FROM tab0 AS cor0
----
2062
3298
8098
query I rowsort
SELECT DISTINCT ( + 5 ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab2 AS cor2
----
5
query I rowsort
SELECT ALL - 51 * cor0.col2 AS col1 FROM tab0 cor0
----
-1683
-4182
-51
query I rowsort
SELECT + + col2 * col1 + col2 * cor0.col2 FROM tab2 AS cor0
----
1566
2090
2210
onlyif mysql # use DIV operator for integer division
query I rowsort label-3046
SELECT - - col0 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3046
SELECT - - col0 / - col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col2 + 61 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT DISTINCT - col1 * 61 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT ALL cor0.col0 * col2 + + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + + 5 + 11 * col2 AS col1 FROM tab2 AS cor0
----
291
302
423
onlyif mysql # use DIV operator for integer division
query I rowsort label-3051
SELECT DISTINCT - - CAST( + col2 AS SIGNED ) DIV col2 + - ( 57 ) + + col2 AS col0 FROM tab1 AS cor0
----
-2
1
40
skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT - - CAST ( + col2 AS INTEGER ) / col2 + - ( 57 ) + + col2 AS col0 FROM tab1 AS cor0
----
-2
1
40
query I rowsort
SELECT DISTINCT + + col2 + 87 FROM tab0 AS cor0
----
120
169
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT + - col0 * + col2 + + col2 * col1 DIV - cor0.col1 col2 FROM tab1 cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3053
SELECT + - col0 * + col2 + + col2 * col1 / - cor0.col1 col2 FROM tab1 cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-3054
SELECT + col0 * col1 DIV - col1 AS col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3054
SELECT + col0 * col1 / - col1 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT col0 * - col1 + - ( tab1.col0 * - col2 ) + 61 FROM tab1
----
145
3069
6701
onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT - col0 DIV - 35 AS col2 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-3056
SELECT - col0 / - 35 AS col2 FROM tab2
----
0
2
2
query I rowsort
SELECT ALL 24 * + 38 FROM tab2, tab2 AS cor0
----
9 values hashing to 6a140b0e29906058194f9c1967b9aada
query I rowsort
SELECT ALL - col2 - ( col0 ) FROM tab2
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3059
SELECT ALL col2 - CAST( - 92 AS SIGNED ) * col0 AS col0 FROM tab2
----
671
7202
7306
skipif mysql # not compatible
query I rowsort label-3059
SELECT ALL col2 - CAST ( - 92 AS INTEGER ) * col0 AS col0 FROM tab2
----
671
7202
7306
query I rowsort
SELECT DISTINCT col1 - + 50 * 62 AS col0 FROM tab0
----
-3003
-3009
-3014
query I rowsort
SELECT DISTINCT + col1 - - 53 AS col0 FROM tab1
----
63
66
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT + col1 DIV 95 + cor0.col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3062
SELECT + col1 / 95 + cor0.col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - ( - 80 ) FROM tab1, tab2 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT ALL + - col1 + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 41 col2 FROM tab1 AS cor0
----
137
95
98
query I rowsort
SELECT 47 + col0 FROM tab0 AS cor0
----
136
71
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT col2 DIV tab1.col0 AS col2 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-3067
SELECT col2 / tab1.col0 AS col2 FROM tab1
----
0
1
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3068
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 56 * + col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3068
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 56 * + col1 FROM tab0
----
NULL
query I rowsort
SELECT - col0 + ( - col0 ) * col2 AS col2 FROM tab0
----
-70
-7387
-816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3070
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3070
SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + 38 FROM tab1 AS cor0
----
-26
-42
35
query I rowsort
SELECT + 69 * ( - col1 ) AS col2 FROM tab0
----
-5934
-6279
-6693
query I rowsort
SELECT DISTINCT - + col0 + + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col2 + col2 * + col1 FROM tab2
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * col2 + - ( - col2 ) col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + - cor0.col0 * 63 AS col0 FROM tab1 AS cor0
----
-189
-4032
-5040
onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT ALL - col0 DIV - 37 AS col0 FROM tab2 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-3077
SELECT ALL - col0 / - 37 AS col0 FROM tab2 AS cor0
----
0
2
2
query I rowsort
SELECT + - col0 * + 40 FROM tab2 AS cor0
----
-280
-3120
-3160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - ( 74 ) * col1 col0 FROM tab0 AS cor0
----
-152736
-251230
-599326
query I rowsort
SELECT 97 + tab1.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 65608609483212e0c79b91f037cd42f9
query I rowsort
SELECT ALL cor0.col1 * 90 FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT ALL + + col2 * - 32 * + 72 FROM tab2 AS cor0
----
-59904
-62208
-87552
query I rowsort
SELECT + + col1 * col1 * - 66 AS col2 FROM tab0 AS cor0
----
-488136
-546546
-620994
query I rowsort
SELECT DISTINCT + + col0 - col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + col2 * - ( ( - col2 ) ) + + 91 AS col2 FROM tab0 cor0
----
1180
6815
92
query I rowsort
SELECT ALL + + col0 + + col1 - col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT DISTINCT 15 * col2 FROM tab0
----
1230
15
495
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - 77 AS REAL ) * - col0 FROM tab1
----
231
4928
6160
query I rowsort
SELECT + 75 + 86 + col1 * + col0 FROM tab1 AS cor0
----
1201
239
801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 * col2 col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col0 * ( col1 ) FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT col1 * 41 AS col2 FROM tab2
----
1271
2419
697
query I rowsort
SELECT ALL tab2.col1 * - tab2.col0 AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT DISTINCT + - col1 + col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + - col1 + col1 / col1 AS col0 FROM tab2 AS cor0
----
-16
-30
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3095
SELECT + 53 DIV - col0 AS col0 FROM tab1 AS cor0
----
-17
0
0
skipif mysql # not compatible
query I rowsort label-3095
SELECT + 53 / - col0 AS col0 FROM tab1 AS cor0
----
-17
0
0
query I rowsort
SELECT - col1 * cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - col2 + + col0 * col2 AS col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - col1 * col2 + - col1 * col1 * col0 FROM tab2 AS cor0
----
-23477
-273052
-7564
query I rowsort
SELECT ( col2 ) + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + 19 + col2 FROM tab2 AS cor0
----
45
46
57
query I rowsort
SELECT - col0 * + cor0.col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
58
query I rowsort
SELECT ALL - col2 + 36 AS col0 FROM tab1
----
-18
-21
-60
query I rowsort
SELECT - col0 - 47 FROM tab0 AS cor0
----
-136
-71
-82
query I rowsort
SELECT DISTINCT + + cor0.col2 + - col0 * - 76 FROM tab2 AS cor0
----
559
5954
6042
query I rowsort
SELECT col1 * col2 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT ALL - - col0 DIV + 10 AS col1 FROM tab2 AS cor0
----
0
7
7
skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL - - col0 / + 10 AS col1 FROM tab2 AS cor0
----
0
7
7
query I rowsort
SELECT DISTINCT + cor0.col0 + ( col2 * + col0 ) FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - - col1 - - col2 * - cor0.col2 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - - col0 * 95 FROM tab2 AS cor0
----
665
7410
7505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3111
SELECT ALL + col1 + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * - 83 + col0 AS col0 FROM tab0 AS cor0
----
-7114
-7464
-8016
onlyif mysql # use DIV operator for integer division
query I rowsort label-3113
SELECT - 61 * + 51 + cor0.col0 DIV + col0 AS col1 FROM tab2 AS cor0
----
-3110
-3110
-3110
skipif mysql # not compatible
query I rowsort label-3113
SELECT - 61 * + 51 + cor0.col0 / + col0 AS col1 FROM tab2 AS cor0
----
-3110
-3110
-3110
query I rowsort
SELECT + + col1 * + col0 - - col1 * col0 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT DISTINCT + - ( 89 ) * col2 FROM tab1 AS cor0
----
-4806
-5073
-8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 48 ) + cor0.col1 col2 FROM tab1 cor0
----
-22
-35
-38
query I rowsort
SELECT 28 + + col0 FROM tab2 AS cor0
----
106
107
35
query I rowsort
SELECT ALL - - ( col0 ) + col1 * + col1 AS col2 FROM tab2 cor0
----
3559
368
968
query I rowsort
SELECT + - col0 + + ( col2 ) AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL 96 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL - cor0.col2 + - col0 + col1 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT - 1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col2 col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT col2 * + col1 + + col2 AS col0 FROM tab1 cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 + col2 + col1 col0 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT - col1 * - cor0.col2 - col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT - col2 + col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT - + col2 * col2 + cor0.col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-1090
-6724
skipif mysql # not compatible
query I rowsort label-3128
SELECT - + col2 * col2 + cor0.col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-1090
-6724
query I rowsort
SELECT ALL cor0.col0 - - col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 <> col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 cor0 WHERE ( + cor0.col2 * + col0 ) NOT IN ( + cor0.col2 )
----
-86
-91
-97
query I rowsort
SELECT ALL - col1 * + col2 + - col2 AS col1 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT - - col0 * - col2 * col2 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + cor0.col0 + col1 * - cor0.col1 * col2 AS col2 FROM tab0 AS cor0
----
-244044
-678953
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3135
SELECT DISTINCT col0 DIV - col0 + col0 * + col1 col2 FROM tab2
----
1342
216
4601
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT col0 / - col0 + col0 * + col1 col2 FROM tab2
----
1342
216
4601
onlyif mysql # use DIV operator for integer division
query I rowsort label-3136
SELECT + 38 DIV col1 AS col2 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3136
SELECT + 38 / col1 AS col2 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT + col2 * + col1 + col1 * cor0.col1 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT DISTINCT + col0 + - col0 * - 24 AS col1 FROM tab2 AS cor0
----
175
1950
1975
query I rowsort
SELECT cor0.col1 + - col0 + col0 AS col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT - + col0 + col0 * - 96 + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
-290
-6207
-7759
skipif mysql # not compatible
query I rowsort label-3140
SELECT - + col0 + col0 * - 96 + col0 / col0 AS col0 FROM tab1 AS cor0
----
-290
-6207
-7759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + col1 col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - col0 * - col0 + col1 + - col1 * col1 * col2 AS col0 FROM tab2 cor0
----
-25867
-4724
-84363
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3143
SELECT ALL CAST( 17 AS SIGNED ) FROM tab1
----
17
17
17
skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL CAST ( 17 AS INTEGER ) FROM tab1
----
17
17
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col1 FROM tab1
----
92
92
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-3145
SELECT ALL + col0 DIV + col2 col1 FROM tab0 cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL + col0 / + col2 col1 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - col2 + - col0 * - col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + - 98 + + col1 FROM tab0 AS cor0
----
-1
-12
-7
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - cor0.col1 AS REAL ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + 76 * col2 * + ( + 9 ) + + col1 FROM tab0 AS cor0
----
-22486
-55997
-587
query I rowsort
SELECT - - 7 AS col2 FROM tab1 cor0
----
7
7
7
query I rowsort
SELECT ALL + col0 + cor0.col2 * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT + - 23 AS col0 FROM tab2 AS cor0
----
-23
query I rowsort
SELECT ALL 34 + col1 FROM tab1 AS cor0
----
44
47
60
query I rowsort
SELECT ALL + ( - col1 ) + col2 AS col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT ALL - 48 * + 93 FROM tab0
----
-4464
-4464
-4464
query I rowsort
SELECT ALL ( + col2 ) AS col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab0
----
94
94
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-3159
SELECT ALL + 0 DIV col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3159
SELECT ALL + 0 / col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - + 15 * - col1 AS col0 FROM tab0 AS cor0
----
1290
1365
1455
query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL - 44 * - col1 - col1 AS col1 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT + + 94 AS col0 FROM tab1 cor0
----
94
94
94
query I rowsort
SELECT DISTINCT + cor0.col1 * 50 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
4300
4550
4850
query I rowsort
SELECT + 16 - + 98 FROM tab2
----
-82
-82
-82
query I rowsort
SELECT DISTINCT 57 * col0 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT + 8 * - col2 + ( - col2 ) * col2 AS col2 FROM tab2 cor0
----
-1748
-884
-945
query I rowsort
SELECT ALL 87 AS col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT ALL - 69 AS col1 FROM tab1
----
-69
-69
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 20 col2 FROM tab2 AS cor0
----
-18
-6
-7
query I rowsort
SELECT - + col1 * + cor0.col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 col2 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 25 + col2 + col0 col1 FROM tab2 AS cor0
----
79
9
92
query I rowsort
SELECT ALL col2 * + 99 AS col0 FROM tab0 AS cor0
----
3267
8118
99
query I rowsort
SELECT tab0.col1 * ( 83 ) * + col1 AS col2 FROM tab0
----
613868
687323
780947
query I rowsort
SELECT + col1 * ( + col2 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - col1 + + col0 + + col0 AS col0 FROM tab0
----
-27
-38
87
query I rowsort
SELECT ALL ( - ( - col2 ) ) * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col0 + - ( - cor0.col1 ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + tab2.col2 + col0 * ( tab2.col0 ) FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT col2 + + ( + col0 ) FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col2 + 67 * col1 AS col2 FROM tab1
----
1796
727
967
query I rowsort
SELECT DISTINCT - col0 * 13 + - col2 * tab2.col0 FROM tab2
----
-280
-3042
-4029
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * tab2.col1 col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT DISTINCT - col1 + col2 * col1 AS col2 FROM tab2
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + ( col0 ) * - tab2.col0 col0 FROM tab2
----
-22
-6058
-6203
query I rowsort
SELECT col1 * - 22 * col0 + - col1 FROM tab2
----
-101303
-29563
-4805
query I rowsort
SELECT col1 + - ( col2 ) * + col2 - 69 AS col0 FROM tab2
----
-1496
-686
-767
query I rowsort
SELECT - 57 + col1 AS col1 FROM tab0
----
29
34
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3190
SELECT DISTINCT CAST( NULL AS SIGNED ) - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT CAST ( NULL AS INTEGER ) - ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col2 + - 66 AS col1 FROM tab0 AS cor0
----
-148
-67
-99
query I rowsort
SELECT + cor0.col1 + col2 AS col0 FROM tab2 cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3193
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( - 43 ) - - col2 FROM tab2 AS cor0
----
-16
-17
-5
query I rowsort
SELECT + col0 * col0 * - col2 + 76 FROM tab0 AS cor0
----
-1149
-18932
-649446
query I rowsort
SELECT + 69 * - col0 + col1 * + col2 * ( + col2 ) AS col1 FROM tab2 cor0
----
19097
22116
34502
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * cor0.col2 * col2 + col1 * col1 col0 FROM tab0 AS cor0
----
101050
620165
9506
query I rowsort
SELECT - 36 + 72 FROM tab1 cor0
----
36
36
36
query I rowsort
SELECT - - col1 * col0 * - col0 + 36 FROM tab1 AS cor0
----
-198
-40924
-83164
query I rowsort
SELECT - - ( col0 ) * + cor0.col0 + - col1 * col2 AS col2 FROM tab1 AS cor0
----
-1395
3526
5152
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3201
SELECT + CAST( + 40 AS SIGNED ) * + cor0.col2 * cor0.col0 + 28 FROM tab2 AS cor0
----
120108
7588
81148
skipif mysql # not compatible
query I rowsort label-3201
SELECT + CAST ( + 40 AS INTEGER ) * + cor0.col2 * cor0.col0 + 28 FROM tab2 AS cor0
----
120108
7588
81148
query I rowsort
SELECT - 68 * - cor0.col2 FROM tab1 AS cor0
----
3672
3876
6528
query I rowsort
SELECT + 15 + 0 + + col1 AS col0 FROM tab0
----
101
106
112
query I rowsort
SELECT ALL ( col0 + col0 ) FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT DISTINCT + 49 DIV ( - col0 ) AS col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3205
SELECT DISTINCT + 49 / ( - col0 ) AS col0 FROM tab0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 + + tab1.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 30a9a33c3200ab583dec649582bbca42
query I rowsort
SELECT col2 + - ( cor0.col1 ) * - cor0.col2 AS col1 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT + col1 * - 99 FROM tab1 AS cor0
----
-1287
-2574
-990
query I rowsort
SELECT DISTINCT 99 * + tab2.col1 * + 25 FROM tab2
----
146025
42075
76725
query I rowsort
SELECT ALL cor0.col2 * ( + col0 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - col2 ) * col1 col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * col0 + col0 + - col2 AS col1 FROM tab0 AS cor0
----
3429
664125
68103
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3213
SELECT + - CAST( - col0 AS SIGNED ) - col2 AS col2 FROM tab0 cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-3213
SELECT + - CAST ( - col0 AS INTEGER ) - col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT + 47 * col2 + - col2 * 61 FROM tab1 cor0
----
-1344
-756
-798
query I rowsort
SELECT + ( col2 ) * + col2 + - 42 * col2 AS col0 FROM tab0 AS cor0
----
-297
-41
3280
query I rowsort
SELECT - col1 + + col0 * + col0 AS col1 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT + - col1 * 22 AS col2 FROM tab2 cor0
----
-1298
-374
-682
query I rowsort
SELECT + col1 * col1 + cor0.col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - cor0.col0 AS REAL ) * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ( + 7 ) + col1 AS col2 FROM tab0 AS cor0
----
104
93
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3223
SELECT CAST( + col2 AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-3223
SELECT CAST ( + col2 AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - 75 * 59 - - cor0.col1 * 30 AS col1 FROM tab2 AS cor0
----
-2655
-3495
-3915
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 col0 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - 55 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3
query I rowsort
SELECT ALL 33 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3229
SELECT + ( + col2 ) DIV - 74 col0 FROM tab1 cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3229
SELECT + ( + col2 ) / - 74 col0 FROM tab1 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3230
SELECT + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3230
SELECT + - col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT + - col0 + + cor0.col2 DIV - 85 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-3231
SELECT + - col0 + + cor0.col2 / - 85 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col1 * + 74 * col2 AS col0 FROM tab0 AS cor0
----
-210012
-552188
-7178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + col1 - col1 col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - col0 + + cor0.col1 + 24 * + col2 FROM tab1 AS cor0
----
1314
1319
2237
query I rowsort
SELECT ALL cor0.col2 * col0 * + col0 + 27 * + col2 AS col0 FROM tab2 AS cor0
----
158886
2052
238184
query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * 92 FROM tab0 AS cor0
----
-1133
-377
2460
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3237
SELECT ALL + cor0.col1 + + cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL + cor0.col1 + + cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * + cor0.col1 - 76 AS col0 FROM tab2 AS cor0
----
1458
570
761
onlyif mysql # use DIV operator for integer division
query I rowsort label-3239
SELECT DISTINCT + + cor0.col0 + cor0.col2 DIV ( + 44 ) FROM tab1 AS cor0
----
4
65
82
skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT + + cor0.col0 + cor0.col2 / ( + 44 ) FROM tab1 AS cor0
----
4
65
82
query I rowsort
SELECT + - 67 + + col1 AS col1 FROM tab2 AS cor0
----
-36
-50
-8
query I rowsort
SELECT ALL 85 * col1 * col0 - 95 * - col2 AS col1 FROM tab1 AS cor0
----
11760
59815
97520
onlyif mysql # use DIV operator for integer division
query I rowsort label-3242
SELECT DISTINCT - 20 + col1 DIV 41 AS col0 FROM tab2 AS cor0
----
-19
-20
skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - 20 + col1 / 41 AS col0 FROM tab2 AS cor0
----
-19
-20
query I rowsort
SELECT DISTINCT + tab2.col1 * - 38 AS col2 FROM tab2
----
-1178
-2242
-646
query I rowsort
SELECT tab2.col1 * + 77 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccd04658f10b0222c7967b3123db10b
query I rowsort
SELECT - col2 + col1 * + col0 + - col1 FROM tab2
----
1288
159
4517
query I rowsort
SELECT DISTINCT - + 9 FROM tab2 AS cor0
----
-9
query I rowsort
SELECT DISTINCT - - col1 + col0 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 * + ( + 5 * cor0.col1 ) FROM tab1 AS cor0
----
-2793
-6144
-6966
query I rowsort
SELECT - 98 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
-2319
-3429
-8640
onlyif mysql # use DIV operator for integer division
query I rowsort label-3250
SELECT ALL - - col1 + col1 DIV - 51 + - cor0.col0 col2 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - - col1 + col1 / - 51 + - cor0.col0 col2 FROM tab1 AS cor0
----
-54
-67
23
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 AS cor1, tab2 cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT + - col1 + 94 AS col0 FROM tab2 AS cor0
----
35
63
77
query I rowsort
SELECT + col2 + - ( - 10 + + col1 ) FROM tab1 AS cor0
----
38
57
93
query I rowsort
SELECT - cor0.col2 * col2 + + col2 * - cor0.col2 AS col1 FROM tab0 cor0
----
-13448
-2
-2178
query I rowsort
SELECT + col0 + cor0.col0 * + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-233408
-483
-614320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3256
SELECT + col1 DIV - cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3256
SELECT + col1 / - cor0.col2 + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + - ( - 4 ) AS col0 FROM tab1 cor0
----
4
4
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT ALL 75 + cor0.col2 DIV + col0 FROM tab0 AS cor0
----
75
75
76
skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL 75 + cor0.col2 / + col0 FROM tab0 AS cor0
----
75
75
76
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) * cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ( 91 ) AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 8a48d0ac75792561e233f0311a8872fd
query I rowsort
SELECT - ( tab2.col2 ) + - col1 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + 85 * 43 FROM tab1
----
3655
query I rowsort
SELECT ( 19 ) + col2 * ( col2 ) * col2 FROM tab0 AS cor0
----
20
35956
551387
query I rowsort
SELECT ALL - - cor0.col1 * 18 FROM tab0 AS cor0
----
1548
1638
1746
query I rowsort
SELECT DISTINCT + 18 * - cor0.col2 * - cor0.col2 FROM tab2 AS cor0
----
12168
13122
25992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3267
SELECT CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3267
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-3269
SELECT DISTINCT - 28 * ( + col1 + - col1 ) DIV col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3269
SELECT DISTINCT - 28 * ( + col1 + - col1 ) / col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + 23 * + col2 AS col2 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT + ( 19 ) AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT DISTINCT + col0 * - 69 + col2 AS col2 FROM tab2 AS cor0
----
-456
-5356
-5413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 45 col0 FROM tab1 AS cor0
----
55
58
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-3274
SELECT ALL + col1 + col0 + + col0 DIV col1 FROM tab2 AS cor0
----
100
138
38
skipif mysql # not compatible
query I rowsort label-3274
SELECT ALL + col1 + col0 + + col0 / col1 FROM tab2 AS cor0
----
100
138
38
query I rowsort
SELECT ALL tab2.col0 + 35 AS col1 FROM tab2
----
113
114
42
query I rowsort
SELECT ALL + col2 + + 77 FROM tab0
----
110
159
78
query I rowsort
SELECT DISTINCT - col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3278
SELECT DISTINCT - col1 + - 89 DIV - col2 + + col2 col0 FROM tab1 AS cor0
----
29
48
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT - col1 + - 89 / - col2 + + col2 col0 FROM tab1 AS cor0
----
29
48
83
query I rowsort
SELECT + - col1 - + 46 FROM tab0 cor0
----
-132
-137
-143
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + + col2 * 83 + col0 * col1 * col0 FROM tab1 AS cor0
----
45691
4716
91168
query I rowsort
SELECT - col0 * + col1 + 57 AS col0 FROM tab0 AS cor0
----
-2007
-3338
-8042
onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT col1 DIV 96 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3283
SELECT col1 / 96 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col2 * col2 + col0 * ( ( col1 ) ) * ( - cor0.col0 + - col1 ) FROM tab2 AS cor0
----
-127484
-629798
-7517
query I rowsort
SELECT DISTINCT + 57 + + col2 AS col1 FROM tab0 AS cor0
----
139
58
90
query I rowsort
SELECT + col2 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3287
SELECT DISTINCT ( - col2 ) * - cor0.col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT ( - col2 ) * - cor0.col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 63 + ( col2 ) * col0 AS col1 FROM tab2 AS cor0
----
126
1965
2939
query I rowsort
SELECT + col2 * - ( col0 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + ( - 62 ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT + col2 * + ( - 52 ) + - col0 AS col0 FROM tab0
----
-1740
-4353
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-3292
SELECT DISTINCT + col0 + + col1 + + col2 DIV - col1 AS col0 FROM tab2
----
137
38
94
skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT + col0 + + col1 + + col2 / - col1 AS col0 FROM tab2
----
137
38
94
query I rowsort
SELECT ALL + + col2 + cor0.col0 * col2 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 + col1 * + col2 col0 FROM tab2 AS cor0
----
1569
681
872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3295
SELECT + - col0 + - col0 * col2 + - col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3295
SELECT + - col0 + - col0 * col2 + - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 + ( col2 ) + col0 * col0 AS col1 FROM tab2 AS cor0
----
103
6136
6317
query I rowsort
SELECT + col0 * - ( 63 ) AS col1 FROM tab2 AS cor0
----
-441
-4914
-4977
query I rowsort
SELECT + col0 * + col1 * 50 FROM tab0
----
103200
169750
404950
query I rowsort
SELECT DISTINCT - 47 * - col0 AS col1 FROM tab0
----
1128
1645
4183
query I rowsort
SELECT 16 * col2 AS col2 FROM tab1
----
1536
864
912
query I rowsort
SELECT DISTINCT col0 + col0 + - 7 * col1 * col2 AS col1 FROM tab2
----
-10582
-4364
-5845
query I rowsort
SELECT ALL - 41 + col2 FROM tab2
----
-14
-15
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3303
SELECT DISTINCT - col2 * + col0 + + CAST( 77 AS SIGNED ) DIV - col2 FROM tab0
----
-112
-7298
-794
skipif mysql # not compatible
query I rowsort label-3303
SELECT DISTINCT - col2 * + col0 + + CAST ( 77 AS INTEGER ) / - col2 FROM tab0
----
-112
-7298
-794
onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT + - cor0.col1 + + 40 DIV col2 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3304
SELECT + - cor0.col1 + + 40 / col2 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT cor0.col1 * 97 FROM tab0 cor0
----
8342
8827
9409
query I rowsort
SELECT col0 * - col0 + col0 * ( col1 * - cor0.col2 + - 74 ) FROM tab1 AS cor0
----
-112160
-4443
-45312
query I rowsort
SELECT ALL + col1 * - col2 + + col0 * - col1 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT + 60 + - col1 * + col0 * 93 AS col1 FROM tab0 AS cor0
----
-191892
-315675
-753147
query I rowsort
SELECT ALL + col1 * - col1 * - col1 AS col1 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT - - col2 + - cor0.col1 * + col0 AS col0 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - 67 * - col0 + col2 AS col1 FROM tab1
----
255
4345
5456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col0 ) col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + - col0 FROM tab1 AS cor0
----
36
673
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * + col2 + - col2 col1 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3315
SELECT + CAST( NULL AS SIGNED ) * - 48 + col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3315
SELECT + CAST ( NULL AS INTEGER ) * - 48 + col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 21 * cor0.col0 FROM tab2 AS cor0
----
-147
-1638
-1659
query I rowsort
SELECT DISTINCT col0 + + col1 AS col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col1 + + col2 * col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT ALL col2 DIV - 84 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL col2 / - 84 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - tab0.col2 * - 52 FROM tab0
----
1716
4264
52
query I rowsort
SELECT + + col0 + - col1 AS col2 FROM tab1 cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab0 cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL 38 * col0 AS col1 FROM tab0 AS cor0
----
1330
3382
912
query I rowsort
SELECT cor1.col1 AS col1 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ( + cor0.col0 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT - col1 + - cor0.col1 + + col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 24 + col0 * + cor0.col1 + + 51 * + col2 col0 FROM tab2 AS cor0
----
1385
1426
4056
query I rowsort
SELECT - 47 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT ( 80 ) * cor0.col0 + 45 + + 0 * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
605
6285
6365
onlyif mysql # use DIV operator for integer division
query I rowsort label-3331
SELECT - ( col2 ) * col0 DIV + 58 FROM tab0 cor0
----
-125
-13
0
skipif mysql # not compatible
query I rowsort label-3331
SELECT - ( col2 ) * col0 / + 58 FROM tab0 cor0
----
-125
-13
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3332
SELECT - + CAST( NULL AS SIGNED ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3332
SELECT - + CAST ( NULL AS INTEGER ) * + cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * col0 + - col2 + - ( 40 ) AS col0 FROM tab2 AS cor0
----
-18
6018
6163
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3334
SELECT - + CAST( NULL AS DECIMAL ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3334
SELECT - + CAST ( NULL AS REAL ) * col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT - col1 * ( 1 ) + - col1 + cor0.col0 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT + - col1 + 57 * col1 * col2 AS col2 FROM tab1 AS cor0
----
32480
71123
80002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3338
SELECT DISTINCT + col0 * CAST( - ( - col1 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-3338
SELECT DISTINCT + col0 * CAST ( - ( - col1 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 + - col0 + + 60 FROM tab1 AS cor0
----
-116
-61
3
query I rowsort
SELECT DISTINCT - col2 + + ( - col1 ) * col1 * col1 + col2 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3341
SELECT DISTINCT - col2 + - ( - col1 * cor0.col1 + + CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0
----
7277
8108
9311
skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT - col2 + - ( - col1 * cor0.col1 + + CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0
----
7277
8108
9311
onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT + col1 * + col0 * - 60 + col1 DIV - col2 FROM tab1 AS cor0
----
-38400
-4680
-62400
skipif mysql # not compatible
query I rowsort label-3342
SELECT + col1 * + col0 * - 60 + col1 / - col2 FROM tab1 AS cor0
----
-38400
-4680
-62400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 83 col1 FROM tab0 AS cor0
----
107
118
172
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT ALL - 10 FROM tab0, tab1 cor0
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e
query I rowsort
SELECT ALL col1 + col0 * - ( col2 ) FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + cor0.col2 + col0 + col2 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT - 15 - - col2 FROM tab1 AS cor0
----
39
42
81
query I rowsort
SELECT DISTINCT 37 + + 89 FROM tab1, tab2 cor0, tab0 AS cor1
----
126
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT + 20 * + cor0.col0 - CAST( + 99 AS SIGNED ) FROM tab0 AS cor0
----
1681
381
601
skipif mysql # not compatible
query I rowsort label-3350
SELECT + 20 * + cor0.col0 - CAST ( + 99 AS INTEGER ) FROM tab0 AS cor0
----
1681
381
601
query I rowsort
SELECT ALL + - col2 + - col0 * + col1 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT + ( + col0 ) * 99 AS col0 FROM tab1 cor0
----
297
6336
7920
query I rowsort
SELECT + ( 41 ) + - col2 FROM tab1
----
-13
-16
-55
query I rowsort
SELECT ALL - ( 29 + col0 ) FROM tab0
----
-118
-53
-64
query I rowsort
SELECT DISTINCT 55 + tab0.col2 * - 72 FROM tab0
----
-17
-2321
-5849
query I rowsort
SELECT DISTINCT 57 + tab2.col0 * + col1 AS col0 FROM tab2
----
1400
274
4659
query I rowsort
SELECT 26 - - col0 AS col1 FROM tab2
----
104
105
33
query I rowsort
SELECT + col0 * tab1.col1 + 5 FROM tab1
----
1045
645
83
query I rowsort
SELECT - col1 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - 98 col0 FROM tab1 cor0
----
-1138
-176
-738
query I rowsort
SELECT ALL + cor0.col1 * col2 + + 23 FROM tab2 AS cor0
----
1557
669
860
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3362
SELECT ALL 43 * col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL 43 * col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT tab0.col2 * - col1 * tab0.col0 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - + col2 * col0 * col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - - 6 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL 62 + - col1 AS col2 FROM tab2
----
3
31
45
query I rowsort
SELECT DISTINCT col2 * col0 + ( 78 ) * - tab1.col2 AS col2 FROM tab1
----
-4050
-798
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT - col2 * - col0 + + col1 DIV + col0 FROM tab0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-3370
SELECT - col2 * - col0 + + col1 / + col0 FROM tab0
----
37
7299
795
query I rowsort
SELECT + - col1 * + col2 + - col1 + col0 AS col2 FROM tab1 AS cor0
----
-1181
-1427
-516
query I rowsort
SELECT DISTINCT - col1 + - 6 FROM tab0 AS cor0
----
-103
-92
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3373
SELECT cor0.col2 DIV 43 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-3373
SELECT cor0.col2 / 43 FROM tab2, tab0 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT - + col2 + col0 + + col1 FROM tab0 cor0
----
131
77
98
query I rowsort
SELECT 58 + 63 FROM tab1, tab2 AS cor0
----
9 values hashing to dfa0f831d17333454e95a98d4cb1bd0f
query I rowsort
SELECT DISTINCT 14 * + cor0.col1 AS col2 FROM tab1, tab1 AS cor0
----
140
182
364
query I rowsort
SELECT DISTINCT + + col0 * col2 - - col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-3378
SELECT + col2 * + 14 + col1 + - col2 DIV + 33 col2 FROM tab1 AS cor0
----
1355
781
807
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3378
SELECT + col2 * + 14 + col1 + - col2 / + 33 col2 FROM tab1 AS cor0
----
1355
781
807
query I rowsort
SELECT - col1 + ( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - cor0.col2 + cor0.col1 - + cor0.col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT col1 * - col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col2 * - cor0.col0 + - 94 AS col2 FROM tab1 AS cor0
----
-256
-3742
-7774
query I rowsort
SELECT DISTINCT - col1 - ( + cor0.col1 ) FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + 94 AS col2 FROM tab1, tab0 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT + 86 * + 75 FROM tab1 AS cor0
----
6450
6450
6450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 + col1 * - col2 col1 FROM tab1 AS cor0
----
-1226
-1382
-548
query I rowsort
SELECT ( + cor0.col2 * 58 ) FROM tab1, tab0 AS cor0
----
9 values hashing to 9117a0eb56a263e5626b04f49219b146
query I rowsort
SELECT ( cor0.col0 ) - + col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * + col0 col2 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - ( - col2 ) * 37 AS col0 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT DISTINCT + col1 * + col1 + + col1 AS col1 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT ( col2 ) * + col1 - - ( - col1 ) * col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
skipif mysql # not compatible
query I rowsort label-3392
SELECT ( col2 ) * + col1 - - ( - col1 ) * col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col1 FROM tab0 AS cor0
----
94
94
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col2 * col1 col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + 84 * col0 FROM tab2 AS cor0
----
588
6552
6636
query I rowsort
SELECT ALL + - 85 AS col0 FROM tab2 AS cor0
----
-85
-85
-85
query I rowsort
SELECT 35 + col0 + col0 FROM tab0 cor0
----
105
213
83
query I rowsort
SELECT DISTINCT - 58 * col2 + col1 FROM tab2 AS cor0
----
-1449
-1535
-2187
query I rowsort
SELECT ALL - - 16 AS col0 FROM tab2 cor0
----
16
16
16
query I rowsort
SELECT DISTINCT - + 30 + col2 AS col2 FROM tab2 AS cor0
----
-3
-4
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3401
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 75 * + col2 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + 66 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT - 63 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to fc0b533c2773a0a802e1fc8317dcebf2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 + + col2 - ( - col0 ) col0 FROM tab0 AS cor0
----
132
153
267
query I rowsort
SELECT + 71 * col0 + + 80 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
10220
7032
794
query I rowsort
SELECT ALL + + col1 + + col2 * + 45 AS col0 FROM tab0 AS cor0
----
142
1571
3781
query I rowsort
SELECT - col1 * - ( + col2 ) AS col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3410
SELECT + col1 + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3410
SELECT + col1 + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3411
SELECT - col2 DIV - CAST( - col0 * col0 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
10
13
20
skipif mysql # not compatible
query I rowsort label-3411
SELECT - col2 / - CAST ( - col0 * col0 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
10
13
20
query I rowsort
SELECT + - col2 + 94 * 90 AS col0 FROM tab0 cor0
----
8378
8427
8459
query I rowsort
SELECT + col0 * - cor0.col0 + - col0 FROM tab1 AS cor0
----
-12
-4160
-6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT DISTINCT col2 * - col2 + - col1 DIV + tab2.col1 AS col0 FROM tab2
----
-1445
-677
-730
skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT col2 * - col2 + - col1 / + tab2.col1 AS col0 FROM tab2
----
-1445
-677
-730
query I rowsort
SELECT + col1 + - col0 * - tab0.col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL + col1 + + col1 + + tab1.col1 AS col0 FROM tab1
----
30
39
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + + col1 col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-3418
SELECT - col2 DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-3418
SELECT - col2 / + cor0.col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - + col0 * col1 + col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + col0 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + col0 * col2 * + col1 + - col0 AS col2 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT ALL + tab1.col2 + - col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT col1 * + col2 + col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL 81 - col0 FROM tab1 cor0
----
1
17
78
query I rowsort
SELECT - - col2 * col0 + cor0.col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT 11 * - 15 FROM tab2
----
-165
query I rowsort
SELECT DISTINCT + col2 * - 64 * - col2 AS col1 FROM tab2
----
43264
46656
92416
query I rowsort
SELECT - + col0 * - col1 - col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL + 11 - - tab2.col2 AS col0 FROM tab2
----
37
38
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3430
SELECT - + CAST( 80 AS SIGNED ) + tab0.col0 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to efa06594ed9414c390018181c3e94c90
skipif mysql # not compatible
query I rowsort label-3430
SELECT - + CAST ( 80 AS INTEGER ) + tab0.col0 AS col2 FROM tab0, tab1, tab2 cor0
----
27 values hashing to efa06594ed9414c390018181c3e94c90
query I rowsort
SELECT DISTINCT + col1 + 52 + - col1 AS col0 FROM tab2
----
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3432
SELECT ( tab1.col1 ) * col2 * CAST( NULL AS SIGNED ) + - ( col2 * + col1 ) col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3432
SELECT ( tab1.col1 ) * col2 * CAST ( NULL AS INTEGER ) + - ( col2 * + col1 ) col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( col0 ) + - col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT + col2 + 11 AS col1 FROM tab1
----
107
65
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3435
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3435
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT ( col2 ) * col0 + - col1 * + col1 FROM tab2
----
-1453
-772
2713
query I rowsort
SELECT + col1 + col0 * - col1 FROM tab0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 91 + 12 * col2 * - col0 col1 FROM tab2 AS cor0
----
-2359
-24427
-36115
onlyif mysql # use DIV operator for integer division
query I rowsort label-3439
SELECT + - col2 * - col0 + col2 DIV - col0 + + cor0.col1 FROM tab1 AS cor0
----
170
3658
7692
skipif mysql # not compatible
query I rowsort label-3439
SELECT + - col2 * - col0 + col2 / - col0 + + cor0.col1 FROM tab1 AS cor0
----
170
3658
7692
query I rowsort
SELECT DISTINCT - 39 + col1 AS col0 FROM tab0
----
47
52
58
query I rowsort
SELECT ALL 90 * ( col0 ) + - 99 + + ( tab1.col2 ) FROM tab1
----
225
5718
7197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3442
SELECT CAST( NULL AS SIGNED ) / 48 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3442
SELECT CAST ( NULL AS INTEGER ) / 48 col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( ( col0 ) ) + col1 * 75 + - col0 AS col1 FROM tab0
----
6450
6825
7275
query I rowsort
SELECT col1 + + 30 * cor0.col2 FROM tab1 AS cor0
----
1646
1720
2893
query I rowsort
SELECT ALL - 85 * col1 FROM tab1 cor0
----
-1105
-2210
-850
onlyif mysql # use DIV operator for integer division
query I rowsort label-3446
SELECT DISTINCT col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT cor0.col0 + - col0 * ( col0 ) * + cor0.col1 AS col2 FROM tab0 cor0
----
-118790
-49512
-720722
query I rowsort
SELECT ALL - 89 + - col2 FROM tab0 AS cor0
----
-122
-171
-90
query I rowsort
SELECT ALL - 13 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT ALL - col2 * cor0.col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT col0 * 82 AS col1 FROM tab0
----
1968
2870
7298
query I rowsort
SELECT - 92 * - col1 + + 25 + col1 * col1 FROM tab1 AS cor0
----
1045
1390
3093
onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT DISTINCT col2 DIV - col0 + + col1 AS col1 FROM tab2 AS cor0
----
17
28
59
skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT col2 / - col0 + + col1 AS col1 FROM tab2 AS cor0
----
17
28
59
query I rowsort
SELECT DISTINCT col1 * ( - col0 ) * - col0 + col0 AS col0 FROM tab0 cor0
----
118860
49560
720900
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * CAST ( - ( col1 ) AS REAL ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col0 + + ( - tab1.col1 * - tab1.col1 + ( - col0 ) ) FROM tab1
----
100
169
676
query I rowsort
SELECT ALL + col1 * + col1 + 68 * - col2 AS col0 FROM tab2 AS cor0
----
-2295
-875
1713
query I rowsort
SELECT DISTINCT - cor0.col2 * + 8 * - col2 FROM tab2 AS cor0
----
11552
5408
5832
query I rowsort
SELECT ALL - col0 * - col1 + col1 * - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3461
SELECT DISTINCT - col1 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT - col1 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3462
SELECT + - CAST( NULL AS SIGNED ) - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3462
SELECT + - CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 63 + col0 FROM tab1 AS cor0
----
192
4096
5120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3464
SELECT CAST( NULL AS SIGNED ) - - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3464
SELECT CAST ( NULL AS INTEGER ) - - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3465
SELECT ALL CAST( NULL AS SIGNED ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3465
SELECT ALL CAST ( NULL AS INTEGER ) + cor0.col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3466
SELECT DISTINCT - - CAST( 8 AS SIGNED ) FROM tab1 AS cor0
----
8
skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT - - CAST ( 8 AS INTEGER ) FROM tab1 AS cor0
----
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3467
SELECT + tab0.col2 DIV - col1 + col2 DIV tab0.col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3467
SELECT + tab0.col2 / - col1 + col2 / tab0.col1 + col1 FROM tab0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3468
SELECT ALL CAST( 77 AS SIGNED ) * - col1 + col2 + col1 * col1 FROM tab0 AS cor0
----
1356
1941
807
skipif mysql # not compatible
query I rowsort label-3468
SELECT ALL CAST ( 77 AS INTEGER ) * - col1 + col2 + col1 * col1 FROM tab0 AS cor0
----
1356
1941
807
query I rowsort
SELECT ALL ( col1 ) + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL col2 * 61 + + col2 AS col2 FROM tab2 AS cor0
----
1612
1674
2356
query I rowsort
SELECT + + 64 * - col0 + + col0 FROM tab2 AS cor0
----
-441
-4914
-4977
query I rowsort
SELECT ALL ( ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3474
SELECT + CAST( col0 AS SIGNED ) + col2 * 19 * - 19 FROM tab0 cor0
----
-11889
-29513
-326
skipif mysql # not compatible
query I rowsort label-3474
SELECT + CAST ( col0 AS INTEGER ) + col2 * 19 * - 19 FROM tab0 cor0
----
-11889
-29513
-326
query I rowsort
SELECT col1 * - col1 + + col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT 44 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
130
135
141
query I rowsort
SELECT ALL + col0 + 36 AS col2 FROM tab2
----
114
115
43
query I rowsort
SELECT ALL 32 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT - col0 * col1 * - col0 AS col2 FROM tab0
----
118825
49536
720811
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 6506b295d3a7bcc5ed65956f5b4e38b0
query I rowsort
SELECT + 20 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT + - col1 + 84 AS col2 FROM tab2 AS cor0
----
25
53
67
query I rowsort
SELECT - 65 AS col0 FROM tab2
----
-65
-65
-65
query I rowsort
SELECT 66 * col2 + - col0 * col2 * + col2 FROM tab0
----
-23958
-593024
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3485
SELECT + col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3485
SELECT + col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * - 7 AS col1 FROM tab0
----
-602
-637
-679
query I rowsort
SELECT tab1.col2 * - col0 + + col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT + col0 + col0 * + col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL - col1 * - col0 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3490
SELECT ALL - + col1 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL - + col1 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + col1 * cor0.col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3492
SELECT DISTINCT + col0 DIV 5 FROM tab0 AS cor0
----
17
4
7
skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + col0 / 5 FROM tab0 AS cor0
----
17
4
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col2 col1 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3494
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + - cor0.col2 * - cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + col1 + + col2 * col2 AS col1 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT - col0 * 51 + col0 FROM tab0 AS cor0
----
-1200
-1750
-4450
query I rowsort
SELECT - 32 * col1 * - col0 AS col2 FROM tab0
----
108640
259168
66048
query I rowsort
SELECT + 68 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + 85 + ( + col2 ) AS col1 FROM tab2
----
111
112
123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3501
SELECT ALL - - CAST( NULL AS SIGNED ) + 69 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL - - CAST ( NULL AS INTEGER ) + 69 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 66 * + 74 AS col2 FROM tab1
----
4884
4884
4884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3503
SELECT DISTINCT + CAST( cor0.col2 AS SIGNED ) * + col2 col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3503
SELECT DISTINCT + CAST ( cor0.col2 AS INTEGER ) * + col2 col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT 0 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col1 - - col0 col1 FROM tab0 cor0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * cor0.col1 + 2 + + 27 col1 FROM tab1 AS cor0
----
-1219
-1375
-541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * col1 col1 FROM tab0
----
1978
2093
2231
query I rowsort
SELECT + 75 * - col1 + cor0.col2 FROM tab0 cor0
----
-6417
-6743
-7274
query I rowsort
SELECT ALL + + 6 * col0 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT + col2 + - col1 * 27 FROM tab0 AS cor0
----
-2289
-2375
-2618
onlyif mysql # use DIV operator for integer division
query I rowsort label-3511
SELECT + col2 DIV col1 - - 3 FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-3511
SELECT + col2 / col1 - - 3 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT + col1 + col0 + - col1 * col2 FROM tab1 AS cor0
----
-1155
-1375
-496
query I rowsort
SELECT DISTINCT + tab2.col0 * - col0 + - col2 + 2 FROM tab2
----
-6108
-6277
-74
query I rowsort
SELECT + col2 + - col1 * 48 AS col0 FROM tab1 AS cor0
----
-1194
-423
-528
query I rowsort
SELECT DISTINCT - col1 + col1 - + col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + ( - ( cor1.col2 ) ) FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT 80 + col1 + + ( - 83 ) AS col1 FROM tab0
----
83
88
94
query I rowsort
SELECT ( + col0 ) - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT cor0.col0 * - col0 + - 98 + 77 FROM tab0 AS cor0
----
-1246
-597
-7942
onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT + ( col0 ) + - ( col1 ) DIV + col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-3520
SELECT + ( col0 ) + - ( col1 ) / + col0 FROM tab2 AS cor0
----
3
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3521
SELECT - cor0.col1 * - CAST( NULL AS SIGNED ) + col1 - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3521
SELECT - cor0.col1 * - CAST ( NULL AS INTEGER ) + col1 - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * col2 * - 37 + + col1 + col0 AS col2 FROM tab0 AS cor0
----
-248608
-40183
95
query I rowsort
SELECT + col2 + - cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col0 + + ( + col2 ) * col0 * - col0 FROM tab2 cor0
----
-1316
-158106
-237079
skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( - col2 AS REAL ) + col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT col1 * col1 + col1 AS col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT + col0 + col1 * - 5 FROM tab2 AS cor0
----
-148
-217
-6
query I rowsort
SELECT + 46 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
query I rowsort
SELECT - 18 + col1 * col0 FROM tab2 AS cor0
----
1325
199
4584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + col1 * + col2 col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - 18 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 35 col1 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT + ( 84 ) * - col2 FROM tab2 AS cor0
----
-2184
-2268
-3192
query I rowsort
SELECT + 64 * + col0 AS col0 FROM tab2 AS cor0
----
448
4992
5056
query I rowsort
SELECT ALL - col2 * col0 + col0 FROM tab0 cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3536
SELECT DISTINCT - ( col2 ) DIV - 38 FROM tab1 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT - ( col2 ) / - 38 FROM tab1 AS cor0
----
1
2
query I rowsort
SELECT ( cor0.col2 ) FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query III rowsort
SELECT * FROM tab1 WHERE NOT tab1.col1 / col1 + col2 * + col0 - tab1.col2 NOT BETWEEN col2 * col0 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3539
SELECT - col1 DIV + col0 + - col1 FROM tab1
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-3539
SELECT - col1 / + col0 + - col1 FROM tab1
----
-10
-13
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT DISTINCT - tab0.col2 DIV + tab0.col0 AS col1 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT - tab0.col2 / + tab0.col0 AS col1 FROM tab0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT tab2.col0 * col1 DIV col0 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3541
SELECT tab2.col0 * col1 / col0 AS col1 FROM tab2
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col2 - + col0 * tab2.col1 * + col0 col2 FROM tab2
----
-106138
-1499
-359008
query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT NULL IN ( col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + col2 NOT BETWEEN col2 AND col1 * col2
----
78
59
26
79
17
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3545
SELECT - tab2.col1 * col0 DIV + tab2.col1 + col1 * col0 AS col1 FROM tab2
----
1264
210
4524
skipif mysql # not compatible
query I rowsort label-3545
SELECT - tab2.col1 * col0 / + tab2.col1 + col1 * col0 AS col1 FROM tab2
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * + col1 - + col0 col1 FROM tab2
----
131
3325
947
onlyif mysql # use DIV operator for integer division
query I rowsort label-3547
SELECT col0 * col2 DIV + col1 AS col0 FROM tab1
----
364
590
6
skipif mysql # not compatible
query I rowsort label-3547
SELECT col0 * col2 / + col1 AS col0 FROM tab1
----
364
590
6
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) > col1
----
query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( tab2.col0 )
----
query I rowsort
SELECT ALL col2 / col2 AS col0 FROM tab0 WHERE NULL NOT IN ( col0 + - col2 / tab0.col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3551
SELECT ALL - col2 * col1 DIV + col0 AS col1 FROM tab0
----
-118
-2
-83
skipif mysql # not compatible
query I rowsort label-3551
SELECT ALL - col2 * col1 / + col0 AS col1 FROM tab0
----
-118
-2
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3552
SELECT DISTINCT + col2 DIV tab0.col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + col2 / tab0.col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT + col0 * col0 * col1 + - tab2.col2 - - col2 AS col1 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-3554
SELECT col1 - - col2 DIV col2 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3554
SELECT col1 - - col2 / col2 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL + tab1.col0 * - col0 AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT tab2.col1 * - col0 - + tab2.col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT - col1 FROM tab0 WHERE NULL BETWEEN ( col2 * + col0 ) AND ( col1 + col2 * + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3558
SELECT + col1 DIV + col1 - - col2 * + col1 AS col0 FROM tab1
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-3558
SELECT + col1 / + col1 - - col2 * + col1 AS col0 FROM tab1
----
1249
1405
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT ALL - col0 DIV col0 + col1 AS col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - col0 / col0 + col1 AS col2 FROM tab0
----
85
90
96
query I rowsort
SELECT - col0 * col2 + - tab2.col1 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT ALL + tab2.col0 - col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - col0 * col2 + - col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT ALL - tab2.col2 + - col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT col0 * - col0 * + col1 + col1 * + col1 FROM tab2
----
-105808
-355475
-558
query I rowsort
SELECT - col2 - + col0 * col1 FROM tab0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT ALL col2 DIV + col2 col2 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL col2 / + col2 col2 FROM tab0
----
1
1
1
query I rowsort
SELECT - col0 * + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col1 + cor0.col2 NOT IN ( col0 ) OR NOT col1 + col2 = col2 / col1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3569
SELECT ALL + - col1 + - col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + - col1 + - col0 / - col1 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - - cor0.col0 * + col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 * + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT DISTINCT col2 * col2 * - col1 AS col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT + col0 * - ( - col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 + col2 + cor0.col2 AS col1 FROM tab2 AS cor0
----
1520
728
783
query I rowsort
SELECT + cor0.col1 * ( col1 ) AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + + col0 + + col0 - + col2 AS col0 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT + - col1 * 22 FROM tab0 cor0
----
-1892
-2002
-2134
onlyif mysql # use DIV operator for integer division
query I rowsort label-3578
SELECT - + col2 + - col2 DIV 29 FROM tab2 cor0
----
-26
-27
-39
skipif mysql # not compatible
query I rowsort label-3578
SELECT - + col2 + - col2 / 29 FROM tab2 cor0
----
-26
-27
-39
query I rowsort
SELECT DISTINCT col1 - col2 * ( + cor0.col0 ) FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT 43 * 12 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 81fa5975a28e5c0585c7b74258cd9995
query I rowsort
SELECT - + cor0.col2 + + cor0.col1 AS col2 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL col1 * - col2 + col0 + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1047
-1910
-6058
query I rowsort
SELECT - 86 + col0 FROM tab2 AS cor0
----
-7
-79
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT ALL col2 + col1 DIV col0 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL col2 + col1 / col0 FROM tab1 AS cor0
----
57
62
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + - ( ( col1 ) ) col2 FROM tab1 cor0
----
-104
-1053
-650
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( col2 / + col2 ) AND ( NULL )
----
query I rowsort
SELECT col1 * + col2 + + col0 AS col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT DISTINCT tab0.col0 * + tab0.col2 * - col2 AS col1 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - col0 * - col2 )
----
query I rowsort
SELECT ALL + tab2.col0 FROM tab2 WHERE NULL IN ( col0 + + col1 * tab2.col1 )
----
query I rowsort
SELECT + - col2 * + col2 AS col1 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col1 + col2 * col0 + col0 * - tab2.col1 FROM tab2
----
-2515
1676
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab1.col1 - col0 col1 FROM tab1
----
36
673
89
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1 WHERE NOT NULL NOT IN ( tab1.col1 + - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3596
SELECT ALL tab1.col2 DIV col2 + + col0 * - col2 + + col1 * col1 AS col2 FROM tab1
----
-3547
-7510
515
skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL tab1.col2 / col2 + + col0 * - col2 + + col1 * col1 AS col2 FROM tab1
----
-3547
-7510
515
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3597
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3597
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col1 + col2 * - 66 AS col2 FROM tab2 AS cor0
----
-1657
-1751
-2491
query I rowsort
SELECT ALL col0 + + col0 * col2 * col0 AS col2 FROM tab2 AS cor0
----
1330
158262
237237
query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab1, tab2, tab1 AS cor0
----
66
query I rowsort
SELECT - 27 * col0 FROM tab2
----
-189
-2106
-2133
query I rowsort
SELECT - 53 * + 95 * - col2 FROM tab1 AS cor0
----
271890
286995
483360
query I rowsort
SELECT DISTINCT - tab0.col1 * ( - col0 * 12 ) - col0 AS col1 FROM tab0
----
24744
40705
97099
query I rowsort
SELECT - + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT + + col2 * col1 + cor0.col0 DIV + ( ( + col0 ) ) - col2 FROM tab1 AS cor0
----
1153
1351
514
skipif mysql # not compatible
query I rowsort label-3605
SELECT + + col2 * col1 + cor0.col0 / + ( ( + col0 ) ) - col2 FROM tab1 AS cor0
----
1153
1351
514
query I rowsort
SELECT col0 + 41 + - col2 AS col0 FROM tab0 AS cor0
----
32
48
75
query I rowsort
SELECT ALL - - cor0.col0 * + col1 AS col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3608
SELECT - + col2 * col2 - cor0.col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3608
SELECT - + col2 * col2 - cor0.col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 87 - + cor0.col0 col1 FROM tab0 AS cor0
----
-111
-122
-176
query I rowsort
SELECT - cor0.col1 - + col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT + 22 * - col2 + col0 FROM tab0 AS cor0
----
-1715
-702
13
query I rowsort
SELECT ALL - cor0.col1 * cor0.col0 + 37 AS col1 FROM tab0 AS cor0
----
-2027
-3358
-8062
query I rowsort
SELECT DISTINCT + 27 * - col1 * + 25 FROM tab1 AS cor0
----
-17550
-6750
-8775
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + col1 * - 49 AS col0 FROM tab1
----
-1274
-490
-637
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3617
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 30 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-1414
-646
-699
query I rowsort
SELECT DISTINCT + col0 + 23 FROM tab1 AS cor0
----
103
26
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3620
SELECT DISTINCT - col0 + + ( col0 + 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-3620
SELECT DISTINCT - col0 + + ( col0 + CAST ( NULL AS INTEGER ) ) * - ( - col0 ) col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col0 * col2 + - 3 AS col2 FROM tab2
----
-192
-2031
-3005
onlyif mysql # use DIV operator for integer division
query I rowsort label-3622
SELECT DISTINCT tab0.col1 DIV col2 AS col0 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT tab0.col1 / col2 AS col0 FROM tab0
----
1
2
97
query I rowsort
SELECT + ( - col0 ) + col1 * + col0 + - col2 AS col0 FROM tab2
----
1226
183
4498
query I rowsort
SELECT col0 + 32 + + col0 FROM tab2
----
188
190
46
query I rowsort
SELECT - 63 * + 42 + col2 FROM tab0
----
-2564
-2613
-2645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 col2 FROM tab2, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT - ( - col1 ) + + col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT col2 + + ( tab0.col2 ) FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - 96 - + col2 * - col2 AS col2 FROM tab1
----
2820
3153
9120
query I rowsort
SELECT - - col1 * + 66 FROM tab0 AS cor0
----
5676
6006
6402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3631
SELECT ALL + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 99 + + 20 FROM tab2 AS cor0
----
119
119
119
query I rowsort
SELECT - col0 - col1 * + tab1.col0 * - col0 FROM tab1
----
231
40896
83120
query I rowsort
SELECT DISTINCT col1 * col2 + + col2 + col0 AS col2 FROM tab1
----
1424
1461
691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3635
SELECT - 44 * - tab2.col2 * CAST( ( + col0 ) * col0 AS SIGNED ) + col1 AS col1 FROM tab2
----
10434969
58243
6960155
skipif mysql # not compatible
query I rowsort label-3635
SELECT - 44 * - tab2.col2 * CAST ( ( + col0 ) * col0 AS INTEGER ) + col1 AS col1 FROM tab2
----
10434969
58243
6960155
query I rowsort
SELECT - col0 * tab0.col0 AS col2 FROM tab0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 + 89 col1 FROM tab0, tab2 AS cor0
----
122
171
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - col0 col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT - col1 * - col0 + cor0.col2 AS col0 FROM tab0 cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-3640
SELECT DISTINCT - ( + col2 ) DIV col1 + - col1 * + col0 + ( col1 ) FROM tab1
----
-1034
-54
-635
skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT - ( + col2 ) / col1 + - col1 * + col0 + ( col1 ) FROM tab1
----
-1034
-54
-635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col1 col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT + col1 + col2 * + col1 + 37 FROM tab1 AS cor0
----
1298
1467
617
query I rowsort
SELECT - - col2 * + cor0.col1 * + 34 AS col2 FROM tab2 AS cor0
----
21964
28458
52156
query I rowsort
SELECT DISTINCT col2 + 34 AS col1 FROM tab0 AS cor0
----
116
35
67
query I rowsort
SELECT ALL - + col2 * + 7 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT DISTINCT - col1 * + ( 27 * col0 ) FROM tab0 AS cor0
----
-218673
-55728
-91665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * + 10 col1 FROM tab2 cor0
----
-70
-780
-790
query I rowsort
SELECT cor0.col0 * - ( - 96 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a5fdcddb7b91bdfbc853cd2bb4c0615b
query I rowsort
SELECT ALL 84 + - col2 AS col1 FROM tab0 AS cor0
----
2
51
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + cor0.col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col0 col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - tab0.col2 - + col0 * + tab0.col1 AS col2 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - 25 + col0 AS col2 FROM tab0 AS cor0
----
-1
10
64
query I rowsort
SELECT col2 * 84 AS col0 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT ALL 12 + + 7 * - col0 FROM tab0 AS cor0
----
-156
-233
-611
query I rowsort
SELECT - col0 * 60 + - cor0.col1 FROM tab2 AS cor0
----
-451
-4739
-4757
query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
47
query I rowsort
SELECT ALL - ( - col0 ) + col1 + + col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT ALL + 67 * col0 * + col2 + 50 FROM tab0 AS cor0
----
2395
489016
53114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 * + col0 col0 FROM tab0 AS cor0
----
-1968
-2870
-7298
onlyif mysql # use DIV operator for integer division
query I rowsort label-3661
SELECT ALL - ( - 79 ) * cor0.col2 + col0 DIV + col1 FROM tab2 AS cor0
----
2055
2133
3006
skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - ( - 79 ) * cor0.col2 + col0 / + col1 FROM tab2 AS cor0
----
2055
2133
3006
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + ( - col1 ) col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + + 63 * 49 + col1 FROM tab2 AS cor0
----
3104
3118
3146
query I rowsort
SELECT col1 * - 81 * + ( tab0.col0 ) - + 3 * 38 AS col0 FROM tab0
----
-167298
-275109
-656133
query I rowsort
SELECT DISTINCT col2 * col0 + 8 AS col0 FROM tab1
----
170
3656
7688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 * 96 + tab0.col1 col0 FROM tab0
----
-117503
-55210
-760325
onlyif mysql # use DIV operator for integer division
query I rowsort label-3667
SELECT tab1.col1 + col0 DIV col1 + col2 FROM tab1
----
115
73
80
skipif mysql # not compatible
query I rowsort label-3667
SELECT tab1.col1 + col0 / col1 + col2 FROM tab1
----
115
73
80
query I rowsort
SELECT DISTINCT col2 + + 91 AS col0 FROM tab1
----
145
148
187
query I rowsort
SELECT + tab2.col0 * ( - col0 ) - + tab2.col0 FROM tab2
----
-56
-6162
-6320
query I rowsort
SELECT col0 + col1 * - col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT cor1.col1 + + cor1.col2 * 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2607
2677
3741
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT ALL - CAST( NULL AS SIGNED ) + + cor0.col1 * col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL - CAST ( NULL AS INTEGER ) + + cor0.col1 * col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * 57 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT - col1 * 19 + + col2 * + col2 FROM tab0 AS cor0
----
-1842
-545
4995
query I rowsort
SELECT ( + col1 ) + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - + 99 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-134
-7397
-891
query I rowsort
SELECT + ( - tab1.col1 ) + - col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + col2 + + 29 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT ALL 54 + + 24 AS col0 FROM tab2 AS cor0
----
78
78
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( cor0.col1 ) col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * cor0.col0 FROM tab0 cor0
----
-1190
-623
216
query I rowsort
SELECT + ( + 87 ) AS col2 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT ALL + - col2 - col0 * col2 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT - tab2.col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT ( tab2.col0 + + col1 * 56 ) FROM tab2
----
1031
1743
3382
query I rowsort
SELECT DISTINCT + 3 + tab2.col0 FROM tab2, tab0 AS cor0
----
10
81
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab0
----
-17
query I rowsort
SELECT DISTINCT + ( col2 ) + - col2 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL + 47 - col1 FROM tab2 AS cor0
----
-12
16
30
query I rowsort
SELECT + - 98 * - col0 FROM tab1 AS cor0
----
294
6272
7840
query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab0, tab2 AS cor0
----
1
query I rowsort
SELECT ALL 23 * + col1 FROM tab2
----
1357
391
713
query I rowsort
SELECT cor0.col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - 29 * col2 * 82 - - col0 * - col0 * 87 FROM tab2 AS cor0
----
-591136
-633331
-68469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * col1 col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col0 FROM tab0
----
40
40
40
query I rowsort
SELECT + - cor0.col2 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3698
SELECT - col2 + col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3698
SELECT - col2 + col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * cor0.col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-3700
SELECT col0 + 9 DIV + col1 + cor0.col0 * + ( col0 ) FROM tab1 cor0
----
12
4160
6480
skipif mysql # not compatible
query I rowsort label-3700
SELECT col0 + 9 / + col1 + cor0.col0 * + ( col0 ) FROM tab1 cor0
----
12
4160
6480
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3701
SELECT DISTINCT + - col2 * - CAST( ( col0 ) * - 16 AS SIGNED ) FROM tab2 AS cor0
----
-3024
-32448
-48032
skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + - col2 * - CAST ( ( col0 ) * - 16 AS INTEGER ) FROM tab2 AS cor0
----
-3024
-32448
-48032
query I rowsort
SELECT ALL - cor0.col0 + col1 + - 76 AS col2 FROM tab0 AS cor0
----
-14
-14
-74
query I rowsort
SELECT ALL col1 + + ( 16 ) * + col1 AS col2 FROM tab0 AS cor0
----
1462
1547
1649
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - cor0.col0 * + 7 AS col2 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT + cor0.col0 * - col2 + + 5 + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1255
-1363
-15214
query I rowsort
SELECT ALL cor0.col1 * - ( - cor0.col1 ) FROM tab1 AS cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-3708
SELECT DISTINCT - col2 DIV + 26 FROM tab1 AS cor0
----
-2
-3
skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - col2 / + 26 FROM tab1 AS cor0
----
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3709
SELECT ALL - - col1 + col0 DIV 34 FROM tab2 AS cor0
----
19
31
61
skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL - - col1 + col0 / 34 FROM tab2 AS cor0
----
19
31
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT ALL + col2 + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-3710
SELECT ALL + col2 + col2 / col0 AS col1 FROM tab1 AS cor0
----
57
72
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 + + col2 + ( + col1 ) col2 FROM tab1 cor0
----
29
3
77
query I rowsort
SELECT col1 * - col1 + - ( col2 + col2 ) AS col0 FROM tab1 AS cor0
----
-214
-361
-784
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * + col0 + cor0.col0 col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT ALL col0 + ( col2 + col2 ) FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT - col1 * + ( 18 ) AS col2 FROM tab1 AS cor0
----
-180
-234
-468
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 + - col1 col0 FROM tab1 AS cor0
----
1027
52
630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 27 - - col0 col0 FROM tab2 AS cor0
----
1671
538
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT - col2 DIV + col2 + - col2 * + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
-2863
-3193
-9121
skipif mysql # not compatible
query I rowsort label-3718
SELECT - col2 / + col2 + - col2 * + cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
-2863
-3193
-9121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * 11 + col0 col1 FROM tab1 AS cor0
----
-30
-640
-800
onlyif mysql # use DIV operator for integer division
query I rowsort label-3720
SELECT ALL - col0 DIV col0 + cor0.col2 - + col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - col0 / col0 + cor0.col2 - + col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + 3 AS col1 FROM tab2 AS cor0
----
3
3
3
query I rowsort
SELECT - + col1 + col2 + col1 AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3723
SELECT DISTINCT CAST( 83 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
83
skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT CAST ( 83 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + cor0.col1 col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT 77 + col0 FROM tab0 AS cor0
----
101
112
166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3726
SELECT col2 * - CAST( NULL AS DECIMAL ) + - 18 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3726
SELECT col2 * - CAST ( NULL AS REAL ) + - 18 + - col0 * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor1.col1 * + 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b91683c1719ec2f1cb7f04c2bd7d9d5f
query I rowsort
SELECT ALL 70 + + col2 AS col2 FROM tab1
----
124
127
166
query I rowsort
SELECT ALL + col0 + - 88 FROM tab1 AS cor0
----
-24
-8
-85
query I rowsort
SELECT ALL col1 + col0 + 70 AS col0 FROM tab1
----
144
163
99
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - ( - 84 ) + col1 FROM tab0 AS cor0
----
170
175
181
query I rowsort
SELECT + 40 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1404
-636
-689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3734
SELECT DISTINCT - - col2 + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT - - col2 + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + 83 + - col0 AS col2 FROM tab0 AS cor0
----
-107
-118
-172
query I rowsort
SELECT ( ( col0 ) + col1 ) AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - 13 FROM tab1, tab2 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT ALL + + 81 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT ALL + ( cor0.col2 ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - ( cor0.col2 ) AS col2 FROM tab2, tab1 AS cor0, tab2 cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT + + cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 39c7e653e7a493eb9c9e3dad9ba3b8c2
query I rowsort
SELECT - 96 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT DISTINCT - col0 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - - col2 * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-3745
SELECT ALL cor0.col2 * col2 DIV + 71 FROM tab2 AS cor0
----
10
20
9
skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL cor0.col2 * col2 / + 71 FROM tab2 AS cor0
----
10
20
9
query I rowsort
SELECT DISTINCT + 23 + cor0.col0 FROM tab0 cor0
----
112
47
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + tab1.col1 ) col2 FROM tab1
----
10
13
26
query I rowsort
SELECT 82 + - cor0.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 4e84f3458f4e25401209cc2d8c42483e
query I rowsort
SELECT col2 * + col1 + - col1 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - 31 * - col2 FROM tab1
----
1674
1767
2976
query I rowsort
SELECT ALL - cor0.col2 + + col1 * + 63 FROM tab2 AS cor0
----
1033
1926
3691
onlyif mysql # use DIV operator for integer division
query I rowsort label-3752
SELECT 94 DIV + tab2.col0 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f6c770aa0cbd7bb2b35e0eccf0bd5cbc
skipif mysql # not compatible
query I rowsort label-3752
SELECT 94 / + tab2.col0 AS col2 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f6c770aa0cbd7bb2b35e0eccf0bd5cbc
query I rowsort
SELECT ALL + 95 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ALL cor0.col2 - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + 4 + + 77 + - col2 FROM tab0 cor0
----
-1
48
80
query I rowsort
SELECT DISTINCT + - 42 * 90 * - col2 - col0 FROM tab1 AS cor0
----
204117
215396
362800
query I rowsort
SELECT col0 + 64 + + ( col0 * tab1.col1 ) FROM tab1
----
1184
145
768
query I rowsort
SELECT + 1 * + 58 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT - col0 + - col1 - ( tab0.col1 ) AS col2 FROM tab0
----
-196
-229
-271
query I rowsort
SELECT DISTINCT tab2.col1 * 64 * - col1 - - col2 * - col2 AS col0 FROM tab2
----
-19940
-223460
-62233
onlyif mysql # use DIV operator for integer division
query I rowsort label-3761
SELECT + col2 DIV - 98 - + col1 AS col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3761
SELECT + col2 / - 98 - + col1 AS col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col0 * - 91 + + cor0.col2 * - 56 FROM tab2 AS cor0
----
-2149
-8554
-9317
query I rowsort
SELECT - 56 * - 65 FROM tab1 AS cor0
----
3640
3640
3640
query I rowsort
SELECT DISTINCT + col0 * - col1 + cor0.col1 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT - col0 * - 90 AS col2 FROM tab0 AS cor0
----
2160
3150
8010
query I rowsort
SELECT ALL + ( - col0 ) * col1 - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + col2 + cor0.col1 * col2 AS col2 FROM tab1 cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT 98 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-1666
-3038
-5782
query I rowsort
SELECT + 83 + + 32 FROM tab2 AS cor0
----
115
115
115
query I rowsort
SELECT ALL - 73 + - col1 FROM tab1 AS cor0
----
-83
-86
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3771
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) * + cor0.col2 + + ( ( + col1 ) ) AS col1 FROM tab1 cor0
----
2942
3259
9229
skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) * + cor0.col2 + + ( ( + col1 ) ) AS col1 FROM tab1 cor0
----
2942
3259
9229
onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT ALL + ( + cor0.col1 ) * col0 + 39 DIV col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + ( + cor0.col1 ) * col0 + 39 / col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 * - cor0.col2 + cor0.col0 * col0 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT cor0.col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col1 * - col1 + - tab2.col1 FROM tab2
----
272
3422
930
query I rowsort
SELECT + 87 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT + col2 * - col0 + - cor0.col0 * - col0 FROM tab0 AS cor0
----
-216
1190
623
query I rowsort
SELECT - - col2 + 69 * cor0.col2 FROM tab0 cor0
----
2310
5740
70
query I rowsort
SELECT - - col2 * + 85 * 93 + col1 FROM tab1 AS cor0
----
426896
450595
758893
query I rowsort
SELECT DISTINCT col0 + ( col2 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + cor0.col2 * + 66 + - 19 AS col1 FROM tab1 AS cor0
----
3545
3743
6317
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3783
SELECT + col0 + + CAST( NULL AS SIGNED ) * - col1 / + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3783
SELECT + col0 + + CAST ( NULL AS INTEGER ) * - col1 / + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * col0 + 9 AS col0 FROM tab0 AS cor0
----
44
7307
801
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT DISTINCT + - cor0.col2 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + - cor0.col2 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - col1 * 53 * cor0.col2 AS col2 FROM tab0 AS cor0
----
150414
395486
5141
query I rowsort
SELECT DISTINCT - - 66 * col1 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT + col1 * - 40 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT DISTINCT + - col1 + - ( col1 ) * - col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL + col1 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT + 79 * 19 + - cor0.col2 FROM tab1 AS cor0
----
1405
1444
1447
query I rowsort
SELECT + col1 * + 34 - 0 AS col0 FROM tab1
----
340
442
884
query I rowsort
SELECT 15 + col0 * col2 AS col2 FROM tab1 AS cor0
----
177
3663
7695
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT DISTINCT col0 * cor0.col0 + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT col0 * cor0.col0 + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3795
SELECT DISTINCT + col1 * - col0 + + col1 * col0 DIV col1 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT + col1 * - col0 + + col1 * col0 / col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT col1 * cor0.col1 - + col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT ALL col0 * cor0.col1 + + col1 * + 70 AS col1 FROM tab1 AS cor0
----
1340
1898
1950
query I rowsort
SELECT ALL - 5 + col0 FROM tab0 AS cor0
----
19
30
84
query I rowsort
SELECT ALL + col1 + col1 * + col2 * + cor0.col0 FROM tab1 AS cor0
----
36490
4238
99853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * col1 + 85 col0 FROM tab0 cor0
----
5073
5363
5711
query I rowsort
SELECT DISTINCT + col0 * col2 + - 80 * cor0.col0 FROM tab2 AS cor0
----
-3318
-371
-4212
query I rowsort
SELECT + col2 * - col2 + - col1 * col0 FROM tab1 AS cor0
----
-10256
-2994
-3889
onlyif mysql # use DIV operator for integer division
query I rowsort label-3803
SELECT ALL col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - ( col1 * col0 ) AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col2 * + col0 - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT 74 + col0 FROM tab0 cor0
----
109
163
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 - cor0.col2 * ( + col0 ) col0 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT ALL col0 * - col0 * cor0.col2 + 52 FROM tab0 AS cor0
----
-1173
-18956
-649470
query I rowsort
SELECT - + 77 + col2 FROM tab0 AS cor0
----
-44
-76
5
query I rowsort
SELECT DISTINCT col2 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3811
SELECT DISTINCT + 26 * col0 DIV + col2 + - col2 FROM tab0
----
-15
-54
909
skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + 26 * col0 / + col2 + - col2 FROM tab0
----
-15
-54
909
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3812
SELECT ALL + col0 * + col0 * - 46 + col2 + + col1 * - CAST( 42 AS SIGNED ) * + tab1.col0 FROM tab1
----
-215239
-337984
-3636
skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + col0 * + col0 * - 46 + col2 + + col1 * - CAST ( 42 AS INTEGER ) * + tab1.col0 FROM tab1
----
-215239
-337984
-3636
onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT - - 53 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
53
skipif mysql # not compatible
query I rowsort label-3813
SELECT - - 53 / col2 AS col0 FROM tab0 AS cor0
----
0
1
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3814
SELECT DISTINCT - - col0 * cor0.col0 + - CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - - col0 * cor0.col0 + - CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col2 + - col0 * 60 FROM tab1
----
-234
-3897
-4896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 * - cor0.col1 col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT 92 + - col0 AS col0 FROM tab2
----
13
14
85
query I rowsort
SELECT + col0 * cor0.col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - col0 * - col1 + - 56 FROM tab2 AS cor0
----
1287
161
4546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3820
SELECT col1 / - CAST( NULL AS SIGNED ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3820
SELECT col1 / - CAST ( NULL AS INTEGER ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 46 * + cor0.col1 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1c6a3d85aee9ac407b6b1c327ddaa39e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3822
SELECT DISTINCT - col1 DIV tab0.col1 + tab0.col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - col1 / tab0.col1 + tab0.col2 FROM tab0
----
0
32
81
query I rowsort
SELECT ALL tab1.col0 * + tab1.col2 + - col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL - 19 + col1 FROM tab2
----
-2
12
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3825
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3825
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab0, tab0 AS cor0
----
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3827
SELECT ALL + - col1 + CAST( col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL + - col1 + CAST ( col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 * col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL + col1 * col2 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL + 33 * + col0 + col0 FROM tab1 AS cor0
----
102
2176
2720
query I rowsort
SELECT ALL col1 * col1 + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT + - 80 * - col1 FROM tab1 AS cor0
----
1040
2080
800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col0 + col0 col0 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT - cor0.col1 * 86 FROM tab1 AS cor0
----
-1118
-2236
-860
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) col1 FROM tab1
----
3
64
80
query I rowsort
SELECT 2 AS col2 FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
query I rowsort
SELECT DISTINCT 10 + - col1 * col0 AS col0 FROM tab1 cor0
----
-1030
-630
-68
query I rowsort
SELECT DISTINCT - 89 * col1 AS col1 FROM tab2 AS cor0
----
-1513
-2759
-5251
query I rowsort
SELECT + col1 + col0 * + 25 FROM tab1 AS cor0
----
101
1610
2013
query I rowsort
SELECT - col1 * - col0 * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-36470
-4186
-99827
onlyif mysql # use DIV operator for integer division
query I rowsort label-3841
SELECT + tab0.col0 DIV - col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3841
SELECT + tab0.col0 / - col2 FROM tab0
----
-1
-35
0
query I rowsort
SELECT ALL - cor0.col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + ( col2 ) * - 33 * + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-18810
-41184
-46332
query I rowsort
SELECT DISTINCT + 80 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + + col0 col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3846
SELECT DISTINCT - + col2 DIV col2 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - + col2 / col2 FROM tab0 cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 * col1 - + col1 col0 FROM tab2 AS cor0
----
22814
271459
6696
query I rowsort
SELECT + col0 - 49 FROM tab1
----
-46
15
31
query I rowsort
SELECT DISTINCT ( col2 + col0 * col1 ) AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT 98 * + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
2352
3430
8722
query I rowsort
SELECT + col2 * col1 * 54 FROM tab1 AS cor0
----
30780
67392
75816
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT ALL - col1 * + 3 FROM tab1
----
-30
-39
-78
query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab0, tab2 cor0
----
-70
query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab0, tab2 AS cor0
----
-94
query I rowsort
SELECT + col0 - - col0 * - col2 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT cor0.col0 * + col1 * col1 + col1 FROM tab2 cor0
----
22848
271577
6758
query I rowsort
SELECT col0 * 91 FROM tab2 AS cor0
----
637
7098
7189
query I rowsort
SELECT - cor0.col0 * ( - col2 ) + - ( - col2 ) * - cor0.col2 FROM tab0 AS cor0
----
-297
34
574
onlyif mysql # use DIV operator for integer division
query I rowsort label-3861
SELECT + col0 DIV + col1 + col1 col1 FROM tab1 AS cor0
----
16
19
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3861
SELECT + col0 / + col1 + col1 col1 FROM tab1 AS cor0
----
16
19
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3862
SELECT - CAST( col0 AS SIGNED ) - col1 FROM tab0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-3862
SELECT - CAST ( col0 AS INTEGER ) - col1 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - 73 * + col0 * col2 + 60 AS col2 FROM tab2
----
-13737
-147984
-219086
query I rowsort
SELECT - - 31 * col2 AS col1 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT DISTINCT - 80 * col1 FROM tab2 cor0
----
-1360
-2480
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-3866
SELECT - - ( + cor0.col1 ) DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3866
SELECT - - ( + cor0.col1 ) / col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL - 66 + col0 FROM tab1
----
-2
-63
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3868
SELECT ALL + CAST( NULL AS SIGNED ) * - 85 + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + CAST ( NULL AS INTEGER ) * - 85 + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 54 * 5 AS col2 FROM tab2 AS cor0
----
-270
-270
-270
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3870
SELECT ALL col1 * 65 * col0 + CAST( NULL AS SIGNED ) * col2 * col1 + 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-3870
SELECT ALL col1 * 65 * col0 + CAST ( NULL AS INTEGER ) * col2 * col1 + col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + + 6 FROM tab1 AS cor0
----
-20
-4
-7
query I rowsort
SELECT DISTINCT - cor0.col2 + + cor0.col2 * col1 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT - 4 * col2 + col2 * + col2 FROM tab2 AS cor0
----
1292
572
621
query I rowsort
SELECT + + col2 * 45 + - cor0.col1 - cor0.col1 FROM tab2 AS cor0
----
1052
1153
1676
query I rowsort
SELECT DISTINCT + - col1 * - 51 AS col2 FROM tab1 AS cor0
----
1326
510
663
query I rowsort
SELECT - col0 * - col2 * col2 + col1 + col2 * col1 FROM tab0 AS cor0
----
229
29060
605989
query I rowsort
SELECT - - 93 + + cor0.col0 * + col2 AS col2 FROM tab1 cor0
----
255
3741
7773
query I rowsort
SELECT cor0.col0 + 32 * + col1 + ( col2 ) FROM tab1 AS cor0
----
441
592
889
query I rowsort
SELECT DISTINCT col0 + - 25 + - col2 FROM tab2 AS cor0
----
-45
16
27
query I rowsort
SELECT ALL + col1 + - 56 FROM tab1 AS cor0
----
-30
-43
-46
query I rowsort
SELECT + ( - 67 ) + col2 * + col0 + + 32 FROM tab2 AS cor0
----
154
1993
2967
query I rowsort
SELECT ALL + - 19 FROM tab1 AS cor0
----
-19
-19
-19
query I rowsort
SELECT 83 * col1 FROM tab2 AS cor0
----
1411
2573
4897
onlyif mysql # use DIV operator for integer division
query I rowsort label-3884
SELECT DISTINCT ( + col1 ) DIV 23 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT ( + col1 ) / 23 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT + col1 * col1 * 66 AS col1 FROM tab0 AS cor0
----
488136
546546
620994
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col1 * 46 col2 FROM tab0 AS cor0
----
3989
4268
4463
query I rowsort
SELECT ALL + 39 - - col2 AS col2 FROM tab2 AS cor0
----
65
66
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3888
SELECT ALL 72 + col1 * + CAST( NULL AS DECIMAL ) / - col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL 72 + col1 * + CAST ( NULL AS REAL ) / - col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 + - col1 col1 FROM tab0 cor0
----
-128
-133
-139
query I rowsort
SELECT ALL + col2 + col2 * col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT DISTINCT + - 6 * col0 AS col0 FROM tab1 AS cor0
----
-18
-384
-480
query I rowsort
SELECT ( col0 ) - col0 * + col2 AS col2 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT ALL - col1 + 60 * col1 FROM tab0 AS cor0
----
5074
5369
5723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3894
SELECT ALL - col2 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - col2 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - - col1 + + col0 * col0 * + col2 + 65 FROM tab1 AS cor0
----
233547
577
614478
query I rowsort
SELECT + + col1 + ( + col1 ) + + col1 * + 60 AS col0 FROM tab2 AS cor0
----
1054
1922
3658
query I rowsort
SELECT - + col1 * col0 + + 75 + + cor0.col1 FROM tab2 AS cor0
----
-111
-1251
-4468
onlyif mysql # use DIV operator for integer division
query I rowsort label-3898
SELECT ALL + ( col2 + 10 ) DIV col0 FROM tab1
----
1
1
21
skipif mysql # not compatible
query I rowsort label-3898
SELECT ALL + ( col2 + 10 ) / col0 FROM tab1
----
1
1
21
query I rowsort
SELECT + col2 + - ( + col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + cor0.col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-3901
SELECT ALL col2 - + col0 DIV 71 FROM tab2
----
25
27
37
skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL col2 - + col0 / 71 FROM tab2
----
25
27
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) + - col1 col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT + - cor0.col0 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT + tab2.col2 - + col1 * - col1 * - col0 AS col2 FROM tab2
----
-22793
-271492
-6700
query I rowsort
SELECT ALL - col2 * - 18 + + col1 AS col1 FROM tab1
----
1036
1741
998
query I rowsort
SELECT ALL col0 * - col0 - 57 * + tab2.col2 * - col2 AS col1 FROM tab2
----
32448
41504
76067
query I rowsort
SELECT DISTINCT + col1 - 93 FROM tab0
----
-2
-7
4
query I rowsort
SELECT + cor0.col2 - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col2 * col2 + col1 AS col0 FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT - col0 * + col0 + + tab1.col1 AS col0 FROM tab1
----
-4086
-6387
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 + col1 col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT - tab0.col0 FROM tab0 WHERE col2 NOT IN ( - tab0.col1 * col1 )
----
-24
-35
-89
query I rowsort
SELECT ALL col0 * col0 - - col2 FROM tab0 cor0
----
1226
609
8003
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 + col0 + cor0.col2 FROM tab0 AS cor0
----
-2007
-3359
-7928
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 IN ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT tab0.col0 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT tab2.col0 + col2 AS col1 FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + col0 * + col1 + tab0.col1 FROM tab0
----
2150
3492
8190
query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN NULL AND col0
----
query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 IN ( col2 * + tab1.col0 + - col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col1 - - cor0.col0 * cor0.col1 * col2 col1 FROM tab0 AS cor0
----
-6014
60716
655837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3923
SELECT col1 DIV col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3923
SELECT col1 / col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT DISTINCT + col1 * + col0 + col1 DIV - cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
70
skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT + col1 * + col0 + col1 / - cor0.col0 AS col1 FROM tab1 AS cor0
----
1040
640
70
query I rowsort
SELECT + col0 + + col1 * - col0 AS col0 FROM tab0 cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + col0 * col1 + - tab0.col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT col2 * tab2.col2 + - col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT col0 * col1 + col1 AS col2 FROM tab0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - cor0.col2 * col0 col2 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + + col2 * col2 col0 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-3931
SELECT + cor0.col0 DIV cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-3931
SELECT + cor0.col0 / cor0.col1 + - col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - cor0.col1 * - col2 + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + col0 - col2 * + col2 * + col2 FROM tab2 AS cor0
----
-17498
-19676
-54793
query I rowsort
SELECT - col1 * + col0 - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT col2 * - col2 - col1 AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL - col0 * col2 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT col2 * col0 - - col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3938
SELECT ALL + col0 - tab0.col1 DIV col1 col0 FROM tab0
----
23
34
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL + col0 - tab0.col1 / col1 col0 FROM tab0
----
23
34
88
query I rowsort
SELECT ALL + col2 + - col1 * col1 * - col2 AS col0 FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT col1 * - col0 + + col0 * cor0.col0 * - col2 AS col2 FROM tab0 AS cor0
----
-21072
-4620
-657621
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - 19 * + col2 FROM tab1 AS cor0
----
-1026
-1083
-1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-3943
SELECT col2 + + cor0.col2 DIV 87 FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-3943
SELECT col2 + + cor0.col2 / 87 FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT ALL 34 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4e2ca147a59e0d5661c28cf3e5431caa
onlyif mysql # use DIV operator for integer division
query I rowsort label-3945
SELECT + + col1 * - cor0.col0 + col2 DIV col0 FROM tab1 AS cor0
----
-1039
-60
-640
skipif mysql # not compatible
query I rowsort label-3945
SELECT + + col1 * - cor0.col0 + col2 / col0 FROM tab1 AS cor0
----
-1039
-60
-640
query I rowsort
SELECT - col2 * col1 - ( + col0 ) FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL col1 * col1 * ( tab1.col1 ) AS col2 FROM tab1
----
1000
17576
2197
query I rowsort
SELECT ALL 87 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 8661ffbd1a72897c495405c53b816e50
query I rowsort
SELECT + 28 + col0 + - 89 AS col1 FROM tab0
----
-26
-37
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 col2 FROM tab0
----
84
query I rowsort
SELECT DISTINCT col1 * - col2 FROM tab0 WHERE NOT + col0 NOT IN ( col2 )
----
query I rowsort
SELECT tab1.col2 * - col2 FROM tab1 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col2 FROM tab1 WHERE col2 * col1 / - col1 IN ( + col2 )
----
query I rowsort
SELECT DISTINCT col0 * col2 + - col2 * col1 FROM tab0
----
-164
-2046
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + + tab0.col0 * col0 col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL > NULL
----
query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 / col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - tab2.col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE col0 * - col0 NOT BETWEEN NULL AND col0 + - col0
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT DISTINCT + col0 DIV + col0 - - col1 col2 FROM tab0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3962
SELECT DISTINCT + col0 / + col0 - - col1 col2 FROM tab0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT DISTINCT col1 + - col2 * col2 DIV col1 AS col1 FROM tab1
----
-314
-695
-86
skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT col1 + - col2 * col2 / col1 AS col1 FROM tab1
----
-314
-695
-86
query I rowsort
SELECT DISTINCT + col2 + 35 * col2 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
1947
2116
3536
query I rowsort
SELECT - + col2 + col2 * cor0.col0 AS col1 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT + 51 * col2 * + 58 FROM tab0
----
242556
2958
97614
query I rowsort
SELECT DISTINCT - + col2 * + 74 FROM tab0 cor0
----
-2442
-6068
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 * - ( 32 ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2719
-2830
-3103
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - 77 + + col2 col1 FROM tab1 AS cor0
----
-177
-4871
-6064
query I rowsort
SELECT ALL col2 * col2 + - col1 * col0 * ( - col1 ) FROM tab2 AS cor0
----
24275
272194
7456
query I rowsort
SELECT + col2 - + ( col1 ) * + col2 * - ( + col1 ) AS col1 FROM tab0
----
244101
679124
9410
query I rowsort
SELECT tab2.col2 * + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 3fe7ddc736abb4b8aaa99f6b5ddeca84
query I rowsort
SELECT ALL - 46 FROM tab1, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT col0 - col1 * + 1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + 70 - col0 FROM tab2 AS cor0
----
-8
-9
63
query I rowsort
SELECT + ( col0 ) + + cor0.col1 * - 97 AS col0 FROM tab0 AS cor0
----
-8318
-8738
-9374
query I rowsort
SELECT + 72 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT - col1 + + tab0.col0 + 48 FROM tab0
----
-14
-14
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-3980
SELECT + col1 + col1 DIV + 42 col0 FROM tab2 AS cor0
----
17
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3980
SELECT + col1 + col1 / + 42 col0 FROM tab2 AS cor0
----
17
31
60
query I rowsort
SELECT + 39 * + col0 - 25 AS col1 FROM tab1 AS cor0
----
2471
3095
92
query I rowsort
SELECT - col2 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT + - col0 * col1 * 80 FROM tab1 AS cor0
----
-51200
-6240
-83200
query I rowsort
SELECT DISTINCT + - col2 - ( - col0 ) AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT DISTINCT + cor0.col0 + 5 * ( col0 ) AS col2 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT DISTINCT - col0 + + col1 * 47 FROM tab1 AS cor0
----
1219
406
531
query I rowsort
SELECT col0 + 69 AS col0 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT ALL col2 * + col0 + - 68 FROM tab2
----
121
1960
2934
query I rowsort
SELECT ALL + col0 + cor0.col1 AS col2 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 75 * col1 col0 FROM tab1
----
-1924
-740
-962
onlyif mysql # use DIV operator for integer division
query I rowsort label-3991
SELECT - + col2 DIV - col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-3991
SELECT - + col2 / - col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - + ( - col2 ) + + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL + col2 * 21 AS col2 FROM tab1
----
1134
1197
2016
query I rowsort
SELECT ALL + + ( + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - col1 * ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - 95 + cor0.col0 FROM tab0 AS cor0
----
119
130
184
query I rowsort
SELECT + 71 + + col1 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
119879
32561
75887
query I rowsort
SELECT ALL col0 * + cor0.col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - ( col1 ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + - 52 + col1 FROM tab0 AS cor0
----
34
39
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4001
SELECT ALL - - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - - col1 / col0 AS col2 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL + - col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - 38 * - col0 AS col2 FROM tab2 AS cor0
----
266
2964
3002
query I rowsort
SELECT - + 89 * - col2 FROM tab1 AS cor0
----
4806
5073
8544
query I rowsort
SELECT ALL + 64 AS col0 FROM tab1 AS cor0
----
64
64
64
query I rowsort
SELECT DISTINCT col0 * + 50 AS col0 FROM tab1
----
150
3200
4000
query I rowsort
SELECT DISTINCT + ( col0 ) * + cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 32 - 1 * - col2 * 85 col0 FROM tab1 AS cor0
----
4622
4877
8192
query I rowsort
SELECT + col2 * + col2 + col1 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 72 col0 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT col1 + ( ( - tab2.col2 ) + - 1 ) AS col0 FROM tab2
----
-22
3
32
query I rowsort
SELECT DISTINCT 77 + + col1 AS col0 FROM tab1
----
103
87
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * col0 + tab0.col2 * col0 col1 FROM tab0
----
-1272
-3360
-801
query I rowsort
SELECT ALL - col0 + + 11 * - col2 AS col1 FROM tab0
----
-387
-46
-991
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4015
SELECT - CAST( NULL AS SIGNED ) + - col0 * col0 + tab0.col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4015
SELECT - CAST ( NULL AS INTEGER ) + - col0 * col0 + tab0.col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ( - col2 ) * col1 + col2 + col2 * + tab0.col2 FROM tab0
----
-1716
-656
-95
query I rowsort
SELECT ALL ( 0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( 22 ) AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col0 + - col0 * 89 col1 FROM tab0 AS cor0
----
-1344
-3080
-623
query I rowsort
SELECT 1 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT 38 - tab0.col0 AS col1 FROM tab0
----
-51
14
3
query I rowsort
SELECT DISTINCT - col1 - + col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * - col1 + 0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT col0 * - col2 + - 79 * + col0 AS col2 FROM tab1 AS cor0
----
-14000
-399
-8704
query I rowsort
SELECT ALL + + col0 - + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col2 * 97 AS col0 FROM tab0 cor0
----
3201
7954
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4027
SELECT col0 + CAST( - 35 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-32
29
45
skipif mysql # not compatible
query I rowsort label-4027
SELECT col0 + CAST ( - 35 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-32
29
45
query I rowsort
SELECT DISTINCT col0 * + col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4029
SELECT - col1 * - CAST( NULL AS SIGNED ) * - 33 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4029
SELECT - col1 * - CAST ( NULL AS INTEGER ) * - 33 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT ALL col0 DIV + col0 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
10
4097
6401
skipif mysql # not compatible
query I rowsort label-4030
SELECT ALL col0 / + col0 + - col0 * - col0 AS col1 FROM tab1 AS cor0
----
10
4097
6401
query I rowsort
SELECT ALL + col2 + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + cor0.col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT col0 * col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4034
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) * - col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) * - col2 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4035
SELECT DISTINCT col2 * CAST( - col0 AS SIGNED ) FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-4035
SELECT DISTINCT col2 * CAST ( - col0 AS INTEGER ) FROM tab1
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4036
SELECT + - col2 + + CAST( NULL AS DECIMAL ) * - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4036
SELECT + - col2 + + CAST ( NULL AS REAL ) * - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT - - ( + col2 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT DISTINCT col2 * 58 FROM tab2
----
1508
1566
2204
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 11 col0 FROM tab2 AS cor0
----
-286
-297
-418
onlyif mysql # use DIV operator for integer division
query I rowsort label-4042
SELECT + - 3 DIV col0 + 31 AS col0 FROM tab2 AS cor0
----
31
31
31
skipif mysql # not compatible
query I rowsort label-4042
SELECT + - 3 / col0 + 31 AS col0 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 * - ( col0 + col0 ) FROM tab1 AS cor0
----
166400
468
81920
query I rowsort
SELECT ALL - - col0 + + col2 * + col1 * col1 FROM tab1 cor0
----
16304
36507
5764
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * 71 AS col0 FROM tab2 cor0
----
504
5616
5688
onlyif mysql # use DIV operator for integer division
query I rowsort label-4046
SELECT + cor0.col0 + col1 DIV ( + col2 * col1 ) FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4046
SELECT + cor0.col0 + col1 / ( + col2 * col1 ) FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL ( - col0 ) + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + + col2 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-4049
SELECT col2 DIV ( ( + col1 ) ) FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4049
SELECT col2 / ( ( + col1 ) ) FROM tab2 AS cor0
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL col1 - 70 FROM tab2
----
-11
-39
-53
query I rowsort
SELECT ( col2 ) * col0 AS col1 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 20 * col2 ) col2 FROM tab1
----
1080
1140
1920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4054
SELECT ALL - 54 - - 1 * - tab0.col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL - 54 - - 1 * - tab0.col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT + 31 DIV col0 + col0 * + 5 FROM tab2
----
39
390
395
skipif mysql # not compatible
query I rowsort label-4055
SELECT + 31 / col0 + col0 * + 5 FROM tab2
----
39
390
395
query I rowsort
SELECT + col1 + - col2 + col1 AS col0 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT - - 96 + + col0 FROM tab2 cor0
----
103
174
175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4058
SELECT cor0.col1 + + col1 + col2 * CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4058
SELECT cor0.col1 + + col1 + col2 * CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 49 * col0 + - col2 + + 19 FROM tab2 AS cor0
----
335
3815
3852
query I rowsort
SELECT col0 * 25 * + cor0.col0 FROM tab0 AS cor0
----
14400
198025
30625
onlyif mysql # use DIV operator for integer division
query I rowsort label-4061
SELECT - cor0.col1 + + col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-4061
SELECT - cor0.col1 + + col1 / - col0 AS col1 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT ALL + col1 + - col0 * col1 + ( - col0 ) * ( cor0.col2 ) AS col2 FROM tab0 cor0
----
-15306
-2770
-3333
query I rowsort
SELECT ALL + col0 * cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT - - col0 * + col2 + + col2 FROM tab0 cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4065
SELECT ALL cor0.col2 * - col0 DIV col0 + - 13 AS col0 FROM tab1 AS cor0
----
-109
-67
-70
skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL cor0.col2 * - col0 / col0 + - 13 AS col0 FROM tab1 AS cor0
----
-109
-67
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT - + ( col2 ) DIV - col2 + col1 * col1 FROM tab1 AS cor0
----
101
170
677
skipif mysql # not compatible
query I rowsort label-4066
SELECT - + ( col2 ) / - col2 + col1 * col1 FROM tab1 AS cor0
----
101
170
677
query I rowsort
SELECT ALL - - 83 * - col0 + - col0 FROM tab1 AS cor0
----
-252
-5376
-6720
query I rowsort
SELECT + - 99 * - col1 AS col1 FROM tab2 AS cor0
----
1683
3069
5841
query I rowsort
SELECT - + col0 * ( + 44 ) FROM tab2 AS cor0
----
-308
-3432
-3476
query I rowsort
SELECT - - col0 * + 91 FROM tab1 AS cor0
----
273
5824
7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT - + col2 + - col1 DIV 75 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4071
SELECT - + col2 + - col1 / 75 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4072
SELECT - col2 + - CAST( + col0 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort label-4072
SELECT - col2 + - CAST ( + col0 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT - col0 * - cor0.col2 * col2 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-4076
SELECT + col0 * - tab1.col0 - col1 DIV col2 AS col1 FROM tab1
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-4076
SELECT + col0 * - tab1.col0 - col1 / col2 AS col1 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT 51 FROM tab0, tab0 cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT ALL 34 + + 56 DIV col0 FROM tab0 AS cor0
----
34
35
36
skipif mysql # not compatible
query I rowsort label-4078
SELECT ALL 34 + + 56 / col0 FROM tab0 AS cor0
----
34
35
36
query I rowsort
SELECT DISTINCT col1 * col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + 19 + - col0 AS col0 FROM tab2 AS cor0
----
-59
-60
12
query I rowsort
SELECT ALL 4 * - col2 * col1 FROM tab2 cor0
----
-2584
-3348
-6136
query I rowsort
SELECT DISTINCT - + ( + 5 ) + col1 * col1 AS col1 FROM tab0 AS cor0
----
7391
8276
9404
query I rowsort
SELECT ALL - 85 * cor0.col2 FROM tab1 AS cor0
----
-4590
-4845
-8160
onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT - 39 DIV ( col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4084
SELECT - 39 / ( col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT + ( 19 ) + col0 * - col2 FROM tab2 AS cor0
----
-170
-2009
-2983
query I rowsort
SELECT - col1 + 97 * col1 AS col0 FROM tab0
----
8256
8736
9312
query I rowsort
SELECT - col1 * col1 - - col1 AS col1 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT + 86 + col0 FROM tab1 AS cor0
----
150
166
89
query I rowsort
SELECT ALL col0 * + col0 - - col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT col1 + col0 * col2 + - 24 FROM tab1
----
164
3634
7669
query I rowsort
SELECT ( + ( - col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - 90 * cor0.col0 - + cor0.col1 AS col1 FROM tab2 cor0
----
599
6961
7093
query I rowsort
SELECT DISTINCT col1 * - 91 AS col0 FROM tab2 AS cor0
----
-1547
-2821
-5369
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col2 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - 65 * + col2 FROM tab0 cor0
----
2145
5330
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 + col2 col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4098
SELECT DISTINCT - col2 DIV 5 - col0 * ( - cor0.col2 ) FROM tab2 AS cor0
----
184
2023
2995
skipif mysql # not compatible
query I rowsort label-4098
SELECT DISTINCT - col2 / 5 - col0 * ( - cor0.col2 ) FROM tab2 AS cor0
----
184
2023
2995
query I rowsort
SELECT ALL + cor0.col2 * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT - cor0.col0 + - col1 * - col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT ALL col2 * + tab0.col1 + col0 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col0 + + col2 + - col2 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 + + col1 col2 FROM tab0 AS cor0
----
155
160
166
query I rowsort
SELECT ALL 4 + col0 FROM tab0
----
28
39
93
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 - col1 FROM tab1 cor0
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4106
SELECT ALL + col0 DIV col1 col2 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + col0 / col1 col2 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4107
SELECT + col1 DIV - ( cor0.col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-3
-36
-83
skipif mysql # not compatible
query I rowsort label-4107
SELECT + col1 / - ( cor0.col0 ) + - col2 AS col0 FROM tab0 AS cor0
----
-3
-36
-83
query I rowsort
SELECT ALL - + col1 * + 3 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT DISTINCT + cor0.col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col1 + - col0 AS col0 FROM tab1 cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 + 0 col0 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col2 col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - - 88 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-201
-3393
-873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col0 col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + - 81 * + cor0.col1 + - col0 FROM tab2 AS cor0
----
-1456
-2518
-4857
onlyif mysql # use DIV operator for integer division
query I rowsort label-4116
SELECT + + cor0.col0 DIV col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-4116
SELECT + + cor0.col0 / col1 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 col2 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT DISTINCT - 16 * cor0.col0 FROM tab2 cor0
----
-112
-1248
-1264
query I rowsort
SELECT - - ( - col2 ) FROM tab0 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4120
SELECT + cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4120
SELECT + cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 4 FROM tab0, tab0 AS cor0
----
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4122
SELECT ALL + CAST( - 68 AS SIGNED ) * - col2 + - col2 AS col1 FROM tab1 AS cor0
----
3618
3819
6432
skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL + CAST ( - 68 AS INTEGER ) * - col2 + - col2 AS col1 FROM tab1 AS cor0
----
3618
3819
6432
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to a8481bfbfcb330825976c5896e54bc19
query I rowsort
SELECT ALL col2 + col2 AS col1 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT + 20 + - col1 AS col2 FROM tab2 AS cor0
----
-11
-39
3
query I rowsort
SELECT ALL + 74 * col0 AS col0 FROM tab1 AS cor0
----
222
4736
5920
query I rowsort
SELECT ALL col2 + tab1.col1 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT + 84 + 25 FROM tab2
----
109
109
109
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col1 FROM tab0, tab2 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT ALL CAST( - col2 AS SIGNED ) * col1 AS col1 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL CAST ( - col2 AS INTEGER ) * col1 AS col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + tab2.col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - 5 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
onlyif mysql # use DIV operator for integer division
query I rowsort label-4133
SELECT ALL + - col0 + - 84 DIV - col1 AS col2 FROM tab2 AS cor0
----
-5
-75
-77
skipif mysql # not compatible
query I rowsort label-4133
SELECT ALL + - col0 + - 84 / - col1 AS col2 FROM tab2 AS cor0
----
-5
-75
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4134
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - cor0.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT - 79 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT 4 + + col0 * + col2 FROM tab0 AS cor0
----
39
7302
796
query I rowsort
SELECT + ( col2 ) * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT 38 - col0 * 94 AS col1 FROM tab1
----
-244
-5978
-7482
query I rowsort
SELECT + 63 - col0 * col1 FROM tab2
----
-1280
-154
-4539
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4140
SELECT DISTINCT - col1 * + CAST( - ( - col0 ) AS SIGNED ) * + col0 + col2 * + col1 FROM tab1
----
-40390
-81952
1170
skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT - col1 * + CAST ( - ( - col0 ) AS INTEGER ) * + col0 + col2 * + col1 FROM tab1
----
-40390
-81952
1170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col0 * - col0 col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT + tab0.col0 * col1 + - col2 * - col0 + col1 AS col2 FROM tab0
----
15488
2942
3527
query I rowsort
SELECT ALL + + cor0.col1 + - 2 AS col1 FROM tab1 cor0
----
11
24
8
query I rowsort
SELECT + col0 * 54 + col0 FROM tab1 AS cor0
----
165
3520
4400
query I rowsort
SELECT - + cor0.col1 * col2 + + col0 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT + col1 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
-157
-265
-730
onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT DISTINCT col2 + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT col2 + col2 / col0 AS col0 FROM tab0 AS cor0
----
1
34
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4148
SELECT + col2 DIV + col1 - col2 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-4148
SELECT + col2 / + col1 - col2 FROM tab1 AS cor0
----
-52
-52
-89
query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab2, tab1 cor0
----
95
query I rowsort
SELECT + - ( 44 ) + + cor0.col2 * - col2 FROM tab0 cor0
----
-1133
-45
-6768
query I rowsort
SELECT ALL 50 AS col2 FROM tab1, tab2 cor0, tab0 AS cor1
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT + col1 * col0 + 38 * - col1 FROM tab0 AS cor0
----
-1204
-291
4641
query I rowsort
SELECT col2 * col0 + col0 * - cor0.col1 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT + col1 * 60 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT - + col2 - + col0 * + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
-106135
-1546
-358982
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4156
SELECT ALL - - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4156
SELECT ALL - - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col1 + + 59 FROM tab2 cor0
----
118
76
90
query I rowsort
SELECT ALL col2 * 28 * cor0.col0 FROM tab0 AS cor0
----
204344
22176
980
query I rowsort
SELECT + - col2 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col2 * 1 - + 5 AS col1 FROM tab2 AS cor0
----
21
22
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-4161
SELECT col0 DIV + 42 - - col1 AS col1 FROM tab0 AS cor0
----
86
93
97
skipif mysql # not compatible
query I rowsort label-4161
SELECT col0 / + 42 - - col1 AS col1 FROM tab0 AS cor0
----
86
93
97
query I rowsort
SELECT + col0 * 26 * + col0 AS col1 FROM tab0 AS cor0
----
14976
205946
31850
query I rowsort
SELECT ALL + col1 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - ( - 70 ) * - col1 * - col0 AS col2 FROM tab1 AS cor0
----
44800
5460
72800
query I rowsort
SELECT + ( col0 ) * - col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT - - col1 + 28 FROM tab2 AS cor0
----
45
59
87
query I rowsort
SELECT ALL col0 + 18 + + col0 AS col1 FROM tab0
----
196
66
88
query I rowsort
SELECT + - ( col0 ) + col2 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4169
SELECT - CAST( NULL AS DECIMAL ) * - 4 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4169
SELECT - CAST ( NULL AS REAL ) * - 4 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 * ( col2 ) + - ( col0 ) FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4171
SELECT + 58 DIV 89 + + col0 col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4171
SELECT + 58 / 89 + + col0 col1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4172
SELECT ALL CAST( 62 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL CAST ( 62 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT 82 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1394
2542
4838
query I rowsort
SELECT ALL - col0 + + col2 * col0 AS col1 FROM tab2 cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-4175
SELECT DISTINCT ( col2 ) DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4175
SELECT DISTINCT ( col2 ) / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL col2 * col1 * - col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT ALL ( + col1 ) + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - 72 * + col1 FROM tab1 AS cor0
----
-1872
-720
-936
query I rowsort
SELECT ALL + cor0.col2 * col2 + col0 AS col1 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - 13 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-14
-46
-95
query I rowsort
SELECT DISTINCT col2 * - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - 26 * col2 * + col2 FROM tab0 AS cor0
----
-174824
-26
-28314
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4183
SELECT - + CAST( NULL AS DECIMAL ) + + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4183
SELECT - + CAST ( NULL AS REAL ) + + 78 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 10 * 44 + - col2 FROM tab1 AS cor0
----
-494
-497
-536
query I rowsort
SELECT ALL + + 16 - - 10 FROM tab0 AS cor0
----
26
26
26
query I rowsort
SELECT 16 * col0 + + col2 FROM tab0 AS cor0
----
1506
417
561
query I rowsort
SELECT DISTINCT col0 + col1 * - col1 AS col0 FROM tab0 cor0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4188
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + cor0.col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT + + CAST ( NULL AS REAL ) + cor0.col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 - 5 FROM tab1
----
-69
-8
-85
query I rowsort
SELECT - 26 + + tab2.col1 AS col0 FROM tab2
----
-9
33
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4191
SELECT ( - col1 ) DIV col2 + col1 DIV col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4191
SELECT ( - col1 ) / col2 + col1 / col0 FROM tab1
----
0
0
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4192
SELECT DISTINCT + CAST( - col2 AS SIGNED ) + col2 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) + col2 AS col2 FROM tab2
----
0
query I rowsort
SELECT ( - 72 ) * - tab1.col1 + - col2 * col2 FROM tab1
----
-1044
-2529
-8280
query I rowsort
SELECT DISTINCT col1 * - 51 + - col1 AS col1 FROM tab0
----
-4472
-4732
-5044
query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT - 29 - tab1.col1 AS col1 FROM tab1
----
-39
-42
-55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + 62 col1 FROM tab2
----
-140
-141
-69
query I rowsort
SELECT DISTINCT + col1 * ( col1 ) + + col1 * col2 + - col2 AS col2 FROM tab0
----
10201
15661
9505
query I rowsort
SELECT DISTINCT col0 * + ( + col0 ) * - col1 + - col1 FROM tab1 AS cor0
----
-260
-40970
-83213
query I rowsort
SELECT + 82 + + cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
2110
271
3084
query I rowsort
SELECT DISTINCT - 65 + + col2 * col1 FROM tab1 AS cor0
----
1183
1339
505
query I rowsort
SELECT - + cor0.col1 * col0 + cor0.col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-2686
-434
-9204
query I rowsort
SELECT DISTINCT + col1 * 85 AS col1 FROM tab2
----
1445
2635
5015
query I rowsort
SELECT ALL cor0.col2 * ( 98 ) * cor0.col1 FROM tab0 AS cor0
----
278124
731276
9506
query I rowsort
SELECT DISTINCT col0 + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + + 7 * + col1 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT ALL - 62 * + col1 + cor0.col1 FROM tab1 AS cor0
----
-1586
-610
-793
query I rowsort
SELECT + + col0 * + 14 AS col1 FROM tab0 AS cor0
----
1246
336
490
query I rowsort
SELECT ALL + col2 + + col1 * col1 AS col1 FROM tab2 cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4210
SELECT col1 + col1 * CAST( - col2 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
-1397
-550
-799
skipif mysql # not compatible
query I rowsort label-4210
SELECT col1 + col1 * CAST ( - col2 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
-1397
-550
-799
onlyif mysql # use DIV operator for integer division
query I rowsort label-4211
SELECT - col2 + + col0 DIV col0 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-4211
SELECT - col2 + + col0 / col0 FROM tab0
----
-32
-81
0
query I rowsort
SELECT ALL + 4 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
onlyif mysql # use DIV operator for integer division
query I rowsort label-4213
SELECT col0 + - col2 + 16 DIV col2 FROM tab0
----
-9
50
7
skipif mysql # not compatible
query I rowsort label-4213
SELECT col0 + - col2 + 16 / col2 FROM tab0
----
-9
50
7
query I rowsort
SELECT 7 + 70 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT + 37 + + col0 + - col0 AS col1 FROM tab2 AS cor0
----
37
37
37
query I rowsort
SELECT + - cor0.col2 + - col0 + col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col1 + col0 * ( - col1 ) FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT + col2 * 93 + + col0 + - col2 AS col2 FROM tab0 cor0
----
127
3060
7633
query I rowsort
SELECT ALL + col0 + + ( - ( - col0 ) ) FROM tab0 cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - cor0.col2 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT tab2.col0 + col0 + - 53 FROM tab2
----
-39
103
105
query I rowsort
SELECT - tab0.col1 * - col0 * col1 AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT col1 + col2 * tab0.col0 * tab0.col1 + col0 AS col0 FROM tab0
----
3527
664298
68222
query I rowsort
SELECT 43 + - col1 + ( + 36 ) * + tab1.col1 AS col0 FROM tab1
----
393
498
953
query I rowsort
SELECT + col0 - - ( - col2 ) * + col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT col1 + - 38 AS col2 FROM tab1 cor0
----
-12
-25
-28
query I rowsort
SELECT - col2 * - ( col2 ) - col2 AS col1 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4229
SELECT cor0.col2 DIV ( 1 * cor0.col2 ) + col0 * + 47 AS col0 FROM tab1 cor0
----
142
3009
3761
skipif mysql # not compatible
query I rowsort label-4229
SELECT cor0.col2 / ( 1 * cor0.col2 ) + col0 * + 47 AS col0 FROM tab1 cor0
----
142
3009
3761
query I rowsort
SELECT ALL 26 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4231
SELECT ALL + CAST( NULL AS SIGNED ) * 5 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4231
SELECT ALL + CAST ( NULL AS INTEGER ) * 5 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( + ( - col0 ) ) * col2 + col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col1 * col2 + 69 AS col1 FROM tab1
----
-1179
-1335
-501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 40 + col2 * col0 col2 FROM tab2
----
-891
1482
988
query I rowsort
SELECT tab0.col1 * cor0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2e5239e07239fc5e8b7ad998a3c285e1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT + cor0.col2 DIV + ( 83 ) + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4236
SELECT + cor0.col2 / + ( 83 ) + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + 87 * col0 AS col2 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT + col2 * + col0 - 77 AS col1 FROM tab2 AS cor0
----
112
1951
2925
query I rowsort
SELECT ALL - - 80 + col1 AS col2 FROM tab0 cor0
----
166
171
177
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 - ( - col0 ) col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + 66 + col0 FROM tab0 AS cor0
----
101
155
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 38 * col2 + col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
1022
1465
955
query I rowsort
SELECT DISTINCT 69 + + col0 AS col0 FROM tab1
----
133
149
72
query I rowsort
SELECT + + 96 AS col2 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT ALL + 92 FROM tab0, tab0 AS cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab0 AS cor0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ALL + col1 * col1 - + col2 FROM tab0 AS cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 17 col2 FROM tab2 AS cor0
----
-17
-17
-17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 + + col0 * 45 col2 FROM tab1 AS cor0
----
-27
-4080
-768
onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT col1 DIV - col0 + col1 AS col1 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-4252
SELECT col1 / - col0 + col1 AS col1 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT DISTINCT + 45 AS col0 FROM tab1 AS cor0
----
45
query I rowsort
SELECT DISTINCT - col0 + 8 * + col1 + ( col2 ) FROM tab1 AS cor0
----
120
259
73
query I rowsort
SELECT col2 + - 48 * 6 - col0 * - 12 FROM tab0
----
133
33
862
query I rowsort
SELECT ALL - 52 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
query I rowsort
SELECT DISTINCT - tab0.col0 * 44 * - tab0.col0 + - col0 FROM tab0
----
25320
348435
53865
onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT ALL col1 * col1 DIV - col1 - col1 * col1 FROM tab0
----
-7482
-8372
-9506
skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL col1 * col1 / - col1 - col1 * col1 FROM tab0
----
-7482
-8372
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT col1 + - col1 * 84 DIV + col2 - + ( col0 ) FROM tab1
----
-17
-68
-78
skipif mysql # not compatible
query I rowsort label-4259
SELECT col1 + - col1 * 84 / + col2 - + ( col0 ) FROM tab1
----
-17
-68
-78
query I rowsort
SELECT DISTINCT 51 + + col1 + - col0 FROM tab0
----
113
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4261
SELECT - - CAST( NULL AS SIGNED ) + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4261
SELECT - - CAST ( NULL AS INTEGER ) + ( col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 - - col1 AS col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4263
SELECT - CAST( NULL AS SIGNED ) + 90 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4263
SELECT - CAST ( NULL AS INTEGER ) + 90 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( 11 AS REAL ) AS col0 FROM tab2 AS cor0
----
-11
-11
-11
query I rowsort
SELECT col0 + - 31 FROM tab1 AS cor0
----
-28
33
49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4266
SELECT DISTINCT - ( - cor0.col0 ) + - col1 * CAST( NULL AS SIGNED ) * + 33 + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT - ( - cor0.col0 ) + - col1 * CAST ( NULL AS INTEGER ) * + 33 + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col0 * - 18 AS col0 FROM tab0 cor0
----
1602
432
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4268
SELECT DISTINCT CAST( col1 AS SIGNED ) + - col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT CAST ( col1 AS INTEGER ) + - col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - col0 * 59 + col1 AS col2 FROM tab1 AS cor0
----
-151
-3766
-4707
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4270
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 + - col1 * tab2.col1 AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 + - col1 * tab2.col1 AS col1 FROM tab2
----
NULL
query I rowsort
SELECT col2 * ( tab0.col1 ) AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT 49 + 42 AS col1 FROM tab1
----
91
91
91
query I rowsort
SELECT DISTINCT col0 + - 90 FROM tab2
----
-11
-12
-83
query I rowsort
SELECT DISTINCT 95 * + ( col2 ) + + col2 FROM tab0
----
3168
7872
96
query I rowsort
SELECT ALL col2 + + ( tab1.col1 ) AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL + ( 77 ) AS col2 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + - col1 * + cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4278
SELECT DISTINCT - col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT - col2 / col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 20 AS col2 FROM tab0, tab1 AS cor0
----
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * 66 col1 FROM tab0 AS cor0
----
-5676
-6006
-6402
query I rowsort
SELECT DISTINCT + - 74 * col0 AS col2 FROM tab2 AS cor0
----
-518
-5772
-5846
query I rowsort
SELECT DISTINCT col2 + col0 * + col0 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT + + ( + col2 ) * - col1 + 48 AS col0 FROM tab1 AS cor0
----
-1200
-1356
-522
query I rowsort
SELECT col2 * col1 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - col0 * cor0.col0 + col2 - - col0 * col1 FROM tab2 AS cor0
----
-1456
-4860
195
query I rowsort
SELECT DISTINCT - ( + col1 ) + - col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - 32 * - cor0.col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT ALL + + col0 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL + 35 + - col1 AS col0 FROM tab1 AS cor0
----
22
25
9
query I rowsort
SELECT DISTINCT col0 + + col0 * + 29 * 40 + col0 * col2 * 27 FROM tab1 AS cor0
----
172800
300240
7857
query I rowsort
SELECT ALL col1 + - col0 + col1 FROM tab1
----
-44
-54
49
query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT - ( + col0 ) + - col2 * + col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - + 84 AS col1 FROM tab0 AS cor0
----
-84
query I rowsort
SELECT ALL - - col0 - col2 * - ( + col1 ) FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT col0 + + 84 DIV - 88 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4296
SELECT col0 + + 84 / - 88 AS col1 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4297
SELECT - col2 * cor0.col0 - col2 DIV - col1 FROM tab0 cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-4297
SELECT - col2 * cor0.col0 - col2 / - col1 FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + 77 * 24 col1 FROM tab0 AS cor0
----
1766
1815
1847
query I rowsort
SELECT DISTINCT cor0.col1 * col0 * col1 AS col2 FROM tab2 AS cor0
----
22831
271518
6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-4300
SELECT + col2 DIV - 19 AS col1 FROM tab0 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4300
SELECT + col2 / - 19 AS col1 FROM tab0 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL col0 * 6 AS col0 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT ALL - cor0.col1 * 30 * col0 AS col1 FROM tab0 AS cor0
----
-101850
-242970
-61920
query I rowsort
SELECT - cor0.col0 - - col0 * col1 AS col1 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT 94 + col0 AS col2 FROM tab1 AS cor0
----
158
174
97
query I rowsort
SELECT - col1 * + cor0.col0 - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT - col2 * cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + ( + col2 ) - + cor0.col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + col1 + col0 + + col2 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT + col2 - - ( + col2 + + col0 ) FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL + col2 + + 95 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT DISTINCT + col2 * + col2 - - cor0.col2 * + col0 FROM tab0 AS cor0
----
14022
1881
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-4312
SELECT col0 DIV + col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4312
SELECT col0 / + col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT DISTINCT col0 * col2 + + tab0.col2 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT col1 DIV col0 + tab2.col0 + col0 FROM tab2
----
156
158
18
skipif mysql # not compatible
query I rowsort label-4314
SELECT col1 / col0 + tab2.col0 + col0 FROM tab2
----
156
158
18
query I rowsort
SELECT 4 * - tab1.col2 AS col0 FROM tab1
----
-216
-228
-384
onlyif mysql # use DIV operator for integer division
query I rowsort label-4316
SELECT ( col2 ) DIV ( ( col1 ) ) FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-4316
SELECT ( col2 ) / ( ( col1 ) ) FROM tab1
----
2
5
7
query I rowsort
SELECT ALL + 71 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT - col0 * 39 + 85 * + col1 FROM tab0 AS cor0
----
4264
6374
6880
query I rowsort
SELECT ALL - col0 * - 7 FROM tab0 cor0
----
168
245
623
query I rowsort
SELECT + col2 + + 10 * col2 FROM tab2 cor0
----
286
297
418
query I rowsort
SELECT + col2 * col0 + ( col1 ) FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT 38 * + 11 - - cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 924269404f0db17c0086c1792fa68c3e
query I rowsort
SELECT DISTINCT + cor0.col1 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT ( tab2.col0 + + col1 ) * + 23 AS col1 FROM tab2
----
2208
3151
874
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 * + col2 col1 FROM tab0
----
-1
-35937
-551368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 - tab1.col1 * col1 col2 FROM tab1
----
-166
-673
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4327
SELECT + - CAST( - col1 AS SIGNED ) * col2 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-4327
SELECT + - CAST ( - col1 AS INTEGER ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + - ( 5 ) FROM tab2 AS cor0
----
-5
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-4329
SELECT ALL - - col1 * - cor0.col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL - - col1 * - cor0.col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - - 43 * col2 AS col2 FROM tab2 AS cor0
----
1118
1161
1634
onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT ( + col0 ) + - col1 DIV + cor0.col1 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-4331
SELECT ( + col0 ) + - col1 / + cor0.col1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT - 75 AS col1 FROM tab2 cor0
----
-75
-75
-75
query I rowsort
SELECT ALL col0 + + col0 + + 46 * - col0 * cor0.col2 FROM tab2 AS cor0
----
-137934
-8680
-93132
query I rowsort
SELECT DISTINCT - + 24 FROM tab2 AS cor0
----
-24
query I rowsort
SELECT ALL - ( + col2 * 8 ) FROM tab2
----
-208
-216
-304
onlyif mysql # use DIV operator for integer division
query I rowsort label-4336
SELECT - + col0 * + cor0.col2 - + ( - cor0.col2 + + col0 ) DIV + ( - col1 ) FROM tab1 AS cor0
----
-163
-3648
-7681
skipif mysql # not compatible
query I rowsort label-4336
SELECT - + col0 * + cor0.col2 - + ( - cor0.col2 + + col0 ) / + ( - col1 ) FROM tab1 AS cor0
----
-163
-3648
-7681
query I rowsort
SELECT + - 5 + col1 FROM tab2 cor0
----
12
26
54
query I rowsort
SELECT DISTINCT + tab1.col0 - 75 * + 47 AS col2 FROM tab1, tab1 AS cor0
----
-3445
-3461
-3522
query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 * - col1 * 95 col0 FROM tab0 AS cor0
----
-171570
-181545
-193515
query I rowsort
SELECT + 4 * + cor0.col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
2560
312
4160
query I rowsort
SELECT + + 26 * - col2 * col0 AS col1 FROM tab1 AS cor0
----
-199680
-4212
-94848
query I rowsort
SELECT - - col1 + ( 92 ) AS col1 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT col0 * 17 + + cor0.col1 FROM tab2 cor0
----
1360
1385
150
query I rowsort
SELECT - - col2 * cor0.col0 * + cor0.col1 - + col2 FROM tab0 cor0
----
3394
664036
68079
query I rowsort
SELECT ALL tab2.col1 * tab2.col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - col0 - - 61 * col2 AS col1 FROM tab1 AS cor0
----
3291
3413
5776
query I rowsort
SELECT DISTINCT col1 * col0 * col1 - col2 FROM tab0 AS cor0
----
177471
329314
736927
query I rowsort
SELECT ALL + col0 * + 77 - cor0.col0 AS col0 FROM tab1 AS cor0
----
228
4864
6080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4350
SELECT - + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4350
SELECT - + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 82 * - col0 AS col2 FROM tab0 cor0
----
-1968
-2870
-7298
query I rowsort
SELECT DISTINCT - - ( col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT 7 * cor0.col1 - - 73 AS col1 FROM tab1 AS cor0
----
143
164
255
query I rowsort
SELECT ALL tab1.col1 * 84 FROM tab1
----
1092
2184
840
query I rowsort
SELECT - ( col1 ) + 8 * + 29 AS col2 FROM tab0 AS cor0
----
135
141
146
query I rowsort
SELECT - - col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + ( - 72 * tab0.col1 ) AS col2 FROM tab0
----
-6192
-6552
-6984
query I rowsort
SELECT DISTINCT 20 * - tab1.col2 AS col0 FROM tab1, tab0 AS cor0
----
-1080
-1140
-1920
query I rowsort
SELECT 5 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT + + col0 DIV col1 + 4 * col2 DIV col0 + - 26 AS col0 FROM tab0 AS cor0
----
-21
-23
-26
skipif mysql # not compatible
query I rowsort label-4360
SELECT + + col0 / col1 + 4 * col2 / col0 + - 26 AS col0 FROM tab0 AS cor0
----
-21
-23
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4361
SELECT - col0 * CAST( + col1 AS SIGNED ) FROM tab2
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-4361
SELECT - col0 * CAST ( + col1 AS INTEGER ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4362
SELECT ALL - col2 + CAST( col0 AS SIGNED ) + - col1 * cor0.col1 * - col0 FROM tab1 AS cor0
----
13504
1977
6407
skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL - col2 + CAST ( col0 AS INTEGER ) + - col1 * cor0.col1 * - col0 FROM tab1 AS cor0
----
13504
1977
6407
query I rowsort
SELECT + - col0 * col1 + - ( col2 ) + - 99 * 24 FROM tab0 AS cor0
----
-10557
-4473
-5772
query I rowsort
SELECT DISTINCT - col2 + + 36 * - col2 + col2 AS col1 FROM tab2 AS cor0
----
-1368
-936
-972
query I rowsort
SELECT + col2 + - col1 * + ( - col2 ) + ( ( + col1 ) ) * + ( 74 * cor0.col2 ) FROM tab2 AS cor0
----
115076
48488
62802
query I rowsort
SELECT ALL 39 * cor0.col2 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT ALL + col1 * - 41 AS col1 FROM tab2 cor0
----
-1271
-2419
-697
query I rowsort
SELECT ALL - col2 * 24 AS col1 FROM tab1
----
-1296
-1368
-2304
onlyif mysql # use DIV operator for integer division
query I rowsort label-4369
SELECT + + 99 DIV + col2 FROM tab0 cor0
----
1
3
99
skipif mysql # not compatible
query I rowsort label-4369
SELECT + + 99 / + col2 FROM tab0 cor0
----
1
3
99
query I rowsort
SELECT DISTINCT - - col0 + 35 * cor0.col1 FROM tab1 AS cor0
----
414
535
913
onlyif mysql # use DIV operator for integer division
query I rowsort label-4371
SELECT DISTINCT + - ( col1 ) DIV - col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4371
SELECT DISTINCT + - ( col1 ) / - col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ( col2 ) + + col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT 0 + - col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + ( + 56 ) FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT DISTINCT - - col2 + + col0 + - col1 AS col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT DISTINCT - 6 * 7 AS col1 FROM tab0 AS cor0
----
-42
query I rowsort
SELECT DISTINCT col1 + 33 + + tab2.col1 FROM tab2
----
151
67
95
query I rowsort
SELECT col2 + 89 * + col1 * - col1 FROM tab2
----
-25683
-309783
-85502
query I rowsort
SELECT - col0 * col2 + col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT - col0 + - ( + col0 * + col1 ) AS col2 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT col1 + 74 FROM tab1
----
100
84
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT ALL + - 32 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4382
SELECT ALL + - 32 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 + - col0 AS col0 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-4384
SELECT col1 DIV + col2 - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4384
SELECT col1 / + col2 - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL 25 * col1 * + 29 FROM tab1 cor0
----
18850
7250
9425
query I rowsort
SELECT ALL col0 + - col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + col1 + - col1 + - col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - tab1.col2 * col0 ) col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 34 * ( - col2 ) AS col2 FROM tab2
----
1292
884
918
query I rowsort
SELECT cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4391
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4391
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - cor0.col2 * - cor0.col1 + 61 FROM tab2 AS cor0
----
-1473
-585
-776
query I rowsort
SELECT ALL + col0 - tab0.col0 * ( col2 * col0 ) FROM tab0
----
-1190
-18984
-649433
query I rowsort
SELECT ALL ( + tab0.col0 ) - ( col0 ) AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 * + col0 - - 91 FROM tab0 AS cor0
----
126
7389
883
query I rowsort
SELECT - col2 * col2 + + col0 * col0 FROM tab1 cor0
----
-2816
-2907
847
query I rowsort
SELECT ALL - col0 - col2 * - tab2.col1 AS col1 FROM tab2
----
1456
567
830
query I rowsort
SELECT ALL cor0.col1 + 60 * + col2 FROM tab1 cor0
----
3266
3430
5773
query I rowsort
SELECT - col2 * col2 * + 37 + col0 AS col0 FROM tab0 AS cor0
----
-2
-248699
-40269
onlyif mysql # use DIV operator for integer division
query I rowsort label-4400
SELECT ALL cor0.col0 DIV + ( + col0 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4400
SELECT ALL cor0.col0 / + ( + col0 ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col1 + 93 * + col0 AS col1 FROM tab0 AS cor0
----
2318
3352
8368
onlyif mysql # use DIV operator for integer division
query I rowsort label-4402
SELECT DISTINCT + cor0.col2 DIV 67 - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4402
SELECT DISTINCT + cor0.col2 / 67 - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + col1 + + ( - col0 ) * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4404
SELECT DISTINCT - - col1 + col1 DIV 36 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4404
SELECT DISTINCT - - col1 + col1 / 36 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - - cor0.col0 * 36 * 35 - col0 AS col2 FROM tab1 AS cor0
----
100720
3777
80576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 + + col0 * - col0 col0 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT ALL - - col1 + 79 FROM tab2 cor0
----
110
138
96
query I rowsort
SELECT - - col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - - col2 + 4 AS col2 FROM tab0 AS cor0
----
37
5
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + col2 * - col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4412
SELECT ALL + col0 + + CAST( NULL AS DECIMAL ) * col2 / + cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL + col0 + + CAST ( NULL AS REAL ) * col2 / + cor0.col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + col2 * + 6 AS col0 FROM tab1 AS cor0
----
378
399
672
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 * + 21 AS col1 FROM tab1 AS cor0
----
134400
189
86016
query I rowsort
SELECT - col2 * ( + col0 ) + col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col0 - ( - ( col2 ) * - col1 ) FROM tab2 AS cor0
----
-1456
-567
-830
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL - 81 * - col0 AS col0 FROM tab1
----
243
5184
6480
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 73 col2 FROM tab1 AS cor0
----
-70
-9
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4421
SELECT DISTINCT - - 53 + col2 DIV cor0.col2 FROM tab0 AS cor0
----
54
skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT - - 53 + col2 / cor0.col2 FROM tab0 AS cor0
----
54
query I rowsort
SELECT ALL + - 35 + - 38 * + cor0.col2 FROM tab0 AS cor0
----
-1289
-3151
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4423
SELECT + + col1 * 32 DIV + col1 FROM tab0 cor0
----
32
32
32
skipif mysql # not compatible
query I rowsort label-4423
SELECT + + col1 * 32 / + col1 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT DISTINCT + col1 * + 98 AS col2 FROM tab0 AS cor0
----
8428
8918
9506
query I rowsort
SELECT + cor0.col1 * 34 AS col1 FROM tab1 AS cor0
----
340
442
884
query I rowsort
SELECT 46 * col0 AS col0 FROM tab0 cor0
----
1104
1610
4094
query I rowsort
SELECT + 80 * col1 + cor0.col1 FROM tab2 AS cor0
----
1377
2511
4779
query I rowsort
SELECT DISTINCT + 81 AS col1 FROM tab0 AS cor0
----
81
query I rowsort
SELECT ALL col0 * - col1 + + 93 FROM tab0 AS cor0
----
-1971
-3302
-8006
query I rowsort
SELECT 83 + col1 * + 53 FROM tab2 AS cor0
----
1726
3210
984
query I rowsort
SELECT - + 91 AS col2 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT ( col1 ) + + ( 36 ) FROM tab0 AS cor0
----
122
127
133
query I rowsort
SELECT ALL + col0 + cor0.col0 * + col1 AS col1 FROM tab1 cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4434
SELECT ALL + col1 + col2 * CAST( NULL AS SIGNED ) - - col0 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4434
SELECT ALL + col1 + col2 * CAST ( NULL AS INTEGER ) - - col0 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 + col0 * ( - col0 ) AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - - 2 * - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT + - col1 * 59 FROM tab0 AS cor0
----
-5074
-5369
-5723
query I rowsort
SELECT DISTINCT + 22 * + col0 AS col1 FROM tab0 AS cor0
----
1958
528
770
query I rowsort
SELECT DISTINCT + 38 * 62 + + col0 FROM tab1 AS cor0
----
2359
2420
2436
query I rowsort
SELECT - ( col2 ) * - col0 + + ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT DISTINCT - 22 + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-1270
-1426
-592
query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) * col2 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 col0 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT + col2 DIV 72 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4444
SELECT + col2 / 72 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col1 col1 FROM tab0 cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4446
SELECT ALL CAST( NULL AS DECIMAL ) + - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL CAST ( NULL AS REAL ) + - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + + col1 * + tab0.col0 AS col0 FROM tab0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * - col2 + - 53 + col2 col2 FROM tab0 AS cor0
----
-149
-3221
-7925
query I rowsort
SELECT col0 * - 97 AS col2 FROM tab2
----
-679
-7566
-7663
query I rowsort
SELECT ALL + col2 + - 35 + col1 AS col2 FROM tab2 AS cor0
----
20
23
50
query I rowsort
SELECT DISTINCT + 86 AS col0 FROM tab0
----
86
query I rowsort
SELECT DISTINCT + - col1 + 35 FROM tab0 cor0
----
-51
-56
-62
query I rowsort
SELECT cor0.col0 * + col2 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4454
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col2 + + 10 AS col1 FROM tab2 AS cor0
----
36
37
48
query I rowsort
SELECT ALL + cor0.col1 + + ( + col1 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL col2 * 24 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT ALL + + 16 AS col2 FROM tab2 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT ALL ( 6 ) DIV + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL ( 6 ) / + col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 455e4df3bf7b0fa681c56e89df1a761f
query I rowsort
SELECT ALL 55 * - 8 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to d019b93871982f5195a07706a1184d2e
query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab2, tab0 AS cor0
----
-78
query I rowsort
SELECT ALL col1 * 30 FROM tab1
----
300
390
780
query I rowsort
SELECT - - col0 + - 0 * col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 col0 FROM tab0 cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-4467
SELECT ALL 27 DIV + 63 + cor0.col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4467
SELECT ALL 27 / + 63 + cor0.col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - ( col1 ) * - col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT ALL 32 * col0 AS col1 FROM tab0
----
1120
2848
768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + + 96 * cor0.col1 + + 35 + - ( - col0 ) * col2 FROM tab0 AS cor0
----
16069
9083
9382
query I rowsort
SELECT ALL + 86 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT - + 69 * - col1 + ( cor0.col2 ) * col1 AS col1 FROM tab1 AS cor0
----
1260
2145
3198
query I rowsort
SELECT + 40 + cor0.col1 + col0 * col2 AS col1 FROM tab0 AS cor0
----
172
7429
918
query I rowsort
SELECT + col1 * 59 + - col2 * col2 FROM tab0 AS cor0
----
-1355
3985
5722
query I rowsort
SELECT col2 * - col1 * + ( col2 * + 58 ) FROM tab2 AS cor0
----
-1310742
-1423784
-2313272
query I rowsort
SELECT col2 + ( 36 ) FROM tab0 AS cor0
----
118
37
69
query I rowsort
SELECT DISTINCT 89 - col2 FROM tab1
----
-7
32
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT + ( col2 ) - col0 DIV col2 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-4479
SELECT + ( col2 ) - col0 / col2 FROM tab1
----
54
56
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4480
SELECT - ( col2 ) - col2 DIV tab1.col2 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-4480
SELECT - ( col2 ) - col2 / tab1.col2 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT DISTINCT ( + 28 * tab0.col0 ) + - tab0.col2 FROM tab0
----
2410
639
979
query I rowsort
SELECT DISTINCT + col2 * - col2 + 81 FROM tab0 AS cor0
----
-1008
-6643
80
query I rowsort
SELECT DISTINCT + col1 + col0 * + 57 FROM tab2 AS cor0
----
430
4505
4520
query I rowsort
SELECT DISTINCT 46 + + col2 FROM tab1
----
100
103
142
query I rowsort
SELECT + + 98 * - col0 + - 70 * - 45 AS col0 FROM tab1 AS cor0
----
-3122
-4690
2856
query I rowsort
SELECT + col1 * cor0.col1 - col2 AS col2 FROM tab2 AS cor0
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-4487
SELECT DISTINCT + 35 * + col1 - + 46 DIV + ( col1 ) FROM tab2 AS cor0
----
1084
2065
593
skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT + 35 * + col1 - + 46 / + ( col1 ) FROM tab2 AS cor0
----
1084
2065
593
query I rowsort
SELECT ALL + cor0.col2 * - col2 * col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 43 * col1 * - col2 + + col1 * + cor0.col1 col2 FROM tab2 AS cor0
----
-27489
-35030
-62481
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4490
SELECT tab2.col2 / - CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4490
SELECT tab2.col2 / - CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * ( + 79 ) AS col2 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT 53 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL col2 * ( + 48 ) AS col0 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT - cor0.col2 * 36 AS col1 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT DISTINCT - col1 + + 65 AS col1 FROM tab1 AS cor0
----
39
52
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col2 col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + ( 24 ) FROM tab1 AS cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4498
SELECT ALL col2 * 32 DIV col1 col0 FROM tab2 AS cor0
----
14
27
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL col2 * 32 / col1 col0 FROM tab2 AS cor0
----
14
27
71
query I rowsort
SELECT ALL + col2 * + 42 + cor0.col0 AS col1 FROM tab1 AS cor0
----
2271
2458
4112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4500
SELECT DISTINCT + ( + 67 ) + - col2 DIV cor0.col2 FROM tab1 AS cor0
----
66
skipif mysql # not compatible
query I rowsort label-4500
SELECT DISTINCT + ( + 67 ) + - col2 / cor0.col2 FROM tab1 AS cor0
----
66
query I rowsort
SELECT + col0 * ( col2 * + 73 ) + cor0.col2 FROM tab2 AS cor0
----
13824
148070
219184
query I rowsort
SELECT ALL - + col2 + - 35 FROM tab2 AS cor0
----
-61
-62
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4503
SELECT + - col2 * 77 DIV col2 + - cor0.col1 * cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
13443
1951
6323
skipif mysql # not compatible
query I rowsort label-4503
SELECT + - col2 * 77 / col2 + - cor0.col1 * cor0.col1 * - col0 AS col2 FROM tab1 AS cor0
----
13443
1951
6323
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 * + tab2.col1 col0 FROM tab2
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-4505
SELECT col1 + - 76 DIV col1 AS col2 FROM tab1
----
24
3
8
skipif mysql # not compatible
query I rowsort label-4505
SELECT col1 + - 76 / col1 AS col2 FROM tab1
----
24
3
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 - col1 * col0 * - col2 col1 FROM tab2 AS cor0
----
119645
51027
5852
query I rowsort
SELECT DISTINCT col2 * 52 AS col1 FROM tab2
----
1352
1404
1976
query I rowsort
SELECT - 19 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT DISTINCT col1 * ( + col1 ) FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4510
SELECT ALL + - CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL + - CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 75 * - 10 AS col1 FROM tab0 AS cor0
----
750
query I rowsort
SELECT - 74 + + col1 AS col1 FROM tab2 AS cor0
----
-15
-43
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4513
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4513
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4515
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 41 * - col2 col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 41 * - col2 col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col2 * - 34 FROM tab2 AS cor0
----
-1292
-884
-918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 col2 FROM tab1, tab0 cor0
----
9 values hashing to 0bd022e691ee49f12c598975818ed537
query I rowsort
SELECT DISTINCT + + 94 + col0 AS col0 FROM tab1 AS cor0
----
158
174
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4519
SELECT ALL - 38 - - col1 DIV - col1 AS col2 FROM tab1
----
-39
-39
-39
skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL - 38 - - col1 / - col1 AS col2 FROM tab1
----
-39
-39
-39
query I rowsort
SELECT - col0 * col2 + col2 * - col1 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT - - col1 * col1 + - col1 + - col2 FROM tab1 cor0
----
33
596
60
query I rowsort
SELECT ALL - ( + col1 ) * - col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL 86 * col0 FROM tab0
----
2064
3010
7654
onlyif mysql # use DIV operator for integer division
query I rowsort label-4524
SELECT DISTINCT + col1 DIV + 68 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4524
SELECT DISTINCT + col1 / + 68 FROM tab1 AS cor0
----
0
query I rowsort
SELECT cor0.col1 + - col1 * - 94 + + col1 * col2 FROM tab2 AS cor0
----
2261
3782
7139
query I rowsort
SELECT ALL + col0 * + 82 FROM tab1 AS cor0
----
246
5248
6560
query I rowsort
SELECT DISTINCT + + col1 * 19 + - 90 FROM tab2 AS cor0
----
1031
233
499
query I rowsort
SELECT DISTINCT col2 * - 87 FROM tab0 AS cor0
----
-2871
-7134
-87
query I rowsort
SELECT ALL - col0 * - col2 - - ( col1 * col0 ) AS col1 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT ALL cor0.col2 + + 40 * ( col2 ) AS col0 FROM tab1 AS cor0
----
2214
2337
3936
onlyif mysql # use DIV operator for integer division
query I rowsort label-4531
SELECT DISTINCT col0 DIV 81 + 78 FROM tab2 AS cor0
----
78
skipif mysql # not compatible
query I rowsort label-4531
SELECT DISTINCT col0 / 81 + 78 FROM tab2 AS cor0
----
78
query I rowsort
SELECT ALL - col1 * + 70 + col0 FROM tab2 AS cor0
----
-1111
-2163
-4052
query I rowsort
SELECT DISTINCT 73 * + col2 * col2 + + col1 FROM tab1
----
212894
237187
672781
query I rowsort
SELECT DISTINCT + col2 * col0 + - col0 AS col2 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL 72 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT + col0 + col1 + - col0 AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL + tab2.col0 + - col1 AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL col2 + col0 + + col2 AS col0 FROM tab1
----
111
178
272
query I rowsort
SELECT DISTINCT ( 68 ) AS col0 FROM tab1, tab1 AS cor0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT DISTINCT - tab2.col1 * col1 DIV - col0 AS col1 FROM tab2
----
137
3
44
skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - tab2.col1 * col1 / - col0 AS col1 FROM tab2
----
137
3
44
query I rowsort
SELECT ALL 54 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT col1 + ( - col2 + - col1 ) * col2 FROM tab2
----
-1535
-2073
-2151
query I rowsort
SELECT DISTINCT - col1 + + 18 AS col0 FROM tab0 cor0
----
-68
-73
-79
query I rowsort
SELECT DISTINCT - col2 + 92 + - col2 FROM tab2 AS cor0
----
16
38
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4545
SELECT col0 + - CAST( ( col2 ) * + col1 AS SIGNED ) AS col2 FROM tab1 cor0
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort label-4545
SELECT col0 + - CAST ( ( col2 ) * + col1 AS INTEGER ) AS col2 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - col1 * col2 + - cor0.col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL col0 * 10 + - col0 FROM tab2 AS cor0
----
63
702
711
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4548
SELECT + - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4548
SELECT + - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 25 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 * - tab0.col0 ) col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 * + col2 col2 FROM tab0
----
1886
23
759
query I rowsort
SELECT ALL + - 54 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4553
SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4553
SELECT CAST ( NULL AS REAL ) FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - col0 * col0 * + cor0.col1 AS col1 FROM tab1 cor0
----
-234
-40960
-83200
query I rowsort
SELECT + 13 + + cor0.col2 * + col2 AS col0 FROM tab2 cor0
----
1457
689
742
query I rowsort
SELECT + - col0 * col2 + ( col2 ) AS col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT cor0.col2 + - ( - col2 ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT col2 + + 79 AS col1 FROM tab2 AS cor0
----
105
106
117
query I rowsort
SELECT ( tab1.col1 * col0 ) AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL - 31 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT + - 14 FROM tab1 AS cor0
----
-14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col2 col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col2 * - 95 + + col1 AS col1 FROM tab0 AS cor0
----
-3049
-7699
2
query I rowsort
SELECT DISTINCT 59 * - 39 AS col1 FROM tab1 cor0
----
-2301
onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT DISTINCT - ( cor0.col1 ) + - col1 DIV + col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - ( cor0.col1 ) + - col1 / + col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - 22 AS REAL ) FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - col2 + - cor0.col0 * col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * cor0.col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - - col2 + 4 * cor0.col0 AS col0 FROM tab0 AS cor0
----
129
141
438
onlyif mysql # use DIV operator for integer division
query I rowsort label-4570
SELECT + 6 + col0 * + col1 + col0 DIV col1 FROM tab2 AS cor0
----
1353
223
4609
skipif mysql # not compatible
query I rowsort label-4570
SELECT + 6 + col0 * + col1 + col0 / col1 FROM tab2 AS cor0
----
1353
223
4609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4571
SELECT ALL + CAST( NULL AS DECIMAL ) / + ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4571
SELECT ALL + CAST ( NULL AS REAL ) / + ( + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - col0 + col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1566
4218
8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-4573
SELECT CAST( col2 AS SIGNED ) + col1 DIV + col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4573
SELECT CAST ( col2 AS INTEGER ) + col1 / + col1 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4574
SELECT - - col1 + col2 * col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4574
SELECT - - col1 + col2 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 27 + + cor0.col1 * col2 * - 52 FROM tab1 cor0
----
-29613
-64869
-72981
query I rowsort
SELECT + + col0 * cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4579
SELECT + 22 DIV col2 FROM tab0 AS cor0
----
0
0
22
skipif mysql # not compatible
query I rowsort label-4579
SELECT + 22 / col2 FROM tab0 AS cor0
----
0
0
22
query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - cor0.col2 * + col1 * + 70 + col0 FROM tab0 AS cor0
----
-198636
-522251
-6755
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col1 FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT - 67 * + col0 FROM tab1 cor0
----
-201
-4288
-5360
query I rowsort
SELECT + 27 + - col1 FROM tab2 cor0
----
-32
-4
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-4585
SELECT 7 DIV - col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4585
SELECT 7 / - col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT 82 + col0 AS col2 FROM tab0 AS cor0
----
106
117
171
query I rowsort
SELECT ALL 71 * col0 * 24 FROM tab1 AS cor0
----
109056
136320
5112
query I rowsort
SELECT 72 * + 92 AS col2 FROM tab0
----
6624
6624
6624
onlyif mysql # use DIV operator for integer division
query I rowsort label-4590
SELECT DISTINCT 74 DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-4590
SELECT DISTINCT 74 / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2
----
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4592
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4592
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4593
SELECT + - col1 * CAST( 91 AS SIGNED ) FROM tab0 AS cor0
----
-7826
-8281
-8827
skipif mysql # not compatible
query I rowsort label-4593
SELECT + - col1 * CAST ( 91 AS INTEGER ) FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT DISTINCT - col1 * + col1 * + col2 FROM tab2
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4595
SELECT ALL 23 DIV col0 + - 87 * 52 + + col1 col1 FROM tab1
----
-4491
-4511
-4514
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL 23 / col0 + - 87 * 52 + + col1 col1 FROM tab1
----
-4491
-4511
-4514
query I rowsort
SELECT DISTINCT + col1 - - col1 AS col2 FROM tab0 AS cor0
----
172
182
194
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4597
SELECT CAST( 49 + col2 AS SIGNED ) * + 75 AS col0 FROM tab0
----
3750
6150
9825
skipif mysql # not compatible
query I rowsort label-4597
SELECT CAST ( 49 + col2 AS INTEGER ) * + 75 AS col0 FROM tab0
----
3750
6150
9825
query I rowsort
SELECT ALL + col1 + - col2 + - col1 FROM tab0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4599
SELECT CAST( + col1 * + col1 AS SIGNED ) FROM tab0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-4599
SELECT CAST ( + col1 * + col1 AS INTEGER ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL + col1 * - ( col1 ) + - 85 FROM tab0
----
-7481
-8366
-9494
query I rowsort
SELECT 81 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT - + col2 * col1 + + col1 * + col0 AS col0 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT col0 * col0 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT - col0 + 69 AS col0 FROM tab1 AS cor0
----
-11
5
66
query I rowsort
SELECT 71 + + col2 AS col2 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT ALL - ( 8 ) * - col1 + + ( - col0 ) FROM tab2 AS cor0
----
241
394
57
query I rowsort
SELECT ALL + + 94 + col1 + - col0 FROM tab0 cor0
----
156
156
96
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab2 cor3
----
3645 values hashing to 2c0370ee2d7726affde9c7c0de12a506
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4610
SELECT ALL CAST( col2 AS SIGNED ) * + col2 + col2 AS col1 FROM tab2
----
1482
702
756
skipif mysql # not compatible
query I rowsort label-4610
SELECT ALL CAST ( col2 AS INTEGER ) * + col2 + col2 AS col1 FROM tab2
----
1482
702
756
query I rowsort
SELECT ALL col2 * - col0 * col1 + 56 * + col1 * col0 AS col2 FROM tab0
----
-210574
186725
47472
query I rowsort
SELECT ALL - 96 * col0 - - col0 * + ( col0 + col2 ) AS col0 FROM tab0
----
-2100
-936
6675
query I rowsort
SELECT ALL + 72 + col0 AS col0 FROM tab1 cor0
----
136
152
75
query I rowsort
SELECT DISTINCT + + ( - ( col1 ) ) + 85 * col1 * - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-24599
-296003
-81747
query I rowsort
SELECT ALL - - ( col1 ) + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT - cor0.col2 * + col1 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT col1 * + cor0.col0 + - col2 * col2 FROM tab0 AS cor0
----
1375
3394
975
query I rowsort
SELECT ALL col0 * tab2.col2 * tab2.col2 + - 54 FROM tab2
----
114022
5049
52674
query I rowsort
SELECT DISTINCT 46 + - col0 AS col2 FROM tab2
----
-32
-33
39
query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab0, tab2, tab1 AS cor0
----
21
query I rowsort
SELECT tab1.col2 - + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 * col1 - ( - ( col0 ) ) AS col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT 52 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT DISTINCT col0 * tab2.col0 + 30 DIV - col0 FROM tab2
----
45
6084
6241
skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT col0 * tab2.col0 + 30 / - col0 FROM tab2
----
45
6084
6241
query I rowsort
SELECT DISTINCT col1 * - cor0.col0 * - 83 FROM tab2 AS cor0
----
111469
18011
381966
query I rowsort
SELECT ALL + col1 + ( col0 ) AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - col2 + - 19 AS col0 FROM tab0 AS cor0
----
-101
-20
-52
query I rowsort
SELECT - col1 + 37 AS col2 FROM tab1 AS cor0
----
11
24
27
query I rowsort
SELECT ALL - col1 - + 70 AS col0 FROM tab2 AS cor0
----
-101
-129
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-4630
SELECT DISTINCT col1 DIV + 32 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT col1 / + 32 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT - cor0.col2 - - ( cor0.col1 ) FROM tab0, tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4632
SELECT ALL ( col2 * CAST( col2 AS SIGNED ) ) FROM tab1
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL ( col2 * CAST ( col2 AS INTEGER ) ) FROM tab1
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT ALL col0 DIV - col0 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL col0 / - col0 AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col1 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - col2 - + col1 * - col1 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT ALL - col2 * + col2 * col2 AS col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT 90 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 * 56 col1 FROM tab1 AS cor0
----
31920
69888
78624
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + + 75 * 42 col1 FROM tab0 AS cor0
----
3053
3059
3064
query I rowsort
SELECT - col2 * 30 + col1 AS col1 FROM tab0 cor0
----
-2369
-904
67
query I rowsort
SELECT ALL - - col0 * 41 AS col0 FROM tab0 cor0
----
1435
3649
984
query I rowsort
SELECT DISTINCT + 11 + - ( - col0 ) FROM tab1 AS cor0
----
14
75
91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + cor0.col1 col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - 36 + ( col0 ) FROM tab0 AS cor0
----
-1
-12
53
query I rowsort
SELECT DISTINCT - ( + 68 ) * col1 FROM tab1 AS cor0
----
-1768
-680
-884
query I rowsort
SELECT + + col1 + - cor0.col0 * cor0.col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
74
query I rowsort
SELECT col0 + - ( - col0 ) * tab0.col2 FROM tab0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-4649
SELECT ALL - tab0.col0 DIV - ( 46 ) AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4649
SELECT ALL - tab0.col0 / - ( 46 ) AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT ( col1 ) * col0 * col0 AS col0 FROM tab2 cor0
----
106097
1519
358956
query I rowsort
SELECT ALL - col0 + col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + cor0.col1 - col2 * - col2 * col2 col0 FROM tab0 AS cor0
----
1323
36599
559380
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4653
SELECT ALL - col2 + - col2 * + CAST( NULL AS SIGNED ) + 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - col2 + - col2 * + CAST ( NULL AS INTEGER ) + 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 + + 13 col1 FROM tab2 AS cor0
----
-1431
-663
-716
query I rowsort
SELECT DISTINCT 68 * + col0 * ( - col2 ) + col2 AS col1 FROM tab2 AS cor0
----
-12825
-137878
-204098
onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT + - ( + col2 ) - ( + 99 ) DIV - col1 AS col0 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-4656
SELECT + - ( + col2 ) - ( + 99 ) / - col1 AS col0 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT - - col0 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - - tab1.col0 col0 FROM tab1
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT + - col2 + - col0 * + CAST( NULL AS SIGNED ) - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4659
SELECT + - col2 + - col0 * + CAST ( NULL AS INTEGER ) - - col0 * + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 15 + col0 + col1 AS col2 FROM tab0 AS cor0
----
125
147
195
query I rowsort
SELECT - col2 * + col2 + 9 + + col1 AS col0 FROM tab2 cor0
----
-1418
-608
-689
onlyif mysql # use DIV operator for integer division
query I rowsort label-4662
SELECT - col2 * col1 + - 12 - col1 DIV + col0 FROM tab2 AS cor0
----
-1546
-658
-853
skipif mysql # not compatible
query I rowsort label-4662
SELECT - col2 * col1 + - 12 - col1 / + col0 FROM tab2 AS cor0
----
-1546
-658
-853
query I rowsort
SELECT DISTINCT 76 * cor0.col1 * 33 AS col0 FROM tab1 AS cor0
----
25080
32604
65208
query I rowsort
SELECT ALL 99 * + 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 16076a595f8815c5a428320c5f0d4d77
query I rowsort
SELECT 72 + col2 AS col0 FROM tab1
----
126
129
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 + cor1.col2 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 084ce8d6a4adb41dac5a741813ffea19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4667
SELECT cor0.col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4667
SELECT cor0.col1 + CAST ( NULL AS REAL ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 + - col2 * col0 AS col1 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT col1 * col1 * tab2.col1 FROM tab2
----
205379
29791
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-4670
SELECT col0 DIV - col1 + col2 col2 FROM tab2 cor0
----
25
27
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4670
SELECT col0 / - col1 + col2 col2 FROM tab2 cor0
----
25
27
34
query I rowsort
SELECT + col0 * - col0 + - col0 * col1 FROM tab2
----
-10686
-266
-7584
query I rowsort
SELECT DISTINCT + col0 - + col2 * col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - col2 * + col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4674
SELECT tab0.col1 * - col1 + col2 * - col2 DIV - col2 AS col1 FROM tab0 WHERE col2 DIV col0 NOT IN ( + tab0.col2 )
----
-7363
-8199
-9408
skipif mysql # not compatible
query I rowsort label-4674
SELECT tab0.col1 * - col1 + col2 * - col2 / - col2 AS col1 FROM tab0 WHERE col2 / col0 NOT IN ( + tab0.col2 )
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT - - col0 + + cor0.col0 + + col0 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT col0 + + col1 * col2 + col0 * + col0 AS col2 FROM tab0 WHERE NOT - col1 NOT IN ( col0 * tab0.col1 * - col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col0 * + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT tab1.col2 * col2 * col2 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 - + col2 * + col2 * + col2 AS col0 FROM tab2 AS cor0
----
-15548
-19494
-51870
query I rowsort
SELECT + - ( col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - - col2 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-4683
SELECT + col0 DIV - cor0.col1 - col2 * - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-36486
-4212
-99846
skipif mysql # not compatible
query I rowsort label-4683
SELECT + col0 / - cor0.col1 - col2 * - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-36486
-4212
-99846
query I rowsort
SELECT + cor0.col1 - - col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + 57 * + cor0.col1 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT ALL + - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - col0 * col1 + cor0.col2 + col2 * - col2 AS col0 FROM tab1 AS cor0
----
-10160
-2940
-3832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - col1 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT col2 * + col0 + + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - + col1 * col0 * col0 + + col2 FROM tab1 AS cor0
----
-180
-40903
-83104
query I rowsort
SELECT col1 * - col0 * - col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT - cor0.col1 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT cor0.col2 + - col0 DIV col0 AS col0 FROM tab1 cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-4694
SELECT cor0.col2 + - col0 / col0 AS col0 FROM tab1 cor0
----
53
56
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT col1 * - col0 DIV col0 AS col2 FROM tab1 WHERE NOT + col2 + col0 IN ( - col1 * col1 * - col2 + - col0 )
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4695
SELECT col1 * - col0 / col0 AS col2 FROM tab1 WHERE NOT + col2 + col0 IN ( - col1 * col1 * - col2 + - col0 )
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col2 * - tab2.col2 * col2 AS col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT ALL - col2 + + col2 * col1 * + col1 + tab2.col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT - col2 * col2 * col0 FROM tab0
----
-26136
-35
-598436
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - tab1.col2 + tab1.col0 - + tab1.col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 - col2 col0 FROM tab2
----
-13
120
130
onlyif mysql # use DIV operator for integer division
query I rowsort label-4701
SELECT - tab2.col1 DIV col1 col2 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4701
SELECT - tab2.col1 / col1 col2 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT DISTINCT tab1.col2 + col0 * + col0 + - col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT tab2.col1 - - col1 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4704
SELECT - tab1.col0 DIV + col2 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4704
SELECT - tab1.col0 / + col2 AS col1 FROM tab1
----
-1
0
0
query I rowsort
SELECT col0 * + col0 / + col0 FROM tab1 WHERE NOT ( col0 + + col0 ) <= ( NULL )
----
query I rowsort
SELECT + col1 * col0 - + col2 * + col2 FROM tab1
----
-2609
-2838
-8176
query I rowsort
SELECT col0 * col2 * + col1 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT ALL col0 * col0 - + col0 AS col2 FROM tab2
----
42
6006
6162
query III rowsort
SELECT * FROM tab2 WHERE col0 + - col2 <= col2
----
7
31
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 * - col2 + col2 * + col1 + col0 col1 FROM tab2
----
-156572
-236433
-479
query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE - col0 * col0 + + col1 NOT IN ( col1 * + col2 )
----
-3
-64
-80
query III rowsort
SELECT * FROM tab0 WHERE col2 + col1 + col0 < NULL
----
query I rowsort
SELECT DISTINCT - + cor0.col0 + - col2 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4714
SELECT ALL - col1 DIV col2 + col0 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4714
SELECT ALL - col1 / col2 + col0 AS col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 + col0 + - col1 col1 FROM tab0 AS cor0
----
-2126
-3457
-8101
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 83 + col1 + col1 col1 FROM tab0 AS cor0
----
255
265
277
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 * 79 FROM tab1 AS cor0
----
4263
4439
7504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 95 * + col0 col1 FROM tab1 AS cor0
----
285
6080
7600
query I rowsort
SELECT DISTINCT - col0 + col1 * - col2 * col1 AS col0 FROM tab1
----
-16304
-36507
-5764
query I rowsort
SELECT col2 * + col0 + - col2 FROM tab1
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col0 + - col1 col0 FROM tab2
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT ALL tab0.col0 DIV - tab0.col0 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL tab0.col0 / - tab0.col0 AS col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col2 * col1 AS col1 FROM tab1 WHERE + col0 * col2 * col2 NOT BETWEEN NULL AND - col1
----
-1248
-1404
-570
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND ( tab2.col1 + col1 * col0 )
----
query I rowsort
SELECT + col0 * col1 - + col1 FROM tab0 WHERE NOT ( col2 ) > ( NULL )
----
query I rowsort
SELECT DISTINCT - tab0.col1 * + col2 - - col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT col2 * tab2.col2 - - col2 FROM tab2
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-4728
SELECT ALL + col2 * col1 + - tab0.col2 DIV col2 AS col0 FROM tab0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + col2 * col1 + - tab0.col2 / col2 AS col0 FROM tab0
----
2837
7461
96
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 ) IN ( col1 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT - col2 + - col2 NOT BETWEEN col2 + + col0 / + col1 AND col1
----
query I rowsort
SELECT ALL - col0 * - col2 + ( - 78 ) FROM tab2 AS cor0
----
111
1950
2924
query I rowsort
SELECT 84 * col1 AS col0 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT DISTINCT + 4 * col2 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT + col0 * + col1 + + 25 * col2 FROM tab1 AS cor0
----
1428
2065
3440
onlyif mysql # use DIV operator for integer division
query I rowsort label-4735
SELECT ALL 74 DIV col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4735
SELECT ALL 74 / col2 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT + 6 * col2 AS col0 FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT ALL - 78 * + col0 FROM tab1 AS cor0
----
-234
-4992
-6240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4738
SELECT + col0 * + col2 + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
162
2002
2964
skipif mysql # not compatible
query I rowsort label-4738
SELECT + col0 * + col2 + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-4739
SELECT DISTINCT + 78 DIV col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + 78 / col2 FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - + 3 * - col2 AS col1 FROM tab2 AS cor0
----
114
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 0 col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + 13 * col2 AS col0 FROM tab2 cor0
----
338
351
494
query I rowsort
SELECT - + col1 * - 57 * 28 FROM tab2 AS cor0
----
27132
49476
94164
query I rowsort
SELECT DISTINCT + 31 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
31
query I rowsort
SELECT 59 + 9 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT ( - 17 ) * col1 AS col2 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT ALL + col2 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + 98 + 86 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 0ecd827dff2fc10c5f29265cfe005480
query I rowsort
SELECT DISTINCT + - col0 + - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL - - col1 * - 91 * col1 + cor0.col2 * col2 + cor0.col0 FROM tab0 AS cor0
----
-671923
-746758
-856183
query I rowsort
SELECT - + col0 + col0 * cor0.col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT - + ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + ( 61 ) FROM tab2 cor0
----
61
query I rowsort
SELECT 74 + cor0.col1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to be0ccb1fb0308c1b60bf4c5346c2079d
query I rowsort
SELECT DISTINCT col0 - ( + col2 * + col2 + 70 ) AS col0 FROM tab2
----
-1435
-668
-792
query I rowsort
SELECT + 44 * col2 AS col0 FROM tab1
----
2376
2508
4224
query I rowsort
SELECT DISTINCT + 83 + + 2 FROM tab0
----
85
query I rowsort
SELECT DISTINCT col0 + tab0.col0 + + col0 AS col2 FROM tab0
----
105
267
72
query I rowsort
SELECT ALL 78 + - ( + col0 ) FROM tab1
----
-2
14
75
query I rowsort
SELECT 64 + + col1 FROM tab2 AS cor0
----
123
81
95
query I rowsort
SELECT + 42 * + col2 AS col0 FROM tab0
----
1386
3444
42
query I rowsort
SELECT - tab2.col0 + col0 * - col2 FROM tab2
----
-196
-2106
-3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 col1 FROM tab2
----
19
19
19
query I rowsort
SELECT DISTINCT + 91 * col2 + + col0 * + col1 FROM tab0
----
15561
3486
5067
query I rowsort
SELECT + + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col2 + 31 AS col0 FROM tab2 AS cor0
----
57
58
69
query I rowsort
SELECT - - col0 * col1 + - ( + col0 ) FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT + 43 + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1268
619
7964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - + ( 10 ) col2 FROM tab0
----
76
81
87
query I rowsort
SELECT ALL - col1 * 93 + + 88 AS col0 FROM tab0
----
-7910
-8375
-8933
query I rowsort
SELECT DISTINCT + col1 + + ( ( + col1 ) ) FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT + + col0 * - 76 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT ALL - col2 + col0 * + 88 FROM tab1 AS cor0
----
210
5575
6944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 col2 FROM tab1, tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL col1 * - col0 + col2 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4777
SELECT + + CAST( NULL AS SIGNED ) * 27 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4777
SELECT + + CAST ( NULL AS INTEGER ) * 27 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * 6 FROM tab0 AS cor0
----
144
210
534
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 * col1 col0 FROM tab0 cor0
----
5504
5824
6208
onlyif mysql # use DIV operator for integer division
query I rowsort label-4780
SELECT DISTINCT + col2 DIV col1 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4780
SELECT DISTINCT + col2 / col1 + + col0 AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - cor0.col2 * col2 + cor0.col1 * + col1 FROM tab0 AS cor0
----
1557
6307
9408
query I rowsort
SELECT + ( - col0 ) * - col2 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col1 + - 83 AS col1 FROM tab0 AS cor0
----
14
3
8
query I rowsort
SELECT DISTINCT - col2 + + 32 FROM tab1 AS cor0
----
-22
-25
-64
query I rowsort
SELECT ALL - 44 - col2 * - col0 AS col1 FROM tab2 AS cor0
----
145
1984
2958
query I rowsort
SELECT DISTINCT + 44 * col2 AS col2 FROM tab2 AS cor0
----
1144
1188
1672
query I rowsort
SELECT - - 97 * + col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT ALL ( 10 ) - - cor0.col0 AS col2 FROM tab0 AS cor0
----
34
45
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 * - ( - col2 ) - - col2 col2 FROM tab2 AS cor0
----
312
324
456
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 96 col2 FROM tab2 AS cor0
----
96
query I rowsort
SELECT DISTINCT + tab1.col2 * 71 * - 97 - - tab1.col0 FROM tab1
----
-371895
-392495
-661072
query I rowsort
SELECT ALL - col2 - 17 AS col2 FROM tab2
----
-43
-44
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4793
SELECT CAST( col1 AS SIGNED ) - col0 FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-4793
SELECT CAST ( col1 AS INTEGER ) - col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - col0 * + 62 + cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-237
-3961
-4976
onlyif mysql # use DIV operator for integer division
query I rowsort label-4795
SELECT - + col1 DIV col1 + col2 * + col1 FROM tab0 cor0
----
2837
7461
96
skipif mysql # not compatible
query I rowsort label-4795
SELECT - + col1 / col1 + col2 * + col1 FROM tab0 cor0
----
2837
7461
96
query I rowsort
SELECT - col0 + - col0 * col0 + cor0.col2 AS col2 FROM tab1 cor0
----
-4103
-6384
42
query I rowsort
SELECT + cor0.col0 + col1 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2728
-7282
35
query I rowsort
SELECT col1 * col1 - - 23 FROM tab1 AS cor0
----
123
192
699
query I rowsort
SELECT DISTINCT col0 * - ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 * - col2 + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4801
SELECT col0 + - col2 DIV col1 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-4801
SELECT col0 + - col2 / col1 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT DISTINCT col2 * + col1 * col2 AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - + ( + ( - col2 ) ) * cor0.col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL - col1 + + 37 AS col0 FROM tab2 AS cor0
----
-22
20
6
query I rowsort
SELECT + col2 + 83 AS col2 FROM tab0
----
116
165
84
query I rowsort
SELECT col2 * ( 60 ) AS col1 FROM tab2
----
1560
1620
2280
query I rowsort
SELECT ALL col1 * + 16 FROM tab2
----
272
496
944
query I rowsort
SELECT ALL + 39 * col0 AS col2 FROM tab1
----
117
2496
3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4809
SELECT DISTINCT CAST( NULL AS SIGNED ) * tab2.col1 * + col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4809
SELECT DISTINCT CAST ( NULL AS INTEGER ) * tab2.col1 * + col1 FROM tab2
----
NULL
query I rowsort
SELECT + - 46 * + col0 + - 23 * col0 + col2 FROM tab0 AS cor0
----
-1623
-2414
-6059
query I rowsort
SELECT - cor0.col0 - col2 * 80 FROM tab2 AS cor0
----
-2158
-2167
-3119
query I rowsort
SELECT + col1 + col1 - - col2 * + col0 * + col2 FROM tab2 AS cor0
----
114110
5165
52846
query I rowsort
SELECT + 4 FROM tab0, tab2, tab0 cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT + col2 - ( col0 + col2 ) * col0 AS col1 FROM tab0 cor0
----
-1259
-1335
-15137
query I rowsort
SELECT col0 + 0 * 66 * + cor0.col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT tab1.col1 + tab1.col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL col0 * 56 + + col1 * col1 FROM tab0 AS cor0
----
11369
13265
8740
query I rowsort
SELECT + col0 * + cor0.col1 + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + - col2 + ( - col1 ) * cor0.col1 + - ( + col1 ) FROM tab0 AS cor0
----
-7515
-8454
-9507
query I rowsort
SELECT DISTINCT + col0 * - 38 FROM tab0 AS cor0
----
-1330
-3382
-912
onlyif mysql # use DIV operator for integer division
query I rowsort label-4821
SELECT + - col2 DIV - 22 + - 52 * + col2 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1691
-17
-4172
skipif mysql # not compatible
query I rowsort label-4821
SELECT + - col2 / - 22 + - 52 * + col2 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1691
-17
-4172
onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT DISTINCT + col2 + + col1 DIV 66 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT + col2 + + col1 / 66 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL col0 * 43 AS col2 FROM tab1 AS cor0
----
129
2752
3440
query I rowsort
SELECT DISTINCT col2 + col2 + col0 AS col1 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT + 7 + + col0 AS col1 FROM tab1 AS cor0
----
10
71
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 38 * 1 + + col0 * ( col0 ) col1 FROM tab2
----
6122
6279
87
query I rowsort
SELECT + + col1 + - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT cor0.col0 + col1 * + col0 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT + 82 * 27 * col2 + - 94 * - col2 AS col2 FROM tab1 AS cor0
----
124632
131556
221568
query I rowsort
SELECT - 88 + + 56 AS col2 FROM tab2 cor0
----
-32
-32
-32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4831
SELECT + CAST( NULL AS SIGNED ) + + col2 * col2 / col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4831
SELECT + CAST ( NULL AS INTEGER ) + + col2 * col2 / col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 * col1 * col2 AS col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + + ( col1 ) * col0 * ( + col2 ) FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 * + col1 col1 FROM tab1
----
-1378
-530
-689
query I rowsort
SELECT DISTINCT + + 46 AS col0 FROM tab2, tab2 AS cor0
----
46
query I rowsort
SELECT - 84 AS col2 FROM tab0
----
-84
-84
-84
query I rowsort
SELECT + col2 + col2 * + cor0.col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + - col2 + + ( 73 ) FROM tab1 AS cor0
----
-23
16
19
query I rowsort
SELECT + cor0.col0 + - cor0.col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * ( cor0.col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col1 + + cor0.col2 FROM tab2 cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 - ( col0 ) col2 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT col1 * + CAST( + col0 AS SIGNED ) + col2 AS col1 FROM tab1 cor0
----
1136
132
697
skipif mysql # not compatible
query I rowsort label-4843
SELECT col1 * + CAST ( + col0 AS INTEGER ) + col2 AS col1 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT ALL + col0 * ( col1 ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col1 + - 48 * 77 FROM tab2 AS cor0
----
-3637
-3665
-3679
query I rowsort
SELECT - ( - col2 ) + col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + col2 * - 21 AS col2 FROM tab1 AS cor0
----
-1134
-1197
-2016
query I rowsort
SELECT DISTINCT + 43 * col0 FROM tab2 cor0
----
301
3354
3397
query I rowsort
SELECT 41 + col2 * - col0 FROM tab2 AS cor0
----
-148
-1987
-2961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * cor0.col2 col0 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-4851
SELECT ALL col1 DIV + 28 FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL col1 / + 28 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT ALL - col2 + - 45 * col0 AS col2 FROM tab2 AS cor0
----
-342
-3536
-3593
query I rowsort
SELECT cor1.col1 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT tab2.col1 - col2 * - ( tab2.col0 ) * tab2.col2 AS col0 FROM tab2
----
114093
5134
52787
query I rowsort
SELECT ALL + + col1 * - col1 * + col0 AS col2 FROM tab1 cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT - col0 + cor0.col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-4856
SELECT - col0 + cor0.col0 / col2 AS col2 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT DISTINCT + - 88 + - col2 FROM tab1 AS cor0
----
-142
-145
-184
query I rowsort
SELECT - cor0.col1 + + col2 + - col0 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT - + 55 + - col0 AS col2 FROM tab2 AS cor0
----
-133
-134
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4860
SELECT + col0 + col0 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4860
SELECT + col0 + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL col2 - tab1.col0 * - col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL + col1 - + col2 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col1 + ( + cor0.col0 ) FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 + col2 col2 FROM tab2 AS cor0
----
182
196
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + ( col2 ) col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + - col1 + - 44 FROM tab2 AS cor0
----
-103
-61
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4868
SELECT ALL - 90 + tab1.col1 DIV col2 - + tab1.col2 FROM tab1
----
-144
-147
-186
skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL - 90 + tab1.col1 / col2 - + tab1.col2 FROM tab1
----
-144
-147
-186
query I rowsort
SELECT - 15 + - tab1.col2 AS col0 FROM tab1
----
-111
-69
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-4870
SELECT + tab0.col2 DIV + tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif mysql # not compatible
query I rowsort label-4870
SELECT + tab0.col2 / + tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT + + col2 * + col1 + col1 - col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4872
SELECT ALL - col2 + 79 * + col1 * col2 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
224145
589327
7627
skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL - col2 + 79 * + col1 * col2 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
224145
589327
7627
query I rowsort
SELECT 37 + col1 AS col0 FROM tab1
----
47
50
63
query I rowsort
SELECT ALL + - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT + 70 * - col0 + col1 + col2 FROM tab1
----
-130
-4413
-5491
query I rowsort
SELECT DISTINCT col0 - - tab1.col1 * + 76 FROM tab1
----
1068
1979
824
query I rowsort
SELECT tab2.col1 * + 63 FROM tab2
----
1071
1953
3717
onlyif mysql # use DIV operator for integer division
query I rowsort label-4878
SELECT col2 + - tab1.col0 DIV 84 AS col0 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4878
SELECT col2 + - tab1.col0 / 84 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT - col0 + + tab2.col0 + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT tab0.col0 * ( ( tab0.col0 ) * ( + col1 ) ) + col2 * + 31 FROM tab0
----
118856
50559
723353
query I rowsort
SELECT DISTINCT col0 + + 36 * col2 FROM tab2
----
1014
1447
979
query I rowsort
SELECT - col0 + - ( col1 + - col1 ) AS col2 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + - col0 + - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4884
SELECT ALL col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + - col2 * 35 FROM tab1 AS cor0
----
-1890
-1995
-3360
query I rowsort
SELECT + col1 * + tab1.col0 * 24 FROM tab1
----
15360
1872
24960
query I rowsort
SELECT + - col0 + - 13 + cor0.col1 * col0 FROM tab1 cor0
----
563
62
947
query I rowsort
SELECT DISTINCT - col0 * - col1 * - col0 AS col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL - ( 49 ) AS col2 FROM tab0
----
-49
-49
-49
query I rowsort
SELECT - col1 + - col2 * col1 AS col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT - col2 + + 53 * + tab0.col1 FROM tab0
----
4525
4741
5140
query I rowsort
SELECT DISTINCT - 14 * + col0 FROM tab0
----
-1246
-336
-490
query I rowsort
SELECT ALL - col2 + col2 * - ( cor0.col0 + - col0 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 * + ( ( - col0 ) ) FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + + 85 AS col1 FROM tab1 cor0
----
85
85
85
query I rowsort
SELECT ALL col2 * col1 + col1 AS col0 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 col2 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * - cor0.col1 + - col0 col2 FROM tab2 AS cor0
----
1247
2411
4524
query I rowsort
SELECT - ( col0 ) + ( + col1 ) AS col2 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT DISTINCT + - 94 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT + - 94 / col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col2 + cor0.col0 * - ( col0 ) col1 FROM tab1 AS cor0
----
-847
2816
2907
query I rowsort
SELECT ALL - + col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT ALL ( tab2.col1 ) * tab2.col2 DIV col0 FROM tab2
----
119
19
8
skipif mysql # not compatible
query I rowsort label-4904
SELECT ALL ( tab2.col1 ) * tab2.col2 / col0 FROM tab2
----
119
19
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + col2 * + col1 col1 FROM tab2 AS cor0
----
-2356
-494
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-4906
SELECT + 92 DIV + col1 FROM tab2
----
1
2
5
skipif mysql # not compatible
query I rowsort label-4906
SELECT + 92 / + col1 FROM tab2
----
1
2
5
query I rowsort
SELECT 94 * - cor0.col2 FROM tab1 cor0
----
-5076
-5358
-9024
query I rowsort
SELECT + + ( + 74 ) AS col0 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT - ( col1 ) * 54 + + col1 AS col2 FROM tab2 AS cor0
----
-1643
-3127
-901
onlyif mysql # use DIV operator for integer division
query I rowsort label-4910
SELECT + cor0.col2 * col0 + 39 DIV + col1 FROM tab2 cor0
----
190
2028
3004
skipif mysql # not compatible
query I rowsort label-4910
SELECT + cor0.col2 * col0 + 39 / + col1 FROM tab2 cor0
----
190
2028
3004
query I rowsort
SELECT DISTINCT - - 36 + cor0.col1 AS col0 FROM tab2 AS cor0
----
53
67
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + cor0.col1 col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4913
SELECT col0 DIV col2 + 65 AS col1 FROM tab0 AS cor0
----
100
65
66
skipif mysql # not compatible
query I rowsort label-4913
SELECT col0 / col2 + 65 AS col1 FROM tab0 AS cor0
----
100
65
66
query I rowsort
SELECT col0 * - col0 * - col0 - + col2 AS col0 FROM tab1 cor0
----
-27
262087
511904
query I rowsort
SELECT - col0 + - col0 + ( col0 ) * + cor0.col0 FROM tab0 AS cor0
----
1155
528
7743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4916
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT tab0.col2 * + tab0.col0 AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4918
SELECT - tab1.col1 DIV 23 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4918
SELECT - tab1.col1 / 23 AS col1 FROM tab1
----
-1
0
0
query I rowsort
SELECT ALL - tab0.col0 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT col2 DIV - ( col2 ) AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4920
SELECT col2 / - ( col2 ) AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT cor0.col2 * 14 AS col0 FROM tab1 AS cor0
----
1344
756
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col0 + col2 * - 79 AS col1 FROM tab0 AS cor0
----
-2583
-44
-6389
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4924
SELECT + + col2 * CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4924
SELECT + + col2 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4925
SELECT - tab0.col2 DIV - col0 + 5 FROM tab0
----
5
5
6
skipif mysql # not compatible
query I rowsort label-4925
SELECT - tab0.col2 / - col0 + 5 FROM tab0
----
5
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ALL + 74 FROM tab1, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + + col2 col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT 92 AS col0 FROM tab2 cor0
----
92
92
92
query I rowsort
SELECT ALL + 75 * col1 FROM tab2 cor0
----
1275
2325
4425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4931
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * - col0 + col0 col1 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * - col0 + col0 col1 FROM tab1 AS cor0
----
-4032
-6
-6320
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + cor0.col2 * col0 + + col1 * - ( 59 ) AS col0 FROM tab1 AS cor0
----
-1372
3058
6913
query I rowsort
SELECT DISTINCT + 19 FROM tab0, tab1, tab1 AS cor0, tab2
----
19
query I rowsort
SELECT ALL - col1 * + ( col1 + - tab0.col0 ) AS col1 FROM tab0
----
-182
-5332
-6014
query I rowsort
SELECT DISTINCT - ( - ( col2 ) * + col0 + + 45 * + col0 ) FROM tab1
----
27
4080
768
query I rowsort
SELECT ALL - 99 AS col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT + col1 * 12 FROM tab0 AS cor0
----
1032
1092
1164
onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT cor0.col0 DIV - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4939
SELECT cor0.col0 / - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + - 64 AS col0 FROM tab0 AS cor0
----
-64
-64
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4941
SELECT + - col1 + col1 DIV col2 AS col1 FROM tab1 cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4941
SELECT + - col1 + col1 / col2 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT cor0.col2 + ( 51 ) FROM tab0, tab0 AS cor0
----
133
52
84
query I rowsort
SELECT + col0 * - col0 * 26 - col0 AS col0 FROM tab2 AS cor0
----
-1281
-158262
-162345
query I rowsort
SELECT col1 + col0 - - tab2.col2 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL 47 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT - col1 + 60 FROM tab2 cor0
----
1
29
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4947
SELECT col1 DIV col0 + 30 FROM tab0
----
31
32
33
skipif mysql # not compatible
query I rowsort label-4947
SELECT col1 / col0 + 30 FROM tab0
----
31
32
33
query I rowsort
SELECT col0 + - tab2.col0 * + 28 FROM tab2
----
-189
-2106
-2133
query I rowsort
SELECT + col0 + ( - col1 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT col1 * ( + 72 ) + col0 * + col0 AS col1 FROM tab1 AS cor0
----
1881
4816
7336
query I rowsort
SELECT ALL col1 + col2 - - col1 * - tab0.col2 FROM tab0
----
-2719
-7289
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4952
SELECT DISTINCT col0 + - CAST( - col0 AS SIGNED ) * - col1 + + ( col2 ) FROM tab1 AS cor0
----
-21
-519
-864
skipif mysql # not compatible
query I rowsort label-4952
SELECT DISTINCT col0 + - CAST ( - col0 AS INTEGER ) * - col1 + + ( col2 ) FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT - cor0.col2 + + 0 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4954
SELECT + col2 * - CAST( + col0 AS SIGNED ) * + col2 - + 40 * + ( col2 ) * 42 AS col0 FROM tab2 AS cor0
----
-177916
-50463
-96408
skipif mysql # not compatible
query I rowsort label-4954
SELECT + col2 * - CAST ( + col0 AS INTEGER ) * + col2 - + 40 * + ( col2 ) * 42 AS col0 FROM tab2 AS cor0
----
-177916
-50463
-96408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4955
SELECT ALL tab0.col1 + + col1 DIV ( col2 * col0 ) AS col1 FROM tab0
----
86
91
99
skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL tab0.col1 + + col1 / ( col2 * col0 ) AS col1 FROM tab0
----
86
91
99
query I rowsort
SELECT DISTINCT + 64 + col0 AS col1 FROM tab1
----
128
144
67
query I rowsort
SELECT 10 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT ALL + col2 + - 94 + + col0 AS col0 FROM tab2 AS cor0
----
-60
10
23
query I rowsort
SELECT DISTINCT - + col2 * 4 AS col0 FROM tab1 AS cor0
----
-216
-228
-384
query I rowsort
SELECT ALL + - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + col2 + - cor0.col1 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - col0 * + 31 AS col0 FROM tab1 AS cor0
----
-1984
-2480
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col2 col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4965
SELECT ALL + col1 DIV ( - cor0.col2 * col1 ) FROM tab0 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL + col1 / ( - cor0.col2 * col1 ) FROM tab0 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4966
SELECT + - col1 DIV + 18 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-4966
SELECT + - col1 / + 18 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT - - cor0.col0 + + col2 * - col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-4968
SELECT ALL + col2 DIV col2 + col0 * tab1.col2 * col2 FROM tab1
----
207937
737281
8749
skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL + col2 / col2 + col0 * tab1.col2 * col2 FROM tab1
----
207937
737281
8749
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE ( + col0 ) IN ( - col2 )
----
query I rowsort
SELECT + col2 - col0 * tab0.col2 AS col2 FROM tab0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-4972
SELECT col2 DIV - col1 col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4972
SELECT col2 / - col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT - col1 + - col0 * - col2 FROM tab2
----
158
1969
2985
query I rowsort
SELECT ALL col1 * tab0.col1 + + col1 AS col2 FROM tab0
----
7482
8372
9506
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + col0 + cor0.col0 + col1 * col1 AS col0 FROM tab1 AS cor0
----
228
329
682
query I rowsort
SELECT DISTINCT - col1 + + cor0.col1 * + col0 * + col1 FROM tab0 AS cor0
----
177418
329218
736918
query I rowsort
SELECT DISTINCT + col1 * col2 - tab1.col1 FROM tab1 WHERE NOT tab1.col2 <= NULL
----
query I rowsort
SELECT - col1 * - tab0.col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL col1 - + col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 + + col1 * + 16 FROM tab1 AS cor0
----
224
288
419
query I rowsort
SELECT + + 24 AS col1 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT DISTINCT + cor0.col0 * - cor0.col0 FROM tab0, tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + + cor0.col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 * - col1 + - ( cor0.col0 + col0 ) col0 FROM tab0 AS cor0
----
4596
4736
5168
query I rowsort
SELECT ALL 35 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1260
-3204
-864
query I rowsort
SELECT - 38 + col1 AS col2 FROM tab0 AS cor0
----
48
53
59
query I rowsort
SELECT DISTINCT - col0 - - col0 AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT - + 89 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
3559
73
7591
query I rowsort
SELECT col2 * ( 6 + - col0 ) AS col2 FROM tab0 AS cor0
----
-29
-594
-6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-4991
SELECT DISTINCT + ( - cor0.col0 ) DIV cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4991
SELECT DISTINCT + ( - cor0.col0 ) / cor0.col0 AS col2 FROM tab2, tab0 AS cor0
----
-1
query I rowsort
SELECT - col1 * + ( - cor0.col2 ) + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT col1 * col1 + ( - col2 ) DIV - col1 FROM tab2
----
291
3481
961
skipif mysql # not compatible
query I rowsort label-4993
SELECT col1 * col1 + ( - col2 ) / - col1 FROM tab2
----
291
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4994
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 63ccb67e72ebac679a0221202c067b9e
query I rowsort
SELECT DISTINCT col1 * - 33 FROM tab2 AS cor0
----
-1023
-1947
-561
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * col0 col0 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT ALL + col0 * + ( col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - 8 + - 86 AS col0 FROM tab0 AS cor0
----
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5000
SELECT DISTINCT - 81 + col1 * col0 / + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT - 81 + col1 * col0 / + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - ( - col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5002
SELECT + 65 + col0 DIV - col0 FROM tab0 AS cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-5002
SELECT + 65 + col0 / - col0 FROM tab0 AS cor0
----
64
64
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-5003
SELECT DISTINCT ( + col2 ) DIV col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-5003
SELECT DISTINCT ( + col2 ) / col2 FROM tab0
----
1
query I rowsort
SELECT - ( + tab0.col1 ) AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT 82 + + col1 * - tab0.col2 * - tab0.col2 FROM tab0
----
179
611966
93736
query I rowsort
SELECT ALL - + ( - 7 ) + col2 AS col1 FROM tab1 AS cor0
----
103
61
64
query I rowsort
SELECT DISTINCT - 54 FROM tab0
----
-54
query I rowsort
SELECT DISTINCT + + col1 + + cor0.col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL col0 * + 53 AS col0 FROM tab0
----
1272
1855
4717
query I rowsort
SELECT 38 * cor0.col1 + cor0.col0 FROM tab2 AS cor0
----
1185
2320
725
query I rowsort
SELECT - 80 + - col0 FROM tab1 AS cor0
----
-144
-160
-83
query I rowsort
SELECT 22 * - col0 + col0 FROM tab0 cor0
----
-1869
-504
-735
query I rowsort
SELECT - col2 * + col2 + + col1 AS col1 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT - + 69 + + col1 FROM tab1 AS cor0
----
-43
-56
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 9 col2 FROM tab1
----
19
22
35
query I rowsort
SELECT DISTINCT + + 82 + + col2 FROM tab0 cor0
----
115
164
83
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 <= ( - col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5018
SELECT tab1.col2 + + col2 DIV col0 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-5018
SELECT tab1.col2 + + col2 / col0 FROM tab1
----
57
72
97
query I rowsort
SELECT DISTINCT col2 * - tab0.col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col1 * col1 * - cor0.col2 + col2 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-14924
-175956
-6014
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 AS cor0 WHERE - col1 / + col0 - - cor0.col2 < - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + col2 col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL col1 - + col1 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col2 * tab0.col2 col2 FROM tab0
----
1113
36
6813
query III rowsort
SELECT * FROM tab2 WHERE + col0 <> NULL
----
query I rowsort
SELECT DISTINCT - col0 - col2 * col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT - col0 * tab1.col1 - col2 AS col0 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab0
----
-2838
-7462
-97
query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + + col0 > ( NULL )
----
query I rowsort
SELECT DISTINCT + tab2.col0 AS col1 FROM tab2 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT DISTINCT col0 + + col0 + cor0.col1 FROM tab1 cor0
----
138
173
32
query I rowsort
SELECT - col0 + col2 * col2 AS col0 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT DISTINCT - + col1 * + col0 + col1 * - col1 AS col0 FROM tab1 cor0
----
-1209
-740
-754
query I rowsort
SELECT col1 * + col1 - + col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT + col1 * col0 * col0 AS col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT - col2 + col1 + - col1 AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col2 * + col0 * col0 AS col1 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT tab2.col0 * col2 * + tab2.col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT - col1 - - col1 * col0 * tab2.col0 FROM tab2
----
106080
1488
358897
query I rowsort
SELECT - col1 * - col2 + + col0 AS col0 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT col1 * - col1 * + col1 AS col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT col0 * + col1 - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT tab2.col1 * col2 + + col2 AS col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT col2 + tab2.col1 + + col0 FROM tab2
----
134
163
65
query I rowsort
SELECT - col2 + tab0.col1 * + col2 FROM tab0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5046
SELECT + col1 + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-5046
SELECT + col1 + col1 / + col1 AS col0 FROM tab2 AS cor0
----
18
32
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5047
SELECT DISTINCT ( - col0 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT ( - col0 ) / col1 AS col0 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 80 * 91 FROM tab0 AS cor0
----
7280
7280
7280
query I rowsort
SELECT ALL - + cor0.col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ( - ( + col1 ) ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 * 75 + + 76 FROM tab2
----
2026
2101
2926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5053
SELECT - - CAST( + ( col2 ) AS SIGNED ) * ( - 44 ) AS col2 FROM tab2 AS cor0
----
-1144
-1188
-1672
skipif mysql # not compatible
query I rowsort label-5053
SELECT - - CAST ( + ( col2 ) AS INTEGER ) * ( - 44 ) AS col2 FROM tab2 AS cor0
----
-1144
-1188
-1672
onlyif mysql # use DIV operator for integer division
query I rowsort label-5054
SELECT - col0 * ( + col1 ) DIV col1 + ( + col0 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5054
SELECT - col0 * ( + col1 ) / col1 + ( + col0 ) FROM tab0
----
0
0
0
query I rowsort
SELECT col2 - - ( col2 * col1 ) FROM tab1
----
1344
1458
627
query I rowsort
SELECT - tab2.col2 * - ( + tab2.col1 ) + + tab2.col0 * tab2.col2 * 56 FROM tab2
----
11421
115102
168758
onlyif mysql # use DIV operator for integer division
query I rowsort label-5057
SELECT DISTINCT - col1 - col1 DIV + tab1.col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - col1 - col1 / + tab1.col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ( col0 ) * + col0 + col0 FROM tab0
----
1260
600
8010
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col1 AS REAL ) * - col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 55 * col0 + + col0 FROM tab1 AS cor0
----
-162
-3456
-4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 + col1 + tab2.col1 * - tab2.col0 col2 FROM tab2
----
-100
-1240
-4457
query I rowsort
SELECT + col0 * + col0 * + ( col0 ) FROM tab0
----
13824
42875
704969
query I rowsort
SELECT + - cor0.col2 + + 35 FROM tab0 AS cor0
----
-47
2
34
query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col1 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT 42 + col1 * ( + col2 ) AS col2 FROM tab1 AS cor0
----
1290
1446
612
onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT ALL + col2 DIV col0 + col1 AS col2 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-5066
SELECT ALL + col2 / col0 + col1 AS col2 FROM tab1
----
10
14
44
query I rowsort
SELECT + 8 AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT - - col2 * 37 * col1 FROM tab1 AS cor0
----
21090
46176
51948
query I rowsort
SELECT ALL 17 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT 81 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT ALL + col2 + 1 AS col2 FROM tab1 AS cor0
----
55
58
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT ALL + - col2 DIV col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5072
SELECT ALL + - col2 / col1 AS col0 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT - + cor0.col0 * 22 AS col0 FROM tab0 AS cor0
----
-1958
-528
-770
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab2 AS cor2, tab2 AS cor3
----
13122 values hashing to f9a609677e81a6738dfc1fa2af612517
query I rowsort
SELECT ALL - col0 * + cor0.col1 - - col1 * + col2 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT col1 + 94 * col0 FROM tab2 AS cor0
----
689
7391
7443
query I rowsort
SELECT ALL - col1 * + ( - col1 ) * - col1 + col2 * - 55 FROM tab0 AS cor0
----
-637871
-758081
-912728
query I rowsort
SELECT DISTINCT + + col2 * + col1 + col2 - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT tab0.col1 * + ( + col0 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - + col0 + col1 * col1 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5082
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 + 78 FROM tab0 AS cor0
----
-13
-19
-8
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea
query I rowsort
SELECT DISTINCT - - 84 * + col1 - col0 AS col2 FROM tab0 AS cor0
----
7200
7555
8113
query I rowsort
SELECT + cor0.col1 * tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3aa3dc9c06ac75ec040ed5bc20953cf9
query I rowsort
SELECT + - ( col1 ) * - col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ( 11 ) + + col1 FROM tab0 AS cor0
----
102
108
97
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif mysql # not compatible
query I rowsort
SELECT + - 53 + cor0.col1 + - CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
-53
-53
-53
query I rowsort
SELECT DISTINCT cor0.col2 - col0 * col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT ALL - + col2 * + col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + col0 + col1 + - col2 AS col2 FROM tab2 AS cor0
----
11
111
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5094
SELECT col0 * + CAST( col2 AS SIGNED ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
skipif mysql # not compatible
query I rowsort label-5094
SELECT col0 * + CAST ( col2 AS INTEGER ) * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT + cor0.col1 * - col2 * + col1 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-22624
-36513
-9796
query I rowsort
SELECT DISTINCT tab1.col0 * + col0 + + col1 AS col2 FROM tab1
----
35
4106
6413
query I rowsort
SELECT + col1 * col2 + - cor0.col1 * + col0 * col2 FROM tab2 AS cor0
----
-118118
-5022
-50388
query I rowsort
SELECT + - col2 + + col0 * col1 + col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * - col2 + + tab2.col2 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - tab1.col2 * col0 * col2 + + col2 * col0 AS col1 FROM tab1
----
-204288
-729600
-8586
query I rowsort
SELECT DISTINCT - + 77 AS col1 FROM tab0, tab1, tab1 AS cor0
----
-77
query I rowsort
SELECT - 19 * tab2.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6d05d1843384ab7fe35fb10238121808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 78 + + col2 col1 FROM tab2
----
104
105
116
query I rowsort
SELECT DISTINCT - tab1.col1 * col1 * + ( + ( + col1 ) ) + + 2 * col1 FROM tab1
----
-17524
-2171
-980
query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 AS col1 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT - col1 + - col0 * - 55 * - col1 FROM tab0 AS cor0
----
-113606
-186822
-445536
query I rowsort
SELECT ALL - col0 * 39 * + col0 AS col0 FROM tab1
----
-159744
-249600
-351
query I rowsort
SELECT DISTINCT 6 * + ( col2 * col1 ) AS col2 FROM tab0
----
17028
44772
582
query I rowsort
SELECT - ( + col0 ) + - col0 * 3 AS col0 FROM tab1 AS cor0
----
-12
-256
-320
query I rowsort
SELECT - col1 * + col1 - 93 * tab2.col0 * - tab2.col0 FROM tab2
----
3596
562331
580124
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5111
SELECT DISTINCT - col1 + - tab0.col0 + CAST( - 32 AS SIGNED ) col0 FROM tab0
----
-142
-164
-212
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - col1 + - tab0.col0 + CAST ( - 32 AS INTEGER ) col0 FROM tab0
----
-142
-164
-212
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT - - col2 + - col1 * + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-5112
SELECT - - col2 + - col1 * + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5113
SELECT + 75 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-5113
SELECT + 75 / - col1 col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5114
SELECT tab0.col1 * col1 DIV col2 FROM tab0
----
100
224
9409
skipif mysql # not compatible
query I rowsort label-5114
SELECT tab0.col1 * col1 / col2 FROM tab0
----
100
224
9409
query I rowsort
SELECT 10 * - cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to f5c002c6d944f584b3086b44d5866d9f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 + 80 col0 FROM tab0
----
1169
6804
81
query I rowsort
SELECT col0 * + ( + col2 ) AS col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5118
SELECT col0 * col2 DIV - ( + col1 ) AS col2 FROM tab1
----
-364
-590
-6
skipif mysql # not compatible
query I rowsort label-5118
SELECT col0 * col2 / - ( + col1 ) AS col2 FROM tab1
----
-364
-590
-6
query I rowsort
SELECT - 97 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT + col1 * col0 + 40 FROM tab0 AS cor0
----
2104
3435
8139
query I rowsort
SELECT ALL col0 * + 64 AS col2 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT + col1 * col1 + 1 * col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT - col1 * 85 FROM tab1
----
-1105
-2210
-850
query I rowsort
SELECT DISTINCT 22 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
22
query I rowsort
SELECT - 16 * ( - col2 ) FROM tab1 AS cor0
----
1536
864
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-5126
SELECT - + col0 + col2 DIV cor0.col0 AS col1 FROM tab2 cor0
----
-4
-78
-79
skipif mysql # not compatible
query I rowsort label-5126
SELECT - + col0 + col2 / cor0.col0 AS col1 FROM tab2 cor0
----
-4
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5127
SELECT + + CAST( ( - col2 ) AS SIGNED ) DIV 16 AS col2 FROM tab2 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-5127
SELECT + + CAST ( ( - col2 ) AS INTEGER ) / 16 AS col2 FROM tab2 AS cor0
----
-1
-1
-2
query I rowsort
SELECT + 93 AS col0 FROM tab2 cor0
----
93
93
93
query I rowsort
SELECT cor0.col1 * + ( - col2 * col0 ) + 36 AS col2 FROM tab0 AS cor0
----
-3359
-664082
-68076
query I rowsort
SELECT 77 * + cor0.col1 + col0 AS col1 FROM tab1 AS cor0
----
1081
2005
834
query I rowsort
SELECT ALL - col2 + + col1 * - col0 AS col0 FROM tab0
----
-2097
-3396
-8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-5132
SELECT + 22 DIV - 32 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5132
SELECT + 22 / - 32 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 - - col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5134
SELECT ALL col2 / + col1 + col0 / CAST( NULL AS SIGNED ) + - tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL col2 / + col1 + col0 / CAST ( NULL AS INTEGER ) + - tab0.col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col2 * + col1 + col0 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT - 66 * - col1 + col0 FROM tab1
----
1719
724
938
query I rowsort
SELECT ALL - 93 - col2 FROM tab2
----
-119
-120
-131
query I rowsort
SELECT ALL - tab2.col2 - - col1 * + col1 FROM tab2
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT col2 DIV - col1 - col0 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-5139
SELECT col2 / - col1 - col0 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT 82 - 23 FROM tab0 AS cor0
----
59
59
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5141
SELECT + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5141
SELECT + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - + col0 * col2 + + cor0.col2 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL + col0 * + col2 + col0 + col0 AS col2 FROM tab0 AS cor0
----
105
7476
840
query I rowsort
SELECT ALL + 39 - col2 AS col2 FROM tab0 AS cor0
----
-43
38
6
query I rowsort
SELECT - 64 * - col1 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT ALL + col2 + - cor0.col1 * + col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + col1 * + col0 * cor0.col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT + - col0 * - col2 * cor0.col1 + - col0 * col0 AS col2 FROM tab0 cor0
----
2170
656197
67536
query I rowsort
SELECT DISTINCT - 36 + col0 FROM tab1 cor0
----
-33
28
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT DISTINCT - col1 * - col1 * + 87 + col0 * col1 + 62 DIV col1 FROM tab0 AS cor0
----
645516
728546
821978
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - col1 * - col1 * + 87 + col0 * col1 + 62 / col1 FROM tab0 AS cor0
----
645516
728546
821978
query I rowsort
SELECT 8 + col0 AS col1 FROM tab2 AS cor0
----
15
86
87
query I rowsort
SELECT ALL - + 66 * - col2 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
101
2202
5501
onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT ALL - col0 DIV + col1 + col0 * + 29 AS col0 FROM tab2 AS cor0
----
203
2261
2287
skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL - col0 / + col1 + col0 * + 29 AS col0 FROM tab2 AS cor0
----
203
2261
2287
query I rowsort
SELECT + col0 * 25 FROM tab2 AS cor0
----
175
1950
1975
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5155
SELECT col1 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-5155
SELECT col1 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5156
SELECT + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5156
SELECT + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - - cor0.col1 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col1 * - 1 AS col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - col1 * 23 FROM tab1 cor0
----
-230
-299
-598
onlyif mysql # use DIV operator for integer division
query I rowsort label-5160
SELECT ALL tab0.col1 DIV tab0.col0 col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL tab0.col1 / tab0.col0 col0 FROM tab0
----
1
2
3
query I rowsort
SELECT ALL - 43 + + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 97037b581660b1aa2b6ee023c6d9b46f
query I rowsort
SELECT + - ( + col1 ) * col0 * col1 + ( col0 ) FROM tab1 AS cor0
----
-13440
-2025
-6336
query I rowsort
SELECT + col2 * col1 - + col0 * + ( col1 ) * col2 FROM tab0 AS cor0
----
-3298
-65274
-656656
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5164
SELECT ALL - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL 74 * col1 FROM tab1
----
1924
740
962
query I rowsort
SELECT - + ( col2 ) * ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL 34 * col0 FROM tab0
----
1190
3026
816
query I rowsort
SELECT + col1 * cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5170
SELECT 63 DIV - 90 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-5170
SELECT 63 / - 90 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5171
SELECT DISTINCT - + col1 DIV + col1 AS col0 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT - + col1 / + col1 AS col0 FROM tab1 cor0
----
-1
query I rowsort
SELECT ALL - 12 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 3983bffe2adf88cb2efc3be93ee620c0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5173
SELECT col1 * col1 + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5173
SELECT col1 * col1 + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5174
SELECT DISTINCT col1 DIV col2 + col2 * - ( col0 ) FROM tab0 AS cor0
----
-7297
-790
62
skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT col1 / col2 + col2 * - ( col0 ) FROM tab0 AS cor0
----
-7297
-790
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT ALL cor0.col2 * cor0.col0 DIV ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5175
SELECT ALL cor0.col2 * cor0.col0 / ( + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * 98 * cor1.col0 col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 5d7018fd1093471c0632e4cba83a9216
query I rowsort
SELECT ALL + - cor0.col0 * + col0 + col2 + + cor0.col2 * + col0 * + col0 AS col2 FROM tab1 AS cor0
----
229433
531
608096
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col1 * - col1 AS col2 FROM tab1 cor0
----
1000
17576
2197
query I rowsort
SELECT DISTINCT + col2 * col2 - - col1 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab0
----
49
query I rowsort
SELECT - - col0 * 95 * 58 FROM tab1 AS cor0
----
16530
352640
440800
query I rowsort
SELECT + + col0 * - 83 + - col0 AS col2 FROM tab1 AS cor0
----
-252
-5376
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( col1 ) ) col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 67 AS col1 FROM tab0 cor0
----
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5185
SELECT ALL + CAST( col2 AS SIGNED ) + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-5185
SELECT ALL + CAST ( col2 AS INTEGER ) + col2 AS col1 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - - ( 63 ) * + col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT ALL - + 12 * + col2 AS col1 FROM tab0 AS cor0
----
-12
-396
-984
query I rowsort
SELECT DISTINCT + ( 83 ) FROM tab0 cor0
----
83
query I rowsort
SELECT DISTINCT - cor0.col0 * 45 FROM tab2 AS cor0
----
-315
-3510
-3555
query I rowsort
SELECT 86 + + col2 FROM tab0 AS cor0
----
119
168
87
query I rowsort
SELECT + 50 * 94 FROM tab0 AS cor0
----
4700
4700
4700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col0 ) col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + cor0.col2 * ( - col2 * 78 ) + 32 + col2 FROM tab1 AS cor0
----
-227362
-253333
-718720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col0 FROM tab2 AS cor0
----
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * 20 + - col0 + + 42 * col1 * + col2 col0 FROM tab1 AS cor0
----
25156
53936
59025
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5196
SELECT ALL + + col0 * 48 * + col2 - + CAST( + col2 AS SIGNED ) * col1 FROM tab2 cor0
----
143450
8235
95810
skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL + + col0 * 48 * + col2 - + CAST ( + col2 AS INTEGER ) * col1 FROM tab2 cor0
----
143450
8235
95810
query I rowsort
SELECT DISTINCT + 37 + + 88 * - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-3043
-642187
-69659
query I rowsort
SELECT + 37 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1380
254
4639
query I rowsort
SELECT ALL - col2 * - tab2.col0 + col2 FROM tab2
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col0 * col2 + col2 col1 FROM tab1 AS cor0
----
-134
-3601
-7597
onlyif mysql # use DIV operator for integer division
query I rowsort label-5201
SELECT - - col2 * col0 * + 47 + cor0.col1 DIV + col2 - 94 DIV + 53 AS col1 FROM tab0 AS cor0
----
1741
343006
37225
skipif mysql # not compatible
query I rowsort label-5201
SELECT - - col2 * col0 * + 47 + cor0.col1 / + col2 - 94 / + 53 AS col1 FROM tab0 AS cor0
----
1741
343006
37225
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col1 FROM tab2 AS cor0
----
18
18
18
query I rowsort
SELECT 4 + + col1 + + col1 * cor0.col1 FROM tab2 AS cor0
----
310
3544
996
query I rowsort
SELECT - + col2 + col0 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-42
4103
6384
onlyif mysql # use DIV operator for integer division
query I rowsort label-5205
SELECT DISTINCT col2 * 76 DIV - col0 FROM tab2
----
-25
-293
-36
skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT col2 * 76 / - col0 FROM tab2
----
-25
-293
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-5206
SELECT ( 70 ) DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5206
SELECT ( 70 ) / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab0.col0 * tab0.col1 * + col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - ( 7 ) * + col0 FROM tab1
----
-21
-448
-560
query I rowsort
SELECT ALL + 40 * col2 + + col0 FROM tab0
----
1344
3369
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT tab2.col0 DIV col1 + + col2 * 92 FROM tab2
----
2393
2484
3500
skipif mysql # not compatible
query I rowsort label-5210
SELECT tab2.col0 / col1 + + col2 * 92 FROM tab2
----
2393
2484
3500
query I rowsort
SELECT ( + 74 ) * - col2 FROM tab0
----
-2442
-6068
-74
query I rowsort
SELECT col1 + - 24 FROM tab2
----
-7
35
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT ALL - col1 * col0 DIV 59 AS col2 FROM tab2 AS cor0
----
-22
-3
-78
skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL - col1 * col0 / 59 AS col2 FROM tab2 AS cor0
----
-22
-3
-78
query I rowsort
SELECT - ( col1 ) * + col1 + col1 * col0 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT DISTINCT + 64 * col1 AS col1 FROM tab0
----
5504
5824
6208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5216
SELECT DISTINCT + + col0 + 41 + + 49 * col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT + + col0 + 41 + + 49 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col0 + + ( col2 ) FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5218
SELECT ALL + col0 + CAST( col0 AS SIGNED ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL + col0 + CAST ( col0 AS INTEGER ) * + cor0.col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT cor0.col2 + + col1 AS col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT ( - 48 ) * col1 * + col0 + 53 * - col2 FROM tab2 AS cor0
----
-11847
-222274
-66478
query I rowsort
SELECT DISTINCT + - ( cor0.col0 ) * col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col1 + + col0 * col2 AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + tab2.col2 * ( + tab2.col2 + 60 ) * + col0 AS col0 FROM tab2
----
16443
174408
294196
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + tab1.col2 col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5225
SELECT DISTINCT CAST( - ( - col0 ) + col1 AS SIGNED ) col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT CAST ( - ( - col0 ) + col1 AS INTEGER ) col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + - 2 + cor0.col2 * col2 * cor0.col1 AS col0 FROM tab2 AS cor0
----
22597
24546
39882
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5227
SELECT col0 * + CAST( NULL AS SIGNED ) * + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5227
SELECT col0 * + CAST ( NULL AS INTEGER ) * + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col0 + col2 + cor0.col1 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + cor0.col2 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5230
SELECT - cor0.col0 * CAST( cor0.col0 AS SIGNED ) * + col2 - - CAST( + col0 AS SIGNED ) * - col0 col2 FROM tab2 cor0
----
-1372
-164268
-243399
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5230
SELECT - cor0.col0 * CAST ( cor0.col0 AS INTEGER ) * + col2 - - CAST ( + col0 AS INTEGER ) * - col0 col2 FROM tab2 cor0
----
-1372
-164268
-243399
query I rowsort
SELECT - col1 * col1 + 74 * + col0 AS col2 FROM tab1
----
-454
4636
5751
query I rowsort
SELECT ALL col2 * + ( col2 ) + - col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT DISTINCT + col2 + 57 FROM tab0 AS cor0
----
139
58
90
query I rowsort
SELECT col0 + + 78 AS col2 FROM tab1 AS cor0
----
142
158
81
query I rowsort
SELECT DISTINCT + cor0.col0 - col0 * 8 FROM tab0 AS cor0
----
-168
-245
-623
onlyif mysql # use DIV operator for integer division
query I rowsort label-5236
SELECT + col2 - col1 DIV + 3 FROM tab0 AS cor0
----
-31
5
52
skipif mysql # not compatible
query I rowsort label-5236
SELECT + col2 - col1 / + 3 FROM tab0 AS cor0
----
-31
5
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - ( + col2 ) * - col1 col0 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - 63 col0 FROM tab1 AS cor0
----
-117
-120
-159
query I rowsort
SELECT ALL + - col1 - - 99 AS col2 FROM tab0 AS cor0
----
13
2
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * cor0.col0 col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - ( - ( col1 ) ) AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + + 18 FROM tab1 cor0
----
18
18
18
query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab2, tab1 AS cor0
----
52
query I rowsort
SELECT ( cor0.col2 ) + + 12 * + col0 AS col0 FROM tab2 AS cor0
----
111
962
986
query I rowsort
SELECT DISTINCT + - 92 + col0 * 97 AS col2 FROM tab1 AS cor0
----
199
6116
7668
query I rowsort
SELECT ALL - 92 AS col0 FROM tab0
----
-92
-92
-92
query I rowsort
SELECT - cor0.col2 + + 5 FROM tab0, tab0 AS cor0
----
9 values hashing to 4830adb6d3fd84ce1d3cc8a8007ee9f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT ( col1 ) DIV 69 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5248
SELECT ( col1 ) / 69 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + 60 * + col2 AS col0 FROM tab0
----
1980
4920
60
query I rowsort
SELECT - - col2 + col0 * 88 * + col1 FROM tab2 AS cor0
----
118222
19123
405002
query I rowsort
SELECT DISTINCT cor0.col0 * col1 * 60 + + col1 AS col2 FROM tab2 AS cor0
----
13051
276179
80597
query I rowsort
SELECT - ( - 38 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT ALL - cor1.col0 DIV 21 - + 48 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 cor2
----
81 values hashing to f0a4e4ad10eeedbe0f2f5aa09b2a2b95
skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL - cor1.col0 / 21 - + 48 FROM tab0, tab0 AS cor0, tab2 cor1, tab1 cor2
----
81 values hashing to f0a4e4ad10eeedbe0f2f5aa09b2a2b95
query I rowsort
SELECT + cor0.col0 * - ( + 63 ) AS col2 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT - col0 * + ( col2 ) + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5256
SELECT DISTINCT + CAST( 40 AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
40
skipif mysql # not compatible
query I rowsort label-5256
SELECT DISTINCT + CAST ( 40 AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col2 * tab1.col2 * - col1 + col0 col1 FROM tab1
----
-119728
-32426
-75813
onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT DISTINCT - col1 DIV - ( + 9 ) AS col0 FROM tab1 AS cor0
----
1
2
skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT - col1 / - ( + 9 ) AS col0 FROM tab1 AS cor0
----
1
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 77 col2 FROM tab0 AS cor0
----
-2541
-6314
-77
query I rowsort
SELECT col0 * 2 + col1 * col1 FROM tab2 AS cor0
----
3637
447
975
query I rowsort
SELECT - - col1 * cor0.col2 + col2 + - col1 * - cor0.col1 FROM tab0 cor0
----
10267
15825
9507
query I rowsort
SELECT DISTINCT 67 + + col2 AS col1 FROM tab0
----
100
149
68
query I rowsort
SELECT + + 64 * col1 + - col0 FROM tab1 AS cor0
----
1661
576
752
query I rowsort
SELECT ALL + col1 + + col1 * - 78 AS col2 FROM tab2 AS cor0
----
-1309
-2387
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT ALL + col2 - - col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - col2 * + col2 + - cor0.col2 AS col2 FROM tab1 cor0
----
-2970
-3306
-9312
query I rowsort
SELECT 17 * col2 AS col1 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT + - 49 * col0 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT ALL 48 + col0 * - cor0.col1 * - 67 AS col2 FROM tab2 AS cor0
----
14587
308382
90029
query I rowsort
SELECT 34 + col0 FROM tab1 AS cor0
----
114
37
98
query I rowsort
SELECT ALL - col1 * - col1 + col1 * + col2 FROM tab2 AS cor0
----
1798
5015
935
query I rowsort
SELECT DISTINCT + - 88 AS col2 FROM tab2 AS cor0
----
-88
query I rowsort
SELECT ALL + + col2 + + col2 + ( col0 ) FROM tab1 AS cor0
----
111
178
272
onlyif mysql # use DIV operator for integer division
query I rowsort label-5275
SELECT - 3 DIV col0 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5275
SELECT - 3 / col0 col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + tab0.col0 col1 FROM tab0
----
171
36
57
query I rowsort
SELECT + col0 * 10 AS col0 FROM tab0
----
240
350
890
query I rowsort
SELECT + cor0.col2 * 99 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 3587ed66d17f1b4e9ff1c73ae5bd2da4
query I rowsort
SELECT + col1 * - col2 + - col0 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT - col2 + + col0 * - col0 FROM tab1
----
-4153
-63
-6496
query I rowsort
SELECT ALL + col0 * + col0 + + cor0.col1 + - col0 * + col2 * col0 AS col0 FROM tab0 AS cor0
----
-18346
-641510
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5282
SELECT - col1 - + ( col2 ) DIV - col0 FROM tab0 cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-5282
SELECT - col1 - + ( col2 ) / - col0 FROM tab0 cor0
----
-85
-91
-97
query I rowsort
SELECT DISTINCT - col1 + ( col0 ) * - cor0.col0 AS col0 FROM tab1 cor0
----
-35
-4106
-6413
query I rowsort
SELECT col0 * - 16 + col0 AS col0 FROM tab1 AS cor0
----
-1200
-45
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5285
SELECT - col0 * CAST( - 30 AS SIGNED ) + col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
10132
1147
3558
skipif mysql # not compatible
query I rowsort label-5285
SELECT - col0 * CAST ( - 30 AS INTEGER ) + col1 * + cor0.col2 AS col0 FROM tab0 cor0
----
10132
1147
3558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 + + 76 col1 FROM tab2
----
110
138
194
query I rowsort
SELECT ALL - ( - col1 ) + + col0 * - col2 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5288
SELECT - + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-5288
SELECT - + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - + 79 + + col0 AS col1 FROM tab2 AS cor0
----
-1
-72
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 64 ) * - col1 * 58 + - col2 col0 FROM tab1 AS cor0
----
37063
48160
96458
query I rowsort
SELECT ALL + col0 * + col0 + col2 * - 41 AS col0 FROM tab0 AS cor0
----
-777
1184
4559
query I rowsort
SELECT ALL + + cor0.col1 + 2 AS col0 FROM tab1 cor0
----
12
15
28
query I rowsort
SELECT col1 * - 30 + col1 FROM tab2 AS cor0
----
-1711
-493
-899
query I rowsort
SELECT - col0 + - col1 * + col2 * 21 AS col2 FROM tab1 AS cor0
----
-12034
-26288
-29487
query I rowsort
SELECT ALL col0 + ( col0 * + col1 ) FROM tab0
----
2088
3430
8188
query I rowsort
SELECT + col1 * + 73 AS col0 FROM tab1 cor0
----
1898
730
949
query I rowsort
SELECT DISTINCT col2 + col0 * - col2 * + 68 AS col1 FROM tab1 AS cor0
----
-10962
-248007
-522144
query I rowsort
SELECT ALL - 4 * + 58 FROM tab1 AS cor0
----
-232
-232
-232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col1 * col0 col2 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT - 53 * - col2 AS col0 FROM tab1 AS cor0
----
2862
3021
5088
query I rowsort
SELECT - 2 * + col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT col1 + cor0.col2 - 84 FROM tab0 AS cor0
----
14
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5303
SELECT + - 87 DIV col1 - - col1 * 29 AS col1 FROM tab1 AS cor0
----
282
371
751
skipif mysql # not compatible
query I rowsort label-5303
SELECT + - 87 / col1 - - col1 * 29 AS col1 FROM tab1 AS cor0
----
282
371
751
onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT DISTINCT - + col1 DIV + cor0.col1 col2 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5304
SELECT DISTINCT - + col1 / + cor0.col1 col2 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + col2 * col1 * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + 8 * + cor0.col0 AS col1 FROM tab0 cor0
----
192
280
712
query I rowsort
SELECT DISTINCT - 58 + col1 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
231
3423
903
query I rowsort
SELECT ALL + col1 * + col1 + - col1 AS col1 FROM tab1 cor0
----
156
650
90
query I rowsort
SELECT ALL + - col0 * + col2 + + 66 AS col1 FROM tab0 AS cor0
----
-7232
-726
31
query I rowsort
SELECT DISTINCT + - col2 * ( + 46 * col1 ) FROM tab2 AS cor0
----
-29716
-38502
-70564
query I rowsort
SELECT - - col0 - col1 AS col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 * ( col1 ) + col1 * + ( col2 ) FROM tab0 AS cor0
----
15561
3492
4902
query I rowsort
SELECT DISTINCT - col1 * col1 + - col1 AS col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL + - cor0.col1 - cor0.col2 * col0 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ( col2 ) - - 96 AS col1 FROM tab1
----
150
153
192
query I rowsort
SELECT DISTINCT - col0 - + tab2.col2 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT ALL 58 - tab2.col2 * col0 * + col2 FROM tab2
----
-114018
-5045
-52670
query I rowsort
SELECT + - col2 + col2 * - col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT col1 + 1 + col1 AS col2 FROM tab0 AS cor0
----
173
183
195
query I rowsort
SELECT col1 * 45 FROM tab2 cor0
----
1395
2655
765
query I rowsort
SELECT - col1 * ( col1 ) * cor0.col0 + + col2 FROM tab0 cor0
----
-177471
-329314
-736927
query I rowsort
SELECT - + col1 * + col1 - - col1 FROM tab2 AS cor0
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * - col1 col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col0 * ( col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT col0 + - ( - col1 ) * col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + col0 + col0 * 66 * + col2 AS col0 FROM tab2 AS cor0
----
12481
133926
198211
query I rowsort
SELECT cor0.col1 * - col0 + + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - cor0.col2 * - 91 FROM tab2 AS cor0
----
2366
2457
3458
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col0 FROM tab0, tab2 AS cor0
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5330
SELECT DISTINCT + col1 * CAST( - col0 AS SIGNED ) FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + col1 * CAST ( - col0 AS INTEGER ) FROM tab0
----
-2064
-3395
-8099
query IIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col0 * + col2 + col1 * - tab1.col0 AS col1 FROM tab1
----
3008
6640
84
query I rowsort
SELECT + col1 * 30 AS col1 FROM tab1
----
300
390
780
query I rowsort
SELECT + 29 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT + col2 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + 66 * - col2 AS col2 FROM tab0
----
-2178
-5412
-66
query I rowsort
SELECT + col0 + + col2 * + cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab1, tab1 AS cor0, tab1 cor1
----
53
query I rowsort
SELECT - 91 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-124
-173
-92
query I rowsort
SELECT + col2 * cor0.col1 + - 32 AS col1 FROM tab1 AS cor0
----
1216
1372
538
query I rowsort
SELECT - + cor0.col0 * - col1 - + col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - 65 + + col1 AS col0 FROM tab2 cor0
----
-34
-48
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5343
SELECT cor0.col2 * + col0 - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5343
SELECT cor0.col2 * + col0 - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 39 + + col0 - - col2 FROM tab2 AS cor0
----
143
156
73
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT DISTINCT + cor0.col2 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + 53 * - col1 FROM tab0 AS cor0
----
4558
4823
5141
onlyif mysql # use DIV operator for integer division
query I rowsort label-5348
SELECT ALL + 95 DIV col0 AS col0 FROM tab1 AS cor0
----
1
1
31
skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL + 95 / col0 AS col0 FROM tab1 AS cor0
----
1
1
31
query I rowsort
SELECT col2 * + col1 - + 70 FROM tab2 AS cor0
----
1464
576
767
query I rowsort
SELECT + + col1 * + ( + 74 ) AS col2 FROM tab0 AS cor0
----
6364
6734
7178
query I rowsort
SELECT + + col2 * - 25 AS col2 FROM tab2 AS cor0
----
-650
-675
-950
query I rowsort
SELECT + cor0.col1 + - 81 * - col2 FROM tab0 cor0
----
178
2759
6733
query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + 72 + - col2 AS col2 FROM tab1 AS cor0
----
-24
15
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT ALL + col2 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 col1 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT + col2 * + 65 FROM tab0 AS cor0
----
2145
5330
65
query I rowsort
SELECT ALL + - 68 * col2 FROM tab2 AS cor0
----
-1768
-1836
-2584
query I rowsort
SELECT + col2 * - 69 FROM tab1 cor0
----
-3726
-3933
-6624
query I rowsort
SELECT DISTINCT 35 * + 79 AS col2 FROM tab0, tab2 AS cor0
----
2765
query I rowsort
SELECT ALL + tab2.col1 * - 86 * col1 AS col1 FROM tab2
----
-24854
-299366
-82646
onlyif mysql # use DIV operator for integer division
query I rowsort label-5363
SELECT ALL + - 7 DIV col1 AS col0 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL + - 7 / col1 AS col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 33 col2 FROM tab1
----
2112
2640
99
query I rowsort
SELECT ALL 57 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT DISTINCT - col1 * 18 * - col2 AS col2 FROM tab1 cor0
----
10260
22464
25272
query I rowsort
SELECT DISTINCT + + cor0.col0 + 19 FROM tab0 AS cor0
----
108
43
54
query I rowsort
SELECT DISTINCT col0 * - ( + 57 * col2 + - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-10584
-113568
-168112
query I rowsort
SELECT ALL + col0 + 53 + + col1 AS col2 FROM tab1 AS cor0
----
127
146
82
query I rowsort
SELECT + - col0 * ( - col2 ) + col2 * + 57 AS col0 FROM tab0 AS cor0
----
11972
2673
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5372
SELECT DISTINCT - col0 DIV - col1 + col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-5372
SELECT DISTINCT - col0 / - col1 + col1 FROM tab2
----
21
31
60
query I rowsort
SELECT + tab1.col2 + - tab1.col0 * + col0 AS col2 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT + 17 FROM tab1, tab0 cor0, tab1 AS cor1
----
17
query I rowsort
SELECT - 5 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 4f346dd2f65047c836c6957f80f0ef9e
query I rowsort
SELECT ALL col0 * tab2.col1 * + col1 - col1 AS col0 FROM tab2
----
22814
271459
6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - tab1.col0 ) + 13 - col1 col0 FROM tab1
----
-10
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-5378
SELECT col1 * 59 + ( - col1 + - cor0.col1 ) DIV 77 AS col2 FROM tab1 AS cor0
----
1534
590
767
skipif mysql # not compatible
query I rowsort label-5378
SELECT col1 * 59 + ( - col1 + - cor0.col1 ) / 77 AS col2 FROM tab1 AS cor0
----
1534
590
767
query I rowsort
SELECT + tab2.col2 * 52 AS col0 FROM tab2
----
1352
1404
1976
query I rowsort
SELECT ALL - + col1 * - 15 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT - cor0.col1 + - 91 AS col1 FROM tab1 AS cor0
----
-101
-104
-117
query I rowsort
SELECT DISTINCT - - col1 * col2 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT + - cor0.col0 + + col1 AS col0 FROM tab1 cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 28 * 70 col0 FROM tab1 AS cor0
----
-1880
-1896
-1957
query I rowsort
SELECT + col0 * - ( col1 ) + col2 FROM tab1 cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-5386
SELECT col2 DIV - col2 + - col2 + - col0 * + col1 FROM tab0 AS cor0
----
-2098
-3397
-8182
skipif mysql # not compatible
query I rowsort label-5386
SELECT col2 / - col2 + - col2 + - col0 * + col1 FROM tab0 AS cor0
----
-2098
-3397
-8182
query I rowsort
SELECT col0 + cor0.col2 + col0 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT col2 - cor0.col1 * col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col2 * - col1 + 51 AS col2 FROM tab2
----
-1483
-595
-786
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5390
SELECT + col0 * CAST( 6 AS SIGNED ) AS col1 FROM tab1
----
18
384
480
skipif mysql # not compatible
query I rowsort label-5390
SELECT + col0 * CAST ( 6 AS INTEGER ) AS col1 FROM tab1
----
18
384
480
query I rowsort
SELECT col2 * + 6 FROM tab0
----
198
492
6
query I rowsort
SELECT ALL col2 * col2 * col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT DISTINCT col0 * col1 * - 58 AS col0 FROM tab0
----
-119712
-196910
-469742
query I rowsort
SELECT ALL + col0 * 2 - - ( col1 ) FROM tab0 AS cor0
----
134
167
269
query I rowsort
SELECT DISTINCT + + col2 + - col2 * 17 FROM tab0 cor0
----
-1312
-16
-528
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1, tab0, tab2 AS cor0
----
26
27
38
query I rowsort
SELECT col1 * 23 * 21 FROM tab1
----
12558
4830
6279
query I rowsort
SELECT DISTINCT - tab1.col1 FROM tab1, tab0, tab2 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - 14 AS col2 FROM tab1, tab2, tab2 cor0, tab2 AS cor1
----
81 values hashing to a58fbac92f43bc63036f08d7bd355007
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5400
SELECT CAST( col1 * col2 AS SIGNED ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-5400
SELECT CAST ( col1 * col2 AS INTEGER ) FROM tab2
----
1534
646
837
query I rowsort
SELECT - 58 AS col0 FROM tab0
----
-58
-58
-58
query I rowsort
SELECT 92 AS col0 FROM tab0, tab2, tab0 cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT ALL - tab2.col2 * - col0 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col2 * - cor0.col0 + - col0 AS col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL 54 + + col1 AS col0 FROM tab0 AS cor0
----
140
145
151
query I rowsort
SELECT - - 52 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT 8 * col2 FROM tab2 cor0
----
208
216
304
query I rowsort
SELECT col1 + col0 * 2 AS col1 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-5409
SELECT DISTINCT + + col0 + cor0.col0 DIV cor0.col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5409
SELECT DISTINCT + + col0 + cor0.col0 / cor0.col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2, tab0 AS cor0, tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - col0 * 81 + col2 AS col2 FROM tab0 AS cor0
----
-1911
-2834
-7127
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5413
SELECT + - col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5413
SELECT + - col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 - 35 FROM tab2 cor0
----
-61
-62
-73
query I rowsort
SELECT + - col0 * 95 - - ( col0 * - col0 ) AS col2 FROM tab0 AS cor0
----
-16376
-2856
-4550
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5416
SELECT cor0.col1 * + CAST( NULL AS SIGNED ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5416
SELECT cor0.col1 * + CAST ( NULL AS INTEGER ) col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col1 * - 65 FROM tab2 cor0
----
-1105
-2015
-3835
onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT - + col1 + + col2 DIV cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-5418
SELECT - + col1 + + col2 / cor0.col1 FROM tab2 AS cor0
----
-15
-31
-59
query I rowsort
SELECT + col0 * col1 + cor0.col2 * - col0 AS col2 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT DISTINCT - + 91 * - col0 FROM tab2 AS cor0
----
637
7098
7189
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5421
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5422
SELECT ALL - CAST( NULL AS SIGNED ) * + col0 - + col2 / 1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL - CAST ( NULL AS INTEGER ) * + col0 - + col2 / 1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 32 + 55 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT col2 + ( col0 ) AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col0 + col0 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT 30 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5427
SELECT + cor0.col1 * + col2 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5427
SELECT + cor0.col1 * + col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( 82 * col2 ) AS col2 FROM tab0
----
2706
6724
82
query I rowsort
SELECT ( + ( tab1.col1 ) ) FROM tab1
----
10
13
26
query I rowsort
SELECT ALL + + col2 * + ( col1 ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + col0 * - 70 FROM tab2 AS cor0
----
-490
-5460
-5530
query I rowsort
SELECT DISTINCT + - 60 * - col2 AS col1 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT DISTINCT - 36 + + col0 AS col0 FROM tab1 AS cor0
----
-33
28
44
query I rowsort
SELECT - + 87 * col1 AS col2 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT DISTINCT tab0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ALL col0 * ( col2 ) + 75 FROM tab2 AS cor0
----
2103
264
3077
query I rowsort
SELECT DISTINCT + - col2 + - 48 AS col2 FROM tab1 AS cor0
----
-102
-105
-144
query I rowsort
SELECT + col2 * + ( 23 ) * + col1 + - col2 FROM tab0
----
171544
2230
65241
query I rowsort
SELECT cor0.col2 + 51 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 404e225e0d66c3e9fae560c3a0458d7f
query I rowsort
SELECT + col1 + + col2 * col2 * col2 FROM tab1 AS cor0
----
157490
185203
884749
query I rowsort
SELECT ALL cor0.col1 * + cor0.col0 FROM tab1, tab0 cor0
----
9 values hashing to f2938bee011b8d49dd931b1f9235e7f5
query I rowsort
SELECT ALL + col0 * col1 * - ( - col0 ) AS col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT + col2 + cor0.col0 * 54 AS col2 FROM tab2 cor0
----
405
4238
4304
query I rowsort
SELECT 25 + - col2 * 16 FROM tab2 AS cor0
----
-391
-407
-583
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 + ( col1 ) AS col0 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + - col1 col0 FROM tab2
----
-36
-8
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT 78 + + col2 FROM tab1 AS cor0
----
132
135
174
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5450
SELECT DISTINCT - col0 + - col1 * + CAST( - col2 AS SIGNED ) + - col1 AS col0 FROM tab0
----
-35
2728
7282
skipif mysql # not compatible
query I rowsort label-5450
SELECT DISTINCT - col0 + - col1 * + CAST ( - col2 AS INTEGER ) + - col1 AS col0 FROM tab0
----
-35
2728
7282
query I rowsort
SELECT cor0.col0 * col0 + col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT + col0 - 61 AS col0 FROM tab1
----
-58
19
3
query I rowsort
SELECT col1 + col1 * - col0 * - col2 FROM tab0
----
3492
664209
68198
query I rowsort
SELECT col0 * col1 + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT - tab0.col0 * + ( - 81 ) * + col2 FROM tab0
----
2835
591138
64152
query I rowsort
SELECT col0 + - 14 FROM tab1
----
-11
50
66
query I rowsort
SELECT ALL + + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 46 FROM tab0, tab0 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5459
SELECT + col2 * + CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5459
SELECT + col2 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5460
SELECT ALL + + col1 * col0 + - col1 DIV + col1 AS col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL + + col1 * col0 + - col1 / + col1 AS col1 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT ALL - - col2 * 98 FROM tab1 AS cor0
----
5292
5586
9408
query I rowsort
SELECT ALL col2 + - ( + col0 ) * col0 * col2 AS col1 FROM tab2 AS cor0
----
-1296
-158158
-237120
query I rowsort
SELECT DISTINCT + col2 + - 21 AS col1 FROM tab0 AS cor0
----
-20
12
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + 5 * col0 col0 FROM tab1 AS cor0
----
20480
32000
45
query I rowsort
SELECT col0 + - 42 FROM tab2 AS cor0
----
-35
36
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5466
SELECT DISTINCT + cor0.col2 * CAST( NULL AS SIGNED ) + col2 + - col1 * + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT + cor0.col2 * CAST ( NULL AS INTEGER ) + col2 + - col1 * + col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col0 * 66 + col0 * + col0 + col1 FROM tab1 AS cor0
----
-118
-163
1133
query I rowsort
SELECT ALL col1 + - col2 * 67 - + col1 * - ( + cor0.col2 * + cor0.col2 ) FROM tab0 AS cor0
----
127
606481
91529
query I rowsort
SELECT ALL - cor0.col1 + + col0 * col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
1364
213
4569
query I rowsort
SELECT ALL ( - 37 ) FROM tab2 AS cor0
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + col2 * + col0 col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + 32 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL col1 * + 36 + cor0.col0 * col1 * + 13 FROM tab0 cor0
----
108563
29928
47627
query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 + - 30 AS col1 FROM tab2
----
-23
48
49
query I rowsort
SELECT ALL + col0 + - 47 * + col1 FROM tab1 AS cor0
----
-1219
-406
-531
query I rowsort
SELECT - + col1 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col1 * - cor0.col1 + col0 AS col0 FROM tab1 cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + col1 * col1 - 91 FROM tab0 AS cor0
----
7305
8190
9318
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( col0 ) - + 0 * cor0.col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ( col0 ) - ( + col2 * - col2 + + 56 ) FROM tab2 AS cor0
----
1467
680
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-5484
SELECT DISTINCT + col0 DIV col1 - - col0 * col2 FROM tab1 AS cor0
----
162
3654
7686
skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT + col0 / col1 - - col0 * col2 FROM tab1 AS cor0
----
162
3654
7686
query I rowsort
SELECT DISTINCT - 9 - col0 FROM tab0
----
-33
-44
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5486
SELECT ALL col2 + - col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL col2 + - col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - 83 + col2 * + cor0.col1 FROM tab1 AS cor0
----
-260
-754
169
query I rowsort
SELECT DISTINCT cor0.col1 + + 59 AS col2 FROM tab0 cor0
----
145
150
156
onlyif mysql # use DIV operator for integer division
query I rowsort label-5489
SELECT + + col2 + col0 DIV - cor0.col0 AS col1 FROM tab2 cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-5489
SELECT + + col2 + col0 / - cor0.col0 AS col1 FROM tab2 cor0
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + ( + col0 ) col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - cor0.col0 - 34 AS col1 FROM tab1 AS cor0
----
-114
-37
-98
query I rowsort
SELECT ALL cor0.col1 - + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + cor0.col2 + + 85 * - col0 FROM tab1 AS cor0
----
-1792
-93
880
query I rowsort
SELECT DISTINCT col2 * 28 * + col2 AS col1 FROM tab2 AS cor0
----
18928
20412
40432
query I rowsort
SELECT DISTINCT + col0 + - col0 * ( - 73 ) AS col2 FROM tab1
----
222
4736
5920
query I rowsort
SELECT ALL col2 + + col2 * 49 AS col0 FROM tab2
----
1300
1350
1900
query I rowsort
SELECT + 79 + - col0 FROM tab0
----
-10
44
55
query I rowsort
SELECT - tab1.col2 * col2 * col2 - 91 AS col0 FROM tab1
----
-157555
-185284
-884827
query I rowsort
SELECT ALL + col0 + col2 + - col1 FROM tab0
----
-29
-61
80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab2 cor1, tab2, tab2 cor2
----
3645 values hashing to 7e572cf6967c395d92dce41dcb35c4db
query I rowsort
SELECT ALL ( - 23 ) * + col2 * col0 AS col1 FROM tab0 AS cor0
----
-167854
-18216
-805
query I rowsort
SELECT DISTINCT + + 27 * col0 AS col0 FROM tab2 AS cor0
----
189
2106
2133
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-3
-64
-80
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab2 cor1, tab0 cor2
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT ( - col1 ) * - 35 AS col0 FROM tab1 AS cor0
----
350
455
910
query I rowsort
SELECT + - col1 * - col1 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-5508
SELECT col1 DIV - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-5508
SELECT col1 / - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-57
-62
-96
query I rowsort
SELECT + col2 + col1 * + cor0.col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL ( 54 ) AS col1 FROM tab2
----
54
54
54
query I rowsort
SELECT DISTINCT + + 11 AS col0 FROM tab1, tab0, tab0 AS cor0
----
11
query I rowsort
SELECT ALL - col2 * + 8 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT - - col1 * cor0.col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col2 + 91 FROM tab1 AS cor0
----
145
148
187
query I rowsort
SELECT DISTINCT + col1 + col1 * + 30 AS col1 FROM tab2 AS cor0
----
1829
527
961
query I rowsort
SELECT + + cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
47
query I rowsort
SELECT DISTINCT - col1 * - col2 + col0 + col1 AS col2 FROM tab2
----
1671
742
875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL 5 + col0 FROM tab2
----
12
83
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5521
SELECT - col2 * col2 + col1 DIV col1 AS col2 FROM tab0
----
-1088
-6723
0
skipif mysql # not compatible
query I rowsort label-5521
SELECT - col2 * col2 + col1 / col1 AS col2 FROM tab0
----
-1088
-6723
0
query I rowsort
SELECT ALL + col0 * 86 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT ALL col1 + 63 * col2 * col1 FROM tab0 cor0
----
178880
470197
6208
query I rowsort
SELECT DISTINCT + col2 + - 91 * + col0 AS col2 FROM tab0 AS cor0
----
-2151
-3184
-8017
query I rowsort
SELECT - - cor0.col2 * + col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL col0 * 52 + col1 AS col1 FROM tab0 AS cor0
----
1334
1917
4719
query I rowsort
SELECT + cor0.col2 + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - col1 - 18 AS col2 FROM tab0 AS cor0
----
-104
-109
-115
query I rowsort
SELECT ALL + - col2 * 32 * - col1 FROM tab2 AS cor0
----
20672
26784
49088
query I rowsort
SELECT ALL + col1 * ( + 43 ) AS col2 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT - col1 + tab2.col0 * - col1 AS col2 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT tab0.col2 * 97 FROM tab0
----
3201
7954
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5533
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ( - 92 ) * col2 AS col0 FROM tab1 AS cor0
----
-4968
-5244
-8832
query I rowsort
SELECT ( + col0 ) * cor0.col0 + + col1 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL col2 * 88 FROM tab1
----
4752
5016
8448
query I rowsort
SELECT - col2 + - 35 FROM tab0 AS cor0
----
-117
-36
-68
query I rowsort
SELECT + col0 + + col2 * + col0 * + ( - col1 + cor0.col1 * - 58 ) FROM tab2 AS cor0
----
-3010927
-345674
-7059390
query I rowsort
SELECT + - col0 * + col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + ( + 52 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
52
query I rowsort
SELECT + - col2 * col2 - col0 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL + 88 * - col1 + col1 AS col2 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT + col2 * - col2 - - ( + 61 ) FROM tab0 cor0
----
-1028
-6663
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-5544
SELECT - col1 DIV col0 + + 92 AS col2 FROM tab0 AS cor0
----
89
90
91
skipif mysql # not compatible
query I rowsort label-5544
SELECT - col1 / col0 + + 92 AS col2 FROM tab0 AS cor0
----
89
90
91
query I rowsort
SELECT ALL + 72 * - col1 AS col1 FROM tab1 AS cor0
----
-1872
-720
-936
query I rowsort
SELECT ALL + - col1 + cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + 69 + col0 FROM tab2 AS cor0
----
147
148
76
query I rowsort
SELECT DISTINCT + + 76 AS col1 FROM tab0 AS cor0
----
76
query I rowsort
SELECT - - 17 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT - + col0 * - cor0.col2 + + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - col0 * cor0.col1 + 59 AS col0 FROM tab2 AS cor0
----
-1284
-158
-4543
query I rowsort
SELECT ALL col1 + ( col0 ) AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + 77 * cor1.col1 + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 946c465a09652332bb09735f2b24b63b
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT - - col1 + + 13 FROM tab0 AS cor0
----
104
110
99
query I rowsort
SELECT + + 10 * - col0 AS col0 FROM tab0 AS cor0
----
-240
-350
-890
query I rowsort
SELECT ALL - 64 * cor0.col0 FROM tab0 cor0
----
-1536
-2240
-5696
query I rowsort
SELECT 55 + col2 FROM tab0 AS cor0
----
137
56
88
query I rowsort
SELECT ALL - ( - 80 ) FROM tab2
----
80
80
80
query I rowsort
SELECT ALL col0 * + ( col2 ) AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - 32 FROM tab0, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + ( tab0.col1 ) col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - 22 + - col1 FROM tab1 AS cor0
----
-32
-35
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 27 col0 FROM tab0 AS cor0
----
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT - col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5565
SELECT - col1 / - col0 AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT 48 + + col1 FROM tab1 AS cor0
----
58
61
74
query I rowsort
SELECT ALL + col2 * col0 + 63 FROM tab0 AS cor0
----
7361
855
98
query I rowsort
SELECT DISTINCT - ( 0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0
query I rowsort
SELECT ALL + - cor0.col2 + ( - cor0.col2 * + col2 + + ( col0 ) ) FROM tab1 AS cor0
----
-2967
-3242
-9232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * + col0 * col1 col1 FROM tab1 AS cor0
----
231
40896
83120
query I rowsort
SELECT DISTINCT - col1 + col0 + + col0 * 35 * + tab0.col1 FROM tab0
----
118763
283463
72178
onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT DISTINCT - ( + col2 ) DIV - cor0.col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - ( + col2 ) / - cor0.col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + ( + col1 ) + col2 - - cor0.col2 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT col2 - - 51 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5574
SELECT col2 - - 51 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - 64 + + col2 FROM tab2 AS cor0
----
-26
-37
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5576
SELECT CAST( col1 AS SIGNED ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-5576
SELECT CAST ( col1 AS INTEGER ) + + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + 86 + 11 FROM tab0 cor0
----
97
97
97
query I rowsort
SELECT DISTINCT col1 + 73 AS col0 FROM tab2
----
104
132
90
query I rowsort
SELECT DISTINCT + col2 * + 11 - + col1 * ( col0 ) AS col2 FROM tab1
----
-13
16
516
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5580
SELECT CAST( NULL AS SIGNED ) + - 66 * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5580
SELECT CAST ( NULL AS INTEGER ) + - 66 * col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + 37 AS col0 FROM tab1 AS cor0
----
-27
-43
34
query I rowsort
SELECT - 2 * + col0 AS col0 FROM tab2
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5583
SELECT cor0.col2 * + col0 + + col1 DIV 67 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-5583
SELECT cor0.col2 * + col0 + + col1 / 67 FROM tab0 AS cor0
----
36
7299
793
query I rowsort
SELECT + 18 + col1 * col2 AS col2 FROM tab2 AS cor0
----
1552
664
855
query I rowsort
SELECT DISTINCT - col0 + + col2 * + col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT + + cor0.col2 + col0 AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5587
SELECT cor0.col2 + - 61 * + 85 * tab2.col0 + - CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5587
SELECT cor0.col2 + - 61 * + 85 * tab2.col0 + - CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col0 * - cor0.col1 - + col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + + ( - cor0.col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + - col0 * 43 AS col0 FROM tab1 AS cor0
----
-129
-2752
-3440
onlyif mysql # use DIV operator for integer division
query I rowsort label-5591
SELECT DISTINCT + col0 * 86 + + cor0.col0 * + cor0.col2 + - col0 DIV 56 AS col2 FROM tab1 AS cor0
----
14559
420
9151
skipif mysql # not compatible
query I rowsort label-5591
SELECT DISTINCT + col0 * 86 + + cor0.col0 * + cor0.col2 + - col0 / 56 AS col2 FROM tab1 AS cor0
----
14559
420
9151
query I rowsort
SELECT ALL - + col2 * 3 AS col1 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT + col2 - + cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5595
SELECT DISTINCT cor0.col2 + - col0 DIV col0 - + col1 * col2 AS col2 FROM tab1 AS cor0
----
-1153
-1351
-514
skipif mysql # not compatible
query I rowsort label-5595
SELECT DISTINCT cor0.col2 + - col0 / col0 - + col1 * col2 AS col2 FROM tab1 AS cor0
----
-1153
-1351
-514
query I rowsort
SELECT DISTINCT col2 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - col0 * col0 col0 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT + + col0 + - 31 FROM tab0 AS cor0
----
-7
4
58
query I rowsort
SELECT ALL - - col0 * + 54 * - col2 + col0 AS col0 FROM tab1 AS cor0
----
-196928
-414640
-8745
query I rowsort
SELECT 91 + cor0.col2 AS col2 FROM tab2 cor0
----
117
118
129
query I rowsort
SELECT ALL + 97 * - col1 FROM tab2 AS cor0
----
-1649
-3007
-5723
query I rowsort
SELECT DISTINCT + cor0.col1 * - col0 - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT + col2 * col2 * - 19 - - col0 AS col0 FROM tab1
----
-175024
-55401
-61667
query I rowsort
SELECT tab2.col0 * - col1 + col2 * - col2 FROM tab2
----
-2787
-5278
-946
query I rowsort
SELECT + col1 + 25 FROM tab1
----
35
38
51
query I rowsort
SELECT 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 - col1 FROM tab1 cor0
----
-188
-3658
-7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-5608
SELECT - + col0 + col0 DIV + col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-5608
SELECT - + col0 + col0 / + col0 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT ALL 10 + cor0.col1 * 16 FROM tab2 AS cor0
----
282
506
954
query I rowsort
SELECT DISTINCT + 5 * cor0.col2 + col2 AS col1 FROM tab2 AS cor0
----
156
162
228
query I rowsort
SELECT - 80 * col1 + + col0 + + col0 FROM tab1 AS cor0
----
-2074
-672
-880
query I rowsort
SELECT ALL 19 + col0 AS col1 FROM tab0 cor0
----
108
43
54
query I rowsort
SELECT DISTINCT - - 76 + col1 FROM tab0 AS cor0
----
162
167
173
query I rowsort
SELECT + 38 + col2 AS col0 FROM tab2 AS cor0
----
64
65
76
query I rowsort
SELECT ALL cor0.col2 * + col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5616
SELECT ALL col1 * CAST( NULL AS SIGNED ) / ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5616
SELECT ALL col1 * CAST ( NULL AS INTEGER ) / ( - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 6 FROM tab0, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL - col0 * 99 + col1 * col2 FROM tab1 AS cor0
----
-5766
-6672
1107
query I rowsort
SELECT DISTINCT - ( col2 ) + col1 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-73
20
95
query I rowsort
SELECT ALL - 69 * - col2 * col2 + + col1 FROM tab2 cor0
----
46703
50332
99653
query I rowsort
SELECT ALL - + ( - 17 ) - - cor0.col1 FROM tab1 AS cor0
----
27
30
43
query I rowsort
SELECT - ( - col0 ) + col1 + 8 AS col2 FROM tab0
----
118
140
188
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-5624
SELECT + ( + 89 ) DIV + col1 - col0 FROM tab2 AS cor0
----
-5
-74
-77
skipif mysql # not compatible
query I rowsort label-5624
SELECT + ( + 89 ) / + col1 - col0 FROM tab2 AS cor0
----
-5
-74
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5625
SELECT - + CAST( NULL AS SIGNED ) * - col0 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5625
SELECT - + CAST ( NULL AS INTEGER ) * - col0 + cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5626
SELECT + cor0.col0 * + col2 + + col2 * - ( 26 * col1 + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5626
SELECT + cor0.col0 * + col2 + + col2 * - ( 26 * col1 + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + - col1 + col1 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT col0 - ( col2 + + 96 ) AS col1 FROM tab2 AS cor0
----
-116
-44
-55
query I rowsort
SELECT DISTINCT col2 + - 84 AS col1 FROM tab1 AS cor0
----
-27
-30
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-5630
SELECT col0 + 96 DIV - col1 FROM tab2 AS cor0
----
4
74
77
skipif mysql # not compatible
query I rowsort label-5630
SELECT col0 + 96 / - col1 FROM tab2 AS cor0
----
4
74
77
query I rowsort
SELECT ALL - col2 * 26 AS col2 FROM tab2 AS cor0
----
-676
-702
-988
query I rowsort
SELECT - 46 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-1018
-1513
-4003
query I rowsort
SELECT 19 + + col1 FROM tab2
----
36
50
78
query I rowsort
SELECT ( - col1 ) + - col1 + ( - col1 * + tab1.col1 ) FROM tab1
----
-120
-195
-728
query I rowsort
SELECT col2 * + 80 FROM tab0
----
2640
6560
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5636
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + tab0.col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - CAST ( NULL AS REAL ) + + tab0.col2 FROM tab0
----
NULL
query I rowsort
SELECT + tab2.col2 + 15 FROM tab2
----
41
42
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5638
SELECT ALL CAST( - col1 AS SIGNED ) + col0 col1 FROM tab2
----
-24
19
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL CAST ( - col1 AS INTEGER ) + col0 col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL col1 * + 95 + col2 AS col0 FROM tab0
----
8203
8727
9216
query I rowsort
SELECT ALL tab0.col1 + + tab0.col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT + 85 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT - - 95 + + col2 FROM tab1 cor0
----
149
152
191
query I rowsort
SELECT - ( - col1 ) * - col0 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-5644
SELECT - ( col2 ) + 29 DIV + 76 col0 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5644
SELECT - ( col2 ) + 29 / + 76 col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT 64 + col0 AS col2 FROM tab1 AS cor0
----
128
144
67
query I rowsort
SELECT ALL + + 77 * + col0 AS col2 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT DISTINCT + - 64 FROM tab2 AS cor0
----
-64
query I rowsort
SELECT DISTINCT + 99 * col1 FROM tab0
----
8514
9009
9603
query I rowsort
SELECT ALL - cor0.col2 FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT - col1 * 84 + col0 * - col1 FROM tab2 AS cor0
----
-2771
-2821
-9558
query I rowsort
SELECT + col0 * + ( - col0 ) + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
-3239
-4056
140
query I rowsort
SELECT DISTINCT - - col0 + - 46 AS col2 FROM tab0 AS cor0
----
-11
-22
43
query I rowsort
SELECT DISTINCT + col2 * 13 FROM tab1 AS cor0
----
1248
702
741
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5654
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5654
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab2 cor0
----
NULL
query I rowsort
SELECT ALL + col1 * 44 + col2 FROM tab2 AS cor0
----
1391
2622
786
query I rowsort
SELECT ALL col2 * col1 + - col1 * - col1 FROM tab1
----
1417
2080
670
query I rowsort
SELECT DISTINCT - 4 * - col1 * + tab0.col0 AS col1 FROM tab0
----
13580
32396
8256
query I rowsort
SELECT ALL col2 * ( 7 ) FROM tab0
----
231
574
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5659
SELECT + CAST( NULL AS SIGNED ) + 42 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5659
SELECT + CAST ( NULL AS INTEGER ) + 42 FROM tab0, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 89 - - 40 * cor0.col1 FROM tab1 AS cor0
----
311
431
951
query I rowsort
SELECT - - 67 + col2 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT - ( - 66 ) AS col0 FROM tab1 cor0
----
66
66
66
query I rowsort
SELECT 90 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT + cor0.col2 * 93 FROM tab1, tab0, tab1 AS cor0
----
5022
5301
8928
query I rowsort
SELECT ALL tab2.col1 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-5666
SELECT ALL + col0 DIV + ( col0 ) FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5666
SELECT ALL + col0 / + ( col0 ) FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5667
SELECT ALL - tab1.col2 DIV tab1.col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-5667
SELECT ALL - tab1.col2 / tab1.col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT - tab1.col2 + - 22 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to f58c91fc91ae2a1669db2604fdcc5aa5
query I rowsort
SELECT - 8 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
688
728
776
query I rowsort
SELECT - + cor0.col2 + 9 AS col2 FROM tab2 AS cor0
----
-17
-18
-29
query I rowsort
SELECT + + ( col2 ) - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col2 - col2 AS col0 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT - 62 - - 37 AS col2 FROM tab0 cor0
----
-25
-25
-25
query I rowsort
SELECT + + 97 - cor0.col2 * - col0 AS col1 FROM tab1 AS cor0
----
259
3745
7777
query I rowsort
SELECT + ( - 14 ) + + col1 * - 33 FROM tab0 AS cor0
----
-2852
-3017
-3215
query I rowsort
SELECT ALL - col2 + - 80 AS col0 FROM tab1
----
-134
-137
-176
onlyif mysql # use DIV operator for integer division
query I rowsort label-5677
SELECT ALL + col0 DIV 86 + + col0 FROM tab0
----
24
35
90
skipif mysql # not compatible
query I rowsort label-5677
SELECT ALL + col0 / 86 + + col0 FROM tab0
----
24
35
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5678
SELECT CAST( NULL AS SIGNED ) * 16 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5678
SELECT CAST ( NULL AS INTEGER ) * 16 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 57 FROM tab1, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL col1 + - col2 - - 34 AS col2 FROM tab0
----
130
43
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5681
SELECT - col0 * CAST( 40 AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
-1046
-1497
-3651
skipif mysql # not compatible
query I rowsort label-5681
SELECT - col0 * CAST ( 40 AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
-1046
-1497
-3651
query I rowsort
SELECT DISTINCT + col1 * col2 + - col1 + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5683
SELECT + - col2 * CAST( 35 AS SIGNED ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1069
-2779
62
skipif mysql # not compatible
query I rowsort label-5683
SELECT + - col2 * CAST ( 35 AS INTEGER ) + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1069
-2779
62
query I rowsort
SELECT DISTINCT + col0 + - 18 FROM tab2 cor0
----
-11
60
61
query I rowsort
SELECT + col0 * - col0 + + col1 * col1 * + 5 AS col0 FROM tab2 AS cor0
----
-4796
11321
4756
query I rowsort
SELECT + - 30 * + cor0.col1 + col1 FROM tab0 cor0
----
-2494
-2639
-2813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5687
SELECT DISTINCT + CAST( 86 AS SIGNED ) + col2 * ( 18 ) * col1 AS col0 FROM tab0 AS cor0
----
134402
1832
51170
skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT + CAST ( 86 AS INTEGER ) + col2 * ( 18 ) * col1 AS col0 FROM tab0 AS cor0
----
134402
1832
51170
query I rowsort
SELECT ALL + col0 * + 71 FROM tab0 AS cor0
----
1704
2485
6319
query I rowsort
SELECT DISTINCT + ( - 12 ) AS col1 FROM tab2 AS cor0
----
-12
query I rowsort
SELECT + 57 * - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-154
-1967
-4765
query I rowsort
SELECT ALL 23 * + col0 FROM tab2 cor0
----
161
1794
1817
query I rowsort
SELECT - 98 + + col0 FROM tab0 AS cor0
----
-63
-74
-9
query I rowsort
SELECT DISTINCT + col1 + col1 * + col1 * col1 FROM tab0 AS cor0
----
636142
753662
912770
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5694
SELECT + CAST( NULL AS SIGNED ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5694
SELECT + CAST ( NULL AS INTEGER ) / cor0.col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 97 * - col0 + - col2 FROM tab0 cor0
----
-2361
-3396
-8715
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col0 * - 88 FROM tab0
----
-2112
-3080
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + 8 + 42 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT ALL - ( - col0 ) * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - + ( + cor0.col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + ( 17 ) + col2 * col1 AS col2 FROM tab1 AS cor0
----
1265
1421
587
query I rowsort
SELECT ALL col2 * - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT cor0.col2 * 49 * cor0.col0 + - 96 FROM tab0 AS cor0
----
1619
357506
38712
query I rowsort
SELECT + ( + 58 ) AS col2 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT + - col2 + col0 * 95 AS col1 FROM tab0 AS cor0
----
2247
3324
8373
query I rowsort
SELECT - col1 * + col2 * 76 AS col2 FROM tab0 cor0
----
-215688
-567112
-7372
query I rowsort
SELECT - tab2.col2 + 59 FROM tab2, tab0 AS cor0
----
9 values hashing to f790860fa40497d8872f7a6676dc6d65
query I rowsort
SELECT ALL + col0 * col1 * 49 AS col1 FROM tab0 AS cor0
----
101136
166355
396851
query I rowsort
SELECT ALL ( - col1 ) + + col1 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 + ( - 97 ) FROM tab1 AS cor0
----
3551
65
7583
query I rowsort
SELECT ALL 75 + - col0 AS col1 FROM tab1 AS cor0
----
-5
11
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5713
SELECT DISTINCT - tab0.col2 * CAST( + 22 * + cor0.col0 + + tab0.col0 * 36 AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 39bcc9f51ce74302f5020350437ae63a
skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - tab0.col2 * CAST ( + 22 * + cor0.col0 + + tab0.col0 * 36 AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 39bcc9f51ce74302f5020350437ae63a
query I rowsort
SELECT - 4 * col2 AS col1 FROM tab2 AS cor0
----
-104
-108
-152
query I rowsort
SELECT DISTINCT + 54 + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-235
-3427
-907
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col2 + - col0 * - 59 FROM tab2 AS cor0
----
386
4576
4623
query I rowsort
SELECT - - col1 - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-5719
SELECT + 94 * col2 DIV - col0 FROM tab2
----
-31
-362
-45
skipif mysql # not compatible
query I rowsort label-5719
SELECT + 94 * col2 / - col0 FROM tab2
----
-31
-362
-45
query I rowsort
SELECT DISTINCT + 23 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
23
query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-5722
SELECT ALL + col1 DIV + 93 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-5722
SELECT ALL + col1 / + 93 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT cor0.col2 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - 61 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1
query I rowsort
SELECT DISTINCT - col1 * col2 + - ( col0 ) FROM tab0 cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT + col0 * + ( - col2 + - col2 ) * 98 AS col1 FROM tab1 AS cor0
----
-1505280
-31752
-715008
query I rowsort
SELECT + - cor0.col2 * - 42 AS col1 FROM tab1 cor0
----
2268
2394
4032
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5729
SELECT ALL - - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5729
SELECT ALL - - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT DISTINCT + + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5730
SELECT DISTINCT + + col0 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - - col2 - - 47 * - col0 AS col1 FROM tab1 AS cor0
----
-2951
-3664
-87
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col1 + - col0 AS col2 FROM tab2 cor0
----
1264
210
4524
query I rowsort
SELECT ALL + + col2 * - ( 53 ) FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT ALL cor0.col2 + cor0.col0 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 00ff93cbcc751be1393f9e1fd72170f8
query I rowsort
SELECT col2 * + 59 AS col0 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT 19 + col1 * col2 FROM tab0
----
116
2857
7481
query I rowsort
SELECT cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL col2 + + col0 * col1 * col2 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT DISTINCT + col0 - cor0.col2 * col0 FROM tab2 cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-5740
SELECT ALL - col2 + col2 DIV - cor0.col1 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - col2 + col2 / - cor0.col1 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT - col0 * - ( + 42 ) + + col2 FROM tab1 cor0
----
180
2745
3456
query I rowsort
SELECT ALL - - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT col1 + 27 * + 37 FROM tab2
----
1016
1030
1058
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5745
SELECT + ( + 53 ) * col1 - - CAST( + col1 AS SIGNED ) FROM tab0
----
4644
4914
5238
skipif mysql # not compatible
query I rowsort label-5745
SELECT + ( + 53 ) * col1 - - CAST ( + col1 AS INTEGER ) FROM tab0
----
4644
4914
5238
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5746
SELECT CAST( - col1 * + col2 AS SIGNED ) FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-5746
SELECT CAST ( - col1 * + col2 AS INTEGER ) FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5747
SELECT DISTINCT - - col0 + + cor0.col1 DIV 5 AS col2 FROM tab1 AS cor0
----
66
8
82
skipif mysql # not compatible
query I rowsort label-5747
SELECT DISTINCT - - col0 + + cor0.col1 / 5 AS col2 FROM tab1 AS cor0
----
66
8
82
query I rowsort
SELECT + col2 + - col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL cor0.col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5750
SELECT + col0 * + col0 DIV - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5750
SELECT + col0 * + col0 / - ( col0 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL 48 * col1 AS col2 FROM tab1
----
1248
480
624
query I rowsort
SELECT - 34 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5b88331e40da4796cc4826c442aa45f7
query I rowsort
SELECT ALL - cor0.col1 * - col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col0 * cor0.col1 + + 29 FROM tab1 AS cor0
----
1069
107
669
query I rowsort
SELECT ALL col2 * - col2 + tab1.col2 * col0 AS col0 FROM tab1
----
-1536
-2754
399
query I rowsort
SELECT cor0.col2 - cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to ae0eeb942db3f01544a81804e95e971a
query I rowsort
SELECT + col0 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT col0 * col0 + - tab2.col0 * + tab2.col1 FROM tab2
----
-168
1482
4898
query I rowsort
SELECT + col2 * + col1 * - tab1.col0 FROM tab1
----
-36480
-4212
-99840
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 * col2 / col1 > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT col1 * col1 + col1 DIV tab1.col2 FROM tab1
----
100
169
676
skipif mysql # not compatible
query I rowsort label-5761
SELECT col1 * col1 + col1 / tab1.col2 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT ( + col2 ) + col2 * 14 AS col1 FROM tab1 AS cor0
----
1440
810
855
query I rowsort
SELECT DISTINCT ( - col0 ) * ( + col2 * col1 ) FROM tab0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-5765
SELECT col1 DIV - col2 + + 96 AS col1 FROM tab0 AS cor0
----
-1
94
95
skipif mysql # not compatible
query I rowsort label-5765
SELECT col1 / - col2 + + 96 AS col1 FROM tab0 AS cor0
----
-1
94
95
query I rowsort
SELECT DISTINCT - - 91 + col2 FROM tab2 cor0
----
117
118
129
query I rowsort
SELECT DISTINCT cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
86
91
97
query I rowsort
SELECT - 59 * 46 FROM tab0, tab2 AS cor0
----
9 values hashing to f3bf00470ffefe94852545a9c90f3b31
onlyif mysql # use DIV operator for integer division
query I rowsort label-5769
SELECT col0 DIV + tab1.col2 + col0 AS col1 FROM tab1
----
3
65
80
skipif mysql # not compatible
query I rowsort label-5769
SELECT col0 / + tab1.col2 + col0 AS col1 FROM tab1
----
3
65
80
query I rowsort
SELECT ALL + col0 * col0 - - col2 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT + tab1.col2 * + col0 * - col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col1 FROM tab1 WHERE col2 + - col1 IN ( + col2 * + tab1.col1 )
----
query I rowsort
SELECT ALL + col2 + col0 * col2 + col1 AS col0 FROM tab0 cor0
----
133
7471
911
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - col2 NOT IN ( col2 )
----
query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT DISTINCT - col1 * + col0 * + col1 + col1 FROM tab0 AS cor0
----
-177418
-329218
-736918
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 + col1 col2 FROM tab0
----
1322
662
8012
query I rowsort
SELECT + col0 * + col2 * + tab2.col1 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + col1 + - tab0.col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT tab2.col0 * + col0 + - col2 * + col1 AS col2 FROM tab2
----
-788
4550
5595
query I rowsort
SELECT + col2 FROM tab2 WHERE NOT col2 >= ( + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab0.col2 * col2 col2 FROM tab0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5784
SELECT DISTINCT - col0 DIV + tab0.col0 AS col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT - col0 / + tab0.col0 AS col2 FROM tab0
----
-1
query I rowsort
SELECT ALL col1 * + tab1.col2 + - col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + tab0.col2 + col0 + tab0.col0 )
----
query I rowsort
SELECT ALL tab0.col1 + - col0 - col1 FROM tab0
----
-24
-35
-89
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( col0 * + col2 * + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT - col0 * col1 DIV col2 + col1 FROM tab1
----
-1
25
3
skipif mysql # not compatible
query I rowsort label-5789
SELECT - col0 * col1 / col2 + col1 FROM tab1
----
-1
25
3
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT col0 * tab0.col0 - col1 * - col0 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT + col2 * col2 * col0 AS col2 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT DISTINCT tab1.col1 DIV - col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT tab1.col1 / - col2 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5794
SELECT col1 DIV col1 + + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5794
SELECT col1 / col1 + + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 92 * col1 col0 FROM tab2
----
1564
2852
5428
query I rowsort
SELECT - 51 + - col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-1012
-340
-3532
onlyif mysql # use DIV operator for integer division
query I rowsort label-5797
SELECT ALL - ( + 73 + cor2.col1 ) DIV 27 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to ddca19dc2bcd4f9e59ac3588960f4e5c
skipif mysql # not compatible
query I rowsort label-5797
SELECT ALL - ( + 73 + cor2.col1 ) / 27 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to ddca19dc2bcd4f9e59ac3588960f4e5c
query I rowsort
SELECT - col1 - + ( - col1 + col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5799
SELECT DISTINCT + col2 + + col0 * CAST( - 10 + + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
5330
5489
6
skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT + col2 + + col0 * CAST ( - 10 + + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
5330
5489
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5800
SELECT ALL + 97 DIV + col0 + col1 col0 FROM tab0 AS cor0
----
90
92
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5800
SELECT ALL + 97 / + col0 + col1 col0 FROM tab0 AS cor0
----
90
92
99
query I rowsort
SELECT + col2 * col2 + col1 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT ALL ( - col1 ) * col2 + col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT + col2 DIV + col2 col2 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5803
SELECT + col2 / + col2 col2 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab2
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-5805
SELECT tab0.col0 DIV + tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5805
SELECT tab0.col0 / + tab0.col1 AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5806
SELECT + ( col0 ) DIV col0 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5806
SELECT + ( col0 ) / col0 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT + col2 * + 33 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT + col1 + - 25 * - col1 FROM tab1 AS cor0
----
260
338
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT + + cor0.col2 * CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-5809
SELECT + + cor0.col2 * CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 29 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 56a8aa9e4c5d3c934d1853afeb22653e
query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab2, tab0, tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5812
SELECT - + col0 DIV - ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5812
SELECT - + col0 / - ( - ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5813
SELECT col2 + + col2 DIV - col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-5813
SELECT col2 + + col2 / - col2 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT - 12 FROM tab0, tab0 AS cor0
----
-12
query I rowsort
SELECT DISTINCT + col2 * + col2 + + 65 FROM tab1 AS cor0
----
2981
3314
9281
query I rowsort
SELECT DISTINCT col0 + cor0.col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT - + col0 * 96 FROM tab1 AS cor0
----
-288
-6144
-7680
query I rowsort
SELECT - 94 * col0 - - col1 AS col0 FROM tab2
----
-627
-7273
-7409
query I rowsort
SELECT - col1 + + 2 * col0 * - col1 FROM tab0
----
-16289
-4214
-6887
query I rowsort
SELECT ALL - col2 + + col1 * - col2 AS col1 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT - + ( cor0.col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL col0 * + 59 * col0 AS col0 FROM tab1
----
241664
377600
531
query I rowsort
SELECT ( col2 ) * - tab0.col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT 88 * col2 + + tab2.col2 AS col1 FROM tab2
----
2314
2403
3382
query I rowsort
SELECT + 17 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT ALL - CAST( + 82 + col1 AS SIGNED ) AS col2 FROM tab0
----
-168
-173
-179
skipif mysql # not compatible
query I rowsort label-5826
SELECT ALL - CAST ( + 82 + col1 AS INTEGER ) AS col2 FROM tab0
----
-168
-173
-179
onlyif mysql # use DIV operator for integer division
query I rowsort label-5827
SELECT - + col0 DIV - col2 + col2 + col1 FROM tab0 AS cor0
----
119
133
174
skipif mysql # not compatible
query I rowsort label-5827
SELECT - + col0 / - col2 + col2 + col1 FROM tab0 AS cor0
----
119
133
174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col1 + col0 col0 FROM tab1 AS cor0
----
-20
118
147
query I rowsort
SELECT - - 90 + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
143
186
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col0 * col1 col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT + cor0.col2 + + col0 + + col1 AS col1 FROM tab0 AS cor0
----
133
143
262
onlyif mysql # use DIV operator for integer division
query I rowsort label-5832
SELECT ALL ( col0 ) * - col2 DIV col2 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL ( col0 ) * - col2 / col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT + 56 * col2 FROM tab2 AS cor0
----
1456
1512
2128
onlyif mysql # use DIV operator for integer division
query I rowsort label-5834
SELECT - 56 + - col2 + + cor0.col1 DIV + col1 FROM tab1 cor0
----
-109
-112
-151
skipif mysql # not compatible
query I rowsort label-5834
SELECT - 56 + - col2 + + cor0.col1 / + col1 FROM tab1 cor0
----
-109
-112
-151
query I rowsort
SELECT DISTINCT + - 41 AS col0 FROM tab1 AS cor0
----
-41
query I rowsort
SELECT col1 + + col2 + col0 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT - 50 + col0 AS col0 FROM tab1 AS cor0
----
-47
14
30
query I rowsort
SELECT ALL + - cor0.col0 + col2 * + col1 * + col2 FROM tab0 AS cor0
----
611795
62
93630
query I rowsort
SELECT ALL + col1 + + col2 * - col0 + - cor0.col0 FROM tab1 AS cor0
----
-139
-3702
-7747
query I rowsort
SELECT - col0 * - 6 AS col1 FROM tab1 cor0
----
18
384
480
query I rowsort
SELECT DISTINCT cor0.col0 + + 75 FROM tab2 cor0
----
153
154
82
query I rowsort
SELECT cor0.col0 + - col0 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 * - 81 AS col1 FROM tab2 AS cor0
----
567
6318
6399
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5844
SELECT CAST( NULL AS SIGNED ) * + cor0.col0 + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5844
SELECT CAST ( NULL AS INTEGER ) * + cor0.col0 + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 + - 43 * col2 FROM tab0 AS cor0
----
-1386
-3444
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-5846
SELECT ALL + col1 * ( col1 ) DIV col0 + - col2 FROM tab0 AS cor0
----
11
267
275
skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL + col1 * ( col1 ) / col0 + - col2 FROM tab0 AS cor0
----
11
267
275
query I rowsort
SELECT ALL col2 * - col2 + + col2 * + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 - - cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * col1 col0 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 + col0 * + col2 * col0 AS col1 FROM tab2 AS cor0
----
1292
158125
237141
query I rowsort
SELECT col2 * - col1 + col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT col2 * - col0 AS col2 FROM tab0 WHERE NOT NULL <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 + col0 * tab1.col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + - col1 * cor0.col1 * - col1 + - col2 FROM tab0 AS cor0
----
636023
753489
912672
query I rowsort
SELECT DISTINCT + + col1 + + cor0.col2 * + col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL - - col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL cor0.col2 * cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to 50c4b0a13fc95d13442dcf4b04857ce8
query I rowsort
SELECT - col1 + + cor0.col2 FROM tab2 cor0 WHERE NULL NOT IN ( col2 * - col0 )
----
query I rowsort
SELECT ALL - col0 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * col2 AS col0 FROM tab2 cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + - col0 + - col1 col0 FROM tab1 AS cor0
----
-106
-55
-84
query I rowsort
SELECT DISTINCT - tab2.col1 - tab2.col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT + ( - col0 * - tab0.col0 ) + col0 * tab0.col2 AS col2 FROM tab0
----
1260
1368
15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT DISTINCT - col0 + col0 DIV - col0 + - tab1.col0 FROM tab1
----
-129
-161
-7
skipif mysql # not compatible
query I rowsort label-5866
SELECT DISTINCT - col0 + col0 / - col0 + - tab1.col0 FROM tab1
----
-129
-161
-7
query I rowsort
SELECT ALL + col0 + - col1 * col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT - col1 + - col1 * col0 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT ALL - tab1.col1 + + col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * col0 + col1 * - tab2.col0 FROM tab2
----
-2574
-28
1659
query I rowsort
SELECT ALL col1 * col0 - col2 * col1 FROM tab1 cor0
----
-1326
-208
70
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col2 * - col2 AS col0 FROM tab2 cor0
----
1406
650
702
query I rowsort
SELECT col2 * + col2 + + tab1.col0 AS col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT tab2.col1 - cor0.col1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 0a02f956e9d986d821ef3ce8f468b243
query I rowsort
SELECT col2 * col0 + 64 AS col1 FROM tab2 AS cor0
----
2092
253
3066
query I rowsort
SELECT cor0.col2 * 77 + + col2 AS col2 FROM tab0 cor0
----
2574
6396
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5877
SELECT ALL - cor0.col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5877
SELECT ALL - cor0.col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col0 + - 26 AS col1 FROM tab2 AS cor0
----
-19
52
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-5879
SELECT DISTINCT + col0 + - cor0.col2 DIV col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-5879
SELECT DISTINCT + col0 + - cor0.col2 / col0 FROM tab0 AS cor0
----
23
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5880
SELECT ALL col1 + + col1 DIV tab0.col0 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-5880
SELECT ALL col1 + + col1 / tab0.col0 FROM tab0
----
89
92
99
query I rowsort
SELECT - col2 * + 58 FROM tab0 AS cor0
----
-1914
-4756
-58
query I rowsort
SELECT - col2 * 27 * - col2 - col0 AS col1 FROM tab2 AS cor0
----
18174
19676
38909
query I rowsort
SELECT col0 + 57 FROM tab2 cor0
----
135
136
64
query I rowsort
SELECT ALL - tab2.col0 + - ( + col1 + tab2.col1 ) * 11 FROM tab2
----
-1376
-453
-689
query I rowsort
SELECT 25 + col0 AS col2 FROM tab1 cor0
----
105
28
89
query I rowsort
SELECT - cor0.col2 * 47 FROM tab1, tab0 AS cor0
----
9 values hashing to 6a312ab12c0976b00b112d2e1e8934e7
query I rowsort
SELECT DISTINCT - 8 FROM tab1 cor0
----
-8
query I rowsort
SELECT ( cor0.col2 ) + 34 * - col2 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT ALL + 39 + col2 * 49 AS col2 FROM tab1 cor0
----
2685
2832
4743
query I rowsort
SELECT DISTINCT - + col0 * + cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 + + ( - 77 ) * col2 ) col2 FROM tab1
----
-4104
-4332
-7296
query I rowsort
SELECT col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 * + ( + col2 ) col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - col2 + + col2 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT + col0 DIV 77 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5895
SELECT + col0 / 77 FROM tab1
----
0
0
1
query I rowsort
SELECT - col1 + - col0 - + col0 FROM tab2
----
-175
-215
-45
query I rowsort
SELECT DISTINCT + cor0.col2 * 70 AS col0 FROM tab0 AS cor0
----
2310
5740
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 74 col2 FROM tab0
----
74
query I rowsort
SELECT DISTINCT - cor1.col2 * - 67 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
3618
3819
6432
query I rowsort
SELECT ALL + 68 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query I rowsort
SELECT - - cor0.col2 * - col2 + + cor0.col1 AS col2 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT + col1 * col1 + - col2 * col0 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT - + 68 AS col1 FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT - cor0.col2 * + col1 + col1 FROM tab0 cor0
----
-2752
-7371
0
query I rowsort
SELECT + cor0.col0 * - cor0.col2 + 50 * - col2 AS col2 FROM tab0 AS cor0
----
-11398
-2442
-85
query I rowsort
SELECT + + 29 * - col0 FROM tab0 AS cor0
----
-1015
-2581
-696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 + col0 col0 FROM tab1
----
100
23
84
query I rowsort
SELECT DISTINCT + + col0 * + col0 + col1 * col2 FROM tab2 AS cor0
----
6887
7618
886
query I rowsort
SELECT - col0 * col2 + 74 FROM tab1 AS cor0
----
-3574
-7606
-88
query I rowsort
SELECT + + ( 48 ) AS col0 FROM tab2 AS cor0
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5911
SELECT DISTINCT CAST( NULL AS SIGNED ) / cor0.col2 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT CAST ( NULL AS INTEGER ) / cor0.col2 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
NULL
query I rowsort
SELECT DISTINCT + - 41 * 19 + cor0.col1 + col1 AS col0 FROM tab2 AS cor0
----
-661
-717
-745
query I rowsort
SELECT - col2 * + 46 AS col2 FROM tab1 AS cor0
----
-2484
-2622
-4416
query I rowsort
SELECT - 46 * + cor1.col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to c939bd2f7517f8ebe781ca64a49e6666
query I rowsort
SELECT DISTINCT 15 FROM tab2 cor0
----
15
query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab2 cor0
----
95
query I rowsort
SELECT ALL + - col0 + 81 + + col2 AS col1 FROM tab2 cor0
----
101
29
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5918
SELECT DISTINCT - + CAST( - 57 AS SIGNED ) FROM tab2 AS cor0
----
57
skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT - + CAST ( - 57 AS INTEGER ) FROM tab2 AS cor0
----
57
query I rowsort
SELECT - + ( 8 ) + col1 * + ( + col0 ) AS col1 FROM tab1 AS cor0
----
1032
632
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 * - col0 col0 FROM tab0 cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5921
SELECT col2 DIV 99 - tab0.col2 AS col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-5921
SELECT col2 / 99 - tab0.col2 AS col1 FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT col1 * 80 + col0 AS col0 FROM tab2
----
1439
2487
4798
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5924
SELECT col0 * + col0 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5924
SELECT col0 * + col0 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + 64 AS col2 FROM tab1 AS cor0
----
3456
3648
6144
onlyif mysql # use DIV operator for integer division
query I rowsort label-5926
SELECT DISTINCT - + cor0.col0 + + col0 DIV cor0.col1 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT - + cor0.col0 + + col0 / cor0.col1 FROM tab1 AS cor0
----
-3
-58
-74
query I rowsort
SELECT DISTINCT + + cor0.col1 * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col0 * 76 + 3 AS col2 FROM tab1 AS cor0
----
-225
-4861
-6077
query I rowsort
SELECT DISTINCT cor0.col2 * + 63 AS col0 FROM tab1 AS cor0
----
3402
3591
6048
query I rowsort
SELECT + + col2 * - ( + col0 * col1 ) AS col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5931
SELECT DISTINCT - col2 * + CAST( 47 AS SIGNED ) FROM tab0
----
-1551
-3854
-47
skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - col2 * + CAST ( 47 AS INTEGER ) FROM tab0
----
-1551
-3854
-47
query I rowsort
SELECT ALL col2 + + 61 * 22 FROM tab1
----
1396
1399
1438
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0, tab0 AS cor2, tab1
----
13122 values hashing to 84ba58b37d5a1b52e9b58798528c9751
query I rowsort
SELECT DISTINCT + col0 * - col0 * - cor0.col1 + col1 FROM tab1 AS cor0
----
260
40970
83213
query I rowsort
SELECT DISTINCT - - col2 * 30 + - 98 AS col0 FROM tab0 cor0
----
-68
2362
892
query I rowsort
SELECT ALL col1 * + ( - col2 ) AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + + col0 * + col2 + 1 * col1 + cor0.col2 * + col0 FROM tab1 AS cor0
----
15373
350
7306
query I rowsort
SELECT ALL - cor0.col1 - col2 * + col2 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL cor0.col2 * - col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-5940
SELECT + - col0 DIV + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5940
SELECT + - col0 / + col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col2 + ( 76 ) FROM tab1
----
130
133
172
query I rowsort
SELECT + tab1.col0 * ( tab1.col1 ) AS col1 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5943
SELECT tab1.col2 + CAST( col0 AS SIGNED ) FROM tab1
----
121
176
57
skipif mysql # not compatible
query I rowsort label-5943
SELECT tab1.col2 + CAST ( col0 AS INTEGER ) FROM tab1
----
121
176
57
query I rowsort
SELECT ALL cor0.col0 * - col2 + - col0 AS col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab1 AS cor1, tab0, tab0 cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94
query I rowsort
SELECT ALL + col0 + ( col2 + col0 ) FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT ALL col1 * - col2 + + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-10234
-15743
-9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col2 + 34 * col2 col1 FROM tab0
----
1155
2870
35
query I rowsort
SELECT DISTINCT + 98 + - 77 AS col1 FROM tab2 AS cor0
----
21
query I rowsort
SELECT - - ( 92 ) * - col2 * + ( - col2 * col1 ) FROM tab1 AS cor0
----
11022336
2989080
6975072
query I rowsort
SELECT 91 + cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
1316
667
8012
query I rowsort
SELECT ALL + col2 + col0 * + col1 * - col0 FROM tab1 AS cor0
----
-180
-40903
-83104
query I rowsort
SELECT ( + col0 ) * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5955
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 86 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5955
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 86 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5956
SELECT + + cor0.col2 DIV - cor0.col2 col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5956
SELECT + + cor0.col2 / - cor0.col2 col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 56 col2 FROM tab0 AS cor0
----
1344
1960
4984
onlyif mysql # use DIV operator for integer division
query I rowsort label-5958
SELECT DISTINCT - - col2 DIV cor0.col0 FROM tab2 AS cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT - - col2 / cor0.col0 FROM tab2 AS cor0
----
0
3
query I rowsort
SELECT + col0 * 97 AS col1 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT DISTINCT - 94 * 38 FROM tab1 AS cor0
----
-3572
query I rowsort
SELECT + - col2 + col0 * + col2 * - 2 FROM tab1 AS cor0
----
-15456
-378
-7353
query I rowsort
SELECT DISTINCT + + 26 FROM tab1 cor0
----
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5963
SELECT + CAST( col0 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-5963
SELECT + CAST ( col0 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col2 * - col0 + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + - cor0.col1 + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col2 + - col0 * 56 FROM tab1 AS cor0
----
-114
-3527
-4384
query I rowsort
SELECT - col2 * col2 - + col2 * col1 FROM tab0 AS cor0
----
-14186
-3927
-98
query I rowsort
SELECT + ( col2 ) + 75 FROM tab0
----
108
157
76
query I rowsort
SELECT 53 + + col1 AS col1 FROM tab1
----
63
66
79
query I rowsort
SELECT ALL - - cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col2 + - col1 + - 57 AS col0 FROM tab2 cor0
----
-36
-61
-90
query I rowsort
SELECT 48 + + col0 * col0 FROM tab2 AS cor0
----
6132
6289
97
query I rowsort
SELECT ALL - col1 * col2 + col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5974
SELECT DISTINCT + + col2 + + col1 DIV + 61 AS col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + + col2 + + col1 / + 61 AS col1 FROM tab0 AS cor0
----
2
34
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5975
SELECT + col1 + col2 * - CAST( col2 + + col0 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
-1351667
-441398
-9208
skipif mysql # not compatible
query I rowsort label-5975
SELECT + col1 + col2 * - CAST ( col2 + + col0 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
-1351667
-441398
-9208
query I rowsort
SELECT ALL 97 * col1 - ( col2 ) FROM tab1 AS cor0
----
1165
2468
913
query I rowsort
SELECT + 17 + col0 AS col2 FROM tab0 AS cor0
----
106
41
52
query I rowsort
SELECT ALL + + col0 * col2 - - ( - col2 ) AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ( col2 ) * 27 + - col2 AS col0 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT ALL cor0.col2 * col0 + ( col2 ) FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT + + col0 * 29 FROM tab1 cor0
----
1856
2320
87
query I rowsort
SELECT DISTINCT + col0 + col2 * - col2 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL + + col1 + cor0.col2 * 34 AS col0 FROM tab2 cor0
----
1309
943
949
query I rowsort
SELECT ALL 84 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT ALL col1 + 96 AS col0 FROM tab0 AS cor0
----
182
187
193
query I rowsort
SELECT DISTINCT 27 * col2 + - col0 * 7 AS col0 FROM tab0 AS cor0
----
-218
1591
723
query I rowsort
SELECT ALL + ( + 84 ) + col2 FROM tab0 AS cor0
----
117
166
85
query I rowsort
SELECT DISTINCT - + 23 + - cor0.col0 + col2 AS col1 FROM tab1 cor0
----
-30
-7
28
query I rowsort
SELECT DISTINCT + 90 * - col2 + col0 FROM tab1 AS cor0
----
-4857
-5066
-8560
query I rowsort
SELECT ALL + cor0.col1 - - 71 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT ALL + + col1 * 10 + col0 * - cor0.col0 FROM tab0 AS cor0
----
-255
-7011
284
query I rowsort
SELECT + col0 * + col1 + - 15 * 1 * col0 AS col0 FROM tab0 cor0
----
1704
2870
6764
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5993
SELECT + - col1 * col1 - CAST( col1 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-1178
-1632
-8083
skipif mysql # not compatible
query I rowsort label-5993
SELECT + - col1 * col1 - CAST ( col1 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT + col0 * col0 - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT 53 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT - cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL - + col2 * cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT col2 * ( - col0 ) + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col2 * 21 FROM tab2 AS cor0
----
546
567
798
query I rowsort
SELECT + tab1.col2 + col2 * + col1 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT DISTINCT + 96 FROM tab0, tab1 AS cor0
----
96
query I rowsort
SELECT + col0 + col2 + 57 AS col2 FROM tab1 AS cor0
----
114
178
233
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6003
SELECT + col0 * + col1 + + ( col0 * + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6003
SELECT + col0 * + col1 + + ( col0 * + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 81 * + 23 FROM tab2, tab1 AS cor0
----
9 values hashing to fc94338022d22b6557dda372193e65c7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6005
SELECT ALL - - col1 * ( col1 ) + - cor0.col2 * CAST( NULL AS SIGNED ) / cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6005
SELECT ALL - - col1 * ( col1 ) + - cor0.col2 * CAST ( NULL AS INTEGER ) / cor0.col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6006
SELECT cor0.col1 * col2 * - ( + col0 ) + CAST( NULL AS SIGNED ) * col1 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6006
SELECT cor0.col1 * col2 * - ( + col0 ) + CAST ( NULL AS INTEGER ) * col1 / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT tab0.col0 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL 16 + - cor0.col1 FROM tab2 AS cor0
----
-1
-15
-43
query I rowsort
SELECT ALL col2 * + ( tab2.col2 ) AS col0 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab2
----
39
39
39
query I rowsort
SELECT 2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL + ( - col1 + - col0 ) * 16 FROM tab2
----
-1536
-2192
-608
query I rowsort
SELECT + tab2.col1 * + ( col0 ) + - 46 FROM tab2
----
1297
171
4556
query I rowsort
SELECT - tab1.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL + + 90 AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT DISTINCT ( - col2 * - col2 ) + 16 * col2 FROM tab1
----
10752
3780
4161
query I rowsort
SELECT tab1.col0 * + col2 + col0 FROM tab1
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6019
SELECT ALL - col1 * col1 DIV + ( + col0 ) FROM tab2
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-6019
SELECT ALL - col1 * col1 / + ( + col0 ) FROM tab2
----
-137
-3
-44
query I rowsort
SELECT + - col2 + + col1 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2117
3491
8108
query I rowsort
SELECT + col2 * col2 + - ( - col0 ) FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + + col0 + 79 FROM tab2 AS cor0
----
157
158
86
query I rowsort
SELECT + + col2 + - cor0.col1 + col0 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT - ( + ( cor0.col1 ) ) AS col0 FROM tab0, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT cor1.col1 - cor1.col2 * - 96 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
193
3254
7963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 56 col1 FROM tab0
----
1344
1960
4984
query I rowsort
SELECT - col2 * ( + col0 ) + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ALL - col2 + - col0 - col2 AS col0 FROM tab0 AS cor0
----
-253
-37
-90
query I rowsort
SELECT - + col2 * - col0 + - cor0.col1 * 48 FROM tab0 AS cor0
----
-3336
-4621
2930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col2 FROM tab2 AS cor0
----
33
query I rowsort
SELECT ALL + - 1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 18 * col1 + ( col0 ) FROM tab2 AS cor0
----
1140
385
565
query I rowsort
SELECT ALL + - col1 * - 61 FROM tab2 cor0
----
1037
1891
3599
query I rowsort
SELECT DISTINCT - - cor0.col2 + col1 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT col2 * + cor0.col0 + - 95 FROM tab2 AS cor0
----
1933
2907
94
query I rowsort
SELECT - col1 + 48 FROM tab0 AS cor0
----
-38
-43
-49
query I rowsort
SELECT ALL col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 + + col1 FROM tab1 AS cor0
----
-33
-596
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-6039
SELECT ALL col1 DIV col1 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL col1 / col1 + - col0 FROM tab0 AS cor0
----
-23
-34
-88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6040
SELECT ALL + 62 * col2 + CAST( - col1 * + col0 AS SIGNED ) AS col1 FROM tab1
----
2894
3270
4912
skipif mysql # not compatible
query I rowsort label-6040
SELECT ALL + 62 * col2 + CAST ( - col1 * + col0 AS INTEGER ) AS col1 FROM tab1
----
2894
3270
4912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col0 FROM tab2
----
31
31
31
query I rowsort
SELECT DISTINCT 20 + + tab1.col1 FROM tab1
----
30
33
46
query I rowsort
SELECT ALL - 83 + col2 AS col0 FROM tab2
----
-45
-56
-57
query I rowsort
SELECT 51 + + col0 AS col2 FROM tab0
----
140
75
86
query I rowsort
SELECT + col0 + + 33 FROM tab2 AS cor0
----
111
112
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * - col2 col0 FROM tab0 cor0
----
-1716
-4264
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6047
SELECT DISTINCT - 92 + + col2 DIV col2 FROM tab1 AS cor0
----
-91
skipif mysql # not compatible
query I rowsort label-6047
SELECT DISTINCT - 92 + + col2 / col2 FROM tab1 AS cor0
----
-91
query I rowsort
SELECT ( + 44 ) * cor0.col0 AS col0 FROM tab2 cor0
----
308
3432
3476
query I rowsort
SELECT col1 * col1 - + col2 FROM tab1 AS cor0
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6050
SELECT DISTINCT col2 * cor0.col0 + col0 DIV col1 + - col1 FROM tab1 AS cor0
----
136
3644
7673
skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT col2 * cor0.col0 + col0 / col1 + - col1 FROM tab1 AS cor0
----
136
3644
7673
query I rowsort
SELECT ALL - 22 * + col1 AS col2 FROM tab2 AS cor0
----
-1298
-374
-682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6052
SELECT + CAST( - ( - col0 ) AS SIGNED ) + col0 * + 58 FROM tab1 AS cor0
----
177
3776
4720
skipif mysql # not compatible
query I rowsort label-6052
SELECT + CAST ( - ( - col0 ) AS INTEGER ) + col0 * + 58 FROM tab1 AS cor0
----
177
3776
4720
query I rowsort
SELECT ALL ( - 9 ) AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to ea2ee48b6db0ed0e9f87711d3eeef049
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6054
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6054
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 + col1 col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 21 + - col1 FROM tab2 AS cor0
----
-10
-38
4
query I rowsort
SELECT - + 10 AS col1 FROM tab2 AS cor0
----
-10
-10
-10
query I rowsort
SELECT - cor0.col0 + + col0 * 25 + col0 FROM tab1 cor0
----
1600
2000
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT ALL 14 + - 4 + col1 AS col2 FROM tab2
----
27
41
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 + col1 * ( + 77 ) - col2 col0 FROM tab1 AS cor0
----
2039
804
996
query I rowsort
SELECT ALL - - 53 AS col1 FROM tab0 cor0
----
53
53
53
query I rowsort
SELECT DISTINCT ( col1 ) * cor0.col1 + - col0 AS col0 FROM tab2 cor0
----
210
3403
954
query I rowsort
SELECT ALL + ( + col1 ) * col1 - cor0.col0 * - col0 FROM tab2 AS cor0
----
1010
6530
9565
query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 25 + col1 * col2 - - col2 FROM tab1 cor0
----
1319
1433
602
query I rowsort
SELECT ALL - col0 * col1 * col2 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 * col1 col2 FROM tab1 cor0
----
-370
-481
-962
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT ALL + + 22 DIV col1 AS col0 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6069
SELECT ALL + + 22 / col1 AS col0 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT + - 24 FROM tab1 cor0
----
-24
-24
-24
query I rowsort
SELECT - + col2 * 33 AS col2 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT ALL col0 * col0 + 6 FROM tab0 AS cor0
----
1231
582
7927
query I rowsort
SELECT ALL + col2 + - cor0.col2 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6074
SELECT DISTINCT + - col2 DIV + col2 - 93 * + col0 col0 FROM tab0 AS cor0
----
-2233
-3256
-8278
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6074
SELECT DISTINCT + - col2 / + col2 - 93 * + col0 col0 FROM tab0 AS cor0
----
-2233
-3256
-8278
query I rowsort
SELECT + col0 * 80 FROM tab2 AS cor0
----
560
6240
6320
query I rowsort
SELECT ALL - col1 + + col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
2011
3299
8090
query I rowsort
SELECT DISTINCT - + col1 * ( col1 ) + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col0 * col0 AS col2 FROM tab2 cor0
----
-56
-6162
-6320
query I rowsort
SELECT DISTINCT + + col1 * 18 AS col1 FROM tab2 AS cor0
----
1062
306
558
onlyif mysql # use DIV operator for integer division
query I rowsort label-6081
SELECT ALL + col2 DIV ( col1 ) FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL + col2 / ( col1 ) FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - 49 - + col0 AS col1 FROM tab1 AS cor0
----
-113
-129
-52
query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # use DIV operator for integer division
query I rowsort label-6084
SELECT + 9 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6084
SELECT + 9 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT - + CAST( - 74 AS SIGNED ) DIV col0 AS col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-6085
SELECT - + CAST ( - 74 AS INTEGER ) / col0 AS col0 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT DISTINCT + cor0.col2 + + 97 * col2 FROM tab1 cor0
----
5292
5586
9408
query I rowsort
SELECT - 69 + + cor0.col1 + col1 FROM tab1 AS cor0
----
-17
-43
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6088
SELECT ALL CAST( col1 AS SIGNED ) * - col0 * + col2 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL CAST ( col1 AS INTEGER ) * - col0 * + col2 AS col0 FROM tab0 cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6089
SELECT DISTINCT - 76 + + cor0.col2 * col2 DIV - col0 FROM tab1 AS cor0
----
-1048
-126
-191
skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT - 76 + + cor0.col2 * col2 / - col0 FROM tab1 AS cor0
----
-1048
-126
-191
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6090
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6090
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab1 AS cor2, tab1 AS cor3
----
16
query I rowsort
SELECT ALL col1 + 64 AS col0 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT + - col0 * + col1 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL col1 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - 10 + col0 FROM tab0 AS cor0
----
14
25
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-6096
SELECT col2 + tab0.col2 DIV + tab0.col0 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-6096
SELECT col2 + tab0.col2 / + tab0.col0 FROM tab0
----
1
34
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 * tab2.col2 + col0 * + col0 col2 FROM tab2
----
238
8112
9243
query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - col1 IN ( col2 - + col0 * - col0 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + tab2.col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 WHERE ( NULL ) <> NULL
----
query I rowsort
SELECT DISTINCT - col0 - col1 FROM tab1
----
-29
-74
-93
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 * + col0 <> col1
----
query I rowsort
SELECT ALL - col1 - - tab1.col0 * col2 FROM tab1
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-6104
SELECT ALL - tab1.col0 + - col2 DIV + col1 FROM tab1
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL - tab1.col0 + - col2 / + col1 FROM tab1
----
-5
-69
-87
query I rowsort
SELECT tab2.col2 AS col0 FROM tab2 WHERE NULL = col1
----
query I rowsort
SELECT + col1 - + col1 FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col2 + - col1 * + col1 * col0 + + col0 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab1 WHERE NULL IN ( col0 )
----
query I rowsort
SELECT ALL col0 - col2 * col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT col2 + + col2 * + col2 AS col1 FROM tab0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 + col0 * col2 col2 FROM tab0
----
132
7389
878
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + col1 * + tab2.col2 )
----
query I rowsort
SELECT DISTINCT - tab1.col2 - + col0 FROM tab1
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT - cor0.col1 * + cor0.col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT ALL + col2 + + col2 DIV - col2 + col0 AS col0 FROM tab0 cor0
----
170
35
56
skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL + col2 + + col2 / - col2 + col0 AS col0 FROM tab0 cor0
----
170
35
56
query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE ( col2 ) NOT IN ( + col0 * - col0 )
----
3
64
80
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( col2 * - col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL - col1 * col1 FROM tab1 WHERE ( NULL ) > col2 + col2 * col0 * - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 - - 91 col2 FROM tab1 AS cor0
----
145
148
187
query I rowsort
SELECT + col0 + 3 + - 73 FROM tab0
----
-35
-46
19
query I rowsort
SELECT DISTINCT - col0 + + col1 * + col1 FROM tab2
----
210
3403
954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 - col2 col1 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT col0 + ( + 73 + col2 ) FROM tab0 AS cor0
----
109
130
244
query I rowsort
SELECT ALL - cor0.col0 - + 53 FROM tab0 cor0
----
-142
-77
-88
query I rowsort
SELECT - col0 * 10 + - cor0.col1 FROM tab1 AS cor0
----
-56
-650
-813
query I rowsort
SELECT DISTINCT col0 + - 70 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-70
query I rowsort
SELECT - col0 + - ( col1 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + 87 * col1 AS col2 FROM tab2 AS cor0
----
1479
2697
5133
onlyif mysql # use DIV operator for integer division
query I rowsort label-6129
SELECT ALL - + 59 + + 61 DIV col1 FROM tab1 AS cor0
----
-53
-55
-57
skipif mysql # not compatible
query I rowsort label-6129
SELECT ALL - + 59 + + 61 / col1 FROM tab1 AS cor0
----
-53
-55
-57
query I rowsort
SELECT DISTINCT + + col0 * col0 * - cor0.col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6131
SELECT ALL - CAST( cor0.col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL - CAST ( cor0.col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col0 + + col0 * col2 AS col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT ALL cor2.col0 FROM tab1, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-38
query I rowsort
SELECT tab0.col0 + col0 * col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT + col0 / - tab1.col1 + - col2 AS col0 FROM tab1 WHERE NOT ( + col1 ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col2 + - col1 col1 FROM tab2
----
1427
617
698
query III rowsort
SELECT * FROM tab2 WHERE col2 * col2 NOT IN ( col0 - col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT + 24 + + col1 FROM tab0 cor0
----
110
115
121
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 col0 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6141
SELECT - 25 DIV col1 AS col0 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6141
SELECT - 25 / col1 AS col0 FROM tab2
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT col1 * CAST( + 30 AS SIGNED ) + cor0.col2 DIV + col0 FROM tab0 cor0
----
2581
2730
2910
skipif mysql # not compatible
query I rowsort label-6142
SELECT col1 * CAST ( + 30 AS INTEGER ) + cor0.col2 / + col0 FROM tab0 cor0
----
2581
2730
2910
query I rowsort
SELECT - col2 * + col1 + 21 FROM tab1
----
-1227
-1383
-549
query I rowsort
SELECT DISTINCT - 29 - - col0 AS col1 FROM tab1
----
-26
35
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6145
SELECT ALL + 39 DIV tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d9f281f66a4ba6268f07512f26427a49
skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL + 39 / tab1.col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to d9f281f66a4ba6268f07512f26427a49
onlyif mysql # use DIV operator for integer division
query I rowsort label-6146
SELECT ALL 65 DIV cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95c9c05d889679454926776a124029bb
skipif mysql # not compatible
query I rowsort label-6146
SELECT ALL 65 / cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 95c9c05d889679454926776a124029bb
query I rowsort
SELECT DISTINCT + tab2.col1 - col2 * - col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT ALL 67 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT + col2 * + col1 - - 0 * col0 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 + + 16 FROM tab2 AS cor0
----
42
43
54
query I rowsort
SELECT ALL + col2 * - ( - col1 ) AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * - cor0.col0 + - col1 * - col1 + col2 * col1 FROM tab2 AS cor0
----
1987
3937
7043
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 97 + cor0.col2 col2 FROM tab0 AS cor0
----
8375
8909
9410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6154
SELECT CAST( - col2 * + col0 + + col1 AS SIGNED ) col0 FROM tab2
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6154
SELECT CAST ( - col2 * + col0 + + col1 AS INTEGER ) col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT ( col1 ) * col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT 30 + - col1 * col2 AS col0 FROM tab0
----
-2808
-67
-7432
query I rowsort
SELECT DISTINCT - 34 * tab1.col0 FROM tab1
----
-102
-2176
-2720
query I rowsort
SELECT + tab0.col0 * col0 * col0 + + col1 * + col2 + col2 AS col1 FROM tab0
----
16695
42973
712513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 col2 FROM tab2 AS cor0
----
-96
query I rowsort
SELECT DISTINCT 56 * - 39 FROM tab0
----
-2184
onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT DISTINCT + col0 DIV col1 + col0 col1 FROM tab2 AS cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT + col0 / col1 + col0 col1 FROM tab2 AS cor0
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT ( 35 ) * col0 + - col0 DIV col0 AS col0 FROM tab2 cor0
----
244
2729
2764
skipif mysql # not compatible
query I rowsort label-6162
SELECT ( 35 ) * col0 + - col0 / col0 AS col0 FROM tab2 cor0
----
244
2729
2764
query I rowsort
SELECT ALL cor0.col1 * ( + cor0.col0 + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
1054
1989
6136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col1 FROM tab0
----
95
95
95
query I rowsort
SELECT - 24 + tab1.col0 * + 49 * col1 FROM tab1
----
31336
3798
50936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 + 11 * + col0 col0 FROM tab0 AS cor0
----
1353
386
7703
query I rowsort
SELECT DISTINCT 90 * col0 AS col0 FROM tab1 cor0
----
270
5760
7200
query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT DISTINCT - 57 * col0 FROM tab2 AS cor0
----
-399
-4446
-4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-6170
SELECT - + cor0.col1 + - cor0.col0 DIV 9 + col1 FROM tab2 cor0
----
-8
-8
0
skipif mysql # not compatible
query I rowsort label-6170
SELECT - + cor0.col1 + - cor0.col0 / 9 + col1 FROM tab2 cor0
----
-8
-8
0
query I rowsort
SELECT DISTINCT col0 * + ( ( - col0 ) ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 57 + col2 col2 FROM tab2 cor0
----
57
57
57
query I rowsort
SELECT - col2 * - col1 - col2 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT 30 - + col0 AS col1 FROM tab1
----
-34
-50
27
query I rowsort
SELECT ALL + col0 * cor0.col1 * col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - + col0 + col2 * + col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - 57 * + col1 * - col1 AS col0 FROM tab0
----
421572
472017
536313
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col1 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT col2 + + col0 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - - cor0.col1 * - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT + col0 * col1 + - col0 * col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6182
SELECT col2 + col0 * col2 DIV col1 FROM tab2
----
214
33
60
skipif mysql # not compatible
query I rowsort label-6182
SELECT col2 + col0 * col2 / col1 FROM tab2
----
214
33
60
query I rowsort
SELECT ALL + col0 + tab2.col1 * + col2 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT ALL col1 + col1 * col1 * tab1.col2 FROM tab1
----
16237
36530
5710
query I rowsort
SELECT ALL + col1 * tab2.col2 + + col0 FROM tab2
----
1612
725
844
query I rowsort
SELECT 51 * col0 + - col1 * col0 FROM tab0 AS cor0
----
-1610
-3560
-840
query I rowsort
SELECT DISTINCT 97 * + col1 AS col1 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT ALL - + 92 - col0 AS col2 FROM tab0 AS cor0
----
-116
-127
-181
onlyif mysql # use DIV operator for integer division
query I rowsort label-6189
SELECT ALL col2 DIV + cor0.col2 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6189
SELECT ALL col2 / + cor0.col2 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL - + col1 + - col0 * cor0.col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - 98 + col1 * - col0 AS col0 FROM tab0 cor0
----
-2162
-3493
-8197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 76 * col1 - col2 * + col1 col2 FROM tab0 AS cor0
----
-546
3698
7275
query I rowsort
SELECT ALL + col2 * + col0 + + col2 * tab1.col1 + + col2 * + col1 AS col1 FROM tab1
----
10176
2970
4788
query I rowsort
SELECT ALL + + cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 36 * - col2 AS col1 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT DISTINCT 81 * col1 AS col1 FROM tab0 AS cor0
----
6966
7371
7857
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 * col0 col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - 47 AS col1 FROM tab2 AS cor0
----
-47
-47
-47
query I rowsort
SELECT DISTINCT - - col1 + - col2 * + col2 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6200
SELECT + col2 * col0 DIV col0 + 49 FROM tab0 AS cor0
----
131
50
82
skipif mysql # not compatible
query I rowsort label-6200
SELECT + col2 * col0 / col0 + 49 FROM tab0 AS cor0
----
131
50
82
query I rowsort
SELECT + - cor0.col2 + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col0 + col1 * col0 col2 FROM tab2 AS cor0
----
2686
434
9204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6203
SELECT ALL - CAST( col2 AS SIGNED ) * - col1 AS col0 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL - CAST ( col2 AS INTEGER ) * - col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + col0 * + 73 * col1 AS col2 FROM tab1
----
46720
5694
75920
query I rowsort
SELECT - tab1.col2 * - col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT 76 + col2 AS col1 FROM tab1
----
130
133
172
query I rowsort
SELECT DISTINCT col0 + + col2 * + tab0.col0 * col0 AS col0 FROM tab0
----
1260
19032
649611
query I rowsort
SELECT 96 * col0 + - col2 FROM tab2 cor0
----
645
7462
7546
query I rowsort
SELECT - col1 * col1 * col2 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT - col0 * + tab1.col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - 91 + + cor1.col1 * - cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 48af969a7e8f35e150fcd57adfb0b615
query I rowsort
SELECT ALL - col1 + cor0.col2 * + 65 AS col1 FROM tab1 AS cor0
----
3484
3695
6227
query I rowsort
SELECT DISTINCT + - cor0.col0 * + 76 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
12338
277258
583693
onlyif mysql # use DIV operator for integer division
query I rowsort label-6214
SELECT ALL + + col1 + - col1 DIV col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6214
SELECT ALL + + col1 + - col1 / col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT DISTINCT 46 * + 75 AS col1 FROM tab2 AS cor0
----
3450
onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT + - 70 DIV 2 + - col0 FROM tab1 AS cor0
----
-115
-38
-99
skipif mysql # not compatible
query I rowsort label-6216
SELECT + - 70 / 2 + - col0 FROM tab1 AS cor0
----
-115
-38
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col2 * col2 * - ( 70 ) col1 FROM tab1 AS cor0
----
-204117
-227366
-645040
query I rowsort
SELECT DISTINCT - col1 + col1 * col1 AS col0 FROM tab2 AS cor0
----
272
3422
930
onlyif mysql # use DIV operator for integer division
query I rowsort label-6219
SELECT 31 DIV col0 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6219
SELECT 31 / col0 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT col1 * + col2 - - cor0.col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT - - ( + 60 ) - col1 * 31 DIV col2 FROM tab1 AS cor0
----
46
55
56
skipif mysql # not compatible
query I rowsort label-6221
SELECT - - ( + 60 ) - col1 * 31 / col2 FROM tab1 AS cor0
----
46
55
56
query I rowsort
SELECT - - 38 + cor0.col2 FROM tab2 AS cor0
----
64
65
76
query I rowsort
SELECT col2 * + 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * - 70 FROM tab0 AS cor0
----
-2310
-5740
-70
query I rowsort
SELECT + col1 + col1 * - cor0.col2 - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1300
-195
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6226
SELECT - col0 + + col1 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6226
SELECT - col0 + + col1 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col0 + col2 * + 96 + col0 FROM tab1 AS cor0
----
1616
1888
5025
query I rowsort
SELECT - ( + col1 ) * - col0 + + ( + col1 ) + col0 FROM tab0 cor0
----
2174
3527
8279
query I rowsort
SELECT ALL - cor1.col1 + - 39 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 73e68e2321a2459063095dd46dc7b1be
query I rowsort
SELECT ALL + cor0.col2 * col1 + + ( col1 ) + - cor0.col2 FROM tab1 AS cor0
----
1165
1376
523
query I rowsort
SELECT ALL - + cor0.col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - 19 * col2 + col1 AS col0 FROM tab0 AS cor0
----
-1467
-541
78
query I rowsort
SELECT - 82 AS col0 FROM tab2 cor0
----
-82
-82
-82
query I rowsort
SELECT ALL + 41 * cor0.col2 + col1 FROM tab1 cor0
----
2240
2347
3949
query I rowsort
SELECT - - col1 * - 1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - - col1 * + ( - col1 ) * col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT col0 * 8 * + 21 AS col1 FROM tab2 cor0
----
1176
13104
13272
query I rowsort
SELECT + - 49 AS col2 FROM tab0 cor0
----
-49
-49
-49
query I rowsort
SELECT + + ( - col1 ) + - col1 * - 54 AS col1 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT ALL ( - col1 ) + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 5 * + ( col0 + + col0 ) AS col0 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT + + cor0.col2 * - 97 FROM tab0 cor0
----
-3201
-7954
-97
query I rowsort
SELECT DISTINCT + cor0.col1 * col0 + - 2 AS col1 FROM tab0 AS cor0
----
2062
3393
8097
query I rowsort
SELECT DISTINCT - + col1 * col0 * + 5 - + col0 AS col1 FROM tab1 AS cor0
----
-3264
-393
-5280
query I rowsort
SELECT + - col2 * - 85 - - col1 AS col2 FROM tab2 AS cor0
----
2269
2326
3247
query I rowsort
SELECT - col1 + + col2 * + 73 AS col2 FROM tab2 AS cor0
----
1839
1940
2757
onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT DISTINCT - tab0.col0 DIV ( col2 ) + col1 * - ( col1 ) AS col1 FROM tab0
----
-7396
-8282
-9444
skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - tab0.col0 / ( col2 ) + col1 * - ( col1 ) AS col1 FROM tab0
----
-7396
-8282
-9444
query I rowsort
SELECT ALL col2 + + col2 * 89 AS col2 FROM tab0
----
2970
7380
90
query I rowsort
SELECT + + cor0.col2 + + cor0.col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6250
SELECT col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6250
SELECT col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 + + col1 * - cor0.col2 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6252
SELECT DISTINCT - cor0.col2 - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6252
SELECT DISTINCT - cor0.col2 - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT ALL cor0.col2 + 4 * col2 DIV + col2 col0 FROM tab0 cor0
----
37
5
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6253
SELECT ALL cor0.col2 + 4 * col2 / + col2 col0 FROM tab0 cor0
----
37
5
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6254
SELECT ALL + col2 * col0 DIV - col0 col0 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6254
SELECT ALL + col2 * col0 / - col0 col0 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 * + tab1.col0 + col2 * col0 col2 FROM tab1
----
11920
321
7040
query I rowsort
SELECT - col0 * col2 - + col0 * - ( tab0.col1 ) AS col2 FROM tab0
----
1272
3360
801
query I rowsort
SELECT DISTINCT 57 * 1 AS col1 FROM tab0, tab2, tab2 AS cor0
----
57
query I rowsort
SELECT 45 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
1085
123
685
query I rowsort
SELECT + 56 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1169
-520
-7865
query I rowsort
SELECT + ( tab2.col1 + col1 ) FROM tab2
----
118
34
62
query I rowsort
SELECT + ( - col0 ) + col2 * + col2 FROM tab2 cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + col2 * col1 * col2 + - 9 AS col1 FROM tab0 AS cor0
----
611875
88
93645
query I rowsort
SELECT ALL - col2 * + col0 * col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col0 AS col1 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT col0 + col2 * col2 AS col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-6267
SELECT DISTINCT col2 * + col1 + + cor0.col2 + col1 DIV + cor0.col1 FROM tab1 AS cor0
----
1345
1459
628
skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT col2 * + col1 + + cor0.col2 + col1 / + cor0.col1 FROM tab1 AS cor0
----
1345
1459
628
query I rowsort
SELECT ALL 52 + + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4044
-6348
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-6269
SELECT tab1.col2 DIV col2 + + 86 AS col1 FROM tab1
----
87
87
87
skipif mysql # not compatible
query I rowsort label-6269
SELECT tab1.col2 / col2 + + 86 AS col1 FROM tab1
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * cor0.col1 - col1 col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - col0 * col0 - col2 AS col0 FROM tab1 AS cor0
----
-4153
-63
-6496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6272
SELECT ALL + 94 + col0 / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL + 94 + col0 / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 39 + col0 FROM tab1 AS cor0
----
-1011
-326
-427
onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT + - col0 DIV 80 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-6274
SELECT + - col0 / 80 AS col1 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6275
SELECT ALL col2 DIV 58 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL col2 / 58 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - + col0 + - 91 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-4917
-5251
-8816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + 76 col2 FROM tab0 cor0
----
-13
41
52
query I rowsort
SELECT + ( - tab1.col0 * - col1 ) AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL + 22 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
query I rowsort
SELECT ALL + - col0 * + 98 - col2 * + 57 FROM tab0 AS cor0
----
-13396
-3487
-4233
query I rowsort
SELECT DISTINCT - 31 * 67 FROM tab2 AS cor0
----
-2077
query I rowsort
SELECT ALL col1 + 74 + col2 * col1 FROM tab2 AS cor0
----
1667
737
942
query I rowsort
SELECT ALL + - 4 + col1 AS col0 FROM tab0 AS cor0
----
82
87
93
query I rowsort
SELECT + - 91 * - 58 + col1 FROM tab2 AS cor0
----
5295
5309
5337
query I rowsort
SELECT ALL col2 + + ( col0 * - 25 ) FROM tab0 AS cor0
----
-2143
-567
-874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6286
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + 79 + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6286
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + 79 + - col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 68 * col2 AS col1 FROM tab0 AS cor0
----
2244
5576
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6288
SELECT DISTINCT + col0 + - col1 * cor0.col1 + + CAST( NULL AS SIGNED ) * 7 col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6288
SELECT DISTINCT + col0 + - col1 * cor0.col1 + + CAST ( NULL AS INTEGER ) * 7 col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col0 + + col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT + - ( col0 ) + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 23 + + col2 col1 FROM tab2 AS cor0
----
1383
429
740
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT DISTINCT tab2.col2 - + CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6292
SELECT DISTINCT tab2.col2 - + CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL + col0 + + tab0.col2 * - 3 - + col0 * + ( col0 ) FROM tab0
----
-1193
-651
-8078
onlyif mysql # use DIV operator for integer division
query I rowsort label-6294
SELECT - col2 DIV ( col1 ) AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6294
SELECT - col2 / ( col1 ) AS col2 FROM tab2
----
-2
0
0
query I rowsort
SELECT col1 + - 11 + - 38 AS col1 FROM tab0
----
37
42
48
query I rowsort
SELECT DISTINCT 48 * col1 - cor0.col0 FROM tab1 AS cor0
----
1245
416
544
query I rowsort
SELECT 9 + + col0 * col1 FROM tab0 AS cor0
----
2073
3404
8108
query I rowsort
SELECT ALL cor0.col0 * col2 + - col1 * - 84 * - 33 FROM tab2 AS cor0
----
-161520
-44122
-85743
query I rowsort
SELECT DISTINCT - 13 AS col2 FROM tab0 AS cor0
----
-13
query I rowsort
SELECT ALL + + 75 * + 31 AS col0 FROM tab0 cor0
----
2325
2325
2325
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 - cor0.col0 col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - 6 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
80
85
91
query I rowsort
SELECT + 17 * col1 * col1 FROM tab0
----
125732
140777
159953
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 36 AS REAL ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT DISTINCT col0 - ( col2 ) FROM tab1
----
-16
-51
7
query I rowsort
SELECT col2 + - col0 * cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col0 * 21 AS col2 FROM tab0
----
-1869
-504
-735
query I rowsort
SELECT - col1 * col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + col0 * col0 + col2 + 32 AS col0 FROM tab0 AS cor0
----
1258
641
8035
query I rowsort
SELECT - - col1 * col1 + - col0 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT + col2 DIV - 70 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6311
SELECT + col2 / - 70 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 95 * 47 * col1 FROM tab2 AS cor0
----
138415
263435
75905
query I rowsort
SELECT - + cor0.col1 + - col1 + - col0 * col0 FROM tab0 AS cor0
----
-1419
-748
-8103
query I rowsort
SELECT + 16 * 56 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e191185eaa721a70575d6e1b1bcd8092
onlyif mysql # use DIV operator for integer division
query I rowsort label-6315
SELECT + col0 DIV - 71 FROM tab2
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6315
SELECT + col0 / - 71 FROM tab2
----
-1
-1
0
query I rowsort
SELECT ALL + 95 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ( col1 ) + - col0 * + col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT + col1 * 87 AS col2 FROM tab1
----
1131
2262
870
query I rowsort
SELECT - col0 * + col0 + - col0 AS col0 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT ALL - - ( - col0 ) + - col2 + - 47 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
1423
2669
682
onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT DISTINCT + col0 - col1 DIV col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6321
SELECT DISTINCT + col0 - col1 / col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL + col0 * + col1 + + 79 FROM tab0 AS cor0
----
2143
3474
8178
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6323
SELECT DISTINCT cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 - 97 FROM tab2 AS cor0
----
-18
-19
-90
query I rowsort
SELECT ALL col0 + col1 + 84 FROM tab0 AS cor0
----
194
216
264
query I rowsort
SELECT ALL + col1 + - cor0.col1 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col0 FROM tab0
----
33
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT DISTINCT - col0 + 50 AS col2 FROM tab1 AS cor0
----
-14
-30
47
skipif mysql # not compatible
query I rowsort
SELECT ALL - col2 * CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT - CAST( col0 AS SIGNED ) + col2 * - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-6331
SELECT - CAST ( col0 AS INTEGER ) + col2 * - col0 / + col0 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - 44 + + tab1.col1 FROM tab1
----
-18
-31
-34
query I rowsort
SELECT - ( tab1.col1 ) AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6334
SELECT tab0.col2 + - col1 - + col0 DIV + CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-53
-61
-8
skipif mysql # not compatible
query I rowsort label-6334
SELECT tab0.col2 + - col1 - + col0 / + CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-53
-61
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6335
SELECT - col1 DIV - col0 + - 96 * + col0 FROM tab2 cor0
----
-668
-7488
-7584
skipif mysql # not compatible
query I rowsort label-6335
SELECT - col1 / - col0 + - 96 * + col0 FROM tab2 cor0
----
-668
-7488
-7584
query I rowsort
SELECT + ( - col2 ) * + col1 - + col2 FROM tab0
----
-2871
-7544
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
query I rowsort
SELECT - 73 * col0 FROM tab2 AS cor0
----
-511
-5694
-5767
query I rowsort
SELECT DISTINCT - 96 * col1 AS col0 FROM tab2 AS cor0
----
-1632
-2976
-5664
query I rowsort
SELECT - ( - 22 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7dda382e7c08428abac8600fd696eb3e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6341
SELECT ALL + ( + col2 ) * CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6341
SELECT ALL + ( + col2 ) * CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 65 * col0 + 41 col0 FROM tab1 AS cor0
----
182
4144
5145
query I rowsort
SELECT DISTINCT - + 74 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1269
143
4528
query I rowsort
SELECT + 57 + ( col0 ) AS col0 FROM tab1 cor0
----
121
137
60
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 + - col1 AS col1 FROM tab1 AS cor0
----
-35
-4106
-6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-6346
SELECT DISTINCT + cor0.col2 DIV cor0.col1 + + col0 FROM tab2 AS cor0
----
7
78
81
skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT + cor0.col2 / cor0.col1 + + col0 FROM tab2 AS cor0
----
7
78
81
query I rowsort
SELECT ALL + - col2 * 71 FROM tab2 AS cor0
----
-1846
-1917
-2698
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( + 25 AS REAL ) AS col0 FROM tab2 AS cor0
----
-25
-25
-25
onlyif mysql # use DIV operator for integer division
query I rowsort label-6349
SELECT DISTINCT - col2 DIV + ( col1 ) + + ( + col1 ) - - col2 AS col2 FROM tab1 AS cor0
----
102
62
78
skipif mysql # not compatible
query I rowsort label-6349
SELECT DISTINCT - col2 / + ( col1 ) + + ( + col1 ) - - col2 AS col2 FROM tab1 AS cor0
----
102
62
78
query I rowsort
SELECT ( col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * + col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - 37 * - 84 + cor0.col1 AS col0 FROM tab1 AS cor0
----
3118
3121
3134
query I rowsort
SELECT DISTINCT + col0 * - 11 AS col0 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT ALL col2 * col1 + col0 AS col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + ( 98 ) * col2 FROM tab1 cor0
----
5292
5586
9408
query I rowsort
SELECT ALL cor0.col0 * - 55 + - col0 + ( col0 ) AS col2 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT ALL + - col2 + ( col1 + ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT DISTINCT - + ( + 98 ) FROM tab1 AS cor0
----
-98
query I rowsort
SELECT + - 6 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT 55 AS col2 FROM tab1 cor0
----
55
55
55
query I rowsort
SELECT + col1 * tab0.col1 - col2 FROM tab0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 * + col1 col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL - ( - col2 ) * + ( col0 ) + col2 FROM tab0 AS cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 * - col2 ) col1 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - 50 - + col0 col0 FROM tab1 AS cor0
----
-2703
-2914
-4880
query I rowsort
SELECT DISTINCT - col0 * + 22 AS col1 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT - col0 * - 2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - ( 84 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-84
query I rowsort
SELECT DISTINCT + - 22 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-22
query I rowsort
SELECT col2 - + ( + 47 ) AS col1 FROM tab1
----
10
49
7
query I rowsort
SELECT + col1 + - ( col2 ) FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col0 * - col2 + - col2 + + col2 * + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-3135
-6528
1188
query I rowsort
SELECT DISTINCT - col0 - + ( col0 ) AS col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT col1 * + col0 + 84 AS col2 FROM tab1 cor0
----
1124
162
724
query I rowsort
SELECT col1 * cor0.col1 * + col0 + + col1 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT ALL - - cor0.col0 * 7 AS col1 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT + cor0.col0 * 19 + cor0.col1 FROM tab2 AS cor0
----
1518
1541
164
query I rowsort
SELECT col1 * - 95 AS col2 FROM tab1
----
-1235
-2470
-950
query I rowsort
SELECT 37 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT DISTINCT - col0 + ( - 66 ) * col2 FROM tab0
----
-101
-2202
-5501
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + 57 * - 19 FROM tab0 AS cor0
----
-1083
-1083
-1083
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 8 col2 FROM tab1 AS cor0
----
24
512
640
onlyif mysql # use DIV operator for integer division
query I rowsort label-6384
SELECT - + col1 DIV cor0.col2 + col1 + - 11 * col2 AS col2 FROM tab0 cor0
----
-11
-279
-812
skipif mysql # not compatible
query I rowsort label-6384
SELECT - + col1 / cor0.col2 + col1 + - 11 * col2 AS col2 FROM tab0 cor0
----
-11
-279
-812
query I rowsort
SELECT ALL 97 * cor0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 19b32b31dd1bc52ee2e641396af04ac5
query I rowsort
SELECT ( 12 ) * + cor0.col0 AS col2 FROM tab1 AS cor0
----
36
768
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) * cor0.col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col0 + - ( + col0 ) FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - col2 * col1 * 73 FROM tab1
----
-102492
-41610
-91104
query I rowsort
SELECT DISTINCT + 37 + + tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
47
50
63
query I rowsort
SELECT ALL ( - col1 ) * - col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 41 * - cor0.col1 + - col2 FROM tab1 AS cor0
----
-1120
-467
-629
query I rowsort
SELECT + col1 + col0 + col1 * - cor0.col1 FROM tab1 cor0
----
-26
-647
-76
query I rowsort
SELECT DISTINCT - col1 * 13 FROM tab2 AS cor0
----
-221
-403
-767
query I rowsort
SELECT + + col0 * - col0 + + 7 AS col2 FROM tab0 AS cor0
----
-1218
-569
-7914
onlyif mysql # use DIV operator for integer division
query I rowsort label-6396
SELECT + col1 DIV - col1 + - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6396
SELECT + col1 / - col1 + - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col2 * col2 + col0 + - col1 AS col0 FROM tab1 AS cor0
----
2893
3303
9283
query I rowsort
SELECT col0 * - 58 + col2 AS col0 FROM tab0 cor0
----
-1359
-2029
-5080
query I rowsort
SELECT DISTINCT col2 - 72 * col0 AS col0 FROM tab0 AS cor0
----
-1695
-2519
-6326
query I rowsort
SELECT ALL + cor0.col1 + - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + + cor0.col2 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - col2 + - 78 FROM tab2 AS cor0
----
-104
-105
-116
query I rowsort
SELECT - 89 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6404
SELECT + - col1 + + CAST( cor0.col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-6404
SELECT + - col1 + + CAST ( cor0.col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 + - col0 - 75 FROM tab0 AS cor0
----
-123
-145
-253
query I rowsort
SELECT + 66 AS col1 FROM tab1 cor0
----
66
66
66
query I rowsort
SELECT ALL + + 10 * 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to fc99454668b22de5fc92becd02e7298c
query I rowsort
SELECT + - 17 - - cor0.col1 FROM tab2 AS cor0
----
0
14
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-6409
SELECT + col1 * - col1 - - col0 * col1 DIV col1 col1 FROM tab1 AS cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6409
SELECT + col1 * - col1 - - col0 * col1 / col1 col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT + 45 * - cor0.col2 + - 1 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-10989
-2278
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-6411
SELECT DISTINCT + 2 DIV + col2 + 78 * + col2 FROM tab1 AS cor0
----
4212
4446
7488
skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT + 2 / + col2 + 78 * + col2 FROM tab1 AS cor0
----
4212
4446
7488
query I rowsort
SELECT ALL 59 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT - - col2 + + col0 + + col1 AS col1 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 + ( cor0.col2 * + 38 ) col1 FROM tab2 AS cor0
----
1040
1144
1602
query I rowsort
SELECT ALL + col2 + 34 FROM tab1 AS cor0
----
130
88
91
query I rowsort
SELECT - - cor0.col0 + - col2 AS col2 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL + col1 * + col1 + 84 AS col0 FROM tab1 AS cor0
----
184
253
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col1 FROM tab2, tab0 AS cor0
----
-16
query I rowsort
SELECT ALL + + col2 * col0 + col0 + - col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + + cor0.col1 * + 35 + 50 FROM tab0 AS cor0
----
3060
3235
3445
query I rowsort
SELECT cor0.col1 * - ( - col2 ) + - col1 AS col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT 79 * 11 FROM tab2, tab2 AS cor0
----
9 values hashing to e67caa146ecbe2d8f7c77ab1072f3535
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + cor0.col1 col0 FROM tab0 cor0
----
100
105
111
query I rowsort
SELECT ALL + + col2 + 90 FROM tab1 AS cor0
----
144
147
186
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - - ( + col1 ) * col2 - col0 AS col1 FROM tab0 cor0
----
2814
62
7373
query I rowsort
SELECT + + col0 + ( col2 ) * + 32 AS col2 FROM tab2 cor0
----
1295
871
910
query I rowsort
SELECT + col0 + ( col1 ) * - 90 FROM tab1 AS cor0
----
-1090
-2337
-836
query I rowsort
SELECT + 44 + + 31 * - col0 AS col0 FROM tab0 AS cor0
----
-1041
-2715
-700
query I rowsort
SELECT DISTINCT 24 FROM tab1, tab2 cor0, tab0 AS cor1
----
24
query I rowsort
SELECT - col1 * tab1.col2 * + 34 AS col0 FROM tab1
----
-19380
-42432
-47736
query I rowsort
SELECT DISTINCT col1 * - 27 AS col0 FROM tab1
----
-270
-351
-702
query I rowsort
SELECT ALL + col1 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * + col0 col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL - - col1 * col1 * col0 - col0 AS col2 FROM tab0 AS cor0
----
177480
329280
736920
query I rowsort
SELECT DISTINCT - ( + col1 ) * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - ( - col2 ) + - col0 * col2 AS col0 FROM tab0 cor0
----
-34
-7216
-759
query I rowsort
SELECT - 55 * - 53 AS col0 FROM tab1 AS cor0
----
2915
2915
2915
query I rowsort
SELECT DISTINCT - 29 * col0 AS col1 FROM tab1 AS cor0
----
-1856
-2320
-87
query I rowsort
SELECT - col1 + - 1 * col0 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 62 col2 FROM tab1 AS cor0
----
3348
3534
5952
query I rowsort
SELECT ( - col2 ) + col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col0 * - 56 AS col1 FROM tab1
----
168
3584
4480
onlyif mysql # use DIV operator for integer division
query I rowsort label-6444
SELECT + 9 + - col2 DIV + 36 AS col2 FROM tab0 cor0
----
7
9
9
skipif mysql # not compatible
query I rowsort label-6444
SELECT + 9 + - col2 / + 36 AS col2 FROM tab0 cor0
----
7
9
9
query I rowsort
SELECT DISTINCT 0 + col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - col2 + ( + col1 * - col2 ) FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT col2 - 59 FROM tab0 AS cor0
----
-26
-58
23
query I rowsort
SELECT - - col1 - - col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - col1 * + ( col2 * col0 ) + - ( col2 ) * - col2 FROM tab2
----
-118976
-49590
-5130
onlyif mysql # use DIV operator for integer division
query I rowsort label-6450
SELECT ALL col0 * + tab0.col1 + - 7 * col2 DIV + col0 FROM tab0
----
2055
3395
8093
skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL col0 * + tab0.col1 + - 7 * col2 / + col0 FROM tab0
----
2055
3395
8093
query I rowsort
SELECT - cor0.col1 + + 4 * 77 * cor0.col1 + cor0.col1 * 74 FROM tab0 AS cor0
----
32766
34671
36957
query I rowsort
SELECT + cor0.col2 * + col2 + - 29 + + col0 AS col1 FROM tab0 AS cor0
----
1084
6784
7
query I rowsort
SELECT - col0 * ( + col0 ) * col0 + ( 79 ) + col0 AS col0 FROM tab1 AS cor0
----
-262001
-511841
55
query I rowsort
SELECT DISTINCT + ( col2 ) * + ( col0 ) FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT - col1 * + col0 + - col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-6455
SELECT - col1 * + col0 + - col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1041
-641
-79
query I rowsort
SELECT DISTINCT ( cor0.col0 ) + - 71 FROM tab2 AS cor0
----
-64
7
8
query I rowsort
SELECT ALL + col0 * col0 + + 0 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT col0 * col0 + ( - col1 * + cor0.col2 ) FROM tab1 AS cor0
----
-1395
3526
5152
query I rowsort
SELECT ALL col0 * cor0.col2 + - col0 * + col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 + + col0 * + 17 FROM tab0 AS cor0
----
1604
494
692
query I rowsort
SELECT DISTINCT - + 18 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
1216
1520
57
query I rowsort
SELECT DISTINCT - col1 * ( ( col2 ) ) AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + + col2 * ( + 77 ) FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT DISTINCT + tab2.col2 + - col1 AS col1 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-6465
SELECT DISTINCT - col0 DIV col0 + + ( ( col1 ) ) FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - col0 / col0 + + ( ( col1 ) ) FROM tab1
----
12
25
9
query I rowsort
SELECT ALL col1 * - col1 + cor0.col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT - cor0.col0 - col0 * + col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - col2 * - col1 + cor0.col0 * col1 * 32 FROM tab0 cor0
----
108737
266630
68886
onlyif mysql # use DIV operator for integer division
query I rowsort label-6469
SELECT + col2 DIV + col0 - col2 FROM tab0 AS cor0
----
-1
-32
-82
skipif mysql # not compatible
query I rowsort label-6469
SELECT + col2 / + col0 - col2 FROM tab0 AS cor0
----
-1
-32
-82
query I rowsort
SELECT DISTINCT cor1.col0 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 52 * cor0.col0 col2 FROM tab0 cor0
----
1248
1820
4628
query I rowsort
SELECT + 37 * - 79 AS col1 FROM tab2 AS cor0
----
-2923
-2923
-2923
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT DISTINCT - ( 65 ) + col1 AS col0 FROM tab0 AS cor0
----
21
26
32
query I rowsort
SELECT DISTINCT + + 96 - + col2 AS col2 FROM tab2 AS cor0
----
58
69
70
query I rowsort
SELECT + - ( + col0 ) - col0 FROM tab1 AS cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6477
SELECT ALL + cor0.col1 DIV - col0 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + cor0.col1 / - col0 - - cor0.col0 AS col2 FROM tab1 AS cor0
----
-5
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT + - CAST( NULL AS DECIMAL ) * 29 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6478
SELECT + - CAST ( NULL AS REAL ) * 29 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor2.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT - - col1 + + ( col0 ) * 58 AS col2 FROM tab2 AS cor0
----
437
4583
4599
onlyif mysql # use DIV operator for integer division
query I rowsort label-6481
SELECT + + 89 * col1 DIV + 44 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-6481
SELECT + + 89 * col1 / + 44 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - 39 * col1 AS col0 FROM tab1
----
-1014
-390
-507
query I rowsort
SELECT ALL + - 97 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-123
-124
-135
query I rowsort
SELECT + 86 * - col2 FROM tab2 cor0
----
-2236
-2322
-3268
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6485
SELECT + - 67 * col0 + + CAST( - 88 AS SIGNED ) FROM tab2 AS cor0
----
-5314
-5381
-557
skipif mysql # not compatible
query I rowsort label-6485
SELECT + - 67 * col0 + + CAST ( - 88 AS INTEGER ) FROM tab2 AS cor0
----
-5314
-5381
-557
query I rowsort
SELECT ALL + + col1 + - col1 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6487
SELECT ALL - CAST( col1 AS SIGNED ) + - col0 AS col2 FROM tab2
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-6487
SELECT ALL - CAST ( col1 AS INTEGER ) + - col0 AS col2 FROM tab2
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6488
SELECT ALL - tab1.col2 + - col2 DIV - col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6488
SELECT ALL - tab1.col2 + - col2 / - col2 FROM tab1
----
-53
-56
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6489
SELECT + CAST( NULL AS DECIMAL ) / col2 + - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6489
SELECT + CAST ( NULL AS REAL ) / col2 + - col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6490
SELECT + 43 DIV 17 AS col0 FROM tab1
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6490
SELECT + 43 / 17 AS col0 FROM tab1
----
2
2
2
query I rowsort
SELECT ALL 79 + + col2 FROM tab2
----
105
106
117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - ( tab2.col2 ) col2 FROM tab2
----
55
58
85
query I rowsort
SELECT 82 - col0 * tab1.col2 FROM tab1
----
-3566
-7598
-80
query I rowsort
SELECT DISTINCT - 8 FROM tab2, tab0, tab1 cor0
----
-8
query I rowsort
SELECT ALL col2 + 98 * + col0 AS col2 FROM tab2
----
713
7670
7780
onlyif mysql # use DIV operator for integer division
query I rowsort label-6496
SELECT + 32 DIV - col1 + 46 AS col0 FROM tab2 AS cor0
----
45
45
46
skipif mysql # not compatible
query I rowsort label-6496
SELECT + 32 / - col1 + 46 AS col0 FROM tab2 AS cor0
----
45
45
46
query I rowsort
SELECT DISTINCT + + ( + col0 ) + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - - 45 + + col0 AS col0 FROM tab0 AS cor0
----
134
69
80
query I rowsort
SELECT - 53 + + tab1.col1 * col2 AS col2 FROM tab1
----
1195
1351
517
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6500
SELECT DISTINCT + CAST( tab1.col0 AS SIGNED ) + col1 * + col0 FROM tab1
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-6500
SELECT DISTINCT + CAST ( tab1.col0 AS INTEGER ) + col1 * + col0 FROM tab1
----
1120
704
81
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * + col2 + - CAST ( col0 * - col2 AS REAL ) FROM tab1
----
1566
4218
8928
query I rowsort
SELECT ALL 10 + col1 AS col1 FROM tab2
----
27
41
69
query I rowsort
SELECT ALL + 14 + - col1 AS col1 FROM tab0
----
-72
-77
-83
query I rowsort
SELECT DISTINCT - 29 AS col2 FROM tab0 cor0
----
-29
query I rowsort
SELECT DISTINCT 32 * col0 AS col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT + col2 + cor0.col2 + + cor0.col2 * - col0 AS col1 FROM tab1 cor0
----
-3534
-54
-7488
query I rowsort
SELECT 30 * col0 AS col0 FROM tab1
----
1920
2400
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6508
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1 FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1 FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col1 * + 25 FROM tab2
----
1475
425
775
query I rowsort
SELECT col0 + - col0 * - 23 * + col0 FROM tab2
----
1134
140010
143622
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 88 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
query I rowsort
SELECT ALL - cor0.col2 + + col0 * + col0 FROM tab2 cor0
----
22
6058
6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT ALL + col2 * ( tab0.col1 ) DIV tab0.col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6513
SELECT ALL + col2 * ( tab0.col1 ) / tab0.col2 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6514
SELECT DISTINCT + col0 DIV CAST( col1 + col1 AS SIGNED ) AS col1 FROM tab1
----
0
3
skipif mysql # not compatible
query I rowsort label-6514
SELECT DISTINCT + col0 / CAST ( col1 + col1 AS INTEGER ) AS col1 FROM tab1
----
0
3
query I rowsort
SELECT ALL + col0 + col0 * col2 * col1 AS col1 FROM tab0 cor0
----
3430
664207
68136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6516
SELECT - + CAST( NULL AS DECIMAL ) + - 80 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6516
SELECT - + CAST ( NULL AS REAL ) + - 80 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 3 * col2 AS col2 FROM tab0 AS cor0
----
-246
-3
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6518
SELECT DISTINCT - col0 DIV col1 AS col2 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-6518
SELECT DISTINCT - col0 / col1 AS col2 FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT - ( + 25 ) * cor0.col1 + col2 FROM tab0 AS cor0
----
-2117
-2193
-2424
query I rowsort
SELECT + 35 * col0 * col1 FROM tab2 AS cor0
----
161070
47005
7595
onlyif mysql # use DIV operator for integer division
query I rowsort label-6521
SELECT ALL - col1 DIV col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL - col1 / col0 AS col0 FROM tab0 cor0
----
-1
-2
-3
query I rowsort
SELECT ALL - + ( - cor0.col2 ) * - col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6523
SELECT ALL - 83 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL - 83 / col1 AS col2 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT col0 * - ( - 31 ) FROM tab1
----
1984
2480
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 30 ) col1 FROM tab1 AS cor0
----
30
30
30
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6526
SELECT ( + col1 * col1 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6526
SELECT ( + col1 * col1 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + ( ( col1 ) ) * cor0.col0 + 59 AS col2 FROM tab1 AS cor0
----
1099
137
699
query I rowsort
SELECT ( + col1 ) * - col0 - + col0 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT - col1 * - col0 + col2 + + col0 FROM tab0 cor0
----
2121
3431
8270
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 97 col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT ( + 25 ) + cor0.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7a92245935dd6a9f007d947403efe5c5
query I rowsort
SELECT - col2 * cor0.col1 + - col0 * - cor0.col1 + - col1 AS col1 FROM tab1 AS cor0
----
-1352
-221
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-6533
SELECT + col2 * col2 DIV - col0 - col2 AS col0 FROM tab0 cor0
----
-1
-157
-78
skipif mysql # not compatible
query I rowsort label-6533
SELECT + col2 * col2 / - col0 - col2 AS col0 FROM tab0 cor0
----
-1
-157
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT + col2 * + col1 + - col2 + - ( - cor0.col2 ) * CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
14104
3894
97
skipif mysql # not compatible
query I rowsort label-6534
SELECT + col2 * + col1 + - col2 + - ( - cor0.col2 ) * CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
14104
3894
97
query I rowsort
SELECT DISTINCT - 8 AS col1 FROM tab2
----
-8
query I rowsort
SELECT + 48 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT DISTINCT + col0 * + col1 * - col0 AS col0 FROM tab0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6538
SELECT + 72 * tab1.col0 DIV col1 FROM tab1
----
443
460
8
skipif mysql # not compatible
query I rowsort label-6538
SELECT + 72 * tab1.col0 / col1 FROM tab1
----
443
460
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 42 * 67 col0 FROM tab2 AS cor0
----
2821
2892
2893
query I rowsort
SELECT - + col1 * col2 + + ( col2 ) * 13 FROM tab1 cor0
----
-702
0
171
query I rowsort
SELECT DISTINCT col2 * ( col2 ) FROM tab2
----
1444
676
729
query I rowsort
SELECT col1 * - 38 AS col1 FROM tab1
----
-380
-494
-988
query I rowsort
SELECT col1 * 67 - + col0 FROM tab1
----
1739
606
791
query I rowsort
SELECT + col0 * col0 + cor0.col0 - col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6545
SELECT + col1 + col1 DIV 85 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6545
SELECT + col1 + col1 / 85 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6546
SELECT - col2 * 27 + - col0 * - col2 + col1 DIV ( + col2 ) col0 FROM tab0 AS cor0
----
-97
105
5085
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6546
SELECT - col2 * 27 + - col0 * - col2 + col1 / ( + col2 ) col0 FROM tab0 AS cor0
----
-97
105
5085
query I rowsort
SELECT + col0 * - ( - 36 ) FROM tab0 cor0
----
1260
3204
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-6548
SELECT DISTINCT - col2 DIV + CAST( 98 * + col2 AS SIGNED ) + + 1 AS col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-6548
SELECT DISTINCT - col2 / + CAST ( 98 * + col2 AS INTEGER ) + + 1 AS col0 FROM tab1
----
1
query I rowsort
SELECT ALL col2 + ( col2 ) * + col0 * + 33 FROM tab0
----
1156
240916
26169
query I rowsort
SELECT DISTINCT + col2 + + col1 + - tab0.col0 FROM tab0
----
63
84
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-6551
SELECT DISTINCT + tab1.col1 + - ( - 64 ) DIV - col2 FROM tab1
----
13
25
9
skipif mysql # not compatible
query I rowsort label-6551
SELECT DISTINCT + tab1.col1 + - ( - 64 ) / - col2 FROM tab1
----
13
25
9
query I rowsort
SELECT + tab1.col0 * + 26 AS col1 FROM tab1
----
1664
2080
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6553
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + - col0 - + col1 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 + + 71 col2 FROM tab2 AS cor0
----
33
44
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6556
SELECT DISTINCT - cor0.col1 * - CAST( - 3 AS SIGNED ) + cor0.col0 DIV 79 + + col0 FROM tab2 cor0
----
-86
-99
29
skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT - cor0.col1 * - CAST ( - 3 AS INTEGER ) + cor0.col0 / 79 + + col0 FROM tab2 cor0
----
-86
-99
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6557
SELECT - - cor0.col1 + + CAST( NULL AS SIGNED ) / + col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6557
SELECT - - cor0.col1 + + CAST ( NULL AS INTEGER ) / + col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 * col0 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - col2 * col1 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - + 49 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT ALL 76 * - col1 AS col2 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT + - 2 + ( col0 ) FROM tab2 AS cor0
----
5
76
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-6563
SELECT ALL - 55 DIV - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-6563
SELECT ALL - 55 / - cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT DISTINCT 27 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT - col0 * col1 + col0 * - ( + col2 * col1 ) FROM tab1 AS cor0
----
-100880
-37120
-4290
query I rowsort
SELECT ALL - ( col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col2 + 45 * + col1 FROM tab2 AS cor0
----
1422
2681
803
onlyif mysql # use DIV operator for integer division
query I rowsort label-6569
SELECT DISTINCT - col0 + 57 DIV - col2 FROM tab0 cor0
----
-25
-89
-92
skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - col0 + 57 / - col2 FROM tab0 cor0
----
-25
-89
-92
query I rowsort
SELECT - tab1.col1 + 79 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 531b5515015f78b0695e5b09d01a3ed4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6571
SELECT + col1 * CAST( - ( col2 ) AS SIGNED ) col0 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6571
SELECT + col1 * CAST ( - ( col2 ) AS INTEGER ) col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - ( col2 ) + cor0.col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6573
SELECT + col1 DIV - 99 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6573
SELECT + col1 / - 99 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6575
SELECT DISTINCT 68 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6575
SELECT DISTINCT 68 / - col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + + cor0.col1 + - cor0.col1 FROM tab0 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6577
SELECT - 7 DIV - cor0.col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6577
SELECT - 7 / - cor0.col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT - - 58 + col2 AS col2 FROM tab1 AS cor0
----
112
115
154
query I rowsort
SELECT DISTINCT - tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - tab1.col0 + - 40 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to aeedff0ba945024a53cbb7a8a0259a01
query I rowsort
SELECT - - 18 AS col1 FROM tab1 AS cor0
----
18
18
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL col0 + + col1 * - col2 + col2 AS col1 FROM tab0 AS cor0
----
-2781
-61
-7291
query I rowsort
SELECT ( - col1 + col0 ) AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL col1 + col1 * cor0.col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col2 * - 69 + col0 AS col1 FROM tab2 AS cor0
----
-1716
-1856
-2543
query I rowsort
SELECT - col0 * col1 * - 20 + - col1 * col0 FROM tab0 cor0
----
153881
39216
64505
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6588
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) * col1 + col0 * ( + col0 ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6588
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) * col1 + col0 * ( + col0 ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT + cor0.col2 * 88 + 39 * col2 - + 8 AS col0 FROM tab0 AS cor0
----
10406
119
4183
query I rowsort
SELECT ALL 16 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT ALL tab0.col2 * + col2 + - tab0.col1 * - tab0.col1 FROM tab0
----
15005
8485
9410
query I rowsort
SELECT 0 + - col2 * - col2 - + 15 FROM tab1
----
2901
3234
9201
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6593
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6593
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 FROM tab2
----
NULL
query I rowsort
SELECT ALL + col0 + col1 * + 9 FROM tab1 AS cor0
----
154
197
237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + - col0 col2 FROM tab2
----
42
6006
6162
query I rowsort
SELECT col0 * + 27 + + col0 AS col2 FROM tab2
----
196
2184
2212
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 col2 FROM tab2, tab0 AS cor0
----
45
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1, tab2 AS cor1
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT + 41 * tab0.col2 * - col0 AS col1 FROM tab0
----
-1435
-299218
-32472
query I rowsort
SELECT - col2 + + col2 * + col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL - ( - col0 ) * 43 AS col1 FROM tab0 AS cor0
----
1032
1505
3827
query I rowsort
SELECT - + cor0.col0 * col1 + 16 AS col2 FROM tab0 cor0
----
-2048
-3379
-8083
onlyif mysql # use DIV operator for integer division
query I rowsort label-6603
SELECT - col2 DIV cor0.col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
24
5
6
skipif mysql # not compatible
query I rowsort label-6603
SELECT - col2 / cor0.col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
24
5
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6604
SELECT DISTINCT - - ( cor0.col2 ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT - - ( cor0.col2 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col0 * - col2 + - ( col2 ) FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + cor0.col2 - col2 * cor0.col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-6608
SELECT ALL tab2.col2 DIV - 36 FROM tab2, tab2 cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-6608
SELECT ALL tab2.col2 / - 36 FROM tab2, tab2 cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT ALL - col0 + 20 + + col0 AS col2 FROM tab1 cor0
----
20
20
20
query I rowsort
SELECT cor0.col2 * + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6611
SELECT ALL - cor0.col2 + CAST( NULL AS SIGNED ) * + 27 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6611
SELECT ALL - cor0.col2 + CAST ( NULL AS INTEGER ) * + 27 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 11 ) FROM tab1, tab2 AS cor0
----
11
query I rowsort
SELECT - col1 + - ( col1 ) * + cor0.col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL col2 + + ( col2 ) FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + + cor0.col0 * + ( - 21 ) + col0 * - cor0.col0 FROM tab0 AS cor0
----
-1080
-1960
-9790
query I rowsort
SELECT ALL - col0 - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT - 45 * col1 DIV col1 + 47 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-6617
SELECT - 45 * col1 / col1 + 47 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT + + 17 * col0 + + col2 FROM tab1 AS cor0
----
105
1145
1456
query I rowsort
SELECT DISTINCT + 53 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-7245
-739
18
query I rowsort
SELECT 50 + col0 * + col0 * - col1 FROM tab2 cor0
----
-106047
-1469
-358906
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 98 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT ALL col2 * 7 FROM tab1
----
378
399
672
query I rowsort
SELECT ALL - 60 + col2 AS col2 FROM tab0 AS cor0
----
-27
-59
22
query I rowsort
SELECT + cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 18 col1 FROM tab2 AS cor0
----
18
query I rowsort
SELECT + col1 + + ( + col1 ) * + 86 FROM tab1 AS cor0
----
1131
2262
870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col2 * + ( cor0.col1 ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6629
SELECT 14 DIV + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6629
SELECT 14 / + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6630
SELECT DISTINCT + col1 DIV ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT + col1 / ( - col1 ) AS col2 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT - 39 * - 87 AS col0 FROM tab2 AS cor0
----
3393
3393
3393
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 col0 FROM tab2 AS cor0
----
10
10
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6633
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 53 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 53 FROM tab2 cor0
----
NULL
query I rowsort
SELECT + ( ( col1 ) ) * col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + + col0 + - col0 * col0 * col0 FROM tab0 AS cor0
----
-13800
-42840
-704880
query I rowsort
SELECT + - col2 + col1 + + col1 AS col2 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT col0 + col0 + + col1 FROM tab2 AS cor0
----
175
215
45
query I rowsort
SELECT + col0 + + 78 + col2 * + 62 AS col1 FROM tab0
----
175
2148
5251
query I rowsort
SELECT ALL - col1 + cor0.col0 * ( col2 ) + 9 FROM tab2 AS cor0
----
167
1978
2994
query I rowsort
SELECT DISTINCT + 97 FROM tab2, tab1 cor0, tab0 AS cor1
----
97
query I rowsort
SELECT DISTINCT col1 + col1 * + col0 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + col2 * col0 + - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT col0 * col1 * + 40 + tab1.col2 AS col1 FROM tab1
----
25657
3174
41696
query I rowsort
SELECT DISTINCT ( - col0 ) + - col1 AS col2 FROM tab2
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 * + ( col1 + col0 ) col2 FROM tab1
----
1209
740
754
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab0, tab2, tab1 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT - 79 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 3abaf25c7c70ca51adcfa7c848319730
query I rowsort
SELECT ALL 77 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT DISTINCT - col2 * col2 - 14 FROM tab0 AS cor0
----
-1103
-15
-6738
query I rowsort
SELECT cor0.col0 * + col1 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT 1 * + tab2.col0 + 77 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 8f2666a775ac1f4dda54c2ccfcdbbcd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 23 col2 FROM tab0, tab2, tab0 AS cor0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 92 - col0 * col2 * + col2 col0 FROM tab0 AS cor0
----
-18224
-590064
8889
query I rowsort
SELECT ALL - - col0 + col1 * + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col2 * col2 + + ( - col0 ) AS col2 FROM tab1 AS cor0
----
2913
3185
9136
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6656
SELECT DISTINCT + col1 / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT + col1 / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 36 + - col2 * + 23 * - tab2.col0 FROM tab2
----
4383
46680
69082
query I rowsort
SELECT - 32 * + col2 AS col2 FROM tab1
----
-1728
-1824
-3072
query I rowsort
SELECT - + col0 * - cor0.col2 + + col0 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT col2 * - ( - col0 * + col1 ) FROM tab2
----
119652
51034
5859
query I rowsort
SELECT + 7 * - 92 AS col1 FROM tab1 AS cor0
----
-644
-644
-644
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6662
SELECT - CAST( + col0 AS SIGNED ) * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6662
SELECT - CAST ( + col0 AS INTEGER ) * col0 col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT cor0.col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * + cor0.col1 + col0 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT 91 + - col2 AS col2 FROM tab0 AS cor0
----
58
9
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6666
SELECT + col2 * col0 + + col1 * + CAST( - 35 AS SIGNED ) AS col2 FROM tab1 cor0
----
-748
3298
7225
skipif mysql # not compatible
query I rowsort label-6666
SELECT + col2 * col0 + + col1 * + CAST ( - 35 AS INTEGER ) AS col2 FROM tab1 cor0
----
-748
3298
7225
query I rowsort
SELECT - + col2 * - col1 + + col0 * col1 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT - 41 * + col2 * + col1 FROM tab0 AS cor0
----
-116358
-305942
-3977
query I rowsort
SELECT - cor0.col1 * ( - col0 ) - + 71 * + 98 AS col2 FROM tab2 AS cor0
----
-2356
-5615
-6741
onlyif mysql # use DIV operator for integer division
query I rowsort label-6670
SELECT + col0 * col1 - col0 DIV col1 FROM tab1 cor0
----
1034
634
78
skipif mysql # not compatible
query I rowsort label-6670
SELECT + col0 * col1 - col0 / col1 FROM tab1 cor0
----
1034
634
78
query I rowsort
SELECT 34 * + col0 + - col0 * 1 AS col1 FROM tab0
----
1155
2937
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6672
SELECT 23 DIV + col0 + - col1 + + ( - col0 ) FROM tab2
----
-137
-35
-96
skipif mysql # not compatible
query I rowsort label-6672
SELECT 23 / + col0 + - col1 + + ( - col0 ) FROM tab2
----
-137
-35
-96
query I rowsort
SELECT DISTINCT + tab0.col1 * tab0.col1 - col1 * - ( + col0 ) AS col2 FROM tab0
----
12804
16380
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-6674
SELECT + 16 DIV 58 + tab1.col0 AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6674
SELECT + 16 / 58 + tab1.col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT - tab1.col1 - - ( col1 ) * - col2 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT - col1 + - col1 * tab0.col2 AS col2 FROM tab0
----
-194
-2924
-7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6678
SELECT col0 + + col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6678
SELECT col0 + + col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * col1 * - col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + col1 * + col1 + + tab2.col1 * - col1 AS col0 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + 14 * + cor0.col1 * - col1 FROM tab0 AS cor0
----
-103544
-115934
-131726
query I rowsort
SELECT col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + - ( - col0 ) * 78 AS col1 FROM tab2 cor0
----
546
6084
6162
query I rowsort
SELECT + col2 + col0 * col0 * col2 AS col2 FROM tab0 AS cor0
----
1226
19041
649604
query I rowsort
SELECT ALL 3 * - col0 * col2 AS col2 FROM tab1 AS cor0
----
-10944
-23040
-486
query I rowsort
SELECT ALL + - 69 + + col0 AS col2 FROM tab0 AS cor0
----
-34
-45
20
query I rowsort
SELECT - - ( - col2 ) - 91 FROM tab0 AS cor0
----
-124
-173
-92
query I rowsort
SELECT DISTINCT - ( col0 ) + - 8 FROM tab0 AS cor0
----
-32
-43
-97
query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT col2 * ( - 78 ) FROM tab1 AS cor0
----
-4212
-4446
-7488
query I rowsort
SELECT + - col0 * ( - 29 ) FROM tab2 AS cor0
----
203
2262
2291
onlyif mysql # use DIV operator for integer division
query I rowsort label-6692
SELECT DISTINCT + col0 * col1 DIV 6 + col0 * - col0 FROM tab2 AS cor0
----
-13
-5317
-6018
skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT + col0 * col1 / 6 + col0 * - col0 FROM tab2 AS cor0
----
-13
-5317
-6018
onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT - - col2 DIV + ( + col0 ) FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6693
SELECT - - col2 / + ( + col0 ) FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT + - ( + 93 ) AS col0 FROM tab2 AS cor0
----
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( + col2 ) ) + - col2 col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6696
SELECT + - 98 DIV - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6696
SELECT + - 98 / - cor0.col2 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - 88 * 72 FROM tab0, tab2 AS cor0
----
-6336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col0 col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6699
SELECT ALL - + col1 + - CAST( + 54 + col0 AS SIGNED ) * + 8 FROM tab2 cor0
----
-1081
-1115
-519
skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - + col1 + - CAST ( + 54 + col0 AS INTEGER ) * + 8 FROM tab2 cor0
----
-1081
-1115
-519
query I rowsort
SELECT DISTINCT + col1 * col1 + + col1 * cor0.col0 + + 15 * cor0.col2 FROM tab0 cor0
----
12819
17610
9955
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6701
SELECT DISTINCT + col1 + - CAST( col2 * + col1 AS SIGNED ) + + 56 FROM tab1 AS cor0
----
-1179
-1322
-504
skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT + col1 + - CAST ( col2 * + col1 AS INTEGER ) + + 56 FROM tab1 AS cor0
----
-1179
-1322
-504
query I rowsort
SELECT ALL col1 * col1 + cor0.col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT col0 * col0 + col1 * + tab0.col1 AS col1 FROM tab0
----
10634
16202
7972
onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT col1 + + ( - col1 ) DIV - col1 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-6704
SELECT col1 + + ( - col1 ) / - col1 FROM tab2
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 17 col2 FROM tab2
----
43
44
55
query I rowsort
SELECT - + col0 + + 47 FROM tab1 cor0
----
-17
-33
44
query I rowsort
SELECT - - col0 + col2 * 85 FROM tab1 AS cor0
----
4593
4909
8240
query I rowsort
SELECT - - cor0.col0 - - 74 * + 14 AS col0 FROM tab2 AS cor0
----
1043
1114
1115
query I rowsort
SELECT ALL + col1 + 64 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT DISTINCT - - col2 * - col1 + col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-1315
-1381
-624
query I rowsort
SELECT DISTINCT + col2 * col1 * col2 AS col0 FROM tab1 cor0
----
119808
32490
75816
query I rowsort
SELECT ALL - col2 + - cor0.col0 * col0 * ( col2 ) AS col1 FROM tab1 AS cor0
----
-233529
-540
-614496
query I rowsort
SELECT DISTINCT + 66 + col1 * col0 FROM tab1
----
1106
144
706
query I rowsort
SELECT + 29 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT ( + col0 ) * - col0 AS col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + + 19 AS col1 FROM tab2 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT + col2 - + col0 * + col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT 52 * + col0 * cor0.col0 FROM tab1 AS cor0
----
212992
332800
468
query I rowsort
SELECT ALL - cor0.col1 + + col0 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT - + col1 + col1 * ( + col2 ) FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - 89 * - col2 AS col0 FROM tab0
----
2937
7298
89
query I rowsort
SELECT DISTINCT - 66 * col2 AS col2 FROM tab1 AS cor0
----
-3564
-3762
-6336
onlyif mysql # use DIV operator for integer division
query I rowsort label-6723
SELECT + + 17 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6723
SELECT + + 17 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 70 * col2 FROM tab0 AS cor0
----
-2310
-5740
-70
query I rowsort
SELECT ALL - 89 + col2 + - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-142
-185
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 col0 FROM tab1 AS cor0
----
-28
-28
-28
query I rowsort
SELECT ALL + col0 * col2 + + 46 FROM tab2 cor0
----
2074
235
3048
query I rowsort
SELECT ALL 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT 14 + cor0.col0 * 43 AS col1 FROM tab2 AS cor0
----
315
3368
3411
onlyif mysql # use DIV operator for integer division
query I rowsort label-6730
SELECT ALL + col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + col0 / - col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT + col1 * - cor0.col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + 33 AS col0 FROM tab1 AS cor0
----
33
33
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - 80 col1 FROM tab2 AS cor0
----
-1
-2
-73
query I rowsort
SELECT col0 * - 10 + - col0 FROM tab2 AS cor0
----
-77
-858
-869
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + + col0 col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT + 95 + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 6dd2a79a8389715cd5d45ab6791c551f
query I rowsort
SELECT ( col2 * col1 + col0 * - col1 ) FROM tab0
----
-3298
-637
774
query I rowsort
SELECT - 98 * col0 AS col1 FROM tab2
----
-686
-7644
-7742
query I rowsort
SELECT col2 * + 94 FROM tab0
----
3102
7708
94
query I rowsort
SELECT DISTINCT - cor0.col1 * + col1 + col0 * + col1 FROM tab2 AS cor0
----
-744
1054
1121
query I rowsort
SELECT + 89 + + col2 * + cor0.col2 FROM tab0 AS cor0
----
1178
6813
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT + ( - 74 ) * col1 + cor0.col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1259
-2295
-4367
skipif mysql # not compatible
query I rowsort label-6742
SELECT + ( - 74 ) * col1 + cor0.col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1259
-2295
-4367
query I rowsort
SELECT ALL + - col2 * + col2 + + col0 FROM tab2 cor0
----
-1365
-598
-722
query I rowsort
SELECT - col1 * + col0 + 1 AS col0 FROM tab2 AS cor0
----
-1342
-216
-4601
query I rowsort
SELECT + ( col1 ) * col2 + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col0 * - cor0.col2 + + col2 * ( - col1 ) FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT DISTINCT + + 95 + col1 AS col1 FROM tab2 AS cor0
----
112
126
154
query I rowsort
SELECT - - ( + col2 ) * col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL 93 + col2 FROM tab2
----
119
120
131
query I rowsort
SELECT ALL + 29 * - col0 + + tab2.col2 FROM tab2
----
-176
-2236
-2253
query I rowsort
SELECT ALL col1 * + col1 * col2 - col1 FROM tab1
----
16211
36478
5690
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6752
SELECT + col2 * - 50 * ( col0 + CAST( + 98 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
-272700
-461700
-854400
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6752
SELECT + col2 * - 50 * ( col0 + CAST ( + 98 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
-272700
-461700
-854400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6753
SELECT + col0 + - cor0.col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-6753
SELECT + col0 + - cor0.col1 / col2 AS col0 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT - cor0.col0 - 23 FROM tab2 AS cor0
----
-101
-102
-30
query I rowsort
SELECT - cor0.col0 + + col2 AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + col0 + - col1 + - col1 FROM tab1 AS cor0
----
-49
44
54
query I rowsort
SELECT - - 36 AS col2 FROM tab2 cor0
----
36
36
36
query I rowsort
SELECT DISTINCT - - ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT - + cor0.col0 DIV + 16 FROM tab1, tab1 AS cor0
----
9 values hashing to 9f24140d47435d5e1b8e396af5572336
skipif mysql # not compatible
query I rowsort label-6759
SELECT - + cor0.col0 / + 16 FROM tab1, tab1 AS cor0
----
9 values hashing to 9f24140d47435d5e1b8e396af5572336
query I rowsort
SELECT DISTINCT + col2 * - 26 AS col1 FROM tab1 AS cor0
----
-1404
-1482
-2496
onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT ALL + ( + col2 ) DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL + ( + col2 ) / col0 FROM tab2 AS cor0
----
0
0
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 col0 FROM tab0 AS cor0
----
32
query I rowsort
SELECT + + col2 + col0 * col1 * + col1 + 29 AS col1 FROM tab2 AS cor0
----
22898
271573
6783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col0 * - col1 ) col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - 73 AS col0 FROM tab0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT - col0 * + col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 91 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT ALL + col0 + ( cor0.col2 ) AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + - col0 * - 75 FROM tab1 AS cor0
----
225
4800
6000
onlyif mysql # use DIV operator for integer division
query I rowsort label-6770
SELECT DISTINCT - + col0 DIV + 67 AS col1 FROM tab1 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6770
SELECT DISTINCT - + col0 / + 67 AS col1 FROM tab1 cor0
----
-1
0
query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab0, tab1, tab0 AS cor0
----
-63
query I rowsort
SELECT ALL + + col0 * col1 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col1 * col1 col0 FROM tab0 AS cor0
----
7310
8190
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6774
SELECT DISTINCT + col2 + + col0 * 51 DIV - col0 FROM tab0 AS cor0
----
-18
-50
31
skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT + col2 + + col0 * 51 / - col0 FROM tab0 AS cor0
----
-18
-50
31
query I rowsort
SELECT + tab0.col0 * + ( 87 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 43e812f295563e16ec5f372043a8e684
query I rowsort
SELECT DISTINCT + cor0.col1 * 12 FROM tab2 cor0
----
204
372
708
query I rowsort
SELECT ALL - ( 30 ) AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT DISTINCT - col2 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1482
-702
-756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6779
SELECT + col2 + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6779
SELECT + col2 + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6780
SELECT + tab2.col2 * CAST( NULL AS SIGNED ) - - 75 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6780
SELECT + tab2.col2 * CAST ( NULL AS INTEGER ) - - 75 * col1 AS col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6781
SELECT + + CAST( 13 AS SIGNED ) * - cor0.col0 + - 76 AS col1 FROM tab0 AS cor0
----
-1233
-388
-531
skipif mysql # not compatible
query I rowsort label-6781
SELECT + + CAST ( 13 AS INTEGER ) * - cor0.col0 + - 76 AS col1 FROM tab0 AS cor0
----
-1233
-388
-531
query I rowsort
SELECT col1 + - 93 FROM tab0
----
-2
-7
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6783
SELECT + col2 + - CAST( NULL AS SIGNED ) * + ( + col1 ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6783
SELECT + col2 + - CAST ( NULL AS INTEGER ) * + ( + col1 ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab1.col2 * - ( 17 ) * col0 AS col1 FROM tab1
----
-130560
-2754
-62016
query I rowsort
SELECT DISTINCT + 99 AS col0 FROM tab1, tab0 AS cor0
----
99
query I rowsort
SELECT + tab1.col0 * - 58 FROM tab1
----
-174
-3712
-4640
query I rowsort
SELECT - - col1 * cor0.col0 + + ( col2 ) * + col1 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT 49 * col1 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT ALL + + ( + col1 ) * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT 12 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT ALL col1 * + col2 + + col1 AS col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ALL + 40 + - 26 FROM tab2
----
14
14
14
query I rowsort
SELECT - 81 * col1 + col2 AS col0 FROM tab1
----
-2052
-753
-957
query I rowsort
SELECT ALL col0 + - col2 * tab2.col1 AS col2 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT ALL + col1 * col1 + + col1 * + col1 FROM tab0
----
14792
16562
18818
query I rowsort
SELECT + col2 + col2 + - col1 FROM tab1
----
104
179
82
query I rowsort
SELECT DISTINCT col2 - - col2 AS col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - + 22 * - col0 + col2 AS col0 FROM tab1 cor0
----
120
1465
1856
onlyif mysql # use DIV operator for integer division
query I rowsort label-6799
SELECT - - col2 DIV col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-6799
SELECT - - col2 / col2 + col1 AS col0 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT ( - col0 ) * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 1 col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 54 * tab2.col1 FROM tab2
----
1674
3186
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-6803
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV col0 AS col2 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) / col0 AS col2 FROM tab2
----
-4
0
query I rowsort
SELECT + - tab1.col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + cor0.col0 ) col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 91 * - col0 col1 FROM tab0 AS cor0
----
-2184
-3185
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6807
SELECT + col0 + col0 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
3
58
74
skipif mysql # not compatible
query I rowsort label-6807
SELECT + col0 + col0 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
3
58
74
query I rowsort
SELECT ALL ( - col2 ) FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + col2 * 81 col1 FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT ALL - + 1 * col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 31 * + col1 AS col2 FROM tab2 AS cor0
----
1829
527
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6812
SELECT DISTINCT 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-6812
SELECT DISTINCT col1 / + col2 col1 FROM tab1 cor0
----
0
query I rowsort
SELECT - ( + cor0.col2 ) * - col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL + ( cor0.col1 ) * - col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col2 * col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + 71 * col1 AS col2 FROM tab2 AS cor0
----
1207
2201
4189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 * + col2 col1 FROM tab2
----
-598
-621
-874
query I rowsort
SELECT DISTINCT - - col2 - - col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT - cor0.col0 * 3 + - cor0.col2 DIV + cor0.col0 FROM tab2 AS cor0
----
-234
-237
-24
skipif mysql # not compatible
query I rowsort label-6819
SELECT - cor0.col0 * 3 + - cor0.col2 / + cor0.col0 FROM tab2 AS cor0
----
-234
-237
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6820
SELECT ALL - col0 * col2 DIV ( col2 ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - col0 * col2 / ( col2 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - cor0.col0 * + 47 * - col0 FROM tab2 AS cor0
----
2303
285948
293327
query I rowsort
SELECT - col0 + ( col1 ) * col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT col0 + - 0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT cor0.col1 * - 63 + - col0 AS col1 FROM tab1 AS cor0
----
-1641
-694
-899
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 + ( col0 ) col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6827
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * - 80 * - 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-6827
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * - 80 * - col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6829
SELECT DISTINCT + cor0.col2 + + CAST( + 90 + col0 * + 41 AS SIGNED ) AS col2 FROM tab2 cor0
----
3314
3367
404
skipif mysql # not compatible
query I rowsort label-6829
SELECT DISTINCT + cor0.col2 + + CAST ( + 90 + col0 * + 41 AS INTEGER ) AS col2 FROM tab2 cor0
----
3314
3367
404
query I rowsort
SELECT - col2 * - cor0.col1 + + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - - col0 * + col2 + cor0.col2 * col1 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT - col2 * - ( - col2 ) + + col2 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-23328
-25992
-40560
query I rowsort
SELECT DISTINCT col2 + - 84 AS col2 FROM tab1
----
-27
-30
12
query I rowsort
SELECT col2 * - col0 + col2 * + col2 FROM tab1
----
-399
1536
2754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 95 col0 FROM tab0 AS cor0
----
-95
-95
-95
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT + col2 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + cor0.col1 col2 FROM tab2 AS cor0
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - tab2.col2 + - 83 col2 FROM tab2
----
1361
593
646
onlyif mysql # use DIV operator for integer division
query I rowsort label-6840
SELECT ALL col0 + 59 DIV ( - col0 ) FROM tab1
----
-16
64
80
skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL col0 + 59 / ( - col0 ) FROM tab1
----
-16
64
80
query I rowsort
SELECT ALL - col0 * - 33 FROM tab2
----
231
2574
2607
query I rowsort
SELECT DISTINCT tab0.col2 + - col2 AS col0 FROM tab0
----
0
query I rowsort
SELECT ALL - col1 * col0 + col0 * col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 + + col2 FROM tab1 cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT DISTINCT col0 + + CAST( 70 AS SIGNED ) + + col1 * - 89 col2 FROM tab2 AS cor0
----
-1364
-2682
-5103
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6845
SELECT DISTINCT col0 + + CAST ( 70 AS INTEGER ) + + col1 * - 89 col2 FROM tab2 AS cor0
----
-1364
-2682
-5103
query I rowsort
SELECT col0 + ( - col1 ) * col1 FROM tab0 cor0
----
-7372
-8192
-9374
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + 34 col2 FROM tab1 AS cor0
----
134
203
710
onlyif mysql # use DIV operator for integer division
query I rowsort label-6848
SELECT col2 DIV + 52 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6848
SELECT col2 / + 52 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6849
SELECT - col2 * CAST( col0 + + col2 AS SIGNED ) FROM tab0
----
-14022
-1881
-36
skipif mysql # not compatible
query I rowsort label-6849
SELECT - col2 * CAST ( col0 + + col2 AS INTEGER ) FROM tab0
----
-14022
-1881
-36
query I rowsort
SELECT + + col2 * - 24 + col1 AS col2 FROM tab2 AS cor0
----
-565
-617
-895
query I rowsort
SELECT DISTINCT 48 * - cor0.col1 AS col1 FROM tab0, tab0 cor0
----
-4128
-4368
-4656
query I rowsort
SELECT + col1 * - 56 - cor0.col1 * col0 FROM tab2 AS cor0
----
-1953
-2295
-7906
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - tab2.col0 * col0 col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT ( - col2 ) > col0
----
54
57
96
query I rowsort
SELECT col2 + col2 * + col2 + + col1 * + col0 AS col1 FROM tab0
----
14905
3186
3397
query I rowsort
SELECT - col0 * + col1 - col2 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - col2 * - col1 + tab2.col0 * col1 - - col2 FROM tab2
----
1081
2027
6162
query I rowsort
SELECT ALL cor0.col0 * cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab1 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT + - col2 * - col2 + col1 * col2 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT cor0.col0 / col1 FROM tab2 AS cor0 WHERE NULL IN ( col2 ) OR NOT + cor0.col2 * + col1 NOT BETWEEN NULL AND col2 * col0
----
query I rowsort
SELECT + - col0 * col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - + col0 * col2 + + col1 AS col2 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT ALL + col0 + col2 * + cor0.col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT - + col2 + + col1 * cor0.col1 FROM tab0 AS cor0
----
7363
8199
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + - col1 col1 FROM tab2 AS cor0
----
-23
-51
-9
query I rowsort
SELECT DISTINCT + - col1 + col1 * + col0 AS col2 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT 68 * + cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
503
5330
5410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6870
SELECT + 29 * col2 + CAST( NULL AS SIGNED ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6870
SELECT + 29 * col2 + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6871
SELECT ALL + col1 DIV col1 + + cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-288
-3480
-960
skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL + col1 / col1 + + cor0.col1 * - col1 AS col0 FROM tab2 AS cor0
----
-288
-3480
-960
query I rowsort
SELECT ALL col0 * ( - cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - col1 * + col2 + - 53 FROM tab1 cor0
----
-1301
-1457
-623
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 col2 + 9 * - col2 AS col1 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT DISTINCT - col1 * - 60 + cor0.col1 + + col2 FROM tab0 AS cor0
----
5279
5633
5918
query I rowsort
SELECT DISTINCT - - col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6878
SELECT ALL - - col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL - - col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * col2 + 77 * + 56 AS col0 FROM tab0
----
11036
4313
5401
query III rowsort
SELECT * FROM tab1 WHERE col1 NOT IN ( col0 + col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT + col1 + tab2.col1 DIV col1 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-6882
SELECT + col1 + tab2.col1 / col1 FROM tab2
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * col0 col1 FROM tab1 WHERE col0 > NULL
----
query I rowsort
SELECT DISTINCT + tab1.col0 * + col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6885
SELECT col0 DIV - tab0.col2 + + col1 AS col2 FROM tab0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-6885
SELECT col0 / - tab0.col2 + + col1 AS col2 FROM tab0
----
62
86
90
query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT tab2.col1 - col0 * + col1 AS col0 FROM tab2
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + - tab1.col2 * + col2 col1 FROM tab1
----
-18432
-5832
-6498
query I rowsort
SELECT DISTINCT + col2 * - tab0.col0 + + col2 * col0 AS col2 FROM tab0
----
0
query I rowsort
SELECT + col0 * tab1.col0 - col1 FROM tab1
----
-17
4086
6387
query I rowsort
SELECT ALL - col2 * - tab0.col0 - col1 FROM tab0
----
-62
706
7207
query I rowsort
SELECT col0 FROM tab0 WHERE ( col2 + - col1 * col2 + col2 * + col2 * + col0 ) BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT + col1 + tab1.col2 * tab1.col1 FROM tab1
----
1261
1430
580
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * col1 + col0 * tab1.col1 BETWEEN ( col2 ) AND col2 * - col2 + col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col0 * col2 * - col2 + col0 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT ALL - col0 + col1 * + col1 FROM tab1
----
36
673
89
query I rowsort
SELECT ALL tab2.col0 * col2 * tab2.col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col1 * + col0 + col2 AS col0 FROM tab1
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * - col0 col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT ALL - col1 * + col0 + + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2 WHERE NULL <> ( NULL )
----
query I rowsort
SELECT ALL + col1 * col1 * - col0 + + col1 FROM tab2
----
-22814
-271459
-6696
query I rowsort
SELECT col0 * + col2 + - col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( col2 + col1 ) IN ( - col1 )
----
query I rowsort
SELECT DISTINCT + col1 + col1 * + tab2.col2 + - tab2.col2 AS col1 FROM tab2
----
1567
625
841
onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT ALL - col0 DIV + col2 + col2 - col1 FROM tab0
----
-10
-131
-53
skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL - col0 / + col2 + col2 - col1 FROM tab0
----
-10
-131
-53
query I rowsort
SELECT DISTINCT - ( col0 ) * 30 FROM tab2
----
-210
-2340
-2370
query I rowsort
SELECT ALL 96 + + col1 + + 87 * col0 FROM tab1
----
383
5674
7069
query I rowsort
SELECT ALL tab1.col0 * col1 * col2 + col1 AS col2 FROM tab1
----
36490
4238
99853
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * + col2 + col0 + - col2 col0 FROM tab2 cor0
----
-1300
-1424
-1935
query I rowsort
SELECT ALL - col0 * col1 + ( ( + col1 ) ) AS col1 FROM tab1 cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-6912
SELECT + col0 + - col1 DIV cor0.col2 AS col1 FROM tab0 cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-6912
SELECT + col0 + - col1 / cor0.col2 AS col1 FROM tab0 cor0
----
-62
22
88
query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab0
----
-52
query I rowsort
SELECT ALL + col1 * cor0.col0 + + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + cor0.col0 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT - + col0 + + 5 * + 36 FROM tab1 AS cor0
----
100
116
177
query I rowsort
SELECT DISTINCT + col2 + 73 AS col1 FROM tab1 AS cor0
----
127
130
169
query I rowsort
SELECT DISTINCT + col1 * - 36 - col0 FROM tab2 AS cor0
----
-1123
-2202
-691
query I rowsort
SELECT ALL - col0 * 97 FROM tab0 AS cor0
----
-2328
-3395
-8633
query I rowsort
SELECT ALL - col0 + ( col0 ) * - col2 + - col1 FROM tab2 cor0
----
-2165
-227
-3098
query I rowsort
SELECT DISTINCT - col0 * - 99 + + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-1107
5766
6672
query I rowsort
SELECT + col2 + + col0 * cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL col1 - ( + ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 92 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
onlyif mysql # use DIV operator for integer division
query I rowsort label-6925
SELECT DISTINCT col2 DIV + col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT col2 / + col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT + col2 + 14 * col0 * + col0 FROM tab0 cor0
----
110976
17151
8097
onlyif mysql # use DIV operator for integer division
query I rowsort label-6927
SELECT ALL + ( - col2 ) + col1 DIV tab0.col1 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-6927
SELECT ALL + ( - col2 ) + col1 / tab0.col1 FROM tab0
----
-32
-81
0
query I rowsort
SELECT + col1 + 63 FROM tab2 cor0
----
122
80
94
query I rowsort
SELECT ALL + col0 * - 87 + + col1 AS col2 FROM tab0 AS cor0
----
-2002
-2948
-7652
query I rowsort
SELECT col0 * 71 FROM tab1 AS cor0
----
213
4544
5680
query I rowsort
SELECT DISTINCT - col2 - + 74 AS col2 FROM tab2 AS cor0
----
-100
-101
-112
onlyif mysql # use DIV operator for integer division
query I rowsort label-6932
SELECT DISTINCT cor0.col0 + cor0.col1 DIV 66 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6932
SELECT DISTINCT cor0.col0 + cor0.col1 / 66 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + ( col1 ) * + col2 col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT + col1 * - ( cor0.col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 * + 92 + + col1 FROM tab2
----
2451
2515
3513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6936
SELECT - CAST( NULL AS SIGNED ) * - 89 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6936
SELECT - CAST ( NULL AS INTEGER ) * - 89 AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6937
SELECT + col0 + - 59 DIV - cor0.col2 - + col1 FROM tab0 cor0
----
-2
-3
-61
skipif mysql # not compatible
query I rowsort label-6937
SELECT + col0 + - 59 / - cor0.col2 - + col1 FROM tab0 cor0
----
-2
-3
-61
query I rowsort
SELECT + ( col2 ) + cor0.col2 + - 53 * + col0 AS col2 FROM tab1 cor0
----
-3278
-4048
-51
onlyif mysql # use DIV operator for integer division
query I rowsort label-6939
SELECT DISTINCT + + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT + + col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT col0 * 92 + - col2 FROM tab0 AS cor0
----
2175
3219
8106
query I rowsort
SELECT tab0.col2 + + 7 * + col2 * col1 AS col1 FROM tab0
----
19899
52316
680
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + 91 * + col0 + + col0 AS col0 FROM tab2
----
644
7176
7268
query I rowsort
SELECT ALL - 9 * col1 + col2 * - ( - 96 ) FROM tab0 AS cor0
----
-777
2394
7053
onlyif mysql # use DIV operator for integer division
query I rowsort label-6945
SELECT ALL + + col1 DIV + col1 + col2 * ( 14 ) + + col1 * col1 FROM tab0 AS cor0
----
7859
9424
9430
skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL + + col1 / + col1 + col2 * ( 14 ) + + col1 * col1 FROM tab0 AS cor0
----
7859
9424
9430
query I rowsort
SELECT DISTINCT 46 + col2 FROM tab1 AS cor0
----
100
103
142
query I rowsort
SELECT ALL + 9 AS col0 FROM tab2 cor0
----
9
9
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6948
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6948
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col1 * 10 + + col2 * - col0 AS col1 FROM tab2 AS cor0
----
-1438
-2832
121
query I rowsort
SELECT col2 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + ( + col1 ) + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT ALL - 19 + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-20
-20
-20
skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - 19 + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-20
-20
-20
query I rowsort
SELECT - col0 + - col2 * + cor0.col1 + + col2 * + col0 FROM tab1 AS cor0
----
-1245
3014
6352
query I rowsort
SELECT DISTINCT + col1 + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 73 * cor0.col1 + + col0 FROM tab1 AS cor0
----
1029
1901
794
query I rowsort
SELECT + cor0.col2 * cor0.col2 FROM tab2 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6957
SELECT DISTINCT 75 DIV col0 FROM tab0 AS cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-6957
SELECT DISTINCT 75 / col0 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT + cor0.col2 * + col2 + - 39 + cor0.col2 FROM tab2 AS cor0
----
1443
663
717
query I rowsort
SELECT DISTINCT - cor0.col2 * - cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT col0 + col1 * + 34 * col2 + - col2 FROM tab2 AS cor0
----
22005
28438
52208
query I rowsort
SELECT ALL + + 14 + col0 * - col0 AS col2 FROM tab0 AS cor0
----
-1211
-562
-7907
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6963
SELECT DISTINCT col0 * col0 DIV col1 + - col0 AS col0 FROM tab2 AS cor0
----
-6
25
288
skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT col0 * col0 / col1 + - col0 AS col0 FROM tab2 AS cor0
----
-6
25
288
query I rowsort
SELECT ALL ( + col1 ) * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 87 + - col2 AS col2 FROM tab0 AS cor0
----
5
54
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6966
SELECT + 72 + - col0 DIV - col1 FROM tab0 AS cor0
----
72
72
72
skipif mysql # not compatible
query I rowsort label-6966
SELECT + 72 + - col0 / - col1 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT tab0.col0 * 93 FROM tab0
----
2232
3255
8277
onlyif mysql # use DIV operator for integer division
query I rowsort label-6968
SELECT - 8 * col0 + col0 DIV col0 FROM tab1 AS cor0
----
-23
-511
-639
skipif mysql # not compatible
query I rowsort label-6968
SELECT - 8 * col0 + col0 / col0 FROM tab1 AS cor0
----
-23
-511
-639
query I rowsort
SELECT + cor0.col2 * col2 + + col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT + col0 * - col0 * + col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT + col2 DIV - col0 + - col0 FROM tab0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-6971
SELECT + col2 / - col0 + - col0 FROM tab0
----
-25
-35
-89
query I rowsort
SELECT + col0 * col0 + - col1 * col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT ( + 52 ) * col1 FROM tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT ( + 13 ) * + col0 * col1 FROM tab2 AS cor0
----
17459
2821
59826
query I rowsort
SELECT ALL - cor0.col2 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT + col0 * 20 FROM tab2 AS cor0
----
140
1560
1580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6979
SELECT - CAST( NULL AS SIGNED ) * ( col0 ) + - 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6979
SELECT - CAST ( NULL AS INTEGER ) * ( col0 ) + - 66 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col0 * - col1 + + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - 22 + + col1 AS col1 FROM tab2 cor0
----
-5
37
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6982
SELECT ALL + 74 + - cor0.col1 DIV col0 FROM tab2 AS cor0
----
70
74
74
skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL + 74 + - cor0.col1 / col0 FROM tab2 AS cor0
----
70
74
74
query I rowsort
SELECT 26 + 46 + col2 FROM tab1 AS cor0
----
126
129
168
query I rowsort
SELECT ( 88 ) + col0 AS col2 FROM tab0 AS cor0
----
112
123
177
query I rowsort
SELECT ALL - ( col1 ) + - cor0.col2 * col0 + - col1 * - col2 FROM tab2 AS cor0
----
-2373
-553
617
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( 5 AS REAL ) + - col0 * - 95 * ( col0 ) FROM tab0 cor0
----
116370
54715
752490
query I rowsort
SELECT DISTINCT + cor0.col0 + - 22 FROM tab0 AS cor0
----
13
2
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6988
SELECT CAST( NULL AS SIGNED ) * ( - col2 * 38 ) + 28 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6988
SELECT CAST ( NULL AS INTEGER ) * ( - col2 * 38 ) + 28 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - ( + ( - cor0.col1 ) ) + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + + 65 * col0 + col0 * + 95 AS col0 FROM tab0 AS cor0
----
14240
3840
5600
query I rowsort
SELECT ALL col1 + col0 * 34 AS col2 FROM tab2 AS cor0
----
269
2703
2711
query I rowsort
SELECT + col0 * + col2 + col0 AS col2 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL + col1 * - col2 * 67 - cor0.col1 AS col0 FROM tab2 AS cor0
----
-102837
-43299
-56110
query I rowsort
SELECT ALL col1 - 75 FROM tab0 AS cor0
----
11
16
22
query I rowsort
SELECT - - col0 + 4 AS col1 FROM tab2 AS cor0
----
11
82
83
query I rowsort
SELECT ALL + ( 63 ) FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ALL + 85 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL 89 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT ALL col0 + + 1 * - 4 * - col0 FROM tab0
----
120
175
445
query I rowsort
SELECT ALL col1 * col1 + - col0 AS col2 FROM tab2
----
210
3403
954
query I rowsort
SELECT + + col1 + + ( - 72 * + cor0.col2 ) FROM tab1 AS cor0
----
-3862
-4094
-6899
onlyif mysql # use DIV operator for integer division
query I rowsort label-7002
SELECT - cor0.col0 * col2 + col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001
skipif mysql # not compatible
query I rowsort label-7002
SELECT - cor0.col0 * col2 + col1 / + col1 AS col0 FROM tab2 AS cor0
----
-188
-2027
-3001
query I rowsort
SELECT col2 * + col2 * 27 - + col2 AS col2 FROM tab2
----
18226
19656
38950
query I rowsort
SELECT DISTINCT + + 87 + - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
30
33
query I rowsort
SELECT DISTINCT + col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + + col2 * col2 + col0 + - col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT ALL - - col0 * 85 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT DISTINCT + col0 + 98 * - 99 AS col2 FROM tab2 AS cor0
----
-9623
-9624
-9695
query I rowsort
SELECT - - cor0.col0 * col0 * col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL ( 70 ) * cor0.col1 + - col1 AS col0 FROM tab0 AS cor0
----
5934
6279
6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 0 - + col0 * col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + 64 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9bd8c7417aea89812d57dc6142310b3f
query I rowsort
SELECT - ( + col2 * col0 ) AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col0 * - 20 FROM tab1
----
-1280
-1600
-60
query I rowsort
SELECT - - ( - col1 ) + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7016
SELECT ALL col1 DIV + col0 + cor0.col0 DIV 34 AS col2 FROM tab0 AS cor0
----
3
3
3
skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL col1 / + col0 + cor0.col0 / 34 AS col2 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT ALL - 28 * - ( col0 ) - + 62 AS col2 FROM tab2 AS cor0
----
134
2122
2150
query I rowsort
SELECT + 22 + + col1 FROM tab2
----
39
53
81
query I rowsort
SELECT + 61 * - col2 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT - 43 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2f72bd9cab68c8d8c38874510a290a3c
query I rowsort
SELECT DISTINCT - tab0.col1 * tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7022
SELECT DISTINCT + 23 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7022
SELECT DISTINCT + 23 / + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL col1 + col0 * + 55 FROM tab0 AS cor0
----
1406
2022
4986
query I rowsort
SELECT ALL + + col0 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 + col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL + col1 - 57 AS col1 FROM tab2 cor0
----
-26
-40
2
query I rowsort
SELECT DISTINCT - - col2 * - ( ( - cor0.col1 ) ) FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + col2 * cor0.col1 + col0 AS col0 FROM tab0 cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7029
SELECT + col1 * + CAST( NULL AS SIGNED ) + + cor0.col0 * col0 + - ( col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7029
SELECT + col1 * + CAST ( NULL AS INTEGER ) + + cor0.col0 * col0 + - ( col2 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 84 * - col1 + 44 FROM tab1
----
-1048
-2140
-796
query I rowsort
SELECT ALL col0 + - ( + col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT ALL col0 DIV ( + 68 * - col1 ) AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL col0 / ( + 68 * - col1 ) AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - + col0 + - 46 FROM tab1 AS cor0
----
-110
-126
-49
query I rowsort
SELECT - + col1 * - cor0.col2 + + 13 FROM tab2 AS cor0
----
1547
659
850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7035
SELECT + col1 * col1 + + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7035
SELECT + col1 * col1 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7036
SELECT - 88 DIV col0 FROM tab2 AS cor0
----
-1
-1
-12
skipif mysql # not compatible
query I rowsort label-7036
SELECT - 88 / col0 FROM tab2 AS cor0
----
-1
-1
-12
onlyif mysql # use DIV operator for integer division
query I rowsort label-7037
SELECT ALL - cor0.col0 + col1 DIV 33 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7037
SELECT ALL - cor0.col0 + col1 / 33 FROM tab1 AS cor0
----
-3
-64
-80
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7039
SELECT DISTINCT - col2 DIV tab1.col1 + + tab1.col1 col2 FROM tab1
----
24
5
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - col2 / tab1.col1 + + tab1.col1 col2 FROM tab1
----
24
5
6
query I rowsort
SELECT ALL + 26 + - col2 * - ( 20 * + col0 ) FROM tab1
----
153626
3266
72986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + col1 + ( col0 ) col2 FROM tab2 AS cor0
----
3559
368
968
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7042
SELECT ALL - 93 + col2 * + CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1935
2909
96
skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - 93 + col2 * + CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1935
2909
96
query I rowsort
SELECT ALL - - 28 + + col0 FROM tab1 cor0
----
108
31
92
query I rowsort
SELECT ALL ( + col1 ) * + 43 + col0 AS col0 FROM tab2 AS cor0
----
1340
2615
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 92 col1 FROM tab1
----
1196
2392
920
query I rowsort
SELECT + 96 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL 49 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a40d8754a5be3ce2309c61bfd3e00197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7048
SELECT DISTINCT CAST( 44 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
44
skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT CAST ( 44 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-7049
SELECT col1 + col0 DIV col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7049
SELECT col1 + col0 / col0 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL + ( - 57 ) FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT col2 - + 98 FROM tab0 cor0
----
-16
-65
-97
query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7053
SELECT ALL 30 + col1 DIV + cor0.col0 col0 FROM tab1 AS cor0
----
30
30
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL 30 + col1 / + cor0.col0 col0 FROM tab1 AS cor0
----
30
30
38
query I rowsort
SELECT + col2 * - 96 FROM tab2 AS cor0
----
-2496
-2592
-3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT ALL - col1 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7055
SELECT ALL - col1 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + ( - col0 ) * + col2 - - ( col1 ) FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT + ( - 89 ) + - col1 AS col2 FROM tab0 AS cor0
----
-175
-180
-186
onlyif mysql # use DIV operator for integer division
query I rowsort label-7058
SELECT ALL 64 DIV col2 - - col1 * - CAST( col2 AS SIGNED ) * col2 FROM tab0 AS cor0
----
-33
-611884
-93653
skipif mysql # not compatible
query I rowsort label-7058
SELECT ALL 64 / col2 - - col1 * - CAST ( col2 AS INTEGER ) * col2 FROM tab0 AS cor0
----
-33
-611884
-93653
query I rowsort
SELECT DISTINCT - cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-54
-57
-96
query I rowsort
SELECT ALL 21 AS col1 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT + ( 82 ) FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT - col2 * + col2 - 25 FROM tab2 AS cor0
----
-1469
-701
-754
query I rowsort
SELECT + col2 * col2 - + col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT - - 29 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-6
-7269
-763
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 19 + 92 col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 0085b5b605f50e9a12a763af4b7ec627
query I rowsort
SELECT ALL col2 - - col1 * + col2 AS col0 FROM tab2
----
1560
684
864
query I rowsort
SELECT + - ( + col0 ) * - 45 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT ALL - ( - col0 ) * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 col1 FROM tab0 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ALL + + 92 * col2 FROM tab0 cor0
----
3036
7544
92
query I rowsort
SELECT + + cor0.col2 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - col1 + - 30 + col2 FROM tab1 AS cor0
----
-2
17
53
query I rowsort
SELECT - - col0 * + 29 + + col1 * col2 * + col1 FROM tab0 cor0
----
10424
244764
681623
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + CAST ( + col0 AS REAL ) * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT DISTINCT + col2 + cor0.col2 AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT - + col0 * - ( - 22 ) AS col0 FROM tab1 AS cor0
----
-1408
-1760
-66
query I rowsort
SELECT - col2 + + col2 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-7289
-739
61
query I rowsort
SELECT + col0 * col1 + 12 * col1 AS col0 FROM tab1 AS cor0
----
1196
390
760
query I rowsort
SELECT ALL + col2 * + 61 FROM tab2
----
1586
1647
2318
query I rowsort
SELECT + - 97 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-71
-84
-87
query I rowsort
SELECT - + 72 * col2 + 31 FROM tab1 AS cor0
----
-3857
-4073
-6881
query I rowsort
SELECT - 10 + col0 * cor0.col0 AS col0 FROM tab0 cor0
----
1215
566
7911
query I rowsort
SELECT col1 - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 * col2 col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT ALL col2 * - cor0.col1 + + cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-7087
SELECT DISTINCT + - cor0.col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7087
SELECT DISTINCT + - cor0.col2 / - col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + - col2 + - col1 * + ( cor0.col1 * + cor0.col0 ) + - ( + col1 ) AS col0 FROM tab0 AS cor0
----
-177623
-329413
-737182
query I rowsort
SELECT DISTINCT 77 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
77
query I rowsort
SELECT - col0 + - 36 AS col0 FROM tab2 AS cor0
----
-114
-115
-43
query I rowsort
SELECT ALL 89 * col2 FROM tab2
----
2314
2403
3382
query I rowsort
SELECT DISTINCT 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
89
query I rowsort
SELECT + ( - 3 ) FROM tab0 AS cor0
----
-3
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT - col1 + cor0.col1 DIV col1 col1 FROM tab1 cor0
----
-12
-25
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7094
SELECT - col1 + cor0.col1 / col1 col1 FROM tab1 cor0
----
-12
-25
-9
query I rowsort
SELECT DISTINCT - col0 * col2 + col0 + + col2 * + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 6 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT - 96 * col2 AS col1 FROM tab2
----
-2496
-2592
-3648
query I rowsort
SELECT 69 + - 55 AS col2 FROM tab1
----
14
14
14
query I rowsort
SELECT DISTINCT 80 + - cor0.col1 * col1 AS col1 FROM tab2 cor0
----
-209
-3401
-881
query I rowsort
SELECT - - col1 - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - cor0.col0 * col2 * 48 - + col2 AS col2 FROM tab0 AS cor0
----
-1681
-350386
-38049
query I rowsort
SELECT ALL + 81 * cor0.col2 + ( col1 ) * col1 AS col0 FROM tab2 AS cor0
----
3148
3367
5587
query I rowsort
SELECT - - col2 * col2 - + ( cor0.col2 ) FROM tab2 AS cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7106
SELECT ALL - tab0.col0 * - col0 + CAST( NULL AS SIGNED ) * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - tab0.col0 * - col0 + CAST ( NULL AS INTEGER ) * - tab0.col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7107
SELECT DISTINCT + cor0.col1 * col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT + cor0.col1 * col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col0 * - col2 + - ( - col0 + + col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
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 I rowsort
SELECT ALL - cor0.col0 - - col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL ( col1 ) * 62 - + 19 AS col0 FROM tab0 AS cor0
----
5313
5623
5995
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 + col0 col2 FROM tab0
----
28
39
93
query I rowsort
SELECT ALL 76 AS col0 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT DISTINCT - - 76 + + col0 AS col0 FROM tab1 AS cor0
----
140
156
79
query I rowsort
SELECT ALL + col1 * - tab2.col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT col2 - + 55 * ( tab2.col2 + 17 ) FROM tab2
----
-2339
-2393
-2987
query I rowsort
SELECT DISTINCT - 32 AS col1 FROM tab2, tab1 cor0
----
-32
query I rowsort
SELECT - cor0.col2 + + cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT ALL - 41 + - col2 AS col0 FROM tab2 AS cor0
----
-67
-68
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) - col2 * - col0 col1 FROM tab1 AS cor0
----
188
3658
7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7121
SELECT + - CAST( NULL AS DECIMAL ) * + ( + cor0.col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7121
SELECT + - CAST ( NULL AS REAL ) * + ( + cor0.col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 12 * 40 + - col0 AS col1 FROM tab2 AS cor0
----
401
402
473
query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7124
SELECT CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7124
SELECT CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 85 AS col2 FROM tab0 cor0
----
-85
-85
-85
query I rowsort
SELECT + + col0 * + 6 AS col1 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT DISTINCT - + cor0.col1 AS col0 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7128
SELECT ALL + 61 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL + 61 / - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 1 * 4 - - col1 FROM tab0 AS cor0
----
101
90
95
query I rowsort
SELECT ALL - - 20 AS col1 FROM tab1 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT col2 * + 3 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT - 5 * ( col0 ) FROM tab0 AS cor0
----
-120
-175
-445
query I rowsort
SELECT ALL 17 AS col0 FROM tab2 cor0
----
17
17
17
query I rowsort
SELECT col0 * - 58 FROM tab2 AS cor0
----
-406
-4524
-4582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7135
SELECT ALL CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col0 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT col1 * + ( col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col2 + 99 * col1 FROM tab1 AS cor0
----
1191
2520
933
query I rowsort
SELECT - col0 * + ( + col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - + tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
-17
-31
-59
query I rowsort
SELECT col1 + + 62 AS col2 FROM tab0 AS cor0
----
148
153
159
onlyif mysql # use DIV operator for integer division
query I rowsort label-7142
SELECT DISTINCT + cor0.col2 DIV 76 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + cor0.col2 / 76 AS col0 FROM tab0 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT + + col1 + ( col1 ) DIV col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7143
SELECT + + col1 + ( col1 ) / col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT + cor0.col2 + - col0 AS col0 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT ALL - col0 * + 35 * col2 + - col0 * 1 FROM tab0
----
-1260
-255519
-27744
query I rowsort
SELECT - col0 + 53 AS col0 FROM tab0
----
-36
18
29
query I rowsort
SELECT + ( + col1 ) * col0 * 52 + ( + col0 ) FROM tab2 AS cor0
----
11291
239382
69915
onlyif mysql # use DIV operator for integer division
query I rowsort label-7148
SELECT col1 DIV col0 + + col2 - + 84 FROM tab0 AS cor0
----
-1
-48
-81
skipif mysql # not compatible
query I rowsort label-7148
SELECT col1 / col0 + + col2 - + 84 FROM tab0 AS cor0
----
-1
-48
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7149
SELECT + col0 * col0 + col1 * - CAST( - col1 AS SIGNED ) + col2 FROM tab1 AS cor0
----
4253
6665
739
skipif mysql # not compatible
query I rowsort label-7149
SELECT + col0 * col0 + col1 * - CAST ( - col1 AS INTEGER ) + col2 FROM tab1 AS cor0
----
4253
6665
739
query I rowsort
SELECT - col1 * col1 * ( col2 ) AS col0 FROM tab2
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT col2 * tab0.col2 + ( col1 ) * - col0 AS col2 FROM tab0
----
-1375
-3394
-975
onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT ALL - 37 DIV col2 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7152
SELECT ALL - 37 / col2 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - 64 + col1 * - col0 - + col0 AS col0 FROM tab0 cor0
----
-2152
-3494
-8252
query I rowsort
SELECT DISTINCT + - ( + col0 ) + col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + 11 * - col1 AS col1 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab0 cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7157
SELECT + CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7157
SELECT + CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab0.col2 * col1 AS col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 50 FROM tab2, tab1 AS cor0
----
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7160
SELECT ALL + CAST( NULL AS SIGNED ) + - col1 col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL + CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + 16 FROM tab1
----
26
29
42
query I rowsort
SELECT DISTINCT - 18 FROM tab0, tab2, tab1 AS cor0
----
-18
query I rowsort
SELECT DISTINCT 51 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
51
query I rowsort
SELECT ALL - + 74 + col0 AS col1 FROM tab0 AS cor0
----
-39
-50
15
query I rowsort
SELECT - col0 * + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - 88 + col0 FROM tab0 AS cor0
----
-53
-64
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7167
SELECT DISTINCT + + col1 DIV + col0 + ( 22 ) FROM tab2 AS cor0
----
22
26
skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT + + col1 / + col0 + ( 22 ) FROM tab2 AS cor0
----
22
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + + cor0.col2 * - col0 col0 FROM tab1 cor0
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT ALL cor0.col0 DIV col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL cor0.col0 / col0 FROM tab0 cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT ALL - 24 * cor0.col1 + 92 AS col2 FROM tab2 AS cor0
----
-1324
-316
-652
query I rowsort
SELECT DISTINCT - col1 * - col2 + + col1 + col2 FROM tab2 AS cor0
----
1619
701
895
query I rowsort
SELECT col1 * - 19 AS col1 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT ALL + ( col1 + col2 ) * col1 FROM tab0
----
10234
15743
9506
query I rowsort
SELECT ( col1 * ( col2 ) + + col0 ) AS col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT + + col0 + 44 AS col1 FROM tab2 AS cor0
----
122
123
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 * + col0 col2 FROM tab0
----
1536
2240
5696
query I rowsort
SELECT DISTINCT - 28 * - col1 AS col2 FROM tab2 AS cor0
----
1652
476
868
query I rowsort
SELECT - - col0 * - col0 + col1 - cor0.col0 * col2 * - cor0.col0 FROM tab0 AS cor0
----
18518
641692
97
query I rowsort
SELECT ( ( col0 ) ) * - col2 + 99 * + col2 + 14 AS col1 FROM tab1 AS cor0
----
1838
2009
5198
query I rowsort
SELECT ALL - - col2 * 99 * col1 AS col1 FROM tab2 AS cor0
----
151866
63954
82863
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7182
SELECT DISTINCT + CAST( + col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT 78 * col0 + col1 FROM tab2 AS cor0
----
577
6143
6179
query I rowsort
SELECT DISTINCT + tab1.col2 + + 46 AS col2 FROM tab1
----
100
103
142
onlyif mysql # use DIV operator for integer division
query I rowsort label-7185
SELECT DISTINCT + tab1.col2 - col1 DIV col0 AS col1 FROM tab1
----
46
57
96
skipif mysql # not compatible
query I rowsort label-7185
SELECT DISTINCT + tab1.col2 - col1 / col0 AS col1 FROM tab1
----
46
57
96
query I rowsort
SELECT tab2.col0 * + col1 + tab2.col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT col2 - + tab1.col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL + col2 * col0 + - cor0.col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + tab1.col0 * + col0 + col0 * col1 AS col0 FROM tab1
----
4736
7440
87
query I rowsort
SELECT + col1 * + col1 + + col2 FROM tab0
----
7429
8363
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-7191
SELECT col2 + col0 - - col0 DIV - col2 AS col2 FROM tab1
----
120
176
57
skipif mysql # not compatible
query I rowsort label-7191
SELECT col2 + col0 - - col0 / - col2 AS col2 FROM tab1
----
120
176
57
query I rowsort
SELECT ALL cor0.col1 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col1 - tab2.col1 col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT tab1.col2 * col2 - - col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT - col0 + - col0 * + col1 + + col0 AS col1 FROM tab1
----
-1040
-640
-78
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col0 * - col2 * col0 ) AND - col1 * col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7197
SELECT + col0 + col0 * - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-7197
SELECT + col0 + col0 * - col0 / - col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - cor0.col2 - - col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL col2 + cor0.col0 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT col0 * col2 * + col2 AS col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT col0 * col2 * + col1 + col2 * col0 AS col1 FROM tab1
----
107520
40128
4374
onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT DISTINCT + col1 + - cor0.col2 * col0 DIV - cor0.col2 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + col1 + - cor0.col2 * col0 / - cor0.col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col2 - cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col0 + cor0.col0 * - col1 FROM tab0 cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-7205
SELECT + col0 DIV - col1 + - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-7205
SELECT + col0 / - col1 + - col2 * col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 + col2 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL col0 * col2 * - col1 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + - col1 * + col1 + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + col2 + + col0 * - col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT + + cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7
78
79
query I rowsort
SELECT + - col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 31 * col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT - - col1 * - col2 * - col1 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT 63 * + col2 * - col2 AS col0 FROM tab0
----
-423612
-63
-68607
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 * col1 * - col1 col1 FROM tab2 AS cor0
----
11020
25974
90532
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT tab0.col1 * + col2 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 * + col1 AND NULL
----
query I rowsort
SELECT ALL - col0 * col1 - col2 * col0 FROM tab0
----
-15397
-2856
-3430
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) <> + col2 + - col1 * col1 * - col0
----
query I rowsort
SELECT DISTINCT col2 * - col0 AS col2 FROM tab0 WHERE col2 = NULL
----
query I rowsort
SELECT ALL - col1 + - tab1.col1 AS col0 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + col1 * - col1 / - col0 <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + tab0.col0 * + col0 col0 FROM tab0
----
1226
609
8003
query III rowsort
SELECT ALL * FROM tab2 WHERE col1 <> + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT + cor0.col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7225
SELECT + cor0.col2 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + cor0.col0 + col2 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL - 87 + 71 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 NOT IN ( col1 + + col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab1 WHERE - col2 * col0 IN ( col1 * + col2 / + col2 + col0 + + tab1.col0 / + col2 )
----
query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 col1 FROM tab1 AS cor0 WHERE NOT col1 > NULL
----
query I rowsort
SELECT col2 * + col1 + + col1 * col0 * + col0 FROM tab0 AS cor0
----
118922
52374
728273
onlyif mysql # use DIV operator for integer division
query I rowsort label-7233
SELECT - col0 DIV col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-7233
SELECT - col0 / col2 + - col0 AS col2 FROM tab1 AS cor0
----
-3
-65
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 col1 FROM tab2 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7235
SELECT DISTINCT tab2.col1 DIV + col1 + + tab2.col2 AS col1 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT tab2.col1 / + col1 + + tab2.col2 AS col1 FROM tab2
----
27
28
39
query I rowsort
SELECT + col1 * col0 * + col1 AS col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL - tab2.col2 * col0 + col1 FROM tab2
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col1 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 + tab1.col0 col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT ALL + col2 * + col1 - col1 * - col1 AS col2 FROM tab0
----
10234
15743
9506
query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL NOT IN ( col2 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col0 * + col0 / tab0.col2 )
----
query I rowsort
SELECT ALL col0 + + col1 AS col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND ( NULL )
----
query I rowsort
SELECT - col2 + col0 + + col1 * - tab0.col1 FROM tab0
----
-7405
-8274
-9375
query I rowsort
SELECT DISTINCT + col2 * - col2 - col2 FROM tab0
----
-1122
-2
-6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL col2 * col2 + cor0.col0 AS col0 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT ALL + col2 + col0 * col1 + + cor0.col2 * cor0.col2 AS col1 FROM tab0 cor0
----
14905
3186
3397
query I rowsort
SELECT col0 + + col1 FROM tab2 WHERE NOT ( col1 / col0 ) <> + col1 * col0 * + col1
----
query I rowsort
SELECT ALL - col1 + col2 * col1 FROM tab1 WHERE NOT NULL NOT IN ( + col1 + tab1.col1 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7251
SELECT col2 * - col2 + col1 DIV + col1 col2 FROM tab2
----
-1443
-675
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7251
SELECT col2 * - col2 + col1 / + col1 col2 FROM tab2
----
-1443
-675
-728
query I rowsort
SELECT DISTINCT col2 - - col2 AS col0 FROM tab1 WHERE NOT ( col0 * - col0 ) NOT BETWEEN NULL AND col2
----
query I rowsort
SELECT ALL col1 * - 79 FROM tab0
----
-6794
-7189
-7663
query I rowsort
SELECT ALL + - cor0.col0 * - cor0.col2 - col1 * 22 AS col1 FROM tab0 AS cor0
----
-1100
-2099
5296
query I rowsort
SELECT DISTINCT + col1 * - 71 AS col2 FROM tab1 AS cor0
----
-1846
-710
-923
query I rowsort
SELECT DISTINCT - cor0.col2 + col1 * - col0 + ( 57 ) AS col0 FROM tab0 cor0
----
-2040
-3339
-8124
query I rowsort
SELECT ( - col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + col0 + 83 * col1 FROM tab0 AS cor0
----
7162
7642
8086
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + 58 col0 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT ALL col1 * + col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + col2 + 99 FROM tab2 AS cor0
----
125
126
137
query I rowsort
SELECT ALL - cor0.col0 + col1 * ( col1 ) AS col0 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT + ( ( col0 ) ) * col2 + 93 AS col1 FROM tab1
----
255
3741
7773
query I rowsort
SELECT - tab2.col0 * + ( tab2.col2 ) * - col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL - col2 + 44 AS col1 FROM tab1 AS cor0
----
-10
-13
-52
query I rowsort
SELECT 24 AS col1 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT - 90 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to f6f26b9a04da14807208b93d507095c5
query I rowsort
SELECT + 57 FROM tab1, tab1 cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT ALL - - cor0.col2 * 59 AS col0 FROM tab2 AS cor0
----
1534
1593
2242
query I rowsort
SELECT ALL - col0 + - cor0.col2 * - 15 FROM tab0 AS cor0
----
-20
1141
471
onlyif mysql # use DIV operator for integer division
query I rowsort label-7271
SELECT + ( - col0 ) DIV - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7271
SELECT + ( - col0 ) / - col2 AS col1 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7272
SELECT + + CAST( NULL AS DECIMAL ) * + col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7272
SELECT + + CAST ( NULL AS REAL ) * + col0 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) * + cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-7274
SELECT - 77 DIV + 62 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7274
SELECT - 77 / + 62 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col0 * + 75 AS col1 FROM tab1
----
225
4800
6000
query I rowsort
SELECT + col1 * - col0 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-1178
-1632
-8083
onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT col1 + col1 * cor0.col1 DIV col0 AS col0 FROM tab1 AS cor0
----
11
15
251
skipif mysql # not compatible
query I rowsort label-7277
SELECT col1 + col1 * cor0.col1 / col0 AS col0 FROM tab1 AS cor0
----
11
15
251
onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT - col0 DIV ( col0 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7278
SELECT - col0 / ( col0 ) AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 63 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT ALL - + 45 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
135
2880
3600
query I rowsort
SELECT ALL + 72 * + 77 * - col2 + + col0 * col1 FROM tab2 AS cor0
----
-139542
-149471
-209329
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( col1 AS REAL ) * col1 + - col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT - col2 * 96 FROM tab0
----
-3168
-7872
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7284
SELECT DISTINCT + CAST( - 55 + tab1.col1 AS SIGNED ) * + col2 AS col0 FROM tab1
----
-1566
-2565
-4032
skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT + CAST ( - 55 + tab1.col1 AS INTEGER ) * + col2 AS col0 FROM tab1
----
-1566
-2565
-4032
query I rowsort
SELECT DISTINCT - 12 AS col0 FROM tab2 AS cor0
----
-12
query I rowsort
SELECT - col0 * cor0.col1 + + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT DISTINCT - ( + col1 ) + col2 * + cor0.col0 * col2 FROM tab2 AS cor0
----
114059
5072
52669
query I rowsort
SELECT 88 + col2 * col0 FROM tab1 AS cor0
----
250
3736
7768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 + + 91 + col0 col1 FROM tab1
----
168
229
245
onlyif mysql # use DIV operator for integer division
query I rowsort label-7290
SELECT ALL ( - col2 ) DIV tab2.col0 + col0 + + col1 AS col0 FROM tab2
----
137
35
96
skipif mysql # not compatible
query I rowsort label-7290
SELECT ALL ( - col2 ) / tab2.col0 + col0 + + col1 AS col0 FROM tab2
----
137
35
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7291
SELECT ALL CAST( NULL AS SIGNED ) * + col1 + + col1 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7291
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 + + col1 * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * + col2 * + col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL - cor0.col2 + - tab2.col0 FROM tab2, tab0, tab1 cor0
----
27 values hashing to e1fffc6d973222ba5161e6920eeb5606
query I rowsort
SELECT col1 * - cor0.col0 + + 8 * col2 FROM tab2 AS cor0
----
-1
-1039
-4394
query I rowsort
SELECT col2 * cor0.col1 - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + - cor0.col2 * col0 - + col2 FROM tab1 cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7297
SELECT + col2 DIV ( col0 * col1 ) - + col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7297
SELECT + col2 / ( col0 * col1 ) - + col2 AS col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - col1 * + col1 + col1 * col2 FROM tab2
----
-124
-1947
357
onlyif mysql # use DIV operator for integer division
query I rowsort label-7299
SELECT DISTINCT - cor0.col1 DIV - 89 FROM tab2, tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT - cor0.col1 / - 89 FROM tab2, tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 52 col0 FROM tab0 AS cor0
----
-37
17
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7301
SELECT col1 * + col2 + 4 * col2 DIV col0 FROM tab2 AS cor0
----
1535
647
852
skipif mysql # not compatible
query I rowsort label-7301
SELECT col1 * + col2 + 4 * col2 / col0 FROM tab2 AS cor0
----
1535
647
852
query I rowsort
SELECT - - col0 * - ( 8 ) + col2 * - col2 * + col2 FROM tab1 cor0
----
-157488
-185705
-885376
query I rowsort
SELECT + + col0 + ( col2 ) * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + col2 - - cor0.col2 * col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
26169
36
598518
query I rowsort
SELECT DISTINCT cor0.col1 + 50 + + col2 AS col0 FROM tab0 AS cor0
----
148
169
223
query I rowsort
SELECT ALL - col1 * - col2 + ( + col0 ) + - col2 * + cor0.col2 FROM tab1 AS cor0
----
-1509
-2615
-7888
query I rowsort
SELECT DISTINCT - col2 - col0 * + ( - col0 ) * col0 AS col0 FROM tab1 AS cor0
----
-27
262087
511904
query I rowsort
SELECT DISTINCT - col2 + + 8 FROM tab0 AS cor0
----
-25
-74
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7309
SELECT ALL + col1 DIV - 21 - col2 FROM tab0 cor0
----
-37
-5
-86
skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL + col1 / - 21 - col2 FROM tab0 cor0
----
-37
-5
-86
query I rowsort
SELECT DISTINCT - col2 + - 93 + + col2 FROM tab1 AS cor0
----
-93
query I rowsort
SELECT col2 - + 49 FROM tab2
----
-11
-22
-23
query I rowsort
SELECT DISTINCT - col0 - - tab2.col0 AS col0 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7313
SELECT - + col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-7313
SELECT - + col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col2 + ( - col2 ) + cor0.col0 FROM tab0 AS cor0
----
-42
-75
33
query I rowsort
SELECT ALL - cor0.col2 * - ( col0 + col2 ) FROM tab0 AS cor0
----
14022
1881
36
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT ALL 55 * - col2 FROM tab0
----
-1815
-4510
-55
query I rowsort
SELECT + - cor0.col1 * + 58 FROM tab2 AS cor0
----
-1798
-3422
-986
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7319
SELECT + ( col1 ) / - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7319
SELECT + ( col1 ) / - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 + 29 AS col0 FROM tab2 AS cor0
----
-2
-30
12
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0 CROSS JOIN tab1, tab2, tab2 AS cor1
----
3645 values hashing to 1a92b418ae3c05ba566f88a890a407ae
query I rowsort
SELECT - tab2.col1 + + col2 * + col0 AS col0 FROM tab2
----
158
1969
2985
query I rowsort
SELECT - col2 * col2 * 42 FROM tab0 AS cor0
----
-282408
-42
-45738
onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT cor0.col0 DIV + 87 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-7324
SELECT cor0.col0 / + 87 FROM tab1, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7325
SELECT tab1.col2 * 53 DIV 36 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to fe397ff185a11d5ff7540ef03d7fd6b8
skipif mysql # not compatible
query I rowsort label-7325
SELECT tab1.col2 * 53 / 36 FROM tab1, tab2, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to fe397ff185a11d5ff7540ef03d7fd6b8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7326
SELECT ALL + ( - col1 ) + + col1 DIV col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-7326
SELECT ALL + ( - col1 ) + + col1 / col1 AS col2 FROM tab2 AS cor0
----
-16
-30
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * col2 col0 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7328
SELECT ALL 11 DIV col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL 11 / col1 FROM tab1
----
0
0
1
query I rowsort
SELECT 37 * - col1 FROM tab0
----
-3182
-3367
-3589
query I rowsort
SELECT - cor0.col2 * tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to e4fd9d16116443b7eee5ff68e1d13137
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col1 FROM tab0
----
-20
-20
-20
query I rowsort
SELECT + 74 * + col0 AS col0 FROM tab2 AS cor0
----
518
5772
5846
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7333
SELECT ALL col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7333
SELECT ALL col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col1 + + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col2 * col0 * + 98 AS col2 FROM tab2 AS cor0
----
18522
198744
294196
query I rowsort
SELECT ALL 77 AS col2 FROM tab1 cor0
----
77
77
77
query I rowsort
SELECT DISTINCT - col1 * col1 + - col0 AS col0 FROM tab2 AS cor0
----
-3559
-368
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-7338
SELECT col2 DIV col0 + + col0 col1 FROM tab0 AS cor0
----
25
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7338
SELECT col2 / col0 + + col0 col1 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT - 70 * + col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1761
-1859
-2643
query I rowsort
SELECT col2 + - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + cor0.col0 * - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ( + tab2.col0 ) + - tab2.col0 * tab2.col0 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1c3562172825e52f99b0ee3451a75fc3
query I rowsort
SELECT ALL col1 + - 11 AS col1 FROM tab1 AS cor0
----
-1
15
2
query I rowsort
SELECT col2 + cor0.col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-7345
SELECT ALL + col0 + col2 - col0 DIV + 19 FROM tab0 cor0
----
167
35
56
skipif mysql # not compatible
query I rowsort label-7345
SELECT ALL + col0 + col2 - col0 / + 19 FROM tab0 cor0
----
167
35
56
query I rowsort
SELECT + + col0 + ( - col0 * 86 + + col1 ) FROM tab1 AS cor0
----
-229
-5430
-6787
query I rowsort
SELECT + - ( + 58 ) + col1 FROM tab1 AS cor0
----
-32
-45
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-7348
SELECT col2 * col1 + + col0 DIV - col2 FROM tab1 cor0
----
1248
1404
569
skipif mysql # not compatible
query I rowsort label-7348
SELECT col2 * col1 + + col0 / - col2 FROM tab1 cor0
----
1248
1404
569
query I rowsort
SELECT ( col1 ) * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7350
SELECT ALL + col2 DIV cor0.col1 + cor0.col2 + 91 DIV + col0 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + col2 / cor0.col1 + cor0.col2 + 91 / + col0 FROM tab0 AS cor0
----
3
36
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7351
SELECT DISTINCT CAST( + col1 AS SIGNED ) * cor0.col0 * 66 AS col0 FROM tab1 cor0
----
42240
5148
68640
skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT CAST ( + col1 AS INTEGER ) * cor0.col0 * 66 AS col0 FROM tab1 cor0
----
42240
5148
68640
query I rowsort
SELECT DISTINCT - 62 AS col0 FROM tab2, tab2 AS cor0
----
-62
query I rowsort
SELECT ALL ( + cor0.col0 ) * cor0.col0 AS col1 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL + + cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 3 + 92 AS col1 FROM tab2
----
95
95
95
query I rowsort
SELECT - col2 * tab2.col1 * col2 + + tab2.col1 + col0 * col1 FROM tab2
----
-22351
-23188
-35223
query I rowsort
SELECT + 56 * col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
165
3520
4400
query I rowsort
SELECT DISTINCT - 27 * col1 AS col2 FROM tab2 cor0
----
-1593
-459
-837
query I rowsort
SELECT DISTINCT - col2 * + col1 + + col0 * - col2 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT ALL 70 * col2 AS col0 FROM tab1 AS cor0
----
3780
3990
6720
query I rowsort
SELECT DISTINCT - - col2 * + col1 + - col1 * - col0 AS col1 FROM tab2 cor0
----
1054
1989
6136
query I rowsort
SELECT + ( cor0.col1 ) * - cor0.col1 + + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL + 51 + col0 AS col2 FROM tab2
----
129
130
58
query I rowsort
SELECT - ( col0 ) + col0 * - tab2.col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT col0 * col2 - + tab2.col1 * tab2.col1 AS col1 FROM tab2
----
-1453
-772
2713
query I rowsort
SELECT - col1 + 96 FROM tab1
----
70
83
86
query I rowsort
SELECT cor1.col0 + + 20 + 50 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 9731b494e27553d90a426ab20e997635
query I rowsort
SELECT DISTINCT ( + col0 * col0 ) + 65 * - col0 + - tab1.col2 * - col1 * - col2 AS col0 FROM tab1
----
-118608
-32554
-76002
query I rowsort
SELECT - 27 * + cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 02ee817989fdd392a2bd0c69bbe042ab
query I rowsort
SELECT + col0 * col0 * + col0 AS col0 FROM tab0
----
13824
42875
704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 col2 FROM tab2
----
40
40
40
query I rowsort
SELECT DISTINCT ( ( - tab0.col0 ) ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL 53 + col1 FROM tab0 AS cor0
----
139
144
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-7374
SELECT - col0 DIV + 65 + col0 AS col2 FROM tab0 AS cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-7374
SELECT - col0 / + 65 + col0 AS col2 FROM tab0 AS cor0
----
24
35
88
query I rowsort
SELECT DISTINCT cor1.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 AS cor2
----
10
13
26
query I rowsort
SELECT DISTINCT col0 + + ( cor0.col0 ) * col1 * 3 AS col2 FROM tab1 AS cor0
----
1984
237
3200
query I rowsort
SELECT + - col0 + - col2 * col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL - tab2.col0 + + col2 + + col1 AS col2 FROM tab2
----
-24
51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 * col0 + - col2 + + tab2.col2 * col0 col2 FROM tab2
----
351
4030
5966
query I rowsort
SELECT DISTINCT + 82 + col2 * 98 FROM tab2
----
2630
2728
3806
query I rowsort
SELECT ALL ( - tab0.col1 ) * + col2 AS col0 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7382
SELECT col2 DIV col2 + - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-7382
SELECT col2 / col2 + - col2 AS col2 FROM tab1 AS cor0
----
-53
-56
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-7383
SELECT + cor0.col0 * 49 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
343
3823
3875
skipif mysql # not compatible
query I rowsort label-7383
SELECT + cor0.col0 * 49 + col0 / col1 AS col2 FROM tab2 AS cor0
----
343
3823
3875
query I rowsort
SELECT + + col1 * ( col1 ) + + col2 FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col1 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT 37 FROM tab1, tab2, tab0 AS cor0
----
37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7387
SELECT DISTINCT + tab1.col1 * col1 + ( + col2 ) * + tab1.col0 * CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7387
SELECT DISTINCT + tab1.col1 * col1 + ( + col2 ) * + tab1.col0 * CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
query I rowsort
SELECT - cor0.col2 - + cor0.col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT tab2.col0 - - 77 FROM tab2
----
155
156
84
query I rowsort
SELECT ALL + col1 * ( + col1 ) AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + 17 + 53 AS col1 FROM tab0 AS cor0
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7393
SELECT + cor0.col2 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-7393
SELECT + cor0.col2 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT ALL + ( col2 ) + cor0.col1 * 54 * col0 FROM tab2 cor0
----
11745
248534
72560
query I rowsort
SELECT DISTINCT - ( - 81 ) + + col0 FROM tab0 AS cor0
----
105
116
170
query I rowsort
SELECT DISTINCT + col0 + - col1 * col1 - col1 AS col0 FROM tab1 cor0
----
-102
-46
-699
query I rowsort
SELECT + - ( + col0 ) + col0 + col0 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + ( cor0.col2 ) * + col1 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-14186
-3927
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7399
SELECT - + CAST( 30 AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
-6
5
59
skipif mysql # not compatible
query I rowsort label-7399
SELECT - + CAST ( 30 AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
-6
5
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 + - col0 col0 FROM tab2 AS cor0
----
210
3403
954
onlyif mysql # use DIV operator for integer division
query I rowsort label-7401
SELECT - - col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7401
SELECT - - col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 62 * col0 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT - ( - 62 * col2 ) FROM tab2
----
1612
1674
2356
query I rowsort
SELECT ( col2 ) + col2 * - 13 * tab1.col0 FROM tab1
----
-2052
-47367
-99744
query I rowsort
SELECT - cor0.col1 - + col0 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL col1 * - col2 * col1 + col0 * col1 FROM tab0 AS cor0
----
-242004
-6014
-670943
onlyif mysql # use DIV operator for integer division
query I rowsort label-7407
SELECT cor0.col0 * + col0 * col0 + + col0 DIV + 8 AS col0 FROM tab2 cor0
----
343
474561
493048
skipif mysql # not compatible
query I rowsort label-7407
SELECT cor0.col0 * + col0 * col0 + + col0 / + 8 AS col0 FROM tab2 cor0
----
343
474561
493048
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT ( + 40 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT - - cor0.col0 * col1 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col1 * cor0.col2 + - col0 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col0 FROM tab1
----
32
query I rowsort
SELECT ALL - 51 FROM tab1, tab1 cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT - + ( - cor0.col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + 45 * + ( + col0 ) * ( - col2 * col2 ) FROM tab2 AS cor0
----
-229635
-2372760
-5133420
query I rowsort
SELECT DISTINCT - 84 * col2 FROM tab2 cor0
----
-2184
-2268
-3192
query I rowsort
SELECT ( + col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7418
SELECT ALL - CAST( col1 AS SIGNED ) * + col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL - CAST ( col1 AS INTEGER ) * + col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT - - ( - 13 ) AS col1 FROM tab2 AS cor0
----
-13
query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab0 AS cor0
----
-80
query I rowsort
SELECT + - cor0.col0 * + cor0.col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7423
SELECT DISTINCT col0 * col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7423
SELECT DISTINCT col0 * col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT + 8 * + col0 AS col1 FROM tab0 AS cor0
----
192
280
712
query I rowsort
SELECT 81 + col2 * ( - col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
-17495
-19602
-54791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + 32 + col2 FROM tab0 AS cor0
----
114
33
65
query I rowsort
SELECT DISTINCT + 0 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL col0 + + cor0.col0 * + ( + cor0.col0 + col1 ) FROM tab0 AS cor0
----
16109
2664
4655
query I rowsort
SELECT ALL - col1 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - 27 * - col0 FROM tab2 AS cor0
----
189
2106
2133
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7432
SELECT + cor0.col0 + - col2 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7432
SELECT + cor0.col0 + - col2 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - ( - col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - col2 + - 35 FROM tab1 AS cor0
----
-131
-89
-92
query I rowsort
SELECT ALL - + cor0.col0 * + 62 - col0 FROM tab2 AS cor0
----
-441
-4914
-4977
onlyif mysql # use DIV operator for integer division
query I rowsort label-7436
SELECT col1 * - col2 + + 69 DIV col0 FROM tab0 AS cor0
----
-2836
-7462
-96
skipif mysql # not compatible
query I rowsort label-7436
SELECT col1 * - col2 + + 69 / col0 FROM tab0 AS cor0
----
-2836
-7462
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7437
SELECT DISTINCT + + col0 DIV + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7437
SELECT DISTINCT + + col0 / + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT cor0.col0 + + col1 * 60 FROM tab2 AS cor0
----
1099
1867
3618
query I rowsort
SELECT + col2 * + 34 + + 62 FROM tab0 AS cor0
----
1184
2850
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7440
SELECT DISTINCT - col1 * CAST( NULL AS SIGNED ) * col2 + - cor0.col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7440
SELECT DISTINCT - col1 * CAST ( NULL AS INTEGER ) * col2 + - cor0.col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + col2 * - col1 + - 73 AS col1 FROM tab2 AS cor0
----
1461
573
764
query I rowsort
SELECT col0 + - ( 93 + - col1 ) AS col0 FROM tab2 AS cor0
----
-55
3
44
query I rowsort
SELECT + - col2 + 45 AS col2 FROM tab0 AS cor0
----
-37
12
44
query I rowsort
SELECT DISTINCT col0 * col2 + + ( - col0 + - col1 ) FROM tab2 AS cor0
----
151
1891
2906
query I rowsort
SELECT + 97 * + cor1.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 13926101a5a2f59e5dfce0050fac521f
query I rowsort
SELECT ALL col1 + + col1 * + 56 FROM tab2 cor0
----
1767
3363
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col2 col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col2 * + 86 + - col1 AS col2 FROM tab1 AS cor0
----
-4670
-4912
-8269
onlyif mysql # use DIV operator for integer division
query I rowsort label-7449
SELECT ALL 52 DIV tab0.col2 AS col2 FROM tab0
----
0
1
52
skipif mysql # not compatible
query I rowsort label-7449
SELECT ALL 52 / tab0.col2 AS col2 FROM tab0
----
0
1
52
query I rowsort
SELECT ALL + col0 + - ( - 17 + - col1 ) AS col1 FROM tab0
----
127
149
197
query I rowsort
SELECT ALL - - ( ( + col2 ) ) * + ( col0 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 * 73 FROM tab1 AS cor0
----
219
4672
5840
onlyif mysql # use DIV operator for integer division
query I rowsort label-7453
SELECT + col2 DIV - 72 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7453
SELECT + col2 / - 72 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 + col0 * col1 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - + col0 + + col2 AS col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ( col0 ) + col1 * col1 AS col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + ( - 68 ) AS col1 FROM tab1, tab1 AS cor0
----
-68
query I rowsort
SELECT + 31 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT - + col2 * cor0.col1 + col0 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL col2 + 55 * + col0 * - col0 FROM tab2
----
-2668
-334594
-343217
query I rowsort
SELECT col0 * col1 + + col1 + - col0 FROM tab2
----
1281
241
4583
query I rowsort
SELECT - col2 + tab1.col1 * - col1 + - col2 FROM tab1
----
-214
-361
-784
query I rowsort
SELECT ALL col0 * col0 + 94 FROM tab2
----
143
6178
6335
query I rowsort
SELECT col1 * + col0 * + col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT col0 + + 71 * - col2 AS col0 FROM tab0 AS cor0
----
-2319
-36
-5733
query I rowsort
SELECT ALL ( - cor0.col1 ) * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - - 93 + + col1 FROM tab1 AS cor0
----
103
106
119
query I rowsort
SELECT ( - 33 ) * - col1 + + col0 FROM tab0 AS cor0
----
2862
3092
3236
query I rowsort
SELECT - + ( - 8 ) * + col2 AS col2 FROM tab2 AS cor0
----
208
216
304
query I rowsort
SELECT + + col0 * - ( col0 ) + col2 + + col1 * - col2 FROM tab1 cor0
----
-1359
-4609
-7552
query I rowsort
SELECT ALL - - cor0.col1 * + col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7472
SELECT DISTINCT 95 DIV col1 FROM tab1 AS cor0
----
3
7
9
skipif mysql # not compatible
query I rowsort label-7472
SELECT DISTINCT 95 / col1 FROM tab1 AS cor0
----
3
7
9
query I rowsort
SELECT + + 97 + 67 FROM tab1 AS cor0
----
164
164
164
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7474
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7474
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col1 + col0 - col0 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT 81 + - col2 FROM tab2 cor0
----
43
54
55
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 * - col0 * 32 FROM tab0 AS cor0
----
-18432
-253472
-39200
query I rowsort
SELECT col2 * + col2 + cor0.col2 * col1 AS col1 FROM tab0 AS cor0
----
14186
3927
98
query I rowsort
SELECT DISTINCT + col0 * + ( - 52 ) + col2 FROM tab0 AS cor0
----
-1215
-1819
-4546
onlyif mysql # use DIV operator for integer division
query I rowsort label-7481
SELECT - cor0.col2 DIV col2 + - col1 col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7481
SELECT - cor0.col2 / col2 + - col1 col0 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT col1 * + 70 + - 52 AS col0 FROM tab0 AS cor0
----
5968
6318
6738
onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT ALL col2 * 85 DIV - 73 FROM tab0 AS cor0
----
-1
-38
-95
skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL col2 * 85 / - 73 FROM tab0 AS cor0
----
-1
-38
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-7484
SELECT ALL + col1 DIV 51 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + col1 / 51 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + col1 * - col1 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT + - col1 DIV - ( + col1 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-7486
SELECT + - col1 / - ( + col1 ) + cor0.col1 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - col2 * + 57 AS col0 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT cor0.col2 * col1 - 38 * col0 FROM tab1 AS cor0
----
-1792
-1862
1290
query I rowsort
SELECT - col2 + ( + col2 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT - cor0.col2 * 89 - + 84 FROM tab0 AS cor0
----
-173
-3021
-7382
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 * 86 col2 FROM tab2 AS cor0
----
2177
2291
3251
query I rowsort
SELECT + col2 + col2 + 62 * - col1 FROM tab0 AS cor0
----
-5266
-5478
-6012
query I rowsort
SELECT - 82 * col2 + + col0 * - col1 + col2 FROM tab0 AS cor0
----
-14741
-3476
-4737
query I rowsort
SELECT DISTINCT + - 6 * col2 FROM tab2 AS cor0
----
-156
-162
-228
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7495
SELECT - col2 + + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7495
SELECT - col2 + + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col2 ) * - ( - ( col1 ) ) + col1 - + col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 * col1 + + col0 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7498
SELECT ( col2 ) * + col0 DIV col0 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-7498
SELECT ( col2 ) * + col0 / col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + 58 * + cor0.col0 * ( col2 ) - col0 * ( + cor0.col1 ) FROM tab1 AS cor0
----
210944
444400
9318
query I rowsort
SELECT + + col0 + col1 * + 36 * + col1 FROM tab0 AS cor0
----
266280
298205
338759
query I rowsort
SELECT - col0 + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT - - 23 AS col2 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT + 22 + - col2 AS col2 FROM tab2 AS cor0
----
-16
-4
-5
query I rowsort
SELECT - cor1.col0 + 58 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9d791d34370bb56a90658c2bf4912876
query I rowsort
SELECT DISTINCT + 6 FROM tab1, tab0 cor0
----
6
query I rowsort
SELECT + 27 AS col1 FROM tab0
----
27
27
27
query I rowsort
SELECT - 62 + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fd187422d0f3eae78b683be2a90b4e6c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7508
SELECT ALL col2 * col1 + + CAST( NULL AS SIGNED ) + ( - col0 * 71 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL col2 * col1 + + CAST ( NULL AS INTEGER ) + ( - col0 * 71 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 17 + col2 * col0 * + 20 - - col1 * col2 AS col1 FROM tab1 AS cor0
----
154831
4627
73513
query I rowsort
SELECT + + col2 * col1 AS col1 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7511
SELECT DISTINCT 75 * col0 + - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
498
5824
5887
skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT 75 * col0 + - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
498
5824
5887
query I rowsort
SELECT ALL - - 53 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT + ( tab2.col0 ) + 69 AS col1 FROM tab2
----
147
148
76
query I rowsort
SELECT - col1 * col2 + cor0.col2 * 47 FROM tab1 AS cor0
----
1134
2109
3264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * 74 col1 FROM tab1
----
-1924
-740
-962
query I rowsort
SELECT DISTINCT + 54 FROM tab0, tab2, tab2 AS cor0
----
54
query I rowsort
SELECT DISTINCT + col2 * + tab1.col2 - 71 FROM tab1
----
2845
3178
9145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * cor0.col1 * - 33 + col2 * col0 col2 FROM tab1 AS cor0
----
-22146
2103
348
query I rowsort
SELECT - tab1.col0 + + col2 AS col1 FROM tab1
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7520
SELECT - cor0.col1 * + CAST( NULL AS SIGNED ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7520
SELECT - cor0.col1 * + CAST ( NULL AS INTEGER ) + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - - col0 * col1 * + ( - col2 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - cor0.col1 * ( + col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 + - col2 * + col2 * - col2 AS col2 FROM tab0 AS cor0
----
36023
551459
98
query I rowsort
SELECT + col0 + - col0 * col2 AS col1 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + col2 * - 82 + - col0 FROM tab1 AS cor0
----
-4431
-4738
-7952
query I rowsort
SELECT ALL - cor0.col2 * + ( col0 ) - - 16 AS col0 FROM tab1 AS cor0
----
-146
-3632
-7664
query I rowsort
SELECT DISTINCT 15 + 8 * - col0 * col2 FROM tab1 AS cor0
----
-1281
-29169
-61425
query I rowsort
SELECT ALL + + cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 78 + - col2 FROM tab2
----
40
51
52
query I rowsort
SELECT ( col2 + col2 ) FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT + col0 + - col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT - 55 * col2 + col0 * + 1 AS col1 FROM tab2 AS cor0
----
-1352
-1478
-2011
query I rowsort
SELECT col1 + + col2 - + 50 FROM tab2 AS cor0
----
35
5
8
query I rowsort
SELECT - cor0.col2 + col2 * + col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - 4 + cor0.col2 AS col1 FROM tab2 AS cor0
----
22
23
34
query I rowsort
SELECT ALL col2 * ( col2 ) * col1 AS col0 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT col1 * - col0 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * 19 col1 FROM tab0 AS cor0
----
1610
1640
1808
query I rowsort
SELECT ALL - + col1 + 70 AS col0 FROM tab1 AS cor0
----
44
57
60
query I rowsort
SELECT col0 * col1 * cor0.col0 + + col1 AS col1 FROM tab0 AS cor0
----
118922
49622
720902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7542
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) * ( - col2 ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col0 + ( + col1 ) FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7544
SELECT ALL + col0 * CAST( 83 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
249
5312
6640
skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL + col0 * CAST ( 83 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT DISTINCT 0 AS col1 FROM tab2
----
0
query I rowsort
SELECT + col0 + + 92 FROM tab1 cor0
----
156
172
95
query I rowsort
SELECT tab2.col0 * col1 * + col0 AS col1 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT + + cor0.col0 DIV col1 + - col2 * + col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7548
SELECT + + cor0.col0 / col1 + - col2 * + col2 col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + col0 - - 29 * 33 FROM tab2 AS cor0
----
1035
1036
964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7550
SELECT ALL - col2 * - CAST( NULL AS DECIMAL ) + - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL - col2 * - CAST ( NULL AS REAL ) + - col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 col0 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7552
SELECT DISTINCT + col0 + 9 DIV - col0 FROM tab1 AS cor0
----
0
64
80
skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT + col0 + 9 / - col0 FROM tab1 AS cor0
----
0
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT ALL - cor0.col0 DIV - 76 - col0 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-7553
SELECT ALL - cor0.col0 / - 76 - col0 FROM tab2 AS cor0
----
-7
-77
-78
query I rowsort
SELECT + ( + col2 ) * - cor0.col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT 87 * 67 FROM tab2 AS cor0
----
5829
5829
5829
onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT + 48 * + col0 DIV col0 FROM tab2 AS cor0
----
48
48
48
skipif mysql # not compatible
query I rowsort label-7556
SELECT + 48 * + col0 / col0 FROM tab2 AS cor0
----
48
48
48
query I rowsort
SELECT DISTINCT - ( col0 ) * col1 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - + 28 AS col2 FROM tab1 AS cor0
----
-28
-28
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + + 30 * col2 AS col2 FROM tab2 cor0
----
1140
780
810
query I rowsort
SELECT DISTINCT ( + 67 ) * - col0 AS col0 FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT + 22 * 33 AS col1 FROM tab0 AS cor0
----
726
726
726
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + ( + cor0.col0 ) * - col1 col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - + 3 + + 48 * col0 * - 78 FROM tab1 AS cor0
----
-11235
-239619
-299523
query I rowsort
SELECT ( - 0 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 98 AS col2 FROM tab2 AS cor0
----
98
98
98
query I rowsort
SELECT col0 + - col2 + col0 AS col2 FROM tab2 AS cor0
----
-13
120
130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7568
SELECT DISTINCT + col1 * + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7568
SELECT DISTINCT + col1 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - ( - col0 ) - col2 AS col2 FROM tab2
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7570
SELECT DISTINCT + - col1 + col0 DIV + col1 FROM tab2 AS cor0
----
-13
-31
-58
skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT + - col1 + col0 / + col1 FROM tab2 AS cor0
----
-13
-31
-58
query I rowsort
SELECT DISTINCT - + 49 AS col2 FROM tab1 cor0
----
-49
query I rowsort
SELECT DISTINCT + col1 + + col2 * + 80 + ( + col0 ) FROM tab1 AS cor0
----
4349
4634
7773
query I rowsort
SELECT DISTINCT + 1 FROM tab2, tab2 AS cor0
----
1
query I rowsort
SELECT ALL + ( 43 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT 84 * col2 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT - tab1.col1 * col1 * - col2 AS col0 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT ALL 27 * - col2 FROM tab1 AS cor0
----
-1458
-1539
-2592
query I rowsort
SELECT DISTINCT + + col1 * - col2 + cor0.col2 * cor0.col0 + col1 AS col2 FROM tab2 cor0
----
-617
2373
553
query I rowsort
SELECT + - col1 + col0 - - col1 AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT ALL - 87 FROM tab0 cor0
----
-87
-87
-87
query I rowsort
SELECT - col0 + 68 FROM tab2
----
-10
-11
61
query I rowsort
SELECT DISTINCT - col2 + + col1 * - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT - + ( col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT ALL + 90 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT - cor1.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + cor0.col0 * 58 AS col1 FROM tab0 AS cor0
----
1392
2030
5162
query I rowsort
SELECT DISTINCT ( col2 ) + + col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 * - 64 col0 FROM tab0 cor0
----
2496
2496
2496
query I rowsort
SELECT ALL 5 * col0 + col0 AS col1 FROM tab1 AS cor0
----
18
384
480
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT DISTINCT - cor0.col0 - col0 FROM tab1 cor0
----
-128
-160
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7593
SELECT + - ( 56 ) DIV col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7593
SELECT + - ( 56 ) / col2 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL 98 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7595
SELECT - - CAST( NULL AS SIGNED ) * col2 + + col1 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7595
SELECT - - CAST ( NULL AS INTEGER ) * col2 + + col1 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 80 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - - col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * + col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL 18 * 20 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 9dba7d2d6acb691eda7c570407f5a5e5
query I rowsort
SELECT ALL + col0 + + ( col2 ) + col1 AS col2 FROM tab2 AS cor0
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-7602
SELECT ALL col2 DIV - 79 AS col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7602
SELECT ALL col2 / - 79 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7603
SELECT CAST( - cor0.col2 AS SIGNED ) - + col2 * + 88 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382
skipif mysql # not compatible
query I rowsort label-7603
SELECT CAST ( - cor0.col2 AS INTEGER ) - + col2 * + 88 AS col0 FROM tab2 AS cor0
----
-2314
-2403
-3382
query I rowsort
SELECT - 18 + + col1 * col0 AS col1 FROM tab0 AS cor0
----
2046
3377
8081
query I rowsort
SELECT DISTINCT - tab1.col1 + ( + 67 ) AS col1 FROM tab1
----
41
54
57
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL ( cor0.col2 ) + ( col2 ) * col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col0 + col0 * tab2.col1 FROM tab2
----
1422
224
4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col1 FROM tab0
----
31
31
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-7610
SELECT DISTINCT + 60 DIV - col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT + 60 / - col1 AS col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7611
SELECT col1 DIV - 37 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7611
SELECT col1 / - 37 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - 36 AS col2 FROM tab1
----
-36
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + 35 AS REAL ) + tab0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to eebe797d91b290515a5615916b631770
query I rowsort
SELECT ALL - + col2 * + 9 + cor0.col0 FROM tab1 AS cor0
----
-449
-483
-784
query I rowsort
SELECT ALL - - col2 + 55 FROM tab2 AS cor0
----
81
82
93
query I rowsort
SELECT + 24 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT + ( - col0 * col2 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + tab1.col1 * - tab1.col0 - col0 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT col1 + - tab2.col2 * + tab2.col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - ( tab0.col2 + col0 ) * col1 FROM tab0
----
-15561
-3492
-4902
query I rowsort
SELECT tab1.col1 * 95 FROM tab1
----
1235
2470
950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7622
SELECT - CAST( col2 AS SIGNED ) * col0 + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-706
-7207
62
skipif mysql # not compatible
query I rowsort label-7622
SELECT - CAST ( col2 AS INTEGER ) * col0 + ( cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT + 76 DIV + col2 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
163
3649
7680
skipif mysql # not compatible
query I rowsort label-7623
SELECT + 76 / + col2 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
163
3649
7680
query I rowsort
SELECT 15 + + cor0.col0 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 3f9051b35bee49b355374f20429d6c28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT col0 * - col0 + 87 * + col0 FROM tab0 AS cor0
----
-178
1512
1820
query I rowsort
SELECT + + col2 + cor0.col0 * - col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + ( col0 ) * - 5 + col0 FROM tab0 AS cor0
----
-140
-356
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7629
SELECT + + ( cor0.col2 ) DIV 25 + - 58 AS col1 FROM tab1 AS cor0
----
-55
-56
-56
skipif mysql # not compatible
query I rowsort label-7629
SELECT + + ( cor0.col2 ) / 25 + - 58 AS col1 FROM tab1 AS cor0
----
-55
-56
-56
query I rowsort
SELECT DISTINCT + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7631
SELECT col1 DIV col0 + ( - col1 * col1 ) AS col0 FROM tab0 AS cor0
----
-7393
-8280
-9407
skipif mysql # not compatible
query I rowsort label-7631
SELECT col1 / col0 + ( - col1 * col1 ) AS col0 FROM tab0 AS cor0
----
-7393
-8280
-9407
query I rowsort
SELECT ALL 44 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
1195
1222
1751
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7633
SELECT + col1 * - cor0.col1 * CAST( NULL AS SIGNED ) - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7633
SELECT + col1 * - cor0.col1 * CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7634
SELECT DISTINCT col0 + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7634
SELECT DISTINCT col0 + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + - 12 + + col2 * + cor0.col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
119640
51022
5847
query I rowsort
SELECT DISTINCT 78 + - col1 + 26 * - 29 FROM tab0 AS cor0
----
-762
-767
-773
query I rowsort
SELECT - + col1 - col0 * + 1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7638
SELECT col2 + - 36 DIV + col0 AS col2 FROM tab0
----
0
32
82
skipif mysql # not compatible
query I rowsort label-7638
SELECT col2 + - 36 / + col0 AS col2 FROM tab0
----
0
32
82
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT 14 AS col0 FROM tab2, tab1, tab2 AS cor0
----
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT ALL + 79 DIV - col0 + - col1 FROM tab2
----
-18
-42
-60
skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + 79 / - col0 + - col1 FROM tab2
----
-18
-42
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7642
SELECT DISTINCT + 75 * col2 + CAST( + col2 AS SIGNED ) + col2 * + col1 AS col1 FROM tab2
----
2889
3510
3534
skipif mysql # not compatible
query I rowsort label-7642
SELECT DISTINCT + 75 * col2 + CAST ( + col2 AS INTEGER ) + col2 * + col1 AS col1 FROM tab2
----
2889
3510
3534
query I rowsort
SELECT ( col1 ) * - 68 FROM tab1
----
-1768
-680
-884
query I rowsort
SELECT DISTINCT tab1.col1 * tab1.col1 * 46 + - col0 + col1 AS col2 FROM tab1
----
31119
4546
7707
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7645
SELECT DISTINCT col1 * - col1 + CAST( col2 AS SIGNED ) * cor0.col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT col1 * - col1 + CAST ( col2 AS INTEGER ) * cor0.col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 72 + - col0 FROM tab1
----
-8
69
8
query I rowsort
SELECT ALL - - 30 + col2 FROM tab1 AS cor0
----
126
84
87
query I rowsort
SELECT ALL - col0 * - tab1.col1 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL 73 + - 7 FROM tab2, tab0 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7650
SELECT col2 - ( tab2.col2 ) DIV + col1 AS col0 FROM tab2
----
26
27
36
skipif mysql # not compatible
query I rowsort label-7650
SELECT col2 - ( tab2.col2 ) / + col1 AS col0 FROM tab2
----
26
27
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - ( - col2 * col2 ) col0 FROM tab0 AS cor0
----
132
26222
598527
onlyif mysql # use DIV operator for integer division
query I rowsort label-7652
SELECT + col1 + col2 DIV + tab0.col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7652
SELECT + col1 + col2 / + tab0.col1 FROM tab0
----
86
91
97
query I rowsort
SELECT col1 * tab1.col2 + - 51 AS col0 FROM tab1
----
1197
1353
519
query I rowsort
SELECT DISTINCT - col0 * ( tab2.col1 ) AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + cor0.col1 * + ( + col1 ) + 51 FROM tab2 AS cor0
----
1012
340
3532
query I rowsort
SELECT + + ( + col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + ( + col1 ) + + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + col0 + cor0.col0 - - cor0.col1 FROM tab1 AS cor0
----
138
173
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7659
SELECT ALL - + CAST( NULL AS DECIMAL ) * + col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL - + CAST ( NULL AS REAL ) * + col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7660
SELECT - CAST( - 34 AS SIGNED ) FROM tab2 AS cor0
----
34
34
34
skipif mysql # not compatible
query I rowsort label-7660
SELECT - CAST ( - 34 AS INTEGER ) FROM tab2 AS cor0
----
34
34
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7661
SELECT ALL - CAST( NULL AS DECIMAL ) + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - CAST ( NULL AS REAL ) + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7662
SELECT ALL cor0.col0 * col0 + - col2 * - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
6760
7685
778
skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL cor0.col0 * col0 + - col2 * - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
6760
7685
778
query I rowsort
SELECT DISTINCT + + ( col2 ) AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - 12 * col1 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
-309
-56
-76
query I rowsort
SELECT DISTINCT + 53 - 22 FROM tab1 AS cor0
----
31
query I rowsort
SELECT col0 + 29 AS col2 FROM tab1 AS cor0
----
109
32
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7667
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7667
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * - 28 AS col1 FROM tab2 cor0
----
-1652
-476
-868
onlyif mysql # use DIV operator for integer division
query I rowsort label-7669
SELECT ALL + + col2 + - 61 DIV cor0.col1 FROM tab2 AS cor0
----
25
26
35
skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + + col2 + - 61 / cor0.col1 FROM tab2 AS cor0
----
25
26
35
query I rowsort
SELECT + - col2 + ( col1 ) AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col0 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT 13 * + col2 AS col0 FROM tab2
----
338
351
494
query I rowsort
SELECT ALL - ( - col2 ) * col1 AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + - 98 * 33 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
-3138
-3177
-3180
query I rowsort
SELECT ALL - - 84 + col2 FROM tab0 AS cor0
----
117
166
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7676
SELECT ALL CAST( cor0.col1 AS SIGNED ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL CAST ( cor0.col1 AS INTEGER ) * - col1 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7677
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + col1 + - ( - cor0.col2 * cor0.col2 ) AS col2 FROM tab1 AS cor0
----
10256
2994
3889
skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + col1 + - ( - cor0.col2 * cor0.col2 ) AS col2 FROM tab1 AS cor0
----
10256
2994
3889
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 - 37 AS col0 FROM tab2 AS cor0
----
12
6047
6204
query I rowsort
SELECT DISTINCT - + col0 - - col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT ( col2 + - col1 ) FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - 72 FROM tab1, tab0, tab1 AS cor0
----
-72
query I rowsort
SELECT DISTINCT + tab0.col0 * + col0 * col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT + col2 * col0 * + col0 + col2 FROM tab0
----
1226
19041
649604
query I rowsort
SELECT ALL col0 * - ( 24 * col0 ) AS col1 FROM tab0 AS cor0
----
-13824
-190104
-29400
query I rowsort
SELECT ALL cor0.col1 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL - col1 * - col1 + col2 AS col2 FROM tab0 cor0
----
7429
8363
9410
query I rowsort
SELECT + col0 + 88 * cor0.col2 FROM tab0 AS cor0
----
123
2928
7305
query I rowsort
SELECT DISTINCT + + cor0.col1 + 49 AS col2 FROM tab2 cor0
----
108
66
80
query I rowsort
SELECT ALL - col1 * - 99 AS col0 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT DISTINCT col0 * col0 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7691
SELECT ALL + cor0.col2 + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL + cor0.col2 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT col0 + + col2 * 16 AS col0 FROM tab1 AS cor0
----
1616
867
976
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7693
SELECT ALL + col1 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + col1 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * + col0 + col1 FROM tab2
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7695
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-7695
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT col0 + - col0 * col2 AS col0 FROM tab0 cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - ( 32 ) + - col1 col2 FROM tab1 AS cor0
----
1702
1814
3059
query I rowsort
SELECT - cor0.col0 + - 43 FROM tab1 AS cor0
----
-107
-123
-46
query I rowsort
SELECT + cor0.col0 * + ( + ( + cor0.col2 ) ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 + tab2.col2 AS col2 FROM tab2
----
52
54
76
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 - + col2 NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT col2 DIV col0 + - col2 + - col0 DIV + col2 FROM tab1
----
-36
-58
-95
skipif mysql # not compatible
query I rowsort label-7702
SELECT col2 / col0 + - col2 + - col0 / + col2 FROM tab1
----
-36
-58
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab0.col0 col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - col2 + col0 * + col2 FROM tab2
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT col1 + col2 DIV tab0.col1 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7705
SELECT col1 + col2 / tab0.col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT col2 - col0 * col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + 2 * - col1 FROM tab2 cor0
----
-118
-34
-62
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 * col1 + + col2 * col0 col2 FROM tab2
----
207407
29980
7915
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col1 AND + col1
----
query I rowsort
SELECT + col0 * col1 * col2 FROM tab0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-7712
SELECT - 60 DIV 55 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
skipif mysql # not compatible
query I rowsort label-7712
SELECT - 60 / 55 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT - col0 + - col0 + col1 AS col0 FROM tab0 AS cor0
----
-87
27
38
query I rowsort
SELECT DISTINCT - - 96 + - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-1968
-3299
-8003
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 * + ( 43 ) AS col0 FROM tab1 cor0
----
-176128
-275200
-387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col1 + - col2 col0 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + - 90 AS col2 FROM tab0 AS cor0
----
-90
-90
-90
query I rowsort
SELECT col2 + + col2 + col2 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT 63 + col1 + + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-6570
-940
159
onlyif mysql # use DIV operator for integer division
query I rowsort label-7720
SELECT DISTINCT col1 + - col2 DIV CAST( + 13 AS SIGNED ) FROM tab0 cor0
----
84
85
97
skipif mysql # not compatible
query I rowsort label-7720
SELECT DISTINCT col1 + - col2 / CAST ( + 13 AS INTEGER ) FROM tab0 cor0
----
84
85
97
query I rowsort
SELECT - + col2 * 68 AS col0 FROM tab2 AS cor0
----
-1768
-1836
-2584
query I rowsort
SELECT DISTINCT - - cor0.col2 + + ( - 59 ) AS col1 FROM tab0 AS cor0
----
-26
-58
23
query I rowsort
SELECT col2 * 48 FROM tab2 AS cor0
----
1248
1296
1824
onlyif mysql # use DIV operator for integer division
query I rowsort label-7724
SELECT ALL col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7724
SELECT ALL col0 / + col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT + col0 + + 32 * 83 FROM tab2 AS cor0
----
2663
2734
2735
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7726
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col2 * col1 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ( 7 ) * cor0.col0 - - col0 * + col1 FROM tab2 cor0
----
1896
266
5148
query I rowsort
SELECT col1 + - col1 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col2 * + 55 + col1 FROM tab2 AS cor0
----
1489
1516
2107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 col0 FROM tab2, tab1 cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-7731
SELECT DISTINCT ( - col2 ) * col1 DIV ( 45 ) AS col1 FROM tab1
----
-12
-27
-31
skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT ( - col2 ) * col1 / ( 45 ) AS col1 FROM tab1
----
-12
-27
-31
query I rowsort
SELECT col2 * col2 * 38 + + 85 AS col0 FROM tab0 cor0
----
123
255597
41467
query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab1, tab2 AS cor0
----
-49
query I rowsort
SELECT - col0 + col1 - + col0 FROM tab0 AS cor0
----
-87
27
38
query I rowsort
SELECT DISTINCT - col1 * tab1.col2 * + col0 - + 79 AS col1 FROM tab1
----
-36559
-4291
-99919
query I rowsort
SELECT DISTINCT cor0.col1 * col0 * + col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL + col1 + col0 * col1 * - col1 FROM tab2 AS cor0
----
-22814
-271459
-6696
query I rowsort
SELECT DISTINCT - + col2 * ( col1 ) + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL col2 * cor0.col2 + - col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) * - col0 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - 53 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7742
SELECT - + col0 DIV - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-7742
SELECT - + col0 / - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab2, tab0 AS cor0
----
30
query I rowsort
SELECT ( + 19 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-7745
SELECT col2 DIV - col1 - + 59 * + tab2.col2 AS col0 FROM tab2
----
-1534
-1593
-2244
skipif mysql # not compatible
query I rowsort label-7745
SELECT col2 / - col1 - + 59 * + tab2.col2 AS col0 FROM tab2
----
-1534
-1593
-2244
query I rowsort
SELECT - ( col0 ) - + col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-7747
SELECT - 78 DIV - cor0.col2 + col2 + + col0 FROM tab0 cor0
----
114
171
59
skipif mysql # not compatible
query I rowsort label-7747
SELECT - 78 / - cor0.col2 + col2 + + col0 FROM tab0 cor0
----
114
171
59
query I rowsort
SELECT ALL + col2 - ( col0 ) * - col0 AS col1 FROM tab2
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7749
SELECT DISTINCT - col0 + - col0 DIV + tab0.col2 - col0 FROM tab0
----
-105
-179
-48
skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - col0 + - col0 / + tab0.col2 - col0 FROM tab0
----
-105
-179
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-7750
SELECT - col2 DIV col2 + col2 col1 FROM tab0
----
0
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7750
SELECT - col2 / col2 + col2 col1 FROM tab0
----
0
32
81
query I rowsort
SELECT col0 + - 11 FROM tab2
----
-4
67
68
query I rowsort
SELECT col1 + - 63 AS col1 FROM tab1
----
-37
-50
-53
query I rowsort
SELECT - 42 + col2 AS col1 FROM tab0 AS cor0
----
-41
-9
40
query I rowsort
SELECT + tab0.col2 * + ( + col2 * ( col1 ) + tab0.col2 ) AS col1 FROM tab0
----
618608
94743
98
query I rowsort
SELECT 67 * + tab1.col0 * col2 AS col0 FROM tab1
----
10854
244416
514560
query I rowsort
SELECT ALL 40 * col1 * 81 + - col0 FROM tab0 AS cor0
----
278616
294751
314245
query I rowsort
SELECT ALL - cor0.col2 + - col2 FROM tab1 AS cor0
----
-108
-114
-192
onlyif mysql # use DIV operator for integer division
query I rowsort label-7758
SELECT ALL - 18 DIV col2 + col2 * col1 FROM tab0 AS cor0
----
2838
7462
79
skipif mysql # not compatible
query I rowsort label-7758
SELECT ALL - 18 / col2 + col2 * col1 FROM tab0 AS cor0
----
2838
7462
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7759
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col0 AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col0 AS col2 FROM tab0
----
0
query I rowsort
SELECT ALL + 2 * - col1 + col2 AS col1 FROM tab0
----
-100
-139
-193
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 + col0 * col0 col2 FROM tab0
----
1232
583
7928
query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab2, tab0, tab0 AS cor0
----
48
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-7764
SELECT DISTINCT col0 DIV + col0 + col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7764
SELECT DISTINCT col0 / + col0 + col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT 51 + col2 FROM tab0 AS cor0
----
133
52
84
query I rowsort
SELECT + + ( - col2 ) + 62 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1570
670
872
query I rowsort
SELECT tab1.col0 * - 16 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to 8c078cee5cba2039f245f3699c8925f9
query I rowsort
SELECT 60 * col2 + - 70 * col2 FROM tab2 AS cor0
----
-260
-270
-380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 - col0 col0 FROM tab1 AS cor0
----
18
2
79
query I rowsort
SELECT DISTINCT + 14 - + col2 * - col2 AS col1 FROM tab0 AS cor0
----
1103
15
6738
query I rowsort
SELECT + + 90 * + col0 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
296
5770
7213
query I rowsort
SELECT DISTINCT col0 * col0 + col1 AS col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT 20 + tab2.col1 FROM tab2, tab1, tab2 AS cor0
----
37
51
79
query I rowsort
SELECT - + col0 + + 50 FROM tab1 AS cor0
----
-14
-30
47
query I rowsort
SELECT ALL + + cor0.col0 * + col2 + + 77 FROM tab1 AS cor0
----
239
3725
7757
query I rowsort
SELECT ALL - col0 * - col1 + 67 * + col1 FROM tab2 AS cor0
----
2294
2482
8555
onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT DISTINCT - col0 DIV + cor0.col2 FROM tab1 cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - col0 / + cor0.col2 FROM tab1 cor0
----
-1
0
query I rowsort
SELECT + col1 + - 11 * col1 AS col2 FROM tab2 cor0
----
-170
-310
-590
onlyif mysql # use DIV operator for integer division
query I rowsort label-7779
SELECT ALL + col1 + + 30 DIV col0 FROM tab1 AS cor0
----
10
13
36
skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL + col1 + + 30 / col0 FROM tab1 AS cor0
----
10
13
36
query I rowsort
SELECT DISTINCT col1 - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7781
SELECT DISTINCT - col1 DIV + CAST( 20 * col1 AS SIGNED ) + + col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-7781
SELECT DISTINCT - col1 / + CAST ( 20 * col1 AS INTEGER ) + + col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT + - col0 * - col0 + - 65 AS col1 FROM tab1 AS cor0
----
-56
4031
6335
onlyif mysql # use DIV operator for integer division
query I rowsort label-7783
SELECT + col2 DIV col1 + + col2 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-7783
SELECT + col2 / col1 + + col2 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT col0 * 7 AS col1 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT DISTINCT - col2 * 56 AS col0 FROM tab1 cor0
----
-3024
-3192
-5376
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7786
SELECT + + col1 * + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7786
SELECT + + col1 * + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * + 9 AS col2 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT ALL + 17 * col2 AS col2 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT DISTINCT - + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 69 + cor0.col2 + col1 AS col0 FROM tab0 AS cor0
----
167
188
242
query I rowsort
SELECT ALL ( - col2 ) * - cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 * + ( + col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + col2 - ( + col2 ) * 45 * - ( + col1 ) AS col2 FROM tab2 AS cor0
----
29108
37692
69056
onlyif mysql # use DIV operator for integer division
query I rowsort label-7794
SELECT DISTINCT - 37 + col1 * col1 DIV col1 AS col1 FROM tab1 AS cor0
----
-11
-24
-27
skipif mysql # not compatible
query I rowsort label-7794
SELECT DISTINCT - 37 + col1 * col1 / col1 AS col1 FROM tab1 AS cor0
----
-11
-24
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7795
SELECT + - ( 53 ) * cor0.col0 - CAST( NULL AS SIGNED ) * - 26 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7795
SELECT + - ( 53 ) * cor0.col0 - CAST ( NULL AS INTEGER ) * - 26 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * 55 + col0 * - col0 FROM tab0 AS cor0
----
-12431
-1280
-2391
query I rowsort
SELECT DISTINCT + - 92 * col2 FROM tab0 AS cor0
----
-3036
-7544
-92
query I rowsort
SELECT ALL + 44 * col2 + + col1 + col0 FROM tab0 AS cor0
----
1562
176
3788
query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab0 cor0
----
65
query I rowsort
SELECT - - 69 AS col1 FROM tab0 AS cor0
----
69
69
69
query I rowsort
SELECT + col0 * + cor0.col2 + + col0 + 37 AS col0 FROM tab1 AS cor0
----
202
3749
7797
query I rowsort
SELECT ALL + 17 + col2 FROM tab1 cor0
----
113
71
74
query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab0, tab0 cor0
----
91
query I rowsort
SELECT ALL - tab1.col2 + - 49 * col0 FROM tab1
----
-201
-3193
-4016
query I rowsort
SELECT - col1 * + col2 + + col2 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT - + col0 * - col2 + + col1 * - 74 AS col2 FROM tab2 AS cor0
----
-2105
-2338
1744
query I rowsort
SELECT + ( ( col2 ) ) + 43 AS col1 FROM tab0 AS cor0
----
125
44
76
query I rowsort
SELECT col2 * + ( + col2 ) * col1 AS col1 FROM tab2
----
22599
24548
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7809
SELECT + cor1.col2 * + CAST( NULL AS SIGNED ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7809
SELECT + cor1.col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL 72 * tab0.col1 FROM tab0
----
6192
6552
6984
query I rowsort
SELECT + 23 * col0 AS col2 FROM tab2 AS cor0
----
161
1794
1817
onlyif mysql # use DIV operator for integer division
query I rowsort label-7812
SELECT + - 8 DIV + col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7812
SELECT + - 8 / + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - 41 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL + col1 * - col0 + ( - col2 * col1 ) AS col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT ALL + 17 + - col0 AS col2 FROM tab1 AS cor0
----
-47
-63
14
query I rowsort
SELECT + ( cor0.col2 ) AS col1 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + 32 AS col2 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b
query I rowsort
SELECT col0 + col0 * + 57 FROM tab2 cor0
----
406
4524
4582
query I rowsort
SELECT DISTINCT cor0.col0 * col0 + + col1 FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col2 col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 + + col2 * + col1 col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + col1 + ( + 22 ) * - col0 AS col1 FROM tab2 cor0
----
-123
-1657
-1721
onlyif mysql # use DIV operator for integer division
query I rowsort label-7823
SELECT - + col0 DIV 20 + - cor0.col2 col1 FROM tab2 AS cor0
----
-27
-29
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7823
SELECT - + col0 / 20 + - cor0.col2 col1 FROM tab2 AS cor0
----
-27
-29
-41
query I rowsort
SELECT ALL + col1 * - col2 * col2 - col2 * col2 FROM tab2
----
-23328
-25992
-40560
query I rowsort
SELECT - col0 * col2 * 13 - - col1 FROM tab1 AS cor0
----
-2080
-47414
-99827
onlyif mysql # use DIV operator for integer division
query I rowsort label-7826
SELECT + - cor0.col1 * cor0.col2 DIV + 90 + + col0 AS col0 FROM tab0 AS cor0
----
-7
34
7
skipif mysql # not compatible
query I rowsort label-7826
SELECT + - cor0.col1 * cor0.col2 / + 90 + + col0 AS col0 FROM tab0 AS cor0
----
-7
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7827
SELECT - CAST( NULL AS SIGNED ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7827
SELECT - CAST ( NULL AS INTEGER ) + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 76 + - cor0.col2 + + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 6cf2284c23e7cdd47dbe1a9498b86247
query I rowsort
SELECT + col1 - 81 AS col0 FROM tab2 AS cor0
----
-22
-50
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 87 col2 FROM tab2 AS cor0
----
87
87
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7831
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + col0 * col1 + - col1 * 51 / + col2 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT CAST ( NULL AS REAL ) * + col0 * col1 + - col1 * 51 / + col2 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 93 * 52 + + col2 FROM tab1 cor0
----
-4740
-4779
-4782
onlyif mysql # use DIV operator for integer division
query I rowsort label-7833
SELECT + + col2 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7833
SELECT + + col2 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + cor1.col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT 9 * - col1 AS col2 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT col1 * - 83 AS col2 FROM tab0 cor0
----
-7138
-7553
-8051
query I rowsort
SELECT ALL + ( - col1 * col2 + + col0 ) FROM tab0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-7838
SELECT DISTINCT + - cor0.col2 DIV ( + 39 ) AS col1 FROM tab1 cor0
----
-1
-2
skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT + - cor0.col2 / ( + 39 ) AS col1 FROM tab1 cor0
----
-1
-2
query I rowsort
SELECT col1 + col2 * - col2 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT + cor0.col0 * - ( cor0.col0 ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - + col0 + + ( - col1 ) FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - + col1 * ( col0 ) * ( - 86 ) + - col1 * ( col2 ) FROM tab2 AS cor0
----
114852
17825
394238
query I rowsort
SELECT ALL + + ( cor0.col1 ) * col2 + col2 * col0 AS col2 FROM tab1 cor0
----
1566
4218
8928
query I rowsort
SELECT DISTINCT - - col0 - col0 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7845
SELECT DISTINCT ( col0 ) DIV + col1 col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT ( col0 ) / + col1 col1 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7846
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / - col0 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / - col0 + - col2 * col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 67 + col1 AS col2 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT - + 69 * + col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
195822
514878
6693
query I rowsort
SELECT ALL - col1 + cor0.col2 * cor0.col0 + + 36 * - col2 AS col0 FROM tab0 AS cor0
----
-482
-98
4255
query I rowsort
SELECT DISTINCT + 21 + col0 * - 22 AS col0 FROM tab2 AS cor0
----
-133
-1695
-1717
query I rowsort
SELECT DISTINCT + 1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
query I rowsort
SELECT - 15 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT - ( + cor1.col2 ) AS col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - col1 * 55 AS col2 FROM tab1
----
-1430
-550
-715
query I rowsort
SELECT - 31 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT 26 + cor0.col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
52
53
64
query I rowsort
SELECT ALL + col0 * + ( + col2 ) FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL col2 * col1 + col2 + + col0 FROM tab1
----
1424
1461
691
onlyif mysql # use DIV operator for integer division
query I rowsort label-7859
SELECT - col0 * + 75 + - col2 DIV col1 AS col1 FROM tab2 cor0
----
-525
-5850
-5927
skipif mysql # not compatible
query I rowsort label-7859
SELECT - col0 * + 75 + - col2 / col1 AS col1 FROM tab2 cor0
----
-525
-5850
-5927
query I rowsort
SELECT - - col1 + + ( - col0 * + col1 ) FROM tab1 AS cor0
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7861
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7862
SELECT - col1 * ( 87 ) * - col2 + + ( - col1 ) * + col1 DIV CAST( col1 AS SIGNED ) - col0 FROM tab1 AS cor0
----
108483
122119
49516
skipif mysql # not compatible
query I rowsort label-7862
SELECT - col1 * ( 87 ) * - col2 + + ( - col1 ) * + col1 / CAST ( col1 AS INTEGER ) - col0 FROM tab1 AS cor0
----
108483
122119
49516
query I rowsort
SELECT DISTINCT + 76 + col0 - - 49 AS col1 FROM tab0
----
149
160
214
query I rowsort
SELECT col1 + 89 + col2 AS col1 FROM tab2 AS cor0
----
144
147
174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + col1 - col2 col1 FROM tab1 AS cor0
----
-111
-163
-31
query I rowsort
SELECT DISTINCT - col1 + 4 FROM tab1 AS cor0
----
-22
-6
-9
query I rowsort
SELECT DISTINCT - col0 + 75 + - col0 FROM tab0
----
-103
27
5
query I rowsort
SELECT DISTINCT + col2 * col0 * + col2 + + col2 AS col2 FROM tab1
----
207993
737376
8802
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7869
SELECT DISTINCT 31 * col1 - + col0 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7869
SELECT DISTINCT 31 * col1 - + col0 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7870
SELECT ALL + - col1 * + 2 * + col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL + - col1 * + 2 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7871
SELECT ALL ( + col2 ) + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL ( + col2 ) + col0 / + col1 AS col2 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT - col0 * col1 + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - cor0.col2 + - col0 * - cor0.col1 FROM tab0 cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-7874
SELECT + col0 DIV - ( col0 ) FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7874
SELECT + col0 / - ( col0 ) FROM tab2
----
-1
-1
-1
query I rowsort
SELECT ALL tab0.col1 + ( col2 + - col0 ) * 4 FROM tab0
----
-39
122
63
query I rowsort
SELECT tab2.col2 + col2 + + tab2.col0 FROM tab2
----
130
155
61
query I rowsort
SELECT DISTINCT - col2 + - tab1.col1 AS col0 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT + col0 * 91 AS col0 FROM tab0 AS cor0
----
2184
3185
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 91 ) * col2 col0 FROM tab0 AS cor0
----
3003
7462
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7880
SELECT - - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7880
SELECT - - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + - col2 + + col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col1 * tab2.col2 + + col0 AS col1 FROM tab2
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT ALL 90 DIV - tab1.col0 FROM tab1
----
-1
-1
-30
skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL 90 / - tab1.col0 FROM tab1
----
-1
-1
-30
query I rowsort
SELECT DISTINCT + col2 * - 32 FROM tab2
----
-1216
-832
-864
query I rowsort
SELECT ALL - ( 97 ) FROM tab0
----
-97
-97
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + cor0.col0 * + col1 * 63 col2 FROM tab0 AS cor0
----
130056
213920
510326
query I rowsort
SELECT 11 * - 47 FROM tab0
----
-517
-517
-517
query I rowsort
SELECT col0 * col0 + 40 FROM tab2
----
6124
6281
89
query I rowsort
SELECT + ( col0 ) + col2 AS col2 FROM tab0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7890
SELECT DISTINCT - ( - col1 * CAST( - col1 AS SIGNED ) ) AS col1 FROM tab1
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - ( - col1 * CAST ( - col1 AS INTEGER ) ) AS col1 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7891
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 46 + + col2 AS col1 FROM tab0
----
128
47
79
query I rowsort
SELECT ALL + col0 * + cor0.col0 + + 92 AS col2 FROM tab1 AS cor0
----
101
4188
6492
query I rowsort
SELECT DISTINCT - col0 + ( 50 ) FROM tab1
----
-14
-30
47
query I rowsort
SELECT + col0 * - 29 FROM tab1
----
-1856
-2320
-87
query I rowsort
SELECT DISTINCT - col0 * 1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7897
SELECT ALL - + col0 + + 61 DIV - 72 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL - + col0 + + 61 / - 72 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - col2 + - 71 * 66 FROM tab1 AS cor0
----
-4740
-4743
-4782
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col2 + + CAST ( - 17 AS REAL ) * - cor0.col1 + - col2 AS col1 FROM tab2 AS cor0
----
1003
289
527
onlyif mysql # use DIV operator for integer division
query I rowsort label-7900
SELECT - + col0 - col0 DIV - 90 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7900
SELECT - + col0 - col0 / - 90 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col1 - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT - col1 * 70 + 33 FROM tab2 AS cor0
----
-1157
-2137
-4097
query I rowsort
SELECT col0 - col0 * 24 FROM tab2
----
-161
-1794
-1817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - tab2.col1 * 49 col1 FROM tab2
----
-1488
-2832
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT + col0 DIV + col0 + + col2 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-164
-3711
-7759
skipif mysql # not compatible
query I rowsort label-7905
SELECT + col0 / + col0 + + col2 * - col0 + - col0 AS col0 FROM tab1 AS cor0
----
-164
-3711
-7759
query I rowsort
SELECT + col0 * + tab2.col0 * - 84 FROM tab2
----
-4116
-511056
-524244
query I rowsort
SELECT - col0 + - col1 - 20 AS col2 FROM tab2
----
-116
-157
-58
query I rowsort
SELECT - 69 * - col1 + + col2 AS col2 FROM tab2 AS cor0
----
1211
2166
4097
query I rowsort
SELECT + col0 + col0 + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1200
768
84
query I rowsort
SELECT + - cor0.col0 * + col1 + col2 + + 44 * - col2 FROM tab2 AS cor0
----
-1378
-2977
-5720
query I rowsort
SELECT ALL col0 * + col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
22910
271596
6734
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7912
SELECT DISTINCT - cor0.col0 * CAST( NULL AS SIGNED ) - cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7912
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS INTEGER ) - cor0.col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 * col1 + 9 AS col0 FROM tab2 AS cor0
----
1543
655
846
onlyif mysql # use DIV operator for integer division
query I rowsort label-7914
SELECT ALL - - col0 * col2 - + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-7914
SELECT ALL - - col0 * col2 - + col2 / + col1 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col1 * - 31 + cor0.col0 * col0 FROM tab2 cor0
----
-912
4255
5714
query I rowsort
SELECT - cor0.col2 * 74 + + col2 AS col1 FROM tab2 AS cor0
----
-1898
-1971
-2774
query I rowsort
SELECT - + ( col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - 28 col0 FROM tab0 AS cor0
----
2296
28
924
onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT + - col0 DIV + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7919
SELECT + - col0 / + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT - 77 * col0 AS col1 FROM tab1 cor0
----
-231
-4928
-6160
query I rowsort
SELECT + + cor0.col2 + col2 * col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL 40 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT + cor0.col0 * cor0.col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - cor0.col0 * + col0 * col2 + 85 AS col0 FROM tab1 AS cor0
----
-233387
-401
-614315
query I rowsort
SELECT DISTINCT - + 92 + col1 AS col2 FROM tab0 cor0
----
-1
-6
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7926
SELECT ALL + cor0.col0 + - cor0.col0 * + CAST( - cor0.col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + cor0.col0 + - cor0.col0 * + CAST ( - cor0.col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + 55 + cor0.col2 FROM tab0 AS cor0
----
137
56
88
query I rowsort
SELECT + 57 * 21 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 07ad34b61152a4792b2710f89a343665
onlyif mysql # use DIV operator for integer division
query I rowsort label-7929
SELECT - 44 DIV - col1 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-7929
SELECT - 44 / - col1 FROM tab1 AS cor0
----
1
3
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col2 * 23 + col2 col1 FROM tab1 AS cor0
----
-176544
-3672
-83847
onlyif mysql # use DIV operator for integer division
query I rowsort label-7931
SELECT - cor0.col1 DIV col0 FROM tab1 cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-7931
SELECT - cor0.col1 / col0 FROM tab1 cor0
----
-8
0
0
query I rowsort
SELECT ALL 40 * col1 AS col0 FROM tab0 AS cor0
----
3440
3640
3880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7933
SELECT + CAST( NULL AS SIGNED ) + + 21 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7933
SELECT + CAST ( NULL AS INTEGER ) + + 21 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL ( 46 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL 68 * col1 AS col2 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT - 29 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
query I rowsort
SELECT + col1 * 93 * ( col2 ) + 73 * col1 FROM tab2 cor0
----
146969
61319
80104
query I rowsort
SELECT 23 * tab1.col1 * - 18 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c96ccab517eed4702be1a2740abf3bf6
query I rowsort
SELECT ALL 77 * + tab0.col0 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 780f5ba541769c8f3ef3c8c584a78ef8
query I rowsort
SELECT ALL col0 * + col1 + - col0 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT col1 * ( + col0 ) AS col2 FROM tab2
----
1343
217
4602
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 4fa4bd3038de6e74a345debc8ab4cd53
query I rowsort
SELECT ALL - ( - 77 ) AS col1 FROM tab1
----
77
77
77
query I rowsort
SELECT ALL - + col0 * ( - col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL cor1.col0 * + ( 10 ) AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9d3fde19eddda0331ce5af60fad737d0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab2 AS cor0
----
-57
-57
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col1 ) + + col1 * ( col1 * col1 ) col0 FROM tab2 AS cor0
----
205438
29822
4930
query I rowsort
SELECT + cor0.col0 + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 12dab34e8226f2bb1644c238b20d2aa7
query I rowsort
SELECT - 30 * - col0 * - col2 AS col0 FROM tab1
----
-109440
-230400
-4860
query I rowsort
SELECT DISTINCT + tab0.col1 * + col1 + + col2 AS col2 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL col1 * - col1 + cor0.col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1798
-5015
-935
onlyif mysql # use DIV operator for integer division
query I rowsort label-7952
SELECT col0 * - col0 + - col2 DIV cor0.col1 col0 FROM tab1 AS cor0
----
-11
-4101
-6407
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7952
SELECT col0 * - col0 + - col2 / cor0.col1 col0 FROM tab1 AS cor0
----
-11
-4101
-6407
query I rowsort
SELECT DISTINCT + col0 * + col0 + col2 * + col0 AS col2 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT ALL - col2 - cor0.col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT + 39 + + col2 AS col1 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT tab2.col1 * col1 + col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT + col0 * - cor0.col2 + - cor0.col2 FROM tab2 cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + + col2 - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + col2 * - col0 * + col2 AS col1 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT cor0.col0 * cor0.col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL - - col2 - - cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT + ( + tab2.col1 ) * col0 * col0 AS col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT col2 - - 79 FROM tab2
----
105
106
117
query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 - col1 FROM tab2
----
-6143
-6258
-80
query I rowsort
SELECT - 89 + + tab0.col1 AS col2 FROM tab0
----
-3
2
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col0 FROM tab2
----
-62
-62
-62
query I rowsort
SELECT DISTINCT + 12 * col0 * + col0 + cor0.col0 FROM tab2 AS cor0
----
595
73086
74971
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7969
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 97 + - col2 * col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 97 + - col2 * col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7970
SELECT + CAST( - cor0.col0 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-7970
SELECT + CAST ( - cor0.col0 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT col1 * 11 FROM tab1 AS cor0
----
110
143
286
onlyif mysql # use DIV operator for integer division
query I rowsort label-7972
SELECT ALL 5 DIV col0 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL 5 / col0 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7973
SELECT - col1 DIV + col1 - col0 * col0 FROM tab1 AS cor0
----
-10
-4097
-6401
skipif mysql # not compatible
query I rowsort label-7973
SELECT - col1 / + col1 - col0 * col0 FROM tab1 AS cor0
----
-10
-4097
-6401
query I rowsort
SELECT - - 72 + col0 AS col1 FROM tab2 AS cor0
----
150
151
79
query I rowsort
SELECT - - cor0.col1 - col1 AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7976
SELECT DISTINCT + ( + col1 ) DIV col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7976
SELECT DISTINCT + ( + col1 ) / col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL 25 + col1 FROM tab2 AS cor0
----
42
56
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - cor0.col1 + col1 col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT ALL - col1 * + col1 - - col0 AS col0 FROM tab1 cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * - col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + - 63 - cor0.col1 FROM tab1 AS cor0
----
-73
-76
-89
query I rowsort
SELECT ALL - - cor0.col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 14 - - col2 AS col2 FROM tab2 AS cor0
----
40
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7984
SELECT ( + col1 ) * + col1 + col0 DIV + col2 + col0 * + col0 col1 FROM tab1
----
4197
6569
685
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7984
SELECT ( + col1 ) * + col1 + col0 / + col2 + col0 * + col0 col1 FROM tab1
----
4197
6569
685
query I rowsort
SELECT - - col1 + + col2 * col0 FROM tab1 cor0
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-7986
SELECT + 51 + - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
50
50
50
skipif mysql # not compatible
query I rowsort label-7986
SELECT + 51 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
50
50
50
query I rowsort
SELECT - 96 + - ( + tab2.col0 ) AS col2 FROM tab2
----
-103
-174
-175
query I rowsort
SELECT ALL 40 + col1 - tab1.col0 FROM tab1
----
-14
-27
63
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 NOT IN ( col2 + - col0 * - col1 * - col0 )
----
query I rowsort
SELECT col2 * - col1 * col2 + + cor0.col1 * col2 / - col0 FROM tab1 AS cor0 WHERE NULL IN ( + cor0.col0 / + col1 )
----
query I rowsort
SELECT ALL + col1 * + col1 * - tab1.col1 AS col2 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT ALL - tab1.col0 + tab1.col0 * col0 + tab1.col2 AS col0 FROM tab1
----
4089
60
6416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 + col1 col2 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL + col2 + + col0 - + col2 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT DISTINCT - col0 + + col0 * col1 * + col1 + col2 DIV col0 FROM tab1
----
13441
2043
6336
skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - col0 + + col0 * col1 * + col1 + col2 / col0 FROM tab1
----
13441
2043
6336
query I rowsort
SELECT DISTINCT col2 * - col2 * + col1 FROM tab2
----
-22599
-24548
-39884
onlyif mysql # use DIV operator for integer division
query I rowsort label-7997
SELECT col1 * + col1 DIV - col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7997
SELECT col1 * + col1 / - col1 FROM tab2
----
-17
-31
-59
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 + col2 * col0 ) BETWEEN ( - col1 + - col0 * col0 - + tab2.col1 * + tab2.col0 ) AND NULL
----
query I rowsort
SELECT DISTINCT col0 * col2 * + col1 + - col1 + col2 * + col0 FROM tab1
----
107507
40118
4348
query I rowsort
SELECT tab0.col2 * col2 + tab0.col1 FROM tab0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 col0 FROM tab1
----
4096
6400
9
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > ( - col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE + col0 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT + col1 * col0 * + tab0.col0 AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT ALL col0 * + col1 * + col1 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT + tab0.col2 + col1 * col0 AS col2 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL <= NULL OR NULL <= col0 + cor0.col1 * col1
----
query I rowsort
SELECT ALL - col2 + col2 * col0 * - col2 AS col2 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT - - col1 * - cor0.col2 AS col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col2 * col1 + col1 + cor0.col0 FROM tab0 AS cor0
----
-2728
-7282
35
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < NULL AND NOT ( NULL ) NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT + tab1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
3
64
80
query I rowsort
SELECT col2 + cor0.col2 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
-244035
-678960
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT DISTINCT + 42 AS col0 FROM tab1, tab0 AS cor0
----
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col1 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8017
SELECT 82 * + col0 + - col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
574
6395
6474
skipif mysql # not compatible
query I rowsort label-8017
SELECT 82 * + col0 + - col0 / + col1 AS col2 FROM tab2 AS cor0
----
574
6395
6474
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + cor0.col0 col2 FROM tab0 AS cor0
----
-18
-29
36
query I rowsort
SELECT col1 * col2 + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT - 75 - - tab1.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 17028cf104396210a74a6d3ff1b6ddb9
query I rowsort
SELECT ( 86 ) + col0 FROM tab2 AS cor0
----
164
165
93
query I rowsort
SELECT ALL + 0 * + 40 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 + 53 * col0 AS col0 FROM tab2 cor0
----
402
4193
4204
query I rowsort
SELECT ALL + - 65 * ( - col2 ) + + cor0.col2 + col0 FROM tab2 AS cor0
----
1789
1794
2587
query I rowsort
SELECT - cor0.col1 + - cor0.col1 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT col1 + 81 FROM tab2 AS cor0
----
112
140
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8027
SELECT col2 * - 84 * + 66 + tab2.col2 DIV + 50 + col2 AS col1 FROM tab2
----
-144118
-149661
-210634
skipif mysql # not compatible
query I rowsort label-8027
SELECT col2 * - 84 * + 66 + tab2.col2 / + 50 + col2 AS col1 FROM tab2
----
-144118
-149661
-210634
query I rowsort
SELECT - ( col2 ) * col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT - + ( ( - col0 ) ) * + ( - col0 ) AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - 84 * - col1 FROM tab0 AS cor0
----
7224
7644
8148
query I rowsort
SELECT ALL - + ( col0 ) * ( + col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - ( col0 ) * + cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * + col0 col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-8034
SELECT col0 * col0 + - col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-8034
SELECT col0 * col0 + - col0 / - col1 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 81 * col1 * + ( cor0.col0 * + col2 ) FROM tab0 AS cor0
----
274995
53793558
5517072
query I rowsort
SELECT - + col1 * col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + col2 * 73 FROM tab0 AS cor0
----
2409
5986
73
query I rowsort
SELECT + - cor0.col2 * col2 * col1 AS col0 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL col0 * col2 * + col2 AS col1 FROM tab1
----
207936
737280
8748
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 ALL col1 * - 68 + - cor0.col2 FROM tab0 AS cor0
----
-5881
-6270
-6597
onlyif mysql # use DIV operator for integer division
query I rowsort label-8042
SELECT - col1 + 80 DIV 37 AS col1 FROM tab2 cor0
----
-15
-29
-57
skipif mysql # not compatible
query I rowsort label-8042
SELECT - col1 + 80 / 37 AS col1 FROM tab2 cor0
----
-15
-29
-57
query I rowsort
SELECT DISTINCT col1 * tab2.col0 * + col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT tab0.col2 * - tab0.col0 AS col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8045
SELECT ALL - + cor0.col1 + - CAST( - col2 AS SIGNED ) * col0 + - col0 AS col1 FROM tab0 AS cor0
----
-97
682
7118
skipif mysql # not compatible
query I rowsort label-8045
SELECT ALL - + cor0.col1 + - CAST ( - col2 AS INTEGER ) * col0 + - col0 AS col1 FROM tab0 AS cor0
----
-97
682
7118
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8046
SELECT DISTINCT - col1 * CAST( + 33 AS SIGNED ) AS col2 FROM tab0 cor0
----
-2838
-3003
-3201
skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT - col1 * CAST ( + 33 AS INTEGER ) AS col2 FROM tab0 cor0
----
-2838
-3003
-3201
query I rowsort
SELECT ALL - col1 * col1 + + 30 FROM tab1 AS cor0
----
-139
-646
-70
query I rowsort
SELECT DISTINCT - + col1 + 55 * + ( + col0 ) FROM tab2 AS cor0
----
354
4231
4328
query I rowsort
SELECT ALL + cor0.col2 * 87 FROM tab1 AS cor0
----
4698
4959
8352
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8050
SELECT - - col2 + - col0 * CAST( 82 AS SIGNED ) FROM tab2 AS cor0
----
-547
-6370
-6440
skipif mysql # not compatible
query I rowsort label-8050
SELECT - - col2 + - col0 * CAST ( 82 AS INTEGER ) FROM tab2 AS cor0
----
-547
-6370
-6440
onlyif mysql # use DIV operator for integer division
query I rowsort label-8051
SELECT ( col0 ) DIV + cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8051
SELECT ( col0 ) / + cor0.col1 + ( col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + - col2 * cor0.col0 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - col0 * - col0 * + cor0.col0 AS col2 FROM tab0 cor0
----
13824
42875
704969
query I rowsort
SELECT + 18 FROM tab1, tab2 cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT ( col2 * col1 + + 16 ) FROM tab2
----
1550
662
853
query I rowsort
SELECT col0 * - col0 * + 58 - 0 FROM tab1
----
-237568
-371200
-522
onlyif mysql # use DIV operator for integer division
query I rowsort label-8058
SELECT col1 + col1 DIV - 24 AS col1 FROM tab0
----
83
88
93
skipif mysql # not compatible
query I rowsort label-8058
SELECT col1 + col1 / - 24 AS col1 FROM tab0
----
83
88
93
query I rowsort
SELECT DISTINCT + col1 * - col0 + 68 FROM tab2
----
-1275
-149
-4534
query I rowsort
SELECT ALL col0 + - col1 * col1 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT - col1 * col1 * - 10 AS col2 FROM tab1
----
1000
1690
6760
query I rowsort
SELECT ( + col1 + col1 ) FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-8063
SELECT DISTINCT 21 DIV + col0 + tab1.col0 AS col2 FROM tab1
----
10
64
80
skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT 21 / + col0 + tab1.col0 AS col2 FROM tab1
----
10
64
80
query I rowsort
SELECT ALL col1 + - col0 * - col0 + - col0 AS col0 FROM tab2
----
6065
6179
73
query I rowsort
SELECT DISTINCT - 64 - 93 FROM tab0, tab0 AS cor0, tab1 cor1
----
-157
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0, tab1 cor1, tab0 cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8067
SELECT + tab1.col2 + col2 + CAST( NULL AS SIGNED ) * + col1 * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8067
SELECT + tab1.col2 + col2 + CAST ( NULL AS INTEGER ) * + col1 * col1 AS col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8068
SELECT ALL - col2 DIV cor0.col0 col0 FROM tab2 cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - col2 / cor0.col0 col0 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT + col2 * - col0 + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT col0 * - col1 - col0 * + col1 FROM tab1 AS cor0
----
-1280
-156
-2080
onlyif mysql # use DIV operator for integer division
query I rowsort label-8071
SELECT DISTINCT + + col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT + + col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT cor0.col0 + + col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT 93 + col2 + - ( col2 + + col1 ) FROM tab0 AS cor0
----
-4
2
7
query I rowsort
SELECT - + col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + - 2 + + col2 FROM tab1 AS cor0
----
52
55
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8076
SELECT + CAST( NULL AS SIGNED ) + - col0 * + col1 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8076
SELECT + CAST ( NULL AS INTEGER ) + - col0 * + col1 col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 13 * + col2 FROM tab0
----
-1066
-13
-429
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8078
SELECT 66 * + col0 * + CAST( col2 AS SIGNED ) FROM tab2
----
12474
133848
198132
skipif mysql # not compatible
query I rowsort label-8078
SELECT 66 * + col0 * + CAST ( col2 AS INTEGER ) FROM tab2
----
12474
133848
198132
query I rowsort
SELECT - 76 + + col2 * - col0 FROM tab1 AS cor0
----
-238
-3724
-7756
onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT + col2 DIV col0 - - cor0.col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-8080
SELECT + col2 / col0 - - cor0.col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT DISTINCT 29 + + col1 AS col2 FROM tab2
----
46
60
88
query I rowsort
SELECT - col1 + + ( + 48 ) * - col1 AS col1 FROM tab1
----
-1274
-490
-637
query I rowsort
SELECT - col1 + ( col0 + + col0 ) * - tab0.col2 FROM tab0
----
-14687
-167
-1670
query I rowsort
SELECT DISTINCT ( ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8085
SELECT - ( - col0 ) * + col0 DIV - col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8085
SELECT - ( - col0 ) * + col0 / - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + 15 * + col2 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT + tab0.col0 * + 62 + 81 AS col0 FROM tab0
----
1569
2251
5599
query I rowsort
SELECT DISTINCT + cor0.col0 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8089
SELECT ALL - 45 DIV - col1 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL - 45 / - col1 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT DISTINCT 32 + - col2 AS col2 FROM tab2 AS cor0
----
-6
5
6
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL - col2 * col1 * cor0.col0 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - 27 * + col1 AS col1 FROM tab2 AS cor0
----
-1593
-459
-837
query I rowsort
SELECT ALL + 10 * col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1890
-20280
-30020
query I rowsort
SELECT DISTINCT col2 * + 33 AS col1 FROM tab1
----
1782
1881
3168
query I rowsort
SELECT - tab2.col0 * ( col2 * + col0 + + ( tab2.col0 ) ) FROM tab2
----
-1372
-164268
-243399
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8097
SELECT - col1 + + CAST( col1 AS SIGNED ) * col2 + ( col2 ) FROM tab0 AS cor0
----
1
2785
7453
skipif mysql # not compatible
query I rowsort label-8097
SELECT - col1 + + CAST ( col1 AS INTEGER ) * col2 + ( col2 ) FROM tab0 AS cor0
----
1
2785
7453
query I rowsort
SELECT + col1 + - col1 + col0 AS col1 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + - col1 + 23 AS col0 FROM tab2 AS cor0
----
-36
-8
6
query I rowsort
SELECT ALL + + col2 + 96 * + ( - col0 ) FROM tab0 AS cor0
----
-2271
-3359
-8462
query I rowsort
SELECT col1 * 64 * - col0 FROM tab1
----
-40960
-4992
-66560
query I rowsort
SELECT col2 + + 4 FROM tab1
----
100
58
61
query I rowsort
SELECT - - cor0.col1 * - 87 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT + - cor0.col0 * + 62 FROM tab1 cor0
----
-186
-3968
-4960
query I rowsort
SELECT DISTINCT col1 + + 50 AS col2 FROM tab2 cor0
----
109
67
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5
query I rowsort
SELECT ALL col1 * ( - 41 ) FROM tab0
----
-3526
-3731
-3977
query I rowsort
SELECT ALL + col2 * - 99 FROM tab2
----
-2574
-2673
-3762
query I rowsort
SELECT + cor0.col2 AS col1 FROM tab2, tab0, tab2 AS cor0, tab1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT col1 * + ( tab0.col2 ) AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 99 * col0 AS col0 FROM tab0 AS cor0
----
2376
3465
8811
query I rowsort
SELECT ALL 44 * + col1 + col1 AS col2 FROM tab0 cor0
----
3870
4095
4365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8113
SELECT ALL CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8114
SELECT + CAST( + col1 AS SIGNED ) * col1 DIV col0 + 80 AS col0 FROM tab1
----
305
81
82
skipif mysql # not compatible
query I rowsort label-8114
SELECT + CAST ( + col1 AS INTEGER ) * col1 / col0 + 80 AS col0 FROM tab1
----
305
81
82
query I rowsort
SELECT 23 * - 16 FROM tab2
----
-368
-368
-368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 67 * - cor0.col1 + - col0 * + col0 * + 27 col0 FROM tab1 AS cor0
----
-111262
-173671
-1985
query I rowsort
SELECT + + col2 + + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT - 80 * + col1 FROM tab0
----
-6880
-7280
-7760
query I rowsort
SELECT + 85 + + col0 FROM tab2 AS cor0
----
163
164
92
query I rowsort
SELECT - - cor0.col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL ( + col0 ) + col2 + col0 AS col2 FROM tab1
----
185
256
60
query I rowsort
SELECT + + cor0.col2 + col1 * + col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT + 37 * - col2 AS col2 FROM tab0 AS cor0
----
-1221
-3034
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8124
SELECT ALL - col2 + tab2.col2 * + CAST( NULL AS DECIMAL ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL - col2 + tab2.col2 * + CAST ( NULL AS REAL ) * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + col1 * 69 FROM tab2
----
1211
2166
4097
query I rowsort
SELECT ALL col0 + cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT ( col1 ) + col2 * - col1 FROM tab2
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col1 ) + col1 * - 6 col1 FROM tab0 cor0
----
-430
-455
-485
query I rowsort
SELECT - col2 + col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8130
SELECT ALL - cor0.col0 * 97 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-290
-6207
-7759
skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL - cor0.col0 * 97 + col0 / col0 AS col1 FROM tab1 AS cor0
----
-290
-6207
-7759
query I rowsort
SELECT ALL - - col0 * + 14 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 + - col1 FROM tab0 cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 2 col0 FROM tab2 cor0
----
19
33
61
query I rowsort
SELECT + col0 * - col0 + + cor0.col0 * cor0.col2 FROM tab0 cor0
----
-1190
-623
216
query I rowsort
SELECT ALL col2 + + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT + + col0 * - 51 FROM tab0 cor0
----
-1224
-1785
-4539
query I rowsort
SELECT DISTINCT + col0 * + 84 + - 77 FROM tab2 AS cor0
----
511
6475
6559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8138
SELECT + col0 * CAST( col0 AS SIGNED ) FROM tab1 cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-8138
SELECT + col0 * CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT ALL + col0 + + col2 * col2 DIV + col1 FROM tab1 AS cor0
----
115
388
788
skipif mysql # not compatible
query I rowsort label-8139
SELECT ALL + col0 + + col2 * col2 / + col1 FROM tab1 AS cor0
----
115
388
788
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 54 * - col0 * col2 col2 FROM tab0 AS cor0
----
1925
394181
42792
query I rowsort
SELECT + 40 * col2 FROM tab0
----
1320
3280
40
query I rowsort
SELECT DISTINCT - 4 + - col2 * col2 FROM tab1
----
-2920
-3253
-9220
query I rowsort
SELECT ALL - - col0 * 36 + + 12 AS col0 FROM tab0 AS cor0
----
1272
3216
876
query I rowsort
SELECT DISTINCT col0 - 86 * col1 FROM tab1 AS cor0
----
-1038
-2233
-796
query I rowsort
SELECT ALL - - col2 + + col0 - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2007
-3359
-7928
query I rowsort
SELECT - - ( 78 ) * col2 FROM tab2 AS cor0
----
2028
2106
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-8147
SELECT + col2 DIV col2 - col1 * col0 * - ( + col2 ) col2 FROM tab0 AS cor0
----
3396
664119
68113
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8147
SELECT + col2 / col2 - col1 * col0 * - ( + col2 ) col2 FROM tab0 AS cor0
----
3396
664119
68113
query I rowsort
SELECT DISTINCT + col0 * + 69 FROM tab0 AS cor0
----
1656
2415
6141
query I rowsort
SELECT ALL + 28 * - col2 + - col1 * ( ( col2 ) ) FROM tab2 AS cor0
----
-1593
-1710
-2262
query I rowsort
SELECT - - col2 + cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT - ( cor0.col0 ) * col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col1 * - ( + col2 ) FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ( 68 ) AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 + 46 col1 FROM tab0 AS cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8155
SELECT DISTINCT - 16 + col0 DIV col0 FROM tab2 AS cor0
----
-15
skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT - 16 + col0 / col0 FROM tab2 AS cor0
----
-15
query I rowsort
SELECT ALL col2 * + 97 FROM tab2 cor0
----
2522
2619
3686
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 96 col0 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT DISTINCT ( - col0 ) * - col1 * + col2 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT cor0.col2 + - cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL + + col0 * col2 + 55 + - ( + col1 * + col0 ) AS col1 FROM tab2 AS cor0
----
-2519
1714
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8162
SELECT ALL - 4 DIV + col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-27
skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL - 4 / + col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-27
query I rowsort
SELECT - + 65 AS col1 FROM tab2 AS cor0
----
-65
-65
-65
query I rowsort
SELECT + + col1 - + col1 * 42 * cor0.col0 FROM tab0 AS cor0
----
-142493
-340067
-86602
query I rowsort
SELECT ALL - - col0 - col1 * col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8166
SELECT CAST( col1 AS SIGNED ) * - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8166
SELECT CAST ( col1 AS INTEGER ) * - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 79 FROM tab1 AS cor0
----
237
5056
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8168
SELECT - col1 * + CAST( + 97 AS SIGNED ) FROM tab1 cor0
----
-1261
-2522
-970
skipif mysql # not compatible
query I rowsort label-8168
SELECT - col1 * + CAST ( + 97 AS INTEGER ) FROM tab1 cor0
----
-1261
-2522
-970
query I rowsort
SELECT ALL + cor0.col1 + - ( - 26 ) AS col0 FROM tab2 AS cor0
----
43
57
85
query I rowsort
SELECT DISTINCT - col1 * 3 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT ALL - cor0.col1 * + 50 FROM tab1 AS cor0
----
-1300
-500
-650
query I rowsort
SELECT ALL - col2 + - 50 + col0 FROM tab2 cor0
----
-70
-9
2
query I rowsort
SELECT ALL cor0.col0 + 98 * + ( - col2 ) AS col1 FROM tab1 AS cor0
----
-5289
-5522
-9328
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8174
SELECT - CAST( col2 AS SIGNED ) FROM tab1 cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8174
SELECT - CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 36 * - tab0.col1 - col1 col1 FROM tab0
----
-266342
-298207
-338821
query I rowsort
SELECT ALL + ( col0 ) * col1 + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + col2 + 65 FROM tab2 AS cor0
----
103
91
92
query I rowsort
SELECT + + col0 * - col0 - + col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT 47 AS col1 FROM tab0, tab0 cor0
----
47
query I rowsort
SELECT ALL - cor0.col2 + + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 0bd022e691ee49f12c598975818ed537
query I rowsort
SELECT DISTINCT + 27 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27
query I rowsort
SELECT ALL - ( + col2 ) * + ( 69 ) AS col0 FROM tab0 AS cor0
----
-2277
-5658
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-8183
SELECT - col1 DIV cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8183
SELECT - col1 / cor0.col1 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8184
SELECT + 25 + + col1 DIV 45 AS col0 FROM tab0 AS cor0
----
26
27
27
skipif mysql # not compatible
query I rowsort label-8184
SELECT + 25 + + col1 / 45 AS col0 FROM tab0 AS cor0
----
26
27
27
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + 10 * col2 FROM tab2 AS cor0
----
1917
20306
30058
query I rowsort
SELECT ALL - ( - col0 ) + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL tab2.col2 * - col0 + - col2 AS col0 FROM tab2
----
-2054
-216
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col0 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + col1 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 + - 60 FROM tab1 AS cor0
----
-160
-229
-736
query I rowsort
SELECT ALL + col0 * - col0 + col0 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-12800
-18
-8192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * - col0 col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8193
SELECT CAST( NULL AS SIGNED ) * + cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8193
SELECT CAST ( NULL AS INTEGER ) * + cor0.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8194
SELECT DISTINCT + col1 * + CAST( - 73 * col0 AS SIGNED ) AS col0 FROM tab0
----
-150672
-247835
-591227
skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT + col1 * + CAST ( - 73 * col0 AS INTEGER ) AS col0 FROM tab0
----
-150672
-247835
-591227
onlyif mysql # use DIV operator for integer division
query I rowsort label-8195
SELECT DISTINCT + col0 DIV - col1 + - col2 + col0 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT + col0 / - col1 + - col2 + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL col2 + - ( - cor0.col2 ) + - col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8197
SELECT DISTINCT + col0 DIV + col0 + - col1 AS col0 FROM tab1
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT + col0 / + col0 + - col1 AS col0 FROM tab1
----
-12
-25
-9
query I rowsort
SELECT - ( - tab2.col2 ) * col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT - 78 FROM tab1, tab1 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT + - col0 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
-56
-6162
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8201
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT CAST ( NULL AS REAL ) + - col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 52 ) + col2 + col0 col1 FROM tab1 cor0
----
124
5
69
query I rowsort
SELECT ALL cor0.col2 * cor0.col1 + ( col1 ) * col0 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT - 13 + - cor0.col1 * + col0 * + ( + col2 + + ( + 70 ) ) FROM tab0 AS cor0
----
-1231061
-212605
-241058
query I rowsort
SELECT 71 * - col2 + ( 64 ) * col2 FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT - col1 * - col0 + 49 FROM tab1 AS cor0
----
1089
127
689
query I rowsort
SELECT ALL - col2 * + col2 + - col1 AS col2 FROM tab0 cor0
----
-1175
-6815
-98
query I rowsort
SELECT col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * - col2 + col1 + - col2 col0 FROM tab2 AS cor0
----
-1501
-667
-833
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 * - col0 + - col1 col2 FROM tab1 AS cor0
----
-317
-6218
-7773
query I rowsort
SELECT DISTINCT - col0 * tab1.col2 + - col1 AS col0 FROM tab1
----
-188
-3658
-7693
query I rowsort
SELECT tab2.col2 * - col1 + + tab2.col1 * col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 85 + - col0 * col1 FROM tab1 AS cor0
----
-555
-955
7
query I rowsort
SELECT cor1.col0 + - 35 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 82609e53ac5d97790ef64a5ce88b23da
query I rowsort
SELECT ALL + col0 * 29 FROM tab2
----
203
2262
2291
query I rowsort
SELECT DISTINCT + ( 0 ) FROM tab1
----
0
query I rowsort
SELECT 55 * - tab0.col2 * - 97 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 786af37447795cb37aac235855d46e28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8218
SELECT ALL - + 34 + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL - + 34 + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col1 + col0 * + 5 FROM tab0 AS cor0
----
34
354
78
query I rowsort
SELECT DISTINCT - 73 - col0 * - 99 FROM tab1 AS cor0
----
224
6263
7847
query I rowsort
SELECT DISTINCT + - 44 AS col1 FROM tab2 AS cor0
----
-44
query I rowsort
SELECT DISTINCT - 48 * + col0 + col2 * + ( + 86 ) * - col2 + col0 * 50 AS col0 FROM tab1
----
-250770
-279286
-792416
query I rowsort
SELECT ( + col2 * - col0 ) AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT 57 * - tab1.col1 AS col1 FROM tab1
----
-1482
-570
-741
onlyif mysql # use DIV operator for integer division
query I rowsort label-8225
SELECT - 93 DIV - cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2
skipif mysql # not compatible
query I rowsort label-8225
SELECT - 93 / - cor0.col0 FROM tab2, tab0 cor0
----
9 values hashing to 245313dc4e9fc19df7ee93651efe9bf2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT - col0 * col2 + col2 * col1 DIV - col0 AS col2 FROM tab1 cor0
----
-3656
-630
-7695
skipif mysql # not compatible
query I rowsort label-8226
SELECT - col0 * col2 + col2 * col1 / - col0 AS col2 FROM tab1 cor0
----
-3656
-630
-7695
query I rowsort
SELECT col2 + 91 AS col0 FROM tab2 AS cor0
----
117
118
129
query I rowsort
SELECT ALL - col0 * + col1 + col2 * + col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT col0 + + col1 + ( col2 ) AS col1 FROM tab0 AS cor0
----
133
143
262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + 32 col1 FROM tab1 cor0
----
19
22
6
query I rowsort
SELECT - cor0.col0 + + 5 - - 67 FROM tab1 AS cor0
----
-8
69
8
query I rowsort
SELECT + col0 * col1 + - col2 + col0 AS col2 FROM tab0 AS cor0
----
2055
3429
8106
query I rowsort
SELECT DISTINCT - ( - col1 ) * col2 + 25 * col1 FROM tab0
----
2522
4988
9737
query I rowsort
SELECT DISTINCT - 29 + tab0.col2 AS col2 FROM tab0
----
-28
4
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT ( col1 ) * col1 DIV - col0 FROM tab0
----
-268
-308
-93
skipif mysql # not compatible
query I rowsort label-8235
SELECT ( col1 ) * col1 / - col0 FROM tab0
----
-268
-308
-93
query I rowsort
SELECT + 87 * col2 AS col0 FROM tab1
----
4698
4959
8352
query I rowsort
SELECT 38 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT - 42 + 18 FROM tab1, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT - + col0 + col0 - + col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col1 + - ( col0 ) * - col0 - ( 73 ) * cor0.col2 FROM tab1 AS cor0
----
-3959
-621
-75
query I rowsort
SELECT ALL + col2 * - col2 - col2 AS col0 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT DISTINCT col1 * + ( col1 ) - col2 FROM tab1
----
43
622
73
query I rowsort
SELECT tab0.col2 + col0 + - col1 * col1 AS col2 FROM tab0
----
-7339
-8110
-9373
query I rowsort
SELECT DISTINCT - col2 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL 35 AS col1 FROM tab0 AS cor0
----
35
35
35
query I rowsort
SELECT - ( + ( + col2 ) ) * 61 - + col2 * col2 FROM tab1 cor0
----
-15072
-6210
-6726
query I rowsort
SELECT col0 + - col2 + 48 * col1 FROM tab1
----
1197
487
608
onlyif mysql # use DIV operator for integer division
query I rowsort label-8248
SELECT col1 + + CAST( + col2 AS SIGNED ) DIV col2 - 6 col0 FROM tab0
----
81
86
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8248
SELECT col1 + + CAST ( + col2 AS INTEGER ) / col2 - 6 col0 FROM tab0
----
81
86
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT DISTINCT 81 DIV 15 AS col1 FROM tab1, tab2 AS cor0
----
5
skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT 81 / 15 AS col1 FROM tab1, tab2 AS cor0
----
5
query I rowsort
SELECT - - cor0.col1 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 10 col2 FROM tab0 AS cor0
----
34
45
99
query I rowsort
SELECT - 35 + - col1 * - col0 FROM tab1 cor0
----
1005
43
605
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - col1 AS REAL ) + col1 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + col2 * + col0 + - col1 * + ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT DISTINCT + ( col0 ) - - col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT + col2 + + ( + col0 + col1 ) FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8257
SELECT ALL 92 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-92
skipif mysql # not compatible
query I rowsort label-8257
SELECT ALL 92 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
-92
query I rowsort
SELECT DISTINCT 77 + - col2 FROM tab0 AS cor0
----
-5
44
76
query I rowsort
SELECT ALL col0 - 2 AS col1 FROM tab1 AS cor0
----
1
62
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8260
SELECT DISTINCT - 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-8260
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL col1 + 59 FROM tab0 AS cor0
----
145
150
156
query I rowsort
SELECT ALL col0 * col2 * col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
1322
19094
649613
query I rowsort
SELECT DISTINCT - ( ( col0 ) ) - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT + col1 * col0 - + col1 * + col1 AS col1 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT 1 + col1 AS col1 FROM tab1
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-8266
SELECT ALL 98 DIV - col1 + + ( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-27
-30
-43
skipif mysql # not compatible
query I rowsort label-8266
SELECT ALL 98 / - col1 + + ( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-27
-30
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 + + col0 col1 FROM tab1 AS cor0
----
131
147
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + col1 col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + 22 * - col2 AS col1 FROM tab2 AS cor0
----
-572
-594
-836
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + ( + col0 ) + col0 col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + col1 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8272
SELECT DISTINCT col1 + col0 DIV cor0.col2 FROM tab0 AS cor0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT col1 + col0 / cor0.col2 FROM tab0 AS cor0
----
132
86
92
query I rowsort
SELECT ALL - + col2 - cor0.col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT ALL + col2 * col1 + col2 - - cor0.col1 * cor0.col1 AS col1 FROM tab2 cor0
----
1825
5041
973
query I rowsort
SELECT + ( col1 + + tab1.col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT - 45 * 45 + col2 AS col0 FROM tab1 AS cor0
----
-1929
-1968
-1971
query I rowsort
SELECT tab1.col2 * 86 AS col1 FROM tab1
----
4644
4902
8256
query I rowsort
SELECT DISTINCT - 10 * cor0.col2 FROM tab1 AS cor0
----
-540
-570
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-8279
SELECT 63 + + col1 DIV cor0.col1 AS col1 FROM tab0 AS cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-8279
SELECT 63 + + col1 / cor0.col1 AS col1 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT DISTINCT col2 * col0 + + col1 + - col0 FROM tab2 AS cor0
----
2009
213
2940
query I rowsort
SELECT col1 + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT + col0 * col1 + col0 * - col2 FROM tab1 AS cor0
----
-3008
-6640
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 2 col0 FROM tab1
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col1 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT tab2.col2 * col2 * - 62 AS col1 FROM tab2
----
-41912
-45198
-89528
query I rowsort
SELECT DISTINCT + + col0 * 98 * + cor0.col1 FROM tab0 AS cor0
----
202272
332710
793702
query I rowsort
SELECT + col2 + - col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - col1 * cor0.col2 + cor0.col2 + col0 AS col0 FROM tab0 AS cor0
----
-2781
-61
-7291
query I rowsort
SELECT + col2 * - ( + col0 + + col0 ) * - col1 AS col1 FROM tab1
----
199680
72960
8424
onlyif mysql # use DIV operator for integer division
query I rowsort label-8290
SELECT - cor0.col1 DIV 52 + col1 * col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
13533
2054
6410
skipif mysql # not compatible
query I rowsort label-8290
SELECT - cor0.col1 / 52 + col1 * col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT DISTINCT + - col0 * ( - cor0.col1 + col2 ) AS col2 FROM tab1 cor0
----
-3008
-6640
-84
query I rowsort
SELECT + col1 - - 85 AS col1 FROM tab0 AS cor0
----
171
176
182
query I rowsort
SELECT DISTINCT cor0.col2 - 59 AS col1 FROM tab2 AS cor0
----
-21
-32
-33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8294
SELECT + cor0.col2 * + CAST( 83 AS SIGNED ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2772
6888
84
skipif mysql # not compatible
query I rowsort label-8294
SELECT + cor0.col2 * + CAST ( 83 AS INTEGER ) + + cor0.col2 AS col0 FROM tab0 AS cor0
----
2772
6888
84
query I rowsort
SELECT - col2 * cor0.col0 - cor0.col0 * col1 AS col1 FROM tab0 cor0
----
-15397
-2856
-3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + 86 col1 FROM tab2 cor0
----
48
59
60
query I rowsort
SELECT - col1 * col0 * col1 + - col2 * col0 + - col2 AS col2 FROM tab1 AS cor0
----
-10105
-21296
-2244
query I rowsort
SELECT ALL cor0.col1 * + 11 * - 12 FROM tab1 AS cor0
----
-1320
-1716
-3432
onlyif mysql # use DIV operator for integer division
query I rowsort label-8299
SELECT DISTINCT cor0.col0 DIV ( - col0 ) AS col2 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8299
SELECT DISTINCT cor0.col0 / ( - col0 ) AS col2 FROM tab1 cor0
----
-1
query I rowsort
SELECT ALL + + ( - col2 ) + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + + 78 * cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 + - col2 * + col2 AS col0 FROM tab1 AS cor0
----
-10464
-3819
-4320
query I rowsort
SELECT + 42 + col1 FROM tab0 AS cor0
----
128
133
139
query I rowsort
SELECT DISTINCT + tab1.col0 * + tab1.col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
162
3648
7680
query I rowsort
SELECT ALL + col1 * + 76 + tab0.col1 AS col2 FROM tab0
----
6622
7007
7469
onlyif mysql # use DIV operator for integer division
query I rowsort label-8306
SELECT + - col1 DIV + col1 + - col2 FROM tab0 cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-8306
SELECT + - col1 / + col1 + - col2 FROM tab0 cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + cor0.col0 col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + col1 + + cor0.col0 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-193
-3344
-923
query I rowsort
SELECT DISTINCT col2 * tab2.col0 + col1 + - tab2.col1 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - col1 * col1 + col2 * col0 + - col2 FROM tab2 AS cor0
----
-1479
-799
2675
query I rowsort
SELECT + + col1 * - cor0.col1 + col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT DISTINCT col1 * col0 + - col2 AS col0 FROM tab0 cor0
----
2031
3394
8017
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE cor0.col2 BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ALL + col1 + col0 FROM tab2 WHERE ( col1 * col2 * col0 ) NOT BETWEEN ( col1 * col0 ) AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 * - col0 col2 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT + cor0.col2 + - cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5b9ded363f55d1d4bbc85491d2b84046
onlyif mysql # use DIV operator for integer division
query I rowsort label-8317
SELECT + cor0.col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8317
SELECT + cor0.col1 / + col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT col1 * col2 AS col2 FROM tab0 WHERE NOT ( - tab0.col2 NOT IN ( col1 ) ) AND NOT col0 > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8319
SELECT tab0.col0 DIV - col0 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8319
SELECT tab0.col0 / - col0 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL + col2 + + col2 + col0 AS col1 FROM tab1
----
111
178
272
query I rowsort
SELECT ALL tab2.col1 * - tab2.col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL - col2 * col1 * col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT ALL + col1 + + col0 * + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - + 34 * + col2 - - ( - col2 ) FROM tab0 cor0
----
-1155
-2870
-35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8325
SELECT - ( col1 ) - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-20
-26
-52
skipif mysql # not compatible
query I rowsort label-8325
SELECT - ( col1 ) - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8326
SELECT col0 * cor0.col0 - + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1224
543
7839
skipif mysql # not compatible
query I rowsort label-8326
SELECT col0 * cor0.col0 - + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT - 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT - col0 + - 29 FROM tab0 cor0
----
-118
-53
-64
query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab2, tab2 AS cor0
----
38
query I rowsort
SELECT - 98 AS col1 FROM tab0, tab0 cor0, tab2 cor1
----
27 values hashing to 9b0655947ad21e0b95a137a474fa6a1f
query I rowsort
SELECT col1 + ( 33 + - col0 ) FROM tab1 cor0
----
-21
-34
56
query I rowsort
SELECT DISTINCT col1 * 59 - - 58 * col1 FROM tab1 AS cor0
----
1170
1521
3042
query I rowsort
SELECT - cor0.col1 - 18 AS col0 FROM tab1 AS cor0
----
-28
-31
-44
query I rowsort
SELECT ALL - col0 - 44 AS col2 FROM tab1 AS cor0
----
-108
-124
-47
query I rowsort
SELECT DISTINCT + col0 + 56 * col2 AS col1 FROM tab0 AS cor0
----
1872
4681
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8336
SELECT ALL + CAST( 95 AS SIGNED ) FROM tab1
----
95
95
95
skipif mysql # not compatible
query I rowsort label-8336
SELECT ALL + CAST ( 95 AS INTEGER ) FROM tab1
----
95
95
95
query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab1, tab2 cor0
----
72
query I rowsort
SELECT - 93 * ( + col0 ) AS col2 FROM tab0 AS cor0
----
-2232
-3255
-8277
onlyif mysql # use DIV operator for integer division
query I rowsort label-8339
SELECT - - 27 DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8339
SELECT - - 27 / - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 AS REAL ) + + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT cor0.col0 + + cor0.col1 FROM tab1, tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8342
SELECT - col2 - + col1 DIV - col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8342
SELECT - col2 - + col1 / - col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + ( col2 ) * + ( - col2 ) + + cor0.col0 * + cor0.col2 FROM tab0 AS cor0
----
-297
34
574
onlyif mysql # use DIV operator for integer division
query I rowsort label-8344
SELECT DISTINCT + 87 * cor0.col2 + - col1 DIV + 98 FROM tab2 AS cor0
----
2262
2349
3306
skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT + 87 * cor0.col2 + - col1 / + 98 FROM tab2 AS cor0
----
2262
2349
3306
query I rowsort
SELECT ALL + col1 - - col1 * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - ( col1 ) + cor0.col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + 60 * + col0 + - col1 FROM tab2 AS cor0
----
389
4621
4723
onlyif mysql # use DIV operator for integer division
query I rowsort label-8348
SELECT - 61 DIV col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-46
skipif mysql # not compatible
query I rowsort label-8348
SELECT - 61 / col0 + - col1 FROM tab1 AS cor0
----
-10
-13
-46
query I rowsort
SELECT DISTINCT + - 71 * + col1 FROM tab1 AS cor0
----
-1846
-710
-923
query I rowsort
SELECT - col2 * + col1 - - ( - col0 ) FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT 27 + col2 * + 99 * cor0.col0 FROM tab2 AS cor0
----
18738
200799
297225
query I rowsort
SELECT + ( tab1.col1 ) FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL col1 * ( - col2 ) * 36 FROM tab2
----
-23256
-30132
-55224
query I rowsort
SELECT ALL - col1 * 33 FROM tab0
----
-2838
-3003
-3201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 col0 FROM tab1
----
87
87
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8356
SELECT CAST( 23 AS SIGNED ) FROM tab0
----
23
23
23
skipif mysql # not compatible
query I rowsort label-8356
SELECT CAST ( 23 AS INTEGER ) FROM tab0
----
23
23
23
query I rowsort
SELECT - 49 * + col0 AS col0 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT DISTINCT - - 53 * col1 AS col0 FROM tab2 AS cor0
----
1643
3127
901
query I rowsort
SELECT DISTINCT - tab0.col0 - col1 AS col2 FROM tab0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8360
SELECT ( - col2 ) + tab2.col2 - col1 DIV + col0 AS col2 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-8360
SELECT ( - col2 ) + tab2.col2 - col1 / + col0 AS col2 FROM tab2
----
-4
0
0
query I rowsort
SELECT + col1 * - tab0.col1 + + col2 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT + 71 + col1 * ( - 43 ) + tab0.col0 * col2 AS col0 FROM tab0
----
-2835
-4065
3456
query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 * col0 - - col2 FROM tab0
----
-26103
-34
-598354
query I rowsort
SELECT ALL + 33 - col1 FROM tab0
----
-53
-58
-64
query I rowsort
SELECT DISTINCT + col0 - col2 * - col1 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-8366
SELECT DISTINCT 86 * col0 DIV 14 FROM tab2
----
43
479
485
skipif mysql # not compatible
query I rowsort label-8366
SELECT DISTINCT 86 * col0 / 14 FROM tab2
----
43
479
485
query I rowsort
SELECT - 47 + tab2.col0 AS col2 FROM tab2
----
-40
31
32
query I rowsort
SELECT ALL - - ( col0 ) * + col0 + + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT col0 * - tab2.col0 * col1 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT - col0 * + col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8371
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8371
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - - col2 * 47 * + cor0.col2 FROM tab2 AS cor0
----
31772
34263
67868
query I rowsort
SELECT DISTINCT col2 * - 44 + col2 * col1 AS col2 FROM tab0
----
1386
3854
53
query I rowsort
SELECT DISTINCT col0 + ( + col0 ) FROM tab1
----
128
160
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 74 col0 FROM tab2
----
1924
1998
2812
onlyif mysql # use DIV operator for integer division
query I rowsort label-8376
SELECT DISTINCT col0 DIV 72 + 11 * col1 * col0 FROM tab2
----
14774
2387
50623
skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT col0 / 72 + 11 * col1 * col0 FROM tab2
----
14774
2387
50623
query I rowsort
SELECT + 56 + - tab0.col1 AS col2 FROM tab0
----
-30
-35
-41
query I rowsort
SELECT ALL - 42 * - col2 AS col1 FROM tab2 cor0
----
1092
1134
1596
query I rowsort
SELECT DISTINCT - - ( + col1 ) + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL + + 70 + - col2 AS col0 FROM tab1 AS cor0
----
-26
13
16
query I rowsort
SELECT + 39 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1209
-2301
-663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8382
SELECT - + CAST( NULL AS SIGNED ) * cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8382
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 * + 95 + - col0 * - col1 * col2 AS col0 FROM tab1
----
1742
35530
98605
query I rowsort
SELECT ( + 86 ) + col2 FROM tab1 AS cor0
----
140
143
182
query I rowsort
SELECT DISTINCT col1 + + tab2.col0 AS col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL - col2 + ( + col0 ) * col0 FROM tab0
----
1224
543
7839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8388
SELECT + tab2.col2 + + col1 * col2 * col0 + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
119704
51110
5913
skipif mysql # not compatible
query I rowsort label-8388
SELECT + tab2.col2 + + col1 * col2 * col0 + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
119704
51110
5913
query I rowsort
SELECT DISTINCT col2 + 85 FROM tab2
----
111
112
123
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 * 98 col0 FROM tab2
----
1666
3038
5782
query I rowsort
SELECT - col2 + + 2 FROM tab2 cor0
----
-24
-25
-36
query I rowsort
SELECT 3 * col1 * + col1 + cor0.col2 * - col0 AS col2 FROM tab2 AS cor0
----
-2135
2694
8415
query I rowsort
SELECT + 13 + - cor0.col0 * col2 FROM tab2 AS cor0
----
-176
-2015
-2989
query I rowsort
SELECT ALL - col1 + + cor0.col0 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL + + 66 + col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
166
235
742
query I rowsort
SELECT ALL col2 * + 93 AS col1 FROM tab2 AS cor0
----
2418
2511
3534
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 15 col0 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT 31 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT - col1 + - col1 * ( + col1 + col1 ) FROM tab2 AS cor0
----
-1953
-595
-7021
onlyif mysql # use DIV operator for integer division
query I rowsort label-8400
SELECT ALL col1 * col1 + ( - 89 ) DIV col2 AS col1 FROM tab1 AS cor0
----
169
675
99
skipif mysql # not compatible
query I rowsort label-8400
SELECT ALL col1 * col1 + ( - 89 ) / col2 AS col1 FROM tab1 AS cor0
----
169
675
99
query I rowsort
SELECT ALL + + 65 * col2 * cor0.col1 FROM tab0 AS cor0
----
184470
485030
6305
onlyif mysql # use DIV operator for integer division
query I rowsort label-8402
SELECT DISTINCT + + col2 * - col2 + + col2 * col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + + col2 * - col2 + + col2 * col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT ALL - col0 + + cor0.col0 * 21 * + col1 FROM tab0 AS cor0
----
169990
43320
71260
onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT ALL col2 DIV + col2 + - col1 * + col1 * - 23 + + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
170108
190463
216407
skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL col2 / + col2 + - col1 * + col1 * - 23 + + col2 / - col2 AS col0 FROM tab0 AS cor0
----
170108
190463
216407
query I rowsort
SELECT + col0 + - 26 FROM tab1 cor0
----
-23
38
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-8406
SELECT ALL - col1 DIV 90 + + 79 FROM tab1 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-8406
SELECT ALL - col1 / 90 + + 79 FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT ALL ( cor1.col0 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
onlyif mysql # use DIV operator for integer division
query I rowsort label-8408
SELECT col0 DIV col0 + - 86 AS col1 FROM tab0 AS cor0
----
-85
-85
-85
skipif mysql # not compatible
query I rowsort label-8408
SELECT col0 / col0 + - 86 AS col1 FROM tab0 AS cor0
----
-85
-85
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8409
SELECT cor0.col0 * - CAST( NULL AS DECIMAL ) * + 5 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8409
SELECT cor0.col0 * - CAST ( NULL AS REAL ) * + 5 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * col0 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL col0 * 65 * col2 + col0 FROM tab0 AS cor0
----
2310
474459
51504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
33
query I rowsort
SELECT DISTINCT + col0 + 16 + cor0.col2 FROM tab1 AS cor0
----
137
192
73
query I rowsort
SELECT + col0 * - cor0.col0 - - col2 * col2 * - 75 FROM tab1 AS cor0
----
-218709
-247771
-697600
query I rowsort
SELECT DISTINCT col1 + 52 AS col0 FROM tab0 AS cor0
----
138
143
149
query I rowsort
SELECT + col1 * ( - col2 + + col1 ) * - col0 FROM tab1 AS cor0
----
2184
30080
86320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT + - col2 + col2 DIV 66 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-8417
SELECT + - col2 + col2 / 66 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT col1 * - ( col1 + + col2 ) FROM tab1 AS cor0
----
-1417
-2080
-670
onlyif mysql # use DIV operator for integer division
query I rowsort label-8419
SELECT ( col0 ) DIV col0 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-8419
SELECT ( col0 ) / col0 + - col2 AS col0 FROM tab2 AS cor0
----
-25
-26
-37
query I rowsort
SELECT - cor1.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 26e45cd9fe71a2b90a8bdef20c88e70d
query I rowsort
SELECT ( - col0 ) * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 9 + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2829
-7453
-88
query I rowsort
SELECT col2 * col1 + - col1 AS col2 FROM tab0
----
0
2752
7371
query I rowsort
SELECT DISTINCT tab1.col0 * + col2 * col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - - col2 * + 89 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT ALL + - 35 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b
query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col0 * - col2 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + tab0.col2 + + 16 + + 10 AS col0 FROM tab0, tab0 AS cor0
----
108
27
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col0 FROM tab2
----
86
86
86
query I rowsort
SELECT ALL col2 * col2 * - 50 + - col1 AS col0 FROM tab1 AS cor0
----
-145826
-162460
-460813
query I rowsort
SELECT ALL + col0 + col2 * col2 * tab0.col2 FROM tab0
----
35961
36
551457
query I rowsort
SELECT + col1 + col0 * + col1 AS col2 FROM tab0
----
2150
3492
8190
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) IN ( col1 * tab0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8434
SELECT ALL col1 DIV col0 + + col1 * tab2.col1 * col0 FROM tab2
----
22831
271518
6731
skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL col1 / col0 + + col1 * tab2.col1 * col0 FROM tab2
----
22831
271518
6731
query I rowsort
SELECT col0 * col2 + col1 * col0 * - col0 - - col0 FROM tab0
----
-118755
-48720
-713424
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + col0 * - col1 NOT BETWEEN NULL AND ( col1 )
----
query I rowsort
SELECT DISTINCT tab2.col0 + + col1 AS col2 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + tab2.col2 * col0 col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT ALL - col0 * - col2 - - tab0.col2 AS col2 FROM tab0
----
36
7380
825
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT ALL tab2.col1 DIV - col0 + - col0 * - col1 FROM tab2
----
1343
213
4602
skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL tab2.col1 / - col0 + - col0 * - col1 FROM tab2
----
1343
213
4602
query I rowsort
SELECT col2 + - tab2.col2 + - col0 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 71 FROM tab1, tab0, tab0 AS cor0
----
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-8444
SELECT - + 10 * - col1 DIV - ( cor0.col1 ) + - col2 AS col0 FROM tab1 cor0
----
-106
-64
-67
skipif mysql # not compatible
query I rowsort label-8444
SELECT - + 10 * - col1 / - ( cor0.col1 ) + - col2 AS col0 FROM tab1 cor0
----
-106
-64
-67
query I rowsort
SELECT ALL + col1 * + col0 - + 90 FROM tab2
----
1253
127
4512
query I rowsort
SELECT col2 * + col0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + 58 * col0 + 69 + col2 FROM tab0 AS cor0
----
1494
2100
5313
query I rowsort
SELECT + + col1 * + col1 * - col1 - cor0.col1 FROM tab2 AS cor0
----
-205438
-29822
-4930
query I rowsort
SELECT ALL col2 * - tab1.col1 AS col0 FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col1 + col2 + col0 col0 FROM tab2 WHERE NULL <> - col2 + col0
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) IN ( col0 + + col1 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab0 WHERE + tab0.col2 NOT BETWEEN col2 AND ( NULL )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col0 ) <= ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT col1 * - col2 * + col0 FROM tab0 AS cor0 WHERE ( col0 + col0 ) <> NULL
----
query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND - col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL tab0.col2 - tab0.col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE - col0 IN ( tab0.col2 * col0 + col0 * + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8458
SELECT DISTINCT + col0 + + col2 DIV + col1 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-8458
SELECT DISTINCT + col0 + + col2 / + col1 FROM tab2
----
7
78
81
query I rowsort
SELECT ALL col2 * col2 + + col0 + col2 FROM tab1 WHERE - col0 IN ( tab1.col0 )
----
query I rowsort
SELECT col1 * + tab0.col2 + col0 AS col1 FROM tab0 WHERE NOT NULL IN ( col1 + + col2 * col2 )
----
query I rowsort
SELECT - tab1.col1 + - tab1.col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT ALL - col0 - col1 AS col2 FROM tab0
----
-110
-132
-180
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> + col2
----
query I rowsort
SELECT ALL + tab1.col0 - col0 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8465
SELECT ALL col1 DIV col0 + + col2 * + col1 AS col1 FROM tab0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL col1 / col0 + + col2 * + col1 AS col1 FROM tab0
----
2841
7463
99
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT IN ( col2 * col2 + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT ( NULL ) > NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 - + col2 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT col1 * + col2 * - cor0.col2 FROM tab0 cor0
----
-611884
-93654
-97
query I rowsort
SELECT ALL - ( col0 ) * col2 - 56 * col2 FROM tab2 AS cor0
----
-1701
-3484
-5130
query I rowsort
SELECT DISTINCT + col0 * 79 FROM tab2 cor0
----
553
6162
6241
query I rowsort
SELECT DISTINCT + + col0 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8473
SELECT ( - col1 ) / tab2.col1 + 72 * ( + col1 + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8473
SELECT ( - col1 ) / tab2.col1 + 72 * ( + col1 + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT ALL + CAST( - 42 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
2268
2394
4032
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + CAST ( - 42 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT ALL + + col2 + - 75 AS col0 FROM tab0 AS cor0
----
-42
-74
7
query I rowsort
SELECT 25 * col2 * col0 AS col1 FROM tab0 cor0
----
182450
19800
875
query I rowsort
SELECT - 88 + 12 * + col0 * 25 FROM tab2 AS cor0
----
2012
23312
23612
query I rowsort
SELECT ALL 37 * - cor0.col2 FROM tab1 AS cor0
----
-1998
-2109
-3552
query I rowsort
SELECT ALL + + 58 * col1 AS col0 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT DISTINCT 97 * + col0 AS col1 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT DISTINCT ( + col1 ) + + col2 * col1 AS col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT 27 + col1 * - cor0.col1 FROM tab0 AS cor0
----
-7369
-8254
-9382
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8483
SELECT DISTINCT - col0 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8483
SELECT DISTINCT - col0 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - - col1 * col1 + 56 AS col1 FROM tab0 AS cor0
----
7452
8337
9465
query I rowsort
SELECT ALL + col1 - + col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT col0 + + col2 * - 5 AS col2 FROM tab1 AS cor0
----
-221
-267
-400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8487
SELECT ALL ( - col2 ) + - CAST( NULL AS SIGNED ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL ( - col2 ) + - CAST ( NULL AS INTEGER ) * col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 75 + col1 FROM tab0 AS cor0
----
161
166
172
query I rowsort
SELECT ALL + 78 - - col2 AS col2 FROM tab2 AS cor0
----
104
105
116
query I rowsort
SELECT - 41 * col2 FROM tab0 AS cor0
----
-1353
-3362
-41
query I rowsort
SELECT ALL - ( + col2 ) + cor0.col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 + + cor0.col2 * col0 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
107424
40071
4320
query I rowsort
SELECT ALL + 10 * ( + tab0.col0 ) FROM tab0
----
240
350
890
query I rowsort
SELECT - cor0.col0 * tab2.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 06f1aa65839c1bfc8581580bacdb6787
query I rowsort
SELECT ALL - 78 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT + col0 + - 8 FROM tab0 AS cor0
----
16
27
81
query I rowsort
SELECT ALL + col2 + + cor0.col2 * + col2 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8498
SELECT - - col1 + - col1 DIV col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8498
SELECT - - col1 + - col1 / col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8499
SELECT - - col1 * - CAST( NULL AS SIGNED ) + col1 * - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8499
SELECT - - col1 * - CAST ( NULL AS INTEGER ) + col1 * - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8500
SELECT + col1 * + CAST( + col0 AS SIGNED ) + - col0 * col2 FROM tab1 cor0
----
-3008
-6640
-84
skipif mysql # not compatible
query I rowsort label-8500
SELECT + col1 * + CAST ( + col0 AS INTEGER ) + - col0 * col2 FROM tab1 cor0
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT + col0 * 46 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT - - col0 + + col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - - col1 * - 45 AS col0 FROM tab1 AS cor0
----
-1170
-450
-585
query I rowsort
SELECT - tab0.col1 * + tab0.col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + tab0.col0 - col0 AS col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col2 + + col0 * col2 * + col0 FROM tab1 AS cor0
----
233529
540
614496
query I rowsort
SELECT + cor0.col2 - ( - cor1.col1 ) FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 193f02533a54aa725386e300dcc85182
query I rowsort
SELECT ( + col2 + + col2 ) FROM tab0
----
164
2
66
query I rowsort
SELECT ALL col2 + - col2 * - ( col0 ) AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT + 12 FROM tab2, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT - col0 + ( cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - 1 - col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT ALL + col1 * + col0 + 74 * 54 AS col1 FROM tab1 AS cor0
----
4074
4636
5036
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8515
SELECT DISTINCT + cor0.col1 * + col1 - + CAST( NULL AS DECIMAL ) * + col2 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT + cor0.col1 * + col1 - + CAST ( NULL AS REAL ) * + col2 AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT cor0.col1 + col2 * + 14 FROM tab0 AS cor0
----
111
1239
548
query I rowsort
SELECT + - col0 * col0 + 70 FROM tab2 AS cor0
----
-6014
-6171
21
query I rowsort
SELECT DISTINCT - 8 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 94 col2 FROM tab2 cor0
----
101
172
173
onlyif mysql # use DIV operator for integer division
query I rowsort label-8520
SELECT + + col0 DIV + col1 - + col2 FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-8520
SELECT + + col0 / + col1 - + col2 FROM tab1 AS cor0
----
-51
-54
-90
query I rowsort
SELECT DISTINCT - col1 * col0 * - col2 + col0 * + col2 AS col2 FROM tab2
----
121680
54036
6048
onlyif mysql # use DIV operator for integer division
query I rowsort label-8522
SELECT + col0 DIV + col0 + + 47 AS col0 FROM tab2
----
48
48
48
skipif mysql # not compatible
query I rowsort label-8522
SELECT + col0 / + col0 + + 47 AS col0 FROM tab2
----
48
48
48
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8524
SELECT col1 DIV 4 + - col1 AS col2 FROM tab0 AS cor0
----
-65
-69
-73
skipif mysql # not compatible
query I rowsort label-8524
SELECT col1 / 4 + - col1 AS col2 FROM tab0 AS cor0
----
-65
-69
-73
query I rowsort
SELECT 85 + + col0 FROM tab1
----
149
165
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8526
SELECT - 86 DIV col0 AS col2 FROM tab0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-8526
SELECT - 86 / col0 AS col2 FROM tab0
----
-2
-3
0
query I rowsort
SELECT + 8 * - col1 FROM tab2 AS cor0
----
-136
-248
-472
query I rowsort
SELECT + - ( - 51 ) * - col1 AS col1 FROM tab0 AS cor0
----
-4386
-4641
-4947
query I rowsort
SELECT - col1 * - 25 AS col0 FROM tab2 AS cor0
----
1475
425
775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + ( + cor0.col2 ) ) * col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT ( + 59 ) * - cor0.col2 + ( ( col0 ) ) FROM tab0 cor0
----
-1923
-24
-4749
query I rowsort
SELECT + - 4 * col1 FROM tab2 AS cor0
----
-124
-236
-68
query I rowsort
SELECT DISTINCT - ( 50 ) AS col0 FROM tab0 AS cor0
----
-50
query I rowsort
SELECT DISTINCT + 48 * col1 AS col1 FROM tab0 cor0
----
4128
4368
4656
query I rowsort
SELECT DISTINCT - col1 * col0 + + col0 * + ( + col2 * + col2 ) + + 5 AS col0 FROM tab2 AS cor0
----
112738
48131
4891
query I rowsort
SELECT ALL + + col1 + col1 * + 83 FROM tab2 AS cor0
----
1428
2604
4956
query I rowsort
SELECT + + 85 + col1 AS col2 FROM tab1 AS cor0
----
111
95
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8538
SELECT cor0.col1 DIV - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8538
SELECT cor0.col1 / - cor0.col2 col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT tab0.col1 * + col0 * col1 AS col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT - 64 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT DISTINCT - + col0 + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ( col1 ) * + col2 * + 98 - + col2 FROM tab2
----
150306
63270
81999
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 + + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8545
SELECT ALL - - col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL - - col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8546
SELECT col2 * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-8546
SELECT col2 * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8547
SELECT + col0 * CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8547
SELECT + col0 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8548
SELECT DISTINCT - - col2 + + CAST( + col0 + col1 AS SIGNED ) FROM tab1 AS cor0
----
131
189
83
skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT - - col2 + + CAST ( + col0 + col1 AS INTEGER ) FROM tab1 AS cor0
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8549
SELECT ALL - col2 DIV - ( col0 ) FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - col2 / - ( col0 ) FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + + cor0.col2 * + ( 39 ) AS col1 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT col0 * + ( col2 * col0 ) AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT - col0 + - ( - 65 ) FROM tab2 AS cor0
----
-13
-14
58
query I rowsort
SELECT ALL - cor0.col0 * 0 AS col1 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT DISTINCT + col2 DIV + CAST( cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + col2 / + CAST ( cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
0
1
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8555
SELECT DISTINCT - col0 * - CAST( - 71 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319
skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT - col0 * - CAST ( - 71 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1704
-2485
-6319
query I rowsort
SELECT - + col0 + + ( - cor0.col2 ) * - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + col2 + 7 FROM tab0 AS cor0
----
40
8
89
query I rowsort
SELECT + tab2.col2 + - 31 FROM tab2
----
-4
-5
7
query I rowsort
SELECT + + 46 + col1 * cor0.col0 * + col2 AS col1 FROM tab0 AS cor0
----
3441
664164
68158
query I rowsort
SELECT DISTINCT - + 95 * - col2 AS col1 FROM tab2 cor0
----
2470
2565
3610
query I rowsort
SELECT 99 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT ALL + cor0.col1 DIV cor0.col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + cor0.col1 / cor0.col0 FROM tab2 AS cor0
----
0
0
4
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 tab1.col2 * + tab1.col2 + 63 FROM tab1
----
2979
3312
9279
query I rowsort
SELECT DISTINCT ( + col1 * + 13 ) + 71 FROM tab1
----
201
240
409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8566
SELECT + 58 DIV col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8566
SELECT + 58 / col1 + col2 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col0 * - 53 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-159
-3392
-4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT col1 + col2 DIV ( + tab1.col0 ) FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-8568
SELECT col1 + col2 / ( + tab1.col0 ) FROM tab1
----
10
14
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-8569
SELECT DISTINCT - col2 DIV col2 + ( - col1 ) * col2 DIV ( col0 + col2 * + col0 ) AS col1 FROM tab1
----
-1
-9
skipif mysql # not compatible
query I rowsort label-8569
SELECT DISTINCT - col2 / col2 + ( - col1 ) * col2 / ( col0 + col2 * + col0 ) AS col1 FROM tab1
----
-1
-9
query I rowsort
SELECT 15 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT + 58 - cor0.col0 * - col1 FROM tab2 AS cor0
----
1401
275
4660
query I rowsort
SELECT DISTINCT + 7 - + col2 AS col0 FROM tab1 AS cor0
----
-47
-50
-89
query I rowsort
SELECT ALL - col0 + - cor0.col1 * ( + cor0.col1 ) FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT + + cor0.col2 + col2 * col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + 11 * cor0.col2 FROM tab2 AS cor0
----
286
297
418
onlyif mysql # use DIV operator for integer division
query I rowsort label-8576
SELECT - - col2 DIV + col0 + 99 + + col2 AS col2 FROM tab0 AS cor0
----
100
133
181
skipif mysql # not compatible
query I rowsort label-8576
SELECT - - col2 / + col0 + 99 + + col2 AS col2 FROM tab0 AS cor0
----
100
133
181
query I rowsort
SELECT DISTINCT + + col1 + ( + col0 ) FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col0 * + ( + col1 ) * - col0 AS col2 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col0 * + cor0.col0 col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT - cor0.col0 * ( col1 * + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8581
SELECT DISTINCT CAST( NULL AS DECIMAL ) / + 87 + - col0 * + tab0.col1 - col0 * + col0 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8581
SELECT DISTINCT CAST ( NULL AS REAL ) / + 87 + - col0 * + tab0.col1 - col0 * + col0 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT 12 * + ( - col1 * + col1 ) - - 94 AS col0 FROM tab0
----
-112814
-88658
-99278
query I rowsort
SELECT + 53 + col0 FROM tab1
----
117
133
56
query I rowsort
SELECT 34 * col2 AS col0 FROM tab2
----
1292
884
918
query I rowsort
SELECT col2 + + col2 * col2 * 39 AS col2 FROM tab2 AS cor0
----
26390
28458
56354
query I rowsort
SELECT DISTINCT + ( ( + col0 ) ) * 50 FROM tab0 AS cor0
----
1200
1750
4450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 * + col1 col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-8588
SELECT DISTINCT ( + col1 ) DIV - col0 + + col0 * - 1 AS col0 FROM tab0 AS cor0
----
-27
-37
-90
skipif mysql # not compatible
query I rowsort label-8588
SELECT DISTINCT ( + col1 ) / - col0 + + col0 * - 1 AS col0 FROM tab0 AS cor0
----
-27
-37
-90
query I rowsort
SELECT ALL ( 95 ) * col2 + - col0 FROM tab1 AS cor0
----
5127
5351
9040
query I rowsort
SELECT ALL - cor0.col1 + 58 FROM tab2 AS cor0
----
-1
27
41
query I rowsort
SELECT ALL - col1 - ( col0 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - ( col1 ) + + col1 * col0 * col1 FROM tab1 cor0
----
13507
2002
6390
query I rowsort
SELECT - - col1 * + col0 + + 76 * col0 FROM tab2 AS cor0
----
10530
7347
749
query I rowsort
SELECT + col0 + + col2 * 35 AS col1 FROM tab0 AS cor0
----
1179
2959
70
query I rowsort
SELECT ALL - + col1 * cor0.col2 + + 76 AS col1 FROM tab0 cor0
----
-21
-2762
-7386
query I rowsort
SELECT + col2 * - cor0.col0 + + ( - col0 ) AS col1 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT col2 * - col0 - + 32 AS col1 FROM tab0 AS cor0
----
-67
-7330
-824
query I rowsort
SELECT 63 * col2 + ( - cor0.col2 ) * col0 AS col2 FROM tab2 AS cor0
----
-390
-608
1512
query I rowsort
SELECT DISTINCT col2 * + col1 * + col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT + col1 - + col2 * ( ( col1 ) ) FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - + col0 * - col1 + 73 AS col0 FROM tab2 cor0
----
1416
290
4675
query I rowsort
SELECT + col2 * + col0 + - ( - ( - col1 ) ) FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col1 * col1 + ( - col0 * col0 ) - - col2 AS col2 FROM tab1 AS cor0
----
-3939
-6135
721
onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT DISTINCT + 11 * + col0 - tab2.col0 DIV CAST( + col1 AS SIGNED ) FROM tab2
----
77
857
865
skipif mysql # not compatible
query I rowsort label-8604
SELECT DISTINCT + 11 * + col0 - tab2.col0 / CAST ( + col1 AS INTEGER ) FROM tab2
----
77
857
865
query I rowsort
SELECT ALL 96 - + col2 AS col2 FROM tab1
----
0
39
42
query I rowsort
SELECT ALL col0 * - col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + - 31 + - col0 AS col2 FROM tab0 AS cor0
----
-120
-55
-66
query I rowsort
SELECT ALL - + 16 + - cor0.col2 * col2 FROM tab2 AS cor0
----
-1460
-692
-745
query I rowsort
SELECT DISTINCT - cor0.col2 * 6 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
-324
-342
-576
query I rowsort
SELECT ALL + ( + 41 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT - 73 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to 2931474b870c05694e446771031a6949
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * cor0.col2 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + col0 * + cor0.col2 * + ( + cor0.col1 ) FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT col0 * ( + col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ( + 19 ) AS col2 FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT ALL + + ( + col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8617
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + col2 * + col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8619
SELECT DISTINCT - col2 + 20 + + cor0.col2 * CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
182
2022
2984
skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT - col2 + 20 + + cor0.col2 * CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
182
2022
2984
query I rowsort
SELECT - + ( cor0.col2 ) * col1 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8621
SELECT + CAST( + col1 AS SIGNED ) + col1 * 88 AS col2 FROM tab0 AS cor0
----
7654
8099
8633
skipif mysql # not compatible
query I rowsort label-8621
SELECT + CAST ( + col1 AS INTEGER ) + col1 * 88 AS col2 FROM tab0 AS cor0
----
7654
8099
8633
query I rowsort
SELECT ALL + col2 * ( - col1 + + col0 * + col2 ) FROM tab1
----
207366
7344
736032
onlyif mysql # use DIV operator for integer division
query I rowsort label-8623
SELECT ALL 44 + - col2 * ( - col0 + col1 ) DIV cor0.col0 AS col2 FROM tab1 cor0
----
-370
124
92
skipif mysql # not compatible
query I rowsort label-8623
SELECT ALL 44 + - col2 * ( - col0 + col1 ) / cor0.col0 AS col2 FROM tab1 cor0
----
-370
124
92
query I rowsort
SELECT - + cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 60 * + col1 AS col2 FROM tab0 cor0
----
-5160
-5460
-5820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col0 ) * + ( col1 ) + cor0.col1 col0 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col1 + col1 * 69 FROM tab0 AS cor0
----
6020
6370
6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-8628
SELECT DISTINCT - CAST( - col0 AS SIGNED ) + col1 DIV - col1 + col0 * - col1 AS col2 FROM tab2
----
-1265
-211
-4525
skipif mysql # not compatible
query I rowsort label-8628
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) + col1 / - col1 + col0 * - col1 AS col2 FROM tab2
----
-1265
-211
-4525
query I rowsort
SELECT DISTINCT col1 * cor0.col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8630
SELECT DISTINCT + + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-8630
SELECT DISTINCT + + col1 / + col1 AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT 16 + col1 AS col0 FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT + - cor0.col1 * col0 + col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1054
-1121
744
query I rowsort
SELECT - 33 * col0 FROM tab1
----
-2112
-2640
-99
query I rowsort
SELECT DISTINCT - 40 * col0 FROM tab1
----
-120
-2560
-3200
query I rowsort
SELECT - tab1.col0 * + 46 FROM tab1, tab0 AS cor0
----
9 values hashing to 6df1ea1c026b5b3a7c4ad87aa9eaac0d
query I rowsort
SELECT - col0 + - col1 * - 87 AS col0 FROM tab2 AS cor0
----
1400
2690
5055
query I rowsort
SELECT - cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - col1 * ( - 54 ) + + col0 FROM tab2 AS cor0
----
1681
3264
997
query I rowsort
SELECT col1 * - col2 + - col1 AS col2 FROM tab0 cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT 83 + cor0.col1 * cor0.col0 AS col0 FROM tab2, tab0, tab1 AS cor0
----
1123
161
723
query I rowsort
SELECT + 64 * 38 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to acbdd15115f732f3c796b2eaee39d75c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8642
SELECT ALL + 37 DIV col0 AS col2 FROM tab2
----
0
0
5
skipif mysql # not compatible
query I rowsort label-8642
SELECT ALL + 37 / col0 AS col2 FROM tab2
----
0
0
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8643
SELECT ALL col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8643
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 + - 73 FROM tab0 AS cor0
----
13
18
24
query I rowsort
SELECT - col0 + col0 * - 76 FROM tab2 AS cor0
----
-539
-6006
-6083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8646
SELECT col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8646
SELECT col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
-16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8648
SELECT ALL col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT ALL tab1.col0 + col1 DIV col1 AS col2 FROM tab1
----
4
65
81
skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL tab1.col0 + col1 / col1 AS col2 FROM tab1
----
4
65
81
query I rowsort
SELECT + col2 - 22 AS col1 FROM tab2 AS cor0
----
16
4
5
query I rowsort
SELECT DISTINCT - + col1 + 48 AS col0 FROM tab1 cor0
----
22
35
38
query I rowsort
SELECT DISTINCT + col2 + ( + cor0.col1 * - 39 ) AS col2 FROM tab1 AS cor0
----
-333
-411
-960
query I rowsort
SELECT cor0.col2 * + col2 + col1 AS col0 FROM tab0 cor0
----
1175
6815
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8654
SELECT + 70 DIV col1 + + 6 col0 FROM tab1 AS cor0
----
11
13
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8654
SELECT + 70 / col1 + + 6 col0 FROM tab1 AS cor0
----
11
13
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8655
SELECT DISTINCT ( + col1 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT ( + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT - col0 * - col1 + + 72 AS col1 FROM tab2 cor0
----
1415
289
4674
query I rowsort
SELECT + + cor0.col0 - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - col1 * - tab2.col0 + col2 AS col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL - + 55 * - 23 + + col2 AS col2 FROM tab2 cor0
----
1291
1292
1303
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8660
SELECT ALL - CAST( NULL AS SIGNED ) * - col0 * col1 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-8660
SELECT ALL - CAST ( NULL AS INTEGER ) * - col0 * col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 * + col2 + col2 * - 90 FROM tab1 AS cor0
----
-16320
-5022
-8778
query I rowsort
SELECT 31 + col1 + col2 AS col1 FROM tab0 cor0
----
129
150
204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8663
SELECT ALL - - CAST( - col1 AS SIGNED ) * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-8663
SELECT ALL - - CAST ( - col1 AS INTEGER ) * cor0.col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8664
SELECT col1 * ( + cor0.col1 ) DIV + cor0.col0 + + 69 col1 FROM tab2 AS cor0
----
113
206
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8664
SELECT col1 * ( + cor0.col1 ) / + cor0.col0 + + 69 col1 FROM tab2 AS cor0
----
113
206
72
query I rowsort
SELECT cor0.col2 + - col1 * + cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 12 col2 FROM tab2 AS cor0
----
29
43
71
query I rowsort
SELECT col0 + 44 FROM tab2 AS cor0
----
122
123
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * + col2 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 94 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d876bb0ae813b06a5ee497ecacf37ee6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - cor0.col2 col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL - + 79 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
-1360
-2480
-4720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8672
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL 30 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89
query I rowsort
SELECT ALL 69 + col2 * - col2 * - 62 FROM tab1 AS cor0
----
180861
201507
571461
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - + 11 col0 FROM tab0 AS cor0
----
13
24
78
query I rowsort
SELECT DISTINCT + col1 + - 45 AS col0 FROM tab1 AS cor0
----
-19
-32
-35
query I rowsort
SELECT DISTINCT - - cor0.col1 * - 21 AS col2 FROM tab0 AS cor0
----
-1806
-1911
-2037
query I rowsort
SELECT + col0 + col0 * + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8680
SELECT col2 * - col1 + - col0 DIV + col1 FROM tab1 AS cor0
----
-1254
-1404
-576
skipif mysql # not compatible
query I rowsort label-8680
SELECT col2 * - col1 + - col0 / + col1 FROM tab1 AS cor0
----
-1254
-1404
-576
query I rowsort
SELECT DISTINCT - 77 - - tab0.col0 FROM tab0, tab1, tab2 AS cor0, tab2
----
-42
-53
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * - cor0.col2 * col0 col1 FROM tab2 AS cor0
----
14742
158184
234156
query I rowsort
SELECT DISTINCT - - col2 + cor0.col1 + + col2 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT col2 + 74 FROM tab0 AS cor0
----
107
156
75
query I rowsort
SELECT col2 + - col1 * cor0.col0 + + col0 * + col0 AS col0 FROM tab0 AS cor0
----
-1455
-2169
-96
query I rowsort
SELECT + col2 * ( col0 ) + + col0 * + col1 + 58 AS col1 FROM tab1
----
298
4346
8778
query I rowsort
SELECT - col1 * - col2 * col0 AS col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT - col1 - col0 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT ALL col0 + + 1 * col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + tab1.col1 - ( col1 ) FROM tab1
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8691
SELECT ALL + col0 + col2 / col0 + + CAST( NULL AS SIGNED ) * 84 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL + col0 + col2 / col0 + + CAST ( NULL AS INTEGER ) * 84 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col0 * + ( col0 ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT + 71 + col0 DIV col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2135
3466
8170
skipif mysql # not compatible
query I rowsort label-8693
SELECT + 71 + col0 / col1 + col1 * col0 AS col1 FROM tab0 AS cor0
----
2135
3466
8170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8694
SELECT ALL - CAST( NULL AS SIGNED ) * 41 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL - CAST ( NULL AS INTEGER ) * 41 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8695
SELECT ALL col0 - + CAST( NULL AS SIGNED ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8695
SELECT ALL col0 - + CAST ( NULL AS INTEGER ) * tab2.col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - cor0.col0 ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + 70 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT col0 + - ( + tab2.col2 ) + + 8 AS col2 FROM tab2
----
-12
49
60
query I rowsort
SELECT + 86 FROM tab0, tab1 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
query I rowsort
SELECT DISTINCT col2 + + col1 * col1 * col0 FROM tab1
----
13616
2082
6457
query I rowsort
SELECT 68 * col2 + + col0 AS col2 FROM tab0
----
103
2268
5665
query I rowsort
SELECT ( tab1.col2 ) * + tab1.col1 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8703
SELECT DISTINCT 57 + ( col0 ) DIV ( + tab2.col1 ) + + col1 FROM tab2
----
117
78
88
skipif mysql # not compatible
query I rowsort label-8703
SELECT DISTINCT 57 + ( col0 ) / ( + tab2.col1 ) + + col1 FROM tab2
----
117
78
88
query I rowsort
SELECT ALL + + 34 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-255
-3447
-927
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col2 col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 33 * cor0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to dcd2a6aa92be5d5e30167b6e9677a8eb
query I rowsort
SELECT - tab0.col1 * tab0.col1 - - col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT 59 * col1 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-481
130
20
query I rowsort
SELECT ALL - cor0.col1 + 23 FROM tab1 AS cor0
----
-3
10
13
query I rowsort
SELECT DISTINCT col0 * + ( - 70 + + col2 ) * 52 AS col0 FROM tab2 AS cor0
----
-131456
-15652
-178464
query I rowsort
SELECT col1 * 90 AS col1 FROM tab1 cor0
----
1170
2340
900
query I rowsort
SELECT ALL col1 + 40 AS col2 FROM tab1 AS cor0
----
50
53
66
query I rowsort
SELECT DISTINCT + + cor0.col1 + cor0.col0 AS col2 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * ( col0 ) col1 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + ( + 78 ) col1 FROM tab2 AS cor0
----
-1
0
71
query I rowsort
SELECT ALL + col1 * - ( 60 * + cor0.col1 ) - - 94 AS col2 FROM tab2 AS cor0
----
-17246
-208766
-57566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - 28 col2 FROM tab0 AS cor0
----
58
63
69
query I rowsort
SELECT DISTINCT col1 * + col1 + + col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + - col1 + - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8720
SELECT DISTINCT col1 DIV - 52 + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3480
961
skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT col1 / - 52 + col1 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3480
961
query I rowsort
SELECT 23 + - col1 FROM tab0
----
-63
-68
-74
query I rowsort
SELECT 17 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT + col2 * ( col1 ) FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col0 * - col1 AS REAL ) FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to d30a2acbf33c88274474306936d3227b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8726
SELECT DISTINCT col2 / col0 + - col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-8726
SELECT DISTINCT col2 / col0 + - col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
query I rowsort
SELECT tab0.col2 * cor0.col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a95e15f430b2932fa5393d3187190ee
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8728
SELECT CAST( + col2 AS SIGNED ) + col0 + - 33 * - 28 FROM tab0
----
1095
960
981
skipif mysql # not compatible
query I rowsort label-8728
SELECT CAST ( + col2 AS INTEGER ) + col0 + - 33 * - 28 FROM tab0
----
1095
960
981
query I rowsort
SELECT ALL col2 + + 18 FROM tab1
----
114
72
75
query I rowsort
SELECT - cor0.col2 * col2 + - col0 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col2 col1 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT ( 26 ) * col1 - col2 FROM tab2 AS cor0
----
1508
404
779
query I rowsort
SELECT DISTINCT + 12 * + 51 + + cor0.col0 FROM tab1 AS cor0
----
615
676
692
query I rowsort
SELECT tab2.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + cor0.col1 + - col1 * - col2 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - - 36 * - col1 FROM tab2 AS cor0
----
-1116
-2124
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-8737
SELECT DISTINCT ( - col0 ) DIV - col1 AS col1 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-8737
SELECT DISTINCT ( - col0 ) / - col1 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT + + col2 + col1 * + ( col0 ) FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col1 col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8740
SELECT 69 * col2 + + CAST( 77 AS SIGNED ) FROM tab0 AS cor0
----
146
2354
5735
skipif mysql # not compatible
query I rowsort label-8740
SELECT 69 * col2 + + CAST ( 77 AS INTEGER ) FROM tab0 AS cor0
----
146
2354
5735
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + + col1 * col2 + ( col0 ) * - col1 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT + col0 * col0 + col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT ( - ( col2 ) ) + - col1 + - col1 AS col1 FROM tab1
----
-106
-122
-77
query I rowsort
SELECT DISTINCT 34 AS col1 FROM tab1, tab0 AS cor0
----
34
query I rowsort
SELECT + 77 * col2 AS col0 FROM tab0 AS cor0
----
2541
6314
77
query I rowsort
SELECT - col0 * cor0.col1 * - ( + col1 ) + col2 * col1 AS col0 FROM tab2 AS cor0
----
23477
273052
7564
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8748
SELECT col2 + tab2.col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8748
SELECT col2 + tab2.col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - + cor0.col2 * - col1 + 78 FROM tab2 cor0
----
1612
724
915
query I rowsort
SELECT 94 + cor0.col2 AS col2 FROM tab1 AS cor0
----
148
151
190
query I rowsort
SELECT + - col2 - col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT 3 * - col2 + + col1 * col1 * - col0 FROM tab1 AS cor0
----
-13808
-2190
-6571
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 * + col2 + + col0 FROM tab1 cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * + col0 + col0 * + col2 col0 FROM tab2 AS cor0
----
121680
54036
6048
query I rowsort
SELECT DISTINCT - + col0 + - col0 + col0 AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + - col0 * col0 + - 35 * col2 FROM tab1 AS cor0
----
-1899
-6091
-9760
query I rowsort
SELECT + col0 + 48 FROM tab0 AS cor0
----
137
72
83
query I rowsort
SELECT DISTINCT - col0 + 74 AS col0 FROM tab2 AS cor0
----
-4
-5
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8760
SELECT ALL col2 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL col2 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT 8 + + 55 * + col1 FROM tab2 AS cor0
----
1713
3253
943
query I rowsort
SELECT - col0 * - col1 * - cor0.col0 FROM tab1 cor0
----
-234
-40960
-83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-8763
SELECT col0 * - 84 + ( - col0 + ( - tab1.col1 ) ) DIV col2 col2 FROM tab1
----
-252
-5377
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8763
SELECT col0 * - 84 + ( - col0 + ( - tab1.col1 ) ) / col2 col2 FROM tab1
----
-252
-5377
-6720
query I rowsort
SELECT DISTINCT + 98 FROM tab2, tab1 cor0, tab2 AS cor1
----
98
query I rowsort
SELECT - + 78 + ( - col0 ) * - 44 AS col2 FROM tab1 AS cor0
----
2738
3442
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-8766
SELECT - col2 DIV col1 - + col2 * - col1 FROM tab1 cor0
----
1241
1402
565
skipif mysql # not compatible
query I rowsort label-8766
SELECT - col2 / col1 - + col2 * - col1 FROM tab1 cor0
----
1241
1402
565
query I rowsort
SELECT ALL 78 FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT + ( 14 ) * col2 FROM tab1 AS cor0
----
1344
756
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-8769
SELECT DISTINCT col2 * col0 DIV col2 col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT col2 * col0 / col2 col2 FROM tab1
----
3
64
80
query I rowsort
SELECT col0 + - col2 + col1 AS col1 FROM tab1
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8771
SELECT ALL tab2.col2 * col2 DIV + col1 col1 FROM tab2
----
11
23
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8771
SELECT ALL tab2.col2 * col2 / + col1 col1 FROM tab2
----
11
23
84
query I rowsort
SELECT + tab0.col0 - - col2 * col1 FROM tab0 WHERE NOT - col1 - col1 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8773
SELECT ALL col0 * col0 DIV + tab1.col2 FROM tab1
----
0
66
71
skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL col0 * col0 / + tab1.col2 FROM tab1
----
0
66
71
query I rowsort
SELECT - col2 + + tab2.col2 * col1 + col2 * col1 AS col0 FROM tab2
----
1254
1647
3042
onlyif mysql # use DIV operator for integer division
query I rowsort label-8775
SELECT col2 DIV tab1.col0 + + tab1.col1 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-8775
SELECT col2 / tab1.col0 + + tab1.col1 FROM tab1
----
10
14
44
query III rowsort
SELECT * FROM tab0 WHERE NULL < + col1 * + col1 + - col1 - col2 * col2 / + col1
----
query I rowsort
SELECT col0 * col2 - - col1 FROM tab2
----
2087
220
3019
query I rowsort
SELECT col2 * - col0 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 - - col1 col1 FROM tab0
----
-1
-2785
-7453
query I rowsort
SELECT col2 + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col1
----
query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT ( - col2 - - col0 ) <= NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT col2 * col2 AS col0 FROM tab2 WHERE ( NULL ) >= ( NULL )
----
query I rowsort
SELECT col2 * - tab0.col1 + col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + col1 + + col1 * col1 FROM tab1
----
110
182
702
query I rowsort
SELECT col0 + col2 * - col0 FROM tab2
----
-182
-1950
-2923
query III rowsort
SELECT * FROM tab0 WHERE NULL >= ( NULL )
----
query I rowsort
SELECT DISTINCT + col0 + col0 / - col1 FROM tab1 WHERE col2 * col1 < ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8790
SELECT DISTINCT col0 - - col2 DIV + col0 FROM tab1
----
21
64
81
skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT col0 - - col2 / + col0 FROM tab1
----
21
64
81
query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NULL <> NULL
----
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) < NULL
----
query I rowsort
SELECT + col0 - + col1 * tab0.col0 FROM tab0
----
-2040
-3360
-8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-8794
SELECT DISTINCT - col1 * - col0 + col0 + col0 DIV col1 AS col2 FROM tab2 AS cor0
----
1426
224
4681
skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT - col1 * - col0 + col0 + col0 / col1 AS col2 FROM tab2 AS cor0
----
1426
224
4681
query I rowsort
SELECT ALL - + col0 * col2 * + col1 - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT DISTINCT col1 * cor0.col1 AS col0 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-8797
SELECT ALL col0 + col2 + + cor0.col1 DIV cor0.col2 AS col0 FROM tab0 cor0
----
133
172
59
skipif mysql # not compatible
query I rowsort label-8797
SELECT ALL col0 + col2 + + cor0.col1 / cor0.col2 AS col0 FROM tab0 cor0
----
133
172
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8798
SELECT ALL - col1 * col0 + - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - col1 * col0 + - col0 / col0 AS col1 FROM tab0 AS cor0
----
-2065
-3396
-8100
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 + + col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-8800
SELECT DISTINCT + col0 + col0 * + col2 + col2 DIV col1 AS col1 FROM tab1 AS cor0
----
167
3717
7767
skipif mysql # not compatible
query I rowsort label-8800
SELECT DISTINCT + col0 + col0 * + col2 + col2 / col1 AS col1 FROM tab1 AS cor0
----
167
3717
7767
query I rowsort
SELECT + + cor0.col0 + 41 AS col2 FROM tab1 AS cor0
----
105
121
44
query I rowsort
SELECT DISTINCT col2 + - col1 + + col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col0 * - col0 * + col2 + col0 + + 41 AS col1 FROM tab2 AS cor0
----
-1275
-158065
-237038
query I rowsort
SELECT ALL - - col1 * + col1 - - col1 AS col0 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT + cor0.col0 * - 60 AS col2 FROM tab1 AS cor0
----
-180
-3840
-4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-8806
SELECT DISTINCT - col0 * ( - col0 ) DIV col0 + + col1 - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-49
-566
-947
skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT - col0 * ( - col0 ) / col0 + + col1 - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-49
-566
-947
onlyif mysql # use DIV operator for integer division
query I rowsort label-8807
SELECT ALL + col1 * - 52 + + col1 DIV col2 + + 88 FROM tab1 AS cor0
----
-1264
-432
-588
skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + col1 * - 52 + + col1 / col2 + + 88 FROM tab1 AS cor0
----
-1264
-432
-588
query I rowsort
SELECT cor0.col1 * col0 - col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL + cor0.col2 + - 87 + + 42 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 961702e70cb69b0e2c2dd39e1f0f842a
query I rowsort
SELECT col2 * 78 + + col2 FROM tab2 AS cor0
----
2054
2133
3002
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to ee83821bd928a072bc435d7135362ca1
query I rowsort
SELECT ALL + cor0.col2 * + col0 * - col1 AS col1 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + - 35 FROM tab0 cor0
----
-35
query I rowsort
SELECT - ( + col2 ) * + 3 FROM tab0 AS cor0
----
-246
-3
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 48 * col0 col0 FROM tab0 AS cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT + 50 * col2 AS col2 FROM tab1 AS cor0
----
2700
2850
4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab2.col2 col0 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col0 * col0 - col0 col0 FROM tab2
----
35
5928
6083
query I rowsort
SELECT DISTINCT - col2 * - col1 - - tab0.col2 FROM tab0 WHERE NOT NULL <= ( col2 * col2 + - col0 )
----
query I rowsort
SELECT - col1 * col2 * col0 AS col2 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL - col2 + tab1.col2 + - col2 AS col2 FROM tab1
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8822
SELECT col2 * - tab2.col0 + col2 DIV col1 AS col0 FROM tab2
----
-189
-2028
-3000
skipif mysql # not compatible
query I rowsort label-8822
SELECT col2 * - tab2.col0 + col2 / col1 AS col0 FROM tab2
----
-189
-2028
-3000
query I rowsort
SELECT ( + tab1.col2 ) * - col0 + tab1.col2 AS col1 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT - tab1.col0 - col2 FROM tab1
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab1.col0 + tab1.col0 col1 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT ALL - - 52 * - col0 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-212992
-332800
-468
query I rowsort
SELECT + ( 80 ) + + col2 * col1 FROM tab0 AS cor0
----
177
2918
7542
query I rowsort
SELECT - - col1 * 77 FROM tab1 AS cor0
----
1001
2002
770
onlyif mysql # use DIV operator for integer division
query I rowsort label-8829
SELECT - - col2 + ( col0 ) DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8829
SELECT - - col2 + ( col0 ) / + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8830
SELECT DISTINCT - col1 + - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
-118
-34
-62
skipif mysql # not compatible
query I rowsort label-8830
SELECT DISTINCT - col1 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
-118
-34
-62
query I rowsort
SELECT - - col1 * + col1 + + col0 - + 95 FROM tab0 AS cor0
----
7325
8275
9349
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( - col2 ) ) * 33 col2 FROM tab1
----
1782
1881
3168
query I rowsort
SELECT DISTINCT - 56 FROM tab2, tab1, tab2 AS cor0
----
-56
query I rowsort
SELECT DISTINCT - ( - col0 + col2 ) * 36 AS col1 FROM tab0
----
-324
1224
252
query I rowsort
SELECT DISTINCT - ( + cor0.col1 ) + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 95 + - col1 * - col2 * + ( col0 * col0 ) col1 FROM tab1 AS cor0
----
12541
2334625
7987105
query I rowsort
SELECT DISTINCT col1 * col0 * 71 FROM tab1
----
45440
5538
73840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col2 col0 FROM tab2, tab0 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - col2 * ( ( col1 ) + - 1 * + cor0.col0 ) FROM tab1 AS cor0
----
-1242
3078
6432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8840
SELECT ALL col2 * - CAST( + col2 + col2 AS SIGNED ) FROM tab2 AS cor0
----
-1352
-1458
-2888
skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL col2 * - CAST ( + col2 + col2 AS INTEGER ) FROM tab2 AS cor0
----
-1352
-1458
-2888
onlyif mysql # use DIV operator for integer division
query I rowsort label-8841
SELECT + + col2 + - ( col2 ) DIV col1 - - col2 FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-8841
SELECT + + col2 + - ( col2 ) / col1 - - col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + col0 + + col1 * - col2 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT - col0 + col0 * + cor0.col0 - col0 AS col1 FROM tab1 AS cor0
----
3
3968
6240
query I rowsort
SELECT DISTINCT - col1 * + 44 FROM tab0 cor0
----
-3784
-4004
-4268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * + 30 + col2 * + cor0.col2 col1 FROM tab2 AS cor0
----
1456
1539
2584
query I rowsort
SELECT - - cor0.col2 * 96 + + cor0.col2 + - col0 FROM tab1 cor0
----
5235
5465
9232
query I rowsort
SELECT DISTINCT - 90 + cor0.col2 FROM tab2, tab2 cor0
----
-52
-63
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-8848
SELECT ALL - col2 DIV ( col1 ) AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-8848
SELECT ALL - col2 / ( col1 ) AS col2 FROM tab2
----
-2
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT tab0.col1 DIV ( - col2 ) FROM tab0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-8849
SELECT tab0.col1 / ( - col2 ) FROM tab0
----
-1
-2
-97
query I rowsort
SELECT + 33 * tab2.col0 + tab2.col0 * 72 FROM tab2, tab2 AS cor0
----
9 values hashing to ed8dcf6d597429cfd954cb7b88aab53a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8851
SELECT + 57 DIV 51 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8851
SELECT + 57 / 51 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8852
SELECT - + CAST( col0 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-8852
SELECT - + CAST ( col0 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8853
SELECT DISTINCT 73 * - cor0.col0 + - cor0.col1 + 30 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1838
-2652
-6588
skipif mysql # not compatible
query I rowsort label-8853
SELECT DISTINCT 73 * - cor0.col0 + - cor0.col1 + 30 / - col1 AS col0 FROM tab0 AS cor0
----
-1838
-2652
-6588
query I rowsort
SELECT ALL + cor0.col0 + 39 * - col0 - - col0 AS col1 FROM tab1 AS cor0
----
-111
-2368
-2960
query I rowsort
SELECT - 58 + + col2 * + col0 FROM tab2 AS cor0
----
131
1970
2944
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8856
SELECT - 98 * col1 + - cor0.col0 - CAST( NULL AS DECIMAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8856
SELECT - 98 * col1 + - cor0.col0 - CAST ( NULL AS REAL ) * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 - 52 FROM tab0 AS cor0
----
-141
-76
-87
query I rowsort
SELECT DISTINCT - col2 + + col2 * - col2 AS col0 FROM tab1 cor0
----
-2970
-3306
-9312
query I rowsort
SELECT + - ( + 93 ) * col0 * 34 - - col2 AS col2 FROM tab2 AS cor0
----
-22107
-246610
-249760
query I rowsort
SELECT DISTINCT + col1 + + col0 * + col1 FROM tab0 AS cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT + 34 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT - + ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 * col0 * + CAST ( + cor0.col0 AS REAL ) + - col1 FROM tab1 AS cor0
----
-233482
-512
-614413
query I rowsort
SELECT ALL col2 + - 65 FROM tab0 AS cor0
----
-32
-64
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8866
SELECT ( + cor0.col0 ) * 60 DIV + 5 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5daf85e55b49e283e71b3a0cc53526eb
skipif mysql # not compatible
query I rowsort label-8866
SELECT ( + cor0.col0 ) * 60 / + 5 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 5daf85e55b49e283e71b3a0cc53526eb
query I rowsort
SELECT - col0 * - ( cor0.col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col0 * 47 + - cor0.col1 * - col0 FROM tab0 AS cor0
----
12282
3192
5040
query I rowsort
SELECT ALL 6 * tab0.col1 FROM tab0
----
516
546
582
query I rowsort
SELECT ALL - 39 * col1 FROM tab1
----
-1014
-390
-507
query I rowsort
SELECT DISTINCT + ( 46 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
46
query I rowsort
SELECT 57 * col0 AS col2 FROM tab1 AS cor0
----
171
3648
4560
query I rowsort
SELECT ALL 35 AS col2 FROM tab0 AS cor0
----
35
35
35
query I rowsort
SELECT - + col2 * + col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + + 49 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1617
-4018
-49
query I rowsort
SELECT ALL ( - 68 + col0 ) FROM tab0
----
-33
-44
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8877
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 3 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 3 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT col0 * - col0 + ( - tab1.col0 * col2 ) AS col2 FROM tab1
----
-14080
-171
-7744
query I rowsort
SELECT + - 49 + + col0 * + col0 FROM tab0 AS cor0
----
1176
527
7872
query I rowsort
SELECT DISTINCT + col0 * + cor0.col2 * 49 FROM tab0 cor0
----
1715
357602
38808
query I rowsort
SELECT DISTINCT col0 * col0 + 85 * - col2 FROM tab0
----
-2229
1140
951
query I rowsort
SELECT cor0.col0 + + col2 * - 98 + - col2 * col1 * + col2 FROM tab0 AS cor0
----
-160
-619831
-96864
query I rowsort
SELECT - 42 + + cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 11833f51c7f44124570266c710475f93
query I rowsort
SELECT col1 * col2 + - col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT - - col1 * ( - col0 ) + + col1 * + 76 AS col0 FROM tab1 AS cor0
----
-52
120
1898
query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab1, tab0 AS cor0, tab0, tab1 cor1
----
15
query I rowsort
SELECT 71 + - col1 FROM tab0 cor0
----
-15
-20
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8888
SELECT ALL - + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - 38 FROM tab0, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT DISTINCT + ( + 17 ) FROM tab0 AS cor0
----
17
query I rowsort
SELECT + col0 * 61 + col2 FROM tab2
----
454
4784
4857
query I rowsort
SELECT - ( col2 * col0 ) + - 78 FROM tab0
----
-113
-7376
-870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8893
SELECT ALL + CAST( + 72 AS SIGNED ) - col1 AS col2 FROM tab1 cor0
----
46
59
62
skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL + CAST ( + 72 AS INTEGER ) - col1 AS col2 FROM tab1 cor0
----
46
59
62
query I rowsort
SELECT ( + col2 ) + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT ALL 58 DIV - 36 + col2 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL 58 / - 36 + col2 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT DISTINCT ( 57 ) FROM tab1 AS cor0
----
57
query I rowsort
SELECT DISTINCT - 83 + - 88 * col0 FROM tab0 AS cor0
----
-2195
-3163
-7915
query I rowsort
SELECT DISTINCT - col0 + + 49 AS col1 FROM tab2 AS cor0
----
-29
-30
42
query I rowsort
SELECT DISTINCT - col1 * 51 + - col2 FROM tab0 AS cor0
----
-4419
-4723
-4948
onlyif mysql # use DIV operator for integer division
query I rowsort label-8900
SELECT ALL + + ( cor0.col0 ) DIV col0 - + 85 AS col1 FROM tab1 cor0
----
-84
-84
-84
skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL + + ( cor0.col0 ) / col0 - + 85 AS col1 FROM tab1 cor0
----
-84
-84
-84
query I rowsort
SELECT - 6 + + col2 FROM tab1 AS cor0
----
48
51
90
query I rowsort
SELECT DISTINCT - 32 * + col1 * col2 FROM tab0 AS cor0
----
-238784
-3104
-90816
query I rowsort
SELECT DISTINCT - + 50 AS col0 FROM tab2 AS cor0
----
-50
query I rowsort
SELECT DISTINCT + 2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
2
query I rowsort
SELECT DISTINCT - 39 AS col2 FROM tab0 cor0
----
-39
query I rowsort
SELECT - + 65 * + col0 AS col2 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT ALL - + 75 FROM tab2 AS cor0
----
-75
-75
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8908
SELECT DISTINCT CAST( col0 AS SIGNED ) col2 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8908
SELECT DISTINCT CAST ( col0 AS INTEGER ) col2 FROM tab2
----
7
78
79
query I rowsort
SELECT + - 31 * - col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT - col2 + 26 AS col2 FROM tab1 AS cor0
----
-28
-31
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8911
SELECT ALL + - col2 + + CAST( col2 AS SIGNED ) DIV col2 FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-8911
SELECT ALL + - col2 + + CAST ( col2 AS INTEGER ) / col2 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT DISTINCT col2 * col0 - 6 FROM tab1 cor0
----
156
3642
7674
query I rowsort
SELECT - col0 * ( - col2 ) - - col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT col1 * col1 + col2 + + col0 FROM tab2 AS cor0
----
3585
406
995
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8915
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 + + col2 * cor0.col2 * + cor0.col2 + col1 FROM tab0 AS cor0
----
36056
551541
99
query I rowsort
SELECT + col0 * col2 - + 88 FROM tab0 AS cor0
----
-53
704
7210
query I rowsort
SELECT ALL col2 + col2 * col0 AS col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT tab2.col1 - ( ( col1 ) ) * - tab2.col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col1 * - col2 + col1 * col0 * col0 FROM tab2
----
106743
2356
360490
query I rowsort
SELECT DISTINCT 23 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8922
SELECT ALL - - CAST( NULL AS SIGNED ) + col2 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL - - CAST ( NULL AS INTEGER ) + col2 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 * col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 64 * col0 + - col2 FROM tab2 AS cor0
----
421
4966
5018
query I rowsort
SELECT DISTINCT - col2 + tab0.col1 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT col2 * + ( + ( - col2 ) ) AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + col0 + - col2 * col2 AS col1 FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT - col0 + 44 + - col2 * + col0 AS col2 FROM tab2
----
-152
-2062
-3037
query I rowsort
SELECT + cor0.col0 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - + col2 + - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT + + 33 AS col2 FROM tab1 cor0
----
33
33
33
query I rowsort
SELECT - col2 - - 75 AS col0 FROM tab0 AS cor0
----
-7
42
74
query I rowsort
SELECT + col2 + - col2 * + col0 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT - cor0.col1 * + col1 - - col1 * - col0 FROM tab0 AS cor0
----
-12804
-16380
-9460
query I rowsort
SELECT 4 + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1530
-642
-833
query I rowsort
SELECT DISTINCT + - 39 * - 49 AS col0 FROM tab2 cor0
----
1911
query I rowsort
SELECT 95 FROM tab2, tab1 cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 9896fbc7c98abe84cb585e6f5f25b58a
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8939
SELECT + CAST( NULL AS SIGNED ) * - 45 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-8939
SELECT + CAST ( NULL AS INTEGER ) * - 45 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( ( - tab1.col0 ) + + col2 ) FROM tab1
----
-7
16
51
query I rowsort
SELECT - 72 AS col0 FROM tab2
----
-72
-72
-72
query I rowsort
SELECT 72 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT col2 + col0 + col0 * 77 FROM tab2 AS cor0
----
573
6110
6200
query I rowsort
SELECT 83 * - cor1.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 50cdf45e62a83adea9cadbecef87a9d9
query I rowsort
SELECT ALL - col2 * ( + col0 ) AS col2 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8946
SELECT ALL + 95 DIV + col1 AS col0 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + 95 / + col1 AS col0 FROM tab0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 52 col1 FROM tab2
----
1612
3068
884
query I rowsort
SELECT - 40 AS col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL IN ( cor0.col2 )
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8950
SELECT + 93 * + cor0.col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8950
SELECT + 93 * + cor0.col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + cor0.col2 * - col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col1 * ( + col2 ) AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL - 82 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT DISTINCT + tab1.col0 * ( col0 ) FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8955
SELECT ALL - col1 DIV - cor0.col2 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-8955
SELECT ALL - col1 / - cor0.col2 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - + col1 + 57 AS col1 FROM tab1 AS cor0
----
31
44
47
query I rowsort
SELECT DISTINCT + col1 * + 26 AS col2 FROM tab2
----
1534
442
806
query I rowsort
SELECT ALL - col1 + tab1.col2 * - col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT col1 * - 19 * - col1 FROM tab2 AS cor0
----
18259
5491
66139
query I rowsort
SELECT + 77 + + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
4173
6477
86
query I rowsort
SELECT 49 * col1 + + col2 FROM tab0 AS cor0
----
4247
4541
4754
query I rowsort
SELECT DISTINCT + + col0 * 56 + col0 * + 28 AS col2 FROM tab1 AS cor0
----
252
5376
6720
query I rowsort
SELECT 49 * + col2 + col1 * - col0 FROM tab2 AS cor0
----
-3328
1106
519
query I rowsort
SELECT - ( + cor0.col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT cor0.col1 * - 46 AS col1 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT DISTINCT col0 * - ( - cor0.col0 + - col2 ) AS col2 FROM tab1 AS cor0
----
14080
171
7744
query I rowsort
SELECT col2 * - 42 AS col0 FROM tab0 AS cor0
----
-1386
-3444
-42
onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT DISTINCT - col2 * cor0.col1 DIV - col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - col2 * cor0.col1 / - col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + cor0.col0 + - ( + 45 ) FROM tab0 AS cor0
----
-10
-21
44
query I rowsort
SELECT ALL - col2 * + ( col1 ) AS col1 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort
SELECT - cor0.col2 * - CAST ( col0 AS REAL ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col1 * col1 + + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-8973
SELECT DISTINCT - col1 * CAST( col1 AS SIGNED ) DIV col0 AS col1 FROM tab2 AS cor0
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT - col1 * CAST ( col1 AS INTEGER ) / col0 AS col1 FROM tab2 AS cor0
----
-137
-3
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-8974
SELECT ALL + - col1 + - cor0.col0 DIV + 83 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8974
SELECT ALL + - col1 + - cor0.col0 / + 83 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + - cor0.col1 * - col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT ALL + ( 88 ) * + col2 * + col2 AS col0 FROM tab0 AS cor0
----
591712
88
95832
query I rowsort
SELECT DISTINCT 60 * cor0.col2 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT - col1 * 3 AS col1 FROM tab1 AS cor0
----
-30
-39
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8980
SELECT ALL - - col1 DIV - col1 + col1 FROM tab0 cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-8980
SELECT ALL - - col1 / - col1 + col1 FROM tab0 cor0
----
85
90
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8981
SELECT - + ( - ( - col1 ) ) DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8981
SELECT - + ( - ( - col1 ) ) / + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT ( ( col1 ) ) * + col2 * + col1 AS col2 FROM tab1 cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 * 1 col1 FROM tab0 cor0
----
-29
-29
-29
query I rowsort
SELECT ALL + col2 * + 26 * + col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
16834
21789
39910
query I rowsort
SELECT ALL + cor0.col0 + 66 * + col1 AS col1 FROM tab0 AS cor0
----
5700
6095
6437
query I rowsort
SELECT DISTINCT + col1 - + col2 AS col2 FROM tab1 cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8987
SELECT DISTINCT - + CAST( - ( - col2 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - + CAST ( - ( - col2 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 + + col2 * col1 col1 FROM tab2 AS cor0
----
1559
671
862
query I rowsort
SELECT DISTINCT ( ( tab0.col2 ) ) AS col0 FROM tab0, tab2 AS cor0
----
1
33
82
query I rowsort
SELECT col1 + + 46 FROM tab1
----
56
59
72
query I rowsort
SELECT ALL + 79 * + col1 - col0 FROM tab2 AS cor0
----
1264
2442
4583
query I rowsort
SELECT DISTINCT - col1 * - col2 - 91 AS col2 FROM tab1 AS cor0
----
1157
1313
479
onlyif mysql # use DIV operator for integer division
query I rowsort label-8993
SELECT ALL - ( + col1 ) + ( 5 ) DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8993
SELECT ALL - ( + col1 ) + ( 5 ) / + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 86 * - cor0.col0 + + col1 * + 33 + + col2 FROM tab2 AS cor0
----
-4735
-6195
448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8995
SELECT col2 * col1 + CAST( NULL AS SIGNED ) + + 8 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8995
SELECT col2 * col1 + CAST ( NULL AS INTEGER ) + + 8 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + 85 + - col2 + col0 * - 77 AS col0 FROM tab0 AS cor0
----
-1796
-2611
-6850
query I rowsort
SELECT 51 * col1 + + col1 * 18 AS col2 FROM tab1 cor0
----
1794
690
897
query I rowsort
SELECT + + 54 + col0 * col1 FROM tab2 AS cor0
----
1397
271
4656
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 * cor0.col2 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT DISTINCT - tab1.col2 + + col1 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL col1 * col0 + - col0 AS col1 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - col2 + ( 29 * col2 ) + - ( + col1 ) FROM tab2 AS cor0
----
1047
669
725
query I rowsort
SELECT 73 * - col0 AS col1 FROM tab0
----
-1752
-2555
-6497
onlyif mysql # use DIV operator for integer division
query I rowsort label-9005
SELECT - col2 DIV CAST( + 89 AS SIGNED ) FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9005
SELECT - col2 / CAST ( + 89 AS INTEGER ) FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9006
SELECT + col2 + - col0 DIV - 15 FROM tab1 AS cor0
----
101
54
61
skipif mysql # not compatible
query I rowsort label-9006
SELECT + col2 + - col0 / - 15 FROM tab1 AS cor0
----
101
54
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col0 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT + 38 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT DISTINCT 37 + - tab0.col1 * - 81 * 80 AS col2 FROM tab0
----
557317
589717
628597
query I rowsort
SELECT DISTINCT + col0 + col2 + 8 AS col2 FROM tab0
----
179
44
65
query I rowsort
SELECT tab1.col2 + col1 + + 90 FROM tab1
----
157
170
199
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( 69 ) * col2 col0 FROM tab2
----
1768
1836
2584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 6 col1 FROM tab1 AS cor0
----
-48
-51
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9014
SELECT ALL + col1 DIV - 93 AS col1 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9014
SELECT ALL + col1 / - 93 AS col1 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9015
SELECT + 47 DIV + col1 AS col1 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-9015
SELECT + 47 / + col1 AS col1 FROM tab1
----
1
3
4
query I rowsort
SELECT ALL + tab2.col1 - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT + 11 * + col2 + col2 AS col2 FROM tab0 AS cor0
----
12
396
984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9018
SELECT ALL + CAST( NULL AS SIGNED ) * col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL + CAST ( NULL AS INTEGER ) * col2 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT ALL + + 84 * + col0 AS col2 FROM tab0 cor0
----
2016
2940
7476
query I rowsort
SELECT 46 + col1 FROM tab2 AS cor0
----
105
63
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 52 col2 FROM tab0 AS cor0
----
-52
-52
-52
query I rowsort
SELECT ALL - - col0 * + col2 + - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - col1 + cor0.col2 + col1 * col0 AS col0 FROM tab1 cor0
----
106
1123
687
query I rowsort
SELECT + col0 * + col2 + 76 * + 67 - col0 FROM tab0 AS cor0
----
12301
5092
5860
query I rowsort
SELECT 28 - tab0.col2 FROM tab0
----
-5
-54
27
query I rowsort
SELECT ALL 74 * + col2 AS col2 FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT col2 * col1 * cor0.col1 + col1 - col0 FROM tab1 cor0
----
16157
36527
5646
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + col0 - + col1 col0 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT ALL + col2 * 27 + - col1 * col0 + - col0 * + col0 FROM tab0 AS cor0
----
-13806
-1749
-4593
onlyif mysql # use DIV operator for integer division
query I rowsort label-9031
SELECT ALL 92 DIV col1 AS col2 FROM tab1
----
3
7
9
skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL 92 / col1 AS col2 FROM tab1
----
3
7
9
query I rowsort
SELECT + tab2.col1 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-9033
SELECT - 9 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9033
SELECT - 9 / col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 57 * col0 FROM tab0
----
1368
1995
5073
query I rowsort
SELECT DISTINCT + - col2 + - cor0.col0 + - col2 * 51 AS col0 FROM tab1 AS cor0
----
-2811
-3028
-5072
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9036
SELECT - CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9036
SELECT - CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + 52 * - col2 + col1 FROM tab2 AS cor0
----
-1293
-1373
-1959
onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT DISTINCT + col2 + cor0.col0 DIV 31 FROM tab0 AS cor0
----
2
33
84
skipif mysql # not compatible
query I rowsort label-9038
SELECT DISTINCT + col2 + cor0.col0 / 31 FROM tab0 AS cor0
----
2
33
84
query I rowsort
SELECT col1 * 1 + cor0.col1 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-2666
-7280
97
query I rowsort
SELECT - col0 + - cor0.col2 * + col0 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT + col1 + - 51 FROM tab0 AS cor0
----
35
40
46
query I rowsort
SELECT + col0 + - 89 * 82 FROM tab2 AS cor0
----
-7219
-7220
-7291
query I rowsort
SELECT - col1 * 32 + 77 AS col1 FROM tab1 cor0
----
-243
-339
-755
onlyif mysql # use DIV operator for integer division
query I rowsort label-9044
SELECT + cor0.col2 DIV - ( - col0 ) AS col1 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9044
SELECT + cor0.col2 / - ( - col0 ) AS col1 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT col1 * col0 + - ( col0 ) FROM tab0
----
2040
3360
8010
query I rowsort
SELECT ALL - 30 FROM tab1
----
-30
-30
-30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * + col2 + col0 col0 FROM tab1 AS cor0
----
-119728
-32426
-75813
onlyif mysql # use DIV operator for integer division
query I rowsort label-9048
SELECT ALL col0 * - col2 + col0 DIV col1 FROM tab2 cor0
----
-189
-2027
-2998
skipif mysql # not compatible
query I rowsort label-9048
SELECT ALL col0 * - col2 + col0 / col1 FROM tab2 cor0
----
-189
-2027
-2998
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 * cor0.col0 FROM tab0 AS cor0
----
1226
609
8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col1 * col0 col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + cor0.col0 * + col0 + - col0 FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-9052
SELECT ALL + col1 * col2 * + tab1.col2 + col2 DIV + col2 AS col1 FROM tab1
----
119809
32491
75817
skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + col1 * col2 * + tab1.col2 + col2 / + col2 AS col1 FROM tab1
----
119809
32491
75817
query I rowsort
SELECT + col1 * col1 * + col2 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT ALL col0 * col2 + col0 + - col1 FROM tab2
----
165
2047
3064
query I rowsort
SELECT tab2.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - col0 + + tab0.col1 * + col2 AS col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT - + ( cor0.col0 ) + - col1 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - - cor0.col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 95 * 0 FROM tab1
----
0
0
0
query I rowsort
SELECT + 33 * col1 + + col2 AS col2 FROM tab0 AS cor0
----
2871
3085
3202
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - cor0.col1 * - col1 col1 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-9062
SELECT DISTINCT col2 DIV ( col2 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT col2 / ( col2 ) FROM tab0
----
1
query I rowsort
SELECT ALL + col0 * - ( tab1.col0 ) FROM tab1
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9064
SELECT DISTINCT 0 DIV - col0 AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-9064
SELECT DISTINCT 0 / - col0 AS col0 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT + ( 47 ) DIV - col1 col1 FROM tab1
----
-1
-3
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9065
SELECT + ( 47 ) / - col1 col1 FROM tab1
----
-1
-3
-4
query I rowsort
SELECT 85 * - 31 FROM tab0
----
-2635
-2635
-2635
query I rowsort
SELECT ALL ( col1 + + col2 ) * - col1 * col2 AS col0 FROM tab1
----
-112320
-136032
-38190
query I rowsort
SELECT - col1 + + col0 + tab2.col1 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + + cor0.col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-9070
SELECT - + 85 * - col2 DIV - col2 + col2 AS col2 FROM tab0 AS cor0
----
-3
-52
-84
skipif mysql # not compatible
query I rowsort label-9070
SELECT - + 85 * - col2 / - col2 + col2 AS col2 FROM tab0 AS cor0
----
-3
-52
-84
query I rowsort
SELECT - 70 + col0 - col0 FROM tab2 AS cor0
----
-70
-70
-70
query I rowsort
SELECT 65 * cor0.col1 * + cor0.col0 + + col1 AS col2 FROM tab1 AS cor0
----
41610
5096
67613
query I rowsort
SELECT ALL - col2 + - col1 + - col0 AS col1 FROM tab0
----
-133
-143
-262
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT ALL 60 + - col2 * col0 * ( ( col1 ) ) FROM tab0
----
-3335
-664058
-68052
onlyif mysql # use DIV operator for integer division
query I rowsort label-9076
SELECT DISTINCT - col1 * col0 + tab0.col0 DIV + col2 FROM tab0
----
-2064
-3360
-8098
skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT - col1 * col0 + tab0.col0 / + col2 FROM tab0
----
-2064
-3360
-8098
query I rowsort
SELECT col0 - 50 FROM tab1
----
-47
14
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-9078
SELECT DISTINCT cor0.col2 - + col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT cor0.col2 - + col1 / + col1 AS col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT + cor0.col0 * 21 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to fde62da1ab37076b444d4202a9d2fe46
query I rowsort
SELECT ALL - ( col2 * col0 ) + - ( + 51 ) * + tab2.col1 AS col1 FROM tab2
----
-1770
-3869
-5037
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * cor1.col1 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 72dc29e1b29f483d8685dbdbeacd4f1e
query I rowsort
SELECT ALL col2 * cor0.col0 + col1 FROM tab0 cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 15 * col2 col1 FROM tab1 AS cor0
----
1440
810
855
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 68 * cor0.col1 FROM tab0 cor0
----
5848
6188
6596
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col2 FROM tab2 cor0
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 + col0 col1 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT 45 * + col1 + + col1 * col0 * + col0 AS col0 FROM tab0 AS cor0
----
123190
53406
724906
query I rowsort
SELECT DISTINCT 93 + cor0.col2 FROM tab0 AS cor0
----
126
175
94
query I rowsort
SELECT - ( col0 * - col1 ) - 39 AS col0 FROM tab2
----
1304
178
4563
query I rowsort
SELECT ALL + tab1.col1 * col2 * + col2 + col1 * col1 FROM tab1
----
119977
32590
76492
query I rowsort
SELECT DISTINCT col0 * cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-9093
SELECT ALL - - ( col1 ) DIV ( col1 ) AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL - - ( col1 ) / ( col1 ) AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - - col1 + + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT - col0 + 64 FROM tab0 cor0
----
-25
29
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 + - col0 * - col1 col0 FROM tab2 AS cor0
----
-1482
-4898
168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9097
SELECT + - col0 * + CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9097
SELECT + - col0 * + CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - cor0.col1 col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col2 + - col0 AS col2 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9100
SELECT DISTINCT - - col1 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT - - col1 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col0 * + cor0.col0 * - col2 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT - col1 * + col0 * 20 - col1 AS col2 FROM tab0 AS cor0
----
-162071
-41366
-67997
query I rowsort
SELECT + col0 * 62 - col1 FROM tab2 AS cor0
----
403
4777
4881
query I rowsort
SELECT ALL + col0 * + col1 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9105
SELECT ALL + - col0 - CAST( - col1 * col1 AS SIGNED ) FROM tab0 AS cor0
----
7372
8192
9374
skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL + - col0 - CAST ( - col1 * col1 AS INTEGER ) FROM tab0 AS cor0
----
7372
8192
9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-9106
SELECT DISTINCT - + col1 DIV 6 col1 FROM tab1 AS cor0
----
-1
-2
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT - + col1 / 6 col1 FROM tab1 AS cor0
----
-1
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9107
SELECT ALL + col1 DIV + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1443
-675
-728
skipif mysql # not compatible
query I rowsort label-9107
SELECT ALL + col1 / + col1 + - col2 * col2 FROM tab2 AS cor0
----
-1443
-675
-728
query I rowsort
SELECT - 74 * + col2 AS col1 FROM tab1 AS cor0
----
-3996
-4218
-7104
query I rowsort
SELECT DISTINCT + - col2 * - 95 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + ( - 62 ) FROM tab0 cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT - 67 * - cor0.col1 - - col1 AS col0 FROM tab0 AS cor0
----
5848
6188
6596
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - col1 AS REAL ) * - col1 * col0 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT col0 + cor0.col2 * col2 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL + col2 * + col2 - + col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL 13 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL + col0 + col0 * col2 AS col0 FROM tab0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9118
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9119
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) - col1 FROM tab2
----
NULL
query I rowsort
SELECT col1 - + col0 * - 99 FROM tab2
----
724
7781
7838
query I rowsort
SELECT + + 54 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-5
23
37
query I rowsort
SELECT ALL + - 48 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-170
-3082
-3853
query I rowsort
SELECT DISTINCT col0 - + col0 * + col1 * col1 FROM tab1 AS cor0
----
-13440
-2025
-6336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 * - col0 col1 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT + col1 * cor0.col0 - + col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL - 93 * col2 * col2 FROM tab1 AS cor0
----
-271188
-302157
-857088
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-9128
SELECT ALL - + ( col0 ) DIV col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL - + ( col0 ) / col0 AS col2 FROM tab2 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col2 + - col2 col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + col2 * + ( col1 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + - cor0.col0 + col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT 99 * + 31 * col2 - - col2 FROM tab1 AS cor0
----
165780
174990
294720
query I rowsort
SELECT + - ( + 73 ) * col0 + - ( 20 ) * col0 * col1 FROM tab0 AS cor0
----
-168477
-43032
-70455
query I rowsort
SELECT - col1 + 73 AS col0 FROM tab2 cor0
----
14
42
56
query I rowsort
SELECT ALL + ( col0 ) + col1 AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL + 88 AS col0 FROM tab2 cor0
----
88
88
88
query I rowsort
SELECT tab2.col2 * + col1 + - col1 AS col1 FROM tab2
----
1475
629
806
query I rowsort
SELECT DISTINCT + 53 AS col0 FROM tab2, tab2 AS cor0
----
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col2 FROM tab0
----
83
query I rowsort
SELECT col1 - - col0 * col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT - 21 * 26 FROM tab1, tab0 AS cor0
----
9 values hashing to 4702c495748777632703e415362eb8f6
query I rowsort
SELECT + cor0.col2 + ( 45 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 57be4eadf9cd535e0e5804b571bca7ac
onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT DISTINCT 91 DIV - 92 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT 91 / - 92 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
0
query I rowsort
SELECT + 72 * 86 FROM tab0, tab1, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 99b296aecbce25a198407804bf77ac43
query I rowsort
SELECT DISTINCT + tab0.col1 * + 49 AS col0 FROM tab0
----
4214
4459
4753
query I rowsort
SELECT col2 * col2 + col1 * + col1 AS col2 FROM tab1
----
3349
3592
9385
query I rowsort
SELECT ALL - col0 + + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-9148
SELECT ALL - cor0.col2 DIV + col0 col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9148
SELECT ALL - cor0.col2 / + col0 col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT - - col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col2 * + col0 * + col0 AS col2 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9151
SELECT - - cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9151
SELECT - - cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + col2 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - - col2 + + cor0.col2 * 34 * - col2 FROM tab0 cor0
----
-228534
-33
-36993
query I rowsort
SELECT - col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + cor0.col1 * + col2 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * col0 + col2 * - col0 FROM tab1 AS cor0
----
-240
-4288
-8720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 * 96 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
672
7488
7584
query I rowsort
SELECT ALL 66 * col1 FROM tab2
----
1122
2046
3894
query I rowsort
SELECT ALL - 95 * - col1 AS col1 FROM tab0
----
8170
8645
9215
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + cor0.col0 + cor0.col0 col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - col2 + - 22 * + 68 - + col0 FROM tab0 AS cor0
----
-1532
-1553
-1667
query I rowsort
SELECT - col1 + 43 FROM tab0 cor0
----
-43
-48
-54
query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + - cor1.col1 AS col1 FROM tab2, tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT - 77 + + col1 FROM tab1 AS cor0
----
-51
-64
-67
query I rowsort
SELECT ( tab2.col0 ) * + col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col2 + col2 * cor0.col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT 58 * + col2 AS col2 FROM tab1
----
3132
3306
5568
query I rowsort
SELECT - col2 * - col2 + - ( col2 ) - col2 AS col2 FROM tab2 AS cor0
----
1368
624
675
query I rowsort
SELECT - 28 + cor1.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9510ecb36ef89b1fdbce6308bc2d3917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9172
SELECT - col1 * col0 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9172
SELECT - col1 * col0 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 20 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9174
SELECT - cor0.col2 DIV col0 + ( + col1 ) - - cor0.col1 AS col1 FROM tab1 AS cor0
----
20
25
34
skipif mysql # not compatible
query I rowsort label-9174
SELECT - cor0.col2 / col0 + ( + col1 ) - - cor0.col1 AS col1 FROM tab1 AS cor0
----
20
25
34
query I rowsort
SELECT DISTINCT - col0 * ( + col1 ) * - col2 AS col0 FROM tab1 cor0
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - col1 * + 5 AS col0 FROM tab1 AS cor0
----
-130
-50
-65
skipif mysql # not compatible
query I rowsort
SELECT ALL tab2.col0 * col1 + - col2 * col1 * CAST ( col1 * + col0 AS REAL ) FROM tab2
----
-181412
-7054866
-866235
query I rowsort
SELECT + col2 * - 2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT ALL col1 * + ( - col2 + + col1 ) * + col2 FROM tab1 AS cor0
----
-103584
-26790
-39312
query I rowsort
SELECT DISTINCT - + cor0.col0 + - 39 FROM tab1 AS cor0
----
-103
-119
-42
query I rowsort
SELECT + col0 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - + col2 + col0 * + col2 AS col0 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT + + col2 * + ( + cor0.col0 * + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - + ( - col1 ) + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + 81 AS col1 FROM tab1 AS cor0
----
81
81
81
query I rowsort
SELECT ALL - col1 * ( col2 ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT + - cor0.col2 + 80 FROM tab2 AS cor0
----
42
53
54
query I rowsort
SELECT DISTINCT - - 90 + 85 AS col0 FROM tab0 AS cor0
----
175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + col1 col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab1, tab1 AS cor0
----
-62
query I rowsort
SELECT col2 * ( - col0 ) AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9192
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 + + col1 + - ( + col0 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 + + col1 + - ( + col0 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - 14 + - ( col1 ) + - col0 FROM tab0 AS cor0
----
-124
-146
-194
query I rowsort
SELECT ALL col0 - + 89 FROM tab0 AS cor0
----
-54
-65
0
query I rowsort
SELECT - col0 * col2 - col1 * 71 FROM tab0 cor0
----
-13759
-6898
-6922
query I rowsort
SELECT DISTINCT 18 + - col2 * + cor0.col0 - 33 * col0 FROM tab2 AS cor0
----
-402
-4584
-5591
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - 59 col1 FROM tab1 AS cor0
----
-56
21
5
query I rowsort
SELECT - 6 + + col1 * col0 FROM tab0 AS cor0
----
2058
3389
8093
onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT DISTINCT col2 DIV ( + tab1.col2 ) FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT col2 / ( + tab1.col2 ) FROM tab1
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9200
SELECT ALL 75 DIV + col0 col2 FROM tab0 AS cor0
----
0
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL 75 / + col0 col2 FROM tab0 AS cor0
----
0
2
3
query I rowsort
SELECT DISTINCT - 67 + col1 FROM tab1 AS cor0
----
-41
-54
-57
query I rowsort
SELECT + + 17 + col1 FROM tab0 cor0
----
103
108
114
query I rowsort
SELECT - col1 * + col1 + col1 * 45 AS col1 FROM tab0 AS cor0
----
-3526
-4186
-5044
query I rowsort
SELECT ALL + - col2 * - cor0.col0 * + ( 90 * + col1 ) - + col2 AS col0 FROM tab0 AS cor0
----
305549
59770538
6130047
skipif mysql # not compatible
query I rowsort
SELECT ALL + 3 * cor0.col0 + CAST ( + col2 * - col1 AS REAL ) FROM tab0 AS cor0
----
-2766
-7195
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9206
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9206
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 68 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT ALL - 16 * - 30 AS col2 FROM tab1 AS cor0
----
480
480
480
query I rowsort
SELECT 63 + + col0 + col2 AS col1 FROM tab1 AS cor0
----
120
184
239
onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT DISTINCT + 12 DIV - col1 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT + 12 / - col1 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9211
SELECT ALL col0 - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL col0 - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * col2 * col2 - - col1 FROM tab2
----
-114059
-5072
-52669
query I rowsort
SELECT col2 + - 80 FROM tab2
----
-42
-53
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9214
SELECT ALL - col0 DIV 2 + - col0 FROM tab0
----
-133
-36
-52
skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL - col0 / 2 + - col0 FROM tab0
----
-133
-36
-52
query I rowsort
SELECT - 39 * + col0 + col2 + 45 AS col0 FROM tab0
----
-1319
-3344
-858
query I rowsort
SELECT + col2 * col0 * col0 AS col1 FROM tab2
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9217
SELECT CAST( col1 AS SIGNED ) + + col2 * + ( - col2 ) FROM tab2
----
-1427
-617
-698
skipif mysql # not compatible
query I rowsort label-9217
SELECT CAST ( col1 AS INTEGER ) + + col2 * + ( - col2 ) FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT 99 + col2 AS col0 FROM tab2
----
125
126
137
query I rowsort
SELECT ALL + - 89 AS col0 FROM tab2 cor0
----
-89
-89
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - col0 + + col1 col1 FROM tab0 AS cor0
----
1142
1637
4007
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT + 31 * - cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f00d9b255a3e2c00771fde8a329cecd0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9223
SELECT ALL - ( col0 ) DIV + col2 - - CAST( + col1 * col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
7396
8280
9374
skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL - ( col0 ) / + col2 - - CAST ( + col1 * col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
7396
8280
9374
query I rowsort
SELECT DISTINCT - ( + col2 ) + col2 AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL col1 + col0 * 13 FROM tab2 AS cor0
----
1044
1073
122
query I rowsort
SELECT DISTINCT - col2 + col1 * + col0 AS col0 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-9227
SELECT col1 DIV + ( col0 ) FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9227
SELECT col1 / + ( col0 ) FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 * CAST ( 73 + + col1 AS INTEGER ) * - CAST ( - 4 * - col2 AS REAL ) AS col2 FROM tab1 AS cor0
----
-1078668
-1154736
-3170304
query I rowsort
SELECT + + col0 + col2 * col1 * - col0 AS col0 FROM tab2 AS cor0
----
-119574
-50955
-5852
onlyif mysql # use DIV operator for integer division
query I rowsort label-9230
SELECT DISTINCT + col2 * 75 DIV 49 FROM tab1 AS cor0
----
146
82
87
skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT + col2 * 75 / 49 FROM tab1 AS cor0
----
146
82
87
query I rowsort
SELECT ALL + col2 + 67 FROM tab1 cor0
----
121
124
163
query I rowsort
SELECT + col2 + col2 * + col2 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
157518
185250
884832
query I rowsort
SELECT DISTINCT + cor0.col2 * ( 41 ) FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT ALL - cor0.col2 + + col1 * col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - + col2 + + ( - 58 ) * + col0 AS col1 FROM tab1 cor0
----
-228
-3769
-4736
query I rowsort
SELECT + + cor0.col0 * - tab2.col2 FROM tab2, tab1, tab0 cor0
----
27 values hashing to 094ec191d4a978f7a19a3ae6fc2135d6
skipif mysql # not compatible
query I rowsort
SELECT - col0 * + ( - col1 + - col0 * CAST ( col2 AS REAL ) ) AS col0 FROM tab2 AS cor0
----
1540
162786
238501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col0 col1 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 19 col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
-19
skipif mysql # not compatible
query I rowsort
SELECT ALL - + col0 * CAST ( - col0 * cor0.col2 AS REAL ) FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT ALL - - col0 + + col2 * col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col1 * - 17 + col2 FROM tab0 AS cor0
----
-1429
-1465
-1648
query I rowsort
SELECT + + col0 * 5 + col2 FROM tab0 cor0
----
153
176
527
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + 55 col2 FROM tab2 AS cor0
----
133
134
62
query I rowsort
SELECT DISTINCT col0 * 56 AS col1 FROM tab1 AS cor0
----
168
3584
4480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col0 - col0 col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT + 8 * - ( + col2 ) FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT 14 * 23 FROM tab2 AS cor0
----
322
322
322
query I rowsort
SELECT ALL 26 + - col2 AS col1 FROM tab1 cor0
----
-28
-31
-70
query I rowsort
SELECT DISTINCT - + 63 * + col1 FROM tab2 AS cor0
----
-1071
-1953
-3717
query I rowsort
SELECT ALL col2 * 5 * 93 AS col0 FROM tab2
----
12090
12555
17670
query I rowsort
SELECT + + ( 37 ) + - col2 * ( - ( col0 ) ) FROM tab1 cor0
----
199
3685
7717
query I rowsort
SELECT + col2 * + col1 + 79 AS col1 FROM tab0 AS cor0
----
176
2917
7541
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - cor1.col1 ) col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9255
SELECT ALL - 39 + - col1 DIV col2 FROM tab0 AS cor0
----
-136
-40
-41
skipif mysql # not compatible
query I rowsort label-9255
SELECT ALL - 39 + - col1 / col2 FROM tab0 AS cor0
----
-136
-40
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 * col0 col0 FROM tab1 AS cor0
----
-270
-5760
-7200
query I rowsort
SELECT DISTINCT + col0 - col0 * col1 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT - col1 - - col2 * - ( ( col1 ) ) AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT ALL - 7 * + col0 * + col0 FROM tab1 AS cor0
----
-28672
-44800
-63
query I rowsort
SELECT col2 * - col1 + col0 AS col2 FROM tab0 cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-9261
SELECT + + 8 DIV col0 + CAST( ( col2 ) * ( - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-9261
SELECT + + 8 / col0 + CAST ( ( col2 ) * ( - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 20 + col2 AS col0 FROM tab2
----
46
47
58
query I rowsort
SELECT DISTINCT 76 + col2 * col1 FROM tab2
----
1610
722
913
onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT ( cor0.col0 ) * + col0 + - col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-9264
SELECT ( cor0.col0 ) * + col0 + - col0 / - col0 AS col1 FROM tab0 AS cor0
----
1226
577
7922
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col2 + + col1 * 30 col0 FROM tab2 cor0
----
-136
236
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9266
SELECT - CAST( 94 AS SIGNED ) * col1 + 65 + col2 AS col0 FROM tab0 cor0
----
-7986
-8407
-9052
skipif mysql # not compatible
query I rowsort label-9266
SELECT - CAST ( 94 AS INTEGER ) * col1 + 65 + col2 AS col0 FROM tab0 cor0
----
-7986
-8407
-9052
query I rowsort
SELECT + + ( col1 ) + col0 * - cor0.col2 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + - cor0.col2 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ba07fe43c43e1689ac7e6a8becabade2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 * col0 col0 FROM tab1
----
188
3658
7693
onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT col1 DIV ( - ( - col1 ) + + col2 ) FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9270
SELECT col1 / ( - ( - col1 ) + + col2 ) FROM tab2
----
0
0
0
query I rowsort
SELECT - - col1 * col1 * col0 + + col0 AS col1 FROM tab0 AS cor0
----
177528
329350
737098
query I rowsort
SELECT - cor0.col1 + + 78 * col1 * - ( + col1 + - col0 ) AS col1 FROM tab2 AS cor0
----
-58063
82195
87379
query I rowsort
SELECT + + 70 + + 3 AS col0 FROM tab2 AS cor0
----
73
73
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9274
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
NULL
skipif mysql # not compatible
query I rowsort label-9274
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 3 * cor0.col0 col0 FROM tab0 AS cor0
----
105
267
72
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT 29 * + col2 AS col1 FROM tab0
----
2378
29
957
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9278
SELECT DISTINCT tab2.col2 + + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT tab2.col2 + + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
NULL
query I rowsort
SELECT tab0.col0 * - 8 * col0 AS col1 FROM tab0
----
-4608
-63368
-9800
query I rowsort
SELECT ALL ( 26 ) AS col0 FROM tab0, tab2 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9281
SELECT - col2 DIV 71 col2 FROM tab0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9281
SELECT - col2 / 71 col2 FROM tab0
----
-1
0
0
query I rowsort
SELECT DISTINCT col1 + 87 FROM tab0 AS cor0
----
173
178
184
query I rowsort
SELECT + col2 * col0 * col2 - cor0.col1 AS col2 FROM tab2 AS cor0
----
114059
5072
52669
query I rowsort
SELECT DISTINCT - 7 + col1 FROM tab1 AS cor0
----
19
3
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 8 + col1 col2 FROM tab1 AS cor0
----
-406
-446
-755
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 43 col1 FROM tab1 AS cor0
----
-43
-43
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 77 col1 FROM tab2
----
108
136
94
query I rowsort
SELECT - col2 + 77 * col0 AS col0 FROM tab1
----
177
4871
6064
query I rowsort
SELECT ALL 35 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT - 18 * - col0 + + col0 - - ( 84 ) AS col2 FROM tab1
----
1300
141
1604
query I rowsort
SELECT col1 * col2 + col0 + 77 * + 41 AS col0 FROM tab1 AS cor0
----
3791
4485
4564
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - 34 AS col0 FROM tab2 AS cor0
----
-34
-34
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9294
SELECT - + col1 + ( + col1 ) * + CAST( col1 AS SIGNED ) - + col0 FROM tab1 AS cor0
----
26
647
76
skipif mysql # not compatible
query I rowsort label-9294
SELECT - + col1 + ( + col1 ) * + CAST ( col1 AS INTEGER ) - + col0 FROM tab1 AS cor0
----
26
647
76
query I rowsort
SELECT + col0 + cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT + col0 + - col2 + tab2.col1 FROM tab2
----
11
111
58
query I rowsort
SELECT col1 * tab1.col1 * + col0 AS col2 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT col1 * col2 + 32 FROM tab0
----
129
2870
7494
onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT - 37 + + col2 DIV - 8 col1 FROM tab0 AS cor0
----
-37
-41
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9299
SELECT - 37 + + col2 / - 8 col1 FROM tab0 AS cor0
----
-37
-41
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 + cor0.col2 col0 FROM tab2 AS cor0
----
73
74
85
query I rowsort
SELECT col1 * - ( col0 ) AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 68 FROM tab0, tab1 cor0, tab2 AS cor1
----
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - cor0.col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col0 + + ( col0 ) FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL - col1 * - 2 * - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-2669
-403
-9145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9306
SELECT + col1 * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-9306
SELECT + col1 * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 1 + + col0 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - cor0.col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + - col0 + cor0.col0 * 66 AS col1 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT ALL + ( - 81 ) * - col0 AS col1 FROM tab2
----
567
6318
6399
query I rowsort
SELECT DISTINCT cor0.col0 + tab2.col1 FROM tab2, tab0, tab2 AS cor0
----
9 values hashing to 74faab35697b5ea1753f372919d97975
query I rowsort
SELECT ALL + 45 - col0 * - col2 * + col2 AS col0 FROM tab2
----
114121
5148
52773
query I rowsort
SELECT col0 * - col2 + + ( + 30 ) + + col2 FROM tab0
----
-4
-7186
-729
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT col1 * - col1 + col2 + ( col1 ) AS col2 FROM tab2
----
-234
-3396
-903
query I rowsort
SELECT - col0 + + tab0.col2 + + 82 AS col1 FROM tab0
----
48
75
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9317
SELECT DISTINCT ( - col0 ) DIV col2 col1 FROM tab1 cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT ( - col0 ) / col2 col1 FROM tab1 cor0
----
-1
0
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT ALL - 7 + col0 AS col1 FROM tab0 AS cor0
----
17
28
82
query I rowsort
SELECT - + col2 * 73 FROM tab2 AS cor0
----
-1898
-1971
-2774
query I rowsort
SELECT - - 58 * - col0 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT ALL - - col0 + + ( + cor0.col2 ) * col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - - 63 * col0 AS col2 FROM tab2 AS cor0
----
441
4914
4977
query I rowsort
SELECT DISTINCT + cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 + col1 + - col1 AS col0 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT - cor0.col0 * 57 + col0 AS col1 FROM tab1 cor0
----
-168
-3584
-4480
query I rowsort
SELECT + 0 + - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL 88 * col0 FROM tab2 AS cor0
----
616
6864
6952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 col1 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL ( col0 ) * col2 * + 5 AS col0 FROM tab2 AS cor0
----
10140
15010
945
onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT ALL + cor0.col0 DIV 77 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL + cor0.col0 / 77 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9332
SELECT + + CAST( NULL AS DECIMAL ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9332
SELECT + + CAST ( NULL AS REAL ) + + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 30 * col1 FROM tab2 AS cor0
----
1770
510
930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - col0 + - cor0.col1 * col0 col1 FROM tab2 AS cor0
----
-2765
-441
-9282
query I rowsort
SELECT - col0 + ( + col0 ) FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + cor0.col0 + col0 + + col1 FROM tab1 AS cor0
----
138
173
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-9337
SELECT ( + col2 ) + col1 DIV - col2 AS col2 FROM tab0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-9337
SELECT ( + col2 ) + col1 / - col2 AS col2 FROM tab0
----
-96
31
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col0 + 91 col0 FROM tab1 AS cor0
----
-549
-949
13
query I rowsort
SELECT - - ( col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - ( col1 ) + + 66 AS col1 FROM tab2 AS cor0
----
35
49
7
query I rowsort
SELECT DISTINCT + 70 * + col1 AS col0 FROM tab2 cor0
----
1190
2170
4130
onlyif mysql # use DIV operator for integer division
query I rowsort label-9342
SELECT col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9342
SELECT col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - col0 * + col1 + col0 * + col2 AS col1 FROM tab2 AS cor0
----
-2574
-28
1659
onlyif mysql # use DIV operator for integer division
query I rowsort label-9344
SELECT + col0 * + 83 + + col1 DIV col1 col2 FROM tab1 AS cor0
----
250
5313
6641
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9344
SELECT + col0 * + 83 + + col1 / col1 col2 FROM tab1 AS cor0
----
250
5313
6641
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + col1 col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT cor0.col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL 20 + 14 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT col2 - + cor0.col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + col0 * + col1 + - col0 * + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 - - 50 AS col1 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT ALL - - col1 * 62 + col1 AS col1 FROM tab1 AS cor0
----
1638
630
819
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT DISTINCT + col1 DIV 22 + + col2 AS col2 FROM tab2 AS cor0
----
28
38
skipif mysql # not compatible
query I rowsort label-9352
SELECT DISTINCT + col1 / 22 + + col2 AS col2 FROM tab2 AS cor0
----
28
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 73 col1 FROM tab2 AS cor0
----
1241
2263
4307
query I rowsort
SELECT + cor0.col2 + ( col0 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL cor0.col0 * - 0 + ( - col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( - 65 AS REAL ) FROM tab0 AS cor0
----
65
65
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9357
SELECT ALL - - CAST( - col1 AS SIGNED ) + + col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9357
SELECT ALL - - CAST ( - col1 AS INTEGER ) + + col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - - 27 + 48 FROM tab0 AS cor0
----
75
75
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * 98 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9359
SELECT DISTINCT - CAST ( NULL AS REAL ) * 98 + + col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 51 * col1 - col1 FROM tab1 AS cor0
----
-1352
-520
-676
query I rowsort
SELECT + 90 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT + - ( col0 ) + + cor0.col2 * col1 * - 74 FROM tab1 cor0
----
-103899
-42244
-92432
onlyif mysql # use DIV operator for integer division
query I rowsort label-9363
SELECT + 35 DIV col2 AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9363
SELECT + 35 / col2 AS col2 FROM tab0
----
0
1
35
query I rowsort
SELECT ALL ( + col2 * - 88 + + tab0.col0 * col0 ) FROM tab0
----
-2328
1137
705
query I rowsort
SELECT - cor0.col0 * 44 - col1 AS col1 FROM tab2 cor0
----
-339
-3491
-3493
query I rowsort
SELECT - - col2 + - ( col0 * - col1 ) + col2 * + col0 * + col0 AS col1 FROM tab0 AS cor0
----
21105
4621
657703
query I rowsort
SELECT DISTINCT col0 * col1 + 14 FROM tab2
----
1357
231
4616
onlyif mysql # use DIV operator for integer division
query I rowsort label-9368
SELECT ALL col0 + - 93 + col0 DIV + tab2.col0 FROM tab2
----
-13
-14
-85
skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL col0 + - 93 + col0 / + tab2.col0 FROM tab2
----
-13
-14
-85
query I rowsort
SELECT - col0 * col2 + col2 * col0 - - col0 * col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9370
SELECT DISTINCT col0 * 82 DIV 20 AS col0 FROM tab0 AS cor0
----
143
364
98
skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT col0 * 82 / 20 AS col0 FROM tab0 AS cor0
----
143
364
98
query I rowsort
SELECT + col1 + col1 * + col0 * col1 + cor0.col1 AS col0 FROM tab1 AS cor0
----
13546
2080
6420
onlyif mysql # use DIV operator for integer division
query I rowsort label-9372
SELECT + - col2 + 88 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
48
61
62
skipif mysql # not compatible
query I rowsort label-9372
SELECT + - col2 + 88 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
48
61
62
query I rowsort
SELECT ALL col2 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
1427
617
698
query I rowsort
SELECT DISTINCT col0 * + 66 * + col0 FROM tab2 AS cor0
----
3234
401544
411906
query I rowsort
SELECT - cor0.col1 + cor0.col0 - - col0 AS col1 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT cor0.col0 + 1 * col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + + 7 AS col2 FROM tab0 cor0
----
7
7
7
query I rowsort
SELECT DISTINCT + - col2 + + col1 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL col1 * col2 + - col2 + col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9380
SELECT ALL + cor0.col2 + + col2 DIV + cor0.col0 AS col1 FROM tab1 cor0
----
57
72
97
skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL + cor0.col2 + + col2 / + cor0.col0 AS col1 FROM tab1 cor0
----
57
72
97
query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab2 cor0
----
-76
query I rowsort
SELECT ALL - + 21 FROM tab1 AS cor0
----
-21
-21
-21
query I rowsort
SELECT - ( + 81 ) FROM tab2
----
-81
-81
-81
query I rowsort
SELECT + - 42 + col2 AS col1 FROM tab1 AS cor0
----
12
15
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) * col1 + col1 col2 FROM tab0 AS cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( cor0.col0 ) + col2 + - col1 col2 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT DISTINCT - + col0 - col0 AS col2 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT DISTINCT ( col1 ) * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - cor0.col2 + - cor0.col0 * + col0 + + cor0.col0 FROM tab1 AS cor0
----
-4089
-60
-6416
query I rowsort
SELECT ALL + col1 * - col0 + + col1 + col0 * col0 FROM tab2 AS cor0
----
-137
1541
4915
onlyif mysql # use DIV operator for integer division
query I rowsort label-9391
SELECT ALL + col0 DIV cor0.col1 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
106
175
676
skipif mysql # not compatible
query I rowsort label-9391
SELECT ALL + col0 / cor0.col1 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
106
175
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + tab1.col1 ) col0 FROM tab1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT + 6 DIV - col0 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-9393
SELECT + 6 / - col0 col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9394
SELECT DISTINCT - CAST( col0 AS SIGNED ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9394
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col0 AS REAL ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT 31 * 57 AS col1 FROM tab0 AS cor0
----
1767
query I rowsort
SELECT - col1 * + 61 FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT ALL 12 FROM tab0, tab1 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT + 42 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
42
query I rowsort
SELECT DISTINCT + col0 * + 28 + - col0 * + col1 FROM tab2
----
-21
-2418
869
query I rowsort
SELECT tab0.col0 + - 32 * - col1 AS col2 FROM tab0
----
2776
3001
3139
query I rowsort
SELECT + ( col1 ) + + col2 AS col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - col2 + - 21 AS col1 FROM tab2
----
-47
-48
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9404
SELECT - 20 DIV col0 - col0 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9404
SELECT - 20 / col0 - col0 / - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( - col1 ) * + tab2.col1 + + col1 AS col0 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT + col2 + - 24 FROM tab2
----
14
2
3
query I rowsort
SELECT - ( col0 ) - col2 AS col1 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT 61 * tab2.col2 FROM tab2
----
1586
1647
2318
query I rowsort
SELECT DISTINCT + tab2.col1 * col0 + + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ( - col2 ) * - col2 AS col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + 11 * cor0.col0 + - col2 * col0 AS col0 FROM tab1 AS cor0
----
-129
-2944
-6800
query I rowsort
SELECT - + 47 * - col0 + col0 AS col0 FROM tab0 cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT + ( - ( - tab2.col1 ) ) FROM tab2, tab1 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9414
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT - col2 * + ( + col0 * col1 ) FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * cor0.col0 * + col1 FROM tab2 AS cor0
----
106135
1546
358982
query I rowsort
SELECT DISTINCT - - col2 + - col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT cor0.col2 + - 58 * col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
query I rowsort
SELECT - - 19 FROM tab2 cor0
----
19
19
19
query I rowsort
SELECT - col1 * col2 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL ( + cor0.col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9423
SELECT ALL + - 77 DIV col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-9423
SELECT ALL + - 77 / col1 AS col0 FROM tab2 AS cor0
----
-1
-2
-4
query I rowsort
SELECT + 50 * - col0 AS col1 FROM tab0 cor0
----
-1200
-1750
-4450
query I rowsort
SELECT ALL + col0 * col0 - - ( 17 ) AS col2 FROM tab1 AS cor0
----
26
4113
6417
query I rowsort
SELECT ALL col1 * + col0 - cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - - col2 * - cor0.col2 + 10 AS col2 FROM tab2 cor0
----
-1434
-666
-719
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 + + 40 FROM tab0 AS cor0
----
-7258
-752
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9429
SELECT CAST( - col1 AS SIGNED ) - col2 FROM tab0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-9429
SELECT CAST ( - col1 AS INTEGER ) - col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - cor0.col0 * + col2 + 63 FROM tab1 AS cor0
----
-3585
-7617
-99
query I rowsort
SELECT DISTINCT col2 * col0 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL ( col0 ) * + cor0.col0 + + 1 AS col1 FROM tab1 AS cor0
----
10
4097
6401
query I rowsort
SELECT col0 + 50 FROM tab1 AS cor0
----
114
130
53
query I rowsort
SELECT - tab2.col0 - tab2.col2 * 50 FROM tab2
----
-1357
-1378
-1979
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9435
SELECT - col1 * col1 + - CAST( NULL AS DECIMAL ) * 9 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9435
SELECT - col1 * col1 + - CAST ( NULL AS REAL ) * 9 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 + col0 col0 FROM tab0
----
142
77
88
query I rowsort
SELECT DISTINCT + - col0 * col2 + + col1 * col2 * col1 + + col0 FROM tab1 AS cor0
----
2116
36345
8624
query I rowsort
SELECT + cor0.col0 + 32 AS col2 FROM tab2 AS cor0
----
110
111
39
query I rowsort
SELECT + col2 * - col0 + - cor0.col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 * - cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT DISTINCT + - col2 * ( + col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9442
SELECT DISTINCT col1 + - col2 * CAST( - col2 AS SIGNED ) * - col2 AS col0 FROM tab1
----
-157438
-185183
-884723
skipif mysql # not compatible
query I rowsort label-9442
SELECT DISTINCT col1 + - col2 * CAST ( - col2 AS INTEGER ) * - col2 AS col0 FROM tab1
----
-157438
-185183
-884723
query I rowsort
SELECT - col2 * col0 * ( tab2.col0 * + col2 ) AS col2 FROM tab2
----
-35721
-4112784
-9012004
query I rowsort
SELECT DISTINCT 28 + col1 FROM tab1
----
38
41
54
query I rowsort
SELECT 28 + - col1 AS col0 FROM tab2
----
-3
-31
11
query I rowsort
SELECT + 55 + + col0 * + 45 + - 25 FROM tab1
----
165
2910
3630
query I rowsort
SELECT + + col0 * 50 + - col2 FROM tab0 AS cor0
----
1167
1749
4368
query I rowsort
SELECT - 56 * + cor0.col1 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 6de72235afe6c19713aecc1c706b4ca6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9449
SELECT - - col1 * cor0.col1 DIV - col1 + + col2 * CAST( ( + col0 ) * col1 AS SIGNED ) FROM tab0 AS cor0
----
3298
664027
68026
skipif mysql # not compatible
query I rowsort label-9449
SELECT - - col1 * cor0.col1 / - col1 + + col2 * CAST ( ( + col0 ) * col1 AS INTEGER ) FROM tab0 AS cor0
----
3298
664027
68026
query I rowsort
SELECT DISTINCT + - col1 - ( col0 ) AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL cor1.col1 * cor1.col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6387e809cb1e467e8e7184dc79f3a43b
query I rowsort
SELECT - col0 + + ( col2 + - 0 ) * ( - tab2.col2 + - tab2.col0 ) FROM tab2
----
-2782
-4525
-925
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col2 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + 12 col2 FROM tab0
----
-59
-59
-59
query I rowsort
SELECT - 60 + tab0.col2 AS col0 FROM tab0
----
-27
-59
22
query I rowsort
SELECT DISTINCT ( col0 ) * + 94 AS col1 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT col0 * + cor0.col0 * + 97 AS col2 FROM tab0 AS cor0
----
118825
55872
768337
query I rowsort
SELECT ALL + + 72 FROM tab2 AS cor0
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-9459
SELECT ALL tab1.col1 DIV 22 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-9459
SELECT ALL tab1.col1 / 22 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT DISTINCT ( col0 ) * col0 * col0 AS col0 FROM tab1
----
262144
27
512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-9461
SELECT + col0 + + col1 DIV + col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9461
SELECT + col0 + + col1 / + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - 84 + col1 AS col1 FROM tab0 AS cor0
----
13
2
7
query I rowsort
SELECT - + col0 * - col0 - - col2 * col1 AS col2 FROM tab2 cor0
----
6887
7618
886
query I rowsort
SELECT ALL - + 73 * - col2 * col0 + 78 AS col1 FROM tab2 cor0
----
13875
148122
219224
query I rowsort
SELECT DISTINCT - col2 - - cor0.col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + - col2 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 - + col2 col2 FROM tab1 AS cor0
----
-51
-54
-93
query I rowsort
SELECT DISTINCT - + col2 + + col2 + cor0.col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + col2 * + col2 + + col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT ALL + ( + 53 ) FROM tab0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-9471
SELECT ALL 1 * 34 DIV + col0 AS col2 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9471
SELECT ALL 1 * 34 / + col0 AS col2 FROM tab2
----
0
0
4
query I rowsort
SELECT + cor0.col1 * col2 * col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL + 0 * col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 27 * cor0.col1 AS col1 FROM tab2 cor0
----
1593
459
837
query I rowsort
SELECT - col0 * + col2 + + col1 * col1 AS col0 FROM tab2
----
-2713
1453
772
query I rowsort
SELECT DISTINCT 26 + + 72 FROM tab1
----
98
query I rowsort
SELECT ( - col0 + col0 ) AS col0 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9478
SELECT CAST( - 6 AS SIGNED ) FROM tab0
----
-6
-6
-6
skipif mysql # not compatible
query I rowsort label-9478
SELECT CAST ( - 6 AS INTEGER ) FROM tab0
----
-6
-6
-6
query I rowsort
SELECT - - col1 * cor0.col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT + col0 * - tab1.col0 * col1 AS col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT + + col2 + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT cor0.col1 * - col2 + + 58 FROM tab2 AS cor0
----
-1476
-588
-779
query I rowsort
SELECT DISTINCT - + col0 * 27 FROM tab2 AS cor0
----
-189
-2106
-2133
query I rowsort
SELECT - 16 AS col0 FROM tab2 cor0
----
-16
-16
-16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + - col1 + + col0 col1 FROM tab0 AS cor0
----
-31
-31
29
query I rowsort
SELECT ALL cor0.col2 - - cor0.col0 FROM tab1, tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT tab1.col2 * col1 + - col0 AS col2 FROM tab1
----
1168
1401
506
query I rowsort
SELECT + ( - 54 ) * - col1 FROM tab2 AS cor0
----
1674
3186
918
query I rowsort
SELECT + - col2 * - 18 FROM tab0 AS cor0
----
1476
18
594
onlyif mysql # use DIV operator for integer division
query I rowsort label-9490
SELECT DISTINCT + tab0.col1 DIV col1 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT + tab0.col1 / col1 + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT 50 FROM tab0, tab0 AS cor0
----
50
query I rowsort
SELECT + - col2 + 26 * col2 FROM tab2 cor0
----
650
675
950
query I rowsort
SELECT ( cor0.col1 ) * - col2 + + 16 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-1306
-2452
-880
onlyif mysql # use DIV operator for integer division
query I rowsort label-9494
SELECT ALL col2 DIV - 35 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-91
skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL col2 / - 35 + - col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-91
query I rowsort
SELECT ALL - ( + col1 ) * cor0.col0 + + col0 + - col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - 97 * - col2 + col0 * 62 FROM tab1 AS cor0
----
14272
5424
9497
query I rowsort
SELECT DISTINCT ( 53 ) - - col1 FROM tab0 AS cor0
----
139
144
150
query I rowsort
SELECT + col2 * col1 + + cor0.col1 * + ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
1079
470
728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9499
SELECT ALL - CAST( NULL AS SIGNED ) + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - CAST ( NULL AS INTEGER ) + cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 72 + + 85 + - col0 AS col2 FROM tab2 AS cor0
----
150
78
79
query I rowsort
SELECT ALL col2 + 70 * col1 + col1 * + col2 FROM tab0 AS cor0
----
13914
6888
8891
query I rowsort
SELECT + 76 * + 5 FROM tab1 AS cor0
----
380
380
380
query I rowsort
SELECT ALL 95 * col0 + + col2 * col1 FROM tab1 cor0
----
1689
6650
8848
query I rowsort
SELECT DISTINCT 67 + + col1 * - col2 FROM tab0 AS cor0
----
-2771
-30
-7395
query I rowsort
SELECT ALL col0 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT DISTINCT - 72 + col1 AS col1 FROM tab0 AS cor0
----
14
19
25
query I rowsort
SELECT ALL ( col1 ) + - col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT - col0 * cor0.col0 * 45 FROM tab2 AS cor0
----
-2205
-273780
-280845
query I rowsort
SELECT DISTINCT - cor0.col0 + - tab2.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 625e99802c37f1b6e261b243e04b6cd7
query I rowsort
SELECT ALL - col1 + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT - + col0 - 47 FROM tab2 cor0
----
-125
-126
-54
query I rowsort
SELECT + - col0 + - ( col2 ) AS col1 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT col2 - - 58 * col0 FROM tab1 AS cor0
----
228
3769
4736
query I rowsort
SELECT - + col0 * - col0 * col2 + col0 AS col2 FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT DISTINCT col0 * + col1 + - 15 * col0 * - col0 AS col1 FROM tab0 AS cor0
----
10704
126914
21770
query I rowsort
SELECT ALL + 4 + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e1444e6544e65a2321b4d6ba6abf25c9
query I rowsort
SELECT + cor0.col2 + col2 * - col2 AS col0 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT + + 15 - - 14 FROM tab1 AS cor0
----
29
query I rowsort
SELECT ALL 91 + tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2c717a967cd2e2f5386dcb8efa54b301
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT DISTINCT + 89 AS col1 FROM tab0, tab1 AS cor0
----
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9522
SELECT DISTINCT col0 + + 71 DIV 88 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT col0 + + 71 / 88 FROM tab2
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9523
SELECT DISTINCT col2 - CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT col2 - CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
-7
16
51
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2 WHERE NULL <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9525
SELECT ALL col2 DIV col0 + col2 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-9525
SELECT ALL col2 / col0 + col2 FROM tab2
----
26
30
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9526
SELECT DISTINCT - tab0.col0 DIV + col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT - tab0.col0 / + col2 AS col1 FROM tab0
----
-1
-35
0
query I rowsort
SELECT ALL - col0 + col0 + - col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL tab0.col0 * - col1 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + col1 - + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9529
SELECT col1 DIV col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-9529
SELECT col1 / col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT col0 * col2 + + col2 * col0 FROM tab0 WHERE col0 IN ( col1 )
----
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <> NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * col1 col0 FROM tab0
----
-1128
-459
2262
onlyif mysql # use DIV operator for integer division
query I rowsort label-9533
SELECT ALL - col0 DIV + col2 + - col1 FROM tab1
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - col0 / + col2 + - col1 FROM tab1
----
-11
-13
-26
query I rowsort
SELECT + tab2.col0 + - col1 * col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT col2 * + cor0.col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col2 * col0 + col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col2 + col0 * - cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-3982
-6208
99
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - - col0 + col2 * cor0.col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL - cor0.col1 + + col2 * - col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT + col1 * - col2 * + col2 + + col2 FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT ALL + col1 + + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-9543
SELECT DISTINCT + cor0.col1 + + col0 DIV - cor0.col1 FROM tab1 AS cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT + cor0.col1 + + col0 / - cor0.col1 FROM tab1 AS cor0
----
26
4
7
query I rowsort
SELECT - col1 * col0 + col1 AS col0 FROM tab2 cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 * col1 + col2 * + col0 + + cor0.col1 FROM tab2 AS cor0
----
-21529
-22379
-37797
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - tab0.col1 * - tab0.col0 + + col2 - col2 * + col2 col1 FROM tab0
----
-178560
-329315
-743651
query I rowsort
SELECT ALL col2 - + col1 * + col1 FROM tab1
----
-43
-622
-73
query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + tab1.col1 - + col2 AS col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT ALL col0 - col1 * + col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT ALL col2 * col2 - - col2 * col0 FROM tab1
----
16896
3078
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-9552
SELECT + col0 + + col2 DIV + col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9552
SELECT + col0 + + col2 / + col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + col0 * - col2 + - col0 * col1 - col1 AS col0 FROM tab1 AS cor0
----
-266
-4298
-8733
query I rowsort
SELECT ALL tab2.col0 - col1 AS col1 FROM tab2
----
-24
19
62
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab0 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT + col2 + + col0 * col1 AS col1 FROM tab0 cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col0 * - col2 col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT + - 63 - + col2 FROM tab1 AS cor0
----
-117
-120
-159
query I rowsort
SELECT - col0 + - col0 * - col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT - col0 * 15 AS col2 FROM tab1 AS cor0
----
-1200
-45
-960
query I rowsort
SELECT DISTINCT - tab2.col1 + col2 * - col0 + - col0 AS col2 FROM tab2
----
-2165
-227
-3098
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + + cor0.col2 * + col1 col0 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT DISTINCT - 82 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9564
SELECT + tab1.col0 DIV + col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9564
SELECT + tab1.col0 / + col1 FROM tab1
----
0
6
6
query I rowsort
SELECT - col2 + + col0 + + col2 AS col1 FROM tab2
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab2 cor0, tab0 AS cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9567
SELECT col0 * col0 + + tab1.col1 DIV - col2 + col1 col0 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9567
SELECT col0 * col0 + + tab1.col1 / - col2 + col1 col0 FROM tab1
----
35
4106
6413
query I rowsort
SELECT DISTINCT col0 + col2 * col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT col0 + - tab0.col1 * - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col1 + col0 * + col2 / col1 )
----
query I rowsort
SELECT DISTINCT col2 - col2 * tab0.col1 AS col1 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT - tab2.col2 + tab2.col0 * - col1 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NULL NOT BETWEEN - col0 AND ( NULL )
----
query I rowsort
SELECT ALL - tab1.col1 * col0 AS col2 FROM tab1 WHERE NOT col2 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - col0 + col0 * + col0 FROM tab1
----
4032
6
6320
query I rowsort
SELECT + col1 + tab1.col2 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT col2 = NULL
----
query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL IN ( col2 + tab1.col0 * + col0 * + tab1.col1 )
----
query I rowsort
SELECT DISTINCT col0 + tab0.col0 * + col2 AS col2 FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col1 FROM tab1
----
128
160
6
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) NOT BETWEEN col1 * col0 AND NULL
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + tab1.col1 + + col1 AS col0 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT col2 * + col1 + + tab2.col2 FROM tab2
----
1560
684
864
query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col2 + + col2 FROM tab1 WHERE NOT - col2 NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT col1 + tab2.col1 * col0 AS col2 FROM tab2
----
1360
248
4661
query I rowsort
SELECT col2 * + col1 + - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT - - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
33
82
query I rowsort
SELECT ALL + col0 * 24 AS col2 FROM tab2 AS cor0
----
168
1872
1896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - tab1.col1 col2 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT ALL - col2 * + col2 + col1 * - 11 FROM tab2 AS cor0
----
-1070
-1325
-1631
query I rowsort
SELECT DISTINCT + 29 * - col2 FROM tab2 AS cor0
----
-1102
-754
-783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + 74 ) col2 FROM tab1 AS cor0
----
-74
query I rowsort
SELECT + - cor0.col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9594
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col0 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9594
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col0 AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ALL + col1 * - ( + col0 ) + - col1 AS col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT - col0 + 3 FROM tab0
----
-21
-32
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-9597
SELECT col2 * + col2 + - 84 DIV 5 AS col1 FROM tab1 AS cor0
----
2900
3233
9200
skipif mysql # not compatible
query I rowsort label-9597
SELECT col2 * + col2 + - 84 / 5 AS col1 FROM tab1 AS cor0
----
2900
3233
9200
query I rowsort
SELECT + - col1 + col0 + col0 FROM tab2 AS cor0
----
-17
141
97
query I rowsort
SELECT ALL - 75 * cor0.col1 * 84 AS col2 FROM tab1 AS cor0
----
-163800
-63000
-81900
onlyif mysql # use DIV operator for integer division
query I rowsort label-9600
SELECT + col0 DIV 33 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9600
SELECT + col0 / 33 FROM tab1
----
0
1
2
query I rowsort
SELECT - 77 + - col2 AS col0 FROM tab2 AS cor0
----
-103
-104
-115
query I rowsort
SELECT DISTINCT + - 24 AS col0 FROM tab2, tab0, tab1 AS cor0
----
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT ( 64 ) DIV col2 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9603
SELECT ( 64 ) / col2 AS col1 FROM tab1
----
0
1
1
query I rowsort
SELECT ALL col1 - col2 AS col0 FROM tab0
----
53
9
96
query I rowsort
SELECT - - col2 * - col0 + + 88 FROM tab1 AS cor0
----
-3560
-74
-7592
query I rowsort
SELECT ALL + ( col0 * - 31 ) - + 80 AS col0 FROM tab2
----
-2498
-2529
-297
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - tab2.col0 col0 FROM tab2, tab1, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT col2 + cor0.col2 - - ( + col1 ) AS col0 FROM tab1 AS cor0
----
124
134
205
query I rowsort
SELECT - 25 + col2 + - col2 * tab1.col1 AS col2 FROM tab1
----
-1177
-1375
-538
query I rowsort
SELECT - col2 + - tab0.col0 AS col1 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9612
SELECT + 54 DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9612
SELECT + 54 / + col1 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * - 90 col0 FROM tab0 AS cor0
----
665640
745290
846810
query I rowsort
SELECT DISTINCT + ( + col1 ) + ( col2 ) * col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT ALL ( tab0.col1 ) + - col0 * - col0 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT col0 * + col0 + ( col2 ) FROM tab1
----
4153
63
6496
query I rowsort
SELECT + col0 * 8 + col2 FROM tab0 AS cor0
----
225
281
794
query I rowsort
SELECT ALL - col0 * 36 FROM tab0 cor0
----
-1260
-3204
-864
query I rowsort
SELECT ALL - col2 * + 27 - col0 * + col1 FROM tab0 AS cor0
----
-10313
-2955
-3422
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT + col1 DIV col0 + col1 * col2 FROM tab0 AS cor0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-9620
SELECT + col1 / col0 + col1 * col2 FROM tab0 AS cor0
----
2841
7463
99
query I rowsort
SELECT DISTINCT cor0.col0 + 0 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + 85 col1 FROM tab0 AS cor0
----
-4
50
61
query I rowsort
SELECT ALL + cor0.col0 * col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT ALL - col2 * col0 DIV 36 AS col1 FROM tab1 AS cor0
----
-101
-213
-4
skipif mysql # not compatible
query I rowsort label-9624
SELECT ALL - col2 * col0 / 36 AS col1 FROM tab1 AS cor0
----
-101
-213
-4
query I rowsort
SELECT DISTINCT + col0 * 56 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT col0 + - cor0.col1 * - col1 AS col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + col0 + ( col0 ) - cor0.col1 AS col1 FROM tab1 AS cor0
----
-20
118
147
onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT ALL col0 DIV + 97 + + col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9628
SELECT ALL col0 / + 97 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 * 35 + col2 FROM tab1 AS cor0
----
-2183
-2704
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 48 + 25 col1 FROM tab0 AS cor0
----
1177
1705
4297
onlyif mysql # use DIV operator for integer division
query I rowsort label-9631
SELECT tab2.col1 * col2 - col0 DIV - col0 AS col0 FROM tab2
----
1535
647
838
skipif mysql # not compatible
query I rowsort label-9631
SELECT tab2.col1 * col2 - col0 / - col0 AS col0 FROM tab2
----
1535
647
838
query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9633
SELECT + + cor1.col0 DIV + 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dcf0bdb0a33a97c73a81c5b823899d40
skipif mysql # not compatible
query I rowsort label-9633
SELECT + + cor1.col0 / + 29 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dcf0bdb0a33a97c73a81c5b823899d40
onlyif mysql # use DIV operator for integer division
query I rowsort label-9634
SELECT 70 DIV + col1 col2 FROM tab2 cor0
----
1
2
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9634
SELECT 70 / + col1 col2 FROM tab2 cor0
----
1
2
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9635
SELECT - - col2 DIV + ( - col0 ) FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9635
SELECT - - col2 / + ( - col0 ) FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + col1 + 19 FROM tab2 AS cor0
----
36
50
78
query I rowsort
SELECT ALL + ( 71 ) + col1 AS col1 FROM tab0 AS cor0
----
157
162
168
query I rowsort
SELECT col2 * col1 + col0 + + ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1553
708
813
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT + + col1 * col0 - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT + - 9 - + col1 * + col2 FROM tab0 AS cor0
----
-106
-2847
-7471
query I rowsort
SELECT DISTINCT - - 71 + col1 FROM tab2 AS cor0
----
102
130
88
query I rowsort
SELECT ALL 74 * + col0 + 55 FROM tab2 cor0
----
573
5827
5901
query I rowsort
SELECT ALL - - col0 * + 53 - - col1 AS col2 FROM tab1 AS cor0
----
185
3402
4253
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9645
SELECT + + CAST( col2 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort label-9645
SELECT + + CAST ( col2 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + ( 99 ) FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT + ( col1 ) - - col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + 99 * 37 FROM tab2 cor0
----
3663
3663
3663
query I rowsort
SELECT + col1 - cor0.col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + 54 * col2 * col1 FROM tab0 AS cor0
----
153338
403039
5335
query I rowsort
SELECT ALL - 2 * 82 AS col1 FROM tab1 AS cor0
----
-164
-164
-164
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * - ( + col0 ) + col0 * cor0.col2 col2 FROM tab1 AS cor0
----
-3
128
3280
query I rowsort
SELECT col1 + + col0 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT ALL + col0 + + 7 AS col2 FROM tab1
----
10
71
87
query I rowsort
SELECT 20 * cor0.col0 AS col2 FROM tab1 AS cor0
----
1280
1600
60
query I rowsort
SELECT - + col2 * 0 - col1 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 53 * + col1 + - cor0.col2 FROM tab2 AS cor0
----
-1670
-3153
-939
query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab0, tab0 AS cor0
----
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9659
SELECT ALL - 92 * ( - col1 ) * + CAST( NULL AS SIGNED ) + + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - 92 * ( - col1 ) * + CAST ( NULL AS INTEGER ) + + col2 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 98 + + col1 AS col2 FROM tab2 AS cor0
----
-39
-67
-81
query I rowsort
SELECT DISTINCT - + col1 * - col2 + + col0 * + 24 AS col0 FROM tab2 AS cor0
----
1005
2542
3406
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 * + cor0.col2 + - col2 col0 FROM tab1 AS cor0
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT - 36 DIV tab0.col2 + 65 * - col0 FROM tab0
----
-1561
-2311
-5785
skipif mysql # not compatible
query I rowsort label-9663
SELECT - 36 / tab0.col2 + 65 * - col0 FROM tab0
----
-1561
-2311
-5785
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9664
SELECT ALL + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 20 * 84 FROM tab1, tab2 AS cor0
----
9 values hashing to fc5539e66d1840234e3d8a4cecdd121e
query I rowsort
SELECT DISTINCT col2 * 94 FROM tab0
----
3102
7708
94
query I rowsort
SELECT ALL + 89 * - 2 FROM tab1, tab1 AS cor0
----
9 values hashing to 37bcc53ef7633ee53e59d399bacb8ffb
query I rowsort
SELECT DISTINCT col0 * + 59 AS col2 FROM tab0
----
1416
2065
5251
query I rowsort
SELECT DISTINCT - 7 FROM tab0, tab0 AS cor0
----
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9670
SELECT col1 + CAST( - col2 AS SIGNED ) FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-9670
SELECT col1 + CAST ( - col2 AS INTEGER ) FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9671
SELECT DISTINCT col2 + col2 DIV - 67 AS col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT col2 + col2 / - 67 AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT - col0 + + 83 FROM tab1
----
19
3
80
query I rowsort
SELECT ALL + + col1 + 84 * 80 AS col1 FROM tab1 AS cor0
----
6730
6733
6746
onlyif mysql # use DIV operator for integer division
query I rowsort label-9674
SELECT ALL col1 DIV col0 + col0 FROM tab0 AS cor0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL col1 / col0 + col0 FROM tab0 AS cor0
----
27
37
90
query I rowsort
SELECT - col0 + + 72 AS col1 FROM tab2 AS cor0
----
-6
-7
65
query I rowsort
SELECT DISTINCT - cor0.col0 + - ( + 46 ) FROM tab1 AS cor0
----
-110
-126
-49
query I rowsort
SELECT - col0 * - col2 + col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT DISTINCT + - col0 * col1 * col0 FROM tab0 cor0
----
-118825
-49536
-720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * + col0 col1 FROM tab1 cor0
----
24
583
944
query I rowsort
SELECT ALL - 80 FROM tab2, tab2 AS cor0
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680
query I rowsort
SELECT ALL - 89 * + col0 FROM tab1
----
-267
-5696
-7120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 col1 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT + - ( + 21 ) * col1 AS col0 FROM tab0 AS cor0
----
-1806
-1911
-2037
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 * + 80 col1 FROM tab0 AS cor0
----
-7360
-7360
-7360
query I rowsort
SELECT ALL + - 40 + - cor0.col2 + ( + cor0.col0 ) FROM tab2 cor0
----
-60
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 81 * tab0.col0 col0 FROM tab0
----
1944
2835
7209
query I rowsort
SELECT DISTINCT + col0 - + col1 * ( + col0 ) FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - col0 + - col0 * 71 AS col2 FROM tab1 cor0
----
-216
-4608
-5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT + col2 DIV 30 AS col0 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9689
SELECT + col2 / 30 AS col0 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT + + 91 AS col1 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL 79 * col2 * + 19 AS col1 FROM tab2
----
39026
40527
57038
query I rowsort
SELECT ( 15 ) * col2 * col1 + tab1.col2 + col2 AS col2 FROM tab1
----
18912
21168
8664
onlyif mysql # use DIV operator for integer division
query I rowsort label-9693
SELECT ALL + col1 DIV col2 + - col2 AS col1 FROM tab0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-9693
SELECT ALL + col1 / col2 + - col2 AS col1 FROM tab0
----
-31
-81
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9694
SELECT 38 + - 47 DIV col1 FROM tab1
----
34
35
37
skipif mysql # not compatible
query I rowsort label-9694
SELECT 38 + - 47 / col1 FROM tab1
----
34
35
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-9695
SELECT + cor0.col0 DIV 99 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9695
SELECT + cor0.col0 / 99 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - col1 * + 7 + col2 AS col1 FROM tab1 AS cor0
----
-128
-13
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9697
SELECT 56 DIV - col2 + + col2 * + CAST( col0 AS SIGNED ) - - col1 FROM tab1 AS cor0
----
187
3658
7693
skipif mysql # not compatible
query I rowsort label-9697
SELECT 56 / - col2 + + col2 * + CAST ( col0 AS INTEGER ) - - col1 FROM tab1 AS cor0
----
187
3658
7693
query I rowsort
SELECT - 3 + + col2 FROM tab0 AS cor0
----
-2
30
79
query I rowsort
SELECT ALL - ( col0 ) * 38 AS col2 FROM tab1 AS cor0
----
-114
-2432
-3040
query I rowsort
SELECT ALL - ( - cor0.col0 ) * - ( - col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT 99 + col1 * col2 * - 83 FROM tab2 AS cor0
----
-127223
-53519
-69372
query I rowsort
SELECT - cor0.col1 + col0 + + col2 AS col1 FROM tab2 cor0
----
100
3
45
query I rowsort
SELECT ALL + col2 + - cor0.col2 * + col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT 18 * + col0 AS col0 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT DISTINCT col2 * col2 * ( + col2 + col2 ) FROM tab2 cor0
----
109744
35152
39366
onlyif mysql # use DIV operator for integer division
query I rowsort label-9706
SELECT cor0.col1 + + cor0.col2 DIV col0 col2 FROM tab1 AS cor0
----
10
14
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9706
SELECT cor0.col1 + + cor0.col2 / col0 col2 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT + col1 * 9 AS col0 FROM tab1 cor0
----
117
234
90
query I rowsort
SELECT + + col0 + col1 * + ( col1 ) FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT ALL + col2 + col0 + + 7 FROM tab1 AS cor0
----
128
183
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9710
SELECT ALL + col0 + col0 DIV col1 AS col1 FROM tab2 AS cor0
----
7
79
83
skipif mysql # not compatible
query I rowsort label-9710
SELECT ALL + col0 + col0 / col1 AS col1 FROM tab2 AS cor0
----
7
79
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9711
SELECT ALL col1 DIV cor0.col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1249
1405
571
skipif mysql # not compatible
query I rowsort label-9711
SELECT ALL col1 / cor0.col1 + col1 * col2 AS col2 FROM tab1 AS cor0
----
1249
1405
571
query I rowsort
SELECT DISTINCT ( - 43 ) * col0 AS col1 FROM tab2 AS cor0
----
-301
-3354
-3397
query I rowsort
SELECT + + ( + col0 ) * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9714
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * cor0.col0 + - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * cor0.col0 + - col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 55 AS col1 FROM tab1 AS cor0
----
55
55
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9716
SELECT DISTINCT - 81 * + 15 - col2 DIV - cor0.col2 FROM tab0 AS cor0
----
-1214
skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT - 81 * + 15 - col2 / - cor0.col2 FROM tab0 AS cor0
----
-1214
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9717
SELECT ALL - 96 * - ( - col2 * CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9717
SELECT ALL - 96 * - ( - col2 * CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9718
SELECT + col2 DIV cor0.col0 - + col1 * cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-214
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9718
SELECT + col2 / cor0.col0 - + col1 * cor0.col0 col1 FROM tab2 AS cor0
----
-1343
-214
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9719
SELECT ALL - - col2 DIV + 32 col2 FROM tab2 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9719
SELECT ALL - - col2 / + 32 col2 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT - ( cor0.col1 ) * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + cor0.col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT tab1.col0 - 2 * - col0 AS col2 FROM tab1
----
192
240
9
query I rowsort
SELECT ALL + tab2.col2 * + 14 AS col1 FROM tab2
----
364
378
532
query I rowsort
SELECT DISTINCT col2 * + col2 - col0 AS col0 FROM tab0
----
-34
1065
6635
onlyif mysql # use DIV operator for integer division
query I rowsort label-9725
SELECT ALL - 36 + col1 DIV col0 FROM tab0 AS cor0
----
-33
-34
-35
skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL - 36 + col1 / col0 FROM tab0 AS cor0
----
-33
-34
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 39 ) * - cor0.col0 * - 87 + 11 col2 FROM tab2 AS cor0
----
-23740
-264643
-268036
query I rowsort
SELECT DISTINCT + 93 + + col0 AS col2 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT - 46 - 92 FROM tab0 AS cor0
----
-138
-138
-138
query I rowsort
SELECT ALL + cor0.col1 + - 95 AS col1 FROM tab2 AS cor0
----
-36
-64
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9730
SELECT ALL cor0.col1 * col1 + + col1 DIV col0 AS col1 FROM tab2 AS cor0
----
289
3481
965
skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL cor0.col1 * col1 + + col1 / col0 AS col1 FROM tab2 AS cor0
----
289
3481
965
query I rowsort
SELECT DISTINCT - ( col2 ) * ( col2 ) FROM tab1
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9732
SELECT DISTINCT + + col1 + + ( + 17 ) DIV col0 FROM tab1 AS cor0
----
10
13
31
skipif mysql # not compatible
query I rowsort label-9732
SELECT DISTINCT + + col1 + + ( + 17 ) / col0 FROM tab1 AS cor0
----
10
13
31
query I rowsort
SELECT 99 * col2 + + col1 * col2 FROM tab2 cor0
----
3510
4108
4408
onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT - + 2 DIV col2 AS col1 FROM tab0 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9734
SELECT - + 2 / col2 AS col1 FROM tab0 AS cor0
----
-2
0
0
query I rowsort
SELECT col0 + - col2 * + 36 * col2 FROM tab0 AS cor0
----
-1
-241975
-39180
query I rowsort
SELECT ALL tab2.col1 * + col0 * + col2 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - 87 + cor0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 0e3776c76c664cb08185c2ab45bf1c79
query I rowsort
SELECT ALL - col1 * 89 FROM tab0 cor0
----
-7654
-8099
-8633
query I rowsort
SELECT col0 * - 76 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT DISTINCT + ( col1 ) + + 48 FROM tab2 AS cor0
----
107
65
79
query I rowsort
SELECT DISTINCT - col1 * - cor0.col2 - col2 * col0 FROM tab1 AS cor0
----
-3078
-6432
1242
onlyif mysql # use DIV operator for integer division
query I rowsort label-9742
SELECT DISTINCT + col1 DIV - col1 - + col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9742
SELECT DISTINCT + col1 / - col1 - + col0 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT 44 AS col1 FROM tab2 cor0
----
44
44
44
query I rowsort
SELECT DISTINCT + ( col2 ) * - col1 + - col0 * col0 FROM tab1 cor0
----
-1413
-4666
-7648
query I rowsort
SELECT DISTINCT + - cor0.col2 + - col0 * col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT col1 * col1 - col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT + - col0 * + col2 - - col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + col1 * + col2 + col0 * - col2 + 40 AS col1 FROM tab0 cor0
----
102
204
2086
onlyif mysql # use DIV operator for integer division
query I rowsort label-9749
SELECT ALL cor0.col2 - - col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL cor0.col2 - - col2 / - col0 AS col2 FROM tab0 AS cor0
----
1
32
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9750
SELECT CAST( - col1 AS SIGNED ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-9750
SELECT CAST ( - col1 AS INTEGER ) * - col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9751
SELECT ALL - - col0 * col1 - col1 DIV + 69 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9751
SELECT ALL - - col0 * col1 - col1 / + 69 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9752
SELECT DISTINCT + + cor0.col2 DIV + col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-9752
SELECT DISTINCT + + cor0.col2 / + col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + - col2 + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT 94 * + cor0.col0 FROM tab0, tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT - ( col2 ) * col2 - col0 FROM tab2
----
-1523
-736
-754
query I rowsort
SELECT + 40 + col2 AS col2 FROM tab1
----
136
94
97
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 86 * cor0.col1 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d37849d551c3e612af02856f5e5e76f3
query I rowsort
SELECT DISTINCT - ( col2 ) * col2 AS col2 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - - 38 * col0 AS col0 FROM tab2 cor0
----
266
2964
3002
query I rowsort
SELECT col0 * 8 AS col0 FROM tab0
----
192
280
712
query I rowsort
SELECT ALL + 42 * col1 FROM tab2
----
1302
2478
714
query I rowsort
SELECT + col2 + col0 * col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 46 + col0 FROM tab2 cor0
----
124
125
53
query I rowsort
SELECT + 64 + - col1 FROM tab2 AS cor0
----
33
47
5
query I rowsort
SELECT col0 * + ( tab2.col1 + col0 ) AS col1 FROM tab2
----
10686
266
7584
query I rowsort
SELECT ALL col0 + - col0 * 41 FROM tab1
----
-120
-2560
-3200
query I rowsort
SELECT DISTINCT col2 * - col2 + + 80 FROM tab2
----
-1364
-596
-649
query I rowsort
SELECT col1 * + 60 + 34 * col0 FROM tab2
----
2098
3706
6192
query I rowsort
SELECT - col2 + col2 * + 77 + - col0 AS col0 FROM tab0 AS cor0
----
2484
41
6143
query I rowsort
SELECT DISTINCT + 40 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
40
query I rowsort
SELECT + col2 + - 11 * - col0 FROM tab2 AS cor0
----
104
884
907
query I rowsort
SELECT ALL + col0 + - ( + col2 ) FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL ( + col1 ) * - col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT cor0.col0 * - 38 AS col2 FROM tab1 cor0
----
-114
-2432
-3040
query I rowsort
SELECT - 5 + - col1 AS col1 FROM tab0 AS cor0
----
-102
-91
-96
query I rowsort
SELECT + + 34 * - col2 FROM tab1 AS cor0
----
-1836
-1938
-3264
query I rowsort
SELECT ALL 3 * - 76 AS col2 FROM tab0
----
-228
-228
-228
onlyif mysql # use DIV operator for integer division
query I rowsort label-9779
SELECT DISTINCT 19 DIV - 31 AS col2 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-9779
SELECT DISTINCT 19 / - 31 AS col2 FROM tab0 cor0
----
0
query I rowsort
SELECT + col0 + - col1 * - cor0.col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT ALL - col2 + ( + col0 ) FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT + col1 * 46 DIV col1 FROM tab0 AS cor0
----
46
46
46
skipif mysql # not compatible
query I rowsort label-9782
SELECT + col1 * 46 / col1 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT - 42 + + col0 AS col2 FROM tab0 AS cor0
----
-18
-7
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT + col1 * 16 * + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9784
SELECT + col1 * 16 * + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + col2 + - 16 * col2 FROM tab0
----
-1148
-14
-462
query I rowsort
SELECT col1 + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
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 - - col1 - 3 * - col0 AS col0 FROM tab1 AS cor0
----
202
253
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( cor0.col1 ) - - col0 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT col0 + tab1.col0 * col1 AS col1 FROM tab1
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col1 FROM tab1, tab1 cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT ( col1 ) + + tab1.col2 + + col1 AS col0 FROM tab1
----
106
122
77
query I rowsort
SELECT DISTINCT tab0.col1 * - col0 - + col1 * - col1 AS col2 FROM tab0
----
182
5332
6014
query I rowsort
SELECT + 29 + - col2 FROM tab1
----
-25
-28
-67
query I rowsort
SELECT 81 + 53 - col0 * + 52 FROM tab2
----
-230
-3922
-3974
query I rowsort
SELECT DISTINCT + 73 + - col0 FROM tab0
----
-16
38
49
query I rowsort
SELECT ALL - 50 - + 43 AS col0 FROM tab1 AS cor0
----
-93
-93
-93
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT col2 * + col0 - col1 * - 84 FROM tab1 cor0
----
2346
4488
8772
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9800
SELECT ALL CAST( + 24 AS SIGNED ) + - cor0.col2 FROM tab2 cor0
----
-14
-2
-3
skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL CAST ( + 24 AS INTEGER ) + - cor0.col2 FROM tab2 cor0
----
-14
-2
-3
query I rowsort
SELECT DISTINCT + col1 * - 37 - cor0.col2 AS col1 FROM tab0 AS cor0
----
-3215
-3449
-3590
query I rowsort
SELECT ALL ( - col2 ) * col0 - 14 FROM tab1 AS cor0
----
-176
-3662
-7694
query I rowsort
SELECT + col2 - 86 * col0 AS col1 FROM tab2 AS cor0
----
-575
-6682
-6756
query I rowsort
SELECT DISTINCT + col0 * - col2 + - col2 + - col0 FROM tab1
----
-219
-3769
-7856
onlyif mysql # use DIV operator for integer division
query I rowsort label-9805
SELECT ALL + - 55 DIV tab1.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to fe559105629ca441a243cb0e6bfecd30
skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL + - 55 / tab1.col0 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to fe559105629ca441a243cb0e6bfecd30
onlyif mysql # use DIV operator for integer division
query I rowsort label-9806
SELECT DISTINCT + cor0.col0 - cor0.col2 DIV - tab0.col0 AS col1 FROM tab0, tab2, tab2 AS cor0
----
7
78
79
8
80
skipif mysql # not compatible
query I rowsort label-9806
SELECT DISTINCT + cor0.col0 - cor0.col2 / - tab0.col0 AS col1 FROM tab0, tab2, tab2 AS cor0
----
7
78
79
8
80
query I rowsort
SELECT DISTINCT + tab2.col1 * col1 AS col2 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 * + col1 col2 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT col1 * - col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + cor0.col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9812
SELECT DISTINCT + - col2 + CAST( 38 AS SIGNED ) AS col2 FROM tab2 cor0
----
0
11
12
skipif mysql # not compatible
query I rowsort label-9812
SELECT DISTINCT + - col2 + CAST ( 38 AS INTEGER ) AS col2 FROM tab2 cor0
----
0
11
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * - ( + 70 ) col0 FROM tab2 AS cor0
----
-1190
-2170
-4130
query I rowsort
SELECT ALL + col1 * ( - col1 ) + - col1 AS col2 FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT ALL + - col2 + - col2 * - col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT col0 * + 95 FROM tab2 AS cor0
----
665
7410
7505
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + - cor1.col2 col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
-29
10
13
query I rowsort
SELECT cor0.col2 + ( 54 ) FROM tab2 cor0
----
80
81
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9819
SELECT + - col2 * ( col2 ) DIV + col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-9819
SELECT + - col2 * ( col2 ) / + col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + 72 AS col1 FROM tab1 AS cor0
----
72
72
72
query I rowsort
SELECT DISTINCT + 42 + - 4 * + col2 FROM tab1 AS cor0
----
-174
-186
-342
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9823
SELECT CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9823
SELECT CAST ( NULL AS REAL ) * col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col1 + + col2 * 63 AS col1 FROM tab0
----
160
2165
5257
query I rowsort
SELECT col2 * col2 - - tab2.col0 AS col1 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL - + 5 * - col2 AS col0 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT DISTINCT + + 27 + + cor0.col1 + col1 FROM tab2 cor0
----
145
61
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9828
SELECT ALL col0 DIV col0 - - col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL col0 / col0 - - col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + 40 * - col0 + - 31 AS col1 FROM tab2 AS cor0
----
-311
-3151
-3191
query I rowsort
SELECT DISTINCT 15 + - col2 FROM tab2 cor0
----
-11
-12
-23
query I rowsort
SELECT ALL - col2 * cor0.col0 + 62 + - col1 FROM tab1 AS cor0
----
-126
-3596
-7631
query I rowsort
SELECT ( - cor0.col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - ( col2 ) + cor0.col1 + 49 AS col1 FROM tab1 AS cor0
----
-34
2
21
query I rowsort
SELECT ALL + - 24 AS col0 FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT + + col1 * col0 + col0 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - + col1 * col1 + - ( + col1 ) * col0 AS col2 FROM tab2 AS cor0
----
-1178
-1632
-8083
query I rowsort
SELECT ALL - 93 * col1 FROM tab0 AS cor0
----
-7998
-8463
-9021
onlyif mysql # use DIV operator for integer division
query I rowsort label-9838
SELECT - cor0.col2 DIV col1 + col0 DIV 23 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-9838
SELECT - cor0.col2 / col1 + col0 / 23 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT ALL + 12 * 7 - tab2.col2 AS col0 FROM tab2
----
46
57
58
query I rowsort
SELECT ALL col1 - 19 FROM tab1
----
-6
-9
7
query I rowsort
SELECT ALL + + col2 * cor0.col2 + col0 - col0 * + col0 AS col1 FROM tab0 AS cor0
----
-1108
-1189
537
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 + - cor0.col1 col0 FROM tab1 AS cor0
----
-21
-24
-37
query I rowsort
SELECT 92 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT DISTINCT - tab2.col0 AS col0 FROM tab2, tab2 cor0, tab0, tab1 AS cor1
----
-7
-78
-79
query I rowsort
SELECT ALL 14 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
query I rowsort
SELECT - + ( 95 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT tab1.col0 + col0 * col1 * - col1 AS col2 FROM tab1
----
-13440
-2025
-6336
query I rowsort
SELECT ALL + tab2.col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL + col1 * + col0 * + col0 AS col0 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - + col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + + 82 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
18
2
79
query I rowsort
SELECT col0 + - col0 * col1 + + col0 FROM tab2
----
-1185
-203
-4446
onlyif mysql # use DIV operator for integer division
query I rowsort label-9854
SELECT ALL - 80 DIV col1 col1 FROM tab2
----
-1
-2
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL - 80 / col1 col1 FROM tab2
----
-1
-2
-4
query I rowsort
SELECT DISTINCT - - 95 + col2 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT cor0.col0 * + cor0.col1 * col2 + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
118976
49590
5130
query I rowsort
SELECT DISTINCT - col2 * col1 + + cor0.col1 * col1 FROM tab2 AS cor0
----
-357
124
1947
query I rowsort
SELECT 85 * - col1 + + col2 * - col0 FROM tab0 AS cor0
----
-15033
-8102
-8280
query I rowsort
SELECT + + cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + + col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + col2 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - - cor0.col1 * + col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL col0 + col2 - - col1 AS col0 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL col0 * + col0 FROM tab1 WHERE NOT NULL NOT IN ( - col2 )
----
query I rowsort
SELECT col2 + + col2 - col2 FROM tab2 WHERE NULL BETWEEN ( - col1 * + col0 ) AND ( - col0 )
----
query I rowsort
SELECT ALL col2 + - col1 - - col1 * col0 AS col0 FROM tab1
----
106
1123
687
query I rowsort
SELECT ALL - col0 + - tab0.col2 + + col1 FROM tab0
----
-80
29
61
query I rowsort
SELECT DISTINCT col2 * - col0 * - col0 AS col1 FROM tab1
----
233472
486
614400
query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 + col1 AS col2 FROM tab0
----
2174
3527
8279
query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT col0 + - col2 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT - col2 * col0 + col1 * tab2.col2 AS col0 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT ALL col1 * + col0 * col0 AS col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - tab2.col1 * + col1 AS col2 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + col2 * + col2 col2 FROM tab2
----
1352
1458
2888
query I rowsort
SELECT DISTINCT col1 + col1 * + tab0.col2 + col1 FROM tab0
----
291
3010
7644
query I rowsort
SELECT + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT col2 * tab0.col0 * - col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + tab2.col0 * col1 )
----
query I rowsort
SELECT DISTINCT + col2 + col1 * 43 FROM tab0 AS cor0
----
3731
3995
4172
query I rowsort
SELECT - - col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < + col2 / - col1
----
query I rowsort
SELECT col0 * col2 * col2 - tab2.col0 AS col1 FROM tab2
----
113997
5096
52650
query I rowsort
SELECT + 93 * + col2 FROM tab0 AS cor0
----
3069
7626
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9884
SELECT col1 + - col1 DIV tab2.col0 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-9884
SELECT col1 + - col1 / tab2.col0 FROM tab2
----
17
27
59
query I rowsort
SELECT DISTINCT - col2 * col0 / + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + col0 * col1 + - col2 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + col2 + + col1 * + col2 FROM tab1
----
1344
1458
627
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col1 * - col0 * col2 - col0 * col2 FROM tab1
----
32832
4050
92160
onlyif mysql # use DIV operator for integer division
query I rowsort label-9890
SELECT DISTINCT col0 DIV + col2 + - col2 * tab0.col2 AS col1 FROM tab0
----
-1089
-6723
34
skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT col0 / + col2 + - col2 * tab0.col2 AS col1 FROM tab0
----
-1089
-6723
34
query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE col2 + + col2 + col2 > NULL
----
query I rowsort
SELECT + col2 * + col1 + tab2.col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT + col1 + tab0.col1 AS col2 FROM tab0
----
172
182
194
query I rowsort
SELECT + tab1.col2 + + col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT ALL tab2.col0 * - col1 AS col0 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9897
SELECT col1 DIV - tab1.col0 - + col2 * + col2 FROM tab1
----
-2924
-3249
-9216
skipif mysql # not compatible
query I rowsort label-9897
SELECT col1 / - tab1.col0 - + col2 * + col2 FROM tab1
----
-2924
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT ALL col1 DIV + col1 - col2 AS col2 FROM tab0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL col1 / + col1 - col2 AS col2 FROM tab0
----
-32
-81
0
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9900
SELECT ALL col0 + cor0.col1 * col1 DIV + col0 AS col2 FROM tab2 cor0
----
122
144
82
skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL col0 + cor0.col1 * col1 / + col0 AS col2 FROM tab2 cor0
----
122
144
82
query I rowsort
SELECT col2 + col0 * col0 * col0 AS col0 FROM tab0
----
13857
42876
705051
query I rowsort
SELECT ALL - cor0.col2 + + cor0.col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT + cor0.col1 * - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9904
SELECT + cor0.col1 * - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9905
SELECT ALL col0 + - cor0.col1 DIV 34 AS col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL col0 + - cor0.col1 / 34 AS col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9906
SELECT ALL + 63 DIV col1 + + cor0.col1 FROM tab1 AS cor0
----
16
17
28
skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + 63 / col1 + + cor0.col1 FROM tab1 AS cor0
----
16
17
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 + col2 col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + + 40 FROM tab2, tab1, tab2 AS cor0
----
40
query I rowsort
SELECT DISTINCT + tab2.col0 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
7
78
79
query I rowsort
SELECT + col2 * 87 - + 72 * + tab1.col0 FROM tab1
----
2592
351
4482
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 52 * 73 col0 FROM tab0
----
3699
3705
3710
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 90 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to fab53aad9716f1e35030c90a50184bfc
skipif mysql # not compatible
query I rowsort
SELECT + col2 * CAST ( ( - col1 ) AS REAL ) + cor0.col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-15561
-3492
-4902
query I rowsort
SELECT + col1 * ( - col1 ) AS col1 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 * + col1 * - col0 col2 FROM tab1 AS cor0
----
-231
-40896
-83120
onlyif mysql # use DIV operator for integer division
query I rowsort label-9916
SELECT + + col2 DIV - col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-9916
SELECT + + col2 / - col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT col2 + 38 * cor0.col0 FROM tab0 AS cor0
----
1331
3464
945
query I rowsort
SELECT DISTINCT + col0 + - 7 AS col1 FROM tab0 AS cor0
----
17
28
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9919
SELECT DISTINCT - CAST( 70 AS SIGNED ) DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9919
SELECT DISTINCT - CAST ( 70 AS INTEGER ) / - cor0.col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - col2 * 62 - + col1 AS col1 FROM tab1 cor0
----
-3374
-3544
-5965
query I rowsort
SELECT ALL + - 82 * + col1 AS col0 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT 0 * col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col1 + + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT 52 + col2 * - col2 + 72 AS col1 FROM tab1
----
-2792
-3125
-9092
query I rowsort
SELECT DISTINCT col2 + - 54 + + col2 AS col0 FROM tab1
----
138
54
60
query I rowsort
SELECT ALL - col2 * col2 * + col2 + - col2 AS col0 FROM tab2
----
-17602
-19710
-54910
query I rowsort
SELECT ( ( + col0 ) ) + col2 FROM tab1
----
121
176
57
query I rowsort
SELECT - col0 + - 1 * col1 AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT col1 * 2 * col1 + - 32 * + col1 AS col0 FROM tab0
----
12040
13650
15714
query I rowsort
SELECT DISTINCT - col2 + ( col2 ) AS col2 FROM tab2
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9931
SELECT DISTINCT + CAST( col1 AS SIGNED ) + + col2 FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + + col2 FROM tab2
----
55
58
85
query I rowsort
SELECT 39 + col1 FROM tab0
----
125
130
136
query I rowsort
SELECT 44 * - col2 + col0 FROM tab2
----
-1066
-1181
-1593
query I rowsort
SELECT col2 * 55 AS col1 FROM tab0
----
1815
4510
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9935
SELECT + + CAST( + col2 AS SIGNED ) + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-9935
SELECT + + CAST ( + col2 AS INTEGER ) + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + 21 * + col1 AS col1 FROM tab2 cor0
----
1239
357
651
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + 9 + col1 AS col0 FROM tab0
----
100
106
95
query I rowsort
SELECT DISTINCT cor0.col1 * - 60 * - col2 AS col2 FROM tab2 AS cor0
----
38760
50220
92040
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 + - col1 + col2 * + ( 30 ) * col1 AS col0 FROM tab1 AS cor0
----
17090
37427
42094
onlyif mysql # use DIV operator for integer division
query I rowsort label-9942
SELECT ALL + + col2 DIV col0 col1 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL + + col2 / col0 col1 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + - 35 + + col2 FROM tab0 cor0
----
-2
-34
47
query I rowsort
SELECT DISTINCT - + cor0.col2 + + col1 * col1 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT DISTINCT col1 * col1 + - 17 AS col0 FROM tab1 AS cor0
----
152
659
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9946
SELECT ALL + + cor0.col2 DIV cor0.col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9946
SELECT ALL + + cor0.col2 / cor0.col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + 59 * col2 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT + cor0.col0 * + col1 * - 64 AS col1 FROM tab1 AS cor0
----
-40960
-4992
-66560
query I rowsort
SELECT DISTINCT + + 6 * cor0.col1 FROM tab0 AS cor0
----
516
546
582
query I rowsort
SELECT ALL + ( cor0.col1 ) + + col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT - + 80 * cor0.col0 FROM tab1 AS cor0
----
-240
-5120
-6400
query I rowsort
SELECT ALL col1 + col1 * + 67 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT + col2 * col2 * - 72 - col1 * - col0 AS col0 FROM tab0 AS cor0
----
-476029
-76344
3323
query I rowsort
SELECT DISTINCT - col0 - ( + col0 + col1 * - 97 ) FROM tab2 AS cor0
----
1491
2993
5567
query I rowsort
SELECT DISTINCT + col1 * col2 + - 2 FROM tab1 AS cor0
----
1246
1402
568
query I rowsort
SELECT col2 * + ( cor0.col0 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + - cor0.col2 + + ( - col1 ) FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT col1 * - ( 29 ) FROM tab2 AS cor0
----
-1711
-493
-899
query I rowsort
SELECT ALL + col1 * col0 * - cor0.col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - cor0.col2 + col0 + + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + col1 * col0 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT ALL - col2 + - col1 * + 55 FROM tab2 AS cor0
----
-1732
-3271
-973
onlyif mysql # use DIV operator for integer division
query I rowsort label-9963
SELECT + col1 * ( 95 ) DIV col1 + ( - col0 + col1 ) FROM tab2 AS cor0
----
119
33
76
skipif mysql # not compatible
query I rowsort label-9963
SELECT + col1 * ( 95 ) / col1 + ( - col0 + col1 ) FROM tab2 AS cor0
----
119
33
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-9964
SELECT DISTINCT col1 - + col2 DIV 21 AS col2 FROM tab2 cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT col1 - + col2 / 21 AS col2 FROM tab2 cor0
----
16
30
58
query I rowsort
SELECT - + col2 + cor0.col0 - + 37 FROM tab1 AS cor0
----
-30
-53
-88
query I rowsort
SELECT DISTINCT col0 + 24 * + col0 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT DISTINCT - col0 * 4 AS col1 FROM tab0 cor0
----
-140
-356
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT - col1 * col0 DIV - cor0.col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9968
SELECT - col1 * col0 / - cor0.col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - - 32 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
-224
-2496
-2528
query I rowsort
SELECT + 7 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to bd991c690468eea3ef45a96817ca3617
query I rowsort
SELECT ALL col2 + + 59 * ( - col2 ) AS col2 FROM tab2
----
-1508
-1566
-2204
query I rowsort
SELECT DISTINCT col0 * ( col1 ) - - col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + 90 + col2 AS col2 FROM tab0
----
123
172
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-9974
SELECT col0 * + tab0.col2 * + ( - col2 ) + + col0 + + col1 DIV 5 AS col0 FROM tab0
----
-26095
-598329
19
skipif mysql # not compatible
query I rowsort label-9974
SELECT col0 * + tab0.col2 * + ( - col2 ) + + col0 + + col1 / 5 AS col0 FROM tab0
----
-26095
-598329
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9975
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9975
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 * col1 col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL 53 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT DISTINCT 96 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
96
query I rowsort
SELECT DISTINCT col0 + + tab1.col0 * ( + 11 + - col2 ) FROM tab1
----
-126
-2880
-6720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 * - 48 col2 FROM tab1
----
-144
-3072
-3840
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col1 * col0 AS col0 FROM tab1 AS cor0
----
10256
2994
3889
query I rowsort
SELECT cor0.col2 * 36 AS col2 FROM tab2 cor0
----
1368
936
972
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9983
SELECT DISTINCT + cor0.col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT + cor0.col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT ALL + + col2 DIV col0 - col1 AS col2 FROM tab2 AS cor0
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-9984
SELECT ALL + + col2 / col0 - col1 AS col2 FROM tab2 AS cor0
----
-17
-28
-59
query I rowsort
SELECT - cor0.col0 * col1 + + col1 AS col0 FROM tab1 cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + + col0 + + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
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-9988
SELECT DISTINCT col1 + 3 DIV col0 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9988
SELECT DISTINCT col1 + 3 / col0 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col1 + - col2 * col0 AS col0 FROM tab2 AS cor0
----
-2087
-220
-3019
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1, tab0 AS cor2
----
13122 values hashing to 01f7a0553637ef49dd1cb634feec6dbf
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9992
SELECT - 58 * + col2 + CAST( col2 AS SIGNED ) - col0 * col1 FROM tab1 AS cor0
----
-3156
-3889
-6512
skipif mysql # not compatible
query I rowsort label-9992
SELECT - 58 * + col2 + CAST ( col2 AS INTEGER ) - col0 * col1 FROM tab1 AS cor0
----
-3156
-3889
-6512
onlyif mysql # use DIV operator for integer division
query I rowsort label-9993
SELECT + tab2.col2 * col1 DIV 34 AS col2 FROM tab2
----
19
24
45
skipif mysql # not compatible
query I rowsort label-9993
SELECT + tab2.col2 * col1 / 34 AS col2 FROM tab2
----
19
24
45
query I rowsort
SELECT + + 16 + - col0 FROM tab1 cor0
----
-48
-64
13
query I rowsort
SELECT 70 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT col2 + + col2 + col0 * cor0.col0 FROM tab0 cor0
----
1227
642
8085
query I rowsort
SELECT ALL 16 + col2 * cor0.col1 FROM tab0 AS cor0
----
113
2854
7478
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT - 0 * col2 FROM tab0
----
0
0
0