hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT cor0.col2 * - 91 FROM tab0 cor0
----
-3003
-7462
-91
query I rowsort
SELECT ALL col0 * - 93 * 75 AS col0 FROM tab0 AS cor0
----
-167400
-244125
-620775
query I rowsort
SELECT col1 + col2 * + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT + + col2 * col2 + + col1 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT ALL ( - col1 ) AS col0 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab2
----
53
query I rowsort
SELECT tab0.col0 + + 79 AS col1 FROM tab0
----
103
114
168
query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab2
----
7
query I rowsort
SELECT ALL - col0 + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + 3 AS col2 FROM tab2
----
3
3
3
query I rowsort
SELECT + + 61 * 22 + col1 AS col0 FROM tab2 cor0
----
1359
1373
1401
query I rowsort
SELECT 71 - col2 FROM tab1 AS cor0
----
-25
14
17
query I rowsort
SELECT ALL col1 * cor0.col0 + 38 FROM tab0 AS cor0
----
2102
3433
8137
onlyif mysql # use DIV operator for integer division
query I rowsort label-13
SELECT DISTINCT - cor0.col0 DIV col1 - + cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-13
SELECT DISTINCT - cor0.col0 / col1 - + cor0.col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col1 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + col0 * + col2 * - 66 + col2 FROM tab0 AS cor0
----
-2309
-481586
-52239
query I rowsort
SELECT - + col0 - - col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + 83 * - col0 FROM tab1 AS cor0
----
-249
-5312
-6640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + 87 + - col2 FROM tab0 cor0
----
5
54
86
query I rowsort
SELECT + + cor0.col0 * - col1 - 71 AS col2 FROM tab2 cor0
----
-1414
-288
-4673
query I rowsort
SELECT ALL + + 70 * + col2 AS col0 FROM tab0 AS cor0
----
2310
5740
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-22
SELECT DISTINCT 58 + col2 DIV ( ( cor0.col1 ) ) FROM tab2 AS cor0
----
58
60
skipif mysql # not compatible
query I rowsort label-22
SELECT DISTINCT 58 + col2 / ( ( cor0.col1 ) ) FROM tab2 AS cor0
----
58
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-23
SELECT - col0 + + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0
skipif mysql # not compatible
query I rowsort label-23
SELECT - col0 + + col0 / col2 AS col2 FROM tab0 AS cor0
----
-24
-88
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-24
SELECT - 16 - col0 DIV + 20 AS col1 FROM tab0 AS cor0
----
-17
-17
-20
skipif mysql # not compatible
query I rowsort label-24
SELECT - 16 - col0 / + 20 AS col1 FROM tab0 AS cor0
----
-17
-17
-20
query I rowsort
SELECT DISTINCT - - col2 - col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col1 col2 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT 22 - col1 AS col2 FROM tab0 AS cor0
----
-64
-69
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-28
SELECT DISTINCT 77 DIV - col2 AS col2 FROM tab0 cor0
----
-2
-77
0
skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT 77 / - col2 AS col2 FROM tab0 cor0
----
-2
-77
0
query I rowsort
SELECT col1 + 85 * - col0 FROM tab0
----
-1954
-2878
-7474
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * - col2 + + tab2.col0 * + ( col2 ) * - col2 col2 FROM tab2
----
-112746
-4158
-51818
query I rowsort
SELECT - col2 + - 43 FROM tab0
----
-125
-44
-76
query I rowsort
SELECT DISTINCT 54 * - 70 + + cor2.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
-3684
-3723
-3726
onlyif mysql # use DIV operator for integer division
query I rowsort label-33
SELECT DISTINCT - ( col2 ) * col2 DIV + col0 AS col1 FROM tab2 AS cor0
----
-104
-18
-8
skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT - ( col2 ) * col2 / + col0 AS col1 FROM tab2 AS cor0
----
-104
-18
-8
query I rowsort
SELECT ALL - col2 * - col1 + - 40 + - col2 AS col2 FROM tab1 AS cor0
----
1112
1310
473
query I rowsort
SELECT DISTINCT - - ( - col0 ) * - ( 39 ) - col2 * - col0 FROM tab2 AS cor0
----
462
5070
6083
query I rowsort
SELECT - ( col1 ) + 77 AS col1 FROM tab0 AS cor0
----
-14
-20
-9
query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - 21 * col1 + 43 AS col0 FROM tab0 AS cor0
----
-1763
-1868
-1994
query I rowsort
SELECT - - col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + ( col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + 37 + col0 AS col1 FROM tab1 AS cor0
----
101
117
40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-42
SELECT ALL + col2 * - col1 + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
skipif mysql # not compatible
query I rowsort label-42
SELECT ALL + col2 * - col1 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL - - 61 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1037
-1891
-3599
query I rowsort
SELECT DISTINCT cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - 52 + col2 FROM tab2 AS cor0
----
-14
-25
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-46
SELECT ALL - cor0.col0 DIV 75 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-46
SELECT ALL - cor0.col0 / 75 col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
query I rowsort
SELECT col2 * col0 + - 76 FROM tab1 cor0
----
3572
7604
86
query I rowsort
SELECT ALL col0 + 90 * + col2 FROM tab1 AS cor0
----
4863
5194
8720
query I rowsort
SELECT - + col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT - - col1 + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - col2 * col2 * col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT + col2 - - col2 AS col0 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT ALL + + col2 * 2 + - 19 * col2 DIV 97 FROM tab2 AS cor0
----
47
49
69
skipif mysql # not compatible
query I rowsort label-53
SELECT ALL + + col2 * 2 + - 19 * col2 / 97 FROM tab2 AS cor0
----
47
49
69
query I rowsort
SELECT + col1 * + ( 35 * - cor0.col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-261261
-3492
-99416
query I rowsort
SELECT DISTINCT - col0 - + 15 AS col2 FROM tab2 AS cor0
----
-22
-93
-94
query I rowsort
SELECT ALL - col1 + 95 * - col2 * col2 FROM tab0 AS cor0
----
-103541
-192
-638871
query I rowsort
SELECT ALL + - col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-58
SELECT CAST( NULL AS SIGNED ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-58
SELECT CAST ( NULL AS INTEGER ) + - cor0.col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-59
SELECT 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-59
SELECT CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 + col0 * + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT + - col2 + col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT + - col2 + col0 * cor0.col0 FROM tab2 cor0
----
22
6058
6203
query I rowsort
SELECT ALL cor0.col1 + - col0 * col0 * - col0 AS col2 FROM tab2 AS cor0
----
374
474611
493056
query I rowsort
SELECT DISTINCT + col1 + + col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT + 64 AS col0 FROM tab2 AS cor0
----
64
64
64
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to fe55095fff3a5ecc2f113d14a8c6f823
query I rowsort
SELECT + 39 + - 78 * - col1 AS col1 FROM tab0 AS cor0
----
6747
7137
7605
query I rowsort
SELECT 79 + col0 AS col1 FROM tab0 AS cor0
----
103
114
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-70
SELECT ALL + 94 DIV - tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a534bbbcdec1dd0eb2e391c9b7f6bf44
skipif mysql # not compatible
query I rowsort label-70
SELECT ALL + 94 / - tab0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a534bbbcdec1dd0eb2e391c9b7f6bf44
query I rowsort
SELECT ALL - 65 AS col0 FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT - col2 + 27 FROM tab1 AS cor0
----
-27
-30
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + - 19 * col0 col1 FROM tab0 AS cor0
----
-1773
-489
-666
query I rowsort
SELECT + 86 + 10 * col2 FROM tab1 AS cor0
----
1046
626
656
query I rowsort
SELECT DISTINCT - tab1.col2 + col0 * col1 + col1 * + ( ( col0 ) + tab1.col0 * col0 ) FROM tab1
----
336
42183
85184
query I rowsort
SELECT - + 32 + - col0 FROM tab1 AS cor0
----
-112
-35
-96
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - 26 * col0 FROM tab0 cor0
----
-2314
-624
-910
query I rowsort
SELECT - col0 * - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT - 80 * col2 FROM tab0
----
-2640
-6560
-80
query I rowsort
SELECT - col0 * - 28 FROM tab1
----
1792
2240
84
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 23 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
598
621
874
query I rowsort
SELECT + 39 * - col0 AS col0 FROM tab1
----
-117
-2496
-3120
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col0 FROM tab2
----
0
query I rowsort
SELECT 34 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT - col1 * ( - 36 ) FROM tab0
----
3096
3276
3492
query I rowsort
SELECT DISTINCT col0 * + 18 FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT + cor0.col1 * - 77 + 48 * col2 * col2 + - col1 * col2 FROM tab2 AS cor0
----
26371
31768
67357
query I rowsort
SELECT ALL - - col1 + - col1 + col1 * + col0 * - 47 FROM tab1 AS cor0
----
-30080
-3666
-48880
query I rowsort
SELECT - col2 * ( - tab1.col1 ) FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-91
SELECT ALL - col2 DIV 54 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-91
SELECT ALL - col2 / 54 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col2 col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + col0 * col2 AS col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT DISTINCT + col2 + - col0 DIV + tab1.col2 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-94
SELECT DISTINCT + col2 + - col0 / + tab1.col2 FROM tab1
----
54
56
96
query I rowsort
SELECT col0 * + tab0.col2 + - col2 + col2 * tab0.col2 AS col2 FROM tab0
----
13940
1848
35
query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col1 * col1 * + col0 FROM tab0
----
177504
329315
737009
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + col2 >= NULL
----
query I rowsort
SELECT - col0 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-100
SELECT ALL col1 * col0 * col1 + tab2.col0 DIV - col0 + + col0 FROM tab2
----
22909
271595
6733
skipif mysql # not compatible
query I rowsort label-100
SELECT ALL col1 * col0 * col1 + tab2.col0 / - col0 + + col0 FROM tab2
----
22909
271595
6733
query I rowsort
SELECT ALL col1 + - col0 * col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col0 + + cor0.col2 * - col2 * - col2 AS col0 FROM tab0 AS cor0
----
35961
36
551457
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT DISTINCT col1 + cor0.col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT col2 * col1 + col1 FROM tab2 AS cor0 WHERE NOT col1 * col0 / + col2 > ( NULL )
----
query I rowsort
SELECT - col0 + - col0 + - col2 FROM tab2 AS cor0
----
-182
-196
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-107
SELECT + col0 * cor0.col1 + col0 DIV - col1 + + col2 AS col2 FROM tab1 AS cor0
----
1130
132
691
skipif mysql # not compatible
query I rowsort label-107
SELECT + col0 * cor0.col1 + col0 / - col1 + + col2 AS col2 FROM tab1 AS cor0
----
1130
132
691
query I rowsort
SELECT ALL col2 * col1 + col1 - col2 FROM tab2
----
1567
625
841
query I rowsort
SELECT ALL col1 - col1 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-110
SELECT ALL + col2 - col2 DIV + col1 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + col2 - col2 / + col1 FROM tab1
----
52
52
89
query I rowsort
SELECT + - col1 * + col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col1 * col1 col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT ALL - col0 + + col1 * cor0.col0 * col1 FROM tab2 AS cor0
----
22752
271440
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-114
SELECT DISTINCT - cor0.col0 DIV + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-114
SELECT DISTINCT - cor0.col0 / + cor0.col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT - - col1 + - col1 * + col2 + col2 FROM tab2 AS cor0
----
-1449
-591
-779
onlyif mysql # use DIV operator for integer division
query I rowsort label-116
SELECT - col2 * - col1 DIV - col1 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
24
583
944
skipif mysql # not compatible
query I rowsort label-116
SELECT - col2 * - col1 / - col1 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 col1 FROM tab2 cor0
----
-41
-52
20
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col1 / + col2 ) > col2 / col1 OR NOT ( NULL ) <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-119
SELECT - col0 DIV col1 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
163
676
94
skipif mysql # not compatible
query I rowsort label-119
SELECT - col0 / col1 + - col1 * - col1 AS col0 FROM tab1 AS cor0
----
163
676
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT col1 DIV + col0 AS col1 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-120
SELECT col1 / + col0 AS col1 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + col1 * col2 * col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT + + 76 + col2 AS col1 FROM tab1 AS cor0
----
130
133
172
query I rowsort
SELECT + 66 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col0 + cor0.col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-128
SELECT col0 DIV + col0 - - col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-128
SELECT col0 / + col0 - - col0 FROM tab2 AS cor0
----
79
8
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-129
SELECT ALL col1 + col2 DIV col2 AS col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-129
SELECT ALL col1 + col2 / col2 AS col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + + col0 * col0 - 87 AS col1 FROM tab0 AS cor0
----
1138
489
7834
query I rowsort
SELECT - - col2 + col0 + col0 * + 9 * - col0 AS col2 FROM tab1 AS cor0
----
-24
-36743
-57424
query I rowsort
SELECT ALL col0 * + col0 + tab2.col2 * - col1 FROM tab2 WHERE NOT NULL IN ( - col1 + - col0 / col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-133
SELECT col2 DIV - col2 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-133
SELECT col2 / - col2 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - - col2 + + col2 AS col0 FROM tab0 cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 * + col2 col0 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL + 27 FROM tab1, tab0 AS cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL + col1 - col1 * tab1.col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT ALL + cor0.col1 * 25 AS col2 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT - col1 + - 53 FROM tab1 AS cor0
----
-63
-66
-79
query I rowsort
SELECT - col0 * col2 + - col1 + - col2 FROM tab2 AS cor0
----
-2113
-247
-3057
query I rowsort
SELECT DISTINCT - col0 + 38 AS col1 FROM tab1 AS cor0
----
-26
-42
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-142
SELECT ALL - col1 - + col2 * ( col0 ) DIV + col0 AS col0 FROM tab1
----
-109
-67
-80
skipif mysql # not compatible
query I rowsort label-142
SELECT ALL - col1 - + col2 * ( col0 ) / + col0 AS col0 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + col1 * col0 + 5 FROM tab1
----
1045
645
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-144
SELECT + tab1.col2 DIV - col2 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-144
SELECT + tab1.col2 / - col2 AS col2 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT ALL - 40 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
query I rowsort
SELECT ALL 25 + - col0 AS col0 FROM tab1
----
-39
-55
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-147
SELECT DISTINCT - col2 DIV - col0 + + col2 * + col2 AS col0 FROM tab1
----
2934
3249
9217
skipif mysql # not compatible
query I rowsort label-147
SELECT DISTINCT - col2 / - col0 + + col2 * + col2 AS col0 FROM tab1
----
2934
3249
9217
query I rowsort
SELECT ALL tab2.col1 + - col2 * tab2.col1 * + tab2.col2 AS col2 FROM tab2
----
-22568
-24531
-39825
query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL col2 * col0 + + col1 AS col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT + tab2.col0 * col2 + + tab2.col1 * + col1 * + col0 FROM tab2
----
25833
273546
6916
query I rowsort
SELECT ALL col2 + tab0.col1 AS col0 FROM tab0 WHERE ( + col1 ) IN ( col1 )
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - tab2.col2 col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT - tab1.col0 + - tab1.col1 AS col1 FROM tab1
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-155
SELECT + col2 DIV - tab1.col1 AS col0 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-155
SELECT + col2 / - tab1.col1 AS col0 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT - col0 * + tab0.col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT tab2.col1 * - col1 + - col2 FROM tab2
----
-327
-3507
-988
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > NULL
----
query I rowsort
SELECT - col2 * - tab2.col2 AS col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL col2 * col1 + tab2.col1 AS col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL + col1 + - col1 * - col0 AS col2 FROM tab0 WHERE - col2 NOT BETWEEN col1 AND NULL
----
2150
3492
8190
query I rowsort
SELECT - col2 + col2 * + col2 * - col1 AS col0 FROM tab1
----
-119904
-32547
-75870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + col0 )
----
query I rowsort
SELECT ALL col1 + col0 AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT + col1 * tab0.col2 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col0 * - col0 FROM tab2 WHERE NOT ( NULL ) IN ( col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) <> col0 + col1 + + tab0.col0
----
query I rowsort
SELECT DISTINCT 88 FROM tab1, tab2 cor0, tab2 AS cor1
----
88
query I rowsort
SELECT col2 * - 5 AS col0 FROM tab1 cor0
----
-270
-285
-480
query I rowsort
SELECT + + col0 * ( - 65 ) FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT - - col1 * + col1 * + 94 AS col1 FROM tab1 cor0
----
15886
63544
9400
query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + - col1 * col2 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-174
SELECT + + cor0.col1 + col2 * cor0.col2 DIV + col0 FROM tab1 cor0
----
128
60
998
skipif mysql # not compatible
query I rowsort label-174
SELECT + + cor0.col1 + col2 * cor0.col2 / + col0 FROM tab1 cor0
----
128
60
998
onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT 42 + + col0 DIV ( - 95 + col1 * - 92 ) AS col2 FROM tab0
----
42
42
42
skipif mysql # not compatible
query I rowsort label-175
SELECT 42 + + col0 / ( - 95 + col1 * - 92 ) AS col2 FROM tab0
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-176
SELECT DISTINCT + col2 DIV - col0 + ( col0 ) col2 FROM tab0
----
23
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-176
SELECT DISTINCT + col2 / - col0 + ( col0 ) col2 FROM tab0
----
23
35
89
query I rowsort
SELECT ALL + 50 + cor0.col2 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to b9742db8b1bf309580788cf7f58b30d4
query I rowsort
SELECT col2 * - 60 AS col0 FROM tab2 AS cor0
----
-1560
-1620
-2280
onlyif mysql # use DIV operator for integer division
query I rowsort label-179
SELECT ALL col0 DIV 61 AS col2 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-179
SELECT ALL col0 / 61 AS col2 FROM tab2
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-180
SELECT + col2 DIV col0 AS col1 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-180
SELECT + col2 / col0 AS col1 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT - - col0 * col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT 11 AS col1 FROM tab1 AS cor0
----
11
11
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-183
SELECT 23 DIV 19 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-183
SELECT 23 / 19 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL 69 + + 48 * + col2 AS col0 FROM tab0
----
117
1653
4005
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-185
SELECT ALL - CAST( NULL AS SIGNED ) + - 20 col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-185
SELECT ALL - CAST ( NULL AS INTEGER ) + - 20 col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + cor0.col2 * - col0 AS col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT 54 * col2 FROM tab1 AS cor0
----
2916
3078
5184
onlyif mysql # use DIV operator for integer division
query I rowsort label-189
SELECT ALL col1 DIV col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-189
SELECT ALL col1 / col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL cor0.col0 * - col0 + 89 FROM tab0 AS cor0
----
-1136
-487
-7832
query I rowsort
SELECT ALL + - 29 * col2 AS col1 FROM tab0 AS cor0
----
-2378
-29
-957
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col2 ) * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 92 * - cor0.col1 FROM tab1 AS cor0
----
-1196
-2392
-920
query I rowsort
SELECT + col0 * col1 * 47 + - col1 * cor0.col2 FROM tab1 AS cor0
----
2262
29510
47632
query I rowsort
SELECT DISTINCT + - col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * + col1 + + col1 * col1 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL - cor0.col2 * col0 * col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL + - col1 - + col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + col0 + - col0 * ( col1 ) FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT + 44 AS col2 FROM tab2
----
44
44
44
query I rowsort
SELECT - 85 * 75 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 9c20e523737285944621328c520edf0e
query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab1
----
-19
query I rowsort
SELECT + 32 AS col2 FROM tab1
----
32
32
32
query I rowsort
SELECT 74 * - col0 FROM tab0
----
-1776
-2590
-6586
query I rowsort
SELECT + col2 - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + ( + col0 ) AS col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col1 FROM tab2, tab0 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT 51 * + tab2.col1 FROM tab2
----
1581
3009
867
query I rowsort
SELECT col1 + + 56 * col0 AS col2 FROM tab1 AS cor0
----
194
3594
4493
query I rowsort
SELECT col0 + - col2 * col2 + col2 FROM tab0
----
-1032
-6553
35
query I rowsort
SELECT + col0 * + ( - col1 * - col2 ) + col2 FROM tab1 cor0
----
36537
4266
99936
query I rowsort
SELECT - col0 * 2 - - cor0.col1 AS col2 FROM tab0 AS cor0
----
-87
27
38
query I rowsort
SELECT + 32 AS col2 FROM tab0
----
32
32
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 + col0 col1 FROM tab1
----
6
67
83
query I rowsort
SELECT + + col1 + + 40 * - col1 AS col1 FROM tab1 AS cor0
----
-1014
-390
-507
onlyif mysql # use DIV operator for integer division
query I rowsort label-218
SELECT - col2 - col0 DIV col0 col1 FROM tab0 AS cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-218
SELECT - col2 - col0 / col0 col1 FROM tab0 AS cor0
----
-2
-34
-83
query I rowsort
SELECT - + col1 + - col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT - + col1 * col0 * ( col1 * col2 + + 20 ) FROM tab1 AS cor0
----
-111072
-1318720
-377600
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-222
SELECT - CAST( NULL AS SIGNED ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-222
SELECT - CAST ( NULL AS INTEGER ) * + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL ( 41 ) * col1 * 10 FROM tab1 AS cor0
----
10660
4100
5330
query I rowsort
SELECT DISTINCT ( 45 ) FROM tab1
----
45
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
13122 values hashing to 891dbaa6d00e0efb189794b2f1d51209
query I rowsort
SELECT + col2 + 4 * col1 AS col2 FROM tab0 AS cor0
----
377
389
446
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-228
SELECT + - CAST( - col2 AS SIGNED ) * col0 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
skipif mysql # not compatible
query I rowsort label-228
SELECT + - CAST ( - col2 AS INTEGER ) * col0 * col1 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col2 * 7 AS col2 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT + + 30 * col0 FROM tab0 cor0
----
1050
2670
720
query I rowsort
SELECT + + col2 * + cor0.col2 + - 21 * + col1 AS col2 FROM tab0 AS cor0
----
-2036
-717
4813
query I rowsort
SELECT ALL 21 AS col1 FROM tab2
----
21
21
21
query I rowsort
SELECT ALL + 87 * + cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 43e812f295563e16ec5f372043a8e684
query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT DISTINCT col1 + - 94 DIV col1 + 84 * col1 AS col2 FROM tab0 AS cor0
----
7309
7734
8245
skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT col1 + - 94 / col1 + 84 * col1 AS col2 FROM tab0 AS cor0
----
7309
7734
8245
query I rowsort
SELECT ALL + ( + col0 ) * col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT col2 + col2 * cor0.col0 - - ( - col2 ) * - col0 FROM tab2 AS cor0
----
405
4082
6042
query I rowsort
SELECT ALL 84 * 74 FROM tab1 AS cor0
----
6216
6216
6216
query I rowsort
SELECT DISTINCT - + col2 * 28 AS col2 FROM tab0 AS cor0
----
-2296
-28
-924
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-240
SELECT DISTINCT col2 * - col0 + + col0 / CAST( NULL AS SIGNED ) + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT col2 * - col0 + + col0 / CAST ( NULL AS INTEGER ) + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-241
SELECT CAST( - col0 AS SIGNED ) + cor0.col0 * + ( 30 ) AS col2 FROM tab2 AS cor0
----
203
2262
2291
skipif mysql # not compatible
query I rowsort label-241
SELECT CAST ( - col0 AS INTEGER ) + cor0.col0 * + ( 30 ) AS col2 FROM tab2 AS cor0
----
203
2262
2291
query I rowsort
SELECT ALL col1 + - 4 * + col2 FROM tab2 cor0
----
-135
-45
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-243
SELECT DISTINCT - - 36 + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
37
38
39
skipif mysql # not compatible
query I rowsort label-243
SELECT DISTINCT - - 36 + col1 / + col0 AS col2 FROM tab0 AS cor0
----
37
38
39
query I rowsort
SELECT ALL + 18 AS col2 FROM tab1 AS cor0
----
18
18
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col2 col0 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-246
SELECT tab1.col2 DIV - 29 AS col2 FROM tab1
----
-1
-1
-3
skipif mysql # not compatible
query I rowsort label-246
SELECT tab1.col2 / - 29 AS col2 FROM tab1
----
-1
-1
-3
query I rowsort
SELECT + 83 * cor0.col2 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d647270f445f65eebc96e7be978dcd0b
query I rowsort
SELECT col0 * - col2 * + col0 + - tab1.col2 AS col0 FROM tab1
----
-233529
-540
-614496
query I rowsort
SELECT + ( 82 ) * col2 * - tab1.col1 AS col2 FROM tab1
----
-102336
-115128
-46740
query I rowsort
SELECT tab1.col2 * col0 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - - ( + col1 ) * col2 + - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - + 59 * col0 FROM tab2 AS cor0
----
-413
-4602
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-253
SELECT ( 86 ) DIV col2 AS col0 FROM tab0
----
1
2
86
skipif mysql # not compatible
query I rowsort label-253
SELECT ( 86 ) / col2 AS col0 FROM tab0
----
1
2
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-254
SELECT DISTINCT CAST( + 18 AS SIGNED ) * - col0 + col0 + - col1 FROM tab0
----
-1604
-494
-692
skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT CAST ( + 18 AS INTEGER ) * - col0 + col0 + - col1 FROM tab0
----
-1604
-494
-692
query I rowsort
SELECT tab1.col1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL + col2 + - 76 AS col1 FROM tab1 AS cor0
----
-19
-22
20
query I rowsort
SELECT ALL tab2.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col0 col1 FROM tab1, tab0 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 * + 14 FROM tab1 AS cor0
----
-1120
-42
-896
query I rowsort
SELECT ALL 1 FROM tab1, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-261
SELECT col0 DIV col2 + col1 * - col0 AS col0 FROM tab1
----
-1040
-639
-78
skipif mysql # not compatible
query I rowsort label-261
SELECT col0 / col2 + col1 * - col0 AS col0 FROM tab1
----
-1040
-639
-78
query I rowsort
SELECT ALL - col2 * ( col0 ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT col0 DIV col1 FROM tab1 cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-263
SELECT col0 / col1 FROM tab1 cor0
----
0
6
6
query I rowsort
SELECT DISTINCT + cor0.col0 * 1 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-265
SELECT ALL col0 * CAST( - col0 AS SIGNED ) + - col1 * 61 FROM tab0 AS cor0
----
-13472
-5822
-7142
skipif mysql # not compatible
query I rowsort label-265
SELECT ALL col0 * CAST ( - col0 AS INTEGER ) + - col1 * 61 FROM tab0 AS cor0
----
-13472
-5822
-7142
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to d2c0c94b38e721d8cf9f7df226475a2f
query I rowsort
SELECT DISTINCT - - col2 * + 93 + 85 FROM tab1 AS cor0
----
5107
5386
9013
query I rowsort
SELECT ALL - - col1 + ( + cor0.col0 ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col0 * + col2 - + 91 AS col0 FROM tab0 AS cor0
----
-56
701
7207
query I rowsort
SELECT ALL + col1 + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col0 + 21 AS col1 FROM tab0 AS cor0
----
110
45
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + col2 + + col2 + col2 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT + + col1 + - col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - col0 * - ( + ( col0 ) ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + cor0.col2 + col2 * col0 * - cor0.col0 FROM tab2 cor0
----
-1296
-158158
-237120
query I rowsort
SELECT - - col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 53 AS col0 FROM tab1 AS cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-280
SELECT DISTINCT col0 + - col2 DIV - col2 - + ( + col0 ) * cor0.col1 col2 FROM tab1 AS cor0
----
-575
-74
-959
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT col0 + - col2 / - col2 - + ( + col0 ) * cor0.col1 col2 FROM tab1 AS cor0
----
-575
-74
-959
query I rowsort
SELECT + + col1 AS col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-282
SELECT ALL + col2 * col2 + - col2 DIV 6 + 84 * + col1 AS col1 FROM tab1 AS cor0
----
10292
4080
5091
skipif mysql # not compatible
query I rowsort label-282
SELECT ALL + col2 * col2 + - col2 / 6 + 84 * + col1 AS col1 FROM tab1 AS cor0
----
10292
4080
5091
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( - col1 AS REAL ) + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL 19 + col1 * col1 AS col2 FROM tab1 AS cor0
----
119
188
695
query I rowsort
SELECT DISTINCT - col0 + col1 * + col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT + + 44 * ( col2 ) + 77 FROM tab0 AS cor0
----
121
1529
3685
query I rowsort
SELECT ALL - + col1 * col1 + col2 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL + + ( + 43 ) + - col2 AS col2 FROM tab1 AS cor0
----
-11
-14
-53
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT - 15 + - 76 DIV - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to bf164d3c3155caa81004626b301c6cc6
skipif mysql # not compatible
query I rowsort label-290
SELECT - 15 + - 76 / - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to bf164d3c3155caa81004626b301c6cc6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * - col0 col1 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT DISTINCT - col0 + 63 - col1 FROM tab1 AS cor0
----
-11
-30
34
query I rowsort
SELECT DISTINCT 62 FROM tab2, tab2 AS cor0
----
62
query I rowsort
SELECT ALL + + col0 + + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - - 3 + col0 FROM tab2 AS cor0
----
10
81
82
query I rowsort
SELECT ALL - 68 * col2 * + col2 AS col0 FROM tab2 AS cor0
----
-45968
-49572
-98192
query I rowsort
SELECT ALL + col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 * - col1 AS col0 FROM tab1 cor0
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-299
SELECT ALL + - 90 DIV cor0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-299
SELECT ALL + - 90 / cor0.col1 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT DISTINCT 15 + - col2 * + col1 AS col2 FROM tab2 cor0
----
-1519
-631
-822
query I rowsort
SELECT - - col0 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 + tab0.col2 + 19 col0 FROM tab0
----
-34
-77
10
query I rowsort
SELECT 50 * - col1 AS col1 FROM tab2
----
-1550
-2950
-850
query I rowsort
SELECT ALL + + col0 * col0 - 57 FROM tab0 AS cor0
----
1168
519
7864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col1 + - tab1.col1 FROM tab1
----
0
query I rowsort
SELECT 57 + col0 AS col0 FROM tab2
----
135
136
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col2 + col0 * 27 + + 95 AS col1 FROM tab1
----
1880
230
2351
query I rowsort
SELECT - 57 * + col2 + 91 FROM tab0
----
-1790
-4583
34
query I rowsort
SELECT ALL + ( - col1 ) * col0 + - 89 AS col1 FROM tab2 AS cor0
----
-1432
-306
-4691
query I rowsort
SELECT - col2 * col0 + + col2 + 48 * - 82 FROM tab0 AS cor0
----
-11152
-3970
-4695
query I rowsort
SELECT ALL + cor0.col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col0 * - 41 + + col2 * - col1 - col1 FROM tab2 AS cor0
----
-1155
-3902
-4791
onlyif mysql # use DIV operator for integer division
query I rowsort label-315
SELECT 85 * - 35 + - col1 DIV - col1 FROM tab1 AS cor0
----
-2974
-2974
-2974
skipif mysql # not compatible
query I rowsort label-315
SELECT 85 * - 35 + - col1 / - col1 FROM tab1 AS cor0
----
-2974
-2974
-2974
query I rowsort
SELECT + 70 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-317
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col2 * 26 FROM tab2 AS cor0
----
1005
733
735
skipif mysql # not compatible
query I rowsort label-317
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col2 * 26 FROM tab2 AS cor0
----
1005
733
735
query I rowsort
SELECT - col0 * - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT col1 + - 34 * tab2.col2 FROM tab2
----
-1275
-825
-887
query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab0
----
46
query I rowsort
SELECT 8 * col2 AS col0 FROM tab2
----
208
216
304
query I rowsort
SELECT DISTINCT + 48 AS col0 FROM tab1, tab2 cor0
----
48
query I rowsort
SELECT tab1.col1 * - cor0.col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 81a8fcf7518fbae07bfeaffb3ad3a436
query I rowsort
SELECT DISTINCT - col2 * - 54 * col0 FROM tab2 cor0
----
10206
109512
162108
query I rowsort
SELECT DISTINCT - - col2 * + 0 + cor0.col0 * + col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + + cor0.col0 * ( col0 ) AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL col2 + ( + col1 ) AS col0 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - cor0.col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + 56 AS col2 FROM tab1
----
56
56
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT ALL tab0.col2 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-331
SELECT ALL tab0.col2 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 54 FROM tab0
----
-54
-54
-54
query I rowsort
SELECT DISTINCT + col1 * - col0 * + 6 + tab0.col1 FROM tab0
----
-12298
-20273
-48503
query I rowsort
SELECT ALL tab0.col0 * 22 + col1 + + col1 AS col0 FROM tab0
----
2140
700
964
query I rowsort
SELECT + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - + cor0.col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-338
SELECT col2 * + CAST( 28 AS SIGNED ) FROM tab1 AS cor0
----
1512
1596
2688
skipif mysql # not compatible
query I rowsort label-338
SELECT col2 * + CAST ( 28 AS INTEGER ) FROM tab1 AS cor0
----
1512
1596
2688
query I rowsort
SELECT ALL col0 * - ( + 84 ) AS col1 FROM tab1 AS cor0
----
-252
-5376
-6720
query I rowsort
SELECT + cor0.col0 * ( 94 + - col1 ) AS col0 FROM tab2 AS cor0
----
2730
441
6083
query I rowsort
SELECT ALL col0 + col0 * ( col1 ) FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL + 41 FROM tab0, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT - ( - 36 ) FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to e09b197365a04fabbaaf0718d2ae88c5
query I rowsort
SELECT - 45 + col1 AS col1 FROM tab1 AS cor0
----
-19
-32
-35
query I rowsort
SELECT - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 38 + col1 - col2 FROM tab0 AS cor0
----
134
47
91
query I rowsort
SELECT 95 * col2 * - col1 + 11 * - cor0.col0 FROM tab2 AS cor0
----
-146588
-62239
-79592
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 28 + col1 col0 FROM tab1 AS cor0
----
48
54
80
query I rowsort
SELECT + ( + col0 ) + cor0.col2 * + col1 AS col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT + 18 + - col0 AS col0 FROM tab0 AS cor0
----
-17
-6
-71
query I rowsort
SELECT - - ( + ( col1 ) ) + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - - ( + 9 ) + + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9da53ec035f7f7fd77cb8d7ea828f1aa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-353
SELECT DISTINCT + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-353
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-354
SELECT DISTINCT + col1 * - col0 + - ( 10 ) DIV - cor0.col2 FROM tab0 AS cor0
----
-2064
-3385
-8099
skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT + col1 * - col0 + - ( 10 ) / - cor0.col2 FROM tab0 AS cor0
----
-2064
-3385
-8099
query I rowsort
SELECT ALL + 84 * col1 - 58 AS col2 FROM tab0 AS cor0
----
7166
7586
8090
query I rowsort
SELECT + 71 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT ALL - 60 * - col1 AS col0 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT DISTINCT col0 + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col0 * - col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL tab2.col0 FROM tab2, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL - + col1 * - cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + col2 col0 FROM tab2 AS cor0
----
1430
1485
2090
query I rowsort
SELECT cor0.col2 * 4 AS col2 FROM tab0 AS cor0
----
132
328
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-364
SELECT - col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-364
SELECT - col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 * cor0.col2 * 42 AS col0 FROM tab1 AS cor0
----
122472
136458
387072
onlyif mysql # use DIV operator for integer division
query I rowsort label-367
SELECT + col2 DIV - col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-367
SELECT + col2 / - col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT ALL 90 * - col1 + - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1250
-2343
-964
query I rowsort
SELECT ALL - 85 FROM tab2 cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT + + 73 * + col1 FROM tab2 cor0
----
1241
2263
4307
query I rowsort
SELECT + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 72 col1 FROM tab2
----
1872
1944
2736
query I rowsort
SELECT DISTINCT - ( + col1 ) + 51 FROM tab0 AS cor0
----
-35
-40
-46
query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT + col1 DIV + ( - col2 ) - col0 AS col1 FROM tab0 AS cor0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-375
SELECT + col1 / + ( - col2 ) - col0 AS col1 FROM tab0 AS cor0
----
-132
-26
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 65 col0 FROM tab0 AS cor0
----
5590
5915
6305
query I rowsort
SELECT ALL 96 * - col0 * 97 AS col0 FROM tab0
----
-223488
-325920
-828768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 20 col2 FROM tab0, tab0 cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT - 36 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
query I rowsort
SELECT - ( + 61 ) * - cor0.col1 AS col1 FROM tab0 AS cor0
----
5246
5551
5917
query I rowsort
SELECT DISTINCT + ( + col0 ) + + col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT ALL 65 + + tab1.col2 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to aa82ab7cf1c92c3cb5ac637aa0663aff
query I rowsort
SELECT - 64 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 11a0bc70e08dac4e49bd0140a49d04fb
query I rowsort
SELECT 82 AS col1 FROM tab1
----
82
82
82
query I rowsort
SELECT - 42 + - 4 FROM tab2
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-386
SELECT ALL ( col0 + col1 ) DIV 26 AS col0 FROM tab2
----
1
3
5
skipif mysql # not compatible
query I rowsort label-386
SELECT ALL ( col0 + col1 ) / 26 AS col0 FROM tab2
----
1
3
5
query I rowsort
SELECT + ( col1 ) * col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - 24 * - col0 + + col0 AS col2 FROM tab0
----
2225
600
875
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-389
SELECT + CAST( col1 AS SIGNED ) * col2 + col1 * 26 FROM tab1
----
1586
2080
830
skipif mysql # not compatible
query I rowsort label-389
SELECT + CAST ( col1 AS INTEGER ) * col2 + col1 * 26 FROM tab1
----
1586
2080
830
query I rowsort
SELECT ALL ( - col2 ) * - col0 + col0 * col0 FROM tab0 AS cor0
----
1260
1368
15219
onlyif mysql # use DIV operator for integer division
query I rowsort label-391
SELECT DISTINCT + 69 - cor1.col0 DIV + cor1.col2 col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
34
68
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT + 69 - cor1.col0 / + cor1.col2 col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
34
68
69
query I rowsort
SELECT + 55 + col0 AS col2 FROM tab0 AS cor0
----
144
79
90
query I rowsort
SELECT ALL + 7 FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to bd991c690468eea3ef45a96817ca3617
query I rowsort
SELECT 41 AS col0 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT ALL + - 38 AS col0 FROM tab0 AS cor0
----
-38
-38
-38
query I rowsort
SELECT - - col1 * 73 FROM tab2 cor0
----
1241
2263
4307
query I rowsort
SELECT ALL + + ( + cor0.col1 ) + - col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL - 82 * + col0 + col1 AS col2 FROM tab2
----
-543
-6337
-6461
query I rowsort
SELECT DISTINCT - + 32 FROM tab0 AS cor0
----
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT DISTINCT + 22 + + col2 DIV 77 AS col1 FROM tab2 AS cor0
----
22
skipif mysql # not compatible
query I rowsort label-400
SELECT DISTINCT + 22 + + col2 / 77 AS col1 FROM tab2 AS cor0
----
22
query I rowsort
SELECT + 17 + - col1 AS col2 FROM tab2
----
-14
-42
0
query I rowsort
SELECT ALL + ( + tab0.col0 * ( col0 ) ) AS col2 FROM tab0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT ALL + - 41 + - col2 DIV ( - col0 ) FROM tab0 AS cor0
----
-40
-41
-41
skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + - 41 + - col2 / ( - col0 ) FROM tab0 AS cor0
----
-40
-41
-41
query I rowsort
SELECT ALL - col1 * cor0.col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL + ( col2 ) + - ( - 23 ) AS col1 FROM tab1 AS cor0
----
119
77
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 56 col0 FROM tab0
----
-23
-55
26
query I rowsort
SELECT ALL - col2 + col1 AS col0 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col1 FROM tab2
----
14
156
158
query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col2 + + col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL col0 * col1 + + col2 AS col1 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + 43 FROM tab1, tab0 AS cor0
----
43
query I rowsort
SELECT - 78 FROM tab2, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT ALL + + col0 * - col2 * 43 - cor0.col0 * col1 FROM tab2 AS cor0
----
-130429
-8344
-91806
onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT DISTINCT - col0 - - ( 0 ) DIV col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT - col0 - - ( 0 ) / col1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col1 * - col0 - col0 * + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col0 - + 68 AS col1 FROM tab0 AS cor0
----
-33
-44
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-418
SELECT - col0 - - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-418
SELECT - col0 - - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - ( - col0 ) + col2 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-420
SELECT DISTINCT CAST( col2 AS SIGNED ) * col0 + ( 90 ) * - col2 AS col0 FROM tab0 cor0
----
-2178
-55
-82
skipif mysql # not compatible
query I rowsort label-420
SELECT DISTINCT CAST ( col2 AS INTEGER ) * col0 + ( 90 ) * - col2 AS col0 FROM tab0 cor0
----
-2178
-55
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-421
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-423
SELECT DISTINCT - CAST( col0 AS SIGNED ) + - cor0.col0 + + col1 FROM tab2 cor0
----
-141
-97
17
skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + - cor0.col0 + + col1 FROM tab2 cor0
----
-141
-97
17
query I rowsort
SELECT + col0 + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-425
SELECT ALL - col0 DIV - 98 + - cor0.col0 - + col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-425
SELECT ALL - col0 / - 98 + - cor0.col0 - + col2 AS col2 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-426
SELECT DISTINCT + CAST( - col2 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-426
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 + 57 AS col2 FROM tab0 AS cor0
----
143
148
154
query I rowsort
SELECT ALL - cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + - col1 AS col2 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - + 27 + + 90 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1288
639
7984
query I rowsort
SELECT DISTINCT + 82 * + col0 + col1 - + ( - 19 ) * - cor0.col2 FROM tab0 cor0
----
1427
2948
5831
query I rowsort
SELECT col2 * col1 + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - - 69 AS col0 FROM tab0 AS cor0
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-434
SELECT ALL - CAST( col2 AS SIGNED ) * col0 - + 20 DIV - col1 FROM tab1 AS cor0
----
-162
-3646
-7679
skipif mysql # not compatible
query I rowsort label-434
SELECT ALL - CAST ( col2 AS INTEGER ) * col0 - + 20 / - col1 FROM tab1 AS cor0
----
-162
-3646
-7679
query I rowsort
SELECT + 8 * col1 + - col1 FROM tab0 AS cor0
----
602
637
679
query I rowsort
SELECT ALL + 14 AS col1 FROM tab2, tab1, tab2 AS cor0, tab0
----
81 values hashing to 742ac5d81e64168a26fbd2bc8c808eff
query I rowsort
SELECT DISTINCT col2 * col0 * + col0 + - col2 * - col2 * 54 AS col2 FROM tab2
----
194688
315134
40689
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-438
SELECT DISTINCT CAST( col1 AS SIGNED ) col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-438
SELECT DISTINCT CAST ( col1 AS INTEGER ) col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-439
SELECT - - col1 DIV - 76 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-439
SELECT - - col1 / - 76 + col2 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + + col0 * + 30 FROM tab1 AS cor0
----
1920
2400
90
query I rowsort
SELECT ( col2 ) + - col0 AS col2 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-442
SELECT DISTINCT - - col0 DIV + cor0.col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-442
SELECT DISTINCT - - col0 / + cor0.col2 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-443
SELECT DISTINCT + CAST( NULL AS SIGNED ) * 58 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * 58 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-444
SELECT col1 DIV - ( + 11 ) + col2 FROM tab0
----
-7
26
74
skipif mysql # not compatible
query I rowsort label-444
SELECT col1 / - ( + 11 ) + col2 FROM tab0
----
-7
26
74
query I rowsort
SELECT col0 + - 73 FROM tab2
----
-66
5
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-446
SELECT DISTINCT + col1 + 89 DIV - 70 AS col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT + col1 + 89 / - 70 AS col2 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL - col2 + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-448
SELECT ALL col1 + CAST( + col2 + + col1 AS SIGNED ) * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-10451
-3809
-4294
skipif mysql # not compatible
query I rowsort label-448
SELECT ALL col1 + CAST ( + col2 + + col1 AS INTEGER ) * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-10451
-3809
-4294
query I rowsort
SELECT 69 FROM tab2, tab1 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab2, tab2 cor2
----
3645 values hashing to bb6428239bf7f3ea361f6a10500a581d
query I rowsort
SELECT - + ( col2 ) - - col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 15 FROM tab2 AS cor0
----
-15
-15
-15
query I rowsort
SELECT + col0 - + col2 AS col0 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-454
SELECT + col1 DIV + col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-454
SELECT + col1 / + col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-455
SELECT - CAST( col0 * + col1 AS SIGNED ) FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-455
SELECT - CAST ( col0 * + col1 AS INTEGER ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + 14 AS col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-457
SELECT ALL - col0 + - col2 / CAST( NULL AS SIGNED ) + col1 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-457
SELECT ALL - col0 + - col2 / CAST ( NULL AS INTEGER ) + col1 * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - cor0.col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - - 69 AS col0 FROM tab1 cor0
----
69
69
69
query I rowsort
SELECT - col0 * col0 * ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + 27 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT DISTINCT + 61 * + col2 AS col1 FROM tab0 AS cor0
----
2013
5002
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-463
SELECT DISTINCT - col2 DIV col0 FROM tab2 AS cor0
----
-3
0
skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT - col2 / col0 FROM tab2 AS cor0
----
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-464
SELECT + - col0 + col2 DIV + ( col2 ) AS col2 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-464
SELECT + - col0 + col2 / + ( col2 ) AS col2 FROM tab1 AS cor0
----
-2
-63
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-465
SELECT + col2 + CAST( + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-465
SELECT + col2 + CAST ( + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT col1 * + 26 FROM tab0 AS cor0
----
2236
2366
2522
query I rowsort
SELECT ALL - + cor0.col2 * col0 + + ( cor0.col1 + - col0 ) FROM tab0 AS cor0
----
-7296
-730
27
query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab2
----
30
query I rowsort
SELECT ALL tab0.col0 * col0 AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + col0 + + col2 * + col0 * col2 FROM tab1
----
208000
737360
8751
query I rowsort
SELECT - col2 * 64 * + col2 FROM tab1 AS cor0
----
-186624
-207936
-589824
query I rowsort
SELECT - col1 + - tab1.col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT col2 + - col0 * cor0.col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - col0 * - col0 - col0 * - col0 AS col2 FROM tab0
----
1152
15842
2450
query I rowsort
SELECT DISTINCT + cor0.col1 AS col0 FROM tab2, tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-478
SELECT - col2 DIV - col1 col2 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-478
SELECT - col2 / - col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 * 43 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT + - 27 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
onlyif mysql # use DIV operator for integer division
query I rowsort label-481
SELECT cor0.col0 DIV 2 FROM tab1 AS cor0
----
1
32
40
skipif mysql # not compatible
query I rowsort label-481
SELECT cor0.col0 / 2 FROM tab1 AS cor0
----
1
32
40
query I rowsort
SELECT + + col2 * 23 AS col2 FROM tab0 cor0
----
1886
23
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-483
SELECT ALL - col0 * col2 DIV + col0 + col0 * - 66 + col0 FROM tab2 AS cor0
----
-482
-5096
-5173
skipif mysql # not compatible
query I rowsort label-483
SELECT ALL - col0 * col2 / + col0 + col0 * - 66 + col0 FROM tab2 AS cor0
----
-482
-5096
-5173
query I rowsort
SELECT ALL 33 + - ( + col2 ) - + cor0.col2 FROM tab1 AS cor0
----
-159
-75
-81
query I rowsort
SELECT ALL col2 * 44 FROM tab0
----
1452
3608
44
query I rowsort
SELECT DISTINCT + 33 * + cor0.col1 * + col1 + col0 + cor0.col1 FROM tab0 AS cor0
----
244178
273453
310629
query I rowsort
SELECT DISTINCT 23 * + ( col2 ) + 15 AS col0 FROM tab1 cor0
----
1257
1326
2223
query I rowsort
SELECT ALL + + 47 FROM tab1 AS cor0
----
47
47
47
query I rowsort
SELECT DISTINCT + + col2 + 21 AS col2 FROM tab0 AS cor0
----
103
22
54
query I rowsort
SELECT + - ( col0 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + col0 + 64 FROM tab0 AS cor0
----
153
88
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-492
SELECT ALL col2 * 47 + col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-492
SELECT ALL col2 * 47 + col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 32 AS col2 FROM tab1
----
320
416
832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-494
SELECT ALL col1 * + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-494
SELECT ALL col1 * + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT 50 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # use DIV operator for integer division
query I rowsort label-496
SELECT col2 + - col2 DIV + 16 AS col2 FROM tab2 AS cor0
----
25
26
36
skipif mysql # not compatible
query I rowsort label-496
SELECT col2 + - col2 / + 16 AS col2 FROM tab2 AS cor0
----
25
26
36
query I rowsort
SELECT + col1 + + col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT DISTINCT 88 FROM tab2, tab0 AS cor0
----
88
query I rowsort
SELECT 88 AS col1 FROM tab1
----
88
88
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 col0 FROM tab0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - ( ( - col1 ) ) + tab2.col0 AS col0 FROM tab2
----
137
38
96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0, tab1 cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT DISTINCT + 22 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
22
query I rowsort
SELECT + - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col0 * - cor0.col0 + 93 FROM tab2 AS cor0
----
-5991
-6148
44
query I rowsort
SELECT + col1 + col0 * - col2 AS col1 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - col2 - - col2 * - col0 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT col2 * + tab0.col2 + + col2 AS col0 FROM tab0
----
1122
2
6806
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE ( NULL ) > NULL
----
query I rowsort
SELECT tab1.col0 + - col0 * + col2 AS col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT + col1 + tab2.col2 FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-513
SELECT col2 DIV + tab1.col2 + tab1.col0 * + col1 AS col2 FROM tab1
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-513
SELECT col2 / + tab1.col2 + tab1.col0 * + col1 AS col2 FROM tab1
----
1041
641
79
query I rowsort
SELECT + col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - col0 * + col1 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT DISTINCT + cor0.col1 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-516
SELECT DISTINCT + cor0.col1 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT DISTINCT + + col2 * + col0 + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL + - col2 + col0 * col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + cor0.col1 + + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + col1 * cor0.col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL col2 * col1 + - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + + cor0.col0 * + col0 * - col0 FROM tab2 AS cor0
----
-343
-474552
-493039
query I rowsort
SELECT DISTINCT - - cor0.col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + cor0.col2 - - col0 * col1 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT ALL + col1 DIV - col1 + + col0 * col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + col1 / - col1 + + col0 * col1 FROM tab1 AS cor0
----
1039
639
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-527
SELECT DISTINCT - col2 * col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT - col2 * col1 / - col1 AS col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + - col2 * col1 * cor0.col1 + cor0.col1 * - col0 AS col2 FROM tab2 AS cor0
----
-12325
-26164
-95108
query I rowsort
SELECT + col0 + cor0.col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - + col2 - - col0 FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-531
SELECT + 29 DIV - col1 + - cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1042
-642
-79
skipif mysql # not compatible
query I rowsort label-531
SELECT + 29 / - col1 + - cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1042
-642
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-532
SELECT + 33 + cor0.col2 DIV col0 AS col2 FROM tab0 AS cor0
----
33
33
34
skipif mysql # not compatible
query I rowsort label-532
SELECT + 33 + cor0.col2 / col0 AS col2 FROM tab0 AS cor0
----
33
33
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT col2 * + col2 + col1 + + col2 * col2 * cor0.col0 FROM tab0 AS cor0
----
133
27311
605251
query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - + col0 - + col0 * cor0.col0 FROM tab2 cor0
----
-56
-6162
-6320
query I rowsort
SELECT + + col1 - - cor0.col2 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + 12 + + col2 FROM tab0 AS cor0
----
13
45
94
query I rowsort
SELECT + col2 + + col1 * - col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL - - col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + 79 AS col1 FROM tab0 AS cor0
----
79
query I rowsort
SELECT + + 4 * - col0 FROM tab0 cor0
----
-140
-356
-96
query I rowsort
SELECT + - col1 * + col2 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + + cor0.col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + + col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 11 + - col1 + col0 FROM tab1
----
-12
65
78
query I rowsort
SELECT DISTINCT col0 * col1 + + tab1.col1 FROM tab1
----
104
1053
650
query I rowsort
SELECT ( col0 ) - tab0.col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab2.col0 * col1 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col1 * col0 + - col0 AS col1 FROM tab1
----
576
75
960
query I rowsort
SELECT col1 + + col1 * col1 AS col2 FROM tab1
----
110
182
702
query I rowsort
SELECT - col0 / - tab0.col2 + - col2 * + col1 * - col0 FROM tab0 WHERE ( col0 * tab0.col0 / + tab0.col0 ) IN ( - col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) NOT BETWEEN col0 * col1 AND tab0.col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col1 * col2 + - col2 + col2 * - col1 AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT tab1.col2 * col1 + tab1.col1 - + col2 AS col1 FROM tab1
----
1165
1376
523
query I rowsort
SELECT ALL + col0 * col0 AS col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT col2 + col1 + col0 FROM tab0
----
133
143
262
query I rowsort
SELECT - col0 * col1 * col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT col1 * col2 AS col2 FROM tab0 WHERE - col0 + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT tab1.col0 * + col2 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab0 WHERE col0 - + col1 NOT IN ( tab0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-563
SELECT DISTINCT - col0 * tab0.col1 DIV - col1 AS col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT - col0 * tab0.col1 / - col1 AS col1 FROM tab0
----
24
35
89
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 / + col2 ) <> col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT col1 + + col1 + col1 AS col2 FROM tab0
----
258
273
291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * tab2.col1 col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT col1 * col1 - + col1 AS col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT ALL - col1 * col2 * - col2 AS col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - col1 FROM tab0 WHERE NULL IN ( col2 + - col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + col2 * col1 + tab1.col2 AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT - col2 * col1 * col2 AS col2 FROM tab1
----
-119808
-32490
-75816
query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col1 >= NULL
----
query I rowsort
SELECT DISTINCT col1 + - tab1.col0 * col0 * col2 AS col2 FROM tab1
----
-233462
-460
-614387
query I rowsort
SELECT - tab2.col1 * - col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT NULL IN ( tab1.col1 + + col1 )
----
query I rowsort
SELECT tab1.col0 + - col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col0 FROM tab2, tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT - col1 = col0 * + col0
----
3
64
80
query I rowsort
SELECT DISTINCT - col1 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col1 + + col0 + - col2 FROM tab1
----
-25
-3
17
query I rowsort
SELECT DISTINCT - col1 + - col2 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL - col0 * tab1.col2 * col2 FROM tab1
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-584
SELECT col2 DIV - col0 + + col0 AS col1 FROM tab2
----
4
78
79
skipif mysql # not compatible
query I rowsort label-584
SELECT col2 / - col0 + + col0 AS col1 FROM tab2
----
4
78
79
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( col0 * + col2 * col2 )
----
query I rowsort
SELECT ALL - tab2.col0 * col1 * col1 AS col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT + col0 * col0 + col0 FROM tab1
----
12
4160
6480
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT DISTINCT + col0 * + col0 * col2 AS col2 FROM tab1
----
233472
486
614400
query I rowsort
SELECT + col1 - col2 * col2 * col0 FROM tab2 AS cor0
----
-114059
-5072
-52669
query I rowsort
SELECT ALL + col0 + - col2 * col1 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 * col1 + col0 * col1 AS col2 FROM tab0 AS cor0
----
122220
51600
728910
query I rowsort
SELECT col1 - - col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + cor0.col0 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - + ( - col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - tab1.col0 AS col1 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
81 values hashing to 08e380e50b0cb64601bc84e5254deef4
query I rowsort
SELECT - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 col2 FROM tab2
----
56
56
56
query I rowsort
SELECT DISTINCT + cor0.col1 + 71 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
81
84
97
query I rowsort
SELECT DISTINCT + 30 AS col1 FROM tab0, tab1 cor0
----
30
query I rowsort
SELECT 77 AS col2 FROM tab2
----
77
77
77
query I rowsort
SELECT - 75 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col2 FROM tab1
----
58
58
58
query I rowsort
SELECT ALL + - cor0.col1 * - col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col2 * + col0 + col2 AS col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT 96 + + col2 FROM tab2 AS cor0
----
122
123
134
onlyif mysql # use DIV operator for integer division
query I rowsort label-608
SELECT - tab1.col2 + + ( tab1.col1 ) DIV tab1.col0 + 32 AS col2 FROM tab1
----
-14
-25
-64
skipif mysql # not compatible
query I rowsort label-608
SELECT - tab1.col2 + + ( tab1.col1 ) / tab1.col0 + 32 AS col2 FROM tab1
----
-14
-25
-64
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 DISTINCT col0 + - ( 22 ) * - col2 col2 FROM tab2
----
601
650
915
query I rowsort
SELECT - - col2 + cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT + - col1 - 69 AS col1 FROM tab1 AS cor0
----
-79
-82
-95
query I rowsort
SELECT + col0 * ( 59 ) FROM tab1
----
177
3776
4720
query I rowsort
SELECT DISTINCT col2 * 42 * + col2 AS col1 FROM tab2
----
28392
30618
60648
query I rowsort
SELECT DISTINCT - col2 * - ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - - col2 + + 28 + - 97 FROM tab0 AS cor0
----
-36
-68
13
query I rowsort
SELECT ALL 1 + 1 FROM tab2 AS cor0
----
2
2
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT DISTINCT + 78 DIV col2 + col0 FROM tab0 AS cor0
----
113
26
89
skipif mysql # not compatible
query I rowsort label-618
SELECT DISTINCT + 78 / col2 + col0 FROM tab0 AS cor0
----
113
26
89
query I rowsort
SELECT ALL - col2 * + cor0.col2 + col0 * - 85 AS col0 FROM tab1 AS cor0
----
-16016
-3171
-8689
query I rowsort
SELECT ALL + 96 + ( cor0.col0 + 38 ) * + col1 FROM tab1 AS cor0
----
1116
1162
1630
query I rowsort
SELECT DISTINCT - 99 * - col1 AS col0 FROM tab2 AS cor0
----
1683
3069
5841
query I rowsort
SELECT ALL + cor2.col2 + + 74 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 cor2
----
243 values hashing to a9a7f91ed8d2859ee287d5dd9d77e977
query I rowsort
SELECT ALL + col2 * 67 AS col1 FROM tab2 AS cor0
----
1742
1809
2546
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-624
SELECT CAST( NULL AS SIGNED ) * col2 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-624
SELECT CAST ( NULL AS INTEGER ) * col2 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-625
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col1 + cor0.col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-625
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col1 + cor0.col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-626
SELECT - 19 DIV col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-626
SELECT - 19 / col1 + - col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT col0 * + 66 + col1 * col0 AS col0 FROM tab0
----
13973
3648
5705
query I rowsort
SELECT + + 50 + 56 FROM tab1 AS cor0
----
106
106
106
query I rowsort
SELECT + ( - ( - col1 ) ) * + 3 + - col2 AS col0 FROM tab1 AS cor0
----
-27
-57
24
query I rowsort
SELECT tab0.col1 + col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + 53 + + col0 AS col1 FROM tab2
----
131
132
60
query I rowsort
SELECT ALL + 83 FROM tab0, tab1 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT - col1 * col2 + col1 * + col2 + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 68 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE NULL = NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-636
SELECT + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-636
SELECT + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col2 col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + + 34 + - col0 AS col2 FROM tab2 AS cor0
----
-44
-45
27
query I rowsort
SELECT DISTINCT cor0.col2 + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL - 84 - - col2 FROM tab0 AS cor0
----
-2
-51
-83
query I rowsort
SELECT - 33 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to bbc05afe7eb6fed16e9d75f7f74d1948
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * col0 col1 FROM tab1
----
-213
-4544
-5680
query I rowsort
SELECT DISTINCT 68 AS col2 FROM tab1 cor0
----
68
query I rowsort
SELECT col1 + + col1 * - 49 * col1 FROM tab0 cor0
----
-362318
-405678
-460944
query I rowsort
SELECT ALL + + 70 AS col2 FROM tab2 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 56 + col0 FROM tab1 AS cor0
----
120
136
59
query I rowsort
SELECT ALL 91 AS col0 FROM tab0
----
91
91
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-649
SELECT - cor0.col0 + + ( col2 ) + col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-649
SELECT - cor0.col0 + + ( col2 ) + col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * - col0 - - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - - col2 + - col1 + col2 AS col1 FROM tab2 AS cor0
----
-7
23
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-652
SELECT col1 DIV cor0.col2 + col0 + col1 * col0 * col2 FROM tab1 AS cor0
----
36544
4215
99920
skipif mysql # not compatible
query I rowsort label-652
SELECT col1 / cor0.col2 + col0 + col1 * col0 * col2 FROM tab1 AS cor0
----
36544
4215
99920
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * - CAST ( col0 AS REAL ) * cor0.col2 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-654
SELECT - col1 DIV ( - col1 ) - + col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-654
SELECT - col1 / ( - col1 ) - + col1 FROM tab1 AS cor0
----
-12
-25
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT - - cor0.col1 - + col2 DIV col1 FROM tab2 AS cor0
----
15
31
59
skipif mysql # not compatible
query I rowsort label-655
SELECT - - cor0.col1 - + col2 / col1 FROM tab2 AS cor0
----
15
31
59
query I rowsort
SELECT - - col2 - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 + - col0 * + col2 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL col0 * ( + col0 ) * col0 AS col1 FROM tab2
----
343
474552
493039
query I rowsort
SELECT - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 cor1, tab1, tab2 AS cor2
----
243 values hashing to 7f0405f8197238fbd342972ef0bcee12
query I rowsort
SELECT DISTINCT + 65 AS col1 FROM tab1
----
65
query I rowsort
SELECT ALL - col2 * - col2 + 8 FROM tab1
----
2924
3257
9224
onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT DISTINCT + col0 DIV + col1 + + col0 AS col1 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT + col0 / + col1 + + col0 AS col1 FROM tab1 AS cor0
----
3
70
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-663
SELECT + cor0.col2 * ( + col1 + + col0 ) DIV 71 AS col1 FROM tab2 AS cor0
----
14
50
51
skipif mysql # not compatible
query I rowsort label-663
SELECT + cor0.col2 * ( + col1 + + col0 ) / 71 AS col1 FROM tab2 AS cor0
----
14
50
51
query I rowsort
SELECT DISTINCT col2 * - ( + col2 ) * - col0 FROM tab2 AS cor0
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - + col1 + - col1 * + col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL - col2 * col0 + + 35 FROM tab2 cor0
----
-154
-1993
-2967
query I rowsort
SELECT - col0 + - 70 + - cor0.col2 FROM tab1 AS cor0
----
-127
-191
-246
query I rowsort
SELECT DISTINCT + tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-670
SELECT - col2 DIV - col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-670
SELECT - col2 / - col0 FROM tab1
----
0
1
18
query I rowsort
SELECT 89 - col2 AS col1 FROM tab0
----
56
7
88
query I rowsort
SELECT + 6 FROM tab0
----
6
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT ALL - col1 + + col1 DIV - 88 AS col2 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-673
SELECT ALL - col1 + + col1 / - 88 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT cor0.col0 * 40 + col1 FROM tab0 cor0
----
1046
1497
3651
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to a5677c50b23f70287df35c2388a1c9bf
query I rowsort
SELECT ALL - col2 - - col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT cor0.col2 * - ( - col2 ) + + col0 + - cor0.col0 * - 25 AS col0 FROM tab1 cor0
----
11296
2994
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-678
SELECT + col0 + + 53 DIV + col0 + col0 FROM tab2 AS cor0
----
156
158
21
skipif mysql # not compatible
query I rowsort label-678
SELECT + col0 + + 53 / + col0 + col0 FROM tab2 AS cor0
----
156
158
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-680
SELECT DISTINCT col2 DIV - col2 col1 FROM tab1 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-680
SELECT DISTINCT col2 / - col2 col1 FROM tab1 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - + cor0.col1 + + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - col1 + 38 FROM tab1 AS cor0
----
12
25
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + 76 col1 FROM tab0 AS cor0
----
109
158
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-684
SELECT DISTINCT col1 + + col0 DIV - cor0.col0 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-684
SELECT DISTINCT col1 + + col0 / - cor0.col0 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT DISTINCT + - col2 * col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + - col2 + + col0 AS col1 FROM tab0 cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col1 + col0 col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT col0 + - col1 * + tab0.col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT + 16 * col0 AS col2 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT - - 70 AS col2 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT cor0.col1 - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col1 * + cor0.col0 - + col2 * - 19 FROM tab1 AS cor0
----
1104
1723
2864
query I rowsort
SELECT + 65 + - col1 FROM tab1 AS cor0
----
39
52
55
query I rowsort
SELECT ALL cor0.col0 * + col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - cor0.col1 - + col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + - col2 * - col0 * col2 + - col0 * - col2 * + col2 + 88 FROM tab0 AS cor0
----
1196960
158
52360
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + + col0 * col0 * - 22 FROM tab0 AS cor0
----
-12672
-174262
-26950
query I rowsort
SELECT col1 * col0 * + col0 + - col0 AS col2 FROM tab0 cor0
----
118790
49512
720722
query I rowsort
SELECT DISTINCT - ( - col0 ) + 26 FROM tab1 AS cor0
----
106
29
90
query I rowsort
SELECT ALL + 68 AS col0 FROM tab0 AS cor0
----
68
68
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-703
SELECT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-703
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT col0 * cor0.col0 * + 9 FROM tab0 AS cor0
----
11025
5184
71289
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 29 col0 FROM tab2 AS cor0
----
-29
query I rowsort
SELECT ALL 46 AS col2 FROM tab2 AS cor0
----
46
46
46
query I rowsort
SELECT ALL - col0 * - col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT col0 - - col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-709
SELECT + + col2 DIV + cor0.col0 - 28 FROM tab2 AS cor0
----
-25
-28
-28
skipif mysql # not compatible
query I rowsort label-709
SELECT + + col2 / + cor0.col0 - 28 FROM tab2 AS cor0
----
-25
-28
-28
query I rowsort
SELECT + + 10 * - col2 FROM tab2 AS cor0
----
-260
-270
-380
query I rowsort
SELECT DISTINCT - 60 * + col0 AS col1 FROM tab0 AS cor0
----
-1440
-2100
-5340
query I rowsort
SELECT ALL + + 7 * + col0 * - col2 AS col2 FROM tab2 cor0
----
-1323
-14196
-21014
query I rowsort
SELECT ALL + + col1 + ( cor0.col1 ) AS col2 FROM tab2 cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-714
SELECT - col1 * + 80 + col0 DIV + cor0.col1 FROM tab1 AS cor0
----
-1034
-2080
-794
skipif mysql # not compatible
query I rowsort label-714
SELECT - col1 * + 80 + col0 / + cor0.col1 FROM tab1 AS cor0
----
-1034
-2080
-794
query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL - cor0.col0 * - col2 - cor0.col0 * col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT col0 * + col1 * - col0 AS col2 FROM tab0
----
-118825
-49536
-720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-718
SELECT - tab0.col2 * - col1 - - CAST( col1 + + tab0.col1 * 56 AS SIGNED ) AS col0 FROM tab0
----
12649
5626
7740
skipif mysql # not compatible
query I rowsort label-718
SELECT - tab0.col2 * - col1 - - CAST ( col1 + + tab0.col1 * 56 AS INTEGER ) AS col0 FROM tab0
----
12649
5626
7740
query I rowsort
SELECT ALL + col1 * - col0 + 73 * + col2 FROM tab1
----
3521
3864
5968
query I rowsort
SELECT - + cor0.col2 * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT ALL col1 + - col0 * col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT - 63 AS col1 FROM tab1 cor0
----
-63
-63
-63
query I rowsort
SELECT DISTINCT 24 * col0 AS col1 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT + col2 * 96 * + col2 AS col0 FROM tab2 AS cor0
----
138624
64896
69984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-726
SELECT CAST( 85 AS SIGNED ) FROM tab1 AS cor0
----
85
85
85
skipif mysql # not compatible
query I rowsort label-726
SELECT CAST ( 85 AS INTEGER ) FROM tab1 AS cor0
----
85
85
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-727
SELECT DISTINCT col2 + CAST( + col0 AS SIGNED ) DIV - col2 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT col2 + CAST ( + col0 AS INTEGER ) / - col2 FROM tab1
----
54
56
96
query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-729
SELECT + - col1 DIV - 10 col2 FROM tab0 cor0
----
8
9
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-729
SELECT + - col1 / - 10 col2 FROM tab0 cor0
----
8
9
9
query I rowsort
SELECT ALL - + 44 * + col2 FROM tab2 AS cor0
----
-1144
-1188
-1672
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 + col1 + - 24 AS col0 FROM tab2 AS cor0
----
196
2063
2995
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab2.col0 + col0 col2 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT ( - col1 ) + - col1 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + 41 + - col2 * col1 * + ( - 58 ) AS col2 FROM tab2
----
37509
48587
89013
query I rowsort
SELECT + col2 * + 12 * + tab1.col2 - ( col0 + - col2 ) AS col0 FROM tab1
----
110608
35043
38981
query I rowsort
SELECT DISTINCT - ( + tab2.col0 + + col2 ) * 53 FROM tab2
----
-1802
-5512
-6201
onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT ALL - ( + col1 ) DIV + col0 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-738
SELECT ALL - ( + col1 ) / + col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT - col1 * + cor0.col2 + col1 * col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - col2 + ( col2 ) FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-741
SELECT DISTINCT - col1 DIV - col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT - col1 / - col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT + - col0 + - col1 FROM tab2 cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 + - col0 col1 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT cor0.col2 + col0 * col1 + col1 AS col2 FROM tab1 cor0
----
1149
158
707
query I rowsort
SELECT - cor0.col0 + + ( + col0 * col0 ) AS col0 FROM tab0 AS cor0
----
1190
552
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-746
SELECT cor0.col0 + ( - col1 ) DIV col1 AS col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-746
SELECT cor0.col0 + ( - col1 ) / col1 AS col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT cor0.col2 * 85 + cor0.col0 FROM tab2 AS cor0
----
2288
2302
3309
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( + ( col0 ) ) col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - cor0.col0 * + 43 AS col2 FROM tab1 cor0
----
-129
-2752
-3440
query I rowsort
SELECT DISTINCT - 98 FROM tab1, tab2 AS cor0
----
-98
query I rowsort
SELECT ( col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT col0 * + 50 AS col0 FROM tab1
----
150
3200
4000
query I rowsort
SELECT col1 - col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - ( cor0.col1 ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-755
SELECT + col1 * col1 + CAST( NULL AS SIGNED ) - ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-755
SELECT + col1 * col1 + CAST ( NULL AS INTEGER ) - ( col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-756
SELECT ALL col2 * col2 + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-756
SELECT ALL col2 * col2 + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0 CROSS JOIN tab1
----
243 values hashing to 89e3b35a4a4f02d7b83645addb9dcdc3
query I rowsort
SELECT tab0.col1 * tab0.col1 * - col2 AS col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT + + cor0.col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT - col1 * col2 DIV col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-760
SELECT - col1 * col2 / col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT 41 * tab0.col0 AS col1 FROM tab0
----
1435
3649
984
query I rowsort
SELECT 24 * col1 FROM tab1
----
240
312
624
query I rowsort
SELECT DISTINCT 69 + col1 FROM tab0
----
155
160
166
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT + col0 * col2 DIV + 50 + - tab0.col0 + col0 FROM tab0
----
0
145
15
skipif mysql # not compatible
query I rowsort label-764
SELECT + col0 * col2 / + 50 + - tab0.col0 + col0 FROM tab0
----
0
145
15
query I rowsort
SELECT 29 AS col2 FROM tab0
----
29
29
29
query I rowsort
SELECT + 3 + col2 FROM tab2 AS cor0
----
29
30
41
query I rowsort
SELECT DISTINCT col1 * + col1 + 94 * + col1 + col2 FROM tab2 AS cor0
----
1925
3902
9053
query I rowsort
SELECT DISTINCT - col0 + col0 + 3 * cor0.col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
22188
24843
28227
query I rowsort
SELECT + col0 * col1 - cor0.col0 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT 25 * - col0 AS col1 FROM tab2
----
-175
-1950
-1975
query I rowsort
SELECT col2 * + tab0.col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT - + col1 + col1 DIV col2 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-773
SELECT - + col1 + col1 / col2 FROM tab0 AS cor0
----
-84
-90
0
query I rowsort
SELECT 49 * col0 + col0 - + col0 * - col1 AS col1 FROM tab1
----
228
3840
5040
query I rowsort
SELECT DISTINCT 60 - + col1 * 47 AS col2 FROM tab1
----
-1162
-410
-551
query I rowsort
SELECT DISTINCT + col2 - - col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - 66 AS col2 FROM tab2
----
-66
-66
-66
query I rowsort
SELECT DISTINCT col1 + - tab1.col1 + - col0 FROM tab1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-779
SELECT ALL col1 * CAST( col2 AS SIGNED ) FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-779
SELECT ALL col1 * CAST ( col2 AS INTEGER ) FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL tab2.col1 + - col0 * 54 * col2 FROM tab2
----
-10175
-109453
-162091
query I rowsort
SELECT DISTINCT + col2 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col1 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-783
SELECT + col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-783
SELECT + col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 53 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT ALL ( + col2 + + tab2.col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT 8 FROM tab1, tab0 AS cor0
----
8
query I rowsort
SELECT 93 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT tab2.col2 * + col0 * + col2 - - ( + col2 ) FROM tab2
----
114114
5130
52754
query I rowsort
SELECT 85 - col1 FROM tab1
----
59
72
75
query I rowsort
SELECT - ( cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 96 FROM tab0, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT - + col2 + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - 22 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
118
76
79
query I rowsort
SELECT + col1 * + col2 + - 37 * col0 * col1 FROM tab2 AS cor0
----
-168740
-49045
-7192
query I rowsort
SELECT - - col0 + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col2 * + col1 - + ( - cor0.col2 ) * - col1 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 69 FROM tab1, tab0 AS cor0
----
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-799
SELECT DISTINCT - col2 + - col0 + - CAST( + 79 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
-6851
-7360
-7699
skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - col2 + - col0 + - CAST ( + 79 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
-6851
-7360
-7699
query I rowsort
SELECT ALL + cor0.col2 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-801
SELECT ALL CAST( col2 AS SIGNED ) FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-801
SELECT ALL CAST ( col2 AS INTEGER ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT ALL + + ( cor0.col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - 20 * - ( - col0 ) FROM tab1 AS cor0
----
-1280
-1600
-60
query I rowsort
SELECT - 97 * col1 - - col1 AS col1 FROM tab1 AS cor0
----
-1248
-2496
-960
query I rowsort
SELECT ALL - col2 * - col1 + - cor0.col2 * col2 FROM tab0 AS cor0
----
1749
738
96
query I rowsort
SELECT DISTINCT + ( + col0 ) - - col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + col0 + col2 * col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - 82 - - 94 * + col0 * + col0 AS col2 FROM tab1 AS cor0
----
384942
601518
764
query I rowsort
SELECT DISTINCT - col1 * col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT - 23 * + cor0.col2 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT - - 78 * col2 * + col1 AS col2 FROM tab2 cor0
----
119652
50388
65286
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 63 ) col1 FROM tab2 AS cor0
----
-63
-63
-63
query I rowsort
SELECT + cor0.col1 - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ( tab1.col1 ) * - tab1.col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT + ( - tab1.col0 ) + - col1 + col2 FROM tab1
----
-17
25
3
query I rowsort
SELECT DISTINCT 47 FROM tab0, tab0 AS cor0
----
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-818
SELECT ALL ( - col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-818
SELECT ALL ( - col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * - col2 + + ( 90 * - col2 ) + 64 AS col2 FROM tab1 AS cor0
----
-16256
-4958
-8714
onlyif mysql # use DIV operator for integer division
query I rowsort label-820
SELECT + 46 DIV + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-820
SELECT + 46 / + cor0.col2 + + col1 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 * col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL col0 + col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + - col2 + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-824
SELECT ALL - tab2.col1 * + ( - col0 ) + CAST( + col1 + col2 AS SIGNED ) * - col1 AS col1 FROM tab2
----
-1581
-413
408
skipif mysql # not compatible
query I rowsort label-824
SELECT ALL - tab2.col1 * + ( - col0 ) + CAST ( + col1 + col2 AS INTEGER ) * - col1 AS col1 FROM tab2
----
-1581
-413
408
query I rowsort
SELECT ALL + col1 + + 55 AS col2 FROM tab0
----
141
146
152
query I rowsort
SELECT ALL 87 + 22 FROM tab0
----
109
109
109
query I rowsort
SELECT ALL + col0 * - 77 + + col2 * ( col2 ) FROM tab1
----
-1679
2685
3056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 38 col0 FROM tab0 AS cor0
----
1330
3382
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-829
SELECT DISTINCT - col0 DIV col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT - col0 / col2 AS col0 FROM tab0 AS cor0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-830
SELECT - col0 DIV + 59 FROM tab2 cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-830
SELECT - col0 / + 59 FROM tab2 cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-831
SELECT ALL cor0.col2 + col2 DIV col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-831
SELECT ALL cor0.col2 + col2 / col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL - - col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT cor0.col1 * - 59 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col1 * - 26 FROM tab0 AS cor0
----
2322
2457
2619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + col2 col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col2 * 44 AS col0 FROM tab0 AS cor0
----
-1452
-3608
-44
query I rowsort
SELECT - col1 * col1 + 47 * 28 FROM tab2
----
-2165
1027
355
query I rowsort
SELECT col1 + - col0 AS col2 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT ALL + tab0.col0 DIV col2 AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-839
SELECT ALL + tab0.col0 / col2 AS col2 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT - 75 AS col2 FROM tab0, tab0 AS cor0
----
-75
query I rowsort
SELECT + cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT ALL + tab0.col0 - 88 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 6d90c1cd530996b1b837f759abd66cdd
query I rowsort
SELECT DISTINCT cor1.col2 + + 59 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
141
60
92
query I rowsort
SELECT DISTINCT col0 * + 59 + ( col1 ) FROM tab1 AS cor0
----
203
3786
4733
query I rowsort
SELECT DISTINCT - col2 * - 74 FROM tab2 AS cor0
----
1924
1998
2812
query I rowsort
SELECT ALL + col0 + + 88 AS col1 FROM tab1 AS cor0
----
152
168
91
query I rowsort
SELECT - col2 * - ( col0 + - col2 ) FROM tab1 cor0
----
-1536
-2754
399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + col2 col0 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT tab0.col1 AS col0 FROM tab0, tab2, tab1 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 + ( col2 * col1 ) FROM tab0
----
2814
62
7373
query I rowsort
SELECT ALL col2 + - cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + 79 FROM tab1, tab2 AS cor0
----
79
query I rowsort
SELECT ALL + 99 FROM tab1 AS cor0
----
99
99
99
query I rowsort
SELECT DISTINCT + + 17 * col1 FROM tab0 AS cor0
----
1462
1547
1649
query I rowsort
SELECT ALL + - ( - col1 ) + col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - ( - col0 ) * col1 + + col2 FROM tab0 cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 15 col2 FROM tab2 AS cor0
----
-15
query I rowsort
SELECT - + ( - col0 ) + col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + cor0.col0 * - col1 + col2 * + ( col0 ) FROM tab0 cor0
----
-1272
-3360
-801
query I rowsort
SELECT - 54 * - col2 + col0 AS col0 FROM tab0
----
1806
4517
89
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-862
SELECT - col2 DIV col0 + + col0 col0 FROM tab0 AS cor0
----
23
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-862
SELECT - col2 / col0 + + col0 col0 FROM tab0 AS cor0
----
23
35
89
query I rowsort
SELECT ALL + col1 * + col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - 85 AS col2 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT ALL + col0 * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col2 * col1 + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + + 36 + col1 FROM tab1 AS cor0
----
46
49
62
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col0 * col1 + col2 AS col1 FROM tab0 AS cor0
----
118826
49569
720893
query I rowsort
SELECT ALL - 41 + col0 - 80 AS col2 FROM tab1 cor0
----
-118
-41
-57
query I rowsort
SELECT DISTINCT ( - col0 ) + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT 35 FROM tab1 AS cor0
----
35
query I rowsort
SELECT DISTINCT + 55 FROM tab2, tab2 AS cor0
----
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-873
SELECT ALL - col2 * CAST( + 12 AS SIGNED ) AS col0 FROM tab1 cor0
----
-1152
-648
-684
skipif mysql # not compatible
query I rowsort label-873
SELECT ALL - col2 * CAST ( + 12 AS INTEGER ) AS col0 FROM tab1 cor0
----
-1152
-648
-684
query I rowsort
SELECT 62 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT - cor0.col0 DIV 9 AS col1 FROM tab1 AS cor0
----
-7
-8
0
skipif mysql # not compatible
query I rowsort label-875
SELECT - cor0.col0 / 9 AS col1 FROM tab1 AS cor0
----
-7
-8
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-876
SELECT ALL - col0 + + CAST( col0 AS SIGNED ) FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-876
SELECT ALL - col0 + + CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-877
SELECT + col0 DIV + col0 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-877
SELECT + col0 / + col0 col0 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col0 + - tab1.col1 FROM tab1
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-879
SELECT DISTINCT ( col1 ) * ( col2 ) + + col2 DIV - col0 FROM tab1
----
1247
1386
570
skipif mysql # not compatible
query I rowsort label-879
SELECT DISTINCT ( col1 ) * ( col2 ) + + col2 / - col0 FROM tab1
----
1247
1386
570
query I rowsort
SELECT - 22 * - col2 - + col2 FROM tab2
----
546
567
798
query I rowsort
SELECT DISTINCT - 82 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT col1 DIV + col1 AS col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-882
SELECT col1 / + col1 AS col1 FROM tab1
----
1
1
1
query I rowsort
SELECT - + 20 + col0 AS col2 FROM tab2 cor0
----
-13
58
59
query I rowsort
SELECT 50 + + col1 AS col2 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT - - col1 + - col1 + cor0.col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT + + col0 - + 31 AS col0 FROM tab1 AS cor0
----
-28
33
49
query I rowsort
SELECT ALL + + 74 + col2 AS col2 FROM tab0 AS cor0
----
107
156
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - col2 - col0 col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT - - col0 * - col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-890
SELECT + - ( - col1 ) - col2 DIV - col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-890
SELECT + - ( - col1 ) - col2 / - col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + 73 AS col0 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT + 49 * 79 + col1 + ( + col0 * + col2 ) FROM tab1 AS cor0
----
11564
4059
7529
query I rowsort
SELECT - col0 * - 42 - cor0.col0 * + col0 FROM tab1 AS cor0
----
-1408
-3040
117
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT - col0 + col2 * ( - col2 ) FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT 26 FROM tab1, tab0 cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-897
SELECT ALL + col1 + + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 53 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT DISTINCT + col2 + - 18 * col0 FROM tab0 AS cor0
----
-1520
-399
-629
query I rowsort
SELECT + col1 + 67 * col0 FROM tab0 AS cor0
----
1694
2442
6054
onlyif mysql # use DIV operator for integer division
query I rowsort label-902
SELECT - col1 * ( + 4 ) DIV col1 AS col1 FROM tab1 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-902
SELECT - col1 * ( + 4 ) / col1 AS col1 FROM tab1 AS cor0
----
-4
-4
-4
query I rowsort
SELECT col2 * 75 AS col0 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT col1 + 62 + col2 AS col0 FROM tab1
----
129
142
171
query I rowsort
SELECT col1 + 88 FROM tab2
----
105
119
147
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col1 * + col2 col1 FROM tab0
----
2805
7380
96
query I rowsort
SELECT + + 38 * col1 + col1 FROM tab0 AS cor0
----
3354
3549
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-908
SELECT ( 3 ) DIV - col2 + + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-908
SELECT ( 3 ) / - col2 + + col2 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 * cor0.col0 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - col1 + - ( col1 ) AS col2 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT 77 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL col1 + - col2 * + col0 + col0 * tab2.col1 FROM tab2
----
-1642
2633
59
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL 33 FROM tab2, tab1 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL + tab0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT - + col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab0, tab0 AS cor0
----
-61
query I rowsort
SELECT ALL + 14 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT DISTINCT 53 FROM tab0, tab1 AS cor0
----
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-920
SELECT ( + col2 + - col2 ) DIV + col0 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-920
SELECT ( + col2 + - col2 ) / + col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT 35 AS col2 FROM tab1
----
35
35
35
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) * + col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - col2 * - 20 - - col1 FROM tab2
----
571
579
777
onlyif mysql # use DIV operator for integer division
query I rowsort label-924
SELECT col0 DIV - 28 FROM tab0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-924
SELECT col0 / - 28 FROM tab0
----
-1
-3
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-925
SELECT ALL - CAST( - 48 AS SIGNED ) FROM tab1
----
48
48
48
skipif mysql # not compatible
query I rowsort label-925
SELECT ALL - CAST ( - 48 AS INTEGER ) FROM tab1
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-926
SELECT - CAST( NULL AS DECIMAL ) * ( - col0 ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-926
SELECT - CAST ( NULL AS REAL ) * ( - col0 ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-928
SELECT col1 DIV + col0 AS col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-928
SELECT col1 / + col0 AS col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT - col2 * 97 * tab1.col2 FROM tab1
----
-282852
-315153
-893952
query I rowsort
SELECT + col1 * col0 + - col2 + col2 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + 32 * - col1 FROM tab0
----
-2752
-2912
-3104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 96 + + col1 * col2 - - col0 col0 FROM tab0
----
11118
16287
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-933
SELECT ALL - CAST( + col1 AS SIGNED ) + + tab2.col1 - + col1 * - col1 FROM tab2
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-933
SELECT ALL - CAST ( + col1 AS INTEGER ) + + tab2.col1 - + col1 * - col1 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-934
SELECT col2 + - col0 - - col2 DIV col0 AS col0 FROM tab1
----
-7
17
69
skipif mysql # not compatible
query I rowsort label-934
SELECT col2 + - col0 - - col2 / col0 AS col0 FROM tab1
----
-7
17
69
query I rowsort
SELECT ALL - - 53 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
onlyif mysql # use DIV operator for integer division
query I rowsort label-936
SELECT DISTINCT + cor0.col1 DIV 10 + 68 FROM tab2 cor0
----
69
71
73
skipif mysql # not compatible
query I rowsort label-936
SELECT DISTINCT + cor0.col1 / 10 + 68 FROM tab2 cor0
----
69
71
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-937
SELECT - + col2 * CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-937
SELECT - + col2 * CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 8 + col0 * - col2 AS col1 FROM tab1
----
-170
-3656
-7688
query I rowsort
SELECT - 6 AS col0 FROM tab2
----
-6
-6
-6
query I rowsort
SELECT 53 AS col2 FROM tab0
----
53
53
53
query I rowsort
SELECT ( - tab1.col1 ) AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-942
SELECT col0 * col2 * CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
207936
737280
8748
skipif mysql # not compatible
query I rowsort label-942
SELECT col0 * col2 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT col1 * + col1 * 5 AS col0 FROM tab0
----
36980
41405
47045
query I rowsort
SELECT + col2 * 35 FROM tab1 AS cor0
----
1890
1995
3360
query I rowsort
SELECT col1 + + col1 * + 96 FROM tab0 AS cor0
----
8342
8827
9409
query I rowsort
SELECT ALL cor0.col0 * - 13 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 61ccd319ad73ab5f49bc436892fccfa5
query I rowsort
SELECT cor0.col1 * col1 * 0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + + col0 * - col2 * col1 AS col1 FROM tab2
----
-119626
-50996
-5832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 49 ) col1 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT ALL + + 90 AS col2 FROM tab1 AS cor0
----
90
90
90
skipif mysql # not compatible
query I rowsort
SELECT ALL + 24 * + col1 * + CAST ( + col1 + - col0 AS REAL ) FROM tab0 cor0
----
127968
144336
4368
onlyif mysql # use DIV operator for integer division
query I rowsort label-952
SELECT ALL - 46 + + col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-45
-46
-46
skipif mysql # not compatible
query I rowsort label-952
SELECT ALL - 46 + + col0 / + col2 AS col1 FROM tab1 AS cor0
----
-45
-46
-46
query I rowsort
SELECT col2 + - col0 * ( 28 ) FROM tab2 AS cor0
----
-169
-2158
-2174
query I rowsort
SELECT ALL + - 13 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab2, tab2 cor2
----
243 values hashing to c1f69f44d01359fc0e746ef339d6e2c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT DISTINCT + col0 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-955
SELECT DISTINCT + col0 / - col0 AS col1 FROM tab0 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 + 93 col1 FROM tab0 AS cor0
----
128
7391
885
onlyif mysql # use DIV operator for integer division
query I rowsort label-957
SELECT ALL - + col0 * cor0.col2 + col2 DIV + col0 FROM tab1 cor0
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-957
SELECT ALL - + col0 * cor0.col2 + col2 / + col0 FROM tab1 cor0
----
-144
-3648
-7679
query I rowsort
SELECT ALL col2 + cor0.col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - - col1 + + ( + col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - col2 * col0 + cor0.col1 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col1 + col1 - col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + + col0 + 20 * - 8 AS col2 FROM tab1 cor0
----
-157
-80
-96
query I rowsort
SELECT ALL cor0.col2 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col2 + - ( col0 + + col2 * 34 ) AS col1 FROM tab0 AS cor0
----
-1113
-2795
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-965
SELECT ALL - + col2 * CAST( NULL AS DECIMAL ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-965
SELECT ALL - + col2 * CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-966
SELECT ALL + col1 * + col0 + col0 DIV col1 + col0 * - 22 * col2 FROM tab0 AS cor0
----
-152457
-15360
2625
skipif mysql # not compatible
query I rowsort label-966
SELECT ALL + col1 * + col0 + col0 / col1 + col0 * - 22 * col2 FROM tab0 AS cor0
----
-152457
-15360
2625
query I rowsort
SELECT DISTINCT - 44 * + col0 AS col1 FROM tab0
----
-1056
-1540
-3916
query I rowsort
SELECT - 48 * col0 + + 65 * tab1.col2 AS col0 FROM tab1
----
2400
3366
633
query I rowsort
SELECT - col2 + col0 * 23 AS col1 FROM tab0
----
1965
519
804
query I rowsort
SELECT DISTINCT + + col1 + col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT + - col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT tab1.col2 * + tab1.col1 + - ( + col1 ) * + col0 FROM tab1
----
-70
1326
208
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-973
SELECT ( - col0 ) * CAST( NULL AS SIGNED ) - - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-973
SELECT ( - col0 ) * CAST ( NULL AS INTEGER ) - - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT 62 * + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
458552
513422
583358
query I rowsort
SELECT - 42 + col2 FROM tab2 AS cor0
----
-15
-16
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-977
SELECT - ( cor0.col0 ) DIV + col0 + cor0.col1 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-977
SELECT - ( cor0.col0 ) / + col0 + cor0.col1 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT ALL - - cor0.col0 * + col1 * col0 AS col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + col1 + 84 AS col0 FROM tab1 AS cor0
----
110
94
97
query I rowsort
SELECT DISTINCT + - col0 * 96 FROM tab2 AS cor0
----
-672
-7488
-7584
query I rowsort
SELECT ALL col1 * + col1 AS col0 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT + col2 + + 72 FROM tab1 AS cor0
----
126
129
168
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-984
SELECT ALL + CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-984
SELECT ALL + CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 26 + col0 col2 FROM tab0 AS cor0
----
2260
2455
2557
query I rowsort
SELECT col1 * + col0 + cor0.col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - 37 FROM tab1 AS cor0
----
-37
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-988
SELECT DISTINCT col1 + col0 * + CAST( NULL AS SIGNED ) + + col2 AS col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-988
SELECT DISTINCT col1 + col0 * + CAST ( NULL AS INTEGER ) + + col2 AS col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - - col2 - + col2 * - ( col1 ) FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - + cor0.col1 * cor1.col1 + - 0 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601c129c54e49286b9ededa8928121fc
query I rowsort
SELECT ALL + 12 FROM tab2, tab2 AS cor0, tab0, tab2 cor1
----
81 values hashing to c60b9398e29d6382e0d15363f9325811
query I rowsort
SELECT cor0.col2 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col1 * ( col1 ) AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - + 7 + - col1 * 51 AS col0 FROM tab0 cor0
----
-4393
-4648
-4954
query I rowsort
SELECT - 79 * col2 AS col1 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT DISTINCT + ( - col1 ) + + ( col2 ) * col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL 58 AS col2 FROM tab0 AS cor0
----
58
58
58
query I rowsort
SELECT ( col0 ) * + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT - cor0.col1 + col1 * - ( - ( - col1 ) ) AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT ( col0 ) * col2 * + ( + col2 + tab0.col1 * + col2 ) FROM tab0
----
2273832
3430
55056112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 85 * col1 * + col2 + - col1 AS col0 FROM tab1
----
106067
119314
48440
query I rowsort
SELECT + 97 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT DISTINCT - - col0 + + col1 * 85 FROM tab0 AS cor0
----
7334
7824
8280
query I rowsort
SELECT ALL + - col0 + + cor0.col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - 53 + - col1 * ( cor0.col0 ) AS col1 FROM tab0 AS cor0
----
-2117
-3448
-8152
query I rowsort
SELECT ALL - cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1008
SELECT - col0 + - col2 DIV + col0 + + 12 FROM tab0 cor0
----
-13
-23
-77
skipif mysql # not compatible
query I rowsort label-1008
SELECT - col0 + - col2 / + col0 + + 12 FROM tab0 cor0
----
-13
-23
-77
query I rowsort
SELECT ALL - 75 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT DISTINCT col2 + - col2 * - col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 + + 77 AS col1 FROM tab2 AS cor0
----
115
173
214
query I rowsort
SELECT col2 * + 72 AS col1 FROM tab1
----
3888
4104
6912
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5342fb4caf4767cb98bd21989bad099f
query I rowsort
SELECT + col1 * + col2 - 73 * tab1.col1 FROM tab1
----
-160
-494
299
query I rowsort
SELECT ALL + tab0.col1 + - ( ( col0 ) ) * tab0.col1 AS col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col0 * 97 * + col1 + col2 * - 5 FROM tab1 AS cor0
----
-101360
-62365
-7836
onlyif mysql # use DIV operator for integer division
query I rowsort label-1017
SELECT ALL - cor0.col2 - - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-1017
SELECT ALL - cor0.col2 - - col1 / col1 AS col0 FROM tab1 AS cor0
----
-53
-56
-95
query I rowsort
SELECT - col2 + - 89 * + col1 AS col2 FROM tab1 AS cor0
----
-1253
-2368
-947
onlyif mysql # use DIV operator for integer division
query I rowsort label-1019
SELECT + cor0.col2 + ( 19 ) DIV col2 AS col1 FROM tab0 AS cor0
----
20
33
82
skipif mysql # not compatible
query I rowsort label-1019
SELECT + cor0.col2 + ( 19 ) / col2 AS col1 FROM tab0 AS cor0
----
20
33
82
query I rowsort
SELECT DISTINCT col2 + + col1 AS col0 FROM tab0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1021
SELECT - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1021
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * ( + 80 ) FROM tab2
----
1360
2480
4720
query I rowsort
SELECT + col2 + - 63 * col2 FROM tab1 AS cor0
----
-3348
-3534
-5952
query I rowsort
SELECT - 23 AS col0 FROM tab2 cor0
----
-23
-23
-23
query I rowsort
SELECT ALL + cor0.col1 + col0 * - col2 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1026
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1026
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + + 44 * 44 + - col0 FROM tab2 AS cor0
----
1857
1858
1929
query I rowsort
SELECT DISTINCT - 72 * - col0 FROM tab0
----
1728
2520
6408
query I rowsort
SELECT DISTINCT col1 * - 77 FROM tab2
----
-1309
-2387
-4543
query I rowsort
SELECT + col1 * - col1 + - col2 + + 77 FROM tab0
----
-7352
-8286
-9333
query I rowsort
SELECT ALL - - 63 AS col1 FROM tab2 cor0
----
63
63
63
query I rowsort
SELECT DISTINCT col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab0 cor0
----
-96
query I rowsort
SELECT DISTINCT + ( cor2.col1 ) AS col1 FROM tab0, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
86
91
97
query I rowsort
SELECT ALL col0 * - 91 FROM tab0 cor0
----
-2184
-3185
-8099
query I rowsort
SELECT ALL 78 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1037
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 49 FROM tab1, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1037
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 49 FROM tab1, tab2 AS cor0
----
NULL
query I rowsort
SELECT + 24 + - col0 * col0 FROM tab1 cor0
----
-4072
-6376
15
query I rowsort
SELECT - + ( + 74 ) * cor0.col1 - ( col0 ) * - col0 FROM tab1 AS cor0
----
-1915
3356
5438
query I rowsort
SELECT - col0 - 98 FROM tab1 AS cor0
----
-101
-162
-178
query I rowsort
SELECT - col0 * + 71 AS col0 FROM tab1 AS cor0
----
-213
-4544
-5680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1042
SELECT + CAST( + col0 AS SIGNED ) * - col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1042
SELECT + CAST ( + col0 AS INTEGER ) * - col2 col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + 62 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + 83 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
7138
7553
8051
query I rowsort
SELECT col1 - col0 * col1 * + ( + 70 ) FROM tab0 AS cor0
----
-144394
-237553
-566839
query I rowsort
SELECT - 21 * 35 * + col0 FROM tab0 AS cor0
----
-17640
-25725
-65415
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1049
SELECT CAST( NULL AS SIGNED ) + col2 / - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1049
SELECT CAST ( NULL AS INTEGER ) + col2 / - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 85 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col2 - - col2 * - col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - - col2 + - col0 * col0 * + col2 AS col0 FROM tab1 cor0
----
-233415
-432
-614304
query I rowsort
SELECT DISTINCT 81 * col0 - - ( - col2 ) * cor0.col0 AS col1 FROM tab0 AS cor0
----
-89
1152
2800
query I rowsort
SELECT - cor0.col0 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - - col0 + col2 * col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT - col2 * - 35 AS col1 FROM tab0 AS cor0
----
1155
2870
35
query I rowsort
SELECT - col1 + + col1 * col2 * col2 FROM tab2 AS cor0
----
22568
24531
39825
query I rowsort
SELECT ALL + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1060
SELECT - col0 * - CAST( - col1 + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1060
SELECT - col0 * - CAST ( - col1 + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1061
SELECT - col0 * CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1061
SELECT - col0 * CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 * 64 FROM tab2 AS cor0
----
448
4992
5056
query I rowsort
SELECT + + 71 AS col0 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT + col2 + + col0 + cor0.col1 AS col0 FROM tab2 AS cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1066
SELECT DISTINCT + col1 * + col1 + - col2 DIV col1 AS col1 FROM tab1 AS cor0
----
162
674
95
skipif mysql # not compatible
query I rowsort label-1066
SELECT DISTINCT + col1 * + col1 + - col2 / col1 AS col1 FROM tab1 AS cor0
----
162
674
95
query I rowsort
SELECT + + col2 * + col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT ALL + col1 + cor0.col2 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 * col1 col2 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL ( + 95 ) FROM tab0 cor0
----
95
95
95
query I rowsort
SELECT ALL - 76 * cor0.col0 - - cor0.col1 FROM tab0 cor0
----
-1738
-2563
-6673
query I rowsort
SELECT + - ( ( col0 ) ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - ( + col0 ) * col2 + - 12 + + col1 FROM tab1 AS cor0
----
176
3646
7681
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1075
SELECT CAST( + 2 AS SIGNED ) FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif mysql # not compatible
query I rowsort label-1075
SELECT CAST ( + 2 AS INTEGER ) FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT DISTINCT + ( + 49 ) AS col0 FROM tab1, tab2 AS cor0
----
49
query I rowsort
SELECT 26 AS col1 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT - 1 * - col0 + - 75 FROM tab1 AS cor0
----
-11
-72
5
query I rowsort
SELECT - 70 AS col2 FROM tab2 AS cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT - + 39 FROM tab2 cor0
----
-39
query I rowsort
SELECT - tab0.col2 * + col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 * - ( + col2 ) + cor0.col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL - col2 * 39 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT + col1 + + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + - col0 * - 44 AS col1 FROM tab1 cor0
----
132
2816
3520
query I rowsort
SELECT ( col1 * + col0 ) - ( - col0 * - 7 ) FROM tab1
----
192
480
57
query I rowsort
SELECT ALL - 28 + + col0 + 38 AS col0 FROM tab2
----
17
88
89
query I rowsort
SELECT DISTINCT ( cor0.col2 ) AS col2 FROM tab1, tab2 cor0, tab2 cor1
----
26
27
38
query I rowsort
SELECT 19 + - 36 AS col2 FROM tab1
----
-17
-17
-17
query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE NULL <= ( NULL )
----
query I rowsort
SELECT + 36 AS col0 FROM tab2
----
36
36
36
query I rowsort
SELECT ALL - 98 * - col0 AS col0 FROM tab0
----
2352
3430
8722
query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT 4 * col0 + col0 * 30 AS col2 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT ALL + 39 + col1 + - 2 * cor0.col1 FROM tab0 AS cor0
----
-47
-52
-58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1096
SELECT + tab2.col0 * col2 + - col2 DIV col0 FROM tab2
----
186
2028
3002
skipif mysql # not compatible
query I rowsort label-1096
SELECT + tab2.col0 * col2 + - col2 / col0 FROM tab2
----
186
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1097
SELECT ALL + col1 DIV ( col0 ) + - tab0.col0 AS col2 FROM tab0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-1097
SELECT ALL + col1 / ( col0 ) + - tab0.col0 AS col2 FROM tab0
----
-21
-33
-88
query I rowsort
SELECT ALL - 85 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1099
SELECT DISTINCT tab0.col1 + CAST( ( + col0 ) AS SIGNED ) AS col1 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT tab0.col1 + CAST ( ( + col0 ) AS INTEGER ) AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col0 * - 79 - col0 AS col2 FROM tab2 AS cor0
----
546
6084
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-1101
SELECT ALL + col2 - + cor0.col0 DIV col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-1101
SELECT ALL + col2 - + cor0.col0 / col2 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT - - col1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + + col1 * 35 + col1 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT + col1 + + col1 * + col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL 83 * col2 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT DISTINCT + col2 * + 29 AS col0 FROM tab2 AS cor0
----
1102
754
783
query I rowsort
SELECT ALL col1 * - col0 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( + col1 AS REAL ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 * 73 + col2 AS col0 FROM tab0 AS cor0
----
-2376
-5904
-72
query I rowsort
SELECT ALL + ( cor0.col2 ) + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + 78 AS REAL ) AS col0 FROM tab0 AS cor0
----
78
78
78
query I rowsort
SELECT DISTINCT - cor0.col1 + - 6 AS col1 FROM tab2 AS cor0
----
-23
-37
-65
query I rowsort
SELECT ALL + + 21 + col1 FROM tab2 cor0
----
38
52
80
query I rowsort
SELECT DISTINCT + ( - 43 ) AS col1 FROM tab2 AS cor0
----
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-1116
SELECT DISTINCT ( + cor0.col1 ) DIV col0 AS col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-1116
SELECT DISTINCT ( + cor0.col1 ) / col0 AS col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT cor0.col1 * + ( col1 * col1 ) + 12 AS col1 FROM tab0 AS cor0
----
636068
753583
912685
query I rowsort
SELECT ALL + 19 * 89 + + col0 AS col2 FROM tab0 AS cor0
----
1715
1726
1780
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1119
SELECT - CAST( col1 AS SIGNED ) + - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1119
SELECT - CAST ( col1 AS INTEGER ) + - col1 + + col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT tab0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT ALL + col0 * 78 * col1 + + col0 DIV ( tab2.col1 ) AS col2 FROM tab2
----
104758
16926
358957
skipif mysql # not compatible
query I rowsort label-1121
SELECT ALL + col0 * 78 * col1 + + col0 / ( tab2.col1 ) AS col2 FROM tab2
----
104758
16926
358957
query I rowsort
SELECT ALL + col2 + - col0 + col2 * col1 AS col2 FROM tab0 AS cor0
----
2847
63
7455
query I rowsort
SELECT DISTINCT - - ( + col2 ) * col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( - col1 ) * - 40 col0 FROM tab1 AS cor0
----
-27040
-4000
-6760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * - 17 col1 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT 8 * + 78 + - col1 AS col0 FROM tab0 cor0
----
527
533
538
query I rowsort
SELECT DISTINCT - 57 + + 1 AS col0 FROM tab2 AS cor0
----
-56
query I rowsort
SELECT DISTINCT - - ( - 42 ) + - cor0.col2 FROM tab0 cor0
----
-124
-43
-75
skipif mysql # not compatible
query I rowsort
SELECT ALL + - CAST ( col2 AS REAL ) * col2 - 21 * + col1 AS col0 FROM tab0 AS cor0
----
-2038
-2895
-8635
onlyif mysql # use DIV operator for integer division
query I rowsort label-1130
SELECT ALL ( - 43 ) * - col2 + - 18 DIV - col1 - + col0 FROM tab2 AS cor0
----
1040
1154
1556
skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL ( - 43 ) * - col2 + - 18 / - col1 - + col0 FROM tab2 AS cor0
----
1040
1154
1556
query I rowsort
SELECT ALL - ( 5 ) * - col2 FROM tab2 AS cor0
----
130
135
190
query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab0 AS cor0
----
49
query I rowsort
SELECT ALL - col2 * - cor0.col1 - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT + 16 - - ( + cor0.col2 + - col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-1336
-1542
556
query I rowsort
SELECT - col0 + + col2 * col0 + + col1 FROM tab2 AS cor0
----
2009
213
2940
query I rowsort
SELECT DISTINCT + + col2 - col0 * + col1 * ( - col0 * col0 + + ( 70 ) ) AS col0 FROM tab2 AS cor0
----
-4530
27676454
8287691
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1137
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 5 - - col0 AS col0 FROM tab1 cor0
----
69
8
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 77 * + cor0.col0 + 40 * + col1 col2 FROM tab0 AS cor0
----
-3213
1185
1592
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) * col1 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 20 FROM tab1
----
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1143
SELECT + 75 + col0 DIV col1 FROM tab1
----
75
81
81
skipif mysql # not compatible
query I rowsort label-1143
SELECT + 75 + col0 / col1 FROM tab1
----
75
81
81
query I rowsort
SELECT 51 * + 61 AS col0 FROM tab1
----
3111
3111
3111
query I rowsort
SELECT + ( + ( col2 ) ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab0, tab1 AS cor0
----
-17
query I rowsort
SELECT DISTINCT - ( - 78 * col2 ) + col0 AS col0 FROM tab0
----
113
2598
6485
query I rowsort
SELECT + 34 * col1 * - col2 FROM tab1
----
-19380
-42432
-47736
query I rowsort
SELECT + col1 + - col2 * 68 FROM tab2 AS cor0
----
-1709
-1805
-2567
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1150
SELECT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1150
SELECT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1151
SELECT - cor0.col0 DIV col1 FROM tab1 cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-1151
SELECT - cor0.col0 / col1 FROM tab1 cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col1 * cor0.col1 * + col1 col2 FROM tab2 AS cor0
----
205438
29822
4930
query I rowsort
SELECT DISTINCT + col0 * - 20 FROM tab2 AS cor0
----
-140
-1560
-1580
query I rowsort
SELECT ALL - col1 * col1 * - col0 AS col0 FROM tab0 cor0
----
177504
329315
737009
query I rowsort
SELECT ALL + + col0 * col0 * - col2 + col2 * + ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
-105456
-123082
3780
query I rowsort
SELECT ALL + + col1 + ( - ( cor0.col2 ) ) * - ( col1 ) FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-1157
SELECT 12 DIV - col1 + - tab0.col1 AS col2 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1157
SELECT 12 / - col1 + - tab0.col1 AS col2 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1158
SELECT DISTINCT col0 DIV - col2 AS col1 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT col0 / - col2 AS col1 FROM tab0
----
-1
-35
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1159
SELECT - col2 + CAST( - ( + col0 ) AS SIGNED ) * - col0 FROM tab2 AS cor0
----
22
6058
6203
skipif mysql # not compatible
query I rowsort label-1159
SELECT - col2 + CAST ( - ( + col0 ) AS INTEGER ) * - col0 FROM tab2 AS cor0
----
22
6058
6203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1160
SELECT DISTINCT - col1 + CAST( + col2 AS SIGNED ) * + col2 * col0 AS col0 FROM tab0
----
-62
26050
598345
skipif mysql # not compatible
query I rowsort label-1160
SELECT DISTINCT - col1 + CAST ( + col2 AS INTEGER ) * + col2 * col0 AS col0 FROM tab0
----
-62
26050
598345
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1161
SELECT ALL col2 * + CAST( col2 AS SIGNED ) + col1 FROM tab0
----
1175
6815
98
skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL col2 * + CAST ( col2 AS INTEGER ) + col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT - col1 + 48 FROM tab1
----
22
35
38
query I rowsort
SELECT + col1 + + 58 + - col0 * col1 FROM tab1 cor0
----
-572
-969
6
query I rowsort
SELECT ALL - col0 * ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col2 - 29 FROM tab1 AS cor0
----
-125
-83
-86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1166
SELECT DISTINCT + col2 + + CAST( ( + col1 ) AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort label-1166
SELECT DISTINCT + col2 + + CAST ( ( + col1 ) AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + - col0 + - col1 * + col0 * col1 FROM tab0 AS cor0
----
-177528
-329350
-737098
query I rowsort
SELECT col2 * col0 * col0 AS col2 FROM tab2
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 + + col1 col1 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1170
SELECT col1 DIV col2 AS col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-1170
SELECT col1 / col2 AS col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + - 10 FROM tab2 AS cor0
----
-10
-10
-10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - 72 * - cor0.col0 AS col0 FROM tab1 cor0
----
216
4608
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1174
SELECT DISTINCT CAST( + col0 + col2 AS SIGNED ) * 45 * - tab0.col1 AS col0 FROM tab0
----
-157140
-220590
-700245
skipif mysql # not compatible
query I rowsort label-1174
SELECT DISTINCT CAST ( + col0 + col2 AS INTEGER ) * 45 * - tab0.col1 AS col0 FROM tab0
----
-157140
-220590
-700245
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1175
SELECT DISTINCT CAST( 83 AS SIGNED ) col2 FROM tab0
----
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1175
SELECT DISTINCT CAST ( 83 AS INTEGER ) col2 FROM tab0
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT ALL ( col2 ) DIV - col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-1176
SELECT ALL ( col2 ) / - col0 FROM tab2
----
-3
0
0
query I rowsort
SELECT DISTINCT ( - col1 + 86 ) FROM tab2
----
27
55
69
query I rowsort
SELECT ALL + col2 + 2 - - 36 * col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
23296
30161
55252
query I rowsort
SELECT - 68 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT - col2 * ( - col2 * + ( col1 ) ) AS col2 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1181
SELECT col0 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1181
SELECT col0 / col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + col2 + - col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT cor0.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL ( + col2 ) FROM tab0
----
1
33
82
query I rowsort
SELECT + 84 + - tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 951b01573d70a1683d0ea2492550f3a7
query I rowsort
SELECT DISTINCT cor1.col0 + - ( + 70 ) AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-6
-67
10
query I rowsort
SELECT DISTINCT - 73 + + col0 * col0 AS col1 FROM tab0 AS cor0
----
1152
503
7848
query I rowsort
SELECT - 13 FROM tab1, tab0 cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0, tab0 cor0, tab2 AS cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query I rowsort
SELECT ALL - 9 FROM tab2
----
-9
-9
-9
query I rowsort
SELECT ALL - col0 * + col0 * + col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT - - col2 + + 18 AS col2 FROM tab1 AS cor0
----
114
72
75
query I rowsort
SELECT ( 99 ) FROM tab0 AS cor0
----
99
99
99
query I rowsort
SELECT col2 + col0 + col1 FROM tab2
----
134
163
65
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37
query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT + + 23 + col0 * + col2 FROM tab2 AS cor0
----
2051
212
3025
query I rowsort
SELECT - 22 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-1715
-702
13
query I rowsort
SELECT - col1 * + ( - col0 * col0 + + col1 * col0 ) FROM tab1 AS cor0
----
-1794
34560
69680
query I rowsort
SELECT DISTINCT col0 * col1 * 69 + col2 + + col0 FROM tab0 AS cor0
----
142473
234291
559002
query I rowsort
SELECT DISTINCT ( - col0 ) + + 70 * + col2 AS col0 FROM tab2 AS cor0
----
1742
1883
2581
query I rowsort
SELECT 86 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
183
2924
7548
query I rowsort
SELECT DISTINCT - 79 + - cor0.col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1040
-3560
-368
query I rowsort
SELECT ALL - col1 * col2 + + ( 77 * - col0 ) FROM tab2 AS cor0
----
-1376
-6729
-7540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 56 + + col1 * - col0 col2 FROM tab2
----
-1382
-242
-4599
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1206
SELECT ALL col2 / - CAST( NULL AS SIGNED ) - col1 * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1206
SELECT ALL col2 / - CAST ( NULL AS INTEGER ) - col1 * col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * 1 - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + col2 - + col1 * tab1.col2 AS col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT 38 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1210
SELECT col0 DIV - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1210
SELECT col0 / - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + + cor0.col0 - col0 AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT 9 AS col2 FROM tab1 AS cor0
----
9
9
9
query I rowsort
SELECT ALL + col2 + + ( col2 ) + col2 AS col2 FROM tab2 AS cor0
----
114
78
81
query I rowsort
SELECT 67 AS col2 FROM tab1 AS cor0
----
67
67
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1215
SELECT - CAST( col1 AS SIGNED ) + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-1215
SELECT - CAST ( col1 AS INTEGER ) + + col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-1216
SELECT ALL + - 40 * 57 + + col2 DIV - col1 FROM tab1 cor0
----
-2282
-2285
-2287
skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL + - 40 * 57 + + col2 / - col1 FROM tab1 cor0
----
-2282
-2285
-2287
query I rowsort
SELECT - col2 * - 37 FROM tab1
----
1998
2109
3552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 23 col1 FROM tab1
----
1472
1840
69
query I rowsort
SELECT 93 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 + tab1.col0 * 65 + 78 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 943c8092ca10f48219bc66161ca466c8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1222
SELECT col1 DIV + tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1222
SELECT col1 / + tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 * 89 AS col2 FROM tab2 AS cor0
----
-2314
-2403
-3382
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1224
SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col0 + col2 * col1 AS col0 FROM tab0
----
2814
62
7373
query I rowsort
SELECT col0 * ( 51 + - col0 ) FROM tab1
----
-2320
-832
144
query I rowsort
SELECT + 1 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL col2 * col0 + - tab1.col2 AS col1 FROM tab1
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col1 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT col0 DIV - tab0.col1 + - col1 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-1230
SELECT col0 / - tab0.col1 + - col1 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1231
SELECT + col2 + col1 * 29 DIV + col0 AS col1 FROM tab0 AS cor0
----
111
136
81
skipif mysql # not compatible
query I rowsort label-1231
SELECT + col2 + col1 * 29 / + col0 AS col1 FROM tab0 AS cor0
----
111
136
81
query I rowsort
SELECT col2 * + 16 AS col1 FROM tab1 AS cor0
----
1536
864
912
onlyif mysql # use DIV operator for integer division
query I rowsort label-1233
SELECT + - col0 + - col2 DIV + cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1233
SELECT + - col0 + - col2 / + cor0.col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - tab1.col2 * - col0 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 * col1 + + col0 AS col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT + col1 * ( + 19 ) * col0 FROM tab1 AS cor0
----
12160
1482
19760
query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - 52 FROM tab2
----
-52
-52
-52
query I rowsort
SELECT DISTINCT - 60 * col2 FROM tab1
----
-3240
-3420
-5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT col0 + - 9 - col1 * col1 DIV - tab1.col1 AS col2 FROM tab1
----
20
65
84
skipif mysql # not compatible
query I rowsort label-1240
SELECT col0 + - 9 - col1 * col1 / - tab1.col1 AS col2 FROM tab1
----
20
65
84
query I rowsort
SELECT - 81 + + col2 FROM tab0
----
-48
-80
1
query I rowsort
SELECT 51 * col1 FROM tab0
----
4386
4641
4947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col0 FROM tab2
----
76
76
76
query I rowsort
SELECT ALL + 75 + col2 AS col2 FROM tab2 AS cor0
----
101
102
113
onlyif mysql # use DIV operator for integer division
query I rowsort label-1245
SELECT + cor0.col0 + col2 DIV - 82 - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
skipif mysql # not compatible
query I rowsort label-1245
SELECT + cor0.col0 + col2 / - 82 - + col2 * col1 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT 65 * - col2 FROM tab0 cor0
----
-2145
-5330
-65
query I rowsort
SELECT - col0 + col1 * col0 AS col1 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT ALL - 8 FROM tab0 AS cor0
----
-8
-8
-8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1249
SELECT - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1249
SELECT - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT ALL - 2 + + col2 * col0 * - tab0.col0 + col0 FROM tab0
----
-1192
-18986
-649435
query I rowsort
SELECT ALL - + col0 + + col2 + + 13 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
1227
36903
96999
query I rowsort
SELECT + 31 * col2 AS col0 FROM tab1 cor0
----
1674
1767
2976
query I rowsort
SELECT DISTINCT + col2 * + cor0.col2 + + 55 * col2 + col2 AS col2 FROM tab0 AS cor0
----
11316
2937
57
query I rowsort
SELECT - + ( col1 ) - + col2 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - cor0.col0 * + cor0.col0 - - ( 56 ) * col2 AS col2 FROM tab0 AS cor0
----
-1169
-3329
1272
query I rowsort
SELECT DISTINCT + + ( col1 ) * + cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + col2 * + col1 + + col1 + cor0.col1 FROM tab0 AS cor0
----
291
3010
7644
query I rowsort
SELECT ALL - - 16 * - col2 AS col0 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT ALL - + cor0.col2 + - col2 + col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1261
SELECT - col0 * + col1 + - ( + col0 ) * col0 DIV ( cor0.col0 ) + - cor0.col0 * - 66 AS col0 FROM tab0 AS cor0
----
-1120
-2314
-504
skipif mysql # not compatible
query I rowsort label-1261
SELECT - col0 * + col1 + - ( + col0 ) * col0 / ( cor0.col0 ) + - cor0.col0 * - 66 AS col0 FROM tab0 AS cor0
----
-1120
-2314
-504
query I rowsort
SELECT DISTINCT - + 46 AS col0 FROM tab2 AS cor0
----
-46
query I rowsort
SELECT ALL cor0.col2 + - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 + col0 + + col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT cor0.col0 * tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
9 values hashing to 54522441dbf7fb56e19a888572d1f6e3
query I rowsort
SELECT ALL + col0 * col0 + col2 AS col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT ALL 81 + col2 AS col2 FROM tab2
----
107
108
119
onlyif mysql # use DIV operator for integer division
query I rowsort label-1268
SELECT ALL ( + col2 ) DIV col0 + - 48 AS col2 FROM tab0
----
-47
-48
-48
skipif mysql # not compatible
query I rowsort label-1268
SELECT ALL ( + col2 ) / col0 + - 48 AS col2 FROM tab0
----
-47
-48
-48
query I rowsort
SELECT ALL - col1 * col0 - ( - 41 * col2 ) FROM tab1 AS cor0
----
1697
2136
2896
query I rowsort
SELECT cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-1271
SELECT ALL - cor0.col0 + col0 - 14 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1271
SELECT ALL - cor0.col0 + col0 - 14 / - col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 * col0 + - 71 col0 FROM tab2 cor0
----
-2099
-260
-3073
query I rowsort
SELECT ALL - - 25 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
125
194
701
query I rowsort
SELECT DISTINCT - + col2 * col0 + 21 AS col1 FROM tab1 cor0
----
-141
-3627
-7659
query I rowsort
SELECT DISTINCT col2 + col2 * 62 FROM tab2 AS cor0
----
1638
1701
2394
query I rowsort
SELECT - - col2 * - cor0.col0 + 64 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-1474
4712
6173
onlyif mysql # use DIV operator for integer division
query I rowsort label-1277
SELECT DISTINCT + 91 DIV - cor0.col1 + 84 AS col1 FROM tab1 AS cor0
----
75
77
81
skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT + 91 / - cor0.col1 + 84 AS col1 FROM tab1 AS cor0
----
75
77
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1278
SELECT + col2 DIV - 15 AS col0 FROM tab2 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-1278
SELECT + col2 / - 15 AS col0 FROM tab2 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL + col1 + + 54 FROM tab0 AS cor0
----
140
145
151
query I rowsort
SELECT + + col2 - - col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col2 - + 76 AS col1 FROM tab2 cor0
----
-102
-103
-114
query I rowsort
SELECT ALL - col2 + - ( + cor0.col0 ) FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - col1 + - 3 FROM tab0 cor0
----
-100
-89
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1285
SELECT + - col0 DIV cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1285
SELECT + - col0 / cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1286
SELECT - col2 DIV col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1286
SELECT - col2 / col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * 94 AS col1 FROM tab2 AS cor0
----
1598
2914
5546
query I rowsort
SELECT DISTINCT + - col0 + col1 FROM tab0 cor0
----
2
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + 62 col1 FROM tab0 AS cor0
----
2126
3457
8161
query I rowsort
SELECT - + col0 - ( col0 ) AS col2 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT col0 * 53 + + col2 FROM tab0 AS cor0
----
1305
1856
4799
query I rowsort
SELECT + + col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL - - 91 * cor0.col2 + cor0.col1 AS col0 FROM tab1 cor0
----
4940
5197
8749
query I rowsort
SELECT DISTINCT + - col0 - + col1 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1295
SELECT ALL + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1295
SELECT ALL + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 12 FROM tab0 AS cor0
----
12
query I rowsort
SELECT col2 + 3 AS col0 FROM tab1 AS cor0
----
57
60
99
query I rowsort
SELECT - 99 FROM tab1 AS cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT ( 86 ) * col2 + - col2 - ( - col1 ) * - col0 FROM tab2 AS cor0
----
-2392
1887
2078
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1300
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1300
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + col1 + 38 + + col0 * + col1 * ( + cor0.col2 ) FROM tab1 AS cor0
----
36528
4276
99891
onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT ALL + cor0.col2 + - ( - col1 ) DIV - ( + ( col1 ) ) + col0 FROM tab1 cor0
----
120
175
56
skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + cor0.col2 + - ( - col1 ) / - ( + ( col1 ) ) + col0 FROM tab1 cor0
----
120
175
56
query I rowsort
SELECT - ( 36 ) AS col1 FROM tab2 AS cor0
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1305
SELECT ALL + col0 - cor0.col1 DIV + cor0.col0 FROM tab2 AS cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-1305
SELECT ALL + col0 - cor0.col1 / + cor0.col0 FROM tab2 AS cor0
----
3
78
79
query I rowsort
SELECT DISTINCT 52 AS col1 FROM tab0 AS cor0
----
52
query I rowsort
SELECT ALL - cor0.col0 * - col1 + + cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT ALL + col2 + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL - 24 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2088
-3419
-8123
query I rowsort
SELECT + - col0 * col1 * col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + ( ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 * + 79 AS col0 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT - 35 + cor0.col2 FROM tab2 cor0
----
-8
-9
3
query I rowsort
SELECT ALL - ( - 65 ) * + col2 FROM tab0
----
2145
5330
65
query I rowsort
SELECT - cor0.col1 * 89 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2dca7d8c4b0c5f797ebe2c5d7c2a877f
query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-47
query I rowsort
SELECT - tab0.col1 * ( col0 + - col1 ) * + col2 FROM tab0
----
14924
175956
6014
onlyif mysql # use DIV operator for integer division
query I rowsort label-1319
SELECT ALL - col2 DIV col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - col2 / col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 58 - - cor0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d011ac622c371dd59260079f57f06e04
query I rowsort
SELECT 29 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
query I rowsort
SELECT DISTINCT + + col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL 54 * - col0 + - col2 AS col1 FROM tab2 AS cor0
----
-405
-4238
-4304
query I rowsort
SELECT - - 63 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT + 2 * cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + 37 FROM tab0 cor0
----
37
37
37
query I rowsort
SELECT ALL + - ( + cor0.col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - + cor0.col0 + 85 * col2 AS col1 FROM tab0 AS cor0
----
2781
50
6881
query I rowsort
SELECT ALL - col1 + 20 AS col1 FROM tab2 AS cor0
----
-11
-39
3
query I rowsort
SELECT 98 AS col2 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col0 * 24 AS col2 FROM tab1
----
1536
1920
72
query I rowsort
SELECT col1 * + col1 + + 50 FROM tab0 cor0
----
7446
8331
9459
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - 84 + col0 AS col0 FROM tab2 AS cor0
----
-5
-6
-77
query I rowsort
SELECT + ( col0 ) * + ( col1 ) + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT - col2 * col2 + - ( + col2 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
-2704
-4446
-918
query I rowsort
SELECT - col1 * 6 AS col1 FROM tab0
----
-516
-546
-582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1339
SELECT ALL CAST( col0 AS SIGNED ) + - tab2.col2 AS col0 FROM tab2
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL CAST ( col0 AS INTEGER ) + - tab2.col2 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT + - 26 AS col1 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT + col1 - + col1 * 77 * + col0 AS col2 FROM tab0 AS cor0
----
-158842
-261318
-623532
query I rowsort
SELECT col0 * + col2 - - 1 FROM tab2 AS cor0
----
190
2029
3003
query I rowsort
SELECT ALL + 69 FROM tab1
----
69
69
69
query I rowsort
SELECT cor0.col0 * - col2 + cor0.col1 * + col1 FROM tab0 AS cor0
----
6604
9374
983
query I rowsort
SELECT - cor0.col1 * col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1346
SELECT col1 * CAST( col1 AS SIGNED ) - cor0.col2 AS col1 FROM tab1 cor0
----
43
622
73
skipif mysql # not compatible
query I rowsort label-1346
SELECT col1 * CAST ( col1 AS INTEGER ) - cor0.col2 AS col1 FROM tab1 cor0
----
43
622
73
query I rowsort
SELECT ALL - col2 + - col0 * - 87 AS col1 FROM tab1 AS cor0
----
207
5511
6864
query I rowsort
SELECT DISTINCT + col0 * - ( 13 ) FROM tab2 cor0
----
-1014
-1027
-91
query I rowsort
SELECT - col0 + + col0 + col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + col0 + + ( cor0.col0 ) * col0 + + col0 AS col1 FROM tab1 AS cor0
----
15
4224
6560
query I rowsort
SELECT - - col0 * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + + col2 * ( 6 ) FROM tab1 AS cor0
----
324
342
576
query I rowsort
SELECT - col2 * - col0 * 74 AS col2 FROM tab1
----
11988
269952
568320
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab1 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1355
SELECT DISTINCT + col2 * - col1 - CAST( col2 AS SIGNED ) DIV + col0 FROM tab0
----
-2839
-7462
-97
skipif mysql # not compatible
query I rowsort label-1355
SELECT DISTINCT + col2 * - col1 - CAST ( col2 AS INTEGER ) / + col0 FROM tab0
----
-2839
-7462
-97
query I rowsort
SELECT col0 + - col1 + - ( + ( + col1 ) ) AS col1 FROM tab1
----
-49
44
54
query I rowsort
SELECT + col0 * - tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - + col1 * + cor0.col2 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - 47 * - col1 AS col1 FROM tab0
----
4042
4277
4559
query I rowsort
SELECT DISTINCT - col0 * 65 + col1 AS col1 FROM tab2
----
-424
-5011
-5118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 col1 FROM tab1
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1363
SELECT DISTINCT col1 * - col0 + + col2 * col0 DIV col2 FROM tab1
----
-576
-75
-960
skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT col1 * - col0 + + col2 * col0 / col2 FROM tab1
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1364
SELECT - + col1 * 48 + col1 DIV - col2 + col0 * col0 FROM tab1 AS cor0
----
-1239
3616
5776
skipif mysql # not compatible
query I rowsort label-1364
SELECT - + col1 * 48 + col1 / - col2 + col0 * col0 FROM tab1 AS cor0
----
-1239
3616
5776
query I rowsort
SELECT - col2 * + col2 - - 43 AS col0 FROM tab0 AS cor0
----
-1046
-6681
42
query I rowsort
SELECT + - col1 * ( - cor0.col2 ) + + cor0.col0 * col2 * col1 + col0 * col2 AS col0 FROM tab0 AS cor0
----
3527
678878
71742
query I rowsort
SELECT ALL - col1 + + col2 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 col0 FROM tab0
----
8
query I rowsort
SELECT ALL + col2 * col0 + + 3 FROM tab1 cor0
----
165
3651
7683
query I rowsort
SELECT ALL + 87 * + col0 FROM tab1 AS cor0
----
261
5568
6960
query I rowsort
SELECT - col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col2 FROM tab2
----
98
query I rowsort
SELECT col0 * - cor0.col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1376
SELECT col1 DIV tab1.col1 + - col2 + - tab1.col0 FROM tab1
----
-120
-175
-56
skipif mysql # not compatible
query I rowsort label-1376
SELECT col1 / tab1.col1 + - col2 + - tab1.col0 FROM tab1
----
-120
-175
-56
query I rowsort
SELECT + 94 * + col2 * - col1 FROM tab2
----
-144196
-60724
-78678
query I rowsort
SELECT DISTINCT + col0 - - tab2.col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - - 76 AS col1 FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT + 3 * col0 AS col1 FROM tab0 cor0
----
105
267
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1381
SELECT DISTINCT + - col1 + col0 DIV col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-1381
SELECT DISTINCT + - col1 + col0 / col2 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT DISTINCT + + col0 * col2 + col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT ALL - ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - col1 + col1 AS col1 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1387
SELECT DISTINCT + 6 DIV - cor0.col0 AS col0 FROM tab1 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT + 6 / - cor0.col0 AS col0 FROM tab1 AS cor0
----
-2
0
query I rowsort
SELECT + col0 - col0 * col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT + 85 * + tab0.col2 FROM tab0
----
2805
6970
85
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-1391
SELECT ALL - - 34 DIV + col0 - col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1088
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1391
SELECT ALL - - 34 / + col0 - col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1088
-6724
query I rowsort
SELECT ALL - col1 + - col1 * col1 - - 64 * + col0 FROM tab1 AS cor0
----
-510
3986
4938
query I rowsort
SELECT - 98 + + col1 AS col1 FROM tab0 cor0
----
-1
-12
-7
query I rowsort
SELECT DISTINCT col1 * + ( + col2 ) AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 48 + col1 AS col2 FROM tab1 AS cor0
----
58
61
74
query I rowsort
SELECT ALL - 26 + - 79 FROM tab2 AS cor0
----
-105
-105
-105
query I rowsort
SELECT DISTINCT - - ( col2 ) * - col1 * - 36 FROM tab1 AS cor0
----
20520
44928
50544
onlyif mysql # use DIV operator for integer division
query I rowsort label-1398
SELECT ALL col0 DIV 34 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL col0 / 34 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT 48 - - 77 FROM tab2 AS cor0
----
125
125
125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1400
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + 59 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1400
SELECT DISTINCT + CAST ( NULL AS REAL ) + 59 AS col0 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1401
SELECT - + CAST( + 45 AS SIGNED ) + col2 col2 FROM tab1 cor0
----
12
51
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1401
SELECT - + CAST ( + 45 AS INTEGER ) + col2 col2 FROM tab1 cor0
----
12
51
9
query I rowsort
SELECT ( col1 ) * col1 - col1 * + col2 FROM tab0 cor0
----
4558
819
9312
query I rowsort
SELECT DISTINCT 62 + col2 FROM tab2 cor0
----
100
88
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1404
SELECT + - ( col2 ) DIV ( - col0 ) FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1404
SELECT + - ( col2 ) / ( - col0 ) FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT 70 AS col0 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT DISTINCT + col0 - - cor0.col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1407
SELECT - col0 - col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-1407
SELECT - col0 - col1 / - col0 AS col2 FROM tab1 AS cor0
----
-64
-80
5
query I rowsort
SELECT - cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to b7a1b38fe8e4f34388e3be1f52601ae5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1409
SELECT + - 93 + - col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1409
SELECT + - 93 + - col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1410
SELECT CAST( NULL AS SIGNED ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1410
SELECT CAST ( NULL AS INTEGER ) * col2 AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1411
SELECT DISTINCT - CAST( - ( - col1 ) * + col1 AS SIGNED ) + col1 FROM tab1
----
-156
-650
-90
skipif mysql # not compatible
query I rowsort label-1411
SELECT DISTINCT - CAST ( - ( - col1 ) * + col1 AS INTEGER ) + col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT - ( col0 ) * + col0 * + tab2.col0 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT DISTINCT - ( - col2 * col2 ) + 34 * - col2 AS col0 FROM tab2
----
-189
-208
152
query I rowsort
SELECT ALL 56 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL col0 * col0 - col1 FROM tab2 cor0
----
18
6025
6224
query I rowsort
SELECT ALL + col1 * - 89 + 71 FROM tab0 AS cor0
----
-7583
-8028
-8562
query I rowsort
SELECT DISTINCT + col1 * col1 + col0 * + col1 * + ( cor0.col1 ) - col1 AS col0 FROM tab2 AS cor0
----
23103
274940
7657
onlyif mysql # use DIV operator for integer division
query I rowsort label-1418
SELECT ALL col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1418
SELECT ALL col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT cor0.col0 * 61 * + col0 AS col2 FROM tab0 AS cor0
----
35136
483181
74725
query I rowsort
SELECT ALL + + col0 + 20 * col0 FROM tab2 AS cor0
----
147
1638
1659
query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + ( + 91 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col1 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col2 col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - col2 + + 75 AS col2 FROM tab2
----
37
48
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-1427
SELECT col0 + tab0.col2 DIV 23 AS col2 FROM tab0
----
25
35
92
skipif mysql # not compatible
query I rowsort label-1427
SELECT col0 + tab0.col2 / 23 AS col2 FROM tab0
----
25
35
92
query I rowsort
SELECT + tab0.col2 - col1 AS col0 FROM tab0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1429
SELECT - col2 + - CAST( col2 AS SIGNED ) * col0 AS col0 FROM tab0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort label-1429
SELECT - col2 + - CAST ( col2 AS INTEGER ) * col0 AS col0 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT + col0 - + 56 * - ( + col2 ) FROM tab0
----
1872
4681
91
query I rowsort
SELECT - - cor0.col2 + - 17 FROM tab2 AS cor0
----
10
21
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1432
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col2 * + col2 * - col0 FROM tab1
----
207936
737280
8748
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to ab1725cc571093d8268326e5b556cfaf
onlyif mysql # use DIV operator for integer division
query I rowsort label-1435
SELECT ALL col1 DIV - ( + col0 ) AS col1 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1435
SELECT ALL col1 / - ( + col0 ) AS col1 FROM tab1
----
-8
0
0
query I rowsort
SELECT - 36 AS col2 FROM tab1
----
-36
-36
-36
query I rowsort
SELECT - - 92 FROM tab1 AS cor0
----
92
92
92
query I rowsort
SELECT + + 96 * - cor0.col2 * col1 AS col1 FROM tab0 cor0
----
-272448
-716352
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col2 col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1440
SELECT DISTINCT - 17 DIV tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - 17 / tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
0
query I rowsort
SELECT ALL + ( - 97 ) FROM tab0 AS cor0
----
-97
-97
-97
query I rowsort
SELECT ALL + 6 AS col0 FROM tab1
----
6
6
6
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1, tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + tab1.col0 AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1444
SELECT - col2 DIV col1 + + 58 FROM tab1
----
51
53
56
skipif mysql # not compatible
query I rowsort label-1444
SELECT - col2 / col1 + + 58 FROM tab1
----
51
53
56
query I rowsort
SELECT + - 96 AS col0 FROM tab1, tab2, tab1 cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT DISTINCT + ( - col2 ) AS col0 FROM tab2
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1447
SELECT DISTINCT + col1 + - col1 DIV - 73 AS col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT + col1 + - col1 / - 73 AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - 53 + + col2 FROM tab0 AS cor0
----
-20
-52
29
query I rowsort
SELECT - col1 + + cor0.col1 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197
query I rowsort
SELECT ALL - 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT - tab1.col0 * tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT 59 AS col2 FROM tab2
----
59
59
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1455
SELECT ALL + - col1 DIV + col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1455
SELECT ALL + - col1 / + col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + - col1 * - 81 AS col0 FROM tab2 AS cor0
----
1377
2511
4779
query I rowsort
SELECT DISTINCT + + col1 * + 85 FROM tab1 AS cor0
----
1105
2210
850
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT + col0 * ( + col2 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col1 * col1 + cor0.col1 + col2 AS col2 FROM tab1 AS cor0
----
-33
-596
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-1462
SELECT + col0 DIV ( col2 ) col0 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1462
SELECT + col0 / ( col2 ) col0 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT 56 * tab1.col2 AS col1 FROM tab1
----
3024
3192
5376
query I rowsort
SELECT - tab1.col2 * - tab1.col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT - - 99 AS col1 FROM tab1, tab2, tab0 AS cor0
----
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 + col0 col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + col1 * - col1 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1468
SELECT + col0 * CAST( 65 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-41600
-5070
-67600
skipif mysql # not compatible
query I rowsort label-1468
SELECT + col0 * CAST ( 65 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-41600
-5070
-67600
query I rowsort
SELECT - col0 + + 58 FROM tab0 AS cor0
----
-31
23
34
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to 1751d8ec783486b9121baa2709745253
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + col2 + + col1 * + col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL - + col1 + - 57 * - col0 FROM tab2 AS cor0
----
368
4387
4486
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT - cor0.col0 + - 93 FROM tab2 cor0
----
-100
-171
-172
query I rowsort
SELECT ALL - col2 + cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-1477
SELECT col1 * col0 + - cor0.col2 DIV col2 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-1477
SELECT col1 * col0 + - cor0.col2 / col2 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT - + col0 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col2 * + tab1.col1 AS col2 FROM tab1
----
1248
1404
570
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( col0 * - col2 / tab1.col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 IN ( + col2 + col1 + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + tab1.col1 + col1 AS col0 FROM tab1
----
20
26
52
query I rowsort
SELECT - col1 * col1 FROM tab2 WHERE NULL NOT IN ( + col0 + + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1486
SELECT - col1 + col2 + col1 DIV - col1 FROM tab1
----
27
46
82
skipif mysql # not compatible
query I rowsort label-1486
SELECT - col1 + col2 + col1 / - col1 FROM tab1
----
27
46
82
query I rowsort
SELECT tab1.col0 FROM tab1 WHERE - col2 NOT IN ( + tab1.col2 * - col0 - + tab1.col0 )
----
3
64
80
query I rowsort
SELECT tab2.col0 * + col1 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT tab1.col2 + col0 + col1 * tab1.col1 FROM tab1
----
221
345
733
onlyif mysql # use DIV operator for integer division
query I rowsort label-1490
SELECT + 64 DIV - col1 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-1490
SELECT + 64 / - col1 - + col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 - - col2 * + cor0.col0 col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + + cor0.col2 AS col2 FROM tab2, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col0 - - col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1494
SELECT + col2 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1494
SELECT + col2 / + col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + - col1 * col1 col1 FROM tab0
----
-14792
-16562
-18818
query I rowsort
SELECT col1 + col1 * - col2 AS col1 FROM tab1 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT col2 + - col0 * col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT - tab1.col0 * + col1 * - tab1.col0 FROM tab1
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 + - col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT - - 30 * + col1 * 20 AS col1 FROM tab2 AS cor0
----
10200
18600
35400
query I rowsort
SELECT DISTINCT col0 * col2 + 51 - col2 AS col2 FROM tab0 AS cor0
----
7267
810
85
query I rowsort
SELECT - - col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - col1 + col0 + - col2 FROM tab1 AS cor0
----
-29
-3
-77
query I rowsort
SELECT DISTINCT tab0.col0 * + tab0.col2 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 + - cor0.col0 col0 FROM tab2 cor0
----
-15
-16
56
query I rowsort
SELECT cor0.col1 * col1 * - cor0.col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
query I rowsort
SELECT DISTINCT - 1 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT ALL + - 70 FROM tab2 cor0
----
-70
-70
-70
query I rowsort
SELECT DISTINCT + 21 FROM tab2 AS cor0
----
21
query I rowsort
SELECT DISTINCT + 13 * col0 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT - - 64 * col2 AS col2 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab1 AS cor0
----
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-1514
SELECT ALL + 16 DIV - cor0.col0 AS col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-1514
SELECT ALL + 16 / - cor0.col0 AS col1 FROM tab2 cor0
----
-2
0
0
query I rowsort
SELECT + col1 * - col2 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-1079
-470
-728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( + col1 ) col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - - col0 * + col0 * - col2 FROM tab0 cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL col2 * + cor0.col2 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-3926
101
512
onlyif mysql # use DIV operator for integer division
query I rowsort label-1519
SELECT DISTINCT col0 DIV - 39 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT col0 / - 39 FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT + tab1.col2 * col2 AS col0 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + - ( col2 ) * - col0 col0 FROM tab2 AS cor0
----
1934
2908
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-1522
SELECT + col2 + + col0 DIV col0 AS col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-1522
SELECT + col2 + + col0 / col0 AS col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - col0 * + col2 * col2 FROM tab1 cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT + + col2 * 38 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT ALL + - 49 * + col0 AS col1 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT - cor1.col1 AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT 18 FROM tab0, tab2 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT + col0 + + 71 * - col1 FROM tab1
----
-1843
-646
-843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col0 ) col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - cor1.col2 - 40 AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 57fe4843a619b731942bf3220372bc33
query I rowsort
SELECT ALL + col1 * + col2 * - col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + 76 AS col2 FROM tab1
----
76
76
76
query I rowsort
SELECT + 64 * - col0 AS col1 FROM tab1 cor0
----
-192
-4096
-5120
query I rowsort
SELECT + col2 + ( - cor0.col0 ) * + 18 AS col2 FROM tab2 AS cor0
----
-1378
-1384
-99
query I rowsort
SELECT DISTINCT - col1 * 87 * col0 AS col2 FROM tab2
----
-116841
-18879
-400374
query I rowsort
SELECT - col1 + - ( + col0 ) FROM tab1
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1537
SELECT col2 + - col2 DIV col2 AS col2 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1537
SELECT col2 + - col2 / col2 AS col2 FROM tab0
----
0
32
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1538
SELECT CAST( - col1 AS SIGNED ) * col0 * 43 FROM tab2 AS cor0
----
-197886
-57749
-9331
skipif mysql # not compatible
query I rowsort label-1538
SELECT CAST ( - col1 AS INTEGER ) * col0 * 43 FROM tab2 AS cor0
----
-197886
-57749
-9331
query I rowsort
SELECT cor1.col2 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col0 FROM tab1
----
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-1541
SELECT DISTINCT + - cor0.col2 DIV cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
skipif mysql # not compatible
query I rowsort label-1541
SELECT DISTINCT + - cor0.col2 / cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1
query I rowsort
SELECT - 18 + col2 * tab0.col2 FROM tab0
----
-17
1071
6706
query I rowsort
SELECT ALL - col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT col2 * + col1 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col2 + cor0.col1 + + col1 * - cor0.col0 * col2 AS col1 FROM tab2 cor0
----
-119567
-50979
-5801
query I rowsort
SELECT DISTINCT + + col2 + col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - - col2 * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - - 7 + - col2 FROM tab0 AS cor0
----
-26
-75
6
query I rowsort
SELECT DISTINCT col2 * cor0.col0 - - col2 * + col0 AS col1 FROM tab1 cor0
----
15360
324
7296
query I rowsort
SELECT DISTINCT col2 - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + - 73 + - col0 FROM tab2 AS cor0
----
-151
-152
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - 58 + + cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1167
518
7863
query I rowsort
SELECT ALL + - col0 + - cor0.col2 * - col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-1556
SELECT DISTINCT - col1 DIV - col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1556
SELECT DISTINCT - col1 / - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - col0 + cor0.col1 - - col0 * - col1 * col1 AS col1 FROM tab2 AS cor0
----
-22735
-271381
-6689
query I rowsort
SELECT - + col0 + + col1 * + col0 * - col1 - col2 AS col0 FROM tab1 cor0
----
-13696
-2085
-6521
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 + col0 FROM tab0 cor0
----
1113
36
6813
query I rowsort
SELECT ALL col0 + cor0.col1 * col2 * col2 FROM tab2 AS cor0
----
22606
24627
39962
query I rowsort
SELECT DISTINCT + col1 + - col2 * - col0 AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - + col2 * col0 + + cor0.col0 * col1 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT + col2 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1565
SELECT + col0 DIV - col2 AS col2 FROM tab1 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1565
SELECT + col0 / - col2 AS col2 FROM tab1 cor0
----
-1
0
0
query I rowsort
SELECT ALL col2 + - col1 + col0 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2011
3299
8090
query I rowsort
SELECT ALL + - col1 * + ( - col0 ) AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + 40 FROM tab0
----
40
query I rowsort
SELECT 27 FROM tab0, tab2 cor0
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8
query I rowsort
SELECT ALL - - 51 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT ALL + ( - 9 ) AS col0 FROM tab2 cor0
----
-9
-9
-9
query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab2 cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + - col0 * - col1 col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT + + col0 + + 85 AS col0 FROM tab1 AS cor0
----
149
165
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1575
SELECT ALL - col0 DIV 10 + col1 col2 FROM tab0 AS cor0
----
83
84
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL - col0 / 10 + col1 col2 FROM tab0 AS cor0
----
83
84
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1576
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1576
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 10 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
-11
-363
-902
query I rowsort
SELECT + ( 21 + tab2.col2 ) AS col2 FROM tab2
----
47
48
59
query I rowsort
SELECT DISTINCT + 20 + col0 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2794
-42
-7353
query I rowsort
SELECT ALL col0 * + col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) + col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 49 AS col2 FROM tab1
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-1583
SELECT 51 + col1 DIV col0 AS col1 FROM tab1
----
51
51
59
skipif mysql # not compatible
query I rowsort label-1583
SELECT 51 + col1 / col0 AS col1 FROM tab1
----
51
51
59
query I rowsort
SELECT DISTINCT 42 * 57 FROM tab1
----
2394
query I rowsort
SELECT DISTINCT - cor0.col2 AS col1 FROM tab1, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col0 * 56 FROM tab0
----
1344
1960
4984
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + cor0.col1 col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + col0 * col2 * + col0 FROM tab2 AS cor0
----
1323
158184
237158
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT - col2 + - col2 AS col0 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL - tab1.col2 + + tab1.col1 AS col2 FROM tab1
----
-28
-47
-83
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > ( NULL )
----
query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - cor0.col0 * + col2 * - col1 ) <= ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 - col0 AND ( NULL )
----
query I rowsort
SELECT DISTINCT col1 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col1 )
----
query I rowsort
SELECT DISTINCT tab0.col1 + - col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT + col1 <= col2
----
24
35
89
query I rowsort
SELECT ALL + tab2.col0 FROM tab2 WHERE NOT + col2 IN ( + col2 )
----
query I rowsort
SELECT DISTINCT col1 + tab0.col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL col1 + col1 * col2 * + col2 AS col2 FROM tab1
----
119821
32500
75842
query I rowsort
SELECT tab2.col0 * + tab2.col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL - tab0.col0 + tab0.col1 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL col2 + + tab2.col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 FROM tab0
----
-2031
-3394
-8017
query III rowsort
SELECT * FROM tab0 WHERE NULL <> col0
----
query I rowsort
SELECT DISTINCT - col1 * + col1 + col0 FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT col2 + - col2 * col2 AS col1 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT + col1 + tab0.col1 + col0 AS col1 FROM tab0
----
196
229
271
query I rowsort
SELECT ALL - col0 * col0 + + col0 + + col2 AS col1 FROM tab1
----
-3975
-6224
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-1611
SELECT col2 + - col0 - cor0.col0 DIV - col2 FROM tab1 AS cor0
----
-6
16
51
skipif mysql # not compatible
query I rowsort label-1611
SELECT col2 + - col0 - cor0.col0 / - col2 FROM tab1 AS cor0
----
-6
16
51
query I rowsort
SELECT ALL col0 * - tab1.col1 + - tab1.col1 AS col1 FROM tab1
----
-104
-1053
-650
query I rowsort
SELECT ALL col2 + col1 + - col1 AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col1 + col0 * col0 FROM tab1
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-1615
SELECT ALL + col2 * + col0 + col0 DIV col2 col1 FROM tab1
----
162
3649
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1615
SELECT ALL + col2 * + col0 + col0 / col2 col1 FROM tab1
----
162
3649
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col0 * + col2 col0 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL - col1 * col1 AS col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT ALL + - col2 + + col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT - + col2 DIV col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1620
SELECT - + col2 / col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col0 + col0 * - col2 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 - + col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT - - col0 * col1 AS col2 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col2 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1625
SELECT col0 + - cor0.col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-1625
SELECT col0 + - cor0.col0 / - col0 AS col2 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT - col0 + + col2 * - col2 FROM tab2 AS cor0
----
-1523
-736
-754
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 9a402ad2669465fb284445c499a48f2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1628
SELECT DISTINCT + + col1 + + cor0.col2 DIV col1 - 94 * - 50 AS col1 FROM tab0 AS cor0
----
4786
4791
4797
skipif mysql # not compatible
query I rowsort label-1628
SELECT DISTINCT + + col1 + + cor0.col2 / col1 - 94 * - 50 AS col1 FROM tab0 AS cor0
----
4786
4791
4797
query I rowsort
SELECT + ( col0 ) * + col2 * cor0.col1 AS col1 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT - cor0.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL - tab0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT - 74 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-15
-43
-57
query I rowsort
SELECT 28 * ( col0 * ( + col1 ) ) AS col1 FROM tab2
----
128856
37604
6076
query I rowsort
SELECT + ( 14 ) FROM tab0
----
14
14
14
query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab1
----
17
query I rowsort
SELECT DISTINCT - 39 FROM tab0, tab2 AS cor0
----
-39
query I rowsort
SELECT ( 37 ) * - tab2.col1 + + tab2.col1 FROM tab2
----
-1116
-2124
-612
query I rowsort
SELECT - ( col2 ) * col1 + - 84 * - col1 - + col2 * - ( col0 * col0 ) FROM tab0
----
23394
649704
9276
query I rowsort
SELECT DISTINCT 9 + + 17 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
26
query I rowsort
SELECT ALL col1 + + cor0.col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col1 AS col0 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT - ( tab2.col0 * + col1 + + col1 ) FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab0 cor0
----
86
91
97
query I rowsort
SELECT - 0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * ( + cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + col2 * 55 FROM tab0 cor0
----
1815
4510
55
query I rowsort
SELECT - col1 * + 11 AS col1 FROM tab2 AS cor0
----
-187
-341
-649
onlyif mysql # use DIV operator for integer division
query I rowsort label-1648
SELECT - tab1.col2 DIV ( tab1.col1 ) + - col2 AS col2 FROM tab1
----
-103
-56
-62
skipif mysql # not compatible
query I rowsort label-1648
SELECT - tab1.col2 / ( tab1.col1 ) + - col2 AS col2 FROM tab1
----
-103
-56
-62
query I rowsort
SELECT - col0 + - 95 * col1 * col0 AS col2 FROM tab1
----
-60864
-7413
-98880
query I rowsort
SELECT - tab0.col2 * col2 * ( col1 ) + + col0 FROM tab0
----
-611795
-62
-93630
query I rowsort
SELECT col2 + + 12 FROM tab1
----
108
66
69
query I rowsort
SELECT col0 * 0 + 77 * col2 FROM tab0
----
2541
6314
77
query I rowsort
SELECT 91 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT 24 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT + 88 AS col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT + - col2 * - cor0.col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - + 95 FROM tab2 AS cor0
----
-95
query I rowsort
SELECT DISTINCT 38 FROM tab2 cor0
----
38
query I rowsort
SELECT - - ( ( - col0 ) ) FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT 89 + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-1254
-128
-4513
query I rowsort
SELECT ALL + + col2 + + 0 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT ( + 39 ) + + col0 * col0 FROM tab1 AS cor0
----
4135
48
6439
query I rowsort
SELECT DISTINCT - 42 * col1 FROM tab2 AS cor0
----
-1302
-2478
-714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 * - cor0.col2 col2 FROM tab2 AS cor0
----
1092
1134
1596
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1665
SELECT + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1665
SELECT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - 39 + - 79 AS col0 FROM tab2
----
-118
-118
-118
query I rowsort
SELECT ALL 2 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT ALL - cor0.col2 + 65 FROM tab1 cor0
----
-31
11
8
query I rowsort
SELECT - cor0.col2 * cor0.col1 + col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-1670
SELECT DISTINCT 23 + 83 DIV + col1 FROM tab1 AS cor0
----
26
29
31
skipif mysql # not compatible
query I rowsort label-1670
SELECT DISTINCT 23 + 83 / + col1 FROM tab1 AS cor0
----
26
29
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-1671
SELECT DISTINCT + 52 DIV + 24 + col0 AS col0 FROM tab2 AS cor0
----
80
81
9
skipif mysql # not compatible
query I rowsort label-1671
SELECT DISTINCT + 52 / + 24 + col0 AS col0 FROM tab2 AS cor0
----
80
81
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1672
SELECT - CAST( ( cor0.col1 ) AS SIGNED ) + + col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1672
SELECT - CAST ( ( cor0.col1 ) AS INTEGER ) + + col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - ( - col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + col2 * col0 + - col2 * - ( - cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-1536
-2754
399
onlyif mysql # use DIV operator for integer division
query I rowsort label-1676
SELECT col2 DIV col2 col0 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1676
SELECT col2 / col2 col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL 57 * - 55 * col1 FROM tab0 AS cor0
----
-269610
-285285
-304095
query I rowsort
SELECT DISTINCT - - ( - 50 ) FROM tab1 AS cor0
----
-50
query I rowsort
SELECT ALL 53 AS col1 FROM tab1 AS cor0
----
53
53
53
query I rowsort
SELECT + 36 + + col1 * + col1 AS col2 FROM tab1 AS cor0
----
136
205
712
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col0 AS REAL ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - 18 AS col0 FROM tab1 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + col0 + col0 * 0 FROM tab1
----
3
64
80
query I rowsort
SELECT - cor0.col2 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + ( col0 ) - 57 AS col0 FROM tab1 AS cor0
----
-54
23
7
query I rowsort
SELECT col1 + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL col1 * + col0 * ( col0 ) - + col2 AS col2 FROM tab0 AS cor0
----
118824
49503
720729
query I rowsort
SELECT col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT cor0.col2 + - col0 + 25 FROM tab0 AS cor0
----
-9
18
34
query I rowsort
SELECT DISTINCT + + col2 * cor0.col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + + 99 * col2 * + col2 FROM tab0 AS cor0
----
107811
665676
99
query I rowsort
SELECT + - 54 + - col2 AS col0 FROM tab0 cor0
----
-136
-55
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1693
SELECT ALL + 1 DIV cor0.col2 + - col0 + ( - col2 + 9 ) * col0 FROM tab1 cor0
----
-138
-3136
-7040
skipif mysql # not compatible
query I rowsort label-1693
SELECT ALL + 1 / cor0.col2 + - col0 + ( - col2 + 9 ) * col0 FROM tab1 cor0
----
-138
-3136
-7040
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT - col0 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-1696
SELECT + - 9 DIV col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-838
skipif mysql # not compatible
query I rowsort label-1696
SELECT + - 9 / col0 + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-838
query I rowsort
SELECT - - 60 * - col1 - - 64 * col2 AS col2 FROM tab1 AS cor0
----
1896
3048
5364
query I rowsort
SELECT ALL col1 + + ( + 47 ) + + col0 * col0 FROM tab1 AS cor0
----
4153
6460
82
query I rowsort
SELECT + col1 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 * 50 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab2
----
71
query I rowsort
SELECT ALL - col2 + 77 * + ( - col1 ) AS col0 FROM tab0 AS cor0
----
-6655
-7089
-7470
onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT tab1.col0 DIV ( + tab1.col0 ) FROM tab1, tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT tab1.col0 / ( + tab1.col0 ) FROM tab1, tab2 AS cor0
----
1
query I rowsort
SELECT + - col0 * - col2 + 59 FROM tab2 AS cor0
----
2087
248
3061
query I rowsort
SELECT ALL - + ( + col2 ) * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1706
SELECT + - col1 + + col2 DIV + 40 FROM tab0 AS cor0
----
-86
-89
-97
skipif mysql # not compatible
query I rowsort label-1706
SELECT + - col1 + + col2 / + 40 FROM tab0 AS cor0
----
-86
-89
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1707
SELECT ALL CAST( col1 + + col2 AS SIGNED ) FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL CAST ( col1 + + col2 AS INTEGER ) FROM tab0
----
119
173
98
query I rowsort
SELECT DISTINCT - - 58 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-4988
-5278
-5626
query I rowsort
SELECT + 36 * cor0.col0 AS col0 FROM tab2 cor0
----
252
2808
2844
query I rowsort
SELECT DISTINCT + ( col0 ) * col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 28 * - col0 - + ( col1 ) FROM tab0 AS cor0
----
-1077
-2583
-758
query I rowsort
SELECT ALL - 70 FROM tab2 AS cor0
----
-70
-70
-70
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2, tab1 AS cor2, tab0
----
13122 values hashing to cc45aaa9b5f9d153712ef9d71229b95d
query I rowsort
SELECT - - col2 * + col2 * + 53 + col1 FROM tab1 AS cor0
----
154574
172207
488461
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2, tab1 cor1
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col0 + col1 col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + cor0.col0 - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * - 92 + col2 FROM tab2 AS cor0
----
-617
-7150
-7230
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1721
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 93 FROM tab0, tab0 AS cor0
----
93
query I rowsort
SELECT 59 + cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1593
705
896
query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab0 AS cor0
----
57
query I rowsort
SELECT ALL cor0.col1 + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + + 84 * + ( cor0.col2 ) FROM tab2 AS cor0
----
2184
2268
3192
query I rowsort
SELECT + col1 * col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 26 AS col2 FROM tab2, tab1, tab1 cor0
----
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1729
SELECT 19 DIV col1 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1729
SELECT 19 / col1 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + col1 * + 40 * col2 FROM tab2 AS cor0
----
25840
33480
61360
onlyif mysql # use DIV operator for integer division
query I rowsort label-1731
SELECT - ( 57 ) DIV col0 AS col2 FROM tab2 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-1731
SELECT - ( 57 ) / col0 AS col2 FROM tab2 AS cor0
----
-8
0
0
query I rowsort
SELECT + ( + 59 ) * - col2 FROM tab1
----
-3186
-3363
-5664
query I rowsort
SELECT col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + 80 + col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4176
6480
89
query I rowsort
SELECT DISTINCT 64 + + col0 FROM tab1 AS cor0
----
128
144
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 + - col0 * col1 col2 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT DISTINCT - + 54 FROM tab2 AS cor0
----
-54
query I rowsort
SELECT col2 + ( - col0 + 78 * col1 ) AS col1 FROM tab1 AS cor0
----
1030
2079
773
onlyif mysql # use DIV operator for integer division
query I rowsort label-1739
SELECT - 99 + + col0 DIV - col1 FROM tab2 AS cor0
----
-100
-103
-99
skipif mysql # not compatible
query I rowsort label-1739
SELECT - 99 + + col0 / - col1 FROM tab2 AS cor0
----
-100
-103
-99
query I rowsort
SELECT col1 * col1 + + col1 FROM tab2 cor0
----
306
3540
992
skipif mysql # not compatible
query I rowsort
SELECT ( col0 ) * - CAST ( - cor0.col0 AS REAL ) AS col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ( col0 ) * + ( cor0.col2 ) + col1 * - col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1268
3068
6419
query I rowsort
SELECT - col0 * col1 + + 19 * cor0.col1 AS col0 FROM tab2 cor0
----
-1020
-3481
372
query I rowsort
SELECT ALL - cor0.col0 + + ( cor0.col1 * col2 + cor0.col1 ) AS col2 FROM tab0 AS cor0
----
159
2900
7464
query I rowsort
SELECT + col2 + + cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col1 + 73 * 90 AS col1 FROM tab0 AS cor0
----
6656
6661
6667
query I rowsort
SELECT ALL + col1 * - 30 + 57 FROM tab1 AS cor0
----
-243
-333
-723
query I rowsort
SELECT + col1 - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL tab0.col0 + 68 FROM tab0
----
103
157
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1750
SELECT + cor0.col0 + - cor0.col2 DIV + col1 col1 FROM tab1 AS cor0
----
1
59
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1750
SELECT + cor0.col0 + - cor0.col2 / + col1 col1 FROM tab1 AS cor0
----
1
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT col0 * 22 + col2 DIV - tab2.col0 AS col2 FROM tab2
----
151
1716
1738
skipif mysql # not compatible
query I rowsort label-1751
SELECT col0 * 22 + col2 / - tab2.col0 AS col2 FROM tab2
----
151
1716
1738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + ( - col0 ) col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + 91 - col0 AS col1 FROM tab0 AS cor0
----
2
56
67
query I rowsort
SELECT 87 * + cor0.col0 - col0 AS col2 FROM tab1 AS cor0
----
258
5504
6880
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col1 AS REAL ) / - col1 + - col0 FROM tab0 AS cor0
----
-25
-36
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1756
SELECT col0 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1756
SELECT col0 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 77 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
onlyif mysql # use DIV operator for integer division
query I rowsort label-1758
SELECT ALL col1 DIV + 44 + 34 DIV tab1.col0 AS col1 FROM tab1
----
0
0
11
skipif mysql # not compatible
query I rowsort label-1758
SELECT ALL col1 / + 44 + 34 / tab1.col0 AS col1 FROM tab1
----
0
0
11
query I rowsort
SELECT + 50 * + col1 + - col2 * 90 AS col0 FROM tab0
----
-2830
1330
4760
query I rowsort
SELECT - + col0 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + + col0 * col0 * 66 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
266688
414720
432
query I rowsort
SELECT + 38 FROM tab1 AS cor0
----
38
38
38
query I rowsort
SELECT - 6 + + col1 * + 86 FROM tab0 AS cor0
----
7390
7820
8336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1765
SELECT ALL + - col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + - col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 39 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT + tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + - col1 * - col0 * + col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - col1 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT - + col0 * ( - ( cor0.col1 ) * col1 ) + col0 * col2 + - 41 FROM tab1 cor0
----
10007
21159
2149
query I rowsort
SELECT DISTINCT + col2 - + 21 * - ( col1 ) AS col2 FROM tab0 AS cor0
----
1839
1993
2038
query I rowsort
SELECT ALL + col2 + - ( - col2 * col2 + + 79 ) FROM tab0 AS cor0
----
-77
1043
6727
query I rowsort
SELECT DISTINCT + col2 * - col2 * 51 + cor0.col1 * + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-335462
-52701
46
query I rowsort
SELECT DISTINCT col2 + - 28 FROM tab0 AS cor0
----
-27
5
54
query I rowsort
SELECT + 60 FROM tab2
----
60
60
60
query I rowsort
SELECT + cor0.col2 * - ( + 45 + tab0.col2 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to a310c56f5b46b094b0f01079b39673b5
query I rowsort
SELECT ( + 82 ) + - col0 * 61 FROM tab2 AS cor0
----
-345
-4676
-4737
query I rowsort
SELECT + - 19 + col1 FROM tab2 AS cor0
----
-2
12
40
query I rowsort
SELECT - 36 + col0 AS col2 FROM tab2 AS cor0
----
-29
42
43
query I rowsort
SELECT tab2.col0 * tab2.col1 AS col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col2 * + ( - col1 ) * col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT - 67 AS col1 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT + tab2.col1 * - col1 FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT - col1 * tab1.col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - col1 * 16 AS col2 FROM tab1 AS cor0
----
-160
-208
-416
onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT - col0 * col1 + + col2 DIV + col1 FROM tab2 AS cor0
----
-1341
-217
-4602
skipif mysql # not compatible
query I rowsort label-1787
SELECT - col0 * col1 + + col2 / + col1 FROM tab2 AS cor0
----
-1341
-217
-4602
query I rowsort
SELECT + col1 + + 25 FROM tab0 AS cor0
----
111
116
122
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT - CAST( + col0 * col0 AS SIGNED ) - tab2.col2 AS col0 FROM tab2
----
-6110
-6279
-76
skipif mysql # not compatible
query I rowsort label-1789
SELECT - CAST ( + col0 * col0 AS INTEGER ) - tab2.col2 AS col0 FROM tab2
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT col1 * - col1 * + col0 + 49 AS col1 FROM tab1
----
-13471
-1979
-6351
query I rowsort
SELECT ALL cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + 84 * - col1 * + col2 FROM tab2 AS cor0
----
-128856
-54264
-70308
query I rowsort
SELECT col0 - col0 AS col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 col1 FROM tab1 cor0
----
91
91
91
query I rowsort
SELECT + - 38 * + col0 AS col0 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT - col2 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + 91 + + col0 FROM tab2 AS cor0
----
169
170
98
query I rowsort
SELECT ALL col1 + + col2 * + ( - col0 ) AS col2 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT + ( - col2 ) * - col2 + - 6 FROM tab1 AS cor0
----
2910
3243
9210
query I rowsort
SELECT ALL col2 + col0 * - tab2.col0 + - tab2.col0 AS col2 FROM tab2
----
-29
-6136
-6282
query I rowsort
SELECT DISTINCT cor0.col2 AS col0 FROM tab0, tab2, tab2 cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) + col1 * ( + 94 ) FROM tab0
----
8117
8636
9119
query I rowsort
SELECT ( + 56 * tab2.col2 ) FROM tab2
----
1456
1512
2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1804
SELECT ALL + - CAST( NULL AS SIGNED ) * 86 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1804
SELECT ALL + - CAST ( NULL AS INTEGER ) * 86 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL col2 + - 14 * col0 + + 88 * + col1 FROM tab0
----
6844
7265
8047
query I rowsort
SELECT 57 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT col1 * col2 + 6 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
1066
172
795
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col2 * + col0 col1 FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 col1 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL col1 * + cor0.col2 + + col0 * 93 FROM tab1 AS cor0
----
1683
6522
8688
query I rowsort
SELECT DISTINCT cor0.col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + cor0.col0 * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL 58 + + cor0.col2 AS col2 FROM tab2 cor0
----
84
85
96
query I rowsort
SELECT 11 * - col2 AS col1 FROM tab2 AS cor0
----
-286
-297
-418
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1815
SELECT ALL - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1815
SELECT ALL - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT tab1.col0 + + col1 * + ( col2 ) - - col1 FROM tab1
----
1341
1433
644
onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT ALL col0 - - col1 DIV col2 AS col1 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL col0 - - col1 / col2 AS col1 FROM tab0
----
132
26
90
query I rowsort
SELECT - ( 82 ) + + cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
27 values hashing to 4c86ce13d4d0386ea627ac134df4a04a
query I rowsort
SELECT ALL col2 - col0 * + 88 AS col0 FROM tab1
----
-210
-5575
-6944
query I rowsort
SELECT - col2 * 33 FROM tab1 AS cor0
----
-1782
-1881
-3168
query I rowsort
SELECT DISTINCT - col1 + + col2 - - 88 * + col0 FROM tab0 AS cor0
----
2059
2984
7823
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1822
SELECT ALL + CAST( NULL AS SIGNED ) + + tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1822
SELECT ALL + CAST ( NULL AS INTEGER ) + + tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - cor0.col2 * - col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + + col0 - - 23 AS col1 FROM tab0 AS cor0
----
112
47
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1825
SELECT DISTINCT + 35 DIV + col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1825
SELECT DISTINCT + 35 / + col2 FROM tab0 AS cor0
----
0
1
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-1826
SELECT + + 87 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5
skipif mysql # not compatible
query I rowsort label-1826
SELECT + + 87 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-2
-5
query I rowsort
SELECT DISTINCT - col1 * - col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1828
SELECT CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1828
SELECT CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 94 FROM tab0, tab0 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT + ( ( cor0.col2 ) ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + 42 * cor0.col1 FROM tab0 AS cor0
----
3612
3822
4074
query I rowsort
SELECT DISTINCT - 47 FROM tab1 AS cor0
----
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1833
SELECT ALL - col0 + ( - col1 ) DIV + col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1833
SELECT ALL - col0 + ( - col1 ) / + col2 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1834
SELECT - - col1 * col1 * col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1834
SELECT - - col1 * col1 * col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 30 FROM tab0, tab2 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 6993f5c634597e63319c949df6b4733d
query I rowsort
SELECT - - col0 * - cor0.col2 + 28 * col0 FROM tab0 AS cor0
----
-120
-4806
945
query I rowsort
SELECT DISTINCT - col1 + ( - col1 ) AS col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT ALL - col0 DIV - col0 - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-1839
SELECT ALL - col0 / - col0 - col0 AS col2 FROM tab0 AS cor0
----
-23
-34
-88
query I rowsort
SELECT - cor0.col2 * ( col0 ) + - col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL + col2 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + col0 + ( - 78 ) FROM tab2 cor0
----
-156
-157
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1843
SELECT ALL cor0.col1 * CAST( col1 AS SIGNED ) + - col1 FROM tab2 AS cor0
----
272
3422
930
skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL cor0.col1 * CAST ( col1 AS INTEGER ) + - col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT + col0 + + ( col0 ) FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT ALL - col0 * - col2 * 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 - col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 + + col0 * + col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT + - col2 * col1 + - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT + + cor0.col1 AS col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1850
SELECT + 30 + 60 DIV col2 FROM tab0 AS cor0
----
30
31
90
skipif mysql # not compatible
query I rowsort label-1850
SELECT + 30 + 60 / col2 FROM tab0 AS cor0
----
30
31
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 col0 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT 89 AS col0 FROM tab0, tab1 AS cor0
----
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1853
SELECT DISTINCT + + CAST( 16 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
16
skipif mysql # not compatible
query I rowsort label-1853
SELECT DISTINCT + + CAST ( 16 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col0 col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col0 + - 98 * + col1 FROM tab1 AS cor0
----
-1194
-2545
-916
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 1 * col0 col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + ( + cor0.col0 ) * col0 - col1 * col0 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-16590
-265434
-6678
query I rowsort
SELECT ALL ( col0 ) * + 76 FROM tab2 AS cor0
----
532
5928
6004
query I rowsort
SELECT - ( cor0.col1 ) * + 17 FROM tab2 AS cor0
----
-1003
-289
-527
query I rowsort
SELECT ALL ( 17 ) * - tab2.col1 AS col1 FROM tab2
----
-1003
-289
-527
query I rowsort
SELECT ALL + 5 + col1 FROM tab2
----
22
36
64
query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT ALL 21 * col0 + col1 FROM tab2
----
1676
1697
178
onlyif mysql # use DIV operator for integer division
query I rowsort label-1864
SELECT + col0 DIV col0 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1864
SELECT + col0 / col0 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT 27 * col0 FROM tab1
----
1728
2160
81
query I rowsort
SELECT ALL + tab2.col1 * + col0 + - ( 87 ) + tab2.col0 AS col2 FROM tab2
----
1335
137
4593
query I rowsort
SELECT DISTINCT + + col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + cor0.col1 * + col2 - col2 * col2 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT + col0 + + col0 * + col0 AS col2 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1871
SELECT + + col2 * col2 - CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1871
SELECT + + col2 * col2 - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 89 + col2 AS col2 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT col0 * + col2 - col0 AS col1 FROM tab2 AS cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + col0 col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - tab0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query I rowsort
SELECT DISTINCT + cor0.col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - 57 * col2 FROM tab1 AS cor0
----
-3078
-3249
-5472
onlyif mysql # use DIV operator for integer division
query I rowsort label-1878
SELECT DISTINCT 10 * col0 + - 44 DIV - col1 AS col1 FROM tab1 cor0
----
31
644
803
skipif mysql # not compatible
query I rowsort label-1878
SELECT DISTINCT 10 * col0 + - 44 / - col1 AS col1 FROM tab1 cor0
----
31
644
803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 6 - 81 col1 FROM tab1 AS cor0
----
-49
-62
-65
query I rowsort
SELECT DISTINCT - col0 * 95 FROM tab0
----
-2280
-3325
-8455
onlyif mysql # use DIV operator for integer division
query I rowsort label-1881
SELECT + col2 + + col0 - + col0 DIV col0 FROM tab1 AS cor0
----
120
175
56
skipif mysql # not compatible
query I rowsort label-1881
SELECT + col2 + + col0 - + col0 / col0 FROM tab1 AS cor0
----
120
175
56
query I rowsort
SELECT + col0 - col0 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL ( + col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 65 AS REAL ) FROM tab0 AS cor0
----
-65
-65
-65
query I rowsort
SELECT ALL ( + col2 + col2 ) FROM tab2
----
52
54
76
query I rowsort
SELECT ALL - + cor0.col2 + - col2 * - col1 FROM tab0 AS cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab1 AS cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-1888
SELECT col0 + - col1 DIV col0 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-1888
SELECT col0 + - col1 / col0 FROM tab0 AS cor0
----
21
33
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1889
SELECT - + col2 * col0 DIV + 23 AS col0 FROM tab1 AS cor0
----
-158
-333
-7
skipif mysql # not compatible
query I rowsort label-1889
SELECT - + col2 * col0 / + 23 AS col0 FROM tab1 AS cor0
----
-158
-333
-7
query I rowsort
SELECT + 88 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab1
----
62
query I rowsort
SELECT 9 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - ( 41 ) AS col2 FROM tab0
----
-41
-41
-41
query I rowsort
SELECT col2 + + 34 * col0 AS col1 FROM tab1
----
156
2233
2816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 13 col2 FROM tab0, tab2, tab0 AS cor0
----
13
query I rowsort
SELECT DISTINCT tab1.col0 + - col1 AS col0 FROM tab1 WHERE ( NULL ) <= ( col0 )
----
query I rowsort
SELECT - col0 * tab2.col2 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col2 + + col0 * + col0 FROM tab0
----
1226
609
8003
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1900
SELECT ALL col1 * col1 - col1 DIV col1 AS col0 FROM tab1
----
168
675
99
skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL col1 * col1 - col1 / col1 AS col0 FROM tab1
----
168
675
99
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 col0 * - col1 + - col2 + col0 FROM tab0
----
-2073
-3361
-8092
onlyif mysql # use DIV operator for integer division
query I rowsort label-1903
SELECT col1 + col1 DIV - tab0.col1 + col1 DIV tab0.col2 AS col1 FROM tab0
----
193
87
91
skipif mysql # not compatible
query I rowsort label-1903
SELECT col1 + col1 / - tab0.col1 + col1 / tab0.col2 AS col1 FROM tab0
----
193
87
91
query I rowsort
SELECT + tab0.col2 + - col2 + + tab0.col1 * col2 * + col1 AS col2 FROM tab0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT col0 * col0 AS col2 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 col0 FROM tab2
----
189
2028
3002
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( tab1.col0 + col0 )
----
query I rowsort
SELECT ALL tab2.col1 * - col0 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab0.col0 * + col1 col1 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT 30 + col0 AS col2 FROM tab0 AS cor0
----
119
54
65
query I rowsort
SELECT DISTINCT col0 * - col1 AS col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 * + col2 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - - 40 + col1 * + col0 FROM tab0 AS cor0
----
2104
3435
8139
query I rowsort
SELECT DISTINCT - 39 * col0 AS col1 FROM tab0 AS cor0
----
-1365
-3471
-936
query I rowsort
SELECT - col2 - + col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT - col0 - + col0 * col2 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT ALL col0 * col2 + - col1 DIV tab2.col0 + col2 FROM tab2
----
2054
212
3040
skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL col0 * col2 + - col1 / tab2.col0 + col2 FROM tab2
----
2054
212
3040
query I rowsort
SELECT - tab1.col0 * tab1.col1 * col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT + col1 * col0 + - col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT ALL - tab2.col0 + + tab2.col2 + + col2 AS col0 FROM tab2
----
-26
-3
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-1921
SELECT DISTINCT + col1 DIV + col2 + col1 + col1 FROM tab1
----
20
26
52
skipif mysql # not compatible
query I rowsort label-1921
SELECT DISTINCT + col1 / + col2 + col1 + col1 FROM tab1
----
20
26
52
query I rowsort
SELECT - col0 / + col0 + tab1.col2 * + tab1.col0 AS col1 FROM tab1 WHERE NULL NOT IN ( - col0 * col0 )
----
query I rowsort
SELECT ALL + col2 * col0 - - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-1924
SELECT + col0 + - cor0.col0 DIV + col2 FROM tab1 AS cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-1924
SELECT + col0 + - cor0.col0 / + col2 FROM tab1 AS cor0
----
3
63
80
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col1 ) > NULL
----
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 - - col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 * - tab1.col0 + col1 FROM tab1
----
35
4106
6413
query I rowsort
SELECT ALL + col1 + - col0 * col1 * + col2 AS col0 FROM tab2
----
-119593
-51017
-5828
query I rowsort
SELECT ALL - col0 + - col0 * col2 AS col2 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT col0 * tab2.col1 * col0 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL + col0 * tab0.col2 AS col0 FROM tab0
----
35
7298
792
query III rowsort
SELECT * FROM tab0 WHERE NULL <= - col1 * col2 + col0 + col0
----
query I rowsort
SELECT DISTINCT + col2 + - col0 AS col1 FROM tab2
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 col1 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT col1 * col0 + col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT col0 * col2 AS col0 FROM tab0 WHERE NOT ( - col0 * col1 ) <= - col0
----
query I rowsort
SELECT + col2 - 50 AS col2 FROM tab1 cor0
----
4
46
7
query I rowsort
SELECT col0 + + col2 AS col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT + ( + 76 ) AS col1 FROM tab2 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - col0 + 12 AS col0 FROM tab1 AS cor0
----
-52
-68
9
query I rowsort
SELECT + ( - ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col2 * + 36 + 75 FROM tab0
----
-1113
-2877
39
query I rowsort
SELECT DISTINCT + + ( 91 ) + col1 * + 72 FROM tab1 cor0
----
1027
1963
811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1945
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + 90 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1945
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + 90 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ( + col0 ) * - col2 - col2 * 47 FROM tab0 cor0
----
-11152
-2343
-82
query I rowsort
SELECT DISTINCT + 79 - ( - col1 ) FROM tab0 AS cor0
----
165
170
176
onlyif mysql # use DIV operator for integer division
query I rowsort label-1948
SELECT ALL + 80 DIV + col2 FROM tab0 AS cor0
----
0
2
80
skipif mysql # not compatible
query I rowsort label-1948
SELECT ALL + 80 / + col2 FROM tab0 AS cor0
----
0
2
80
query I rowsort
SELECT + ( - col2 ) - + col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col2 + + 96 * - col2 + + col2 AS col0 FROM tab2
----
-2444
-2538
-3572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1951
SELECT DISTINCT CAST( + ( col2 ) AS SIGNED ) + - col2 * col2 FROM tab1
----
-2862
-3192
-9120
skipif mysql # not compatible
query I rowsort label-1951
SELECT DISTINCT CAST ( + ( col2 ) AS INTEGER ) + - col2 * col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT DISTINCT + col1 + + 7 AS col1 FROM tab0
----
104
93
98
query I rowsort
SELECT DISTINCT + cor0.col2 + + col2 + 34 FROM tab2 AS cor0
----
110
86
88
query I rowsort
SELECT ALL col0 * + col0 + + col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT DISTINCT ( col0 ) * + ( - col0 + cor0.col1 ) FROM tab0 AS cor0
----
1488
178
2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 2 col0 FROM tab2 AS cor0
----
2
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1957
SELECT DISTINCT + 70 * col0 + col0 * + CAST( tab0.col0 AS SIGNED ) AS col1 FROM tab0
----
14151
2256
3675
skipif mysql # not compatible
query I rowsort label-1957
SELECT DISTINCT + 70 * col0 + col0 * + CAST ( tab0.col0 AS INTEGER ) AS col1 FROM tab0
----
14151
2256
3675
query I rowsort
SELECT ALL 61 + 88 FROM tab1
----
149
149
149
query I rowsort
SELECT ALL + 89 + ( - col2 ) FROM tab1
----
-7
32
35
query I rowsort
SELECT DISTINCT cor0.col0 * - 15 AS col0 FROM tab0 cor0
----
-1335
-360
-525
query I rowsort
SELECT ALL + cor0.col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1962
SELECT col2 + col0 DIV - col0 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1962
SELECT col2 + col0 / - col0 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT + col2 * + 65 * + col2 AS col2 FROM tab1 AS cor0
----
189540
211185
599040
query I rowsort
SELECT ALL - - cor0.col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - col2 * col1 * - col0 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT DISTINCT - col1 DIV - ( + col2 + + col0 ) AS col1 FROM tab0 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - col1 / - ( + col2 + + col0 ) AS col1 FROM tab0 cor0
----
0
1
2
query I rowsort
SELECT DISTINCT - + col2 + 27 FROM tab1 AS cor0
----
-27
-30
-69
onlyif mysql # use DIV operator for integer division
query I rowsort label-1968
SELECT ( + col2 ) DIV 65 + 69 FROM tab2
----
69
69
69
skipif mysql # not compatible
query I rowsort label-1968
SELECT ( + col2 ) / 65 + 69 FROM tab2
----
69
69
69
query I rowsort
SELECT ALL ( - col0 ) * + tab2.col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT DISTINCT col2 * col1 DIV + 68 FROM tab0
----
1
109
41
skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT col2 * col1 / + 68 FROM tab0
----
1
109
41
query I rowsort
SELECT + 48 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT ALL + + col1 + col0 * 48 * + col0 AS col2 FROM tab0 AS cor0
----
27734
380299
58897
onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT ALL col0 DIV 53 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL col0 / 53 AS col1 FROM tab1 AS cor0
----
0
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1974
SELECT DISTINCT col1 * CAST( ( col2 ) AS SIGNED ) FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-1974
SELECT DISTINCT col1 * CAST ( ( col2 ) AS INTEGER ) FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + - col0 + ( - 94 ) AS col1 FROM tab1 cor0
----
-158
-174
-97
query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 * - col0 FROM tab0 cor0
----
2031
3394
8017
query I rowsort
SELECT col0 * - 35 AS col1 FROM tab2 AS cor0
----
-245
-2730
-2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-1979
SELECT tab1.col0 DIV - tab1.col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1979
SELECT tab1.col0 / - tab1.col2 FROM tab1
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1980
SELECT DISTINCT CAST( 48 AS SIGNED ) * col1 AS col2 FROM tab2
----
1488
2832
816
skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT CAST ( 48 AS INTEGER ) * col1 AS col2 FROM tab2
----
1488
2832
816
query I rowsort
SELECT ALL + 49 * col0 AS col2 FROM tab2
----
343
3822
3871
query I rowsort
SELECT ALL col0 + + 64 * col0 * - tab2.col2 AS col1 FROM tab2
----
-12089
-129714
-192049
query I rowsort
SELECT ALL + col0 * + ( - tab1.col2 ) * - tab1.col0 + + col1 * tab1.col1 FROM tab1
----
1162
233572
614569
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1984
SELECT DISTINCT CAST( - 12 AS SIGNED ) + - tab1.col1 * - col0 FROM tab1
----
1028
628
66
skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT CAST ( - 12 AS INTEGER ) + - tab1.col1 * - col0 FROM tab1
----
1028
628
66
query I rowsort
SELECT ALL 20 + + ( col2 * + col0 ) FROM tab2
----
2048
209
3022
query I rowsort
SELECT ALL 31 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL + 14 + - cor0.col1 AS col0 FROM tab0 cor0
----
-72
-77
-83
query I rowsort
SELECT - - 68 * + col2 FROM tab1 AS cor0
----
3672
3876
6528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 4 + + col0 col0 FROM tab2 AS cor0
----
-101
-26
-73
query I rowsort
SELECT cor1.col0 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 21 * - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-1806
-1911
-2037
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + col0 * 26 AS col2 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT ALL col0 + + ( - col2 ) * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1382
-657
-753
query I rowsort
SELECT - col0 + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + cor0.col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 + col0 + col2 AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + + col1 + - col2 * cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + + cor0.col2 * - col0 + + col1 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2002
SELECT ALL CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT 66 + col1 AS col0 FROM tab2 cor0
----
125
83
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2005
SELECT DISTINCT col1 * col1 + col2 DIV col1 FROM tab1 AS cor0
----
105
176
678
skipif mysql # not compatible
query I rowsort label-2005
SELECT DISTINCT col1 * col1 + col2 / col1 FROM tab1 AS cor0
----
105
176
678
onlyif mysql # use DIV operator for integer division
query I rowsort label-2006
SELECT ALL - col1 * - col1 - + col2 DIV - col0 FROM tab1 cor0
----
100
170
694
skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - col1 * - col1 - + col2 / - col0 FROM tab1 cor0
----
100
170
694
query I rowsort
SELECT DISTINCT + col1 * ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + + cor0.col0 * - col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col2 * + col0 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + cor0.col1 + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL + col0 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - col2 * ( - col0 * - cor0.col1 ) + - cor0.col2 FROM tab2 AS cor0
----
-119678
-51072
-5886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col0 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT col1 + 64 + + ( col0 * col0 ) AS col1 FROM tab2 AS cor0
----
144
6207
6322
query I rowsort
SELECT cor0.col0 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + col2 * col1 + - 65 + + col0 * col0 * col1 AS col2 FROM tab1 AS cor0
----
1573
41465
84383
query I rowsort
SELECT ALL - + col0 * + col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col0 * 6 AS col0 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT ALL + - col2 * 59 AS col0 FROM tab0 AS cor0
----
-1947
-4838
-59
query I rowsort
SELECT tab0.col0 + + 95 AS col0 FROM tab0
----
119
130
184
query I rowsort
SELECT DISTINCT - 58 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-58
query I rowsort
SELECT - - col2 + col0 * + col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + cor0.col0 * col2 * col0 AS col0 FROM tab1 cor0
----
233472
486
614400
query I rowsort
SELECT col2 * + col2 * col0 + - col2 FROM tab1
----
207879
737184
8694
query I rowsort
SELECT - cor0.col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT - col2 * + cor0.col1 + - col1 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - cor0.col1 * col0 col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col1 - col1 col1 FROM tab0 cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2029
SELECT - col1 DIV - col0 + col1 - col2 FROM tab0 AS cor0 WHERE col0 * - col0 NOT IN ( col2 )
----
10
56
98
skipif mysql # not compatible
query I rowsort label-2029
SELECT - col1 / - col0 + col1 - col2 FROM tab0 AS cor0 WHERE col0 * - col0 NOT IN ( col2 )
----
10
56
98
query I rowsort
SELECT + col0 * + col1 * col1 + col0 * col0 FROM tab2
----
277602
29072
6776
query I rowsort
SELECT col2 * - col1 + col0 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL 33 * + col2 AS col1 FROM tab0
----
1089
2706
33
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL - col0 * + col1 * col1 AS col1 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-2036
SELECT ALL tab0.col0 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-2036
SELECT ALL tab0.col0 / col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col0 * col0 * + col0 FROM tab0
----
13824
42875
704969
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT - - col1 + col0 * col0 AS col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT 91 * + col1 AS col0 FROM tab0
----
7826
8281
8827
query I rowsort
SELECT DISTINCT - 79 * 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-6162
query I rowsort
SELECT DISTINCT - cor1.col0 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1, tab1, tab1 cor2
----
-7
-78
-79
query I rowsort
SELECT + - col2 + + col0 * + cor0.col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 * col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT ALL - col2 + + col2 + col0 AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT + tab0.col1 + + 4 FROM tab0
----
101
90
95
query I rowsort
SELECT col0 + ( 75 + tab1.col2 * col0 ) FROM tab1
----
240
3787
7835
query I rowsort
SELECT + + col2 + - 52 FROM tab2 AS cor0
----
-14
-25
-26
query I rowsort
SELECT - col2 + ( + col2 ) - + cor0.col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2050
SELECT col0 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2050
SELECT col0 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col2 * + 77 * col2 FROM tab0 AS cor0
----
-517748
-77
-83853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2052
SELECT - CAST( - 60 AS SIGNED ) AS col1 FROM tab2
----
60
60
60
skipif mysql # not compatible
query I rowsort label-2052
SELECT - CAST ( - 60 AS INTEGER ) AS col1 FROM tab2
----
60
60
60
query I rowsort
SELECT - 1 + - 44 FROM tab2, tab0, tab0 cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2054
SELECT ALL + CAST( ( col0 ) AS SIGNED ) AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL + CAST ( ( col0 ) AS INTEGER ) AS col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + cor0.col2 ) ) + col0 col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT + 45 FROM tab0, tab2 AS cor0
----
45
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT col0 - - col1 AS col0 FROM tab2
----
137
38
96
query I rowsort
SELECT - - 44 AS col2 FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT + + cor0.col1 * - col0 + ( + 93 ) - + col0 FROM tab2 AS cor0
----
-131
-1329
-4587
query I rowsort
SELECT col2 + + cor0.col2 * col0 FROM tab1 cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT - col1 + - col2 * CAST( NULL AS DECIMAL ) * - cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2062
SELECT - col1 + - col2 * CAST ( NULL AS REAL ) * - cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 96 * col0 * + col2 + col1 + - cor0.col1 FROM tab2 AS cor0
----
18144
194688
288192
query I rowsort
SELECT col0 * - cor0.col0 * - col2 + + col0 * col2 AS col1 FROM tab1 AS cor0
----
237120
622080
648
query I rowsort
SELECT DISTINCT - col0 * col1 + col0 AS col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT 77 * col2 AS col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT ALL - col1 * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - 51 AS col0 FROM tab2
----
-51
-51
-51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * cor0.col0 + - ( - col1 ) + - cor0.col0 col1 FROM tab2 cor0
----
6065
6179
73
query I rowsort
SELECT ALL - 34 + col1 FROM tab2 AS cor0
----
-17
-3
25
query I rowsort
SELECT + ( col0 ) * - ( ( col2 ) ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT col0 * col1 + - col2 AS col2 FROM tab2
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-2073
SELECT + ( cor0.col2 ) DIV 91 AS col1 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2073
SELECT + ( cor0.col2 ) / 91 AS col1 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2074
SELECT DISTINCT - - col2 DIV col0 + ( + 68 ) * col0 + + ( 15 + - col0 ) FROM tab1 cor0
----
234
4303
5376
skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT - - col2 / col0 + ( + 68 ) * col0 + + ( 15 + - col0 ) FROM tab1 cor0
----
234
4303
5376
query I rowsort
SELECT - - 50 + - col2 AS col0 FROM tab2 cor0
----
12
23
24
query I rowsort
SELECT ALL 68 FROM tab1 AS cor0
----
68
68
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-2077
SELECT 10 DIV col0 + CAST( col0 AS SIGNED ) FROM tab1
----
6
64
80
skipif mysql # not compatible
query I rowsort label-2077
SELECT 10 / col0 + CAST ( col0 AS INTEGER ) FROM tab1
----
6
64
80
query I rowsort
SELECT ALL - col0 + col1 * + col2 * - col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT ALL + col1 + - col0 + 56 FROM tab1 AS cor0
----
-11
2
79
query I rowsort
SELECT ALL 5 + - col2 FROM tab0 AS cor0
----
-28
-77
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - + cor0.col0 col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT - + col2 * col0 * - col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT 66 AS col1 FROM tab1 AS cor0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2084
SELECT DISTINCT col0 DIV col0 + + cor0.col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT col0 / col0 + + cor0.col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL - - col0 + - col0 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - cor0.col0 + - col2 * + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + + col2 * + 94 AS col1 FROM tab1 AS cor0
----
5076
5358
9024
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 32 - - col1 col0 FROM tab1 cor0
----
-12
-6
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT ALL col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL col1 * CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 + - 8 AS col0 FROM tab1 AS cor0
----
-18
-21
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT + - col1 * - cor0.col1 + - col1 + col2 DIV + col1 FROM tab2 AS cor0
----
274
3422
930
skipif mysql # not compatible
query I rowsort label-2091
SELECT + - col1 * - cor0.col1 + - col1 + col2 / + col1 FROM tab2 AS cor0
----
274
3422
930
query I rowsort
SELECT DISTINCT - col2 + 43 AS col1 FROM tab1 AS cor0
----
-11
-14
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - 37 * - cor0.col0 col0 FROM tab0 AS cor0
----
1296
3375
921
query I rowsort
SELECT DISTINCT - col1 * col0 + + col1 * col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - col2 + + ( col1 ) AS col0 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT ALL cor0.col2 DIV - 45 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-2096
SELECT ALL cor0.col2 / - 45 FROM tab1 AS cor0
----
-1
-1
-2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - tab1.col1 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 67 AS col2 FROM tab1
----
67
67
67
query I rowsort
SELECT DISTINCT 15 * col1 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT ALL - + col0 + + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 67 + 29 * col2 AS col1 FROM tab1 cor0
----
1633
1720
2851
query I rowsort
SELECT DISTINCT + ( col2 ) - cor0.col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + cor0.col1 + 98 AS col2 FROM tab0 AS cor0
----
184
189
195
query I rowsort
SELECT ALL + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2105
SELECT ALL + ( + col0 ) DIV col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2105
SELECT ALL + ( + col0 ) / col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - + 56 + + col1 * - col2 AS col0 FROM tab1 cor0
----
-1304
-1460
-626
query I rowsort
SELECT DISTINCT + col2 * 56 AS col0 FROM tab0 cor0
----
1848
4592
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2108
SELECT + CAST( NULL AS DECIMAL ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2108
SELECT + CAST ( NULL AS REAL ) AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + 74 * col2 AS col1 FROM tab1 cor0
----
3996
4218
7104
query I rowsort
SELECT DISTINCT + ( - col2 ) + - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT ALL - 75 - + 95 FROM tab2 AS cor0
----
-170
-170
-170
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT ALL - 64 * - 49 / col1 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2112
SELECT ALL - 64 * - 49 / col1 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 78 + - 36 AS col1 FROM tab0 AS cor0
----
-114
query I rowsort
SELECT DISTINCT 75 - col2 FROM tab2 AS cor0
----
37
48
49
query I rowsort
SELECT + ( - cor0.col0 ) + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT col0 * CAST( col0 AS SIGNED ) * + col2 + - ( col2 ) * col2 FROM tab0
----
1224
17919
642798
skipif mysql # not compatible
query I rowsort label-2116
SELECT col0 * CAST ( col0 AS INTEGER ) * + col2 + - ( col2 ) * col2 FROM tab0
----
1224
17919
642798
onlyif mysql # use DIV operator for integer division
query I rowsort label-2117
SELECT + + col1 + - col2 DIV col2 FROM tab1 AS cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-2117
SELECT + + col1 + - col2 / col2 FROM tab1 AS cor0
----
12
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2118
SELECT + + ( - col2 ) DIV col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2118
SELECT + + ( - col2 ) / col1 FROM tab1 cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT ALL + col1 * CAST( col1 AS SIGNED ) DIV + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2119
SELECT ALL + col1 * CAST ( col1 AS INTEGER ) / + col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT 37 DIV 27 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-2120
SELECT 37 / 27 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2121
SELECT DISTINCT + col1 DIV 93 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2121
SELECT DISTINCT + col1 / 93 AS col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - ( - 44 ) * - col1 FROM tab0 AS cor0
----
-3784
-4004
-4268
query I rowsort
SELECT - ( + col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col1 - 53 AS col2 FROM tab0 AS cor0
----
-139
-144
-150
query I rowsort
SELECT ALL + 40 AS col2 FROM tab2 AS cor0
----
40
40
40
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) * - col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - 73 AS col1 FROM tab2 AS cor0
----
-73
query I rowsort
SELECT 31 * tab0.col0 * + tab0.col1 AS col2 FROM tab0
----
105245
251069
63984
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * col0 col1 FROM tab0 AS cor0
----
1128
1645
4183
query I rowsort
SELECT + col0 + cor0.col2 * + col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 * col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 + col2 * - col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT ALL + col0 * col2 + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT col2 * col1 + 35 AS col1 FROM tab2 AS cor0
----
1569
681
872
query I rowsort
SELECT ALL col1 - - col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 22 + col1 * - col1 FROM tab1 AS cor0
----
-147
-654
-78
query I rowsort
SELECT ALL col0 + col2 + - 35 AS col2 FROM tab1 cor0
----
141
22
86
query I rowsort
SELECT ALL + ( + col0 ) * col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 26 * cor0.col2 FROM tab1 AS cor0
----
1404
1482
2496
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 + col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT + 3 FROM tab0 AS cor0
----
3
query I rowsort
SELECT - col2 * + col1 + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT col0 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL 98 FROM tab1 cor0
----
98
98
98
query I rowsort
SELECT + + col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - cor0.col1 + - col1 AS col0 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * + col0 + + col0 col2 FROM tab2
----
106176
1526
359034
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2151
SELECT + cor0.col1 + CAST( NULL AS SIGNED ) + + col1 * - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2151
SELECT + cor0.col1 + CAST ( NULL AS INTEGER ) + + col1 * - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab0, tab0 AS cor1
----
972 values hashing to 3a31dab513390ca6bd05c71a3d9c50f0
query I rowsort
SELECT + + col1 + + 24 FROM tab1 AS cor0
----
34
37
50
query I rowsort
SELECT DISTINCT - 60 * + col2 * + 26 AS col2 FROM tab1
----
-149760
-84240
-88920
query I rowsort
SELECT + col1 * + col0 + - 2 AS col0 FROM tab0 AS cor0
----
2062
3393
8097
query I rowsort
SELECT - col0 + - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2157
SELECT + col0 * - 60 + + col1 DIV col0 FROM tab1 AS cor0
----
-172
-3840
-4800
skipif mysql # not compatible
query I rowsort label-2157
SELECT + col0 * - 60 + + col1 / col0 FROM tab1 AS cor0
----
-172
-3840
-4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-2158
SELECT ALL - + col0 DIV col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-27
-42
skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - + col0 / col1 + - col2 AS col2 FROM tab2 AS cor0
----
-27
-27
-42
query I rowsort
SELECT col1 * - ( col2 ) AS col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2160
SELECT - - col0 - + col1 * - CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2160
SELECT - - col0 - + col1 * - CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col1 * col0 * ( col1 * + col0 ) AS col0 FROM tab0 AS cor0
----
11526025
4260096
65593801
query I rowsort
SELECT DISTINCT + col0 * col0 + + col2 AS col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT 46 * col0 * col1 FROM tab1
----
29440
3588
47840
query I rowsort
SELECT DISTINCT tab1.col1 * 47 * col0 + + col2 FROM tab1
----
30137
3720
48976
query I rowsort
SELECT DISTINCT - 12 AS col1 FROM tab1, tab2 cor0, tab0 AS cor1
----
-12
query I rowsort
SELECT cor0.col2 * 96 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 978bc0df7aff81c1dbd536dc6943fd91
query I rowsort
SELECT 5 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT DISTINCT - 29 + + col0 - ( col0 ) AS col1 FROM tab0 AS cor0
----
-29
query I rowsort
SELECT ALL - col1 + - col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - cor0.col1 col0 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - + col1 - col1 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT ALL - 41 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 47b9ef972839428f4f71d9f5b0944edf
query I rowsort
SELECT + 74 * + col0 FROM tab1
----
222
4736
5920
query I rowsort
SELECT + 24 AS col0 FROM tab2 AS cor0
----
24
24
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * - col2 + col0 - + col0 col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 + + 42 AS col1 FROM tab1 AS cor0
----
138
96
99
query I rowsort
SELECT DISTINCT - - 71 * 91 * col2 AS col1 FROM tab2 AS cor0
----
167986
174447
245518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + 62 col2 FROM tab1 AS cor0
----
-34
5
8
query I rowsort
SELECT DISTINCT + ( 31 * col2 ) - col1 * 40 AS col1 FROM tab1
----
1367
2456
634
query I rowsort
SELECT + ( + col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 44 * 64 col2 FROM tab2 AS cor0
----
2816
2816
2816
query I rowsort
SELECT DISTINCT ( + 97 ) * + col2 + - col2 AS col2 FROM tab2 cor0
----
2496
2592
3648
query I rowsort
SELECT ALL + 45 + + col0 + + col0 * 28 * 8 AS col1 FROM tab1 AS cor0
----
14445
18045
720
query I rowsort
SELECT ALL - ( - col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 * - col1 col1 FROM tab2 AS cor0
----
-1054
-2006
-578
query I rowsort
SELECT DISTINCT - 17 * col0 + col1 + - col0 FROM tab2 AS cor0
----
-1345
-1405
-95
query I rowsort
SELECT + ( + ( cor0.col0 ) ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col1 AS REAL ) * + col0 + + 71 AS col0 FROM tab1 AS cor0
----
-569
-7
-969
query I rowsort
SELECT + - 63 FROM tab2 AS cor0
----
-63
-63
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col1 FROM tab1 AS cor0
----
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-2191
SELECT DISTINCT - col1 + - col1 DIV col0 + col0 AS col0 FROM tab0 cor0
----
-3
-64
-65
skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT - col1 + - col1 / col0 + col0 AS col0 FROM tab0 cor0
----
-3
-64
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 + + col2 col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col2 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL ( + 24 ) AS col2 FROM tab1
----
24
24
24
query I rowsort
SELECT - 83 + - col0 FROM tab2 AS cor0
----
-161
-162
-90
query I rowsort
SELECT ALL + col0 + col2 * 0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT - + col0 * col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * ( + col2 ) col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col1 + + 86 FROM tab1 AS cor0
----
112
96
99
query I rowsort
SELECT DISTINCT col0 * - ( col0 ) FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 64 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab1 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT ALL 33 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT - - 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab2, tab1 cor0
----
96
query I rowsort
SELECT - col0 * + col1 - + tab0.col2 AS col0 FROM tab0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + + ( + 53 ) col2 FROM tab1 AS cor0
----
117
133
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab2, tab2 cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 54f94bc315b13bb4d5a30c251c64c399
query I rowsort
SELECT DISTINCT ( col1 * + col2 + col1 * - 74 ) FROM tab2
----
-1457
-2832
-612
query I rowsort
SELECT ALL 35 * - col0 * col2 AS col2 FROM tab0
----
-1225
-255430
-27720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 * col0 col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT - 66 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT ALL col0 * + tab1.col2 * - col0 AS col0 FROM tab1
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2217
SELECT CAST( - col0 AS SIGNED ) + + col2 FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-2217
SELECT CAST ( - col0 AS INTEGER ) + + col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL 44 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT 61 + col1 AS col0 FROM tab0 cor0
----
147
152
158
query I rowsort
SELECT ALL + 48 * - 93 FROM tab0 AS cor0
----
-4464
-4464
-4464
query I rowsort
SELECT - 46 * ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1426
-2714
-782
query I rowsort
SELECT ALL + + 89 * + col1 FROM tab1 AS cor0
----
1157
2314
890
query I rowsort
SELECT ALL + 47 AS col2 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT ALL col1 * col0 * + col2 + - col2 AS col2 FROM tab1 AS cor0
----
36423
4158
99744
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 3eea7cef970c8ff51d71b8a23ee129bf
query I rowsort
SELECT ALL - 92 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT ALL 21 + col2 FROM tab2
----
47
48
59
query I rowsort
SELECT - tab1.col1 * col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT cor0.col1 * + ( + 74 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 2bc65e52b35c1e02e7c244003eb6ecdb
query I rowsort
SELECT DISTINCT + 44 FROM tab2, tab1, tab1 AS cor0
----
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2231
SELECT DISTINCT col2 DIV - col2 + 31 FROM tab1
----
30
skipif mysql # not compatible
query I rowsort label-2231
SELECT DISTINCT col2 / - col2 + 31 FROM tab1
----
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col2 + - ( + col0 + + col1 ) * - col1 col2 FROM tab1
----
1292
782
787
query I rowsort
SELECT ALL - col0 + + col2 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + 52 AS col0 FROM tab1
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT ALL - - 47 + col2 DIV - 25 FROM tab1 AS cor0
----
44
45
45
skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL - - 47 + col2 / - 25 FROM tab1 AS cor0
----
44
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2236
SELECT - + col0 + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-2236
SELECT - + col0 + col2 / col2 AS col1 FROM tab0 AS cor0
----
-23
-34
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + - col2 * col0 * col2 col2 FROM tab0 AS cor0
----
-132
-28974
-605898
query I rowsort
SELECT ALL + cor0.col1 + col1 * - col0 * col0 FROM tab2 AS cor0
----
-106080
-1488
-358897
query I rowsort
SELECT DISTINCT - col2 * ( col1 ) + col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT - - col2 * 94 FROM tab0 cor0
----
3102
7708
94
query I rowsort
SELECT - col0 + 59 * + 50 * col2 AS col2 FROM tab1 AS cor0
----
159297
168086
283120
query I rowsort
SELECT ALL + col2 * + 3 * col2 AS col2 FROM tab1 AS cor0
----
27648
8748
9747
query I rowsort
SELECT ALL + cor0.col1 + col1 * col1 AS col2 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT DISTINCT col0 * col0 + 86 FROM tab2 cor0
----
135
6170
6327
query I rowsort
SELECT DISTINCT - col0 * ( cor0.col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2247
SELECT ALL col0 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL col0 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 15 + col2 * + col1 col0 FROM tab2 AS cor0
----
1144
432
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + 55 col0 FROM tab0
----
2119
3450
8154
query I rowsort
SELECT ALL col2 * - col0 + 67 FROM tab0
----
-7231
-725
32
query I rowsort
SELECT + - col2 + ( col2 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 + 66 * col1 FROM tab0 AS cor0
----
5762
6097
6499
query I rowsort
SELECT DISTINCT + + col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col0 + - ( - 94 ) FROM tab0 AS cor0
----
118
129
183
query I rowsort
SELECT DISTINCT - + col2 * 20 FROM tab1 AS cor0
----
-1080
-1140
-1920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2256
SELECT cor0.col1 DIV - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2256
SELECT cor0.col1 / - cor0.col0 FROM tab0 AS cor0
----
-1
-2
-3
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 cor1, tab2 AS cor2
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT + 76 * 38 + col2 FROM tab1
----
2942
2945
2984
query I rowsort
SELECT col1 * col0 + + 19 * col1 FROM tab0
----
3698
5238
9828
query I rowsort
SELECT DISTINCT + 90 FROM tab1, tab0, tab0 AS cor0
----
90
query I rowsort
SELECT DISTINCT 81 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT ALL + cor0.col2 + col1 DIV + 43 AS col0 FROM tab0 AS cor0
----
3
35
84
skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + cor0.col2 + col1 / + 43 AS col0 FROM tab0 AS cor0
----
3
35
84
query I rowsort
SELECT ALL ( + col2 ) AS col0 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT DISTINCT col0 + col0 DIV col0 AS col0 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT col0 + col0 / col0 AS col0 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL - col2 + + col2 * tab1.col2 + col1 FROM tab1
----
2888
3202
9133
query I rowsort
SELECT - col0 * ( - 55 ) * + col1 AS col1 FROM tab2
----
11935
253110
73865
query I rowsort
SELECT col0 * 90 FROM tab1
----
270
5760
7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2268
SELECT 5 DIV - ( col1 ) + - ( + col0 ) * col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2268
SELECT 5 / - ( col1 ) + - ( + col0 ) * col0 col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - cor0.col0 * + 33 + col2 FROM tab1 AS cor0
----
-2055
-2544
-45
query I rowsort
SELECT ALL - tab0.col2 * - ( tab0.col2 ) * + col0 + - ( col0 ) FROM tab0
----
0
26112
598347
onlyif mysql # use DIV operator for integer division
query I rowsort label-2271
SELECT - col0 DIV + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-2271
SELECT - col0 / + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-6
-6
0
query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab2, tab0 AS cor0
----
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2273
SELECT ALL - col0 + CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - col0 + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL + 85 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2275
SELECT ALL + CAST( col2 AS SIGNED ) * + col2 col0 FROM tab1
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL + CAST ( col2 AS INTEGER ) * + col2 col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 46 FROM tab0, tab0 cor0
----
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * col1 * - col1 col0 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT DISTINCT col1 + + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2279
SELECT ALL cor0.col2 DIV + ( - col0 ) + 16 AS col0 FROM tab1 AS cor0
----
-2
15
16
skipif mysql # not compatible
query I rowsort label-2279
SELECT ALL cor0.col2 / + ( - col0 ) + 16 AS col0 FROM tab1 AS cor0
----
-2
15
16
query I rowsort
SELECT DISTINCT + col2 + 71 - col2 AS col2 FROM tab2 AS cor0
----
71
query I rowsort
SELECT + 7 + + col0 AS col2 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT col1 * cor0.col0 * - cor0.col0 + ( + cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-118790
-49512
-720722
query I rowsort
SELECT DISTINCT - 8 * - cor0.col0 + col1 FROM tab1 AS cor0
----
50
522
653
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2284
SELECT - CAST( NULL AS SIGNED ) * col1 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2284
SELECT - CAST ( NULL AS INTEGER ) * col1 + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * + col1 - - col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + - col2 * cor0.col0 + - col0 * - 77 * col0 AS col2 FROM tab1 AS cor0
----
311744
485120
531
query I rowsort
SELECT 92 * + col1 * + col0 + col0 AS col0 FROM tab1 AS cor0
----
58944
7179
95760
query I rowsort
SELECT + 29 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 68 * col0 AS col2 FROM tab0
----
1632
2380
6052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2291
SELECT - CAST( NULL AS SIGNED ) * 12 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2291
SELECT - CAST ( NULL AS INTEGER ) * 12 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 50 AS col1 FROM tab0
----
1200
1750
4450
onlyif mysql # use DIV operator for integer division
query I rowsort label-2293
SELECT DISTINCT - ( - 31 ) * col1 DIV tab1.col2 AS col1 FROM tab1
----
14
4
5
skipif mysql # not compatible
query I rowsort label-2293
SELECT DISTINCT - ( - 31 ) * col1 / tab1.col2 AS col1 FROM tab1
----
14
4
5
query I rowsort
SELECT col0 + col0 * col1 * + col0 AS col2 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT + col0 + + 30 AS col0 FROM tab0 AS cor0
----
119
54
65
query I rowsort
SELECT - + col0 + col0 * - cor0.col1 - + 3 * - col0 AS col2 FROM tab1 AS cor0
----
-512
-72
-880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2297
SELECT CAST( + col2 AS SIGNED ) col2 FROM tab0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2297
SELECT CAST ( + col2 AS INTEGER ) col2 FROM tab0
----
1
33
82
query I rowsort
SELECT 29 * - tab1.col1 AS col2 FROM tab1
----
-290
-377
-754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * + col0 col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT col2 + 88 - tab1.col2 * - 51 FROM tab1
----
2896
3052
5080
onlyif mysql # use DIV operator for integer division
query I rowsort label-2301
SELECT ( - col0 ) DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2301
SELECT ( - col0 ) / + col0 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2302
SELECT + col1 * - col0 DIV cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2302
SELECT + col1 * - col0 / cor0.col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * + col2 col1 FROM tab0 AS cor0
----
-96
1003
6633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2304
SELECT DISTINCT - col0 * col1 * - CAST( col2 * col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
12636
2334720
7987200
skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT - col0 * col1 * - CAST ( col2 * col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
12636
2334720
7987200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2305
SELECT - cor0.col2 + + col0 * + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2305
SELECT - cor0.col2 + + col0 * + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 40 FROM tab0 cor0
----
-40
-40
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT + 0 DIV + col0 + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-2307
SELECT + 0 / + col0 + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - 64 + cor0.col2 * 88 AS col0 FROM tab1 AS cor0
----
4688
4952
8384
query I rowsort
SELECT col2 + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 cor1
----
243 values hashing to 3581f59ff9574f9d6290fc6bca0b5e4d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2311
SELECT col2 * CAST( + 74 AS SIGNED ) FROM tab1 AS cor0
----
3996
4218
7104
skipif mysql # not compatible
query I rowsort label-2311
SELECT col2 * CAST ( + 74 AS INTEGER ) FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT ALL - col1 + + 13 * cor0.col1 FROM tab2 AS cor0
----
204
372
708
query I rowsort
SELECT - col2 + 79 AS col2 FROM tab0 AS cor0
----
-3
46
78
query I rowsort
SELECT - - cor0.col1 + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + 92 FROM tab2, tab1 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT + 86 + - ( - col2 ) - - col0 FROM tab0 AS cor0
----
122
143
257
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT + CAST( col0 AS SIGNED ) + + col2 DIV ( - ( cor0.col0 ) ) + col0 * ( + col0 ) col2 FROM tab1 AS cor0
----
-6
4160
6479
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2317
SELECT + CAST ( col0 AS INTEGER ) + + col2 / ( - ( cor0.col0 ) ) + col0 * ( + col0 ) col2 FROM tab1 AS cor0
----
-6
4160
6479
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2318
SELECT CAST( NULL AS SIGNED ) + - 8 + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2318
SELECT CAST ( NULL AS INTEGER ) + - 8 + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL cor0.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - ( - col2 ) + cor0.col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - 22 FROM tab2 AS cor0
----
-22
-22
-22
query I rowsort
SELECT - 6 AS col0 FROM tab1 AS cor0
----
-6
-6
-6
query I rowsort
SELECT DISTINCT - 5 + col1 * col0 FROM tab0 cor0
----
2059
3390
8094
query I rowsort
SELECT ALL + + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 + col2 * + col0 col0 FROM tab2 AS cor0
----
2079
240
3053
onlyif mysql # use DIV operator for integer division
query I rowsort label-2326
SELECT 8 DIV - col0 FROM tab2 cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2326
SELECT 8 / - col0 FROM tab2 cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2327
SELECT ALL cor0.col0 DIV 5 + - col1 FROM tab2 cor0
----
-2
-30
-44
skipif mysql # not compatible
query I rowsort label-2327
SELECT ALL cor0.col0 / 5 + - col1 FROM tab2 cor0
----
-2
-30
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2328
SELECT ALL + col0 + CAST( col0 AS SIGNED ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
skipif mysql # not compatible
query I rowsort label-2328
SELECT ALL + col0 + CAST ( col0 AS INTEGER ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT DISTINCT col1 + + ( - 68 + + col1 ) FROM tab2 AS cor0
----
-34
-6
50
query I rowsort
SELECT ( 45 ) AS col1 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT - col0 + - col0 * col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + + col2 * - col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 59 AS col1 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT + ( + col1 ) * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT tab1.col0 * + ( ( col0 ) ) FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
99
query I rowsort
SELECT + + 11 AS col0 FROM tab0 AS cor0
----
11
11
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2339
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + ( - 25 ) FROM tab2 AS cor0
----
-25
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( + cor0.col2 ) ) + - col2 col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT 90 AS col0 FROM tab1 AS cor0
----
90
query I rowsort
SELECT ALL + col1 * - 85 + + col2 + 37 * + col1 AS col2 FROM tab1 cor0
----
-1194
-423
-528
query I rowsort
SELECT + ( - col0 ) * col0 * + 43 FROM tab2
----
-2107
-261612
-268363
query I rowsort
SELECT DISTINCT + 69 FROM tab1
----
69
query I rowsort
SELECT ALL - col0 + cor0.col0 * - cor0.col1 - col2 FROM tab2 AS cor0
----
-1460
-251
-4706
query I rowsort
SELECT 36 AS col1 FROM tab1 AS cor0
----
36
36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col2 + col2 col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL col0 + + col0 * ( - col0 ) + col0 FROM tab0 AS cor0
----
-1155
-528
-7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 62 + cor0.col1 * + col2 col2 FROM tab2 AS cor0
----
1472
584
775
query I rowsort
SELECT ALL - col2 - + col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL - col2 + 35 AS col2 FROM tab1
----
-19
-22
-61
query I rowsort
SELECT ALL - col0 + tab1.col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT + 88 * - col0 FROM tab1
----
-264
-5632
-7040
query I rowsort
SELECT DISTINCT + col1 + - tab0.col1 FROM tab0
----
0
query I rowsort
SELECT - - 93 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT ALL col2 * - col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab0 AS cor0
----
79
query I rowsort
SELECT + + 85 AS col0 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT 89 * + col1 AS col2 FROM tab0 AS cor0
----
7654
8099
8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2362
SELECT ALL - - ( col1 ) * - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-2362
SELECT ALL - - ( col1 ) * - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col0 + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col0 FROM tab0, tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * - col0 + - col2 * - col0 col0 FROM tab2
----
-19829
-269490
-6538
query I rowsort
SELECT - ( col0 ) * col0 AS col2 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT - 11 * col1 AS col2 FROM tab0
----
-1001
-1067
-946
query I rowsort
SELECT + col2 + tab0.col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT - col0 * + col2 + 56 * + 97 AS col0 FROM tab1
----
-2248
1784
5270
query I rowsort
SELECT ALL + col0 * + col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL - col2 * - col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT 86 * - col2 AS col0 FROM tab1 cor0
----
-4644
-4902
-8256
query I rowsort
SELECT DISTINCT + 89 * col0 - 26 AS col0 FROM tab0 AS cor0
----
2110
3089
7895
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + cor0.col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - - col0 * col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + 74 + + col2 FROM tab1 AS cor0
----
128
131
170
query I rowsort
SELECT ALL + col0 * - col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT 93 * + col1 + ( ( - col1 ) * - col0 ) FROM tab0
----
10062
12416
16562
query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab2
----
79
query I rowsort
SELECT DISTINCT + + 40 * col2 FROM tab2 AS cor0
----
1040
1080
1520
query I rowsort
SELECT DISTINCT 93 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
93
query I rowsort
SELECT tab0.col1 * col2 + - col2 + - col1 FROM tab0
----
-1
2719
7289
query I rowsort
SELECT DISTINCT col1 * - tab1.col2 - ( col1 ) FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + col2 * - 40 - - col2 FROM tab1
----
-2106
-2223
-3744
query I rowsort
SELECT + col2 + 12 * - col2 + - col2 * col0 FROM tab2 AS cor0
----
-2314
-3420
-486
query I rowsort
SELECT ALL 41 AS col2 FROM tab0 cor0
----
41
41
41
query I rowsort
SELECT DISTINCT + + 61 AS col1 FROM tab0 cor0
----
61
query I rowsort
SELECT DISTINCT tab1.col1 - + col2 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT - col1 - col0 AS col0 FROM tab0
----
-110
-132
-180
query I rowsort
SELECT + col0 + - col1 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT col0 * - 73 AS col0 FROM tab1
----
-219
-4672
-5840
query I rowsort
SELECT - tab2.col1 - - tab2.col2 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT + 77 + cor0.col2 FROM tab1 AS cor0
----
131
134
173
query I rowsort
SELECT + - 69 FROM tab0 AS cor0
----
-69
-69
-69
query I rowsort
SELECT DISTINCT + 73 FROM tab0 cor0
----
73
query I rowsort
SELECT - 25 * col1 + + col1 * 66 - + ( cor0.col0 ) FROM tab1 AS cor0
----
1063
346
453
query I rowsort
SELECT ALL + + col1 + + 61 FROM tab2 AS cor0
----
120
78
92
query I rowsort
SELECT ALL 66 * 59 AS col0 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 8b4fbc4de778d66bb57a3bdf767229a6
query I rowsort
SELECT DISTINCT 24 + 22 + - col2 FROM tab1
----
-11
-50
-8
query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab2 AS cor0
----
59
query I rowsort
SELECT - - ( + cor0.col1 ) * col1 AS col2 FROM tab1 AS cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2402
SELECT CAST( NULL AS SIGNED ) / + col0 + col2 + + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2402
SELECT CAST ( NULL AS INTEGER ) / + col0 + col2 + + col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 62 * - 59 + col1 FROM tab2 AS cor0
----
3675
3689
3717
query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab0 cor0
----
11
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col0 AS REAL ) + col2 AS col2 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * 58 col2 FROM tab1 AS cor0
----
174
3712
4640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2407
SELECT ALL - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL 19 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT DISTINCT col1 - - 45 AS col0 FROM tab1 AS cor0
----
55
58
71
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + - col0 * - col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + 43 + cor0.col0 * ( 71 ) FROM tab1, tab1 AS cor0
----
256
4587
5723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col2 * + col2 col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT cor0.col2 - + col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - cor0.col0 + col1 * + col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT DISTINCT + col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28
query I rowsort
SELECT cor0.col0 + + col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2420
SELECT - 65 + ( - col1 ) DIV - 16 FROM tab0 cor0
----
-59
-60
-60
skipif mysql # not compatible
query I rowsort label-2420
SELECT - 65 + ( - col1 ) / - 16 FROM tab0 cor0
----
-59
-60
-60
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - col0 * col1 * 79 AS col0 FROM tab2
----
-106097
-17143
-363558
query I rowsort
SELECT col1 * - col2 * col2 FROM tab2
----
-22599
-24548
-39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT ALL col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2424
SELECT ALL col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2425
SELECT DISTINCT + col2 DIV - col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-2425
SELECT DISTINCT + col2 / - col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT - ( + col1 ) + + col1 * col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + + col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 11 + col2 AS col0 FROM tab0 AS cor0
----
12
44
93
query I rowsort
SELECT + - cor0.col0 + + col0 * 58 AS col1 FROM tab2 AS cor0
----
399
4446
4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-2430
SELECT DISTINCT - 82 DIV + col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2430
SELECT DISTINCT - 82 / + col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT ALL + + col2 * col1 - - ( col1 ) FROM tab2 cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab1 AS cor0
----
6
query I rowsort
SELECT ALL + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - ( + 90 ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to c0d96679aba507520916e8654e5a6618
query I rowsort
SELECT + tab0.col1 + col0 * - col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
26
27
38
query I rowsort
SELECT + 56 FROM tab1 AS cor0
----
56
56
56
query I rowsort
SELECT DISTINCT ( 3 * col0 ) FROM tab2
----
21
234
237
query I rowsort
SELECT 72 * - 48 + col2 * col2 FROM tab0
----
-2367
-3455
3268
query I rowsort
SELECT - col0 * col0 * 49 FROM tab1
----
-200704
-313600
-441
query I rowsort
SELECT DISTINCT - 9 * - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
27
576
720
query I rowsort
SELECT DISTINCT + 6 * col2 + + 76 AS col0 FROM tab1
----
400
418
652
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col1 * + col0 col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT DISTINCT col0 DIV col1 + - col2 AS col1 FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT col0 / col1 + - col2 AS col1 FROM tab1 AS cor0
----
-51
-54
-90
query I rowsort
SELECT DISTINCT + + 68 * + col2 + 75 * - col0 FROM tab1 AS cor0
----
-924
3447
528
query I rowsort
SELECT ALL cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + + col1 * col1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL - - cor0.col0 - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - col2 * - cor0.col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT - + col1 * col2 + + ( + col1 ) FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - cor0.col1 * - 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to aa672f99571022f49f1c373e5901fa03
query I rowsort
SELECT - col1 * - 17 FROM tab1 AS cor0
----
170
221
442
query I rowsort
SELECT DISTINCT + - col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + + col2 + 25 + col2 AS col2 FROM tab1 AS cor0
----
133
139
217
query I rowsort
SELECT - col2 * ( 98 ) + col2 + - 91 * col0 FROM tab0 AS cor0
----
-16053
-3282
-5385
query I rowsort
SELECT col0 * 13 FROM tab0 AS cor0
----
1157
312
455
query I rowsort
SELECT DISTINCT - + cor0.col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - tab1.col0 col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL - col0 - col0 AS col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL + col0 * ( - tab0.col0 ) FROM tab0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2463
SELECT col0 - + ( - col2 + - cor0.col0 ) * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2463
SELECT col0 - + ( - col2 + - cor0.col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * col0 + 48 + - col2 * + 33 FROM tab1 AS cor0
----
-1812
-2473
-4160
query I rowsort
SELECT - col0 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT - col0 - - 50 FROM tab0 AS cor0
----
-39
15
26
query I rowsort
SELECT - + col1 * 79 FROM tab1 AS cor0
----
-1027
-2054
-790
query I rowsort
SELECT + col2 * col2 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
2890
3239
9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( ( - col2 ) ) col0 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL ( + tab2.col2 ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT - ( col1 ) + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - col0 + cor0.col2 * col0 AS col1 FROM tab2 cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2473
SELECT - - ( - 24 ) * + col1 + col1 DIV - col0 + + col1 * col2 AS col1 FROM tab1 cor0
----
330
772
936
skipif mysql # not compatible
query I rowsort label-2473
SELECT - - ( - 24 ) * + col1 + col1 / - col0 + + col1 * col2 AS col1 FROM tab1 cor0
----
330
772
936
query I rowsort
SELECT DISTINCT + col0 * - col1 AS col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2476
SELECT 10 DIV col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2476
SELECT 10 / col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 53 * - col1 AS col2 FROM tab2 AS cor0
----
-1643
-3127
-901
query I rowsort
SELECT DISTINCT 93 * + 62 AS col0 FROM tab2
----
5766
query I rowsort
SELECT ALL 7 * col2 AS col0 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT - + 83 + col1 + col0 FROM tab1 AS cor0
----
-54
-9
10
query I rowsort
SELECT 63 * - col0 FROM tab1 AS cor0
----
-189
-4032
-5040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col2 col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - - col0 + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL 63 + + col2 FROM tab0
----
145
64
96
query I rowsort
SELECT ALL + col1 + + cor0.col0 * ( + 91 ) AS col1 FROM tab1 AS cor0
----
299
5834
7293
onlyif mysql # use DIV operator for integer division
query I rowsort label-2486
SELECT + cor0.col1 + col0 DIV col1 FROM tab2 AS cor0
----
21
31
60
skipif mysql # not compatible
query I rowsort label-2486
SELECT + cor0.col1 + col0 / col1 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT ALL - col0 * + col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - - cor0.col2 + - col2 * cor0.col2 * - col0 AS col2 FROM tab1 cor0
----
207993
737376
8802
onlyif mysql # use DIV operator for integer division
query I rowsort label-2489
SELECT ALL 84 DIV col0 FROM tab2 AS cor0
----
1
1
12
skipif mysql # not compatible
query I rowsort label-2489
SELECT ALL 84 / col0 FROM tab2 AS cor0
----
1
1
12
query I rowsort
SELECT - + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2491
SELECT ALL - CAST( NULL AS SIGNED ) + - 92 * - col1 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL - CAST ( NULL AS INTEGER ) + - 92 * - col1 + col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 91 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL - 81 FROM tab0, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1
query I rowsort
SELECT DISTINCT + tab1.col1 * 78 * + col1 + - col0 * col1 AS col1 FROM tab1
----
12142
52650
7160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2495
SELECT ALL CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2496
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 57 + col0 AS col2 FROM tab1 AS cor0
----
121
137
60
query I rowsort
SELECT ALL cor0.col2 * + col0 * - col1 + + col2 * col1 FROM tab2 AS cor0
----
-118118
-5022
-50388
query I rowsort
SELECT ALL - - col2 * - col2 - + col0 AS col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT - ( - col1 ) + col2 * col1 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-2501
SELECT ALL col2 * - cor0.col0 + - col2 DIV + col1 + + col2 AS col2 FROM tab1 AS cor0
----
-110
-3596
-7591
skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL col2 * - cor0.col0 + - col2 / + col1 + + col2 AS col2 FROM tab1 AS cor0
----
-110
-3596
-7591
query I rowsort
SELECT col2 * + col2 + ( + col1 ) AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + + col0 - cor0.col1 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - 29 + cor0.col0 * 92 FROM tab2 AS cor0
----
615
7147
7239
query I rowsort
SELECT + + col0 * - col0 + - col1 AS col1 FROM tab1 cor0
----
-35
-4106
-6413
query I rowsort
SELECT ALL cor0.col0 * col1 - + col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT ( - col2 ) + + 21 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1080
1140
1920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2510
SELECT ALL + col0 * + CAST( + col2 + col0 AS SIGNED ) FROM tab0
----
1260
1368
15219
skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + col0 * + CAST ( + col2 + col0 AS INTEGER ) FROM tab0
----
1260
1368
15219
query I rowsort
SELECT - col1 * col1 + + col2 * - col1 - col2 FROM tab1 AS cor0
----
-1513
-2134
-727
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2513
SELECT + col2 DIV 33 AS col1 FROM tab0 cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2513
SELECT + col2 / 33 AS col1 FROM tab0 cor0
----
0
1
2
query I rowsort
SELECT + col2 + - 24 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2031
-2102
-2327
query I rowsort
SELECT ALL - - 8 * col2 * - col1 FROM tab2 AS cor0
----
-12272
-5168
-6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-2516
SELECT DISTINCT col1 DIV - col2 col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT col1 / - col2 col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT 3 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2517
SELECT 3 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 + + 29 AS col0 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT DISTINCT - 7 FROM tab2 AS cor0
----
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2520
SELECT + ( cor0.col0 ) + + col0 * CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-2520
SELECT + ( cor0.col0 ) + + col0 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT DISTINCT - - col1 * col0 + col0 * cor0.col0 * + col1 AS col2 FROM tab1 AS cor0
----
312
41600
84240
query I rowsort
SELECT ALL 67 FROM tab1 cor0
----
67
67
67
query I rowsort
SELECT ALL - - 69 FROM tab1 AS cor0
----
69
69
69
query I rowsort
SELECT - 54 * - cor0.col0 FROM tab1 AS cor0
----
162
3456
4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2526
SELECT ALL col2 * col1 + col0 DIV ( - 29 ) FROM tab0 AS cor0
----
2838
7459
96
skipif mysql # not compatible
query I rowsort label-2526
SELECT ALL col2 * col1 + col0 / ( - 29 ) FROM tab0 AS cor0
----
2838
7459
96
query I rowsort
SELECT + 5 + ( col1 ) FROM tab2 AS cor0
----
22
36
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2528
SELECT ALL + - CAST( NULL AS SIGNED ) + + col1 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col1 / + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 * - col0 + + col2 AS col1 FROM tab1 cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * tab2.col1 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 20 * + col1 + - col0 + - col1 FROM tab1
----
126
167
491
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query IIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
query I rowsort
SELECT + + 66 AS col0 FROM tab1 cor0
----
66
66
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2536
SELECT - CAST( + 42 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
12
15
54
skipif mysql # not compatible
query I rowsort label-2536
SELECT - CAST ( + 42 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
12
15
54
query I rowsort
SELECT 80 * cor0.col0 FROM tab2 AS cor0
----
560
6240
6320
query I rowsort
SELECT DISTINCT - 69 * - cor0.col1 FROM tab2 AS cor0
----
1173
2139
4071
query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0 AS cor0
----
70
query I rowsort
SELECT DISTINCT + + ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + - 84 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT ALL - 74 + + 91 AS col2 FROM tab1 AS cor0
----
17
17
17
query I rowsort
SELECT + - cor0.col0 * - 26 + cor0.col0 AS col2 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col1 * 15 col0 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT ALL + 25 + + 25 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col2 FROM tab1, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to ede490c59604723c000449e027e5cf18
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
972 values hashing to e84152c0bf436177d3b3d80e42832d4f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2550
SELECT DISTINCT + col0 + ( col2 * CAST( + col0 AS SIGNED ) ) + col2 * ( - 40 ) FROM tab2
----
-884
1066
1561
skipif mysql # not compatible
query I rowsort label-2550
SELECT DISTINCT + col0 + ( col2 * CAST ( + col0 AS INTEGER ) ) + col2 * ( - 40 ) FROM tab2
----
-884
1066
1561
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2551
SELECT DISTINCT col0 + + CAST( + ( + col1 ) AS SIGNED ) + - ( - col1 ) FROM tab0 AS cor0
----
196
229
271
skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT col0 + + CAST ( + ( + col1 ) AS INTEGER ) + - ( - col1 ) FROM tab0 AS cor0
----
196
229
271
query I rowsort
SELECT ALL - ( cor1.col0 ) FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL col0 + - ( - ( - col2 ) ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT col1 + col0 * col1 + - col0 FROM tab2 AS cor0
----
1281
241
4583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 * - ( + tab1.col1 + col1 ) col1 FROM tab1
----
-1298
-143
-242
query I rowsort
SELECT 28 - + col1 AS col0 FROM tab0
----
-58
-63
-69
query I rowsort
SELECT col1 - cor0.col2 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2558
SELECT col2 + + CAST( NULL AS SIGNED ) * 96 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2558
SELECT col2 + + CAST ( NULL AS INTEGER ) * 96 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col2 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2560
SELECT col0 DIV col2 + col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-2560
SELECT col0 / col2 + col2 FROM tab0
----
33
36
83
query I rowsort
SELECT ALL 40 FROM tab0, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT + col0 + col2 * + col0 * col0 FROM tab2
----
1330
158262
237237
query I rowsort
SELECT + tab1.col1 * col1 * - ( + col0 + - col1 ) FROM tab1
----
-11323
-5400
15548
query I rowsort
SELECT 17 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - + col0 * - col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - cor0.col2 + + col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-2568
SELECT ALL + - col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2568
SELECT ALL + - col1 / - col1 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + - col1 * col1 AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + cor0.col1 * cor0.col2 - + col1 * - col0 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT ALL cor0.col1 + + 72 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 765edb99c0b97dffc91a059697db17fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-2572
SELECT + col0 DIV + ( + ( - col1 ) ) FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2572
SELECT + col0 / + ( + ( - col1 ) ) FROM tab2
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT 19 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col2 FROM tab1
----
98
98
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col1 FROM tab1
----
64
64
64
query I rowsort
SELECT ALL - - 5 * - cor0.col0 + - col2 AS col2 FROM tab1 AS cor0
----
-377
-496
-69
query I rowsort
SELECT ALL 16 FROM tab1 cor0
----
16
16
16
query I rowsort
SELECT - col1 + - 74 * col0 AS col0 FROM tab0
----
-1862
-2687
-6677
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2580
SELECT DISTINCT - CAST( col0 + col1 AS SIGNED ) * ( - col0 ) AS col0 FROM tab0
----
16020
2640
4620
skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT - CAST ( col0 + col1 AS INTEGER ) * ( - col0 ) AS col0 FROM tab0
----
16020
2640
4620
query I rowsort
SELECT 90 FROM tab0, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT - col0 + 72 * col1 AS col1 FROM tab2 AS cor0
----
1145
2225
4170
query I rowsort
SELECT - ( 15 ) FROM tab1 AS cor0
----
-15
-15
-15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2584
SELECT DISTINCT - col1 * col0 + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - col1 * col0 + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + 15 + - cor0.col1 * 65 AS col0 FROM tab1 AS cor0
----
-1705
-665
-860
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2586
SELECT + - col1 * col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2586
SELECT + - col1 * col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 58 * + 46 AS col1 FROM tab0, tab2, tab0 AS cor0
----
2668
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT - 33 + + col1 * col2 * 84 AS col0 FROM tab2
----
128823
54231
70275
query I rowsort
SELECT ALL + 48 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 987bb44fba92bad2d37a687fed383d42
query I rowsort
SELECT ALL - col0 + - cor0.col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT cor0.col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
137
38
96
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 93e5b836e3f52f458344e73ebce589b5
query I rowsort
SELECT ALL ( + cor1.col1 ) * cor1.col1 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 51855bb230a34802a628192d3e332a79
query I rowsort
SELECT ALL + + 26 + - col2 FROM tab2 AS cor0
----
-1
-12
0
query I rowsort
SELECT DISTINCT + col2 + col1 * col1 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT ALL col1 * + col0 * + col0 + col2 FROM tab1 AS cor0
----
288
41017
83296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - col2 * col1 + - 84 AS col0 FROM tab0 AS cor0
----
-181
-2922
-7546
query I rowsort
SELECT DISTINCT - - col2 + ( col0 ) AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col1 * ( + col0 ) FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2602
SELECT ALL col2 + - col1 DIV col0 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL col2 + - col1 / col0 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT + 64 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT ALL col0 * col0 * tab0.col2 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - cor0.col0 * - 69 + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to c0b75cf176c048c9a1ad5fe877eb337b
query I rowsort
SELECT - - 1 * - 93 + col0 FROM tab2 AS cor0
----
-14
-15
-86
query I rowsort
SELECT + + 38 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT - + col2 + col1 * col2 * col0 AS col0 FROM tab1 AS cor0
----
36423
4158
99744
query I rowsort
SELECT + 4 AS col0 FROM tab2 AS cor0
----
4
4
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 * + col2 * col2 + col1 col2 FROM tab1 AS cor0
----
224558
250183
709645
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col1 FROM tab1, tab0 AS cor0
----
25
query I rowsort
SELECT - col1 * 36 * col2 AS col0 FROM tab2
----
-23256
-30132
-55224
query I rowsort
SELECT 33 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT tab2.col1 * col0 * + tab2.col2 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL - 58 + cor0.col0 * cor0.col0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to c030edb47a995c74c5683ee1ed7be6a5
query I rowsort
SELECT - col1 * 82 * + col0 FROM tab0
----
-169248
-278390
-664118
query I rowsort
SELECT ALL - 62 FROM tab2, tab1 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT - ( cor0.col1 ) + - col1 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT - col0 + + 86 FROM tab0 AS cor0
----
-3
51
62
query I rowsort
SELECT - cor0.col1 * col2 * cor0.col0 + + col1 FROM tab2 AS cor0
----
-119593
-51017
-5828
query I rowsort
SELECT + col1 * + 9 - col0 * col2 FROM tab2 AS cor0
----
-1497
-2849
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT ALL col0 DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL col0 / col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + - col1 + 84 FROM tab1 AS cor0
----
112
131
167
query I rowsort
SELECT DISTINCT cor0.col0 + - col0 + - col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT cor0.col0 * ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + col0 * + 41 - col0 FROM tab1 AS cor0
----
120
2560
3200
query I rowsort
SELECT ALL - + col1 + col2 * 91 FROM tab2 AS cor0
----
2307
2426
3441
query I rowsort
SELECT + tab2.col2 + + col1 * - 73 + - tab2.col0 FROM tab2
----
-1282
-2243
-4359
query I rowsort
SELECT ALL + + 14 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2631
SELECT + 4 DIV tab2.col0 - col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2631
SELECT + 4 / tab2.col0 - col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - 24 + + col1 - - ( - col0 ) AS col0 FROM tab2
----
-43
-86
0
query I rowsort
SELECT DISTINCT col0 - col1 FROM tab0
----
-2
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2634
SELECT DISTINCT - ( col2 * + CAST( NULL AS SIGNED ) ) - + col1 * col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT - ( col2 * + CAST ( NULL AS INTEGER ) ) - + col1 * col0 FROM tab0
----
NULL
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to adb876f0e99f8d4fbf7b7fcf19919a21
query I rowsort
SELECT ALL col2 + - col2 * col0 AS col1 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT + col0 - + col1 AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + col1 + + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + col0 + 95 AS col0 FROM tab2 AS cor0
----
102
173
174
query I rowsort
SELECT DISTINCT + - col0 + 90 FROM tab1 AS cor0
----
10
26
87
query I rowsort
SELECT + ( + tab2.col0 ) FROM tab2, tab0 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - - col0 * col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - + 74 + 41 AS col2 FROM tab1 AS cor0
----
-33
-33
-33
query I rowsort
SELECT + 85 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1125
163
725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2645
SELECT - CAST( NULL AS SIGNED ) - 71 * + tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2645
SELECT - CAST ( NULL AS INTEGER ) - 71 * + tab2.col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 - - col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT col2 - col0 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT 73 + col2 AS col1 FROM tab1
----
127
130
169
query I rowsort
SELECT + 27 AS col1 FROM tab2
----
27
27
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-2650
SELECT + tab1.col0 + cor0.col2 DIV tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif mysql # not compatible
query I rowsort label-2650
SELECT + tab1.col0 + cor0.col2 / tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT cor0.col0 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col1 - + col0 * + col0 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL 38 * col0 AS col1 FROM tab1 AS cor0
----
114
2432
3040
query I rowsort
SELECT ALL + 10 AS col0 FROM tab2 AS cor0
----
10
10
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2656
SELECT DISTINCT + ( col2 ) + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2656
SELECT DISTINCT + ( col2 ) + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2657
SELECT col1 DIV + col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2657
SELECT col1 / + col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2658
SELECT ALL + 11 DIV col0 FROM tab1 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-2658
SELECT ALL + 11 / col0 FROM tab1 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 2 AS col2 FROM tab1 cor0
----
-2
-2
-2
query I rowsort
SELECT + col0 + - col2 * col2 * col1 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT - col0 * + cor0.col0 - + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-10686
-266
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2663
SELECT ALL - + col0 * - CAST( NULL AS SIGNED ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL - + col0 * - CAST ( NULL AS INTEGER ) + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + - col1 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 - - 51 FROM tab2 AS cor0
----
-27
-28
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2666
SELECT DISTINCT tab2.col1 * + CAST( - col2 AS SIGNED ) col2 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2666
SELECT DISTINCT tab2.col1 * + CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col2 + + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL col0 + ( cor0.col0 ) * + col2 * - 37 FROM tab1 AS cor0
----
-134912
-284080
-5991
query I rowsort
SELECT - - col1 * ( - col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - col0 + + 8 AS col0 FROM tab0 AS cor0
----
-16
-27
-81
query I rowsort
SELECT DISTINCT + ( 47 ) + col1 FROM tab2 AS cor0
----
106
64
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2672
SELECT ALL CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 28 FROM tab0
----
-28
query I rowsort
SELECT DISTINCT - + ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + + col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 91 AS col2 FROM tab0 AS cor0
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2677
SELECT ALL - col1 + + col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - col1 + + col2 / - col2 AS col0 FROM tab0 AS cor0
----
-87
-92
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2678
SELECT DISTINCT col1 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT col1 / - col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT + 22 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2681
SELECT ALL - - col1 + col2 DIV col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-2681
SELECT ALL - - col1 + col2 / col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL + col1 * col0 + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL - 18 + col2 * 37 AS col1 FROM tab2 AS cor0
----
1388
944
981
query I rowsort
SELECT + col2 + + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT + 39 * col2 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
54
57
96
query I rowsort
SELECT - - col2 * col2 * - col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2, tab1 cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
onlyif mysql # use DIV operator for integer division
query I rowsort label-2689
SELECT ALL - col2 DIV - col0 AS col2 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL - col2 / - col0 AS col2 FROM tab1
----
0
1
18
query I rowsort
SELECT DISTINCT cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT DISTINCT + cor1.col2 + + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b6920525e1810523fdee3171c929510
query I rowsort
SELECT ( + tab2.col0 ) AS col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 74 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1c6aaa07ba8d3dc01ee616e16bef60f2
query I rowsort
SELECT + ( col1 * + col1 ) FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT + - 89 + cor0.col0 * - col0 AS col1 FROM tab2 AS cor0
----
-138
-6173
-6330
query I rowsort
SELECT + + cor0.col0 + - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * - col0 + + col2 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT + col1 * + col2 AS col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - - col2 * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT + cor0.col2 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT DISTINCT col1 * col2 * + cor0.col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT ALL - 47 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab2 cor2
----
81 values hashing to 905cbd63e2561d7f32ce36091d5b526a
onlyif mysql # use DIV operator for integer division
query I rowsort label-2706
SELECT - 84 DIV - col2 AS col1 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-2706
SELECT - 84 / - col2 AS col1 FROM tab1 AS cor0
----
0
1
1
query I rowsort
SELECT 39 * col2 FROM tab1
----
2106
2223
3744
query I rowsort
SELECT - 94 * - col0 FROM tab1
----
282
6016
7520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( cor0.col2 ) * - col2 col1 FROM tab1 AS cor0
----
2862
3192
9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-2710
SELECT DISTINCT col2 DIV col2 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT col2 / col2 AS col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT ALL - - col2 * - col2 FROM tab2 cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT DISTINCT + - col0 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT + - col0 / - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 * - 41 FROM tab1 AS cor0
----
-1066
-410
-533
query I rowsort
SELECT ALL + - col2 + col0 AS col0 FROM tab1 AS cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT - cor0.col0 DIV + col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2715
SELECT - cor0.col0 / + col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - - col2 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - - col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + 77 * + col0 AS col2 FROM tab2 AS cor0
----
539
6006
6083
onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT - 17 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2719
SELECT - 17 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 + + col1 AS col1 FROM tab1 cor0
----
106
55
84
query I rowsort
SELECT DISTINCT + col0 * col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT - 6 FROM tab2 AS cor0
----
-6
-6
-6
query I rowsort
SELECT ALL + 4 * - col0 + - col2 FROM tab0 AS cor0
----
-129
-141
-438
query I rowsort
SELECT - - ( cor0.col0 ) + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + - col0 + - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2727
SELECT + - cor0.col1 DIV - 31 FROM tab1, tab0, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-2727
SELECT + - cor0.col1 / - 31 FROM tab1, tab0, tab1 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT tab0.col2 * col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + + 58 AS col1 FROM tab0 cor0
----
58
58
58
query I rowsort
SELECT + col1 + - 4 * - col0 * 92 + + col0 AS col1 FROM tab2 AS cor0
----
2614
28841
29168
query I rowsort
SELECT ALL + 0 * col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - 97 * col2 - col0 FROM tab2 AS cor0
----
-2600
-2626
-3765
query I rowsort
SELECT ( cor0.col2 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col0 * cor0.col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT 12 DIV col1 + - 52 FROM tab2 AS cor0
----
-52
-52
-52
skipif mysql # not compatible
query I rowsort label-2735
SELECT 12 / col1 + - 52 FROM tab2 AS cor0
----
-52
-52
-52
query I rowsort
SELECT cor1.col2 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col0 * col2 * col2 + + col2 FROM tab0 AS cor0
----
-26103
-34
-598354
query I rowsort
SELECT - col2 * + col2 * - 93 - cor0.col2 AS col1 FROM tab0 AS cor0
----
101244
625250
92
query I rowsort
SELECT ALL 53 AS col1 FROM tab2
----
53
53
53
query I rowsort
SELECT ALL + - col2 + - col0 AS col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT ALL col0 + - col1 * col2 * + cor0.col2 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-119648
-32362
-75810
query I rowsort
SELECT col2 * - col0 * + col2 AS col1 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT - ( + 4 + - cor0.col0 ) FROM tab2, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to e24fa067a88e8b8930e774298461d6bb
query I rowsort
SELECT DISTINCT - 85 FROM tab1 cor0
----
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 * 83 col2 FROM tab2 AS cor0
----
1411
2573
4897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col0 FROM tab2
----
137
38
96
query I rowsort
SELECT cor0.col2 * cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to aeb56f097f17f262600266df7fcf8652
query I rowsort
SELECT ALL + 4 FROM tab2 cor0
----
4
4
4
query I rowsort
SELECT DISTINCT - + col0 + 75 FROM tab0 AS cor0
----
-14
40
51
query I rowsort
SELECT cor0.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 + col0 col2 FROM tab1 AS cor0
----
138
173
32
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( ( + col1 ) AS REAL ) + 98 AS col2 FROM tab1 AS cor0
----
108
111
124
query I rowsort
SELECT DISTINCT + 64 FROM tab1, tab2 AS cor0
----
64
query I rowsort
SELECT ALL 22 * cor0.col0 AS col2 FROM tab1 cor0
----
1408
1760
66
query I rowsort
SELECT DISTINCT + - col2 * col1 + - 14 * col0 AS col0 FROM tab1 AS cor0
----
-1446
-1466
-2368
query I rowsort
SELECT - - 68 - col2 * ( cor0.col1 * col0 ) FROM tab2 AS cor0
----
-119584
-50966
-5791
query I rowsort
SELECT ALL + 2 AS col0 FROM tab1 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT col2 + - col1 * cor0.col1 AS col2 FROM tab2 cor0
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2759
SELECT DISTINCT - - col0 + col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1328
1407
634
skipif mysql # not compatible
query I rowsort label-2759
SELECT DISTINCT - - col0 + col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2760
SELECT col1 + + col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2760
SELECT col1 + + col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col2 ) * + col0 + - col1 - col0 FROM tab2 AS cor0
----
151
1891
2906
query I rowsort
SELECT - + ( - col0 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + + col0 * - col1 + col0 + col2 AS col0 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT ( - tab1.col1 ) * col1 - - 5 FROM tab1
----
-164
-671
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * + col1 + + col1 * - 0 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 64 - - 74 AS col0 FROM tab2
----
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2767
SELECT tab2.col0 + col0 * + col2 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2767
SELECT tab2.col0 + col0 * + col2 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + tab1.col0 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT - col0 DIV + tab1.col2 AS col1 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2769
SELECT - col0 / + tab1.col2 AS col1 FROM tab1
----
-1
0
0
query I rowsort
SELECT DISTINCT - col1 + - col0 * col2 * col0 AS col0 FROM tab2 AS cor0
----
-1354
-158243
-237175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2771
SELECT col1 * CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2771
SELECT col1 * CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 * col1 * + col1 + col2 FROM tab1 AS cor0
----
-13424
-1974
-6343
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 - - col0 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT + col0 * + ( col0 ) FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + + col1 * col1 + col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - 89 FROM tab2
----
-89
-89
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - 1 FROM tab2
----
-1
query I rowsort
SELECT DISTINCT 97 + col2 AS col2 FROM tab0
----
130
179
98
query I rowsort
SELECT DISTINCT - 28 * - col0 + + col0 * col2 FROM tab1
----
246
5440
9920
query I rowsort
SELECT col1 * 71 + col2 FROM tab0 AS cor0
----
6139
6543
6888
query I rowsort
SELECT DISTINCT + col2 + 38 - col1 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-35
-5
-584
query I rowsort
SELECT DISTINCT + cor0.col2 - + ( col2 ) FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col0 + 84 AS col1 FROM tab0 AS cor0
----
-5
49
60
query I rowsort
SELECT DISTINCT - col1 * col1 + - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT - col2 * col0 + col2 AS col1 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + col0 + + 38 AS col0 FROM tab0 AS cor0
----
127
62
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT ALL CAST( - 44 AS SIGNED ) * col1 * col0 AS col0 FROM tab1 AS cor0
----
-28160
-3432
-45760
skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL CAST ( - 44 AS INTEGER ) * col1 * col0 AS col0 FROM tab1 AS cor0
----
-28160
-3432
-45760
query I rowsort
SELECT DISTINCT + ( 44 ) AS col1 FROM tab1 cor0
----
44
query I rowsort
SELECT ALL + ( 64 ) * - col0 + ( col1 ) FROM tab0 AS cor0
----
-1450
-2143
-5605
query I rowsort
SELECT + 63 FROM tab0, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
onlyif mysql # use DIV operator for integer division
query I rowsort label-2793
SELECT + col0 * - ( col0 ) DIV col0 + 21 FROM tab2
----
-57
-58
14
skipif mysql # not compatible
query I rowsort label-2793
SELECT + col0 * - ( col0 ) / col0 + 21 FROM tab2
----
-57
-58
14
query I rowsort
SELECT - col2 * + ( col0 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col2 + - col0 * col1 AS col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ( + col2 ) AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - col2 * 32 FROM tab1 AS cor0
----
-1728
-1824
-3072
query I rowsort
SELECT col2 * 23 AS col2 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT ALL - + col2 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - - col1 * + col0 * col2 AS col0 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL - 19 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT - tab1.col2 * 55 + 78 FROM tab1
----
-2892
-3057
-5202
onlyif mysql # use DIV operator for integer division
query I rowsort label-2803
SELECT ALL + tab2.col0 DIV tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL + tab2.col0 / tab2.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT - 23 FROM tab2, tab1 AS cor0
----
-23
query I rowsort
SELECT DISTINCT ( - col1 * + col0 ) AS col1 FROM tab1
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2806
SELECT ALL + col0 * col0 + - col2 * - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL + col0 * col0 + - col2 * - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * + 24 AS col0 FROM tab2 AS cor0
----
624
648
912
query I rowsort
SELECT ALL + col2 + 49 * cor0.col0 FROM tab0 AS cor0
----
1209
1716
4443
query I rowsort
SELECT - + 90 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-31
-59
-73
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col2 * - col0 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + + 55 FROM tab1 AS cor0
----
55
55
55
query I rowsort
SELECT ALL 74 + 68 + + col1 FROM tab2 cor0
----
159
173
201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col2 FROM tab0, tab2 cor0
----
62
query I rowsort
SELECT - + 67 AS col0 FROM tab1 AS cor0
----
-67
-67
-67
query I rowsort
SELECT ALL col1 * - col1 + - col1 * col1 + 10 AS col1 FROM tab0 AS cor0
----
-14782
-16552
-18808
query I rowsort
SELECT ALL + col1 * col1 + col1 FROM tab2
----
306
3540
992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * col1 * - col1 col0 FROM tab2
----
205379
29791
4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-2818
SELECT 19 * col0 + 19 + ( - col2 ) DIV tab1.col2 AS col1 FROM tab1
----
1234
1538
75
skipif mysql # not compatible
query I rowsort label-2818
SELECT 19 * col0 + 19 + ( - col2 ) / tab1.col2 AS col1 FROM tab1
----
1234
1538
75
query I rowsort
SELECT 23 * + col1 FROM tab1
----
230
299
598
onlyif mysql # use DIV operator for integer division
query I rowsort label-2820
SELECT DISTINCT - + col2 + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
skipif mysql # not compatible
query I rowsort label-2820
SELECT DISTINCT - + col2 + col2 / + col0 AS col2 FROM tab2 AS cor0
----
-24
-26
-38
query I rowsort
SELECT ALL + 37 FROM tab0 AS cor0
----
37
37
37
query I rowsort
SELECT + 86 - + cor0.col0 FROM tab0 AS cor0
----
-3
51
62
query I rowsort
SELECT ALL + - 66 * cor0.col1 FROM tab2 AS cor0
----
-1122
-2046
-3894
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + col0 - + ( col0 ) col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2826
SELECT + col1 + tab1.col2 + - tab1.col0 DIV + col2 FROM tab1
----
109
66
80
skipif mysql # not compatible
query I rowsort label-2826
SELECT + col1 + tab1.col2 + - tab1.col0 / + col2 FROM tab1
----
109
66
80
query I rowsort
SELECT ALL + + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - + col1 * col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT 35 FROM tab2, tab2 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - cor0.col1 + - 25 * col0 FROM tab1 AS cor0
----
-101
-1610
-2013
query I rowsort
SELECT - cor0.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-2833
SELECT DISTINCT col1 * CAST( - 11 + - col2 AS SIGNED ) FROM tab2
----
-1178
-2183
-833
skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT col1 * CAST ( - 11 + - col2 AS INTEGER ) FROM tab2
----
-1178
-2183
-833
query I rowsort
SELECT col1 * 93 AS col0 FROM tab2
----
1581
2883
5487
query I rowsort
SELECT DISTINCT - col2 * 81 FROM tab0 cor0
----
-2673
-6642
-81
query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - 19 FROM tab1 AS cor0
----
-19
-19
-19
query I rowsort
SELECT 75 + - col1 FROM tab2 AS cor0
----
16
44
58
query I rowsort
SELECT - col1 + + col1 * ( + col2 ) * col2 FROM tab1 AS cor0
----
119795
32480
75790
onlyif mysql # use DIV operator for integer division
query I rowsort label-2840
SELECT + - cor0.col2 + - cor0.col1 DIV ( col1 * - col1 ) + + 66 AS col2 FROM tab1 AS cor0
----
-30
12
9
skipif mysql # not compatible
query I rowsort label-2840
SELECT + - cor0.col2 + - cor0.col1 / ( col1 * - col1 ) + + 66 AS col2 FROM tab1 AS cor0
----
-30
12
9
query I rowsort
SELECT col0 + - col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL + cor0.col0 + 63 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to f238992bff8b42e805fe0bf0a69e4a6c
onlyif mysql # use DIV operator for integer division
query I rowsort label-2844
SELECT + col0 DIV - 84 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2844
SELECT + col0 / - 84 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - col2 AS col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 * + col0 * - col2 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT + - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 - cor1.col0 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b5b9cceefef23d4ffdf9852fd8d61bb
query I rowsort
SELECT - ( ( + col1 ) ) FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + + 35 AS col2 FROM tab0 cor0
----
35
35
35
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 cor2, tab2 AS cor3
----
3645 values hashing to dd5ce24448edb4b3ab62c251475d6548
query I rowsort
SELECT ALL 44 FROM tab0, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT - col2 * + col0 * - 25 FROM tab0
----
182450
19800
875
query I rowsort
SELECT ALL - tab0.col0 * + col0 + + 57 FROM tab0
----
-1168
-519
-7864
query I rowsort
SELECT ( ( col1 ) * ( 44 ) ) FROM tab1
----
1144
440
572
query I rowsort
SELECT - + col1 + - ( col1 ) AS col1 FROM tab0 cor0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - 25 * - col2 + - col2 FROM tab0 AS cor0
----
1968
24
792
query I rowsort
SELECT ALL ( + 33 ) + col2 * + col2 FROM tab0 AS cor0
----
1122
34
6757
query I rowsort
SELECT ALL 58 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT + cor0.col2 + + 31 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3fb6e781758370638c793aa475cb1117
query I rowsort
SELECT DISTINCT + - ( + cor0.col1 ) * - col1 + 82 FROM tab0 AS cor0
----
7478
8363
9491
query I rowsort
SELECT + col0 * col0 + + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT col1 + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL col2 - col1 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2865
SELECT + 48 DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2865
SELECT + 48 / - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 * + col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1, tab0, tab0 cor0, tab2
----
86
91
97
query I rowsort
SELECT + 72 * - col0 AS col2 FROM tab2
----
-504
-5616
-5688
query I rowsort
SELECT - 72 AS col2 FROM tab0 cor0
----
-72
-72
-72
query I rowsort
SELECT - 65 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT col2 + - col1 * 20 AS col1 FROM tab2 AS cor0
----
-1154
-302
-593
query I rowsort
SELECT DISTINCT 67 FROM tab0, tab2 AS cor0
----
67
query I rowsort
SELECT ALL + 58 FROM tab0, tab2 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2874
SELECT - CAST( 44 AS SIGNED ) * + cor1.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2ef5db9cb479cee4c87fae671f8af0b5
skipif mysql # not compatible
query I rowsort label-2874
SELECT - CAST ( 44 AS INTEGER ) * + cor1.col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 2ef5db9cb479cee4c87fae671f8af0b5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2875
SELECT ALL - col2 DIV 38 AS col2 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-2875
SELECT ALL - col2 / 38 AS col2 FROM tab1
----
-1
-1
-2
query I rowsort
SELECT ALL - col1 * tab2.col1 AS col0 FROM tab2
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2877
SELECT CAST( NULL AS SIGNED ) - - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2877
SELECT CAST ( NULL AS INTEGER ) - - tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 * - cor0.col2 + + 36 FROM tab2 AS cor0
----
1480
712
765
query I rowsort
SELECT col2 + ( col0 ) AS col2 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2880
SELECT DISTINCT - col1 DIV col0 AS col1 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-2880
SELECT DISTINCT - col1 / col0 AS col1 FROM tab1
----
-8
0
query I rowsort
SELECT + col0 - + 1 FROM tab2
----
6
77
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2882
SELECT - col0 + + CAST( col1 * col1 AS SIGNED ) AS col1 FROM tab0
----
7372
8192
9374
skipif mysql # not compatible
query I rowsort label-2882
SELECT - col0 + + CAST ( col1 * col1 AS INTEGER ) AS col1 FROM tab0
----
7372
8192
9374
query I rowsort
SELECT ( ( - col1 ) ) * col2 - ( col0 ) AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2884
SELECT + + CAST( col1 AS SIGNED ) * + col1 * + col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197
skipif mysql # not compatible
query I rowsort label-2884
SELECT + + CAST ( col1 AS INTEGER ) * + col1 * + col1 AS col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT ( + col0 ) - cor0.col0 * - ( - col1 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT - col2 - cor0.col2 FROM tab2 cor0
----
-52
-54
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * 90 + col0 * col2 col0 FROM tab2 AS cor0
----
2979
4532
7338
query I rowsort
SELECT + - col2 * + 99 AS col0 FROM tab2 AS cor0
----
-2574
-2673
-3762
query I rowsort
SELECT 10 * col2 AS col0 FROM tab1 AS cor0
----
540
570
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col0 - + col2 FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 11 col2 FROM tab2 AS cor0
----
-11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2893
SELECT DISTINCT + + CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col0 FROM tab1, tab0, tab0 AS cor0, tab2
----
-70
query I rowsort
SELECT DISTINCT - - 75 * ( col1 ) AS col2 FROM tab2 AS cor0
----
1275
2325
4425
query I rowsort
SELECT - cor0.col1 + col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - 38 * ( col0 ) FROM tab2 AS cor0
----
-266
-2964
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) * col1 - - col0 col0 FROM tab2 cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT col1 * - 9 FROM tab0 cor0
----
-774
-819
-873
query I rowsort
SELECT ALL - ( 23 ) * + col0 + + 42 FROM tab0 AS cor0
----
-2005
-510
-763
query I rowsort
SELECT col0 + + col1 - - col2 AS col1 FROM tab0
----
133
143
262
query I rowsort
SELECT ALL tab0.col0 * + col2 * + tab0.col0 AS col1 FROM tab0 WHERE NULL IN ( tab0.col2 + col0 - - col1 * + col0 * - col0 )
----
query I rowsort
SELECT DISTINCT + col2 * col0 + col0 AS col1 FROM tab2
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab2.col2 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT tab2.col1 + + col2 AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT - col2 + col1 + + col1 AS col2 FROM tab1
----
-2
-37
-70
query I rowsort
SELECT col2 + - col2 + + col2 FROM tab0 WHERE col0 >= NULL
----
query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + col0 * + tab0.col1 NOT BETWEEN col2 AND NULL
----
query I rowsort
SELECT DISTINCT - cor0.col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( col1 )
----
query I rowsort
SELECT DISTINCT col0 * + col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT col1 + - col0 * col1 FROM tab0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-2913
SELECT ALL tab0.col1 DIV + tab0.col2 + col0 * col1 AS col0 FROM tab0
----
2066
3492
8100
skipif mysql # not compatible
query I rowsort label-2913
SELECT ALL tab0.col1 / + tab0.col2 + col0 * col1 AS col0 FROM tab0
----
2066
3492
8100
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - col1 / - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col1 FROM tab2
----
289
3481
961
query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col1 NOT IN ( - col1 * col2 * - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + tab2.col1 * col1 )
----
query I rowsort
SELECT DISTINCT - col1 + col2 * - col0 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT col1 + col2 * - col1 FROM tab1 WHERE NOT + col2 * + col0 BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT col0 - col2 DIV + col2 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-2920
SELECT col0 - col2 / + col2 FROM tab0
----
23
34
88
query I rowsort
SELECT DISTINCT - tab2.col0 + + col1 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL col0 + + col1 * - col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT - col1 * + tab2.col0 * - tab2.col0 AS col0 FROM tab2 WHERE NOT ( - col1 * col0 * - col1 ) NOT IN ( col1 - col0 )
----
query I rowsort
SELECT ALL + tab2.col0 + col2 * + col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL = col1
----
query I rowsort
SELECT ALL col0 + col1 * col1 AS col0 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-2927
SELECT ALL - col2 DIV col0 + - col2 AS col1 FROM tab0
----
-1
-34
-82
skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - col2 / col0 + - col2 AS col1 FROM tab0
----
-1
-34
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - col2 * + col1 col2 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT ALL col1 * col1 + col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT + - col1 * col1 + col2 * cor0.col0 FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT - col0 * col2 + col0 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - cor0.col2 * col2 col1 FROM tab0 AS cor0
----
1557
6307
9408
query I rowsort
SELECT DISTINCT col0 + col1 + + col0 FROM tab2
----
175
215
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT + col1 + col1 + - col0 DIV + col1 FROM tab0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-2934
SELECT + col1 + col1 + - col0 / + col1 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT - col2 * col1 * + col1 + col1 * + col0 * col2 FROM tab2
----
-20088
29146
40052
onlyif mysql # use DIV operator for integer division
query I rowsort label-2936
SELECT DISTINCT - + cor0.col0 DIV col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - + cor0.col0 / col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + col1 * + col1 * cor0.col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + col0 * col2 + col1 AS col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT ALL + col0 * + cor0.col1 * col2 + - col0 AS col1 FROM tab0 AS cor0
----
3360
664029
68088
query I rowsort
SELECT DISTINCT - + col2 + + col0 * + col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL - col2 + + col0 + col0 FROM tab2 AS cor0
----
-13
120
130
query I rowsort
SELECT col2 * + col1 * col2 + + col0 AS col2 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT ALL - col2 * col0 * cor0.col2 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND col1 + col1 * + col1 * - col2
----
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col0
----
query I rowsort
SELECT DISTINCT - col1 + + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT + col0 * cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT col1 * + col0 * + col2 FROM tab0 AS cor0 WHERE NULL IN ( cor0.col0 )
----
query I rowsort
SELECT ALL cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2949
SELECT + - col0 * CAST( NULL AS SIGNED ) + - col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2949
SELECT + - col0 * CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL cor0.col1 + + CAST ( col0 AS REAL ) * + col2 * col0 FROM tab0 AS cor0
----
1322
19094
649613
query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col1 * + col1 * - 37 + + col1 FROM tab2 AS cor0
----
-10676
-128738
-35526
query I rowsort
SELECT DISTINCT - cor0.col2 + - 15 + - cor0.col1 * col0 FROM tab2 AS cor0
----
-1396
-259
-4643
query I rowsort
SELECT + + col1 + - 83 AS col0 FROM tab2 AS cor0
----
-24
-52
-66
query I rowsort
SELECT ALL cor0.col1 + col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT DISTINCT + col0 + col1 * - col2 * + col1 - + 0 FROM tab2 cor0
----
-10903
-25940
-90428
onlyif mysql # use DIV operator for integer division
query I rowsort label-2957
SELECT ALL + col2 * + col0 * + col1 + col0 DIV 83 + - cor0.col2 FROM tab2 AS cor0
----
119626
50996
5832
skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL + col2 * + col0 * + col1 + col0 / 83 + - cor0.col2 FROM tab2 AS cor0
----
119626
50996
5832
onlyif mysql # use DIV operator for integer division
query I rowsort label-2958
SELECT col0 + col1 DIV ( col1 ) FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-2958
SELECT col0 + col1 / ( col1 ) FROM tab0
----
25
36
90
query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab2, tab1, tab2 cor0
----
-72
query I rowsort
SELECT + col0 * + col2 + + col0 AS col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT - col2 * 25 + col2 AS col1 FROM tab0 cor0
----
-1968
-24
-792
query I rowsort
SELECT - cor0.col1 + + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2963
SELECT - - CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2963
SELECT - - CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + 4 - - col1 FROM tab0 AS cor0
----
101
90
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT ALL - col2 DIV - col0 AS col1 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2965
SELECT ALL - col2 / - col0 AS col1 FROM tab1
----
0
1
18
query I rowsort
SELECT - col1 + col2 * col1 * col2 + - col1 AS col0 FROM tab0
----
-97
611702
93482
onlyif mysql # use DIV operator for integer division
query I rowsort label-2967
SELECT DISTINCT - col0 + - col0 - + col1 DIV - col0 FROM tab2
----
-10
-156
-158
skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - col0 + - col0 - + col1 / - col0 FROM tab2
----
-10
-156
-158
query I rowsort
SELECT col1 + - col2 + col0 FROM tab1
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-2969
SELECT ALL tab0.col2 DIV + col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2969
SELECT ALL tab0.col2 / + col0 FROM tab0
----
0
0
1
query I rowsort
SELECT + col2 * + col0 * - col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col0 - col1 * - col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( col0 * col0 * + col1 + col1 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2973
SELECT col0 DIV col1 + col0 + + col1 DIV col1 AS col0 FROM tab2
----
8
80
84
skipif mysql # not compatible
query I rowsort label-2973
SELECT col0 / col1 + col0 + + col1 / col1 AS col0 FROM tab2
----
8
80
84
query I rowsort
SELECT + tab1.col0 + col1 + - col2 AS col1 FROM tab1
----
-25
-3
17
query I rowsort
SELECT DISTINCT + col1 - tab1.col1 FROM tab1
----
0
query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col2 + col0 + tab1.col1 AS col0 FROM tab1
----
131
189
83
query I rowsort
SELECT ALL col2 * tab2.col1 * col0 + - col0 AS col1 FROM tab2
----
119574
50955
5852
query I rowsort
SELECT ALL - 86 * - col1 + col1 AS col1 FROM tab1
----
1131
2262
870
onlyif mysql # use DIV operator for integer division
query I rowsort label-2980
SELECT - cor0.col0 + + col2 DIV 45 FROM tab1 AS cor0
----
-2
-63
-78
skipif mysql # not compatible
query I rowsort label-2980
SELECT - cor0.col0 + + col2 / 45 FROM tab1 AS cor0
----
-2
-63
-78
query I rowsort
SELECT DISTINCT + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - - 80 * + col0 + - col2 * - col2 * + col0 FROM tab0 AS cor0
----
28056
2835
605556
query I rowsort
SELECT ALL col2 * + cor0.col1 - 53 FROM tab2 cor0
----
1481
593
784
query I rowsort
SELECT - + cor0.col1 * col1 - - 12 FROM tab1 AS cor0
----
-157
-664
-88
query I rowsort
SELECT - - ( col2 ) * cor0.col1 - col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT DISTINCT 43 + col2 FROM tab0 AS cor0
----
125
44
76
query I rowsort
SELECT cor1.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab2, tab1 AS cor0
----
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2989
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2989
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-2990
SELECT DISTINCT col0 DIV ( col1 ) FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-2990
SELECT DISTINCT col0 / ( col1 ) FROM tab1
----
0
6
query I rowsort
SELECT - col0 * col1 + + col0 - col2 FROM tab1 AS cor0
----
-1056
-129
-633
query I rowsort
SELECT DISTINCT cor0.col0 * 90 * - ( col0 + + cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-103680
-1425780
-220500
onlyif mysql # use DIV operator for integer division
query I rowsort label-2993
SELECT + - 81 DIV col2 col1 FROM tab1 AS cor0
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2993
SELECT + - 81 / col2 col1 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT 32 DIV 40 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2994
SELECT 32 / 40 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - ( - 74 ) + + tab1.col2 FROM tab1, tab2 cor0
----
9 values hashing to 08005cc0fec9329d6959e1c8dc367585
query I rowsort
SELECT col0 + + ( 29 ) * + col0 FROM tab2
----
210
2340
2370
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 974a92f740f5f08d18564d29c05f7692
query I rowsort
SELECT ALL + - tab2.col0 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to adaea38eae032c1639715f21831dd376
onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT 17 DIV + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2999
SELECT 17 / + ( - col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( - col2 ) + + col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col0 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 + ( col0 ) * - col1 + - col2 FROM tab0 AS cor0
----
-1305
-3361
-883
query I rowsort
SELECT - + col2 - + col0 * + col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + col0 + col0 AS col2 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT 80 * col2 AS col0 FROM tab2 AS cor0
----
2080
2160
3040
query I rowsort
SELECT col2 * col0 - 33 FROM tab0 cor0
----
2
7265
759
query I rowsort
SELECT col0 + ( col1 ) - - col0 * col1 FROM tab0 AS cor0
----
2174
3527
8279
query I rowsort
SELECT - col0 + + ( col1 ) + col1 FROM tab1 AS cor0
----
-44
-54
49
query I rowsort
SELECT col1 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3012
SELECT 76 DIV - col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3012
SELECT 76 / - col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3013
SELECT ALL col0 DIV + col2 AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL col0 / + col2 AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT + ( - col1 ) + + col2 AS col2 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL 86 + col1 AS col2 FROM tab1
----
112
96
99
query I rowsort
SELECT ALL col1 * - col1 + - col2 AS col1 FROM tab0
----
-7429
-8363
-9410
query I rowsort
SELECT + col2 - - col1 AS col0 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT ALL - + col1 * + cor0.col1 - + col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-289
-3481
-958
skipif mysql # not compatible
query I rowsort label-3018
SELECT ALL - + col1 * + cor0.col1 - + col2 / - cor0.col0 FROM tab2 AS cor0
----
-289
-3481
-958
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + col2 * + col2 * + cor0.col0 - col1 AS col0 FROM tab2 AS cor0
----
114059
5072
52669
onlyif mysql # use DIV operator for integer division
query I rowsort label-3021
SELECT ALL - col0 + + col0 DIV col0 FROM tab1 AS cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-3021
SELECT ALL - col0 + + col0 / col0 FROM tab1 AS cor0
----
-2
-63
-79
query I rowsort
SELECT - ( - col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT col0 + + tab2.col0 + + col0 FROM tab2
----
21
234
237
query I rowsort
SELECT + col1 * - tab2.col0 + col2 - - tab2.col2 AS col2 FROM tab2
----
-1267
-163
-4550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 - col1 col2 FROM tab1
----
-188
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + + col2 * + tab0.col2 * tab0.col0 + - col0 col2 FROM tab0
----
-35
26088
598258
onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT + col0 DIV - col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3027
SELECT + col0 / - col0 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col2 * - col0 - - col2 * + col2 AS col0 FROM tab2
----
-1352
-1558
540
query I rowsort
SELECT - - col2 + col2 AS col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - col1 - col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT tab0.col2 * col2 - tab0.col1 FROM tab0
----
-96
1003
6633
query I rowsort
SELECT col2 + + tab0.col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT + col1 - col1 * - col1 AS col0 FROM tab0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 * col2 col2 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT + 60 AS col0 FROM tab1
----
60
60
60
query I rowsort
SELECT + - 80 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-21
-49
-63
query I rowsort
SELECT ALL - col2 * + col0 - + cor0.col1 * + col1 FROM tab1 AS cor0
----
-3748
-7849
-838
query I rowsort
SELECT DISTINCT 63 + col1 AS col1 FROM tab1 AS cor0
----
73
76
89
query I rowsort
SELECT - 49 + col0 * + col0 FROM tab0 AS cor0
----
1176
527
7872
query I rowsort
SELECT + ( - col2 ) FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - col0 + + tab0.col2 * - col0 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT - ( tab2.col2 ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL 28 * + 82 FROM tab1
----
2296
2296
2296
query I rowsort
SELECT DISTINCT - ( col0 ) * col0 * col1 AS col2 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT 75 AS col0 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT + - ( + col1 ) + cor0.col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3047
SELECT ALL + - cor0.col1 + col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-3047
SELECT ALL + - cor0.col1 + col1 / - col2 AS col0 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT ALL + - col1 * cor0.col2 * col0 + - 71 FROM tab1 AS cor0
----
-36551
-4283
-99911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT + 75 * - tab0.col2 * - col1 + + col1 FROM tab0
----
212936
559741
7372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab0, tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL 71 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
query I rowsort
SELECT ALL - 79 AS col2 FROM tab1, tab0, tab0 cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 1 col2 FROM tab2, tab1, tab2 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3056
SELECT col2 + - col0 DIV ( - 20 ) FROM tab1 AS cor0
----
100
54
60
skipif mysql # not compatible
query I rowsort label-3056
SELECT col2 + - col0 / ( - 20 ) FROM tab1 AS cor0
----
100
54
60
query I rowsort
SELECT ALL 86 * col1 AS col2 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT ALL - col2 * col1 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab0
----
69
query I rowsort
SELECT - col2 * col1 * ( col2 ) FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT + tab0.col2 * 13 + col2 * col2 - ( - col2 ) * + col0 * - col1 FROM tab0
----
-3381
-656328
-66594
onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT col2 DIV col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3062
SELECT col2 / col2 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL - col0 - - 23 * - ( - col1 * + 52 ) FROM tab0
----
102832
108747
115977
query I rowsort
SELECT DISTINCT + col0 + + 84 - - col0 FROM tab2
----
240
242
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3065
SELECT col1 * - CAST( + col0 AS SIGNED ) + + col1 FROM tab2
----
-1326
-186
-4543
skipif mysql # not compatible
query I rowsort label-3065
SELECT col1 * - CAST ( + col0 AS INTEGER ) + + col1 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT ALL + ( col2 ) - + col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3067
SELECT col1 DIV col1 + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3067
SELECT col1 / col1 + col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + - 75 * + col0 * col0 FROM tab0 AS cor0
----
-43200
-594075
-91875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + ( - col1 ) col0 FROM tab1
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col2 col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3071
SELECT DISTINCT col1 DIV tab1.col1 - col2 AS col0 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT col1 / tab1.col1 - col2 AS col0 FROM tab1
----
-53
-56
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3072
SELECT - col2 DIV 66 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3072
SELECT - col2 / 66 FROM tab0
----
-1
0
0
query I rowsort
SELECT + col2 * tab1.col2 * col1 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT DISTINCT - col0 + - 77 + 64 FROM tab1
----
-16
-77
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col2 col0 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL col0 + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - 35 FROM tab2 AS cor0
----
35
35
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3078
SELECT ALL - CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3078
SELECT ALL - CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 71 col0 FROM tab1 AS cor0
----
-1846
-710
-923
query I rowsort
SELECT + cor0.col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL ( + cor0.col0 ) * col1 * + 9 + - col1 AS col0 FROM tab2 AS cor0
----
12070
1922
41359
query I rowsort
SELECT ALL - - 85 * + col0 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT col2 - + col1 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3084
SELECT DISTINCT - - col2 DIV + col2 AS col0 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-3084
SELECT DISTINCT - - col2 / + col2 AS col0 FROM tab0 cor0
----
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3085
SELECT ALL + + CAST( 35 AS SIGNED ) * col1 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-19950
-43680
-49140
skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + + CAST ( 35 AS INTEGER ) * col1 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-19950
-43680
-49140
onlyif mysql # use DIV operator for integer division
query I rowsort label-3086
SELECT DISTINCT + col0 DIV - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-3086
SELECT DISTINCT + col0 / - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT - 8 + - col0 FROM tab0 AS cor0
----
-32
-43
-97
query I rowsort
SELECT - col0 * 60 FROM tab0 cor0
----
-1440
-2100
-5340
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) + - col0 + - 5 * col1 FROM tab1 AS cor0
----
-136
-178
-225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3090
SELECT + col2 * col0 * col0 + + CAST( NULL AS SIGNED ) * + 18 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3090
SELECT + col2 * col0 * col0 + + CAST ( NULL AS INTEGER ) * + 18 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT ALL - + 14 FROM tab1 AS cor0
----
-14
-14
-14
query I rowsort
SELECT + col2 + col0 + - cor0.col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3094
SELECT 93 DIV 82 + - col0 AS col0 FROM tab1 cor0
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-3094
SELECT 93 / 82 + - col0 AS col0 FROM tab1 cor0
----
-2
-63
-79
query I rowsort
SELECT ALL + 55 * - col2 + + col1 AS col2 FROM tab0 AS cor0
----
-1729
-4419
42
query I rowsort
SELECT ALL + col2 * + 72 AS col0 FROM tab1 AS cor0
----
3888
4104
6912
query I rowsort
SELECT 69 + 37 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to a64ba54e418231a2dbc2879c8d9fbfb0
query I rowsort
SELECT ALL + ( - col1 ) * col0 * col2 AS col1 FROM tab1
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT ALL + ( 68 ) DIV - col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL + ( 68 ) / - col0 FROM tab0
----
-1
-2
0
query I rowsort
SELECT ALL + 20 + + col1 + col0 AS col2 FROM tab1
----
113
49
94
query I rowsort
SELECT ALL + ( + 81 ) + col1 AS col2 FROM tab2
----
112
140
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3102
SELECT ALL - CAST( NULL AS DECIMAL ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - CAST ( NULL AS REAL ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( 63 ) - col0 AS col2 FROM tab2 AS cor0
----
-141
-142
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col2 * col2 col1 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT DISTINCT + ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col1 + + col2 * col0 - - 28 AS col0 FROM tab1 AS cor0
----
164
3666
7695
onlyif mysql # use DIV operator for integer division
query I rowsort label-3107
SELECT + + 77 * - 29 + - col0 + 35 DIV - col1 FROM tab2 AS cor0
----
-2241
-2311
-2314
skipif mysql # not compatible
query I rowsort label-3107
SELECT + + 77 * - 29 + - col0 + 35 / - col1 FROM tab2 AS cor0
----
-2241
-2311
-2314
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3108
SELECT DISTINCT CAST( col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT CAST ( col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-20
41
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 + - col0 col0 FROM tab2 AS cor0
----
-26
-97
-98
query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 * - col1 - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + 31 * - col0 + + col1 FROM tab2 cor0
----
-186
-2359
-2432
query I rowsort
SELECT ALL 20 AS col1 FROM tab1 cor0
----
20
20
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + col1 + col0 * + col2 FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT 47 * - col2 + col2 * + CAST ( + col1 AS REAL ) * - col1 FROM tab1
----
-20736
-39042
-8379
query I rowsort
SELECT ALL col0 + - col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col1 + col2 * + tab2.col2 * 55 AS col2 FROM tab2
----
37121
40064
79403
query I rowsort
SELECT ( - col1 ) + + col2 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT + col1 DIV + 42 AS col0 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3121
SELECT + col1 / + 42 AS col0 FROM tab2
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3122
SELECT ( col2 ) + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-3122
SELECT ( col2 ) + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT - + 67 + col1 DIV + col1 + 85 * col1 FROM tab2 cor0
----
1379
2569
4949
skipif mysql # not compatible
query I rowsort label-3123
SELECT - + 67 + col1 / + col1 + 85 * col1 FROM tab2 cor0
----
1379
2569
4949
query I rowsort
SELECT - cor0.col0 + col1 + ( col2 ) AS col1 FROM tab0 AS cor0
----
63
84
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL + col0 * col2 AS col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col1 * + cor0.col0 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3128
SELECT DISTINCT col2 DIV 35 + - 77 AS col2 FROM tab1 AS cor0
----
-75
-76
skipif mysql # not compatible
query I rowsort label-3128
SELECT DISTINCT col2 / 35 + - 77 AS col2 FROM tab1 AS cor0
----
-75
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3129
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3130
SELECT DISTINCT - + col1 + CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT - + col1 + CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * - cor0.col0 + + cor0.col0 * col0 * col1 AS col2 FROM tab2 AS cor0
----
103095
1330
356928
onlyif mysql # use DIV operator for integer division
query I rowsort label-3132
SELECT DISTINCT col2 + - 92 DIV col0 AS col1 FROM tab1 AS cor0
----
24
56
95
skipif mysql # not compatible
query I rowsort label-3132
SELECT DISTINCT col2 + - 92 / col0 AS col1 FROM tab1 AS cor0
----
24
56
95
query I rowsort
SELECT DISTINCT + cor0.col0 * + 39 + cor0.col2 * col0 FROM tab1 cor0
----
10800
279
6144
onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT - + col0 DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3134
SELECT - + col0 / + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + col1 * col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 34 col2 FROM tab1 AS cor0
----
-102
-2176
-2720
query I rowsort
SELECT DISTINCT + - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - col2 * 69 AS col2 FROM tab2 AS cor0
----
-1794
-1863
-2622
query I rowsort
SELECT - + col1 * 80 AS col2 FROM tab0 AS cor0
----
-6880
-7280
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3140
SELECT + 33 DIV + col0 - col2 AS col1 FROM tab2 AS cor0
----
-23
-26
-38
skipif mysql # not compatible
query I rowsort label-3140
SELECT + 33 / + col0 - col2 AS col1 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT - 23 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3142
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) * col0 col1 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) * col0 col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT col2 - - 31 AS col2 FROM tab1 AS cor0
----
127
85
88
query I rowsort
SELECT ALL + - cor0.col1 * + cor0.col0 + - 92 * - col1 AS col1 FROM tab0 AS cor0
----
273
5529
5848
query I rowsort
SELECT DISTINCT col1 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT col2 * - col0 + + tab0.col0 AS col2 FROM tab0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 81 * col2 * + 42 + tab0.col1 col2 FROM tab0
----
-112180
-278873
-3305
query I rowsort
SELECT ALL ( col0 * - col1 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - cor0.col0 + - col1 * cor0.col2 AS col2 FROM tab2 cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3150
SELECT + + cor0.col0 * - CAST( - col1 AS SIGNED ) - + col2 * - col0 FROM tab1 AS cor0
----
240
4288
8720
skipif mysql # not compatible
query I rowsort label-3150
SELECT + + cor0.col0 * - CAST ( - col1 AS INTEGER ) - + col2 * - col0 FROM tab1 AS cor0
----
240
4288
8720
query I rowsort
SELECT ALL cor0.col0 * + col1 + + col1 * col0 FROM tab2 AS cor0
----
2686
434
9204
query I rowsort
SELECT DISTINCT - - col1 - 96 * + 7 FROM tab1 AS cor0
----
-646
-659
-662
query I rowsort
SELECT ALL - cor0.col2 * col0 * ( cor0.col2 * 57 ) AS col0 FROM tab1 AS cor0
----
-11852352
-42024960
-498636
query I rowsort
SELECT ALL 63 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT - col0 DIV col1 col0 FROM tab1
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3155
SELECT - col0 / col1 col0 FROM tab1
----
-6
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3156
SELECT CAST( NULL AS SIGNED ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3156
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col0 + + 67 * - cor0.col0 * + col0 FROM tab0 AS cor0
----
-38616
-530796
-82110
query I rowsort
SELECT + + col0 + - 74 * - col2 AS col1 FROM tab1 AS cor0
----
3999
4282
7184
query I rowsort
SELECT - ( - col0 ) AS col2 FROM tab2
----
7
78
79
query I rowsort
SELECT col2 * 30 + - col1 FROM tab2 AS cor0
----
1123
721
779
onlyif mysql # use DIV operator for integer division
query I rowsort label-3162
SELECT ALL + + col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL + + col1 / col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT col0 + + 16 AS col0 FROM tab2 cor0
----
23
94
95
query I rowsort
SELECT - + ( col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col2 * - 24 * + col1 + col0 AS col2 FROM tab0 AS cor0
----
-178999
-2293
-68088
query I rowsort
SELECT DISTINCT - - col1 * + 25 AS col1 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT DISTINCT col0 * 67 FROM tab1
----
201
4288
5360
query I rowsort
SELECT - col1 * - cor0.col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + 42 * + col2 AS col1 FROM tab2 AS cor0
----
1092
1134
1596
query I rowsort
SELECT ALL + 44 * 89 AS col2 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 5056e18e65a13cec2eedcb2aa55dfdc7
query I rowsort
SELECT ALL 95 FROM tab0, tab1 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3172
SELECT - - 82 DIV - col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-3172
SELECT - - 82 / - col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3173
SELECT - + col1 * col1 DIV - 5 FROM tab0 AS cor0
----
1479
1656
1881
skipif mysql # not compatible
query I rowsort label-3173
SELECT - + col1 * col1 / - 5 FROM tab0 AS cor0
----
1479
1656
1881
query I rowsort
SELECT tab0.col1 + col1 * col1 * - col1 AS col0 FROM tab0
----
-635970
-753480
-912576
query I rowsort
SELECT ALL - + col2 * cor0.col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL - col1 + cor0.col1 * 95 FROM tab2 AS cor0
----
1598
2914
5546
onlyif mysql # use DIV operator for integer division
query I rowsort label-3177
SELECT ALL + + col2 DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + + col2 / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT ( + col0 ) * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + 17 FROM tab2 cor0
----
17
17
17
query I rowsort
SELECT - col1 + - col2 * + col1 AS col2 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT + 89 FROM tab1 cor0
----
89
89
89
query I rowsort
SELECT ALL - - col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + + col2 + + col1 * col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3185
SELECT DISTINCT col0 DIV - ( col1 * - cor0.col0 ) AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT col0 / - ( col1 * - cor0.col0 ) AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT - + col0 * + col2 + - 7 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-140
-1482
-2449
query I rowsort
SELECT + 33 AS col0 FROM tab2
----
33
33
33
query I rowsort
SELECT ALL - 31 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 * + 63 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to fbdfd4ff48ea24a81fddaa1a6a9aa931
query I rowsort
SELECT 0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - 15 + + col1 AS col1 FROM tab2 AS cor0
----
16
2
44
query I rowsort
SELECT 5 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT ALL + cor0.col2 * - 49 FROM tab0, tab1 cor0
----
9 values hashing to ec7b028f570e1876116d7bce8f88df12
query I rowsort
SELECT - col2 + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + - cor0.col2 col1 FROM tab0 AS cor0
----
-38
11
43
query I rowsort
SELECT DISTINCT - ( + col2 ) * - cor0.col1 + 89 * + 62 AS col0 FROM tab1 AS cor0
----
6088
6766
6922
query I rowsort
SELECT + + 22 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7418
8303
9431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( cor0.col1 ) col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - ( - 30 ) FROM tab1 cor0
----
30
30
30
query I rowsort
SELECT ALL + col1 * col1 + - col1 * col0 * - 87 + col0 FROM tab2 AS cor0
----
117209
19847
403933
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3201
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - - col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 69 + + col0 FROM tab1 AS cor0
----
133
149
72
query I rowsort
SELECT - ( - col2 ) * ( - 91 ) AS col2 FROM tab2 cor0
----
-2366
-2457
-3458
query I rowsort
SELECT ( 87 ) FROM tab2
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c9cc9510604e093bd158ca33928acaed
query I rowsort
SELECT ALL col0 * + col0 + + col1 * 5 FROM tab1
----
139
4146
6465
query I rowsort
SELECT DISTINCT - col0 * 27 + + col0 FROM tab0 AS cor0
----
-2314
-624
-910
query I rowsort
SELECT ALL + cor0.col0 + + cor0.col2 * - 94 FROM tab1 AS cor0
----
-5073
-5294
-8944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - col2 * - ( + col0 ) AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3212
SELECT DISTINCT + cor0.col0 * CAST( NULL AS SIGNED ) + 25 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT + cor0.col0 * CAST ( NULL AS INTEGER ) + 25 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL col2 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT + ( + col1 ) DIV tab1.col1 + - tab1.col0 * - col1 FROM tab1
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-3214
SELECT + ( + col1 ) / tab1.col1 + - tab1.col0 * - col1 FROM tab1
----
1041
641
79
query I rowsort
SELECT ALL + tab0.col2 + 62 AS col0 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7751c488c5fddd20493670cea8284a7f
query I rowsort
SELECT + col2 * col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col2 * + 57 AS col2 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT - col2 + - col2 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + col2 + + 65 FROM tab2
----
103
91
92
query I rowsort
SELECT - col2 * 48 FROM tab2
----
-1248
-1296
-1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3221
SELECT col1 * CAST( col0 AS SIGNED ) - col0 AS col0 FROM tab1
----
576
75
960
skipif mysql # not compatible
query I rowsort label-3221
SELECT col1 * CAST ( col0 AS INTEGER ) - col0 AS col0 FROM tab1
----
576
75
960
query I rowsort
SELECT ( 38 ) - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c4f66efd882996e9c47abed5a75b7150
query I rowsort
SELECT ALL - 76 * - cor0.col2 FROM tab1 cor0
----
4104
4332
7296
query I rowsort
SELECT - ( cor0.col0 ) * - col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT col0 * col0 + col0 * - 87 FROM tab1 AS cor0
----
-1472
-252
-560
query I rowsort
SELECT - 55 * - col2 + - col2 FROM tab2 cor0
----
1404
1458
2052
onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT DISTINCT + col1 + col0 * + col1 DIV col1 FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT + col1 + col0 * + col1 / col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT ( cor0.col0 ) + tab0.col1 * + ( 54 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 44241108fcc809c4b98f388057840e02
query I rowsort
SELECT ALL col2 + + col1 AS col0 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT + - col0 + cor0.col1 * col2 - - col2 AS col1 FROM tab2 AS cor0
----
1482
605
857
query I rowsort
SELECT ALL + col0 - col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + col2 + - col2 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT tab2.col2 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT DISTINCT + col2 * + col0 + 97 AS col0 FROM tab0 AS cor0
----
132
7395
889
query I rowsort
SELECT ALL + 36 + - col0 AS col0 FROM tab2 cor0
----
-42
-43
29
query I rowsort
SELECT 85 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
2126
3072
7656
query I rowsort
SELECT ALL + + cor0.col2 * - col1 + + 22 + col1 * - col2 * col1 FROM tab1 AS cor0
----
-17450
-37886
-6248
query I rowsort
SELECT DISTINCT + col0 * col0 + + ( 62 ) AS col2 FROM tab1 AS cor0
----
4158
6462
71
query I rowsort
SELECT ALL - 93 * - col0 FROM tab0
----
2232
3255
8277
query I rowsort
SELECT ALL + cor1.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT ALL 84 - - col0 FROM tab0
----
108
119
173
query I rowsort
SELECT DISTINCT - col2 + - col0 + cor0.col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2121
-3431
-8270
query I rowsort
SELECT ALL - col2 + col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 * - col1 + + 53 AS col1 FROM tab1 cor0
----
-116
-47
-623
query I rowsort
SELECT ALL col0 * col0 + 51 AS col1 FROM tab0 AS cor0
----
1276
627
7972
onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT DISTINCT 27 DIV col0 + + 98 * - col0 DIV - col0 + cor0.col0 FROM tab0 AS cor0
----
123
133
187
skipif mysql # not compatible
query I rowsort label-3247
SELECT DISTINCT 27 / col0 + + 98 * - col0 / - col0 + cor0.col0 FROM tab0 AS cor0
----
123
133
187
query I rowsort
SELECT DISTINCT - - 5 + + cor0.col2 FROM tab0 AS cor0
----
38
6
87
query I rowsort
SELECT + + col1 * col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab1
----
0
query I rowsort
SELECT 23 * + col2 + col1 FROM tab0
----
120
1977
845
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3253
SELECT - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3253
SELECT - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL tab1.col2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + col1 + - col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT 38 FROM tab2
----
38
38
38
query I rowsort
SELECT DISTINCT tab0.col2 * - col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + col1 * 61 + - col1 * + col2 AS col2 FROM tab2 AS cor0
----
1054
2065
391
query I rowsort
SELECT DISTINCT - col0 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col0 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT - col1 * - col0 - col1 DIV col2 FROM tab0 AS cor0
----
2062
3298
8098
skipif mysql # not compatible
query I rowsort label-3261
SELECT - col1 * - col0 - col1 / col2 FROM tab0 AS cor0
----
2062
3298
8098
onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT ALL - col2 DIV + col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3262
SELECT ALL - col2 / + col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT ALL + + col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 * 11 + 48 * col0 AS col2 FROM tab2 cor0
----
3979
4393
677
query I rowsort
SELECT + + col2 * + 83 * col0 AS col1 FROM tab0 AS cor0
----
2905
605734
65736
onlyif mysql # use DIV operator for integer division
query I rowsort label-3266
SELECT col1 DIV - col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3266
SELECT col1 / - col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 85 AS col0 FROM tab2
----
85
85
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * - col1 col0 FROM tab1 AS cor0
----
-1079
-2158
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( cor0.col1 ) * + col0 col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - + col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col1 FROM tab1 AS cor0
----
43
43
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3272
SELECT DISTINCT - + 60 + 90 * + col1 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
138000
58080
75270
skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - + 60 + 90 * + col1 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
138000
58080
75270
query I rowsort
SELECT ALL - 24 * col0 + col0 AS col0 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT col0 * + 88 AS col2 FROM tab1 AS cor0
----
264
5632
7040
query I rowsort
SELECT DISTINCT + 8 * - col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT ALL - - col1 + 93 AS col2 FROM tab1 AS cor0
----
103
106
119
query I rowsort
SELECT ALL col0 * - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT - col0 + + ( - col0 ) * + ( 47 ) FROM tab1 AS cor0
----
-144
-3072
-3840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3279
SELECT + CAST( 55 AS SIGNED ) + col2 FROM tab1 AS cor0
----
109
112
151
skipif mysql # not compatible
query I rowsort label-3279
SELECT + CAST ( 55 AS INTEGER ) + col2 FROM tab1 AS cor0
----
109
112
151
query I rowsort
SELECT ALL + col0 + - 30 FROM tab2 AS cor0
----
-23
48
49
query I rowsort
SELECT ALL + col1 * col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT 3 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
114
78
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + cor0.col0 + col1 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 * - col1 + - col0 AS col2 FROM tab2
----
-3559
-368
-968
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
3645 values hashing to b050f98b2d07c1b092b73ecf6b5b347c
query I rowsort
SELECT + + 76 * - col1 AS col1 FROM tab2 AS cor0
----
-1292
-2356
-4484
query I rowsort
SELECT + 52 AS col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT - 64 * col0 AS col0 FROM tab1 AS cor0
----
-192
-4096
-5120
query I rowsort
SELECT 13 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT - 74 + col0 AS col2 FROM tab0 AS cor0
----
-39
-50
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + + col1 col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT cor0.col2 + + 8 FROM tab1 AS cor0
----
104
62
65
query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - + 30 * 53 + - col1 * - col0 * 87 FROM tab1 AS cor0
----
5196
54090
88890
query I rowsort
SELECT DISTINCT + col2 * col0 AS col0 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3297
SELECT DISTINCT col1 * + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3297
SELECT DISTINCT col1 * + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * col1 + col0 + + col2 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT - + ( + col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
-17
-31
-59
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT DISTINCT + 42 * + tab2.col0 FROM tab2
----
294
3276
3318
query I rowsort
SELECT + + cor1.col0 * - 88 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 41716e90a3dde876e460f3ceafe8a507
query I rowsort
SELECT DISTINCT + 34 + cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
114
37
98
query I rowsort
SELECT ALL - col2 * tab1.col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT + tab0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3308
SELECT - CAST( + cor0.col1 AS SIGNED ) FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif mysql # not compatible
query I rowsort label-3308
SELECT - CAST ( + cor0.col1 AS INTEGER ) FROM tab0, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT + col0 + col1 * ( - col2 ) AS col2 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT + col0 * - 97 AS col0 FROM tab2 cor0
----
-679
-7566
-7663
query I rowsort
SELECT - col2 * 6 * 64 AS col1 FROM tab0 AS cor0
----
-12672
-31488
-384
query I rowsort
SELECT cor0.col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ( col0 ) * - cor0.col0 * - col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT 56 * col0 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT - 34 FROM tab0
----
-34
-34
-34
query I rowsort
SELECT DISTINCT - - cor0.col0 FROM tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT 88 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3318
SELECT ALL col1 * - col2 + - col2 DIV col2 col1 FROM tab0 AS cor0
----
-2839
-7463
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL col1 * - col2 + - col2 / col2 col1 FROM tab0 AS cor0
----
-2839
-7463
-98
query I rowsort
SELECT DISTINCT + - col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 + - 26 * col2 col2 FROM tab1 AS cor0
----
-1459
-1537
-2551
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - col1 * 56 AS col2 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL - col2 + + 59 * col0 FROM tab0 AS cor0
----
1383
2064
5169
query I rowsort
SELECT + cor0.col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3325
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3325
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 86 AS col1 FROM tab2
----
86
86
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-3327
SELECT + col1 - + col1 DIV ( - col0 * - cor0.col2 ) FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3327
SELECT + col1 - + col1 / ( - col0 * - cor0.col2 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - 82 + col0 * 43 AS col1 FROM tab1
----
2670
3358
47
query I rowsort
SELECT + 25 * col0 FROM tab1
----
1600
2000
75
query I rowsort
SELECT col1 + col1 * col0 FROM tab1
----
104
1053
650
query I rowsort
SELECT col0 + + col0 * col0 + col2 AS col0 FROM tab2
----
6188
6358
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col1 * + col1 col2 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-3333
SELECT + 31 DIV col1 - - col2 AS col0 FROM tab2
----
26
28
39
skipif mysql # not compatible
query I rowsort label-3333
SELECT + 31 / col1 - - col2 AS col0 FROM tab2
----
26
28
39
query I rowsort
SELECT + - 77 FROM tab2 AS cor0
----
-77
-77
-77
query I rowsort
SELECT 73 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to 9f0f371d979e70a792c8597c6559f0e2
query I rowsort
SELECT DISTINCT - + 88 + + col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-123
-7386
-880
onlyif mysql # use DIV operator for integer division
query I rowsort label-3337
SELECT + + col0 - + cor0.col0 DIV cor0.col2 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-3337
SELECT + + col0 - + cor0.col0 / cor0.col2 FROM tab0 AS cor0
----
0
24
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3338
SELECT col1 DIV cor0.col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3338
SELECT col1 / cor0.col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + - col0 * - 12 AS col2 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT + col0 + 63 FROM tab2 cor0
----
141
142
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT ALL cor0.col0 DIV col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3342
SELECT ALL cor0.col0 / col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3343
SELECT - col2 + CAST( + 62 * cor0.col0 AS SIGNED ) FROM tab2 cor0
----
407
4810
4860
skipif mysql # not compatible
query I rowsort label-3343
SELECT - col2 + CAST ( + 62 * cor0.col0 AS INTEGER ) FROM tab2 cor0
----
407
4810
4860
query I rowsort
SELECT + 84 * - tab2.col2 AS col1 FROM tab2
----
-2184
-2268
-3192
onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT DISTINCT col1 * col0 DIV 90 FROM tab2
----
14
2
51
skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT col1 * col0 / 90 FROM tab2
----
14
2
51
query I rowsort
SELECT DISTINCT 68 FROM tab2, tab0 AS cor0, tab2 cor1
----
68
query I rowsort
SELECT - 66 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
onlyif mysql # use DIV operator for integer division
query I rowsort label-3348
SELECT col1 DIV cor0.col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3348
SELECT col1 / cor0.col0 FROM tab0 cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-3349
SELECT ALL col2 * col2 + - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
1444
676
725
skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL col2 * col2 + - col1 / col0 AS col2 FROM tab2 AS cor0
----
1444
676
725
query I rowsort
SELECT DISTINCT + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-3351
SELECT DISTINCT + col1 + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT + col1 + col0 / + col0 AS col0 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT DISTINCT + col2 - col2 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + cor0.col0 + - col1 * col1 AS col0 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT - col1 - col0 * + col2 FROM tab1 AS cor0
----
-188
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col2 * cor0.col1 col1 FROM tab1, tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT col2 - + col0 * - col1 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT DISTINCT + col1 * - col1 + tab0.col2 * col1 FROM tab0
----
-4558
-819
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - - cor0.col1 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * col2 + cor0.col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - col2 + + col1 AS col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT + col2 - + col0 AS col2 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT + col2 * + col2 + col1 AS col2 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT ALL - + col1 * - col0 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col0 FROM tab0, tab1 cor0
----
54
57
96
query I rowsort
SELECT + col2 * + col0 + + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT + col0 + + col2 * - col1 AS col2 FROM tab0
----
-2814
-62
-7373
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1, tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 * cor0.col1 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL col0 + cor0.col0 + + col0 FROM tab2 cor0
----
21
234
237
onlyif mysql # use DIV operator for integer division
query I rowsort label-3370
SELECT ALL col1 * + col0 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL col1 * + col0 / cor0.col0 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + - col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col1 * col2 + + cor0.col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT ALL tab2.col0 * col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col0 + + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - col1 + col0 * col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT ALL col1 * + col2 + col1 AS col1 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL + col2 * - cor0.col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT ALL cor0.col1 + - col2 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col0 + - col0 * + col0 AS col2 FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT + tab2.col1 AS col2 FROM tab2, tab1, tab0 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + col2 * col2 * - col2 AS col2 FROM tab0
----
-1
-35937
-551368
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab1 cor0
----
3
64
80
query I rowsort
SELECT - 64 FROM tab2 AS cor0
----
-64
-64
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3386
SELECT col2 DIV + col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3386
SELECT col2 / + col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col2 + tab0.col0 AS col1 FROM tab0
----
171
36
57
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col2 )
----
query I rowsort
SELECT DISTINCT + col0 + - col1 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT + col1 + tab2.col1 AS col0 FROM tab2
----
118
34
62
query I rowsort
SELECT col1 / + col0 + + col2 * col2 * col2 FROM tab2 WHERE NOT NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NOT ( NULL ) IN ( - tab1.col2 )
----
query I rowsort
SELECT + col1 * col2 + - col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + col0 * + col1 * col1 + col2 AS col1 FROM tab0
----
177537
329316
737091
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col2 FROM tab1
----
58
58
58
query I rowsort
SELECT DISTINCT + 34 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
34
query I rowsort
SELECT 43 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query I rowsort
SELECT + tab0.col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + col1 AS col0 FROM tab1 WHERE - col2 + - col1 * - col0 NOT IN ( tab1.col2 )
----
10
13
26
query I rowsort
SELECT DISTINCT tab2.col2 * - col2 FROM tab2
----
-1444
-676
-729
query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + col0 <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT - col0 DIV col0 + + col2 * col1 + tab2.col2 * col0 col0 FROM tab2
----
1025
3561
3647
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3402
SELECT - col0 / col0 + + col2 * col1 + tab2.col2 * col0 col0 FROM tab2
----
1025
3561
3647
query I rowsort
SELECT DISTINCT tab2.col0 * col2 AS col1 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3404
SELECT DISTINCT col2 DIV col0 + - col1 FROM tab1
----
-10
-12
-8
skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT col2 / col0 + - col1 FROM tab1
----
-10
-12
-8
query I rowsort
SELECT - tab2.col2 + + col2 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + col1 * col2 + - tab2.col2 + - col0 FROM tab2
----
1430
529
803
query I rowsort
SELECT DISTINCT - col0 * - tab0.col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col2 * col0 * + col1 + + tab0.col1 AS col1 FROM tab0
----
-3298
-664027
-68026
query I rowsort
SELECT ALL + col2 * col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT DISTINCT col2 + tab1.col1 * tab1.col2 + tab1.col2 * + col1 AS col0 FROM tab1
----
1197
2592
2862
query I rowsort
SELECT col1 * col0 * + col2 AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT col0 * - col2 + + col1 FROM tab2
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 * + col1 col0 FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3414
SELECT ALL + col0 * col1 * + col1 + col2 DIV + col0 FROM tab0
----
177505
329315
737009
skipif mysql # not compatible
query I rowsort label-3414
SELECT ALL + col0 * col1 * + col1 + col2 / + col0 FROM tab0
----
177505
329315
737009
query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( - tab2.col2 + col2 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 * + tab2.col1 + col0 col0 FROM tab2
----
-22592
-24469
-39806
query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE col2 IN ( + col1 )
----
query I rowsort
SELECT DISTINCT col1 + + tab1.col2 * - col0 AS col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT tab0.col2 + col1 * - col1 * + col1 AS col2 FROM tab0
----
-636023
-753489
-912672
onlyif mysql # use DIV operator for integer division
query I rowsort label-3421
SELECT col2 * col0 DIV - col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-3421
SELECT col2 * col0 / - col0 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 + col1 + col1 * tab1.col1 col0 FROM tab1
----
3758
7862
864
query I rowsort
SELECT col0 * + col2 AS col1 FROM tab2 WHERE col0 NOT BETWEEN NULL AND col2 - col0 * col2
----
189
2028
3002
query I rowsort
SELECT + tab2.col2 + - col1 FROM tab2
----
-33
-4
21
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - 14 - col2 FROM tab1
----
-110
-68
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 * col2 col2 FROM tab0 AS cor0
----
2178
5412
66
query I rowsort
SELECT - cor1.col2 * 75 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to d22eef88c4274259be3cbd8bf5490d8c
query I rowsort
SELECT col1 * col1 * col0 AS col0 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT + - 64 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT + + col1 + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT - col1 * - 62 AS col2 FROM tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT DISTINCT - + cor0.col2 * + col1 + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT - + cor0.col1 * ( col2 + + col1 ) * col1 AS col1 FROM tab0 AS cor0
----
-1432613
-880124
-922082
query I rowsort
SELECT cor0.col1 + - 70 FROM tab0 AS cor0
----
16
21
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + col0 col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * 5 FROM tab0 AS cor0
----
430
455
485
query I rowsort
SELECT + col0 * 75 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT ALL + col2 * - 95 AS col2 FROM tab1 cor0
----
-5130
-5415
-9120
query I rowsort
SELECT - col0 + ( 95 ) * - col0 AS col2 FROM tab1 AS cor0
----
-288
-6144
-7680
query I rowsort
SELECT 50 + - 38 AS col1 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT + col2 + + cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - + 6 + + cor0.col2 * + col0 FROM tab0 cor0
----
29
7292
786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + - cor0.col0 * + col0 col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT - ( - col0 ) * - col0 - col1 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif mysql # not compatible
query I rowsort
SELECT - col1 * col2 + cor0.col0 * CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
-620
3068
697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3448
SELECT ALL + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3448
SELECT ALL + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT 13 + - col0 * - col0 * ( + 22 ) FROM tab2 cor0
----
1091
133861
137315
onlyif mysql # use DIV operator for integer division
query I rowsort label-3450
SELECT ALL col0 * CAST( + col1 AS SIGNED ) DIV col1 + col0 * col2 FROM tab1
----
165
3712
7760
skipif mysql # not compatible
query I rowsort label-3450
SELECT ALL col0 * CAST ( + col1 AS INTEGER ) / col1 + col0 * col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - col1 * ( cor0.col1 ) + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT - cor0.col1 * cor0.col2 - col1 * + col0 FROM tab2 AS cor0
----
-1054
-1989
-6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3453
SELECT DISTINCT ( col1 ) DIV - col1 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT ( col1 ) / - col1 FROM tab2
----
-1
query I rowsort
SELECT + 73 * 26 FROM tab1
----
1898
1898
1898
query I rowsort
SELECT - 32 * tab0.col1 FROM tab0
----
-2752
-2912
-3104
query I rowsort
SELECT DISTINCT - cor1.col1 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 * col0 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL - - ( - col0 ) AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col2 * cor0.col1 - col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + + col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 * col1 col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT + 85 + - col0 * col1 * col0 AS col1 FROM tab1 cor0
----
-149
-40875
-83115
query I rowsort
SELECT + cor0.col0 * + col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - + col0 * + col2 + + cor0.col1 + - col2 FROM tab2 AS cor0
----
-185
-1995
-3023
query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab2 AS cor0
----
-52
query I rowsort
SELECT + col2 * col1 - col2 AS col1 FROM tab1 cor0
----
1152
1350
513
query I rowsort
SELECT ALL col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT 28 + col2 FROM tab2 AS cor0
----
54
55
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + col1 * - col0 * - col1 col0 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT ALL - col1 * + col2 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3471
SELECT 88 + col0 DIV col0 + - col2 DIV col2 FROM tab1
----
88
88
88
skipif mysql # not compatible
query I rowsort label-3471
SELECT 88 + col0 / col0 + - col2 / col2 FROM tab1
----
88
88
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT 1 + col0 - - col0 DIV - tab1.col0 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3472
SELECT 1 + col0 - - col0 / - tab1.col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - col1 + + col2 AS col1 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3474
SELECT + ( + col2 ) DIV col1 + - col1 * col1 FROM tab1
----
-162
-674
-95
skipif mysql # not compatible
query I rowsort label-3474
SELECT + ( + col2 ) / col1 + - col1 * col1 FROM tab1
----
-162
-674
-95
query I rowsort
SELECT DISTINCT tab2.col1 * + 83 - col2 FROM tab2
----
1373
2546
4871
query I rowsort
SELECT ALL - col1 - - col2 FROM tab2
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3477
SELECT DISTINCT col1 + - col2 DIV + col0 FROM tab1 AS cor0
----
10
12
8
skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT col1 + - col2 / + col0 FROM tab1 AS cor0
----
10
12
8
query I rowsort
SELECT ALL - - col1 * - col1 + col1 * col2 AS col0 FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT ALL ( col1 + col0 * - tab1.col2 ) FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT + col1 * tab1.col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT 34 * - col2 * col2 AS col0 FROM tab1
----
-110466
-313344
-99144
query I rowsort
SELECT ALL - col2 + + col0 + tab2.col2 AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - col2 + - col0 + col2 FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + + col2 col2 FROM tab2
----
63
64
75
query I rowsort
SELECT - col1 * - col2 - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL - - col1 * col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 * - col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL 60 AS col1 FROM tab2 AS cor0
----
60
60
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + - col0 + col2 col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - + 39 * + col1 + col2 FROM tab0 cor0
----
-3321
-3467
-3782
query I rowsort
SELECT DISTINCT + 95 * col2 FROM tab2 AS cor0
----
2470
2565
3610
query I rowsort
SELECT - 91 FROM tab0, tab1 AS cor0
----
9 values hashing to 745d1c3a09d935465cad552325c5c945
query I rowsort
SELECT DISTINCT 21 + 96 * col2 * - col1 AS col1 FROM tab1
----
-119787
-134763
-54699
query I rowsort
SELECT 63 * + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 00f1e0e28e30789a2c84cb16c853f6fe
query I rowsort
SELECT + - cor0.col0 - col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + ( - cor0.col2 ) + + col2 * - col0 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - ( - col1 ) - - col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT col0 - - col0 * col1 * tab1.col0 AS col1 FROM tab1
----
237
41024
83280
query I rowsort
SELECT - col0 * 23 + - col2 * col2 + - col1 * - col2 FROM tab1
----
-1581
-4151
-9808
query I rowsort
SELECT DISTINCT ( - col2 ) + cor0.col2 * + col1 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT ( + col2 ) + + col0 * col0 AS col2 FROM tab0 cor0
----
1226
609
8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-3502
SELECT ALL col0 DIV + 52 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
65
81
skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL col0 / + 52 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
65
81
query I rowsort
SELECT ALL - col0 * + col0 - col1 * col2 AS col1 FROM tab0 AS cor0
----
-1322
-15383
-3414
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3504
SELECT - tab1.col2 + - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3504
SELECT - tab1.col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + 22 col2 FROM tab1 cor0
----
-1408
-1760
-66
query I rowsort
SELECT + + ( col2 ) + cor0.col0 * ( col2 ) FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) AS col1 FROM tab1, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 39 + 43 AS col2 FROM tab2, tab2 AS cor0
----
82
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab1, tab0 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( tab2.col0 AS REAL ) FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + 43 + - 24 * - col0 * col1 + col1 FROM tab2 cor0
----
110550
32292
5282
query I rowsort
SELECT - col0 * 32 AS col2 FROM tab1 cor0
----
-2048
-2560
-96
query I rowsort
SELECT DISTINCT - + 4 + 22 FROM tab2, tab0, tab0 cor0
----
18
query I rowsort
SELECT - cor0.col1 * - 81 * + col1 AS col0 FROM tab2 AS cor0
----
23409
281961
77841
onlyif mysql # use DIV operator for integer division
query I rowsort label-3515
SELECT ALL - - col0 + 3 DIV + col2 FROM tab0 AS cor0
----
24
38
89
skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - - col0 + 3 / + col2 FROM tab0 AS cor0
----
24
38
89
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a698694a7dac245e42212ff0316bdf45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + ( - col1 ) col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 65 * - col1 + col0 col1 FROM tab1 AS cor0
----
-1687
-586
-765
query I rowsort
SELECT ALL + col0 * - cor0.col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3520
SELECT ALL col0 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL col0 / + col1 AS col2 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL - tab1.col2 + - col1 AS col0 FROM tab1
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3522
SELECT ALL ( + tab2.col1 ) + + 43 DIV - col1 AS col2 FROM tab2
----
15
30
59
skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL ( + tab2.col1 ) + + 43 / - col1 AS col2 FROM tab2
----
15
30
59
query I rowsort
SELECT ALL col1 + col2 * + 69 FROM tab2
----
1853
1894
2639
onlyif mysql # use DIV operator for integer division
query I rowsort label-3524
SELECT ALL 55 DIV col1 col1 FROM tab2 AS cor0
----
0
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3524
SELECT ALL 55 / col1 col1 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT DISTINCT col2 + col0 * - col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col1 * col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT - 75 * + cor0.col1 + ( 76 ) - col0 * col2 FROM tab2 cor0
----
-2438
-4201
-6377
onlyif mysql # use DIV operator for integer division
query I rowsort label-3528
SELECT + - col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3528
SELECT + - col2 / - col1 AS col0 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3529
SELECT + + col1 * - col2 + col0 DIV - col2 - col2 * + col0 FROM tab0 AS cor0
----
-14761
-167
-3630
skipif mysql # not compatible
query I rowsort label-3529
SELECT + + col1 * - col2 + col0 / - col2 - col2 * + col0 FROM tab0 AS cor0
----
-14761
-167
-3630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col1 col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + col0 * 87 AS col2 FROM tab2 AS cor0
----
609
6786
6873
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + col0 col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT + - col1 + + 73 * + col1 * col1 FROM tab0 AS cor0
----
539822
604422
686760
query I rowsort
SELECT DISTINCT + col0 * - col0 * col1 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT + col0 * - col2 * - 11 + + cor0.col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
386
80279
8713
skipif mysql # not compatible
query I rowsort label-3535
SELECT + col0 * - col2 * - 11 + + cor0.col2 / + col2 AS col0 FROM tab0 AS cor0
----
386
80279
8713
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3536
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - tab2.col1 + col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - tab2.col2 + - col1 * col1 FROM tab2
----
-327
-3507
-988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3539
SELECT ALL col1 + col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL col1 + col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 * + col0 AS col0 FROM tab0 AS cor0
----
177537
329316
737091
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL - - col1 DIV col2 AS col1 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - - col1 / col2 AS col1 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT + cor0.col1 + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + - col2 + cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT ALL - cor0.col2 * 8 + col1 FROM tab2 AS cor0
----
-149
-185
-287
onlyif mysql # use DIV operator for integer division
query I rowsort label-3546
SELECT DISTINCT + col1 DIV ( - col0 ) FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT + col1 / ( - col0 ) FROM tab0
----
-1
-2
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3547
SELECT + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3547
SELECT + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + - col1 * + col1 AS col2 FROM tab2 cor0
----
-251
-3455
-934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3549
SELECT + - CAST( NULL AS SIGNED ) / ( + 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-3549
SELECT + - CAST ( NULL AS INTEGER ) / ( + col0 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 * - 45 AS col1 FROM tab1 cor0
----
-1170
-450
-585
query I rowsort
SELECT - ( col2 ) + cor0.col0 * + ( + ( col2 ) * + col2 ) AS col2 FROM tab0 AS cor0
----
26103
34
598354
query I rowsort
SELECT 34 + 90 * - col0 FROM tab2 cor0
----
-596
-6986
-7076
query I rowsort
SELECT + + col0 + 99 FROM tab2 AS cor0
----
106
177
178
query I rowsort
SELECT ALL col2 * ( - col2 ) FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT - col0 * 36 AS col1 FROM tab1
----
-108
-2304
-2880
query I rowsort
SELECT col2 + col0 * col1 AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT 98 * col1 - - ( cor0.col0 ) FROM tab1 cor0
----
1044
1354
2551
query I rowsort
SELECT - - ( col2 ) * + 65 + - col0 AS col2 FROM tab1 AS cor0
----
3507
3641
6160
query I rowsort
SELECT - - 87 * - col1 FROM tab2 cor0
----
-1479
-2697
-5133
query I rowsort
SELECT ALL + col1 * - col2 + ( col0 ) AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3561
SELECT + + col2 + col2 DIV - 11 - + col1 DIV col2 FROM tab1 AS cor0
----
50
52
88
skipif mysql # not compatible
query I rowsort label-3561
SELECT + + col2 + col2 / - 11 - + col1 / col2 FROM tab1 AS cor0
----
50
52
88
query I rowsort
SELECT DISTINCT + - 78 FROM tab1 cor0
----
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 6 * + col2 - - col0 * - col0 col1 FROM tab0 AS cor0
----
-1231
-774
-8413
query I rowsort
SELECT ALL + col1 + cor0.col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL 36 AS col0 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT - + 86 + - col2 AS col2 FROM tab1 AS cor0
----
-140
-143
-182
query I rowsort
SELECT col1 + + tab0.col1 * col2 AS col0 FROM tab0
----
194
2924
7553
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3568
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + + col2 col1 FROM tab0
----
115
34
66
query I rowsort
SELECT ALL 98 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3572
SELECT - + col2 DIV col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-3572
SELECT - + col2 / col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT 47 * col0 AS col0 FROM tab1 cor0
----
141
3008
3760
query I rowsort
SELECT DISTINCT - 45 * + col0 * col2 + + ( col2 ) + - 21 AS col2 FROM tab2 AS cor0
----
-135073
-8499
-91255
onlyif mysql # use DIV operator for integer division
query I rowsort label-3575
SELECT - 36 DIV - col0 FROM tab2
----
0
0
5
skipif mysql # not compatible
query I rowsort label-3575
SELECT - 36 / - col0 FROM tab2
----
0
0
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3576
SELECT + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 99 * - 11 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to a992d0cbf404c237dde004314fb9cde0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT DISTINCT + CAST( + 1 AS SIGNED ) * col0 col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3578
SELECT DISTINCT + CAST ( + 1 AS INTEGER ) * col0 col0 FROM tab1
----
3
64
80
query I rowsort
SELECT col2 * - col2 + cor0.col0 FROM tab0 AS cor0
----
-1065
-6635
34
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 AS cor1, tab1 cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query I rowsort
SELECT ALL - 46 FROM tab0, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT col0 - - col2 * col1 DIV ( tab0.col0 ) AS col2 FROM tab0
----
142
172
37
skipif mysql # not compatible
query I rowsort label-3582
SELECT col0 - - col2 * col1 / ( tab0.col0 ) AS col2 FROM tab0
----
142
172
37
query I rowsort
SELECT - 52 * - col1 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT + - 57 * + col0 + + col0 * 41 AS col0 FROM tab2 AS cor0
----
-112
-1248
-1264
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col0 FROM tab2 AS cor0
----
18
18
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3586
SELECT + - cor0.col2 + - col0 * + CAST( col2 + col1 AS SIGNED ) FROM tab1 AS cor0
----
-294
-4345
-8816
skipif mysql # not compatible
query I rowsort label-3586
SELECT + - cor0.col2 + - col0 * + CAST ( col2 + col1 AS INTEGER ) FROM tab1 AS cor0
----
-294
-4345
-8816
query I rowsort
SELECT DISTINCT col1 + col1 * + col0 AS col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + 20 * col0 + - 92 AS col1 FROM tab1 AS cor0
----
-32
1188
1508
query I rowsort
SELECT ALL tab2.col2 * - ( + tab2.col1 ) FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - col0 * - 21 AS col2 FROM tab0 AS cor0
----
1869
504
735
query I rowsort
SELECT - col1 * + 32 AS col2 FROM tab2
----
-1888
-544
-992
query I rowsort
SELECT - col0 * + ( 0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 20 AS col2 FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT ( - 70 ) AS col0 FROM tab1 cor0
----
-70
-70
-70
query I rowsort
SELECT + + col0 - ( - col0 ) * - col2 * + col1 FROM tab2 AS cor0
----
-119574
-50955
-5852
query I rowsort
SELECT ALL ( 74 ) * tab2.col0 * - 26 FROM tab2, tab0 AS cor0
----
9 values hashing to d8e6a0b7fed0185e3c9bb49dd3cc77bd
query I rowsort
SELECT - + col0 * 43 FROM tab2 AS cor0
----
-301
-3354
-3397
onlyif mysql # use DIV operator for integer division
query I rowsort label-3598
SELECT - ( - col2 ) DIV col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3598
SELECT - ( - col2 ) / col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + ( col2 ) * - col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL - - col1 + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - - 21 FROM tab2 AS cor0
----
21
21
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 + col2 col1 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT ALL col1 + col0 + - col1 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - ( col2 ) + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - col0 + 3 FROM tab2 AS cor0
----
-4
-75
-76
query I rowsort
SELECT DISTINCT + ( - col2 ) * - cor0.col1 + col1 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
-2808
-35910
-98592
query I rowsort
SELECT + 53 * - col2 AS col2 FROM tab2 cor0
----
-1378
-1431
-2014
onlyif mysql # use DIV operator for integer division
query I rowsort label-3608
SELECT DISTINCT - col0 DIV - tab0.col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT - col0 / - tab0.col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT - - cor0.col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 24 FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT - - ( 53 ) + - col1 AS col1 FROM tab1 cor0
----
27
40
43
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3613
SELECT DISTINCT - + CAST( col1 AS SIGNED ) + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) + - cor0.col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL cor0.col1 + - col1 + + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 76 + col1 FROM tab2 AS cor0
----
-17
-45
-59
query I rowsort
SELECT DISTINCT + 75 - col2 AS col1 FROM tab2 cor0
----
37
48
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 col1 FROM tab0 AS cor0
----
-58
-58
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT tab2.col2 * col0 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3620
SELECT - CAST( 79 AS SIGNED ) + col0 - + col1 AS col0 FROM tab2
----
-103
-17
-60
skipif mysql # not compatible
query I rowsort label-3620
SELECT - CAST ( 79 AS INTEGER ) + col0 - + col1 AS col0 FROM tab2
----
-103
-17
-60
query I rowsort
SELECT ALL - cor0.col1 * + 63 * + cor0.col2 + cor0.col2 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to 3c5c17155c6ffe7961bb9fb7635642ce
query I rowsort
SELECT - 97 - - 28 FROM tab0
----
-69
-69
-69
query I rowsort
SELECT DISTINCT col2 * col2 - + col2 AS col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT ALL + cor0.col2 * - 68 + col0 AS col1 FROM tab0 AS cor0
----
-2220
-33
-5487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3625
SELECT DISTINCT + - col0 + + CAST( NULL AS SIGNED ) + - 99 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3625
SELECT DISTINCT + - col0 + + CAST ( NULL AS INTEGER ) + - 99 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3626
SELECT ALL - cor0.col0 DIV col1 + col1 * cor0.col2 FROM tab1 AS cor0
----
1242
1404
564
skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL - cor0.col0 / col1 + col1 * cor0.col2 FROM tab1 AS cor0
----
1242
1404
564
query I rowsort
SELECT + col2 + ( - col0 ) * + col1 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT - cor0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 * + cor0.col0 * + col1 col1 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT + col0 + - ( + cor0.col0 ) * col1 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT 60 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col2 col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col2 + + ( - cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL 21 * col2 AS col1 FROM tab1 AS cor0
----
1134
1197
2016
query I rowsort
SELECT ALL + cor0.col1 * - col0 * col1 FROM tab2 cor0
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-3636
SELECT + - col1 + col1 + 14 DIV - col1 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3636
SELECT + - col1 + col1 + 14 / - col1 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL + col0 * - cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + - 32 FROM tab0 AS cor0
----
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-3639
SELECT + + ( - col2 ) DIV ( col1 ) FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3639
SELECT + + ( - col2 ) / ( col1 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + col2 * col2 * - col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + 29 * col2 FROM tab2 AS cor0
----
1102
754
783
query I rowsort
SELECT DISTINCT - col2 * + cor0.col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3643
SELECT col1 - col1 * col1 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3643
SELECT col1 - col1 * col1 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + - col1 * 19 * col2 FROM tab1 AS cor0
----
-10894
-23792
-26679
query I rowsort
SELECT 33 * col0 FROM tab0 AS cor0
----
1155
2937
792
query I rowsort
SELECT + + 2 + col0 FROM tab2 AS cor0
----
80
81
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3647
SELECT col1 * col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3647
SELECT col1 * col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 + + ( col2 ) col1 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-3649
SELECT + CAST( 30 AS SIGNED ) DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3649
SELECT + CAST ( 30 AS INTEGER ) / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + cor0.col2 + col0 * + col0 * + col1 FROM tab2 AS cor0
----
106152
1577
359041
query I rowsort
SELECT + - col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT 57 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT + col2 + + 56 FROM tab1
----
110
113
152
query I rowsort
SELECT 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query IIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1
----
243 values hashing to d489341cd587fd6eb0b972c5464c6ddc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 91 col2 FROM tab1
----
-34
-37
5
query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - col2 + + col0 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL ( - 74 ) + tab0.col2 AS col1 FROM tab0
----
-41
-73
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3660
SELECT - 82 + col2 + col0 DIV + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
-48
-80
1
skipif mysql # not compatible
query I rowsort label-3660
SELECT - 82 + col2 + col0 / + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
-48
-80
1
query I rowsort
SELECT + 59 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT - ( + col1 * col0 ) + + col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL 35 + col2 FROM tab1
----
131
89
92
query I rowsort
SELECT + - 15 * cor0.col2 - col1 * + 84 AS col2 FROM tab1 AS cor0
----
-1695
-2532
-2994
query I rowsort
SELECT DISTINCT - - 34 + + ( - cor0.col1 ) AS col0 FROM tab1 AS cor0
----
21
24
8
query I rowsort
SELECT DISTINCT + - col0 * + col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT 99 + 52 * cor0.col0 FROM tab2 AS cor0
----
4155
4207
463
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 - col2 * + ( col1 + + col2 ) AS col1 FROM tab2 AS cor0
----
-1615
-8294
-8331
query I rowsort
SELECT - col0 - + ( + col1 ) FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + 33 + 19 AS col2 FROM tab2 AS cor0
----
52
52
52
query I rowsort
SELECT + cor1.col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL - col0 * col1 + - col2 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT 66 * - col0 - + col2 * 45 AS col2 FROM tab2 cor0
----
-1677
-6318
-6924
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col0 * ( ( + col2 ) ) col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - - col0 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT tab1.col2 FROM tab1, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT col0 * + col1 * - col1 + + col2 + col0 FROM tab2
----
-22714
-271414
-6693
query I rowsort
SELECT col2 * + col0 * col0 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - + col1 * - col2 - + 44 FROM tab0 AS cor0
----
2794
53
7418
query I rowsort
SELECT + 31 AS col0 FROM tab1
----
31
31
31
query I rowsort
SELECT DISTINCT col0 * + col2 * 37 - - col0 AS col1 FROM tab1
----
135040
284240
5997
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 96 * col0 * + 84 col2 FROM tab2
----
-56448
-628992
-637056
query I rowsort
SELECT - + cor0.col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 3 + col0 AS col1 FROM tab2 AS cor0
----
10
81
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3685
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3685
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 48 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT ALL 28 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT col0 * + 95 AS col1 FROM tab0 cor0
----
2280
3325
8455
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3689
SELECT + + col0 * CAST( NULL AS SIGNED ) + 82 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3689
SELECT + + col0 * CAST ( NULL AS INTEGER ) + 82 * cor0.col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3690
SELECT - - CAST( NULL AS SIGNED ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3690
SELECT - - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col2 * + cor0.col1 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col1 + 55 FROM tab1 AS cor0
----
65
68
81
query I rowsort
SELECT - col2 + col1 * + cor0.col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + + 22 + + ( col2 ) AS col2 FROM tab1 cor0
----
118
76
79
query I rowsort
SELECT + - 83 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT + tab0.col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 78 + - 29 FROM tab1, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT col1 + ( - 15 ) FROM tab0
----
71
76
82
query I rowsort
SELECT + + col2 + + col0 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT col0 + - 77 * col1 FROM tab1
----
-1999
-706
-921
query I rowsort
SELECT + col0 * - 25 * + col0 + + col1 * - col2 AS col2 FROM tab0
----
-17238
-205487
-30722
query I rowsort
SELECT DISTINCT - col2 * col2 * col2 + cor0.col1 AS col2 FROM tab0 AS cor0
----
-35851
-551277
96
query I rowsort
SELECT ALL col2 * 89 + 78 + cor0.col0 FROM tab1 AS cor0
----
4887
5215
8702
query I rowsort
SELECT - + col1 * - col2 + - 3 - col2 FROM tab0 cor0
----
2802
7377
93
query I rowsort
SELECT - + cor0.col1 * col1 + col1 * col0 - ( col2 ) FROM tab0 cor0
----
-264
-5365
-6015
query I rowsort
SELECT - 88 AS col2 FROM tab2
----
-88
-88
-88
query I rowsort
SELECT DISTINCT + ( 40 ) + + cor0.col1 FROM tab1, tab0 AS cor0
----
126
131
137
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3708
SELECT ALL + tab0.col0 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL + tab0.col0 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 38 + 72 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
skipif mysql # not compatible
query I rowsort
SELECT tab0.col0 * CAST ( + col1 + col1 AS REAL ) FROM tab0
----
16198
4128
6790
query I rowsort
SELECT DISTINCT col1 + 77 - ( + col2 ) * 42 AS col0 FROM tab1
----
-2165
-2307
-3942
query I rowsort
SELECT + 38 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT - - col1 * + col1 - col0 AS col2 FROM tab1 AS cor0
----
36
673
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3714
SELECT col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3714
SELECT col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col1 - col2 AS col0 FROM tab0
----
-7429
-8363
-9410
query I rowsort
SELECT DISTINCT + col2 - col1 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT - col2 * + 83 + 31 - - col2 * + col2 AS col1 FROM tab0
----
-1619
-51
-51
query I rowsort
SELECT + col1 * ( + 43 ) + + col1 * + 21 AS col0 FROM tab0
----
5504
5824
6208
query I rowsort
SELECT DISTINCT 78 AS col1 FROM tab1
----
78
query I rowsort
SELECT ALL - 58 * col2 * 47 FROM tab0 AS cor0
----
-223532
-2726
-89958
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT ALL - + col2 * col2 DIV col0 FROM tab0 AS cor0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-3721
SELECT ALL - + col2 * col2 / col0 FROM tab0 AS cor0
----
-45
-75
0
query I rowsort
SELECT DISTINCT + ( + col0 ) + 32 FROM tab1 AS cor0
----
112
35
96
query I rowsort
SELECT ALL + 90 + - col0 FROM tab2 AS cor0
----
11
12
83
query I rowsort
SELECT ALL - + 17 AS col1 FROM tab2 cor0
----
-17
-17
-17
query I rowsort
SELECT ALL col0 * - tab2.col1 AS col1 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + 74 FROM tab1, tab2, tab1 cor0, tab0
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1
query I rowsort
SELECT - + cor0.col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + - cor0.col1 + - col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT - - col2 + col2 AS col1 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL + - cor0.col0 * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col2 * - col2 + + col1 FROM tab0 cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT cor1.col0 * cor1.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
4096
6400
9
query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT DISTINCT col1 * + col2 AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 * col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT - cor0.col1 + col2 DIV + ( + 5 ) AS col1 FROM tab1 AS cor0
----
-16
1
6
skipif mysql # not compatible
query I rowsort label-3736
SELECT - cor0.col1 + col2 / + ( + 5 ) AS col1 FROM tab1 AS cor0
----
-16
1
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * col0 col2 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT DISTINCT col1 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col2 FROM tab2
----
61
61
61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3740
SELECT DISTINCT - cor0.col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT - cor0.col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + + col1 + 87 AS col1 FROM tab0 AS cor0
----
173
178
184
onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT DISTINCT - + cor0.col1 DIV + 66 + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT - + cor0.col1 / + 66 + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + + cor0.col2 + 13 - col1 * col2 * + 32 FROM tab1 AS cor0
----
-18170
-39827
-44861
query I rowsort
SELECT DISTINCT col1 * - col0 + + 52 AS col0 FROM tab2 AS cor0
----
-1291
-165
-4550
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 col1 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col2 + - ( - col0 ) + col0 AS col1 FROM tab2 cor0
----
182
196
41
query I rowsort
SELECT ALL - + col2 * 88 FROM tab0 AS cor0
----
-2904
-7216
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 + - col2 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - col0 * ( col2 ) + + col0 + ( 28 ) FROM tab1 AS cor0
----
-131
-3556
-7572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col2 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + col1 * 22 AS col2 FROM tab2 AS cor0
----
1298
374
682
query I rowsort
SELECT ALL - - col2 * 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3756
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * + ( + col1 ) + + col1 + ( col1 * + col1 ) FROM tab2 AS cor0
----
-340
155
2006
query I rowsort
SELECT ALL + col2 * col2 - 6 AS col0 FROM tab1 AS cor0
----
2910
3243
9210
query I rowsort
SELECT ALL - col1 * + 6 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-119
-217
-413
query I rowsort
SELECT ALL col2 * + 54 AS col2 FROM tab2 AS cor0
----
1404
1458
2052
query I rowsort
SELECT ( 54 ) * + col0 AS col0 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT ( cor0.col1 ) * - col2 + - ( 5 * - col2 + 79 ) AS col1 FROM tab1 AS cor0
----
-1213
-364
-847
onlyif mysql # use DIV operator for integer division
query I rowsort label-3763
SELECT + + col0 DIV - ( - col0 ) FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3763
SELECT + + col0 / - ( - col0 ) FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * - cor0.col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + ( + tab0.col0 ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 8 AS col1 FROM tab1 cor0
----
8
8
8
query I rowsort
SELECT + col2 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3768
SELECT DISTINCT 45 + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
45
skipif mysql # not compatible
query I rowsort label-3768
SELECT DISTINCT 45 + col1 / col2 AS col1 FROM tab1 AS cor0
----
45
query I rowsort
SELECT DISTINCT - ( col0 ) * - col1 + col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + 96 * 40 + - col2 FROM tab2 AS cor0
----
3802
3813
3814
query I rowsort
SELECT col0 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 9 * + col1 col1 FROM tab1 AS cor0
----
117
234
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3773
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - col2 * - 28 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
258128
81651
91036
skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - col2 * - 28 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
258128
81651
91036
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * - col2 col0 FROM tab1 AS cor0
----
-2700
-2850
-4800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3775
SELECT ALL + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3775
SELECT ALL + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col1 * 44 AS col0 FROM tab1 cor0
----
1144
440
572
onlyif mysql # use DIV operator for integer division
query I rowsort label-3777
SELECT + cor0.col1 * col2 DIV + col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3777
SELECT + cor0.col1 * col2 / + col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - col0 * - col0 + - cor0.col0 * col1 * + 62 AS col0 FROM tab1 AS cor0
----
-35584
-4827
-58080
query I rowsort
SELECT + - col2 + + 31 * col1 AS col1 FROM tab1 AS cor0
----
253
307
752
query I rowsort
SELECT DISTINCT + + cor0.col1 + - col2 * col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3781
SELECT col0 * cor0.col1 + cor0.col1 DIV + cor0.col2 FROM tab0 AS cor0
----
2066
3492
8100
skipif mysql # not compatible
query I rowsort label-3781
SELECT col0 * cor0.col1 + cor0.col1 / + cor0.col2 FROM tab0 AS cor0
----
2066
3492
8100
query I rowsort
SELECT DISTINCT ( col1 ) + 79 FROM tab1 AS cor0
----
105
89
92
query I rowsort
SELECT - cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + cor0.col1 * - col2 + - 12 AS col0 FROM tab1 AS cor0
----
-1260
-1416
-582
query I rowsort
SELECT DISTINCT + col1 * + col2 * cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT col0 * col2 + tab1.col1 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * ( 52 ) col0 FROM tab0 AS cor0
----
1716
4264
52
query I rowsort
SELECT ALL - col1 + 60 FROM tab2 cor0
----
1
29
43
query I rowsort
SELECT DISTINCT cor0.col2 + cor0.col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT ALL - col2 * 19 * + ( - col2 ) FROM tab0 AS cor0
----
127756
19
20691
query I rowsort
SELECT + tab0.col0 + + col0 + - col1 AS col0 FROM tab0
----
-27
-38
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-3792
SELECT col2 DIV 49 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3792
SELECT col2 / 49 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL - + col2 + - col1 * - col1 + + col0 * + 89 FROM tab0 AS cor0
----
12523
16120
9499
query I rowsort
SELECT + + col1 * + col1 + 62 AS col1 FROM tab1 AS cor0
----
162
231
738
query I rowsort
SELECT ALL + + col1 + 17 + ( col2 ) FROM tab1 AS cor0
----
126
84
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3797
SELECT - col0 / CAST( NULL AS SIGNED ) + + col2 - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3797
SELECT - col0 / CAST ( NULL AS INTEGER ) + + col2 - col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + 30 - - col2 * + col2 AS col0 FROM tab2 AS cor0
----
1491
765
790
query I rowsort
SELECT col2 + ( - ( - cor0.col1 ) ) - - col2 AS col1 FROM tab0 cor0
----
152
255
99
query I rowsort
SELECT ALL + col1 * ( 74 ) AS col0 FROM tab2 cor0
----
1258
2294
4366
query I rowsort
SELECT DISTINCT cor0.col2 * - 80 + - 16 * col0 AS col1 FROM tab2 AS cor0
----
-2272
-3328
-4304
query I rowsort
SELECT + col2 * + col2 + + col0 * 4 * ( col0 ) FROM tab0 AS cor0
----
3393
38408
4901
query I rowsort
SELECT - ( col0 ) * - col0 AS col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT + - 57 AS col2 FROM tab2 AS cor0
----
-57
-57
-57
query I rowsort
SELECT + 38 FROM tab1, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL - cor0.col1 * - 59 FROM tab1 AS cor0
----
1534
590
767
query I rowsort
SELECT ALL cor0.col2 + cor0.col2 * - 96 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 5f706121fed06989296cc61677ff3e20
onlyif mysql # use DIV operator for integer division
query I rowsort label-3808
SELECT ALL - col0 DIV + col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL - col0 / + col2 FROM tab0 AS cor0
----
-1
-35
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab2, tab1 cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL + + col2 + - col0 * ( col2 ) FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL + - cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-3812
SELECT + cor0.col1 DIV + col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3812
SELECT + cor0.col1 / + col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + 56 AS col1 FROM tab1 cor0
----
56
56
56
query I rowsort
SELECT DISTINCT + - col1 * col0 * - ( col2 + col0 ) AS col1 FROM tab2 AS cor0
----
157131
478608
7378
query I rowsort
SELECT DISTINCT + - col1 * + col1 AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3816
SELECT col0 + col1 DIV 44 FROM tab2 AS cor0
----
7
79
79
skipif mysql # not compatible
query I rowsort label-3816
SELECT col0 + col1 / 44 FROM tab2 AS cor0
----
7
79
79
query I rowsort
SELECT DISTINCT col2 * - col1 + + 17 FROM tab1 AS cor0
----
-1231
-1387
-553
query I rowsort
SELECT + - 18 FROM tab2 AS cor0
----
-18
-18
-18
query I rowsort
SELECT - 77 + cor0.col2 FROM tab1 AS cor0
----
-20
-23
19
query I rowsort
SELECT ALL col0 + col1 - 62 FROM tab0
----
118
48
70
query I rowsort
SELECT DISTINCT 88 AS col0 FROM tab1
----
88
query I rowsort
SELECT + col1 * 12 + 38 AS col2 FROM tab2 AS cor0
----
242
410
746
query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab1
----
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3824
SELECT DISTINCT + col2 * + col0 + + CAST( + col1 * col1 AS SIGNED ) FROM tab0 AS cor0
----
15579
8188
9444
skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + col2 * + col0 + + CAST ( + col1 * col1 AS INTEGER ) FROM tab0 AS cor0
----
15579
8188
9444
query I rowsort
SELECT DISTINCT + + cor0.col1 + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT 25 FROM tab1
----
25
query I rowsort
SELECT DISTINCT ( + col2 ) AS col0 FROM tab2
----
26
27
38
query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab0
----
0
query I rowsort
SELECT - tab0.col1 + col2 AS col0 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ( + col2 ) + col2 * - col1 * - col0 AS col1 FROM tab2
----
119678
51072
5886
query I rowsort
SELECT + + col0 + - 23 FROM tab2 AS cor0
----
-16
55
56
query I rowsort
SELECT ALL ( - tab2.col2 ) AS col2 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * + 89 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 739dd297d0fc86fee4a1f48b7fc75502
onlyif mysql # use DIV operator for integer division
query I rowsort label-3834
SELECT + col2 DIV + col0 AS col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-3834
SELECT + col2 / + col0 AS col0 FROM tab1
----
0
1
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3835
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) + ( + col0 ) + + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) + ( + col0 ) + + col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 30 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a96370a8187089b6b83ce9bfbade5142
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3837
SELECT + 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-3837
SELECT + col2 * CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3838
SELECT CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3838
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - ( tab0.col2 ) * col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT tab0.col0 * col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL - 98 FROM tab1
----
-98
-98
-98
query I rowsort
SELECT - + 6 * + cor0.col1 + - col0 FROM tab0 cor0
----
-540
-617
-635
query I rowsort
SELECT ALL + 13 * + 39 AS col0 FROM tab0 AS cor0
----
507
507
507
query I rowsort
SELECT ALL - + 73 + - cor0.col0 * col0 FROM tab0 AS cor0
----
-1298
-649
-7994
query I rowsort
SELECT + 89 AS col1 FROM tab2
----
89
89
89
query I rowsort
SELECT 22 * - col2 AS col0 FROM tab0
----
-1804
-22
-726
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + ( - col1 ) + col0 * + col0 * col1 FROM tab1 AS cor0
----
208
40950
83187
query I rowsort
SELECT ALL + col2 - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3850
SELECT ALL - ( cor0.col1 ) - + cor1.col2 * CAST( + 36 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9d537e53b6b1c5456f030fd0f5049572
skipif mysql # not compatible
query I rowsort label-3850
SELECT ALL - ( cor0.col1 ) - + cor1.col2 * CAST ( + 36 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9d537e53b6b1c5456f030fd0f5049572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 10 col1 FROM tab1
----
-10
-10
-10
query I rowsort
SELECT DISTINCT - col1 * - col0 + + col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 17 * col2 AS col1 FROM tab2 AS cor0
----
442
459
646
query I rowsort
SELECT + 73 + + col0 AS col1 FROM tab1 AS cor0
----
137
153
76
query I rowsort
SELECT col2 + col1 * col1 * cor0.col2 FROM tab0 AS cor0
----
244101
679124
9410
query I rowsort
SELECT - 57 FROM tab2, tab1 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to d8caf2ef7d9c405db0aec8c013a5107c
query I rowsort
SELECT + cor1.col1 FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - + 35 AS col1 FROM tab0 AS cor0
----
-35
-35
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - tab2.col2 + - tab2.col0 col1 FROM tab2
----
-115
-182
-231
query I rowsort
SELECT ALL col2 * 50 FROM tab0
----
1650
4100
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 10 ) * col2 * ( col2 ) + - col1 col2 FROM tab0 AS cor0
----
-87
10804
67149
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3863
SELECT ALL - CAST( - col1 AS SIGNED ) + + cor0.col2 * col0 * + ( + cor0.col0 * + col0 ) AS col1 FROM tab2 AS cor0
----
12338411
18735499
9292
skipif mysql # not compatible
query I rowsort label-3863
SELECT ALL - CAST ( - col1 AS INTEGER ) + + cor0.col2 * col0 * + ( + cor0.col0 * + col0 ) AS col1 FROM tab2 AS cor0
----
12338411
18735499
9292
query I rowsort
SELECT - 46 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3865
SELECT ALL + + ( col0 ) * col0 + - col1 + col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
1127
489
7829
skipif mysql # not compatible
query I rowsort label-3865
SELECT ALL + + ( col0 ) * col0 + - col1 + col0 / - col0 AS col2 FROM tab0 AS cor0
----
1127
489
7829
query I rowsort
SELECT + 68 * 53 FROM tab2 AS cor0
----
3604
3604
3604
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3867
SELECT CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-3867
SELECT CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3868
SELECT ALL + ( col0 ) * + col0 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL + ( col0 ) * + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col2 FROM tab0 AS cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT + 54 + cor0.col0 AS col0 FROM tab1 AS cor0
----
118
134
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col0 col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + 48 - cor0.col2 AS col1 FROM tab1 cor0
----
-48
-6
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * - cor0.col1 col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - + col2 + col0 * col1 * col1 AS col1 FROM tab1 AS cor0
----
13424
1974
6343
query I rowsort
SELECT DISTINCT cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - + 10 * cor0.col0 FROM tab0 AS cor0
----
-240
-350
-890
query I rowsort
SELECT - 66 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to 18b0c368baac0e3433d1e072f8b49f81
query I rowsort
SELECT DISTINCT - 98 AS col0 FROM tab1
----
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3879
SELECT DISTINCT - - cor0.col1 DIV - col1 + col0 * col0 + col2 FROM tab2 AS cor0
----
6109
6278
75
skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - - cor0.col1 / - col1 + col0 * col0 + col2 FROM tab2 AS cor0
----
6109
6278
75
query I rowsort
SELECT col2 + 74 * - 14 FROM tab0 cor0
----
-1003
-1035
-954
query I rowsort
SELECT ALL - - col2 * col2 + - ( col0 ) AS col1 FROM tab2 cor0
----
1365
598
722
query I rowsort
SELECT ALL + - col2 * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - cor0.col2 + + col1 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT + + col2 * col2 + - col2 * col1 + + col2 * cor0.col2 FROM tab0 AS cor0
----
-660
-95
5986
query I rowsort
SELECT - - cor0.col0 * + ( cor0.col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col0 * - 41 FROM tab2 AS cor0
----
-287
-3198
-3239
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * - col1 * - 90 col1 FROM tab0
----
696600
737100
785700
query I rowsort
SELECT DISTINCT 58 * col2 AS col0 FROM tab0
----
1914
4756
58
query I rowsort
SELECT DISTINCT 75 AS col0 FROM tab0
----
75
query I rowsort
SELECT ALL ( - 97 ) FROM tab2, tab2 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT 84 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 45 col2 FROM tab2 AS cor0
----
123
124
52
query I rowsort
SELECT + col0 + + 32 + col1 FROM tab2 AS cor0
----
128
169
70
query I rowsort
SELECT col0 - 97 AS col2 FROM tab2
----
-18
-19
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3895
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) * col0 * + col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) * col0 * + col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - 59 * + 73 FROM tab1, tab1 AS cor0
----
-4307
query I rowsort
SELECT ALL col0 * ( 38 ) + + col1 * col1 * tab2.col0 FROM tab2
----
25833
274482
6993
query I rowsort
SELECT DISTINCT - + col0 * 28 + col0 * + col2 * - 28 FROM tab2 AS cor0
----
-5488
-58968
-86268
query I rowsort
SELECT 98 + + col0 AS col2 FROM tab1 cor0
----
101
162
178
onlyif mysql # use DIV operator for integer division
query I rowsort label-3900
SELECT ALL - col2 DIV col2 + - col0 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-3900
SELECT ALL - col2 / col2 + - col0 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT DISTINCT - 1 + col2 * - col1 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col2 col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT col0 * col1 - - col0 FROM tab2
----
1422
224
4680
query I rowsort
SELECT - 77 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to c7e5f48ecd3843d54a76808ed1f43ff6
query I rowsort
SELECT DISTINCT + 58 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
58
query I rowsort
SELECT 64 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3907
SELECT - - CAST( - col2 AS SIGNED ) * col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722
skipif mysql # not compatible
query I rowsort label-3907
SELECT - - CAST ( - col2 AS INTEGER ) * col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT col0 * 93 + col1 * tab0.col0 AS col0 FROM tab0
----
16376
4296
6650
query I rowsort
SELECT ALL - col0 * + col0 - - col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL + 43 + col2 * - col1 FROM tab1 AS cor0
----
-1205
-1361
-527
query I rowsort
SELECT DISTINCT + + 63 + col2 FROM tab0 AS cor0
----
145
64
96
query I rowsort
SELECT ALL + ( col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 81 * col1 - + cor0.col2 FROM tab1 AS cor0
----
-1149
-2160
-867
query I rowsort
SELECT ALL - - 92 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1536
768
821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3915
SELECT CAST( - col1 AS SIGNED ) * col1 FROM tab0 cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-3915
SELECT CAST ( - col1 AS INTEGER ) * col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + - col2 * ( cor0.col0 ) + - ( + col0 ) * + col2 AS col0 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT ALL 30 + col0 AS col1 FROM tab0 AS cor0
----
119
54
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-3918
SELECT DISTINCT 53 DIV - col1 - + col0 * col0 FROM tab1 AS cor0
----
-11
-4101
-6404
skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT 53 / - col1 - + col0 * col0 FROM tab1 AS cor0
----
-11
-4101
-6404
query I rowsort
SELECT ALL + col0 - - tab1.col2 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3920
SELECT ALL - 2 - + tab0.col2 DIV 29 FROM tab0
----
-2
-3
-4
skipif mysql # not compatible
query I rowsort label-3920
SELECT ALL - 2 - + tab0.col2 / 29 FROM tab0
----
-2
-3
-4
query I rowsort
SELECT DISTINCT + 70 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
70
query I rowsort
SELECT + - col2 * - col1 AS col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - col1 + - col0 * col1 FROM tab2 AS cor0
----
-1360
-248
-4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-3924
SELECT - col0 + col1 + + col2 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
3
63
63
skipif mysql # not compatible
query I rowsort label-3924
SELECT - col0 + col1 + + col2 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
3
63
63
query I rowsort
SELECT + + col2 * - cor0.col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 4 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT - col1 + + 28 DIV col0 FROM tab0 cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-3927
SELECT - col1 + + 28 / col0 FROM tab0 cor0
----
-85
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + - 50 col1 FROM tab0 AS cor0
----
-17
-49
32
query I rowsort
SELECT ALL - col2 * - col0 AS col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + - col2 + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 14 AS col1 FROM tab2
----
-14
-14
-14
query I rowsort
SELECT 38 AS col2 FROM tab0
----
38
38
38
query I rowsort
SELECT DISTINCT - 85 FROM tab1, tab0 cor0, tab2 AS cor1
----
-85
query I rowsort
SELECT ALL + 15 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL - - col2 + cor0.col1 + - 15 AS col1 FROM tab0 AS cor0
----
104
158
83
query I rowsort
SELECT DISTINCT - - cor0.col2 * 39 + col0 AS col1 FROM tab0 AS cor0
----
1311
3287
74
query I rowsort
SELECT DISTINCT - - col1 + + 57 FROM tab1 AS cor0
----
67
70
83
query I rowsort
SELECT ALL - col2 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-3939
SELECT + col0 + - 82 DIV ( + col1 ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3939
SELECT + col0 + - 82 / ( + col1 ) AS col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-3940
SELECT ALL col0 DIV - col0 col2 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3940
SELECT ALL col0 / - col0 col2 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT - col2 - 2 FROM tab0 AS cor0
----
-3
-35
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 * + col1 col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + - col0 * col2 + - 55 FROM tab0 AS cor0
----
-7353
-847
-90
query I rowsort
SELECT ALL - cor0.col0 * - col2 + + col1 * - col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT + + col1 + - 22 AS col1 FROM tab2 AS cor0
----
-5
37
9
query I rowsort
SELECT + cor0.col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col1 FROM tab2
----
77
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 col0 FROM tab1
----
-59
-59
-59
query I rowsort
SELECT ALL - cor0.col2 + 19 AS col0 FROM tab1 AS cor0
----
-35
-38
-77
query I rowsort
SELECT - cor0.col0 * col1 * cor0.col2 + ( - col0 ) AS col0 FROM tab0 cor0
----
-3430
-664207
-68136
onlyif mysql # use DIV operator for integer division
query I rowsort label-3951
SELECT - - cor0.col0 * + col1 + + col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-3951
SELECT - - cor0.col0 * + col1 + + col1 / - col1 AS col1 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT - col1 * + 30 + + col1 * - col0 AS col0 FROM tab0 AS cor0
----
-10829
-4644
-6305
onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT ( + 15 ) DIV + col0 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3953
SELECT ( + 15 ) / + col0 AS col2 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3954
SELECT ALL - ( + 3 ) * cor0.col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL - ( + 3 ) * cor0.col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 1 * 50 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT 16 * col2 * col1 AS col2 FROM tab2 cor0
----
10336
13392
24544
query I rowsort
SELECT col0 * - 84 + col2 FROM tab1 AS cor0
----
-198
-5319
-6624
query I rowsort
SELECT + 32 * col0 AS col0 FROM tab0 AS cor0
----
1120
2848
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3959
SELECT DISTINCT - - CAST( col1 AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - - CAST ( col1 AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - 69 - col1 FROM tab0 AS cor0
----
-155
-160
-166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * col0 col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-3962
SELECT ALL - 63 + col0 DIV + col1 FROM tab0 AS cor0
----
-63
-63
-63
skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL - 63 + col0 / + col1 FROM tab0 AS cor0
----
-63
-63
-63
query I rowsort
SELECT + + 13 + - col0 * 66 FROM tab2 AS cor0
----
-449
-5135
-5201
query I rowsort
SELECT DISTINCT + col1 * + col1 + col1 + + 65 AS col0 FROM tab2 AS cor0
----
1057
3605
371
query I rowsort
SELECT + col2 + ( - col1 ) * col2 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT - 76 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT - 69 * + col0 FROM tab1 AS cor0
----
-207
-4416
-5520
query I rowsort
SELECT + - cor0.col2 * + cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT 36 * + col0 AS col0 FROM tab2 AS cor0
----
252
2808
2844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 7 + col2 col1 FROM tab0 AS cor0
----
40
8
89
query I rowsort
SELECT 10 + col1 + cor0.col1 AS col1 FROM tab1 AS cor0
----
30
36
62
query I rowsort
SELECT + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 99 * - col1 FROM tab1 AS cor0
----
1287
2574
990
query I rowsort
SELECT 4 + col0 * ( + 23 + + col0 ) AS col1 FROM tab1 AS cor0
----
5572
82
8244
query I rowsort
SELECT + col1 + - 19 * 3 AS col0 FROM tab2 AS cor0
----
-26
-40
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3977
SELECT DISTINCT - col1 * col2 - col0 DIV + cor0.col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3977
SELECT DISTINCT - col1 * col2 - col0 / + cor0.col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3978
SELECT DISTINCT + col2 DIV col0 FROM tab2 cor0
----
0
3
skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT + col2 / col0 FROM tab2 cor0
----
0
3
query I rowsort
SELECT DISTINCT - cor0.col2 * - 2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT - + col1 * - ( + 34 + - col2 ) FROM tab2 AS cor0
----
-68
217
472
query I rowsort
SELECT ALL + 92 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT - 66 - + col1 * col0 AS col1 FROM tab1 AS cor0
----
-1106
-144
-706
query I rowsort
SELECT col2 + + 33 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT col0 * - 72 AS col2 FROM tab0
----
-1728
-2520
-6408
query I rowsort
SELECT + + col1 * - cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3986
SELECT ALL - col0 DIV + 75 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3986
SELECT ALL - col0 / + 75 FROM tab1
----
-1
0
0
query I rowsort
SELECT DISTINCT + 63 FROM tab0, tab0 AS cor0
----
63
query I rowsort
SELECT + 83 AS col1 FROM tab2
----
83
83
83
query I rowsort
SELECT ALL + tab1.col1 * 81 AS col1 FROM tab1
----
1053
2106
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-3990
SELECT DISTINCT + 61 * - col0 + col2 DIV + col2 FROM tab0 AS cor0
----
-1463
-2134
-5428
skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT + 61 * - col0 + col2 / + col2 FROM tab0 AS cor0
----
-1463
-2134
-5428
query I rowsort
SELECT DISTINCT - 12 * col1 + col2 AS col1 FROM tab0 AS cor0
----
-1010
-1163
-999
onlyif mysql # use DIV operator for integer division
query I rowsort label-3992
SELECT 87 + 45 * col1 DIV col2 FROM tab1 AS cor0
----
108
93
94
skipif mysql # not compatible
query I rowsort label-3992
SELECT 87 + 45 * col1 / col2 FROM tab1 AS cor0
----
108
93
94
query I rowsort
SELECT + + col2 * col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT + 70 + cor0.col1 * col2 FROM tab0 AS cor0
----
167
2908
7532
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3995
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 84 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3995
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 84 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - col0 * - tab0.col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col1 * 60 AS col1 FROM tab0
----
5160
5460
5820
query I rowsort
SELECT 27 * + 81 AS col2 FROM tab0
----
2187
2187
2187
query I rowsort
SELECT ALL - col2 + tab1.col0 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL col1 * 26 + 34 FROM tab2
----
1568
476
840
query I rowsort
SELECT + col2 + col2 * 2 AS col2 FROM tab2 cor0
----
114
78
81
query I rowsort
SELECT + col0 * ( 65 ) + col2 FROM tab2 cor0
----
482
5096
5173
query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
27
query I rowsort
SELECT + 54 FROM tab2 cor0
----
54
54
54
query I rowsort
SELECT cor1.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + col1 + + col0 + + col2 * - col2 FROM tab2 AS cor0
----
-1348
-539
-691
query I rowsort
SELECT ALL 15 AS col1 FROM tab0
----
15
15
15
query I rowsort
SELECT - ( col1 * col2 ) FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 2 + col2 FROM tab2 AS cor0
----
24
25
36
query I rowsort
SELECT + - cor0.col0 * - col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT ALL + + CAST( - 66 AS SIGNED ) FROM tab2 AS cor0
----
-66
-66
-66
skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL + + CAST ( - 66 AS INTEGER ) FROM tab2 AS cor0
----
-66
-66
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 6 + cor0.col1 col0 FROM tab0 AS cor0
----
230
307
625
query I rowsort
SELECT - 34 AS col0 FROM tab2 cor0
----
-34
-34
-34
query I rowsort
SELECT ALL - ( cor0.col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - cor1.col1 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - cor0.col2 col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - + col0 * col1 - col2 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + cor0.col1 * - col2 * - col0 + col2 + cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
2171
656279
67569
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4019
SELECT 22 + + tab2.col1 * CAST( ( + col1 ) AS SIGNED ) * 48 - - 57 AS col1 FROM tab2
----
13951
167167
46207
skipif mysql # not compatible
query I rowsort label-4019
SELECT 22 + + tab2.col1 * CAST ( ( + col1 ) AS INTEGER ) * 48 - - 57 AS col1 FROM tab2
----
13951
167167
46207
query I rowsort
SELECT - tab1.col2 * col0 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col2 + + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - 10 - col1 FROM tab0 AS cor0
----
-101
-107
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col1 FROM tab1
----
-50
-50
-50
query I rowsort
SELECT DISTINCT 38 - + tab2.col2 FROM tab2
----
0
11
12
query I rowsort
SELECT DISTINCT - + 74 * col1 FROM tab1 AS cor0
----
-1924
-740
-962
query I rowsort
SELECT + + ( + col2 ) * - 51 FROM tab2 AS cor0
----
-1326
-1377
-1938
query I rowsort
SELECT ALL - col1 * cor0.col0 + col1 - cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - + col0 * - 13 + 69 AS col1 FROM tab0 AS cor0
----
1226
381
524
query I rowsort
SELECT col0 * + ( - col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + cor0.col2 col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + col1 * - col0 + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT ALL + cor0.col2 * 90 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT DISTINCT col2 + - 72 FROM tab2 AS cor0
----
-34
-45
-46
query I rowsort
SELECT ALL - col2 - + 84 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1466
-2631
-4982
query I rowsort
SELECT DISTINCT 8 FROM tab1, tab0 cor0, tab0 AS cor1
----
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col0 FROM tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - 2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
onlyif mysql # use DIV operator for integer division
query I rowsort label-4039
SELECT cor0.col1 + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-4039
SELECT cor0.col1 + col2 / + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT + + cor0.col0 + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + col1 * + col1 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-4042
SELECT - col1 + + cor0.col0 DIV - cor0.col0 col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4042
SELECT - col1 + + cor0.col0 / - cor0.col0 col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT DISTINCT - - col0 * ( col0 ) + cor0.col2 + - col1 * + col1 FROM tab2 AS cor0
----
-885
2629
5990
query I rowsort
SELECT ALL + col1 + 12 AS col2 FROM tab0 AS cor0
----
103
109
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4045
SELECT DISTINCT + - col0 * - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-4045
SELECT DISTINCT + - col0 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 46 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
query I rowsort
SELECT DISTINCT col1 + + 98 AS col1 FROM tab0
----
184
189
195
query I rowsort
SELECT col0 + 36 FROM tab0 AS cor0
----
125
60
71
query I rowsort
SELECT + ( - 80 ) + col0 FROM tab1 AS cor0
----
-16
-77
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4050
SELECT + - col1 + col0 DIV - col1 FROM tab2 cor0
----
-21
-31
-60
skipif mysql # not compatible
query I rowsort label-4050
SELECT + - col1 + col0 / - col1 FROM tab2 cor0
----
-21
-31
-60
query I rowsort
SELECT ALL col2 + col2 * + 10 AS col1 FROM tab2
----
286
297
418
query I rowsort
SELECT ALL - col1 + col2 * - tab0.col1 + tab0.col2 AS col1 FROM tab0
----
-193
-2891
-7471
query I rowsort
SELECT DISTINCT - col0 + 50 + - col2 * - col0 FROM tab2
----
2000
232
2973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4054
SELECT ALL col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4054
SELECT ALL col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( col0 ) AS col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT + + cor0.col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-4057
SELECT + - col0 DIV cor0.col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4057
SELECT + - col0 / cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 73 AS col2 FROM tab2 AS cor0
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT ALL cor0.col1 DIV col2 + col2 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
194
2840
7463
skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL cor0.col1 / col2 + col2 * - ( - col1 ) AS col1 FROM tab0 AS cor0
----
194
2840
7463
query I rowsort
SELECT ALL 3 AS col0 FROM tab0
----
3
3
3
query I rowsort
SELECT 91 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
3003
7462
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-4062
SELECT ALL - - ( + col2 ) DIV - 70 + 44 + col2 * + col0 FROM tab2 AS cor0
----
2072
233
3046
skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - - ( + col2 ) / - 70 + 44 + col2 * + col0 FROM tab2 AS cor0
----
2072
233
3046
query I rowsort
SELECT DISTINCT cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + + col2 + col2 * 95 * col1 + + col2 FROM tab0 AS cor0
----
269676
709054
9217
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4066
SELECT col1 DIV + col0 + col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-4066
SELECT col1 / + col0 + col0 FROM tab0
----
27
37
90
query I rowsort
SELECT col1 + - col0 AS col1 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL - 32 * col0 + + col2 - col1 FROM tab1
----
-2001
-2477
-68
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + 82 + col2 FROM tab0 AS cor0
----
-7281
-8117
-9326
query I rowsort
SELECT - + 82 * + col2 AS col1 FROM tab0 AS cor0
----
-2706
-6724
-82
query I rowsort
SELECT DISTINCT - - 34 FROM tab1 AS cor0
----
34
query I rowsort
SELECT DISTINCT - col1 + + col0 * - col1 * 82 FROM tab2 AS cor0
----
-110143
-17825
-377423
onlyif mysql # use DIV operator for integer division
query I rowsort label-4073
SELECT DISTINCT - col0 DIV + col0 + col2 AS col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - col0 / + col0 + col2 AS col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT ALL - - col0 * col2 + ( cor0.col2 * col0 ) FROM tab0 AS cor0
----
14596
1584
70
query I rowsort
SELECT ALL tab0.col2 * - col2 * - col1 + + col0 + + col1 AS col0 FROM tab0
----
229
612064
93764
query I rowsort
SELECT 99 + col1 + - col1 FROM tab0
----
99
99
99
query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-4078
SELECT + + 58 DIV col1 AS col0 FROM tab1 AS cor0
----
2
4
5
skipif mysql # not compatible
query I rowsort label-4078
SELECT + + 58 / col1 AS col0 FROM tab1 AS cor0
----
2
4
5
query I rowsort
SELECT + - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + ( col2 ) + col1 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4081
SELECT col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4081
SELECT col1 / col1 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 65 * 48 AS col2 FROM tab2, tab0 AS cor0
----
3120
query I rowsort
SELECT + col1 + 81 FROM tab0
----
167
172
178
query I rowsort
SELECT + 29 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT - - cor1.col2 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL + ( + 41 ) * col0 AS col2 FROM tab0
----
1435
3649
984
query I rowsort
SELECT ALL - - 22 * - col2 AS col0 FROM tab0 cor0
----
-1804
-22
-726
query I rowsort
SELECT ALL + 56 * col2 + + col1 * - col2 FROM tab0 AS cor0
----
-2870
-41
-990
query I rowsort
SELECT DISTINCT 73 + - col1 FROM tab1 AS cor0
----
47
60
63
query I rowsort
SELECT ALL - col0 - 35 FROM tab2 AS cor0
----
-113
-114
-42
query I rowsort
SELECT - ( - col0 ) AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - 9 * cor0.col2 + + col1 * - 68 AS col0 FROM tab1 AS cor0
----
-1193
-1748
-2254
query I rowsort
SELECT tab1.col2 * + col0 * - 62 FROM tab1
----
-10044
-226176
-476160
query I rowsort
SELECT - 65 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT ALL + col1 * col2 + + 80 * tab2.col1 FROM tab2
----
2006
3317
6254
query I rowsort
SELECT + col0 * - col0 * + 51 AS col1 FROM tab1
----
-208896
-326400
-459
query I rowsort
SELECT DISTINCT + - col0 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-12
-4160
-6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * + col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col2 * ( col1 ) FROM tab0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4101
SELECT + tab0.col0 DIV 67 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-4101
SELECT + tab0.col0 / 67 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT + col2 * - ( - 43 * col2 ) FROM tab2
----
29068
31347
62092
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col2 FROM tab2
----
26
27
38
query I rowsort
SELECT col1 * 46 FROM tab2
----
1426
2714
782
query I rowsort
SELECT col2 * - col0 * col1 + col0 FROM tab1 AS cor0
----
-36416
-4209
-99760
query I rowsort
SELECT + col0 * + 28 + - cor0.col1 FROM tab2 AS cor0
----
165
2125
2195
query I rowsort
SELECT - col1 + 90 FROM tab0 AS cor0
----
-1
-7
4
query I rowsort
SELECT ALL - 16 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4109
SELECT col2 DIV col1 + col2 AS col2 FROM tab1 AS cor0
----
103
56
62
skipif mysql # not compatible
query I rowsort label-4109
SELECT col2 / col1 + col2 AS col2 FROM tab1 AS cor0
----
103
56
62
query I rowsort
SELECT col0 + col2 * 27 FROM tab0 AS cor0
----
2303
62
915
query I rowsort
SELECT ( col0 ) + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 * col2 * - col0 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT 70 * col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
144480
237650
566930
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2, tab0 cor3
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07
query I rowsort
SELECT ALL + col1 * col0 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT col1 + col2 * - col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL 72 + col0 FROM tab0 AS cor0
----
107
161
96
query I rowsort
SELECT - - ( - col0 ) * 24 + col0 FROM tab1 AS cor0
----
-1472
-1840
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col2 col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 63 - 25 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT - - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + + col1 + cor0.col1 * 54 * col0 AS col1 FROM tab0 cor0
----
111542
183427
437437
query I rowsort
SELECT DISTINCT tab0.col1 + + col2 * + col1 + col1 FROM tab0
----
291
3010
7644
query I rowsort
SELECT + + cor0.col1 + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT - cor0.col2 + + col1 * - 66 AS col2 FROM tab0 cor0
----
-5709
-6088
-6403
query I rowsort
SELECT col2 + + 17 FROM tab1 AS cor0
----
113
71
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-4127
SELECT DISTINCT col0 * - tab2.col0 DIV col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT col0 * - tab2.col0 / col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL + col0 * tab0.col1 * - col1 FROM tab0
----
-177504
-329315
-737009
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1, tab2 AS cor0, tab1 cor1
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query I rowsort
SELECT - 9 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 3dfe689e16ce3a87877d40f349e6c7b5
query I rowsort
SELECT ALL 78 + col1 * - 97 AS col1 FROM tab1
----
-1183
-2444
-892
query I rowsort
SELECT ALL col2 * tab1.col0 * col2 + + col0 AS col1 FROM tab1
----
208000
737360
8751
query I rowsort
SELECT DISTINCT 3 FROM tab0, tab1, tab2 cor0
----
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * 54 col1 FROM tab1
----
-30780
-67392
-75816
query I rowsort
SELECT + tab0.col0 + 70 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to af4d97c5bbd17f69309da38efa1cea9d
query I rowsort
SELECT col1 * ( + col0 + + col2 ) * + col2 FROM tab0
----
1276002
161766
3492
onlyif mysql # use DIV operator for integer division
query I rowsort label-4137
SELECT ALL - col2 * - col0 * - col1 + + col2 DIV cor0.col1 FROM tab2 AS cor0
----
-119652
-51032
-5859
skipif mysql # not compatible
query I rowsort label-4137
SELECT ALL - col2 * - col0 * - col1 + + col2 / cor0.col1 FROM tab2 AS cor0
----
-119652
-51032
-5859
query I rowsort
SELECT - col1 * col0 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + cor0.col2 * - col0 * ( - col0 ) FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT 34 * - 46 * tab2.col0 FROM tab2
----
-10948
-121992
-123556
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col0 FROM tab0
----
-75
-75
-75
query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT 16 * + cor0.col1 FROM tab1, tab0, tab1 AS cor0
----
160
208
416
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 col2 FROM tab1
----
108
114
192
query I rowsort
SELECT 12 AS col2 FROM tab2 AS cor0
----
12
12
12
query I rowsort
SELECT DISTINCT 73 * col0 FROM tab1 cor0
----
219
4672
5840
query I rowsort
SELECT ALL - col1 + cor0.col1 * 24 AS col0 FROM tab0 cor0
----
1978
2093
2231
query I rowsort
SELECT + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL 33 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4150
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 57 col2 FROM tab0, tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 57 col2 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 * - 46 AS col0 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT + 54 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1, tab1 AS cor0, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * cor0.col1 - col1 col0 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT + + col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT ALL 56 FROM tab2 AS cor0
----
56
56
56
query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + col1 * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - + col0 - - cor0.col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT 29 FROM tab1, tab0, tab1 AS cor0, tab2 cor1
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302
query I rowsort
SELECT ALL - - col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT ALL + + col0 DIV col2 - - col2 AS col1 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL + + col0 / col2 - - col2 AS col1 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT + 68 * - 86 + - col2 * col2 FROM tab2 cor0
----
-6524
-6577
-7292
query I rowsort
SELECT DISTINCT + + 42 + + col1 * col2 FROM tab2 AS cor0
----
1576
688
879
query I rowsort
SELECT col0 * col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4166
SELECT ALL + + CAST( NULL AS SIGNED ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + + CAST ( NULL AS INTEGER ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 95 + col0 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
2123
284
3097
query I rowsort
SELECT DISTINCT + + ( - col1 ) * - col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT 35 AS col1 FROM tab2 AS cor0
----
35
35
35
query I rowsort
SELECT ALL - col1 * cor0.col2 - col1 * - col0 AS col2 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT + + 47 + col2 FROM tab2 cor0
----
73
74
85
query I rowsort
SELECT - 19 + col1 FROM tab1
----
-6
-9
7
query I rowsort
SELECT - 16 FROM tab2, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT + col0 * - ( + cor0.col1 ) FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - + 57 * - cor0.col0 * + col2 FROM tab1 AS cor0
----
207936
437760
9234
onlyif mysql # use DIV operator for integer division
query I rowsort label-4176
SELECT 0 DIV + 37 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4176
SELECT 0 / + 37 FROM tab0
----
0
0
0
query I rowsort
SELECT + 38 + - ( col0 * + 63 ) + col1 FROM tab1
----
-125
-3984
-4989
query I rowsort
SELECT DISTINCT 60 * + col2 FROM tab1
----
3240
3420
5760
query I rowsort
SELECT - ( - 4 ) AS col1 FROM tab0
----
4
4
4
query I rowsort
SELECT 9 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT ALL + col0 + ( - col1 ) * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + col0 + ( - col1 ) * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 28 AS col0 FROM tab1 AS cor0
----
28
28
28
query I rowsort
SELECT ALL ( + 94 ) AS col0 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT cor1.col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - col1 + col0 + col2 FROM tab2 AS cor0
----
100
3
45
query I rowsort
SELECT + ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col0 + - col2 * ( + 38 ) * col0 + 10 FROM tab1 AS cor0
----
-138550
-291750
-6143
query I rowsort
SELECT - 22 + col0 AS col2 FROM tab2 AS cor0
----
-15
56
57
query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab0 AS cor0
----
-35
query I rowsort
SELECT DISTINCT col0 + col0 + - col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + + 14 - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-4082
-6386
5
query I rowsort
SELECT col2 * col2 + cor0.col1 AS col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + 79 + col2 * ( col2 ) FROM tab2 AS cor0
----
1523
755
808
query I rowsort
SELECT 53 AS col0 FROM tab1 cor0
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-4196
SELECT tab1.col0 + + 76 DIV + col2 + - col0 * col0 DIV col0 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4196
SELECT tab1.col0 + + 76 / + col2 + - col0 * col0 / col0 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT + 4 - + col2 * col0 AS col0 FROM tab2
----
-185
-2024
-2998
query I rowsort
SELECT ALL ( - col0 * - tab2.col2 ) - - 43 AS col1 FROM tab2
----
2071
232
3045
onlyif mysql # use DIV operator for integer division
query I rowsort label-4199
SELECT col1 * 33 + - col2 + - col1 DIV col1 AS col0 FROM tab1
----
272
332
803
skipif mysql # not compatible
query I rowsort label-4199
SELECT col1 * 33 + - col2 + - col1 / col1 AS col0 FROM tab1
----
272
332
803
query I rowsort
SELECT 81 AS col0 FROM tab2 cor0
----
81
81
81
query I rowsort
SELECT + col2 * col1 + + col1 AS col2 FROM tab0
----
194
2924
7553
query I rowsort
SELECT DISTINCT col0 + + 82 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
117
2730
6813
query I rowsort
SELECT ALL - + col0 * ( - col1 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * ( - col0 ) + + col2 * - col1 * + col0 + + col1 FROM tab2 AS cor0
----
-124195
-52360
-6045
onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT ALL - col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4205
SELECT ALL - col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT col0 * + ( col1 ) AS col2 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4207
SELECT + cor0.col0 DIV - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4207
SELECT + cor0.col0 / - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * + 82 + ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT col2 + ( col2 ) AS col1 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT ALL - col0 DIV - col1 + 65 + col0 AS col2 FROM tab0 AS cor0
----
100
154
89
skipif mysql # not compatible
query I rowsort label-4210
SELECT ALL - col0 / - col1 + 65 + col0 AS col2 FROM tab0 AS cor0
----
100
154
89
query I rowsort
SELECT DISTINCT - - cor0.col0 * 55 FROM tab0 AS cor0
----
1320
1925
4895
query I rowsort
SELECT ALL col1 + - 7 FROM tab1 cor0
----
19
3
6
query I rowsort
SELECT + + col0 + - cor0.col0 * - col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + cor0.col2 + col2 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + ( - col1 ) * cor0.col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + 23 FROM tab1 AS cor0
----
23
23
23
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT ALL - cor0.col0 * 82 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 1305f54a2326fd0029e50c162dc182b1
query I rowsort
SELECT - col1 + - 93 FROM tab1
----
-103
-106
-119
query I rowsort
SELECT ALL + + col0 + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - 34 * col1 AS col2 FROM tab2 AS cor0
----
-1054
-2006
-578
query I rowsort
SELECT 6 AS col1 FROM tab2
----
6
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4223
SELECT DISTINCT - col2 DIV col1 col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4223
SELECT DISTINCT - col2 / col1 col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT col0 * - col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + 75 * + col1 FROM tab1
----
1950
750
975
query I rowsort
SELECT ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 71 * + col1 AS col0 FROM tab2 cor0
----
-1207
-2201
-4189
query I rowsort
SELECT col0 + col2 * + 28 * col1 AS col2 FROM tab1 AS cor0
----
16024
35024
39315
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 col1 FROM tab2, tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * 33 col1 FROM tab0 AS cor0
----
1155
240834
26136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col0 * + col2 col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT col2 * + 79 * col2 FROM tab0 AS cor0
----
531196
79
86031
query I rowsort
SELECT - col1 * 72 AS col1 FROM tab2 AS cor0
----
-1224
-2232
-4248
query I rowsort
SELECT + col2 + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - 9 AS col1 FROM tab0
----
-9
query I rowsort
SELECT ALL + tab2.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + cor0.col2 * + 90 + - 67 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 768a53cbee3764ebaaaaf13092ffd1fa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + 74 col0 FROM tab2 cor0
----
15
43
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4240
SELECT col0 DIV col2 + col1 + col0 FROM tab0 AS cor0
----
110
167
181
skipif mysql # not compatible
query I rowsort label-4240
SELECT col0 / col2 + col1 + col0 FROM tab0 AS cor0
----
110
167
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-4241
SELECT - col0 + cor0.col1 DIV - col0 FROM tab1 AS cor0
----
-11
-64
-80
skipif mysql # not compatible
query I rowsort label-4241
SELECT - col0 + cor0.col1 / - col0 FROM tab1 AS cor0
----
-11
-64
-80
query I rowsort
SELECT ALL 27 + 48 * col0 AS col2 FROM tab1 AS cor0
----
171
3099
3867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4243
SELECT - CAST( NULL AS SIGNED ) / + col1 + - cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4243
SELECT - CAST ( NULL AS INTEGER ) / + col1 + - cor0.col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + ( - 71 ) FROM tab2 AS cor0
----
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col0 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4246
SELECT ALL + - 59 DIV + col0 + + col2 AS col2 FROM tab1 AS cor0
----
35
57
96
skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL + - 59 / + col0 + + col2 AS col2 FROM tab1 AS cor0
----
35
57
96
query I rowsort
SELECT + 93 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT - col1 + col0 AS col0 FROM tab2
----
-24
19
62
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - cor0.col1 AS REAL ) * + tab2.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to a499c3357b32340ea4100b46ab6f11f6
query I rowsort
SELECT col1 + col1 * - ( tab1.col0 ) - + 66 FROM tab1
----
-1093
-118
-696
query I rowsort
SELECT DISTINCT - col1 * tab1.col2 AS col1 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4252
SELECT + - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-4252
SELECT + - col2 / col0 AS col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT 11 * 53 AS col0 FROM tab0
----
583
583
583
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4255
SELECT DISTINCT - CAST( + col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL - 37 + cor0.col2 AS col1 FROM tab2 AS cor0
----
-10
-11
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4257
SELECT CAST( - col0 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4257
SELECT CAST ( - col0 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4258
SELECT DISTINCT + - 19 + 57 DIV col2 FROM tab1 AS cor0
----
-18
-19
skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT + - 19 + 57 / col2 FROM tab1 AS cor0
----
-18
-19
query I rowsort
SELECT DISTINCT col0 * + 7 AS col1 FROM tab0 cor0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-4260
SELECT col2 DIV - tab0.col2 AS col0 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4260
SELECT col2 / - tab0.col2 AS col0 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4261
SELECT ALL - cor0.col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4261
SELECT ALL - cor0.col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + + col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + col0 col2 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT DISTINCT + + ( - col2 ) DIV + col1 + ( + col2 ) col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4264
SELECT DISTINCT + + ( - col2 ) / + col1 + ( + col2 ) col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-4265
SELECT + ( tab1.col0 ) DIV - col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4265
SELECT + ( tab1.col0 ) / - col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 15 * - col1 FROM tab2
----
-255
-465
-885
onlyif mysql # use DIV operator for integer division
query I rowsort label-4267
SELECT ALL col0 DIV col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL col0 / col2 + cor0.col1 AS col2 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT 0 + + cor0.col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col0 + col2 * + 51 FROM tab1 cor0
----
2751
2843
4816
query I rowsort
SELECT 32 + cor0.col2 - + col1 FROM tab2 AS cor0
----
-1
28
53
query I rowsort
SELECT + 78 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4272
SELECT ( ( + col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4272
SELECT ( ( + col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
24
35
89
query I rowsort
SELECT - 24 * col0 - + col0 FROM tab2 AS cor0
----
-175
-1950
-1975
query I rowsort
SELECT + - 74 + - col0 FROM tab2 AS cor0
----
-152
-153
-81
query I rowsort
SELECT ALL col2 + + col2 + - col0 * + col1 AS col1 FROM tab1
----
-526
-848
30
query I rowsort
SELECT + 44 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT ( + cor0.col2 ) * 55 FROM tab1 AS cor0
----
2970
3135
5280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 51 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT - col2 * col2 * - 64 AS col0 FROM tab2 cor0
----
43264
46656
92416
query I rowsort
SELECT + col2 * 36 FROM tab2 AS cor0
----
1368
936
972
query I rowsort
SELECT ALL cor0.col0 + ( + col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + + 52 FROM tab0 AS cor0
----
52
52
52
query I rowsort
SELECT - 26 * col0 + - cor0.col2 AS col2 FROM tab0 AS cor0
----
-2396
-657
-911
query I rowsort
SELECT DISTINCT + col2 * cor0.col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4286
SELECT ALL - col0 DIV + col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-4286
SELECT ALL - col0 / + col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL - - col0 + col0 * - 11 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT DISTINCT - col0 + ( col1 ) + + tab2.col2 * tab2.col0 * col2 AS col0 FROM tab2
----
114014
5127
52709
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT - col1 + col0 * col0 - col2 AS col0 FROM tab1 AS cor0
----
-71
4029
6291
query I rowsort
SELECT col2 * - ( - col0 + col1 * ( col2 ) ) FROM tab0 AS cor0
----
-604586
-62
-92862
query I rowsort
SELECT DISTINCT col2 * + col2 * + col2 AS col2 FROM tab2 cor0
----
17576
19683
54872
onlyif mysql # use DIV operator for integer division
query I rowsort label-4293
SELECT - col0 DIV + ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4293
SELECT - col0 / + ( col0 ) FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + 59 col2 FROM tab1 AS cor0
----
177
3776
4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-4296
SELECT DISTINCT + col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4296
SELECT DISTINCT + col1 / + col1 AS col2 FROM tab2 AS cor0
----
1
query I rowsort
SELECT DISTINCT - col2 * + col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - col0 * - 37 FROM tab2 AS cor0
----
259
2886
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-4299
SELECT - - col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-4299
SELECT - - col2 / - col0 AS col1 FROM tab2 AS cor0
----
-3
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4300
SELECT - + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-4300
SELECT - + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + - 50 AS col0 FROM tab2 AS cor0
----
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4302
SELECT DISTINCT - CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT - CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col1 * + 6 + + col0 + - col0 AS col1 FROM tab2
----
102
186
354
query I rowsort
SELECT col0 + - 84 * - 5 + col0 FROM tab2
----
434
576
578
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4305
SELECT ALL + col1 * CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 72 + col0 AS col1 FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT ALL + 93 FROM tab1 AS cor0
----
93
93
93
query I rowsort
SELECT ALL + col0 + + col1 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT ALL - - ( col2 ) * - cor0.col1 + col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL 5 AS col2 FROM tab2
----
5
5
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - tab1.col0 col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT cor0.col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 56 AS col1 FROM tab1
----
-56
query I rowsort
SELECT DISTINCT - 66 FROM tab2
----
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 24 + col0 * + ( col2 ) col1 FROM tab1
----
186
3672
7704
query I rowsort
SELECT col0 + + col0 * 13 AS col0 FROM tab0
----
1246
336
490
query I rowsort
SELECT ALL - col0 * - 36 AS col1 FROM tab0
----
1260
3204
864
query I rowsort
SELECT + col1 + 31 AS col0 FROM tab1
----
41
44
57
query I rowsort
SELECT - ( + ( cor0.col1 ) ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 * + ( - col2 + col0 ) FROM tab1 AS cor0
----
-1456
-2751
463
query I rowsort
SELECT DISTINCT - col0 + col0 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT 23 * 30 * + col2 AS col0 FROM tab2
----
17940
18630
26220
query I rowsort
SELECT DISTINCT col2 + - ( col1 ) AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL 57 * + ( + col0 ) + + col0 * - col1 * + col1 AS col1 FROM tab2
----
-18328
-267072
-6328
query I rowsort
SELECT ( tab0.col0 ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL col1 + - col2 AS col2 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col1 * - col2 AS REAL ) + col1 + + col0 * col1 FROM tab2
----
-589
3127
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT ALL - + ( 16 ) DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL - + ( 16 ) / col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - 95 AS REAL ) + col0 * - 10 AS col0 FROM tab1 AS cor0
----
-125
-735
-895
query I rowsort
SELECT ALL + 29 * col2 + tab0.col1 FROM tab0
----
1043
126
2469
onlyif mysql # use DIV operator for integer division
query I rowsort label-4331
SELECT DISTINCT - col1 - + col1 DIV + cor0.col0 col2 FROM tab0 cor0
----
-89
-92
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT - col1 - + col1 / + cor0.col0 col2 FROM tab0 cor0
----
-89
-92
-99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4332
SELECT DISTINCT + col0 DIV col0 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT + col0 / col0 FROM tab2 AS cor0
----
1
query I rowsort
SELECT DISTINCT cor0.col2 AS col1 FROM tab2, tab1 cor0
----
54
57
96
query I rowsort
SELECT DISTINCT + 52 FROM tab0 AS cor0
----
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 49 * - col2 + - 58 col1 FROM tab0 AS cor0
----
-107
-1675
-4076
query I rowsort
SELECT DISTINCT - col0 * col2 + col0 AS col2 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4337
SELECT DISTINCT ( - col1 ) DIV ( col1 ) AS col2 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4337
SELECT DISTINCT ( - col1 ) / ( col1 ) AS col2 FROM tab0 cor0
----
-1
query I rowsort
SELECT ALL + 21 * + col2 - ( - 81 + col2 ) * ( col0 * - col1 + - 35 ) AS col0 FROM tab0 AS cor0
----
-100059
-274379
9856
query I rowsort
SELECT ALL - + col2 - col0 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 * - cor0.col1 + - ( col1 + + col2 ) col1 FROM tab1 AS cor0
----
213
255
648
query I rowsort
SELECT ALL ( + col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col2 * - col2 + + col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 * 29 FROM tab2 AS cor0
----
1140
780
810
query I rowsort
SELECT ( - col2 ) + ( col0 ) FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - 66 + + col2 AS col2 FROM tab1 AS cor0
----
-12
-9
30
query I rowsort
SELECT ALL col1 + - col1 * - col2 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + 69 + + col1 AS col1 FROM tab0 AS cor0
----
155
160
166
query I rowsort
SELECT ALL - - col2 * + col2 AS col0 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4349
SELECT - ( cor0.col2 ) * CAST( NULL AS SIGNED ) / col2 + + cor0.col2 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4349
SELECT - ( cor0.col2 ) * CAST ( NULL AS INTEGER ) / col2 + + cor0.col2 / col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4351
SELECT DISTINCT tab0.col0 * + col2 + col1 DIV col0 AS col1 FROM tab0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-4351
SELECT DISTINCT tab0.col0 * + col2 + col1 / col0 AS col1 FROM tab0
----
37
7299
795
query I rowsort
SELECT ALL - tab1.col2 + + col0 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4353
SELECT col0 DIV tab0.col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4353
SELECT col0 / tab0.col0 FROM tab0
----
1
1
1
query I rowsort
SELECT - col1 * col2 * - col1 AS col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT + col2 - - col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 NOT IN ( col0 * tab1.col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col0 + col2 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT tab2.col1 * col2 + tab2.col1 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT - col0 * col1 * - col1 + + col1 AS col2 FROM tab1 AS cor0
----
13533
2054
6410
query I rowsort
SELECT col0 * col1 * tab0.col1 + - col1 AS col2 FROM tab0
----
177418
329218
736918
query I rowsort
SELECT - col1 * col0 * + col0 + + col2 FROM tab0 AS cor0
----
-118824
-49503
-720729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4362
SELECT + col0 DIV col0 + + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4362
SELECT + col0 / col0 + + col0 AS col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT cor0.col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - - cor0.col2 * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col2 + - col0 AS col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col1 * col2 AS col0 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4367
SELECT + + col1 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-4367
SELECT + + col1 / cor0.col0 AS col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT + - ( + col2 ) FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + 37 * col0 AS col1 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT + ( col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT ALL + 24 FROM tab1 AS cor0
----
24
24
24
query I rowsort
SELECT - + col1 + col0 AS col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT col2 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT - col0 * - tab2.col0 + tab2.col1 * - col1 AS col1 FROM tab2
----
-912
2603
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-4375
SELECT - cor0.col0 DIV - col2 - col2 AS col0 FROM tab1 AS cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-4375
SELECT - cor0.col0 / - col2 - col2 AS col0 FROM tab1 AS cor0
----
-54
-56
-96
query I rowsort
SELECT - tab0.col1 * - col1 AS col1 FROM tab0
----
7396
8281
9409
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 + col0 AND NULL
----
query I rowsort
SELECT DISTINCT + col1 + - col2 * - tab2.col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT - tab2.col0 * col0 AS col0 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-4381
SELECT col1 + - col1 DIV - col1 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4381
SELECT col1 + - col1 / - col1 AS col2 FROM tab0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4382
SELECT - col1 DIV tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4382
SELECT - col1 / tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= NULL
----
query I rowsort
SELECT col2 + col2 * col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL - col2 * col1 + col2 AS col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + tab2.col0 + + col1 FROM tab2
----
137
38
96
query I rowsort
SELECT - col2 - col2 * col2 AS col2 FROM tab0
----
-1122
-2
-6806
query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT col2 * col1 * - col0 IN ( col2 + col0 )
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4390
SELECT DISTINCT - 34 DIV col0 + - ( cor0.col0 * - cor0.col2 ) AS col1 FROM tab0 cor0
----
35
7298
791
skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - 34 / col0 + - ( cor0.col0 * - cor0.col2 ) AS col1 FROM tab0 cor0
----
35
7298
791
query I rowsort
SELECT - - col1 * - cor0.col1 + col0 FROM tab2 AS cor0
----
-210
-3403
-954
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > NULL
----
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE ( col2 * - col2 ) NOT IN ( - col0 * - tab0.col1 + col0 )
----
24
35
89
query I rowsort
SELECT col2 + col1 + - tab1.col2 AS col1 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + tab2.col0 + col1 col1 FROM tab2 WHERE NOT NULL IN ( + col0 )
----
query I rowsort
SELECT - col1 * col0 + col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0 * + col1
----
query I rowsort
SELECT ALL col2 + + col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT col2 + col2 * col2 AS col0 FROM tab0
----
1122
2
6806
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 * col2 ) IN ( + col2 )
----
query I rowsort
SELECT + col0 * + col1 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col1 * + col2 * col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - tab1.col2 AS col0 FROM tab1 cor0 CROSS JOIN tab1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query III rowsort
SELECT * FROM tab0 WHERE col2 / + col0 <= ( col2 * - col0 )
----
query I rowsort
SELECT col1 + - tab1.col1 * + col2 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT + tab2.col0 + col0 * col0 FROM tab2
----
56
6162
6320
query I rowsort
SELECT ALL - col1 + + col1 * + tab0.col1 AS col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT ALL - col0 + col1 * + col0 * tab2.col2 FROM tab2
----
119574
50955
5852
query I rowsort
SELECT col2 * col1 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col1 * + cor0.col0 + + col0 * - cor0.col2 AS col0 FROM tab1 AS cor0 WHERE col0 * cor0.col2 - + col1 BETWEEN col1 AND NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4410
SELECT + - CAST( - col0 AS SIGNED ) + + col0 * 26 AS col0 FROM tab0 AS cor0
----
2403
648
945
skipif mysql # not compatible
query I rowsort label-4410
SELECT + - CAST ( - col0 AS INTEGER ) + + col0 * 26 AS col0 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT 24 * col1 FROM tab1 AS cor0
----
240
312
624
query I rowsort
SELECT DISTINCT - - 18 AS col1 FROM tab2 cor0
----
18
query I rowsort
SELECT DISTINCT - col0 * - ( col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 38 + col0 FROM tab1 AS cor0
----
102
118
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-4415
SELECT - 3 DIV col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4415
SELECT - 3 / col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + ( col1 ) * + col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT + - col2 * 78 AS col0 FROM tab2 cor0
----
-2028
-2106
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-4418
SELECT DISTINCT - 18 * + cor0.col0 + - col0 DIV + 62 AS col2 FROM tab0 cor0
----
-1603
-432
-630
skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - 18 * + cor0.col0 + - col0 / + 62 AS col2 FROM tab0 cor0
----
-1603
-432
-630
query I rowsort
SELECT + ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + + 33 + col1 * ( - col1 * + cor0.col1 ) FROM tab2 AS cor0
----
-205346
-29758
-4880
query I rowsort
SELECT ALL col2 - - col0 FROM tab1 AS cor0
----
121
176
57
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 58757c5bbbd4217c03cf2ac0b6126e55
query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + col2 col0 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + 86 * - col0 + 59 - col2 * col0 AS col1 FROM tab1 AS cor0
----
-14501
-361
-9093
query I rowsort
SELECT ALL + 68 * cor0.col1 FROM tab0 AS cor0
----
5848
6188
6596
query I rowsort
SELECT + 58 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL 85 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT ALL ( 41 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT ALL - + col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4431
SELECT - + cor0.col1 * - CAST( col2 AS SIGNED ) col0 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4431
SELECT - + cor0.col1 * - CAST ( col2 AS INTEGER ) col0 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT + col1 DIV 13 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4432
SELECT + col1 / 13 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT cor0.col1 * ( ( + cor0.col2 ) ) AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - - cor0.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4435
SELECT DISTINCT + + 28 DIV col1 AS col1 FROM tab2 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT + + 28 / col1 AS col1 FROM tab2 cor0
----
0
1
query I rowsort
SELECT ALL 81 FROM tab2 AS cor0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4437
SELECT + col0 * col0 DIV + col0 col1 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4437
SELECT + col0 * col0 / + col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - ( ( - cor0.col0 ) ) + - ( - 16 ) * col0 FROM tab2 AS cor0
----
119
1326
1343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - ( + cor0.col0 ) col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + + col0 - ( + col2 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + tab0.col2 + 99 + col1 * + col0 FROM tab0
----
2196
3495
8280
query I rowsort
SELECT ALL col1 * 97 + - col2 AS col1 FROM tab1
----
1165
2468
913
query I rowsort
SELECT ALL - col0 + ( col1 ) * - tab2.col1 FROM tab2
----
-3559
-368
-968
query I rowsort
SELECT ALL 13 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT DISTINCT 80 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
80
query I rowsort
SELECT ALL + - ( + col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
-2916
-3249
-9216
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to a8d2ba8b8eb568b0a9a1771ccb0a8f23
query I rowsort
SELECT - + ( + col0 ) + + cor0.col0 + cor0.col2 AS col2 FROM tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + - cor0.col2 * + col0 + - col1 col0 FROM tab0 AS cor0
----
-7340
-829
-83
query I rowsort
SELECT ALL - 39 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-36
25
41
query I rowsort
SELECT ALL 16 * 56 AS col0 FROM tab2 AS cor0
----
896
896
896
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - col0 * ( + 86 ) + + col2 FROM tab1
----
-204
-5447
-6784
query I rowsort
SELECT 76 AS col0 FROM tab0
----
76
76
76
query I rowsort
SELECT ALL 88 AS col1 FROM tab2
----
88
88
88
query I rowsort
SELECT DISTINCT - + 4 + + col0 FROM tab0 cor0
----
20
31
85
query I rowsort
SELECT + col2 * + col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + 30 AS col2 FROM tab2 AS cor0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 84 col0 FROM tab1 cor0
----
-27
-30
12
query I rowsort
SELECT ALL 0 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - 33 * - col0 FROM tab0
----
1155
2937
792
query I rowsort
SELECT DISTINCT col1 - + 11 AS col0 FROM tab0 AS cor0
----
75
80
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT col1 DIV cor0.col1 + 4 * + col0 AS col0 FROM tab2 AS cor0
----
29
313
317
skipif mysql # not compatible
query I rowsort label-4463
SELECT col1 / cor0.col1 + 4 * + col0 AS col0 FROM tab2 AS cor0
----
29
313
317
query I rowsort
SELECT ALL col1 - - col0 FROM tab0
----
110
132
180
query I rowsort
SELECT 83 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT 98 + - col1 - - col0 * - 15 FROM tab2
----
-1104
-1131
-38
query I rowsort
SELECT ALL + 78 + - 34 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT ALL col2 + col2 * - col2 AS col1 FROM tab0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4469
SELECT col2 * - col2 DIV - col2 + col2 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-4469
SELECT col2 * - col2 / - col2 + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT 44 + + col0 FROM tab2
----
122
123
51
query I rowsort
SELECT DISTINCT 81 - - col2 FROM tab2
----
107
108
119
query I rowsort
SELECT 96 + - col0 + - tab0.col0 FROM tab0
----
-82
26
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-4473
SELECT tab2.col1 * col0 * + 75 + - tab2.col2 DIV col0 + col0 FROM tab2
----
100804
16279
345228
skipif mysql # not compatible
query I rowsort label-4473
SELECT tab2.col1 * col0 * + 75 + - tab2.col2 / col0 + col0 FROM tab2
----
100804
16279
345228
query I rowsort
SELECT 32 AS col2 FROM tab1
----
32
32
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-4475
SELECT col0 DIV + col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4475
SELECT col0 / + col2 AS col0 FROM tab0
----
0
1
35
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 958533d1a7bf61199ed7c03eadf37f9a
query I rowsort
SELECT ALL col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 + + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-4479
SELECT DISTINCT - col0 + 79 DIV - 14 AS col1 FROM tab1 AS cor0
----
-69
-8
-85
skipif mysql # not compatible
query I rowsort label-4479
SELECT DISTINCT - col0 + 79 / - 14 AS col1 FROM tab1 AS cor0
----
-69
-8
-85
query I rowsort
SELECT + col1 + - ( - col2 ) AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + + col2 + 22 AS col0 FROM tab0 cor0
----
104
23
55
query I rowsort
SELECT DISTINCT - col1 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2, tab2 AS cor2
----
3645 values hashing to 677ef6b86493a7e48d2f6a3cfd7eea4c
query I rowsort
SELECT tab0.col2 * + col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col2 + 37 + - tab0.col1 AS col1 FROM tab0
----
-136
-61
-82
query I rowsort
SELECT DISTINCT + col2 - 49 FROM tab1 AS cor0
----
47
5
8
query I rowsort
SELECT ALL - col1 * + ( cor0.col0 ) + col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + col2 * ( - col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col2 + - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + col1 + col0 * cor0.col2 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-4491
SELECT - col1 * - ( col2 ) - + col2 * col2 DIV + col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
skipif mysql # not compatible
query I rowsort label-4491
SELECT - col1 * - ( col2 ) - + col2 * col2 / + col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - - col2 * ( + col2 ) - - col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL + cor0.col0 * + 86 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT col0 * col2 + 26 FROM tab1 AS cor0
----
188
3674
7706
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 + col2 AS col1 FROM tab1 cor0
----
4153
63
6496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 * cor0.col1 col1 FROM tab2 AS cor0
----
205379
29791
4913
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4497
SELECT ALL col2 * + CAST( col0 AS SIGNED ) * - col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-1128
-16170
-642060
skipif mysql # not compatible
query I rowsort label-4497
SELECT ALL col2 * + CAST ( col0 AS INTEGER ) * - col0 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-1128
-16170
-642060
query I rowsort
SELECT ALL + col0 + ( col0 + + col1 ) AS col0 FROM tab0 cor0
----
134
167
269
query I rowsort
SELECT + + col2 + + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + cor0.col0 * 36 AS col2 FROM tab1 AS cor0
----
108
2304
2880
query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
2
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT col1 DIV - 63 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4502
SELECT col1 / - 63 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 * 47 FROM tab1
----
1222
470
611
query I rowsort
SELECT - - col0 + + cor0.col1 - col2 FROM tab1 AS cor0
----
-25
-3
17
query I rowsort
SELECT ALL ( col1 ) * + col0 AS col2 FROM tab2
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4506
SELECT ALL + col0 * cor0.col2 + col1 - - CAST( + col1 * - cor0.col0 AS SIGNED ) FROM tab1 AS cor0
----
110
3018
6653
skipif mysql # not compatible
query I rowsort label-4506
SELECT ALL + col0 * cor0.col2 + col1 - - CAST ( + col1 * - cor0.col0 AS INTEGER ) FROM tab1 AS cor0
----
110
3018
6653
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 24 col1 FROM tab1 AS cor0
----
-24
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 86 * col2 + + col1 FROM tab0 AS cor0
----
183
2924
7143
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 63 ) * col0 * - 2 col1 FROM tab2 AS cor0
----
-882
-9828
-9954
query I rowsort
SELECT DISTINCT 70 FROM tab2, tab2 AS cor0
----
70
query I rowsort
SELECT ALL 69 FROM tab0
----
69
69
69
query I rowsort
SELECT 59 * - col1 + ( - col1 ) FROM tab2 AS cor0
----
-1020
-1860
-3540
query I rowsort
SELECT DISTINCT col0 - col2 * + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4515
SELECT DISTINCT - 58 + + col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4515
SELECT DISTINCT - 58 + + col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col1 + col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4517
SELECT + 16 DIV col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4517
SELECT + 16 / col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 * - col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT tab0.col1 FROM tab0, tab1 AS cor0, tab2 cor1
----
86
91
97
query I rowsort
SELECT col1 * - col0 + 26 FROM tab1 cor0
----
-1014
-52
-614
query I rowsort
SELECT + 78 - - tab0.col0 FROM tab0
----
102
113
167
query I rowsort
SELECT DISTINCT 45 + - col2 * + ( col2 ) FROM tab0
----
-1044
-6679
44
query I rowsort
SELECT 0 AS col2 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4524
SELECT ALL - col2 + - CAST( + col0 * + col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
skipif mysql # not compatible
query I rowsort label-4524
SELECT ALL - col2 + - CAST ( + col0 * + col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT ALL + col0 DIV col1 + col0 + col0 FROM tab1 AS cor0
----
134
166
6
skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + col0 / col1 + col0 + col0 FROM tab1 AS cor0
----
134
166
6
query I rowsort
SELECT - col0 * - cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4527
SELECT col0 * + CAST( + col2 AS SIGNED ) + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-4527
SELECT col0 * + CAST ( + col2 AS INTEGER ) + cor0.col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-4530
SELECT DISTINCT - col2 - - 61 DIV - col0 AS col0 FROM tab2 AS cor0
----
-26
-35
-38
skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT - col2 - - 61 / - col0 AS col0 FROM tab2 AS cor0
----
-26
-35
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4531
SELECT ALL + + col0 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-4531
SELECT ALL + + col0 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + - col0 + - 4 FROM tab2 AS cor0
----
-11
-82
-83
query I rowsort
SELECT ALL - col2 * ( - col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col0 + 22 FROM tab2 AS cor0
----
100
101
29
query I rowsort
SELECT + - 18 * col1 + col2 FROM tab1 AS cor0
----
-123
-138
-414
query I rowsort
SELECT + - 91 AS col1 FROM tab2 AS cor0
----
-91
-91
-91
query I rowsort
SELECT + col1 + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL ( 96 ) FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT - - col2 * - col1 * + col0 AS col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-4540
SELECT ALL + + col0 DIV col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4540
SELECT ALL + + col0 / col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ( cor0.col0 ) + cor0.col1 FROM tab0, tab2 cor0
----
9 values hashing to 882fef197e3b41358c58e24f2db2f2e1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT - col2 * - CAST( NULL AS DECIMAL ) * + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4542
SELECT - col2 * - CAST ( NULL AS REAL ) * + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + cor0.col2 * + col0 AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT - + ( col2 ) + col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col2 * + col1 + col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4546
SELECT - + 31 + col2 * col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4546
SELECT - + 31 + col2 * col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col1 FROM tab1, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to eb8b36589592eb8217153525a5c8d606
query I rowsort
SELECT + 99 * col1 AS col1 FROM tab0
----
8514
9009
9603
query I rowsort
SELECT 7 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT DISTINCT ( 72 + + tab1.col2 * ( 62 ) ) AS col0 FROM tab1
----
3420
3606
6024
query I rowsort
SELECT + 35 * col0 FROM tab1 cor0
----
105
2240
2800
query I rowsort
SELECT + - col1 * cor0.col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col0 FROM tab2 cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4555
SELECT ALL + cor1.col2 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4555
SELECT ALL + cor1.col2 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col0 * col1 * - col1 AS col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT - cor1.col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 - + col0 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT tab1.col1 - + 52 FROM tab1
----
-26
-39
-42
query I rowsort
SELECT DISTINCT col2 + - ( + col2 ) + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT - 65 * - 89 FROM tab2, tab2 AS cor0
----
9 values hashing to 7d0f809ca7a10f208f1ca4eef7eacbb1
query I rowsort
SELECT + col2 * col1 + col0 FROM tab1
----
1328
1407
634
query I rowsort
SELECT DISTINCT - tab1.col1 + col1 AS col1 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT DISTINCT - col1 + 80 DIV cor0.col1 AS col2 FROM tab2 cor0
----
-13
-29
-58
skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT - col1 + 80 / cor0.col1 AS col2 FROM tab2 cor0
----
-13
-29
-58
query I rowsort
SELECT ALL + - ( col2 ) * col0 + ( + col0 ) FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT 35 + col1 AS col1 FROM tab2 AS cor0
----
52
66
94
query I rowsort
SELECT ALL - + col2 + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( + ( col1 ) ) + - 2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - - 86 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT ( 43 ) * + col1 + - col0 AS col1 FROM tab2 AS cor0
----
1326
2459
652
query I rowsort
SELECT - col0 + + col2 AS col1 FROM tab2
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4573
SELECT - col0 + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4573
SELECT - col0 + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 89 * 37 * - col1 FROM tab2
----
-102056
-194261
-55943
query I rowsort
SELECT ALL - col1 + + 60 FROM tab0
----
-26
-31
-37
query I rowsort
SELECT DISTINCT + + ( ( - col2 ) ) * col0 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4577
SELECT ALL CAST( NULL AS SIGNED ) * - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT ALL ( + col1 ) DIV col1 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4578
SELECT ALL ( + col1 ) / col1 AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - col1 + + 7 * col1 AS col1 FROM tab2 AS cor0
----
102
186
354
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4581
SELECT - + CAST( 51 AS SIGNED ) FROM tab1 AS cor0
----
-51
-51
-51
skipif mysql # not compatible
query I rowsort label-4581
SELECT - + CAST ( 51 AS INTEGER ) FROM tab1 AS cor0
----
-51
-51
-51
query I rowsort
SELECT ALL + - 11 * col1 FROM tab0 AS cor0
----
-1001
-1067
-946
query I rowsort
SELECT DISTINCT + + 54 * + 3 * col2 FROM tab1 AS cor0
----
15552
8748
9234
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 * - col2 * ( 10 ) col0 FROM tab0 AS cor0
----
-28294
-74529
-873
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4585
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col0 col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - ( col1 ) * cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + 91 + - 65 FROM tab1 AS cor0
----
26
26
26
query I rowsort
SELECT ALL - 78 AS col2 FROM tab0
----
-78
-78
-78
query I rowsort
SELECT + col1 * + col1 + 10 FROM tab0 AS cor0
----
7406
8291
9419
query I rowsort
SELECT - 36 * col2 AS col2 FROM tab1 AS cor0
----
-1944
-2052
-3456
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 * + col2 - + col0 FROM tab2 AS cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - col0 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + col2 + col2 * 30 FROM tab1 AS cor0
----
1674
1767
2976
query I rowsort
SELECT DISTINCT + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT col1 + 32 AS col2 FROM tab1 AS cor0
----
42
45
58
query I rowsort
SELECT ALL - col2 * ( - col2 ) AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL tab2.col1 + - 73 AS col0 FROM tab2
----
-14
-42
-56
query I rowsort
SELECT 90 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4603
SELECT ALL col0 * CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL col0 * CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 * 27 FROM tab0 AS cor0
----
-2214
-27
-891
onlyif mysql # use DIV operator for integer division
query I rowsort label-4605
SELECT ALL + col1 DIV + col2 + + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL + col1 / + col2 + + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 + ( col0 ) + - col2 FROM tab2 AS cor0
----
-47
26
3
query I rowsort
SELECT + + col1 + 67 AS col0 FROM tab1 AS cor0
----
77
80
93
query I rowsort
SELECT col2 * 27 AS col0 FROM tab0 AS cor0
----
2214
27
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 + + col2 - col0 col2 FROM tab2 AS cor0
----
-169
-2080
-3043
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + - 93 col2 FROM tab2 AS cor0
----
-110
-124
-152
query I rowsort
SELECT + cor0.col2 - + ( + cor0.col1 ) * col1 AS col0 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL - col1 + ( col2 ) + - col1 AS col2 FROM tab0 AS cor0
----
-100
-139
-193
query I rowsort
SELECT DISTINCT col2 * 77 AS col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT - col2 * ( - col0 ) + - col2 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + ( col2 ) * col1 col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT - - col1 - - ( - col1 ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4617
SELECT col2 DIV - col0 + cor0.col1 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-4617
SELECT col2 / - col0 + cor0.col1 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT ALL + - cor0.col2 * - col0 + col2 AS col1 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - + col1 * + col0 - - 61 FROM tab0 AS cor0
----
-2003
-3334
-8038
query I rowsort
SELECT + col2 + - 98 AS col2 FROM tab1 AS cor0
----
-2
-41
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 * + col1 col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + ( - col2 ) * col0 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4624
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 40 + col1 FROM tab0 AS cor0
----
46
51
57
query I rowsort
SELECT ALL + 91 * + cor0.col1 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT + 44 AS col0 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + cor0.col2 * + col0 col1 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + tab2.col2 * 93 + col0 FROM tab2
----
2496
2518
3613
query I rowsort
SELECT - col2 * cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 - + col0 col1 FROM tab0
----
-50
15
4
query I rowsort
SELECT + cor0.col1 - - ( + col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4634
SELECT ALL col2 + + col0 DIV col0 - - tab2.col1 * + tab2.col0 FROM tab2
----
1382
245
4629
skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL col2 + + col0 / col0 - - tab2.col1 * + tab2.col0 FROM tab2
----
1382
245
4629
query I rowsort
SELECT 28 AS col2 FROM tab0
----
28
28
28
query I rowsort
SELECT 11 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT DISTINCT 23 * tab2.col0 AS col1 FROM tab2
----
161
1794
1817
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col2 * tab1.col1 col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 + + ( ( col0 ) ) FROM tab0
----
-7372
-8192
-9374
query I rowsort
SELECT cor0.col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - - col1 * + ( col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - 41 + - cor0.col0 FROM tab0 AS cor0
----
-130
-65
-76
query I rowsort
SELECT col2 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col2 + col2 * - col0 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * + ( + col2 ) col2 FROM tab1 cor0
----
2700
2850
4800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4646
SELECT CAST( - 25 AS SIGNED ) FROM tab2
----
-25
-25
-25
skipif mysql # not compatible
query I rowsort label-4646
SELECT CAST ( - 25 AS INTEGER ) FROM tab2
----
-25
-25
-25
query I rowsort
SELECT - 89 AS col1 FROM tab1
----
-89
-89
-89
query I rowsort
SELECT + 14 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 409c1790b702540dd9dc067c1965b7c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 * col0 col1 FROM tab2 AS cor0
----
-238
-2652
-2686
query I rowsort
SELECT ALL 4 * + col1 AS col2 FROM tab1
----
104
40
52
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab2, tab1 cor0, tab1 cor1
----
-3
-64
-80
query I rowsort
SELECT + ( - col1 + col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 55 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT col2 + col1 + 82 * + col1 AS col0 FROM tab0
----
7171
7635
8052
query I rowsort
SELECT ALL 95 + col0 AS col1 FROM tab1
----
159
175
98
query I rowsort
SELECT - col0 + col1 * col0 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - - cor0.col1 + + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col1 * - ( + 65 ) + - cor0.col0 FROM tab1 AS cor0
----
1687
586
765
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4659
SELECT - col1 * col2 + CAST( 0 + col0 AS SIGNED ) FROM tab1
----
-1168
-1401
-506
skipif mysql # not compatible
query I rowsort label-4659
SELECT - col1 * col2 + CAST ( 0 + col0 AS INTEGER ) FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ( col0 + col0 ) FROM tab1
----
128
160
6
query I rowsort
SELECT - 16 FROM tab2 cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query I rowsort
SELECT ALL + col2 + col0 + col0 AS col2 FROM tab1 AS cor0
----
185
256
60
query I rowsort
SELECT - col1 * + col2 + - 34 FROM tab1 AS cor0
----
-1282
-1438
-604
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 66 col0 FROM tab0 AS cor0
----
20
25
31
query I rowsort
SELECT col1 * - ( col2 + cor0.col0 ) FROM tab0 AS cor0
----
-15561
-3492
-4902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * ( - col1 ) col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - col0 + + col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL - - col1 * 81 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ( - 76 ) + + cor0.col0 * ( + 4 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 43059057686ef119e7f8e20f32b88222
query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
24
query I rowsort
SELECT DISTINCT col2 * col0 - + col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT ALL + col0 * ( col1 + + col2 ) * + col0 FROM tab0
----
120050
1370333
68544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4673
SELECT + - cor0.col1 * ( + ( col2 ) * CAST( NULL AS SIGNED ) ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4673
SELECT + - cor0.col1 * ( + ( col2 ) * CAST ( NULL AS INTEGER ) ) - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 - col2 * 2 FROM tab1
----
-104
-179
-82
query I rowsort
SELECT DISTINCT + col1 * + col1 - col0 AS col0 FROM tab2
----
210
3403
954
query I rowsort
SELECT DISTINCT - col2 + 9 FROM tab1
----
-45
-48
-87
query I rowsort
SELECT + col0 + col0 * + col1 + - col1 FROM tab1 AS cor0
----
1107
55
694
onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT + + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4678
SELECT + + col2 / col2 AS col1 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4679
SELECT ( col0 ) + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4679
SELECT ( col0 ) + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 39 AS col1 FROM tab1, tab0 AS cor0
----
39
query I rowsort
SELECT DISTINCT + tab1.col1 + - col1 * - col0 AS col1 FROM tab1
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4682
SELECT ALL CAST( NULL AS SIGNED ) + - col2 - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4682
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + 51 FROM tab0 AS cor0
----
-38
16
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4684
SELECT ALL + CAST( NULL AS DECIMAL ) / col0 + col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL + CAST ( NULL AS REAL ) / col0 + col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + 87 AS col2 FROM tab0 AS cor0
----
-2
52
63
query I rowsort
SELECT DISTINCT - col1 * col1 + cor0.col2 - 51 FROM tab1 AS cor0
----
-124
-673
-94
query I rowsort
SELECT + ( cor0.col1 ) + cor0.col1 * 71 FROM tab0 AS cor0
----
6192
6552
6984
query I rowsort
SELECT + - col2 + + cor0.col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT + cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT - col1 + - col0 * cor0.col2 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - + col0 * col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + 16 FROM tab0 AS cor0
----
16
16
16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 95 * - col0 col2 FROM tab2 AS cor0
----
665
7410
7505
query I rowsort
SELECT + col2 * + col0 - cor0.col1 * + col2 FROM tab0 AS cor0
----
-164
-2046
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4695
SELECT ALL + + col1 + col1 * + col1 * cor0.col0 + CAST( - col0 AS SIGNED ) * - cor0.col2 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
13613
2057
6474
skipif mysql # not compatible
query I rowsort label-4695
SELECT ALL + + col1 + col1 * + col1 * cor0.col0 + CAST ( - col0 AS INTEGER ) * - cor0.col2 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
13613
2057
6474
query I rowsort
SELECT + col0 - - 12 FROM tab0 AS cor0
----
101
36
47
query I rowsort
SELECT DISTINCT + + ( - 36 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col2 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 90 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-2340
-2430
-3420
onlyif mysql # use DIV operator for integer division
query I rowsort label-4700
SELECT + 38 DIV col1 AS col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-4700
SELECT + 38 / col1 AS col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + col1 * col0 AS col0 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4702
SELECT DISTINCT - 76 * col0 DIV + ( col2 ) FROM tab1 AS cor0
----
-4
-63
-85
skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT - 76 * col0 / + ( col2 ) FROM tab1 AS cor0
----
-4
-63
-85
query I rowsort
SELECT - + 18 FROM tab1 AS cor0
----
-18
-18
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + cor0.col0 col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4705
SELECT - + col0 DIV col0 + - col1 * + col2 FROM tab1 AS cor0
----
-1249
-1405
-571
skipif mysql # not compatible
query I rowsort label-4705
SELECT - + col0 / col0 + - col1 * + col2 FROM tab1 AS cor0
----
-1249
-1405
-571
onlyif mysql # use DIV operator for integer division
query I rowsort label-4706
SELECT ALL + 33 + col0 DIV - 73 AS col0 FROM tab1 AS cor0
----
32
33
33
skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + 33 + col0 / - 73 AS col0 FROM tab1 AS cor0
----
32
33
33
query I rowsort
SELECT ALL - + col0 * col1 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - cor0.col0 * col2 * ( + cor0.col0 ) FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL ( + col1 ) * col1 - col0 * col2 FROM tab2
----
-2713
1453
772
query I rowsort
SELECT tab2.col0 + 61 FROM tab2
----
139
140
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-4711
SELECT + 73 + + tab1.col0 + - col0 DIV - col1 AS col0 FROM tab1
----
143
159
76
skipif mysql # not compatible
query I rowsort label-4711
SELECT + 73 + + tab1.col0 + - col0 / - col1 AS col0 FROM tab1
----
143
159
76
query I rowsort
SELECT + col2 + + col0 * 33 FROM tab2 AS cor0
----
258
2600
2645
query I rowsort
SELECT + - cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - 9 AS col0 FROM tab2 AS cor0
----
-9
-9
-9
query I rowsort
SELECT - 41 + + cor0.col1 * cor0.col0 FROM tab1 cor0
----
37
599
999
query I rowsort
SELECT ALL - col1 * - col2 * col1 AS col1 FROM tab2 AS cor0
----
10982
25947
90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4717
SELECT DISTINCT + - col2 * + col1 + CAST( - 31 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-10221
-1182
-3582
skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT + - col2 * + col1 + CAST ( - 31 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-10221
-1182
-3582
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 * ( 96 ) AS col0 FROM tab1 AS cor0
----
-1168
-2493
-896
query I rowsort
SELECT col2 + + col2 AS col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL col0 * + col2 + - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - 78 + + col2 AS col2 FROM tab1
----
-21
-24
18
query I rowsort
SELECT + tab2.col0 * - 13 FROM tab2, tab1 AS cor0
----
9 values hashing to 2bbdf84bee876c5f5624d604a4446338
query I rowsort
SELECT DISTINCT - ( 62 ) + - col2 AS col2 FROM tab1 AS cor0
----
-116
-119
-158
query I rowsort
SELECT - ( 26 ) * - tab1.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2247c581c042334a206b02b227f78eb7
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to c3f17e238f07c9d20c4ee001084f26c7
query I rowsort
SELECT ALL ( 37 ) AS col1 FROM tab2, tab2 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to b8def841e97863779a391f3a05d3eb92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - 72 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to b7689a8218ac9df1cca20d2ba5c53888
query I rowsort
SELECT col0 + col1 AS col2 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4730
SELECT DISTINCT + 8 DIV cor0.col2 col2 FROM tab0, tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4730
SELECT DISTINCT + 8 / cor0.col2 col2 FROM tab0, tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT 30 * + cor0.col2 + + ( 38 ) AS col2 FROM tab0, tab2 AS cor0
----
1178
818
848
onlyif mysql # use DIV operator for integer division
query I rowsort label-4732
SELECT DISTINCT + col1 - + col1 DIV col2 col1 FROM tab0
----
0
84
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT + col1 - + col1 / col2 col1 FROM tab0
----
0
84
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-4733
SELECT - 46 DIV col1 AS col1 FROM tab1
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-4733
SELECT - 46 / col1 AS col1 FROM tab1
----
-1
-3
-4
query I rowsort
SELECT ( col0 ) + col1 + col2 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT + ( + col2 ) * col0 + 89 + - col2 FROM tab2 AS cor0
----
2091
251
3053
query I rowsort
SELECT - - col2 - ( col2 ) * - col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4737
SELECT ALL + col1 DIV - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL + col1 / - cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + 82 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT DISTINCT + + col1 * col1 + + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-4740
SELECT - - 34 DIV 60 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4740
SELECT - - 34 / 60 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 34 + col0 + - col1 * col0 col2 FROM tab2 cor0
----
-1230
-176
-4490
query I rowsort
SELECT DISTINCT + 89 + 56 * col1 AS col2 FROM tab1 AS cor0
----
1545
649
817
query I rowsort
SELECT + - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + - ( col0 ) - col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4745
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + cor0.col1 * col1 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + cor0.col1 * col1 * - col2 - - col0 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + col2 * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col1 + cor0.col1 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + ( - cor0.col2 ) * - col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT col1 + 38 * - col1 FROM tab2 AS cor0
----
-1147
-2183
-629
query I rowsort
SELECT DISTINCT 1 * + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT DISTINCT + - 77 DIV + 41 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4751
SELECT DISTINCT + - 77 / + 41 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT 32 AS col0 FROM tab0
----
32
32
32
query I rowsort
SELECT ALL - - 67 + - col1 AS col0 FROM tab0 cor0
----
-19
-24
-30
query I rowsort
SELECT DISTINCT + col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4755
SELECT DISTINCT - 1 DIV + col2 + + ( - ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-4755
SELECT DISTINCT - 1 / + col2 + + ( - ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 * + col1 - - col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT ALL - col1 + cor0.col1 * + col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL + 93 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT - - col1 * + col1 + + 81 * - col1 AS col1 FROM tab2 cor0
----
-1088
-1298
-1550
query I rowsort
SELECT ALL cor2.col0 FROM tab1, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 2304fcc140e955eb2d1ee28ab1eea994
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + cor0.col2 * - ( col2 ) col0 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT DISTINCT - tab1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-3
-64
-80
query I rowsort
SELECT ALL - 38 + 48 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT - col0 + 43 * col1 * + col2 FROM tab2
----
27699
35984
65884
query I rowsort
SELECT DISTINCT + col1 * 99 * + col2 AS col0 FROM tab2 AS cor0
----
151866
63954
82863
query I rowsort
SELECT - cor0.col0 * - 3 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT DISTINCT col0 + + 85 AS col0 FROM tab2 AS cor0
----
163
164
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4768
SELECT ALL - col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - cor0.col0 * + col2 * 37 FROM tab2 AS cor0
----
111074
6993
75036
query I rowsort
SELECT - cor0.col2 + + col2 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 42 * - 57 FROM tab2 AS cor0
----
2394
2394
2394
query I rowsort
SELECT ( 37 ) * col1 AS col1 FROM tab1 cor0
----
370
481
962
query I rowsort
SELECT + 86 * 12 FROM tab0 AS cor0
----
1032
1032
1032
query I rowsort
SELECT ALL - ( - 21 ) + + col0 * - col1 FROM tab2 cor0
----
-1322
-196
-4581
onlyif mysql # use DIV operator for integer division
query I rowsort label-4775
SELECT ALL - + col0 * col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4775
SELECT ALL - + col0 * col1 / - col0 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT col1 + + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4777
SELECT DISTINCT + - CAST( - col0 AS SIGNED ) + cor0.col1 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-4777
SELECT DISTINCT + - CAST ( - col0 AS INTEGER ) + cor0.col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL 53 * - 43 FROM tab1, tab1 cor0
----
9 values hashing to dd264b5b3b2e4c22a9776b19658068fd
query I rowsort
SELECT DISTINCT 52 + 52 AS col0 FROM tab0, tab2 AS cor0
----
104
query I rowsort
SELECT + 7 * col1 * - col2 AS col1 FROM tab1
----
-3990
-8736
-9828
query I rowsort
SELECT col2 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + ( col1 ) + - col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - ( - col1 ) * + col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN - col0 AND col0 + col1 * col1 AND - col1 BETWEEN col0 AND ( NULL ) OR NOT col0 * col0 + col0 <= NULL
----
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 WHERE - cor0.col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + col0 + col2 AS col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + col0 * - col1 * + col0 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT + - cor0.col1 + col2 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL - + col1 + cor0.col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - col1 - 22 AS col2 FROM tab0 AS cor0
----
-108
-113
-119
query I rowsort
SELECT col0 * col0 - col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT DISTINCT + col1 * col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4794
SELECT ( col2 ) DIV col2 + + col0 + + cor0.col2 FROM tab0 cor0
----
172
37
58
skipif mysql # not compatible
query I rowsort label-4794
SELECT ( col2 ) / col2 + + col0 + + cor0.col2 FROM tab0 cor0
----
172
37
58
query I rowsort
SELECT + ( col0 ) * col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - col0 + + col0 + col0 FROM tab0 cor0
----
105
267
72
query I rowsort
SELECT + 94 * - col0 + - col1 + + col2 * col0 FROM tab1 AS cor0
----
-146
-2378
147
query I rowsort
SELECT + 66 + col0 * col2 * - col1 + - col0 AS col1 FROM tab1
----
-36478
-4149
-99854
query I rowsort
SELECT + 80 FROM tab0 cor0
----
80
80
80
query I rowsort
SELECT 2 + - col2 + col1 FROM tab1 AS cor0
----
-26
-45
-81
query I rowsort
SELECT ALL - col0 * + 77 FROM tab0
----
-1848
-2695
-6853
query I rowsort
SELECT ALL - 6 AS col0 FROM tab0
----
-6
-6
-6
query I rowsort
SELECT ALL 18 AS col0 FROM tab1
----
18
18
18
query I rowsort
SELECT - tab2.col0 * - 71 AS col0 FROM tab2
----
497
5538
5609
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT ALL CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4805
SELECT ALL CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT col2 + col1 AS col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4807
SELECT - col1 + col2 * col2 - col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
2888
3234
9196
skipif mysql # not compatible
query I rowsort label-4807
SELECT - col1 + col2 * col2 - col2 / + col1 AS col2 FROM tab1 AS cor0
----
2888
3234
9196
query I rowsort
SELECT col2 - col1 FROM tab0 cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 cor0
----
-54
-57
-96
query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <> ( NULL )
----
query I rowsort
SELECT ALL - col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 BETWEEN NULL AND + col0 * col1 * col1
----
query I rowsort
SELECT tab0.col1 + + col2 * + tab0.col1 AS col0 FROM tab0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col1 * col1 col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT + tab2.col2 * - tab2.col2 * + col2 + - col2 FROM tab2
----
-17602
-19710
-54910
query I rowsort
SELECT tab1.col0 + col2 + col2 AS col2 FROM tab1
----
111
178
272
query I rowsort
SELECT DISTINCT - col0 + + col1 + col1 FROM tab0
----
148
159
93
query I rowsort
SELECT ALL col1 + tab0.col1 + tab0.col0 FROM tab0
----
196
229
271
query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 - col1 ) = col0 * col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4820
SELECT ALL col1 + col2 DIV + col2 + col0 DIV - col0 AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL col1 + col2 / + col2 + col0 / - col0 AS col2 FROM tab1
----
10
13
26
query I rowsort
SELECT col0 * - col1 * + col2 + tab1.col0 AS col1 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT ALL + tab1.col1 * col0 + + col0 * + col1 FROM tab1
----
1280
156
2080
query I rowsort
SELECT tab0.col0 - col1 FROM tab0
----
-2
-62
-62
query III rowsort
SELECT * FROM tab0 WHERE ( + col2 * - col0 * - col2 + col2 * - col1 ) >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 + col2 * col2 * col0 col1 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - col2 * - col0 * - tab0.col2 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT ALL - col2 * col2 AS col1 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) IN ( col0 )
----
query I rowsort
SELECT DISTINCT col1 * col1 + - col1 + + col2 AS col1 FROM tab0
----
7343
8272
9313
onlyif mysql # use DIV operator for integer division
query I rowsort label-4831
SELECT - col2 DIV tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4831
SELECT - col2 / tab1.col2 AS col2 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT DISTINCT - col0 DIV col1 FROM tab1
----
-6
0
skipif mysql # not compatible
query I rowsort label-4832
SELECT DISTINCT - col0 / col1 FROM tab1
----
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col1 + - col1 col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL - cor0.col1 * col1 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
-744
1054
1121
query I rowsort
SELECT DISTINCT + + col1 * - col0 + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL - col0 + - col1 AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT - col1 + col2 * col0 AS col2 FROM tab0
----
-62
706
7207
query I rowsort
SELECT + col0 * - col2 - col2 AS col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT col2 * col1 * - col0 + + col0 AS col1 FROM tab2
----
-119574
-50955
-5852
query I rowsort
SELECT ALL col2 * - col1 + col1 * col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col1 + - ( - tab2.col0 ) FROM tab2
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4843
SELECT + col2 * + CAST( NULL AS SIGNED ) + - ( tab2.col0 ) * tab2.col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4843
SELECT + col2 * + CAST ( NULL AS INTEGER ) + - ( tab2.col0 ) * tab2.col1 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4844
SELECT DISTINCT col0 * col0 DIV ( - col2 ) + - 39 * + 10 FROM tab1
----
-390
-456
-461
skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT col0 * col0 / ( - col2 ) + - 39 * + 10 FROM tab1
----
-390
-456
-461
query I rowsort
SELECT ALL - - col2 - 29 * + cor0.col0 FROM tab2 AS cor0
----
-176
-2236
-2253
query I rowsort
SELECT DISTINCT + - col2 * - 46 - + cor0.col1 AS col0 FROM tab1 AS cor0
----
2458
2612
4403
query I rowsort
SELECT DISTINCT col0 * col2 + + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL + - col1 * col0 - col1 * - cor0.col0 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL col0 * - ( 30 ) + - col0 FROM tab1 cor0
----
-1984
-2480
-93
query I rowsort
SELECT ALL + ( ( col0 ) ) * - ( - col1 ) - col2 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - col2 * col0 + col1 AS col0 FROM tab2 cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + - col0 * + cor0.col1 col1 FROM tab1 AS cor0
----
-1078
-116
-678
query I rowsort
SELECT DISTINCT - col2 + 89 AS col1 FROM tab0 cor0
----
56
7
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4854
SELECT DISTINCT + - col1 DIV - 40 AS col2 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT + - col1 / - 40 AS col2 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT cor0.col0 + - col0 * col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - - 13 + - 30 FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT DISTINCT col1 + cor0.col1 * + col1 AS col2 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT + 20 + 93 * - col2 + ( cor0.col1 ) FROM tab0 AS cor0
----
-2963
-7515
24
query I rowsort
SELECT DISTINCT + 65 - - 17 AS col2 FROM tab1 cor0
----
82
query I rowsort
SELECT + col2 * + col0 + col0 AS col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT + + col1 * col0 + - col1 * col1 * - col0 AS col0 FROM tab1 AS cor0
----
14560
2106
7040
query I rowsort
SELECT DISTINCT + + col2 * + col2 + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL + - ( + col2 ) AS col1 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - col2 + + col2 * 26 + col2 FROM tab1
----
1404
1482
2496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * tab2.col1 - - 69 col2 FROM tab2
----
1030
3550
358
query I rowsort
SELECT DISTINCT + col2 + 39 FROM tab0
----
121
40
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4867
SELECT + CAST( NULL AS SIGNED ) * col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4867
SELECT + CAST ( NULL AS INTEGER ) * col0 + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 10 AS col1 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT ALL 1 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - - cor0.col1 + col2 * col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col0 + - col0 * + cor0.col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - 23 * + col1 FROM tab0 AS cor0
----
-1978
-2093
-2231
query I rowsort
SELECT DISTINCT - 21 * - col0 FROM tab0 AS cor0
----
1869
504
735
query I rowsort
SELECT - + 72 * + col2 FROM tab1 AS cor0
----
-3888
-4104
-6912
query I rowsort
SELECT DISTINCT + col0 + + col1 * cor0.col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT col0 + col1 * + 44 AS col1 FROM tab0 AS cor0
----
3808
4093
4303
query I rowsort
SELECT DISTINCT 85 * col1 + + col2 + - col0 FROM tab2
----
1404
2655
4963
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4880
SELECT + CAST( NULL AS SIGNED ) * + tab1.col1 * col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4880
SELECT + CAST ( NULL AS INTEGER ) * + tab1.col1 * col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ( ( col1 ) ) + + 94 AS col0 FROM tab1
----
104
107
120
query I rowsort
SELECT ALL - 0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - col1 ) + 68 AS col1 FROM tab0
----
-18
-23
-29
query I rowsort
SELECT - col1 + + ( + 17 ) AS col1 FROM tab0 AS cor0
----
-69
-74
-80
query I rowsort
SELECT - cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4886
SELECT - cor0.col1 + CAST( + col2 AS SIGNED ) * + cor0.col1 col0 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4886
SELECT - cor0.col1 + CAST ( + col2 AS INTEGER ) * + cor0.col1 col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT col1 * + ( 91 ) AS col1 FROM tab0 AS cor0
----
7826
8281
8827
query I rowsort
SELECT 42 * col2 + col0 AS col0 FROM tab0
----
1410
3533
77
query I rowsort
SELECT ALL - 30 * + tab2.col1 AS col1 FROM tab2
----
-1770
-510
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-4890
SELECT ALL 59 DIV col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4890
SELECT ALL 59 / col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 86 FROM tab1, tab2 AS cor0
----
86
query I rowsort
SELECT ALL 26 * cor0.col2 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 461c22d854be0001e8f8005306ff5d99
query I rowsort
SELECT ALL - cor0.col1 + + 50 AS col2 FROM tab0 AS cor0
----
-36
-41
-47
onlyif mysql # use DIV operator for integer division
query I rowsort label-4894
SELECT + col1 DIV CAST( col0 + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4894
SELECT + col1 / CAST ( col0 + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
1
1
query I rowsort
SELECT DISTINCT + col1 * + 3 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT - col2 * 79 AS col0 FROM tab0 AS cor0
----
-2607
-6478
-79
query I rowsort
SELECT col1 * - 3 FROM tab2 AS cor0
----
-177
-51
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4898
SELECT + col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4898
SELECT + col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT DISTINCT col1 DIV 36 + col2 FROM tab2
----
27
38
skipif mysql # not compatible
query I rowsort label-4899
SELECT DISTINCT col1 / 36 + col2 FROM tab2
----
27
38
query I rowsort
SELECT ( col2 ) * + tab2.col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0
----
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col1 ) + col2 * col1 col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT - + col0 - cor0.col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + col2 col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - ( - 28 ) + col0 FROM tab2
----
106
107
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 * + 74 ) col0 FROM tab0
----
-1776
-2590
-6586
query I rowsort
SELECT 59 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
81 values hashing to 05f41d0d3fd0b5c29af79ab9209cab27
query I rowsort
SELECT ALL 78 AS col2 FROM tab2
----
78
78
78
query I rowsort
SELECT 83 * col2 FROM tab2 AS cor0
----
2158
2241
3154
query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab2, tab1 AS cor0, tab2 cor1, tab2 AS cor2
----
36
query I rowsort
SELECT ALL - 69 AS col1 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT ( col1 ) * - 5 AS col2 FROM tab2 AS cor0
----
-155
-295
-85
query I rowsort
SELECT DISTINCT - - 87 + col0 FROM tab2 cor0
----
165
166
94
query I rowsort
SELECT + - col0 * col1 + - col1 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT col0 * 35 AS col1 FROM tab0
----
1225
3115
840
query I rowsort
SELECT - 60 * col2 AS col1 FROM tab1
----
-3240
-3420
-5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT - + col2 + col1 DIV + ( col0 ) AS col0 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-4917
SELECT - + col2 + col1 / + ( col0 ) AS col0 FROM tab1 AS cor0
----
-46
-57
-96
query I rowsort
SELECT 33 * col0 FROM tab2
----
231
2574
2607
query I rowsort
SELECT DISTINCT 33 + 29 FROM tab0 AS cor0
----
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4920
SELECT col1 DIV 71 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4920
SELECT col1 / 71 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 95 FROM tab1, tab0 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 AS cor2
----
3645 values hashing to 85e6cb74738e0d8388af8fb625b2bd38
query I rowsort
SELECT DISTINCT 49 AS col0 FROM tab1
----
49
query I rowsort
SELECT 60 * + col1 FROM tab1
----
1560
600
780
query I rowsort
SELECT ALL 37 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
query I rowsort
SELECT - col0 * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL 10 FROM tab2, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT DISTINCT + cor2.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab2, tab1 AS cor2
----
54
57
96
query I rowsort
SELECT + + col0 * 4 + col1 FROM tab0 AS cor0
----
182
237
447
onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT DISTINCT - col2 DIV + 11 + + col1 FROM tab2 AS cor0
----
14
29
57
skipif mysql # not compatible
query I rowsort label-4930
SELECT DISTINCT - col2 / + 11 + + col1 FROM tab2 AS cor0
----
14
29
57
query I rowsort
SELECT + ( cor0.col2 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 68 + col2 AS col1 FROM tab1 AS cor0
----
-11
-14
28
query I rowsort
SELECT ( 34 ) - col1 FROM tab2 cor0
----
-25
17
3
query I rowsort
SELECT col0 * + col1 + + col1 * + ( 77 ) AS col1 FROM tab0 AS cor0
----
10864
15106
8686
query I rowsort
SELECT - tab0.col0 AS col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT + 8 * 42 FROM tab0, tab0 AS cor0
----
9 values hashing to 27b1859cf03275544f3dab88f03fb804
query I rowsort
SELECT 1 + + col1 AS col2 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4938
SELECT CAST( 61 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
1037
1891
3599
skipif mysql # not compatible
query I rowsort label-4938
SELECT CAST ( 61 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
1037
1891
3599
onlyif mysql # use DIV operator for integer division
query I rowsort label-4939
SELECT DISTINCT - - 34 DIV + 59 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4939
SELECT DISTINCT - - 34 / + 59 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + + cor0.col0 * - 6 AS col1 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT + 43 * - col2 AS col0 FROM tab0 cor0
----
-1419
-3526
-43
query I rowsort
SELECT 98 FROM tab0, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + 14 + + cor0.col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 458913e78daf966faeb942dbd3acb4ba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4945
SELECT col1 + cor0.col0 * CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4945
SELECT col1 + cor0.col0 * CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 1 * col0 AS col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL - - col1 * + col2 + - 39 AS col2 FROM tab2 AS cor0
----
1495
607
798
query I rowsort
SELECT ALL + 22 * + col2 FROM tab1 AS cor0
----
1188
1254
2112
query I rowsort
SELECT + col2 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + col2 * + col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4951
SELECT - - col2 / - col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4951
SELECT - - col2 / - col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 + + col1 * + 74 AS col1 FROM tab0 AS cor0
----
6388
6823
7213
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col0 col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4954
SELECT - col2 * col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4954
SELECT - col2 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 col1 FROM tab0
----
-7
-7
-7
query I rowsort
SELECT ALL - - cor0.col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col0 + 42 * + col2 FROM tab0 AS cor0
----
1362
3355
7
query I rowsort
SELECT DISTINCT - - col1 + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col2 * - col0 + + col0 + - col1 FROM tab0 AS cor0
----
-7300
-854
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4960
SELECT - - col2 + - CAST( NULL AS SIGNED ) / - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4960
SELECT - - col2 + - CAST ( NULL AS INTEGER ) / - 37 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4962
SELECT - col1 + - col0 + col2 DIV - col0 FROM tab2 AS cor0
----
-137
-41
-96
skipif mysql # not compatible
query I rowsort label-4962
SELECT - col1 + - col0 + col2 / - col0 FROM tab2 AS cor0
----
-137
-41
-96
query I rowsort
SELECT ALL + 35 FROM tab2
----
35
35
35
query I rowsort
SELECT 74 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT + cor0.col1 + ( 59 ) AS col1 FROM tab2 AS cor0
----
118
76
90
query I rowsort
SELECT - col2 + 32 FROM tab0 cor0
----
-1
-50
31
query I rowsort
SELECT + col2 + - 6 AS col0 FROM tab2
----
20
21
32
query I rowsort
SELECT DISTINCT + ( col0 + + col2 ) AS col1 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL - 52 + col2 FROM tab1 AS cor0
----
2
44
5
query I rowsort
SELECT ALL + - col1 * col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - + 8 * col0 + + col1 + col2 AS col2 FROM tab0 AS cor0
----
-182
-539
-73
query I rowsort
SELECT + - col2 + - cor0.col0 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL col0 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT col2 * - col0 - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT col1 * - 11 AS col1 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col0 + 19 * + col1 * + col0 + 34 AS col2 FROM tab2 AS cor0
----
25630
4164
87550
query I rowsort
SELECT - col1 * 41 FROM tab2 AS cor0
----
-1271
-2419
-697
query I rowsort
SELECT DISTINCT + + col0 * - 73 AS col1 FROM tab1 AS cor0
----
-219
-4672
-5840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + col2 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 - cor0.col1 * - 10 AS col2 FROM tab1 AS cor0
----
110
143
286
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col2 + CAST ( col1 + + col2 AS REAL ) * + col2 FROM tab1 AS cor0
----
10560
3876
4374
query I rowsort
SELECT ALL - cor0.col0 + + col1 AS col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + + col0 + - 77 + col0 FROM tab1 AS cor0
----
-71
51
83
query I rowsort
SELECT ALL + cor0.col0 * 29 AS col0 FROM tab1 AS cor0
----
1856
2320
87
query I rowsort
SELECT ALL - + col2 * col0 * - ( + col1 ) + - col0 FROM tab2 cor0
----
119574
50955
5852
query I rowsort
SELECT tab1.col0 + col2 * + col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL + col2 * col0 * tab0.col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL - tab2.col2 + col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT - col0 * - col2 - col0 AS col1 FROM tab0
----
0
7209
768
query III rowsort
SELECT * FROM tab0 WHERE ( - col2 ) IN ( col1 + col0 )
----
query I rowsort
SELECT col1 + tab1.col1 AS col0 FROM tab1
----
20
26
52
query I rowsort
SELECT col1 * - tab0.col2 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - col2 + col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT tab2.col2 - col1 * col2 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT DISTINCT col2 DIV - col2 + + col2 * - col0 FROM tab1
----
-163
-3649
-7681
skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT col2 / - col2 + + col2 * - col0 FROM tab1
----
-163
-3649
-7681
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 col1 FROM tab2 AS cor0
----
6
query I rowsort
SELECT ALL - 24 + + col1 FROM tab1 AS cor0
----
-11
-14
2
query I rowsort
SELECT + + 74 + + col1 AS col2 FROM tab0 AS cor0
----
160
165
171
query I rowsort
SELECT ALL + 27 + - col0 FROM tab2 cor0
----
-51
-52
20
query I rowsort
SELECT ALL + cor0.col2 * col0 - 60 FROM tab0 AS cor0
----
-25
7238
732
query I rowsort
SELECT DISTINCT - col1 + col1 * + 82 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT ALL - 57 * + col2 + + col1 * - 57 + + col1 FROM tab1 AS cor0
----
-3809
-4534
-6200
query I rowsort
SELECT + col1 + - col0 + + col2 FROM tab2
----
-24
51
7
query I rowsort
SELECT ALL - tab1.col2 * col2 AS col2 FROM tab1
----
-2916
-3249
-9216
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col0 >= ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - tab1.col1 col2 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5009
SELECT - col1 DIV col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5009
SELECT - col1 / col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col0 * col0 + - col1 FROM tab2
----
18
6025
6224
query I rowsort
SELECT ALL - col2 * + col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + + col0 FROM tab0 WHERE - col2 + - col2 NOT IN ( col1 / + col1 )
----
-9
34
7
query I rowsort
SELECT ALL + - col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5014
SELECT 92 * col0 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5014
SELECT 92 * col0 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - + col1 col2 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + - col1 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT + 5 AS col1 FROM tab1 cor0
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT - 96 * - cor0.col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5018
SELECT - 96 * - cor0.col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - col2 + - ( + col2 * - col2 ) AS col0 FROM tab0 AS cor0
----
-1749
-738
-96
query I rowsort
SELECT ALL - 77 AS col1 FROM tab0 AS cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5021
SELECT ALL + 82 DIV col1 + col2 * ( + col1 + 0 ) FROM tab2 cor0
----
1535
650
839
skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + 82 / col1 + col2 * ( + col1 + 0 ) FROM tab2 cor0
----
1535
650
839
query I rowsort
SELECT + 92 + + col0 * + 15 AS col1 FROM tab2 AS cor0
----
1262
1277
197
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5023
SELECT - CAST( - col0 AS SIGNED ) * - col2 + + 76 * col1 FROM tab0
----
-382
5744
7337
skipif mysql # not compatible
query I rowsort label-5023
SELECT - CAST ( - col0 AS INTEGER ) * - col2 + + 76 * col1 FROM tab0
----
-382
5744
7337
query I rowsort
SELECT col0 * + 63 - col2 FROM tab1
----
135
3975
4944
onlyif mysql # use DIV operator for integer division
query I rowsort label-5025
SELECT DISTINCT 32 * 65 DIV - col0 + col0 * ( - col0 ) FROM tab2
----
-346
-6110
-6267
skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT 32 * 65 / - col0 + col0 * ( - col0 ) FROM tab2
----
-346
-6110
-6267
query I rowsort
SELECT ALL + cor0.col1 * tab1.col1 FROM tab1, tab2 cor0
----
9 values hashing to 819d50aeaf27d8e4e8dec203fb8f53ce
query I rowsort
SELECT 4 AS col1 FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT - ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + col1 * - tab1.col1 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5030
SELECT col2 * CAST( - cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-1444
-676
-729
skipif mysql # not compatible
query I rowsort label-5030
SELECT col2 * CAST ( - cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - - col1 + + col0 * col2 * col2 AS col0 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT col1 * 42 FROM tab2 AS cor0
----
1302
2478
714
onlyif mysql # use DIV operator for integer division
query I rowsort label-5033
SELECT ALL - + col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL - + col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + 17 FROM tab1 AS cor0
----
17
query I rowsort
SELECT 78 AS col1 FROM tab2 AS cor0
----
78
78
78
query I rowsort
SELECT ALL - tab2.col1 * - ( + col2 ) + col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL col0 + - 84 FROM tab2
----
-5
-6
-77
query I rowsort
SELECT ALL + col2 + - col1 + col2 FROM tab1
----
104
179
82
query I rowsort
SELECT + col1 + col0 * col0 * - col0 FROM tab0
----
-13738
-42778
-704878
onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT + 71 DIV col0 AS col2 FROM tab1 AS cor0
----
0
1
23
skipif mysql # not compatible
query I rowsort label-5040
SELECT + 71 / col0 AS col2 FROM tab1 AS cor0
----
0
1
23
query I rowsort
SELECT DISTINCT - + 1 + - col0 AS col2 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT - 77 * + 78 + + cor0.col1 - col2 * col1 AS col1 FROM tab2 AS cor0
----
-6635
-6812
-7481
query I rowsort
SELECT ALL + - col1 + col2 * col0 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT 3 FROM tab1, tab0 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT 43 + - col2 - + col1 * col1 FROM tab2 AS cor0
----
-284
-3464
-945
query I rowsort
SELECT DISTINCT cor0.col2 * 15 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT + col1 + + 1 * 9 FROM tab2 cor0
----
26
40
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT + + cor0.col0 + + col0 DIV col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5048
SELECT + + cor0.col0 + + col0 / col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT + + cor0.col0 + + 56 * 85 * + cor0.col1 FROM tab1 AS cor0
----
123763
47664
61960
query I rowsort
SELECT col1 * - 0 FROM tab2 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5051
SELECT cor0.col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5051
SELECT cor0.col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * + ( 56 ) FROM tab1 AS cor0
----
168
3584
4480
query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 * ( - 58 * col0 ) col0 FROM tab2
----
13755164
76734
9174672
query I rowsort
SELECT DISTINCT + col2 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5056
SELECT + CAST( - 22 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a0e2414933a8871692e3623f463e9d4b
skipif mysql # not compatible
query I rowsort label-5056
SELECT + CAST ( - 22 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a0e2414933a8871692e3623f463e9d4b
query I rowsort
SELECT + col2 * - ( + col1 * col2 ) AS col0 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT + tab1.col2 * ( 37 ) FROM tab1
----
1998
2109
3552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5059
SELECT + CAST( NULL AS SIGNED ) / - tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5059
SELECT + CAST ( NULL AS INTEGER ) / - tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - 26 FROM tab1
----
-26
query I rowsort
SELECT col0 + col2 * + col1 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT 38 AS col0 FROM tab0, tab1 AS cor0
----
38
query I rowsort
SELECT DISTINCT 36 AS col1 FROM tab0, tab2 AS cor0
----
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-5064
SELECT + ( - col0 ) DIV 91 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5064
SELECT + ( - col0 ) / 91 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5066
SELECT - col1 + col1 DIV + col2 FROM tab0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-5066
SELECT - col1 + col1 / + col2 FROM tab0
----
-84
-90
0
query I rowsort
SELECT col2 * + col0 + + col2 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL + col0 + + 30 AS col1 FROM tab1 AS cor0
----
110
33
94
query I rowsort
SELECT - + col0 * + col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 * + col1 + col0 col0 FROM tab1 AS cor0
----
-1687
-586
-765
onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT tab2.col2 DIV - tab2.col1 - - col2 * + col2 FROM tab2
----
1442
676
729
skipif mysql # not compatible
query I rowsort label-5071
SELECT tab2.col2 / - tab2.col1 - - col2 * + col2 FROM tab2
----
1442
676
729
query I rowsort
SELECT + cor0.col0 + 20 FROM tab2, tab0 AS cor0
----
9 values hashing to f45b794165c8162ee6889786b39dd8bb
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 col1 FROM tab1, tab1 AS cor0
----
-27
query I rowsort
SELECT + 18 FROM tab2, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab2, tab0 AS cor0, tab0 cor1
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5076
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) / + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) / + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 * ( - cor0.col2 * col1 ) AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + + col1 * - col2 + + col1 * col1 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT + ( 60 ) * col2 * - col2 FROM tab1
----
-174960
-194940
-552960
query I rowsort
SELECT - 61 - - col2 * col1 * col1 FROM tab2
----
10921
25886
90445
onlyif mysql # use DIV operator for integer division
query I rowsort label-5081
SELECT ( col0 ) DIV col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5081
SELECT ( col0 ) / col2 FROM tab0
----
0
1
35
query I rowsort
SELECT - 24 * + ( + col1 ) + + ( + col0 + col1 ) FROM tab2
----
-1279
-312
-706
onlyif mysql # use DIV operator for integer division
query I rowsort label-5083
SELECT - col2 DIV col2 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5083
SELECT - col2 / col2 AS col0 FROM tab1
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + 62 col0 FROM tab0
----
83
83
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - tab0.col1 col0 FROM tab0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT - col1 * col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - - col1 - - col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + col0 * + col1 + 30 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
1027
2483
5382
query I rowsort
SELECT DISTINCT - col0 * col0 + 81 * - col0 FROM tab1 AS cor0
----
-12880
-252
-9280
query I rowsort
SELECT ALL - - 37 + + col0 FROM tab2 AS cor0
----
115
116
44
query I rowsort
SELECT DISTINCT col2 - col1 * - col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - - 47 + - col1 FROM tab2 AS cor0
----
-12
16
30
query I rowsort
SELECT ALL - + 0 + cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col0 + - cor0.col0 + + col1 * col2 FROM tab1 cor0
----
1088
1398
442
query I rowsort
SELECT - + col2 * + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL + 2 * col1 + 40 FROM tab2 AS cor0
----
102
158
74
query I rowsort
SELECT DISTINCT + col2 * + col1 - + 5 * col0 FROM tab0 AS cor0
----
-78
2718
7017
query I rowsort
SELECT col1 * - 27 * - tab2.col1 AS col0 FROM tab2
----
25947
7803
93987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5100
SELECT CAST( NULL AS SIGNED ) * + 91 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5100
SELECT CAST ( NULL AS INTEGER ) * + 91 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 - - tab1.col1 FROM tab1
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col2 + + ( - col1 ) * col0 col1 FROM tab1 AS cor0
----
-1056
-129
-633
query I rowsort
SELECT ALL + - 1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 28 FROM tab1 AS cor0
----
28
query I rowsort
SELECT - 94 * 27 AS col1 FROM tab0 AS cor0
----
-2538
-2538
-2538
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5108
SELECT 47 DIV + col0 AS col1 FROM tab2 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-5108
SELECT 47 / + col0 AS col1 FROM tab2 AS cor0
----
0
0
6
query I rowsort
SELECT + - 50 * col2 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT + ( 36 ) * + col0 AS col2 FROM tab0 cor0
----
1260
3204
864
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab0, tab2 cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5112
SELECT + CAST( NULL AS SIGNED ) + 82 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5112
SELECT + CAST ( NULL AS INTEGER ) + 82 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col0 ) * + col1 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + cor1.col2 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT + + col1 + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - cor0.col0 * - 26 * + col1 AS col0 FROM tab2 AS cor0
----
119652
34918
5642
onlyif mysql # use DIV operator for integer division
query I rowsort label-5117
SELECT + 89 DIV col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5117
SELECT + 89 / col1 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT 41 AS col2 FROM tab0, tab2, tab0 AS cor0
----
41
query I rowsort
SELECT - col2 * + col2 - - 2 AS col0 FROM tab2
----
-1442
-674
-727
query I rowsort
SELECT ALL + + cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 + + col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5122
SELECT DISTINCT col0 - - col2 DIV - tab0.col2 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5122
SELECT DISTINCT col0 - - col2 / - tab0.col2 FROM tab0
----
23
34
88
query I rowsort
SELECT DISTINCT col0 * col0 + - ( tab1.col2 ) AS col1 FROM tab1
----
-45
4039
6304
query I rowsort
SELECT + 39 - col2 AS col0 FROM tab2 cor0
----
1
12
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + col2 col1 FROM tab1
----
100
103
142
query I rowsort
SELECT - 89 * - col0 AS col2 FROM tab2
----
623
6942
7031
query I rowsort
SELECT ALL 25 * + cor0.col2 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT - + col1 * col1 + + col1 * + col2 AS col2 FROM tab0 AS cor0
----
-4558
-819
-9312
query I rowsort
SELECT DISTINCT - - cor0.col2 * - col0 + + 48 * cor0.col0 FROM tab1 AS cor0
----
-18
-3840
-576
onlyif mysql # use DIV operator for integer division
query I rowsort label-5130
SELECT tab2.col1 DIV col1 AS col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5130
SELECT tab2.col1 / col1 AS col0 FROM tab2
----
1
1
1
query I rowsort
SELECT col1 + - 96 FROM tab0 AS cor0
----
-10
-5
1
query I rowsort
SELECT DISTINCT + col2 * - col1 + + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + col1 - + cor0.col1 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5134
SELECT ALL - cor0.col1 + CAST( ( cor0.col1 ) * - col0 AS SIGNED ) FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL - cor0.col1 + CAST ( ( cor0.col1 ) * - col0 AS INTEGER ) FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT + cor2.col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab2, tab0 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5136
SELECT ALL tab1.col2 DIV col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5136
SELECT ALL tab1.col2 / col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ALL + - col2 * - ( - 0 * + col0 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + col2 + + ( col1 ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT - col1 - - 27 AS col2 FROM tab0 AS cor0
----
-59
-64
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5142
SELECT DISTINCT - col2 + CAST( + col1 AS SIGNED ) * col1 FROM tab0 AS cor0
----
7363
8199
9408
skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT - col2 + CAST ( + col1 AS INTEGER ) * col1 FROM tab0 AS cor0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-5143
SELECT DISTINCT + cor0.col2 + col1 DIV + col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-5143
SELECT DISTINCT + cor0.col2 + col1 / + col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - + cor0.col1 * - col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL - col2 * col1 + - 75 * - col2 AS col2 FROM tab1 AS cor0
----
2646
3705
5952
query I rowsort
SELECT col0 + + col1 * - cor0.col2 AS col1 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + col1 * - 15 FROM tab2
----
-255
-465
-885
query I rowsort
SELECT DISTINCT col2 + col2 * + col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT - col0 * ( col0 ) * col2 FROM tab0
----
-1225
-19008
-649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5150
SELECT DISTINCT + col2 - 0 / + ( col2 + + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT + col2 - 0 / + ( col2 + + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + col0 * 42 - col2 FROM tab0 AS cor0
----
-1041
-1471
-3820
query I rowsort
SELECT ALL + col1 + + ( col0 + col1 ) AS col1 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT ALL col1 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT - - col1 * + ( - cor0.col1 ) + - col1 AS col0 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT ALL + col0 * - col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + ( col0 ) * - col1 + col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT col0 + - col0 * col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT col2 * col2 * - col2 AS col0 FROM tab1
----
-157464
-185193
-884736
query I rowsort
SELECT - 18 + 84 * - col2 * col0 AS col2 FROM tab2 AS cor0
----
-15894
-170370
-252186
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5160
SELECT - + CAST( NULL AS SIGNED ) * cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5160
SELECT - + CAST ( NULL AS INTEGER ) * cor0.col0 * - col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 * 27 col2 FROM tab0 cor0
----
2485
681
946
query I rowsort
SELECT col0 * col0 + col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT ALL - col1 + - col0 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT + 8 + - col0 * ( col1 ) AS col1 FROM tab1 cor0
----
-1032
-632
-70
query I rowsort
SELECT cor0.col2 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT DISTINCT + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col1 - + ( col1 ) col0 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT DISTINCT + 28 * - cor0.col1 + 85 AS col1 FROM tab1 cor0
----
-195
-279
-643
query I rowsort
SELECT - + col0 + - ( col0 ) * - cor0.col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT + col0 * ( - 26 ) - + col0 AS col1 FROM tab2 cor0
----
-189
-2106
-2133
query I rowsort
SELECT - col0 + + ( col1 ) FROM tab2 AS cor0
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5172
SELECT - CAST( + ( col1 ) AS SIGNED ) * col1 FROM tab2 cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-5172
SELECT - CAST ( + ( col1 ) AS INTEGER ) * col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + ( col2 ) * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col1 * - cor0.col1 + col1 AS col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - ( - ( - cor0.col2 ) ) AS col1 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT + 29 AS col0 FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT + - 54 + - col1 FROM tab1 AS cor0
----
-64
-67
-80
query I rowsort
SELECT ALL ( - 88 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to eb8cbefa7d831e1a0183e919e2caef32
query I rowsort
SELECT ALL + + ( cor0.col2 ) + 74 * + 61 FROM tab2 AS cor0
----
4540
4541
4552
query I rowsort
SELECT col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT DISTINCT 34 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5181
SELECT DISTINCT 34 / + col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + 8 AS col2 FROM tab1
----
8
8
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL 81 AS col2 FROM tab1
----
81
81
81
query I rowsort
SELECT - col2 * + 46 FROM tab1 AS cor0
----
-2484
-2622
-4416
onlyif mysql # use DIV operator for integer division
query I rowsort label-5186
SELECT + col1 DIV 14 AS col2 FROM tab0 cor0
----
6
6
6
skipif mysql # not compatible
query I rowsort label-5186
SELECT + col1 / 14 AS col2 FROM tab0 cor0
----
6
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5187
SELECT + cor0.col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5187
SELECT + cor0.col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT CAST( NULL AS DECIMAL ) * 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5188
SELECT CAST ( NULL AS REAL ) * 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL - col1 * - col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT + col2 * - tab1.col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL - 55 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to b90e74bece5521b514096c5b6e105fde
query I rowsort
SELECT ALL + col2 * - col2 * - col1 AS col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ( + cor0.col1 + tab1.col2 ) * 51 FROM tab1, tab0 AS cor0
----
9 values hashing to 5015da6a1e5fc65ea265808fb25c2619
query I rowsort
SELECT + + cor0.col1 * col1 + col2 AS col0 FROM tab1 AS cor0
----
157
265
730
query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
-54
-57
-96
query I rowsort
SELECT - col2 * - tab0.col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col1 * - ( + col2 ) * + ( + 5 ) FROM tab2 AS cor0
----
3230
4185
7670
query I rowsort
SELECT - 33 * 88 AS col0 FROM tab0 AS cor0
----
-2904
-2904
-2904
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5199
SELECT ALL - - CAST( 72 AS SIGNED ) * col0 FROM tab0 AS cor0
----
1728
2520
6408
skipif mysql # not compatible
query I rowsort label-5199
SELECT ALL - - CAST ( 72 AS INTEGER ) * col0 FROM tab0 AS cor0
----
1728
2520
6408
query I rowsort
SELECT DISTINCT + - col0 * - 35 AS col2 FROM tab0 AS cor0
----
1225
3115
840
query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 18f45a7edd86e3eccc832dcdb6123662
query I rowsort
SELECT DISTINCT 62 AS col2 FROM tab0 AS cor0
----
62
query I rowsort
SELECT + 22 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( col2 ) col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 51 + + col2 + col0 AS col1 FROM tab2
----
155
168
85
query I rowsort
SELECT ALL ( 69 ) + + col1 * 29 FROM tab2
----
1780
562
968
query I rowsort
SELECT 85 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT 51 - 16 FROM tab1
----
35
35
35
query I rowsort
SELECT DISTINCT ( 56 ) + col0 + + ( col1 ) * - col1 AS col2 FROM tab1
----
-33
-617
20
query I rowsort
SELECT 34 FROM tab0, tab2 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 2566f3fa788816c8bfc482e730aaed74
query I rowsort
SELECT - - ( - col2 ) * 63 + - 38 AS col0 FROM tab0 AS cor0
----
-101
-2117
-5204
query I rowsort
SELECT - + col1 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col1 + ( col0 * col0 ) FROM tab0 AS cor0
----
1322
662
8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col0 col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col2 + 30 AS col1 FROM tab1 AS cor0
----
126
84
87
query I rowsort
SELECT DISTINCT col0 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - + col1 - ( - 39 ) * - col1 AS col0 FROM tab0 AS cor0
----
-3440
-3640
-3880
query I rowsort
SELECT + 86 * - col2 AS col1 FROM tab0
----
-2838
-7052
-86
query I rowsort
SELECT ALL - col2 + + cor0.col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT + + col0 + + 25 * 74 AS col1 FROM tab1 AS cor0
----
1853
1914
1930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( + col2 ) col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - - col0 * - col2 * + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1354
-158243
-237175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT - col1 * CAST( - ( + col0 ) AS SIGNED ) + CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
1210
1482
2288
skipif mysql # not compatible
query I rowsort label-5224
SELECT - col1 * CAST ( - ( + col0 ) AS INTEGER ) + CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
1210
1482
2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-5225
SELECT DISTINCT 62 DIV cor0.col2 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT 62 / cor0.col2 FROM tab1 AS cor0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * col0 + - cor0.col2 col1 FROM tab0 AS cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5227
SELECT DISTINCT + 23 DIV - col2 AS col1 FROM tab0 AS cor0
----
-23
0
skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT + 23 / - col2 AS col1 FROM tab0 AS cor0
----
-23
0
query I rowsort
SELECT + + 76 + col1 FROM tab2 AS cor0
----
107
135
93
query I rowsort
SELECT ALL - col1 * - col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + col1 * col0 + - ( - col2 ) * col0 * col2 + cor0.col1 FROM tab1 AS cor0
----
208586
738333
8852
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col1 col0 FROM tab0 AS cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * + col2 col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2
----
13122 values hashing to bfee3a05bb3a8495e034c396d4c6eaab
query I rowsort
SELECT ALL - + ( col1 ) * 40 FROM tab0 AS cor0
----
-3440
-3640
-3880
query I rowsort
SELECT cor0.col0 * cor0.col1 * 32 FROM tab1 AS cor0
----
20480
2496
33280
query I rowsort
SELECT DISTINCT col2 + col0 * - col0 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT + col1 - col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col1 * + col0 + col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - col2 + - col1 + 16 FROM tab1
----
-51
-64
-93
query I rowsort
SELECT - col0 * col1 * - ( + 35 ) + + tab1.col2 - 10 AS col1 FROM tab1
----
22447
2774
36486
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 66 col0 FROM tab1 AS cor0
----
-3564
-3762
-6336
query I rowsort
SELECT + col2 * cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + tab0.col0 + tab0.col1 AS col1 FROM tab0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col1 col2 FROM tab1
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5245
SELECT DISTINCT tab1.col0 + + tab1.col2 DIV + ( 64 ) AS col2 FROM tab1
----
3
64
81
skipif mysql # not compatible
query I rowsort label-5245
SELECT DISTINCT tab1.col0 + + tab1.col2 / + ( 64 ) AS col2 FROM tab1
----
3
64
81
query I rowsort
SELECT ALL col2 * tab0.col1 + col1 * + tab0.col0 FROM tab0
----
15561
3492
4902
query I rowsort
SELECT col0 + col2 * + col1 + col1 FROM tab1
----
1341
1433
644
query I rowsort
SELECT ALL col0 + - cor0.col0 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + - cor0.col2 * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - + col0 + col1 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col0 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col2 * + col0 + col2 * - 43 AS col2 FROM tab0 cor0
----
-10824
-2211
-78
query I rowsort
SELECT DISTINCT - - 10 * 25 + col0 * ( + cor0.col0 + col1 ) FROM tab1 AS cor0
----
337
4986
7690
query I rowsort
SELECT ALL - - col2 + + cor0.col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT 48 * + cor0.col0 AS col2 FROM tab0 AS cor0
----
1152
1680
4272
query I rowsort
SELECT DISTINCT + ( col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5257
SELECT ALL CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5257
SELECT ALL CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5258
SELECT ALL CAST( cor0.col1 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL CAST ( cor0.col1 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( + cor0.col0 ) + col0 * + ( + col1 + - cor0.col1 ) * + ( col2 ) AS col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - ( col1 ) + + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 48 col2 FROM tab0 AS cor0
----
-48
query I rowsort
SELECT ALL - col0 * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col0 * - col2 * - col2 FROM tab1
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5264
SELECT tab1.col1 + CAST( col0 AS SIGNED ) AS col1 FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5264
SELECT tab1.col1 + CAST ( col0 AS INTEGER ) AS col1 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5265
SELECT ALL - CAST( col0 * col2 AS SIGNED ) + - CAST( col2 AS SIGNED ) + tab1.col2 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL - CAST ( col0 * col2 AS INTEGER ) + - CAST ( col2 AS INTEGER ) + tab1.col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL 60 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT DISTINCT + + 17 AS col0 FROM tab0 AS cor0
----
17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5268
SELECT DISTINCT CAST( + ( cor0.col1 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT CAST ( + ( cor0.col1 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 92 - col0 col1 FROM tab1 AS cor0
----
-36
-68
86
query I rowsort
SELECT + - ( + col1 ) * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - + col2 + 58 * - col0 AS col1 FROM tab2 cor0
----
-433
-4550
-4620
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + 54 col0 FROM tab1 AS cor0
----
-118
-134
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 12 + - 37 * - col2 col0 FROM tab0 AS cor0
----
1233
3046
49
query I rowsort
SELECT DISTINCT - 76 FROM tab1 cor0
----
-76
query I rowsort
SELECT - cor0.col2 * col2 + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-1208
-6897
-99
query I rowsort
SELECT ALL - 37 AS col1 FROM tab2
----
-37
-37
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 col0 FROM tab0
----
81
query I rowsort
SELECT 73 + col2 FROM tab0 AS cor0
----
106
155
74
query I rowsort
SELECT 9 + + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to a3f05c067495eccbe59a4e225a02b58b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT DISTINCT ( + ( col2 ) ) DIV + 2 AS col2 FROM tab1
----
27
28
48
skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT ( + ( col2 ) ) / + 2 AS col2 FROM tab1
----
27
28
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-5281
SELECT - 35 DIV - col2 AS col0 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5281
SELECT - 35 / - col2 AS col0 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT 95 * + col2 + 46 + col1 AS col1 FROM tab1 AS cor0
----
5202
5471
9179
query I rowsort
SELECT - col0 * + cor0.col1 + ( + col1 ) FROM tab0 AS cor0
----
-1978
-3298
-8008
onlyif mysql # use DIV operator for integer division
query I rowsort label-5284
SELECT DISTINCT 43 DIV col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT 43 / col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort
SELECT col1 + col2 - + CAST ( col2 AS REAL ) * col1 FROM tab2 AS cor0
----
-1449
-591
-779
query I rowsort
SELECT - + col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + col0 - + cor0.col0 * - 7 col2 FROM tab0 AS cor0
----
168
245
623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - 79 AS col2 FROM tab2 cor0
----
-79
-79
-79
query I rowsort
SELECT ALL + col1 * - col0 * 87 FROM tab2 AS cor0
----
-116841
-18879
-400374
onlyif mysql # use DIV operator for integer division
query I rowsort label-5291
SELECT + 70 DIV col2 AS col2 FROM tab0 AS cor0
----
0
2
70
skipif mysql # not compatible
query I rowsort label-5291
SELECT + 70 / col2 AS col2 FROM tab0 AS cor0
----
0
2
70
query I rowsort
SELECT ALL + cor2.col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
query I rowsort
SELECT DISTINCT 24 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 * 84 col0 FROM tab0, tab2 cor0
----
9 values hashing to 676783d444b187b9054342665d9c4c34
query I rowsort
SELECT ALL + 89 FROM tab1, tab1 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT col0 * + cor0.col0 + - 86 AS col0 FROM tab0 AS cor0
----
1139
490
7835
onlyif mysql # use DIV operator for integer division
query I rowsort label-5297
SELECT DISTINCT + - cor0.col1 + ( col0 ) DIV col0 col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT + - cor0.col1 + ( col0 ) / col0 col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT ALL - + cor0.col0 * 33 * col0 - + col0 AS col2 FROM tab1 AS cor0
----
-135232
-211280
-300
onlyif mysql # use DIV operator for integer division
query I rowsort label-5299
SELECT DISTINCT - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5299
SELECT DISTINCT - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5300
SELECT ALL col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5300
SELECT ALL col2 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 61 col0 FROM tab1 AS cor0
----
115
118
157
query I rowsort
SELECT ALL - col0 * 40 FROM tab0 AS cor0
----
-1400
-3560
-960
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 - 94 AS col0 FROM tab2 AS cor0
----
-1538
-770
-823
onlyif mysql # use DIV operator for integer division
query I rowsort label-5304
SELECT ALL + - col0 DIV - ( col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL + - col0 / - ( col2 ) AS col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT + col1 + + col2 * + col1 * col0 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT ALL - + col2 + + ( + 52 ) FROM tab2 cor0
----
14
25
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5307
SELECT ALL - col1 DIV + 91 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5307
SELECT ALL - col1 / + 91 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT + col0 * col1 + + 69 AS col1 FROM tab1 cor0
----
1109
147
709
query I rowsort
SELECT + + col2 * + cor0.col1 * - col1 AS col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL cor0.col0 + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT 98 FROM tab1, tab2 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT + 7 * col1 + - col2 FROM tab0 cor0
----
555
569
678
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT - cor0.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT + - ( + col2 ) + - col0 * + 31 FROM tab2 cor0
----
-244
-2444
-2487
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * - col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT col1 + - col2 * col1 + col2 FROM tab0
----
-2719
-7289
1
query I rowsort
SELECT tab0.col0 * ( ( tab0.col0 ) * - 12 ) FROM tab0
----
-14700
-6912
-95052
query I rowsort
SELECT - cor0.col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT tab2.col1 + + ( + col1 ) FROM tab2
----
118
34
62
query I rowsort
SELECT ( 12 * col1 ) - - col0 AS col2 FROM tab0
----
1056
1181
1199
query I rowsort
SELECT - 72 FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT col0 * - 80 + - col0 AS col2 FROM tab1 cor0
----
-243
-5184
-6480
query I rowsort
SELECT DISTINCT - - 96 FROM tab1 AS cor0
----
96
query I rowsort
SELECT ALL + col2 * ( - col0 * col0 ) AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL + ( 63 ) * - col0 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT DISTINCT col0 + col2 * - cor0.col2 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-5329
SELECT + 41 + 65 DIV col1 col2 FROM tab1 cor0
----
43
46
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5329
SELECT + 41 + 65 / col1 col2 FROM tab1 cor0
----
43
46
47
query I rowsort
SELECT DISTINCT + 51 * - ( col1 ) FROM tab1 AS cor0
----
-1326
-510
-663
query I rowsort
SELECT - cor0.col1 + 37 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-25
1159
3032
query I rowsort
SELECT - 35 + + col1 FROM tab1 AS cor0
----
-22
-25
-9
query I rowsort
SELECT - + col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col1 col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT - ( - cor0.col2 ) + + cor0.col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b
query I rowsort
SELECT + - col2 * + col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col1 + cor0.col2 AS col0 FROM tab2 AS cor0
----
55
58
85
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 71 * cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4d1111acc6df6dc2dcb69f3857e0ac2d
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab1 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
onlyif mysql # use DIV operator for integer division
query I rowsort label-5342
SELECT - - col0 DIV + 85 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5342
SELECT - - col0 / + 85 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * + ( col1 * - col0 ) FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + + col0 * col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - col0 * - ( 5 ) FROM tab2 AS cor0
----
35
390
395
query I rowsort
SELECT + col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT + + col2 + + col1 + 12 AS col0 FROM tab2 AS cor0
----
67
70
97
query I rowsort
SELECT - - col0 * col1 - ( - col1 * - cor0.col0 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col2 - ( col2 ) AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + col0 * + cor0.col1 * col2 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5351
SELECT DISTINCT - - col0 + + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5351
SELECT DISTINCT - - col0 + + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 * ( col0 ) col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL - cor0.col2 + ( 85 ) FROM tab0 cor0
----
3
52
84
query I rowsort
SELECT col1 * 2 AS col1 FROM tab2 AS cor0
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5355
SELECT ALL - col2 / CAST( NULL AS SIGNED ) - + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL - col2 / CAST ( NULL AS INTEGER ) - + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + cor0.col0 * + 16 - - 66 AS col1 FROM tab2 AS cor0
----
-1182
-1198
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-5357
SELECT + col0 DIV col1 + col0 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-5357
SELECT + col0 / col1 + col0 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT ALL - col0 * + ( + col2 ) * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-5359
SELECT - col1 + + col0 DIV + 77 FROM tab2 AS cor0
----
-16
-31
-58
skipif mysql # not compatible
query I rowsort label-5359
SELECT - col1 + + col0 / + 77 FROM tab2 AS cor0
----
-16
-31
-58
query I rowsort
SELECT ALL col0 + - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT + col2 + col2 + - 16 FROM tab1 AS cor0
----
176
92
98
query I rowsort
SELECT DISTINCT col0 + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - + 86 + - 28 AS col0 FROM tab2 AS cor0
----
-114
-114
-114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - ( - 42 ) AS col1 FROM tab2 AS cor0
----
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab2, tab0 cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5367
SELECT ALL - col0 + col1 DIV cor0.col2 + col0 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-5367
SELECT ALL - col0 + col1 / cor0.col2 + col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT ALL + - ( - col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - 69 AS col0 FROM tab0, tab0 cor0, tab1, tab0 AS cor1
----
81 values hashing to b367033d2867a8ca951e3972e9b13154
query I rowsort
SELECT + col0 + 85 * - 31 + col1 AS col2 FROM tab0
----
-2455
-2503
-2525
query I rowsort
SELECT ALL + + ( + col2 ) * - col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT col0 + col2 * - 58 AS col0 FROM tab0 AS cor0
----
-1890
-23
-4667
query I rowsort
SELECT 16 * - col1 FROM tab0 AS cor0
----
-1376
-1456
-1552
query I rowsort
SELECT DISTINCT + - 34 * - col2 AS col1 FROM tab1 AS cor0
----
1836
1938
3264
query I rowsort
SELECT ALL + 29 + + tab0.col0 * col2 AS col0 FROM tab0
----
64
7327
821
query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab1, tab0 cor0, tab0 AS cor1
----
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5378
SELECT CAST( NULL AS SIGNED ) + cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5378
SELECT CAST ( NULL AS INTEGER ) + cor0.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 25 * col0 FROM tab1
----
1600
2000
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * col0 col0 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT tab1.col2 * - col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col0
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col1 FROM tab0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - col1 col0 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * + col2 AS col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col0 * col1 * - tab1.col1 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT - col2 * + col2 + col2 AS col1 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT + col0 * + tab2.col0 * + col1 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-5390
SELECT DISTINCT col0 * col0 DIV col1 + + col0 * + col2 * col1 FROM tab1 WHERE ( col0 ) BETWEEN - col0 AND col1
----
4212
skipif mysql # not compatible
query I rowsort label-5390
SELECT DISTINCT col0 * col0 / col1 + + col0 * + col2 * col1 FROM tab1 WHERE ( col0 ) BETWEEN - col0 AND col1
----
4212
query I rowsort
SELECT ALL + - col0 + - col2 * + col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - col2 * - col2 - col1 AS col1 FROM tab1 cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT - + col1 * - col1 + - col0 AS col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-60
query I rowsort
SELECT ALL - + ( + col1 ) * - 7 + - 87 * col2 FROM tab1 AS cor0
----
-4516
-4889
-8261
onlyif mysql # use DIV operator for integer division
query I rowsort label-5396
SELECT DISTINCT 68 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5396
SELECT DISTINCT 68 / + col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5397
SELECT 90 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5397
SELECT 90 / + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5398
SELECT DISTINCT col2 DIV col2 AS col2 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT col2 / col2 AS col2 FROM tab1
----
1
query I rowsort
SELECT - col1 * + col1 * - 15 + col2 * + col1 - ( col0 * col1 ) FROM tab1 AS cor0
----
11466
1430
2743
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col0 * col2 + cor0.col2 + - col0 FROM tab1 AS cor0
----
213
3641
7696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab2 cor0
----
26
27
38
query III rowsort
SELECT * FROM tab2 WHERE NOT col1 NOT IN ( - col2 )
----
query I rowsort
SELECT - col0 * - col1 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL - col1 * - cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT col2 - + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5408
SELECT DISTINCT col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT col1 / - col0 AS col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT DISTINCT col0 + col1 AS col2 FROM tab0 cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5410
SELECT ALL col2 DIV cor0.col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL col2 / cor0.col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT tab0.col2 * tab0.col0 AS col2 FROM tab0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + - col0 col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ALL tab0.col1 + + col2 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT - col1 + - col2 FROM tab0 WHERE - col2 <= col0 + + col0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + col2 * col0 + col0 * - col1 FROM tab0
----
-1272
-3360
-801
query III rowsort
SELECT * FROM tab1 WHERE + col1 IN ( - col2 + tab1.col2 )
----
query I rowsort
SELECT DISTINCT col2 + col2 * + tab2.col1 AS col2 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-5418
SELECT - col2 + + col0 DIV - col0 AS col2 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-5418
SELECT - col2 + + col0 / - col0 AS col2 FROM tab1
----
-55
-58
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab0 WHERE NOT ( col1 ) BETWEEN NULL AND col0 / + col2 + - col0
----
24
35
89
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0 * + col1 )
----
query I rowsort
SELECT DISTINCT - col2 * col1 + + col0 AS col1 FROM tab1
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 * col1 + + col1 col1 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT ALL tab1.col0 + - col1 * col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT col1 + col1 FROM tab1 WHERE NOT col1 NOT IN ( - col1 + col1 - - col2 * col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NULL NOT IN ( - col1 * col2 + + col2 * + col0 )
----
query III rowsort
SELECT * FROM tab1 WHERE col0 >= col0
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + - ( - col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - 77 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT + + col2 * 31 FROM tab1 cor0
----
1674
1767
2976
query I rowsort
SELECT col1 * 72 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT + col2 + - 84 AS col0 FROM tab0 AS cor0
----
-2
-51
-83
query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5433
SELECT - 25 * col0 + CAST( + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-148
-1924
-1937
skipif mysql # not compatible
query I rowsort label-5433
SELECT - 25 * col0 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-148
-1924
-1937
query I rowsort
SELECT DISTINCT - col1 * - col1 + + ( - col2 ) AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT + 68 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col1 FROM tab1
----
98
98
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5437
SELECT + col2 DIV 54 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5437
SELECT + col2 / 54 FROM tab1 cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5438
SELECT col0 * + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-5438
SELECT col0 * + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5439
SELECT + ( - col2 ) + col0 DIV - 44 FROM tab1
----
-54
-58
-97
skipif mysql # not compatible
query I rowsort label-5439
SELECT + ( - col2 ) + col0 / - 44 FROM tab1
----
-54
-58
-97
query I rowsort
SELECT DISTINCT - 95 + col2 FROM tab1
----
-38
-41
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT + + col1 + + ( col2 + - col2 ) * + col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5441
SELECT + + col1 + + ( col2 + - col2 ) * + col1 / + col0 AS col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT cor0.col0 DIV + col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5442
SELECT cor0.col0 / + col2 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5443
SELECT + + col0 + - cor0.col0 DIV + col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5443
SELECT + + col0 + - cor0.col0 / + col1 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + 68 AS col0 FROM tab0
----
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5445
SELECT - 19 DIV + col2 + - ( col1 ) + col0 AS col1 FROM tab1
----
-23
54
67
skipif mysql # not compatible
query I rowsort label-5445
SELECT - 19 / + col2 + - ( col1 ) + col0 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL + col2 + tab0.col1 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT - col2 + + col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT tab0.col2 + + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT + 78 FROM tab1
----
78
query I rowsort
SELECT - col0 + + col1 * 24 AS col0 FROM tab0 AS cor0
----
2040
2095
2293
query I rowsort
SELECT - - col0 + - 0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + - cor0.col2 + + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5454
SELECT + col1 + - col1 DIV 33 - cor0.col2 col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5454
SELECT + col1 + - col1 / 33 - cor0.col2 col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col1 col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + 91 + + col1 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT DISTINCT + col1 * - cor0.col0 * + col2 + col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT ALL + - ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ( + col2 ) * tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + - ( - col2 ) * ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL - 67 FROM tab0 cor0
----
-67
-67
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + + ( + col2 ) * cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5464
SELECT ALL + CAST( + ( + tab2.col1 ) + col1 AS SIGNED ) * col2 FROM tab2
----
1292
1674
3068
skipif mysql # not compatible
query I rowsort label-5464
SELECT ALL + CAST ( + ( + tab2.col1 ) + col1 AS INTEGER ) * col2 FROM tab2
----
1292
1674
3068
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 + - cor0.col2 col0 FROM tab2, tab0 AS cor0
----
-43
38
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5466
SELECT 39 DIV + col0 AS col0 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-5466
SELECT 39 / + col0 AS col0 FROM tab0
----
0
1
1
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
17
31
59
query I rowsort
SELECT ALL col1 + + col2 + 14 AS col1 FROM tab0
----
112
133
187
query I rowsort
SELECT DISTINCT + col2 * + col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - ( col1 ) * - col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - + col0 * - col0 + 86 FROM tab1 AS cor0
----
4182
6486
95
query I rowsort
SELECT - - col0 + cor0.col1 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col1 col2 FROM tab1 cor0
----
-29
-74
-93
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2, tab2 cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to b2cff03af5bc7306c5e3322cc78563c1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - + 25 * 20 FROM tab1 cor0
----
-500
-500
-500
query I rowsort
SELECT - + 48 AS col0 FROM tab0, tab2, tab1 cor0, tab1
----
81 values hashing to 70b0cff913cec85654af0aaf3f5f6d85
query I rowsort
SELECT ALL 60 + + tab0.col0 - - col1 FROM tab0
----
170
192
240
query I rowsort
SELECT ALL 74 - 16 * + tab0.col2 FROM tab0
----
-1238
-454
58
query I rowsort
SELECT + cor0.col1 * 20 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 05340ce9d0797daa96ed24c09a3e4f79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 3 * - 41 + col1 col0 FROM tab0 AS cor0
----
-26
-32
-37
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 55 AS REAL ) FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT - col1 * 57 AS col1 FROM tab1 cor0
----
-1482
-570
-741
query I rowsort
SELECT ( 66 * col0 ) - + 96 FROM tab2
----
366
5052
5118
query I rowsort
SELECT DISTINCT - col1 * - col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + 15 * col2 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT DISTINCT + - cor0.col2 + cor0.col0 + col0 FROM tab2 AS cor0
----
-13
120
130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col1 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5491
SELECT ALL - - col2 DIV col0 - + col0 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-791
skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - - col2 / col0 - + col0 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-791
query I rowsort
SELECT - ( 93 ) * col2 + col2 FROM tab2 cor0
----
-2392
-2484
-3496
query I rowsort
SELECT ALL - col2 + + 25 + + cor0.col2 FROM tab1 cor0
----
25
25
25
query I rowsort
SELECT ALL + - col1 + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 12 + col0 FROM tab2 AS cor0
----
19
90
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-5496
SELECT DISTINCT + cor0.col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5496
SELECT DISTINCT + cor0.col0 / + col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT DISTINCT + - 91 - col0 AS col1 FROM tab0 AS cor0
----
-115
-126
-180
query I rowsort
SELECT + + 14 * col2 FROM tab1 AS cor0
----
1344
756
798
query I rowsort
SELECT ALL + + col0 * - col0 + + 58 AS col1 FROM tab1 AS cor0
----
-4038
-6342
49
query I rowsort
SELECT - 52 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-1248
-1820
-4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-5501
SELECT DISTINCT - - 19 DIV col2 + col2 + + 93 FROM tab0 cor0
----
113
126
175
skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT - - 19 / col2 + col2 + + 93 FROM tab0 cor0
----
113
126
175
query I rowsort
SELECT + 27 + - col2 AS col1 FROM tab1 AS cor0
----
-27
-30
-69
query I rowsort
SELECT ALL + col2 + ( - col1 ) * - col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + - col2 + col1 * + col1 AS col0 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT - - col2 + + cor0.col2 * + 69 AS col2 FROM tab1 AS cor0
----
3780
3990
6720
query I rowsort
SELECT col1 + + ( + col0 ) AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - col0 * ( - col2 ) + - col2 AS col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT col0 * - tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT ALL - + col2 * col0 + - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5510
SELECT DISTINCT cor0.col2 DIV + 80 + col2 FROM tab1 AS cor0
----
54
57
97
skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT cor0.col2 / + 80 + col2 FROM tab1 AS cor0
----
54
57
97
query I rowsort
SELECT DISTINCT col2 - - col0 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - ( - col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + - ( - 7 ) * - col0 FROM tab2 AS cor0
----
-49
-546
-553
query I rowsort
SELECT DISTINCT col1 + col1 * + cor0.col2 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-5515
SELECT DISTINCT + - 80 + - ( + col1 ) DIV CAST( col2 AS SIGNED ) + col1 * col2 * cor0.col0 col2 FROM tab1 AS cor0
----
36400
4132
99760
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT + - 80 + - ( + col1 ) / CAST ( col2 AS INTEGER ) + col1 * col2 * cor0.col0 col2 FROM tab1 AS cor0
----
36400
4132
99760
query I rowsort
SELECT ALL - 31 + - col2 FROM tab2 AS cor0
----
-57
-58
-69
query I rowsort
SELECT col0 - col0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 + + 40 FROM tab2
----
57
71
99
query I rowsort
SELECT DISTINCT col2 * - col0 + col1 AS col2 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT ALL col2 + 56 AS col0 FROM tab2
----
82
83
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col0 * - 85 + col0 * - tab1.col0 col2 FROM tab1
----
-13200
-264
-9536
query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT ALL + 15 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT - + col1 + - ( 6 ) * + col0 FROM tab1 AS cor0
----
-394
-44
-493
query I rowsort
SELECT ALL - ( + col1 ) AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to a5b6acb471910ea4ad7f31cae3b818f7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5527
SELECT ( col2 ) DIV + ( + ( col1 ) ) + 36 FROM tab0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-5527
SELECT ( col2 ) / + ( + ( col1 ) ) + 36 FROM tab0
----
36
36
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-5528
SELECT DISTINCT - col0 DIV + col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT - col0 / + col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT - col2 * 65 FROM tab2
----
-1690
-1755
-2470
query I rowsort
SELECT DISTINCT + - col2 + + col2 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col1 * + col0 AS col0 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + tab1.col0 col2 FROM tab1
----
128
160
6
query I rowsort
SELECT DISTINCT - - col2 * - 10 FROM tab0 AS cor0
----
-10
-330
-820
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5534
SELECT - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5534
SELECT - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + ( - col0 ) * + col2 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + cor0.col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + tab2.col2 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 7 AS col1 FROM tab1
----
7
7
7
query I rowsort
SELECT ALL 89 AS col1 FROM tab1 cor0
----
89
89
89
query I rowsort
SELECT - + 13 + col0 AS col2 FROM tab0 AS cor0
----
11
22
76
query I rowsort
SELECT DISTINCT - 64 + col2 AS col2 FROM tab2 AS cor0
----
-26
-37
-38
query I rowsort
SELECT DISTINCT + col1 + + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col1 * + col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - 52 + col0 - cor0.col2 * col2 FROM tab1 AS cor0
----
-2965
-3237
-9188
query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - ( col1 ) + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 85 FROM tab2 cor0
----
85
85
85
query I rowsort
SELECT DISTINCT - + 20 * - col1 + + 86 AS col2 FROM tab0 AS cor0
----
1806
1906
2026
query I rowsort
SELECT DISTINCT 7 * - col1 AS col2 FROM tab0 AS cor0
----
-602
-637
-679
query I rowsort
SELECT - + ( col2 ) * cor0.col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL 6 * col0 + - col2 FROM tab2 AS cor0
----
15
436
442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - cor0.col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 8 * + col1 FROM tab2 cor0
----
-136
-248
-472
query I rowsort
SELECT ( tab1.col2 ) * - col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col2 * + col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + tab1.col2 * + col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + tab0.col0 * - tab0.col1 FROM tab0, tab1 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col1 * - col0 + - col2 AS col2 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT - col1 + col1 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + col0 + - 41 AS col2 FROM tab0 AS cor0
----
-17
-6
48
query I rowsort
SELECT 54 + col2 + col2 FROM tab2 AS cor0
----
106
108
130
query I rowsort
SELECT ( - col0 ) * col0 + + col1 + + col1 FROM tab1 cor0
----
-4076
-6374
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT 60 + ( + col2 ) DIV ( + col0 ) + col2 FROM tab2 AS cor0
----
86
90
98
skipif mysql # not compatible
query I rowsort label-5565
SELECT 60 + ( + col2 ) / ( + col0 ) + col2 FROM tab2 AS cor0
----
86
90
98
query I rowsort
SELECT DISTINCT ( 18 ) * col1 FROM tab2 AS cor0
----
1062
306
558
query I rowsort
SELECT ALL + + 22 + + 33 * col0 * + col0 AS col2 FROM tab1 AS cor0
----
135190
211222
319
query I rowsort
SELECT DISTINCT col0 + - 75 AS col2 FROM tab1 AS cor0
----
-11
-72
5
query I rowsort
SELECT + 15 + + 22 - - col0 * 55 FROM tab1 cor0
----
202
3557
4437
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 col0 FROM tab0
----
2805
7380
96
query I rowsort
SELECT col2 + 63 FROM tab0
----
145
64
96
query I rowsort
SELECT + ( 35 ) * - col2 FROM tab1 AS cor0
----
-1890
-1995
-3360
query I rowsort
SELECT ( - cor0.col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL tab2.col0 - col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab1 cor0
----
38
query I rowsort
SELECT DISTINCT + col1 * 90 AS col0 FROM tab1 AS cor0
----
1170
2340
900
onlyif mysql # use DIV operator for integer division
query I rowsort label-5577
SELECT ALL cor0.col2 DIV - 61 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL cor0.col2 / - 61 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT - 35 + - col2 FROM tab2 AS cor0
----
-61
-62
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5579
SELECT + - CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5579
SELECT + - CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT col0 DIV - 60 AS col2 FROM tab1
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-5580
SELECT col0 / - 60 AS col2 FROM tab1
----
-1
-1
0
query I rowsort
SELECT ALL 15 + cor1.col1 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to fd3fee578828a482d5cd14e7a5c91f44
query I rowsort
SELECT DISTINCT + col1 + - ( col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col1 + ( - cor0.col2 ) * - col2 - - 33 AS col1 FROM tab2 AS cor0
----
1494
768
793
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5586
SELECT DISTINCT + col1 / + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT + col1 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 58 col1 FROM tab1 AS cor0
----
-3132
-3306
-5568
query I rowsort
SELECT col2 * + 51 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT ALL + + col2 * - col0 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL + 23 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
1978
2093
2231
query I rowsort
SELECT + 33 * ( - col2 ) + col0 * + col2 FROM tab1 AS cor0
----
-1620
1767
4512
query I rowsort
SELECT DISTINCT - col0 * + ( + col1 ) FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5593
SELECT ALL - col2 DIV - 52 + + col1 FROM tab0 AS cor0
----
86
92
97
skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL - col2 / - 52 + + col1 FROM tab0 AS cor0
----
86
92
97
query I rowsort
SELECT DISTINCT + - col2 + col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT ALL + 72 * 71 + col0 AS col1 FROM tab1 AS cor0
----
5115
5176
5192
query I rowsort
SELECT DISTINCT - - col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + cor0.col1 + 10 FROM tab0 cor0
----
101
107
96
query I rowsort
SELECT DISTINCT + col0 * + 5 * - col0 FROM tab2
----
-245
-30420
-31205
onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT DISTINCT + col0 + col0 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT + col0 + col0 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL - col0 * col2 * col2 AS col2 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - - 1 * - col2 + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ( col1 ) + + col0 AS col2 FROM tab2 cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col0 col1 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + cor0.col2 col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + + col0 * + col2 * col1 + ( + 19 ) AS col1 FROM tab0 cor0
----
3414
664137
68131
onlyif mysql # use DIV operator for integer division
query I rowsort label-5606
SELECT col1 DIV col0 AS col2 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5606
SELECT col1 / col0 AS col2 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * - col1 col0 FROM tab2 cor0
----
-1534
-646
-837
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 + - col2 * - col2 + col1 * - 75 * col1 FROM tab0 AS cor0
----
-553611
-614351
-705674
onlyif mysql # use DIV operator for integer division
query I rowsort label-5610
SELECT ALL col1 DIV + col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5610
SELECT ALL col1 / + col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL + cor0.col0 * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT - - cor0.col0 * cor0.col0 * - col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 * - col0 col2 FROM tab2 AS cor0
----
-420
-4680
-4740
query I rowsort
SELECT 29 * col1 * cor0.col0 FROM tab0 AS cor0
----
234871
59856
98455
query I rowsort
SELECT DISTINCT - + 50 AS col0 FROM tab2, tab0, tab1 AS cor0
----
-50
query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab2, tab1 AS cor0
----
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT DISTINCT - cor0.col0 * - col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5619
SELECT DISTINCT col0 DIV + col2 AS col2 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT col0 / + col2 AS col2 FROM tab1
----
0
1
query I rowsort
SELECT col0 * - col2 + 65 AS col1 FROM tab2 AS cor0
----
-124
-1963
-2937
query I rowsort
SELECT col0 * - tab0.col1 * 53 + + col0 FROM tab0
----
-109368
-179900
-429158
query I rowsort
SELECT DISTINCT tab2.col2 + + col1 * - 87 + ( - col1 + - 31 ) * + 89 AS col2 FROM tab2
----
-13117
-5713
-8188
query I rowsort
SELECT - cor0.col2 + - col0 + - col1 FROM tab1 AS cor0
----
-131
-189
-83
query I rowsort
SELECT DISTINCT - cor0.col0 + + 61 AS col2 FROM tab1 AS cor0
----
-19
-3
58
query I rowsort
SELECT DISTINCT - col0 * - ( - col0 ) * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT col1 + 47 + - ( + col2 + + col1 ) * col0 * - col0 AS col0 FROM tab1 AS cor0
----
274489
697660
793
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5627
SELECT ALL 27 * - col2 + + CAST( col1 AS SIGNED ) FROM tab0
----
-2123
-805
70
skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL 27 * - col2 + + CAST ( col1 AS INTEGER ) FROM tab0
----
-2123
-805
70
query I rowsort
SELECT - 37 + col2 FROM tab1
----
17
20
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-5629
SELECT ALL + ( col1 ) + 3 DIV col1 AS col2 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL + ( col1 ) + 3 / col1 AS col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * + tab2.col1 + + ( 73 ) col0 FROM tab2, tab0, tab1 AS cor0
----
1705
3049
5737
query I rowsort
SELECT + ( col2 ) * 73 - tab2.col2 AS col0 FROM tab2
----
1872
1944
2736
query I rowsort
SELECT 74 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
query I rowsort
SELECT - 86 - + col0 AS col0 FROM tab2
----
-164
-165
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5634
SELECT DISTINCT + 49 / - col2 + CAST( NULL AS SIGNED ) / 68 col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5634
SELECT DISTINCT + 49 / - col2 + CAST ( NULL AS INTEGER ) / 68 col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * 76 FROM tab0
----
-1824
-2660
-6764
query I rowsort
SELECT DISTINCT + + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 + 50 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT + col0 + + cor0.col2 FROM tab0 cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5639
SELECT ALL col2 + - CAST( + col1 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort label-5639
SELECT ALL col2 + - CAST ( + col1 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT - col0 * 21 + col2 * col2 FROM tab1 AS cor0
----
1905
2853
7536
onlyif mysql # use DIV operator for integer division
query I rowsort label-5641
SELECT ALL col1 * - col1 + - col2 - col0 DIV + 27 AS col0 FROM tab2 cor0
----
-329
-3509
-988
skipif mysql # not compatible
query I rowsort label-5641
SELECT ALL col1 * - col1 + - col2 - col0 / + 27 AS col0 FROM tab2 cor0
----
-329
-3509
-988
query I rowsort
SELECT - 90 + tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 496bf2a6317b6d3f1a2b04ff7899c0ba
query I rowsort
SELECT ALL col2 + 91 FROM tab0
----
124
173
92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5644
SELECT 60 - - col1 * tab1.col2 * CAST( 41 AS SIGNED ) FROM tab1
----
23430
51228
57624
skipif mysql # not compatible
query I rowsort label-5644
SELECT 60 - - col1 * tab1.col2 * CAST ( 41 AS INTEGER ) FROM tab1
----
23430
51228
57624
query I rowsort
SELECT ( col0 ) * col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT + col1 + - 52 - col0 AS col1 FROM tab0
----
-50
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-5647
SELECT - + col2 DIV - 86 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5647
SELECT - + col2 / - 86 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + col2 - + col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT + ( ( - col1 ) ) + 4 FROM tab0 AS cor0
----
-82
-87
-93
query I rowsort
SELECT ALL + cor0.col1 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
110
182
702
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT - col1 - 63 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT + 23 + col1 AS col1 FROM tab1 AS cor0
----
33
36
49
query I rowsort
SELECT col0 + - col0 * - cor0.col0 FROM tab1 cor0
----
12
4160
6480
query I rowsort
SELECT - 11 AS col0 FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT DISTINCT + - 61 * - col1 AS col0 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT ALL - - 68 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT ALL - col1 + col2 * 48 AS col1 FROM tab2 AS cor0
----
1189
1265
1807
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab2 AS cor1, tab0 AS cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT ALL - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 18 FROM tab1 cor0
----
18
18
18
query I rowsort
SELECT ALL - 66 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1716
-1782
-2508
query I rowsort
SELECT DISTINCT + + 47 * + ( col0 + - 88 ) FROM tab2 AS cor0
----
-3807
-423
-470
query I rowsort
SELECT - + 14 * 33 + col1 AS col2 FROM tab1 AS cor0
----
-436
-449
-452
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col0 AS REAL ) * col1 / + col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT 57 * col2 AS col1 FROM tab2 AS cor0
----
1482
1539
2166
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) * + col2 + + ( - col1 ) col0 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col0 + - ( col2 + col0 * + col1 ) FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT 4 AS col1 FROM tab0 AS cor0
----
4
4
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5670
SELECT ALL CAST( NULL AS DECIMAL ) * cor0.col0 - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL CAST ( NULL AS REAL ) * cor0.col0 - cor0.col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 77 * col0 FROM tab0 cor0
----
1848
2695
6853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5672
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 * + col0 + col2 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
-604586
-62
-92862
query I rowsort
SELECT + - 14 + + col1 * + col0 FROM tab2 cor0
----
1329
203
4588
query I rowsort
SELECT ( - 20 ) FROM tab1, tab2 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb
query I rowsort
SELECT + col2 + + 58 * - 50 FROM tab0
----
-2818
-2867
-2899
query I rowsort
SELECT ( ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 7 AS col2 FROM tab0
----
7
7
7
query I rowsort
SELECT ALL 59 FROM tab1, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT + 68 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT - tab0.col1 - col2 * - 72 * col0 FROM tab0
----
2423
525365
56938
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
972 values hashing to 5e655b1287771868a8f868574a94d749
query I rowsort
SELECT ALL - col2 + - col2 * ( - col0 + + tab2.col2 ) AS col2 FROM tab2
----
-567
1326
1520
query I rowsort
SELECT ALL col2 + col0 * tab1.col0 + ( col0 ) AS col1 FROM tab1
----
4217
6576
66
query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab0, tab0 cor0
----
39
query I rowsort
SELECT ALL + col1 * 47 FROM tab2
----
1457
2773
799
query I rowsort
SELECT col2 * ( ( - col1 ) ) FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT tab2.col0 + - col0 AS col0 FROM tab2
----
0
query I rowsort
SELECT col0 + 92 AS col1 FROM tab0
----
116
127
181
query I rowsort
SELECT ALL - + col0 + col0 * 36 FROM tab0 AS cor0
----
1225
3115
840
query I rowsort
SELECT DISTINCT + col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + cor0.col2 + 96 FROM tab0 AS cor0
----
129
178
97
query I rowsort
SELECT ( ( + col1 ) ) + 58 FROM tab2 AS cor0
----
117
75
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-5694
SELECT ALL - col2 DIV col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5694
SELECT ALL - col2 / col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + 47 * tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to a9bdfe2d71fcc07ab42c13f23f877235
query I rowsort
SELECT + cor0.col0 + 32 FROM tab1 cor0
----
112
35
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5698
SELECT col2 DIV + col1 + + col2 - col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5698
SELECT col2 / + col1 + + col2 - col2 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT tab1.col1 * - 25 FROM tab1
----
-250
-325
-650
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to 2507aa9f48c3db94de9fec065edf3731
query I rowsort
SELECT ( col2 ) * col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL - 96 * col0 FROM tab1
----
-288
-6144
-7680
query I rowsort
SELECT + col0 + - col1 - - col2 * - col2 AS col1 FROM tab1
----
-2939
-3195
-9149
query I rowsort
SELECT col2 - - 79 * col0 FROM tab2
----
580
6188
6279
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab1 cor2
----
3645 values hashing to c0625992cd48bef51317edf43a55d9e4
query I rowsort
SELECT - cor0.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * cor0.col2 + + col1 col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT + ( col1 ) * - ( col0 * + col2 ) AS col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 + - col2 AS col2 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT col2 * - cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + + cor0.col2 - 2 AS col0 FROM tab1 AS cor0
----
52
55
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + ( - col0 ) * - cor0.col1 col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT - col0 * - 60 AS col2 FROM tab1 cor0
----
180
3840
4800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + 14 col1 FROM tab2 AS cor0
----
-17
-3
-45
query I rowsort
SELECT DISTINCT col2 * - tab2.col1 AS col1 FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 col0 FROM tab1
----
53
53
53
query I rowsort
SELECT - 43 + 87 * + col0 AS col0 FROM tab1
----
218
5525
6917
query I rowsort
SELECT DISTINCT + col0 * tab0.col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + ( tab2.col1 ) * col2 + col0 AS col0 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col0 + - col1 * - col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT - + col1 * + col0 + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + + 48 * col1 + col0 AS col2 FROM tab1 AS cor0
----
1251
544
704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * - col1 col1 FROM tab1 cor0
----
1846
710
923
onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT + + 88 * col0 DIV - col2 FROM tab0 AS cor0
----
-3080
-64
-95
skipif mysql # not compatible
query I rowsort label-5728
SELECT + + 88 * col0 / - col2 FROM tab0 AS cor0
----
-3080
-64
-95
query I rowsort
SELECT ALL + - 5 - + col0 FROM tab0 AS cor0
----
-29
-40
-94
query I rowsort
SELECT ALL + + 83 * - col0 AS col1 FROM tab2 AS cor0
----
-581
-6474
-6557
query I rowsort
SELECT DISTINCT col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab1 AS cor0
----
11
query I rowsort
SELECT ALL 80 AS col0 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT + - col0 + + 63 AS col1 FROM tab0 AS cor0
----
-26
28
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT + + col2 * col2 + col1 DIV - col1 col2 FROM tab0 AS cor0
----
0
1088
6723
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5735
SELECT + + col2 * col2 + col1 / - col1 col2 FROM tab0 AS cor0
----
0
1088
6723
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5736
SELECT ALL - cor0.col0 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL - cor0.col0 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5737
SELECT DISTINCT - col0 * col0 DIV col1 + col1 * col2 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
119471
50588
5851
skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT - col0 * col0 / col1 + col1 * col2 * + col0 + - col0 AS col2 FROM tab2 AS cor0
----
119471
50588
5851
onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT DISTINCT col1 * 39 + 40 DIV col0 FROM tab0 AS cor0
----
3355
3549
3784
skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT col1 * 39 + 40 / col0 FROM tab0 AS cor0
----
3355
3549
3784
query I rowsort
SELECT ALL - cor0.col1 - + col1 * + col0 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL + - cor0.col2 * 97 AS col2 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT - cor0.col2 * ( col0 ) + cor0.col1 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + - cor0.col0 + + cor0.col2 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - col0 * cor0.col1 - col0 FROM tab2 cor0
----
-1422
-224
-4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5744
SELECT - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5744
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5745
SELECT ALL - 46 * + col0 * col0 + + cor0.col0 DIV col2 AS col1 FROM tab0 cor0
----
-26496
-364365
-56315
skipif mysql # not compatible
query I rowsort label-5745
SELECT ALL - 46 * + col0 * col0 + + cor0.col0 / col2 AS col1 FROM tab0 cor0
----
-26496
-364365
-56315
query I rowsort
SELECT ALL col0 * + 37 + cor0.col0 AS col1 FROM tab2 cor0
----
266
2964
3002
query I rowsort
SELECT + tab0.col2 * - 35 * + tab0.col2 FROM tab0
----
-235340
-35
-38115
query I rowsort
SELECT tab1.col1 * ( col2 * - col2 + - col1 * + col2 ) FROM tab1
----
-112320
-136032
-38190
query I rowsort
SELECT - + col0 + - cor0.col1 * - col1 - col0 AS col2 FROM tab2 AS cor0
----
131
3325
947
query I rowsort
SELECT ALL + col2 * - col1 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 + - col2 * + col0 * + col1 FROM tab2 AS cor0
----
-119626
-50996
-5832
query I rowsort
SELECT DISTINCT + + col0 + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5753
SELECT DISTINCT + col1 DIV cor0.col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-5753
SELECT DISTINCT + col1 / cor0.col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL col1 - col2 FROM tab2
----
-21
33
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * tab1.col2 col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 * - col1 + col2 * tab2.col0 AS col2 FROM tab2
----
-1453
-772
2713
onlyif mysql # use DIV operator for integer division
query I rowsort label-5757
SELECT ALL + col2 DIV + tab2.col1 + col2 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + col2 / + tab2.col1 + col2 FROM tab2
----
26
27
40
query I rowsort
SELECT col1 + col2 + + col2 AS col0 FROM tab1
----
124
134
205
query I rowsort
SELECT - col1 * col0 + + col1 * cor0.col2 FROM tab2 AS cor0
----
-3068
-697
620
onlyif mysql # use DIV operator for integer division
query I rowsort label-5760
SELECT ALL - col2 DIV tab1.col2 - + col2 AS col1 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL - col2 / tab1.col2 - + col2 AS col1 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT DISTINCT - col2 * + col1 - + col2 AS col1 FROM tab0
----
-2871
-7544
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 - - tab2.col2 col2 FROM tab2
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT ALL col0 + + col1 + col1 DIV - col1 FROM tab2
----
136
37
95
skipif mysql # not compatible
query I rowsort label-5763
SELECT ALL col0 + + col1 + col1 / - col1 FROM tab2
----
136
37
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-5764
SELECT ALL col1 + + col0 DIV tab0.col0 AS col2 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL col1 + + col0 / tab0.col0 AS col2 FROM tab0
----
87
92
98
query I rowsort
SELECT DISTINCT + - col1 - col1 * + col1 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-5766
SELECT ALL - cor0.col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL - cor0.col0 / col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col1 + - col2 * - col0 * col0 AS col1 FROM tab1 AS cor0
----
233462
460
614387
query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) > NULL
----
query I rowsort
SELECT + col0 * col0 * + col0 + col0 FROM tab2
----
350
474630
493118
query I rowsort
SELECT - tab1.col2 - col1 * + col1 FROM tab1
----
-157
-265
-730
query I rowsort
SELECT - - col1 * col0 - col0 * - col0 AS col2 FROM tab2 AS cor0
----
10686
266
7584
query I rowsort
SELECT DISTINCT - col0 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT - cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + + cor0.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - 70 AS col0 FROM tab1
----
-70
query I rowsort
SELECT ALL - cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( ( - col2 - col1 ) = NULL ) AND NOT NULL >= ( col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5778
SELECT - tab1.col2 * col2 DIV - tab1.col1 AS col1 FROM tab1
----
112
324
708
skipif mysql # not compatible
query I rowsort label-5778
SELECT - tab1.col2 * col2 / - tab1.col1 AS col1 FROM tab1
----
112
324
708
query I rowsort
SELECT DISTINCT col2 + + col1 AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT + col2 + - col0 * - col1 - - col1 FROM tab1 AS cor0
----
1149
158
707
query I rowsort
SELECT DISTINCT - col2 + tab0.col2 AS col2 FROM tab0
----
0
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - col2 + + col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col1 + col2 - - col0 FROM tab1
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5785
SELECT DISTINCT + col0 + col0 DIV col0 AS col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT + col0 + col0 / col0 AS col0 FROM tab2
----
79
8
80
query I rowsort
SELECT col2 * - col0 + - col0 AS col2 FROM tab0
----
-70
-7387
-816
query I rowsort
SELECT - col2 + col1 * + cor0.col1 - col0 AS col1 FROM tab2 cor0
----
172
3377
927
query I rowsort
SELECT + col0 + col1 * col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-5789
SELECT ALL col0 + col2 + + col2 DIV col1 AS col2 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL col0 + col2 + + col2 / col1 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - cor0.col2 + col1 AS col1 FROM tab2 cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5791
SELECT + + col2 DIV col0 + col0 - + col2 FROM tab1 cor0
----
-15
-33
7
skipif mysql # not compatible
query I rowsort label-5791
SELECT + + col2 / col0 + col0 - + col2 FROM tab1 cor0
----
-15
-33
7
query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab0 AS cor0
----
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-5793
SELECT DISTINCT - cor0.col2 DIV - col1 + col2 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5793
SELECT DISTINCT - cor0.col2 / - col1 + col2 / cor0.col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col0 - - col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 55 * + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6be1b8c1696f971d9450ab3d191e63e7
query I rowsort
SELECT + ( + col2 ) * - 28 AS col1 FROM tab1
----
-1512
-1596
-2688
query I rowsort
SELECT + col2 + + col0 AS col2 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5799
SELECT + col0 * col1 + - col2 DIV col2 AS col1 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-5799
SELECT + col0 * col1 + - col2 / col2 AS col1 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT 68 + - col2 AS col2 FROM tab2 AS cor0
----
30
41
42
query I rowsort
SELECT 82 FROM tab1 cor0
----
82
82
82
query I rowsort
SELECT col1 * col0 - col0 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-5803
SELECT ALL - col0 + col0 DIV col0 + - 17 FROM tab1 cor0
----
-19
-80
-96
skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL - col0 + col0 / col0 + - 17 FROM tab1 cor0
----
-19
-80
-96
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 FROM tab2 AS cor0
----
-118
-34
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 * - col2 col1 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT DISTINCT - + ( - col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + 34 * + col0 FROM tab0 AS cor0
----
1190
3026
816
query I rowsort
SELECT DISTINCT + 92 FROM tab0 cor0
----
92
query I rowsort
SELECT ALL + 44 * + col2 + + col1 FROM tab0 AS cor0
----
141
1538
3699
query I rowsort
SELECT - - col1 * col2 + + col0 AS col2 FROM tab1 cor0
----
1328
1407
634
query I rowsort
SELECT ALL - col1 * + col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - tab0.col1 * + col1 + - col2 + - col0 FROM tab0
----
-7453
-8452
-9445
query I rowsort
SELECT + - cor0.col1 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 786a240f80bef6f9c6a190e92cd4f9e8
query I rowsort
SELECT - + 91 + + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0b85697f439b11fe7d84613c000301e1
query I rowsort
SELECT ALL + col2 + ( + cor0.col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - cor0.col0 + 1 * col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * + 93 - - col1 FROM tab2 AS cor0
----
-620
-7195
-7330
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 col2 FROM tab0, tab0 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT ALL - 24 FROM tab2, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT - - ( col0 ) * col1 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + 9 * - col1 + col1 FROM tab0
----
-688
-728
-776
query I rowsort
SELECT + 52 + - col1 * tab1.col2 FROM tab1
----
-1196
-1352
-518
query I rowsort
SELECT + col0 * + col0 + 61 FROM tab0 AS cor0
----
1286
637
7982
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5826
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5826
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 * + 51 + col0 FROM tab2
----
1384
1404
2017
onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT tab2.col2 DIV + col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-5828
SELECT tab2.col2 / + col1 FROM tab2
----
0
0
2
query I rowsort
SELECT + 33 + col0 + - col0 FROM tab0
----
33
33
33
query I rowsort
SELECT DISTINCT ( 30 + col1 ) FROM tab0
----
116
121
127
query I rowsort
SELECT + col0 * + ( col2 ) FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL ( - col2 ) + col0 * + 80 AS col0 FROM tab2 AS cor0
----
533
6214
6282
query I rowsort
SELECT tab0.col2 * - 88 * - col1 FROM tab0
----
249744
656656
8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-5834
SELECT DISTINCT - col2 DIV - 47 + + col2 * col2 FROM tab2
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-5834
SELECT DISTINCT - col2 / - 47 + + col2 * col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT 31 AS col0 FROM tab1 cor0
----
31
31
31
query I rowsort
SELECT - col2 * col2 * col1 FROM tab1 cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL 46 * + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 47332122c626b044d782a3115598aecb
query I rowsort
SELECT ALL ( - col1 ) * col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT 31 FROM tab1, tab0, tab2 cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT - + cor0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT col0 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT tab2.col1 FROM tab2, tab0, tab1 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( + 7 ) col0 FROM tab0
----
168
245
623
onlyif mysql # use DIV operator for integer division
query I rowsort label-5844
SELECT DISTINCT + col2 DIV col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-5844
SELECT DISTINCT + col2 / col2 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5845
SELECT ALL - col1 DIV - tab1.col0 AS col2 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - col1 / - tab1.col0 AS col2 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT col1 * + ( col0 ) AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col1 * 81 AS col0 FROM tab0 AS cor0
----
-6966
-7371
-7857
query I rowsort
SELECT ALL 80 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * col1 col0 FROM tab1
----
100
169
676
query I rowsort
SELECT - col0 + col0 * col2 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL + ( col1 ) * + col1 + col2 AS col2 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-5852
SELECT + - ( + col0 ) DIV + col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5852
SELECT + - ( + col0 ) / + col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ( + col0 ) + cor0.col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT col2 * 4 AS col0 FROM tab0
----
132
328
4
query I rowsort
SELECT + 24 + col1 * + col1 AS col0 FROM tab1 cor0
----
124
193
700
query I rowsort
SELECT + - 24 + 11 FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT - col0 * col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + ( col0 ) + col1 AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col0 + + col1 * + col1 AS col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT + 55 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT + 7 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5863
SELECT + col1 * CAST( - col2 * - col1 AS SIGNED ) + ( - 93 ) * col0 * 11 + col0 FROM tab2
----
-69756
10790
18793
skipif mysql # not compatible
query I rowsort label-5863
SELECT + col1 * CAST ( - col2 * - col1 AS INTEGER ) + ( - 93 ) * col0 * 11 + col0 FROM tab2
----
-69756
10790
18793
query I rowsort
SELECT DISTINCT ( + col1 ) + col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - ( col1 ) * col0 AS col1 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col1 AS REAL ) + + col2 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT ( 37 * tab0.col2 ) AS col2 FROM tab0
----
1221
3034
37
query I rowsort
SELECT ALL + 90 * - 45 + + col0 + col2 FROM tab0 AS cor0
----
-3879
-3993
-4014
query I rowsort
SELECT - + col0 * 25 AS col2 FROM tab0 cor0
----
-2225
-600
-875
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 * tab2.col2 col0 FROM tab2, tab1, tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL 28 FROM tab2
----
28
28
28
query I rowsort
SELECT 35 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
onlyif mysql # use DIV operator for integer division
query I rowsort label-5873
SELECT + col2 DIV + col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5873
SELECT + col2 / + col1 FROM tab0 cor0
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 6dfb18fb846f922ba9ea60ce42b86fb0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5875
SELECT + col0 DIV + 88 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5875
SELECT + col0 / + 88 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 + 29 * + 51 - col1 * + col0 FROM tab1 AS cor0
----
1398
359
775
query I rowsort
SELECT ALL + col2 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-5878
SELECT ALL - col1 DIV + 46 AS col0 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - col1 / + 46 AS col0 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT + - col1 * + 7 + col1 FROM tab2 AS cor0
----
-102
-186
-354
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 col2 + + 27 * + 72 FROM tab0 AS cor0
----
1945
1977
2026
onlyif mysql # use DIV operator for integer division
query I rowsort label-5882
SELECT col0 + col2 DIV col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5882
SELECT col0 + col2 / col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + col2 + - 42 FROM tab2 AS cor0
----
-15
-16
-4
query I rowsort
SELECT ALL col0 + + col1 * ( - cor0.col2 ) FROM tab0 cor0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - 32 * cor0.col2 col0 FROM tab1 AS cor0
----
103968
294912
93312
query I rowsort
SELECT ALL col2 + 6 + + col0 * col1 FROM tab0 AS cor0
----
2103
3402
8187
onlyif mysql # use DIV operator for integer division
query I rowsort label-5887
SELECT col0 DIV + ( tab1.col2 ) AS col1 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5887
SELECT col0 / + ( tab1.col2 ) AS col1 FROM tab1
----
0
0
1
query I rowsort
SELECT + col1 * col0 + col2 + - tab0.col1 AS col0 FROM tab0
----
2011
3299
8090
query I rowsort
SELECT col0 * + tab2.col0 AS col1 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-5890
SELECT DISTINCT - - col1 + col1 DIV 60 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT - - col1 + col1 / 60 + - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT - + col2 * cor0.col2 - - col0 FROM tab2 cor0
----
-1365
-598
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5893
SELECT DISTINCT - col2 * + CAST( NULL AS SIGNED ) * col0 + + col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT - col2 * + CAST ( NULL AS INTEGER ) * col0 + + col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT + col0 + - tab1.col2 * 9 FROM tab1
----
-449
-483
-784
query I rowsort
SELECT col0 * + 0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5896
SELECT DISTINCT + + col2 * - CAST( NULL AS SIGNED ) + 17 * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5896
SELECT DISTINCT + + col2 * - CAST ( NULL AS INTEGER ) + 17 * col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 + col2 + col2 * - cor0.col2 FROM tab1 AS cor0
----
-2836
-3182
-9107
query I rowsort
SELECT col2 - col0 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL + + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - + col1 - col2 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT col1 * - cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT + col2 + + col1 * + col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL - 25 + + ( col1 ) * - ( col1 ) FROM tab2 AS cor0
----
-314
-3506
-986
query I rowsort
SELECT ALL + 25 * col0 AS col1 FROM tab0 AS cor0
----
2225
600
875
query I rowsort
SELECT ALL + 28 + col1 FROM tab1 cor0
----
38
41
54
query I rowsort
SELECT DISTINCT + + cor0.col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT cor0.col1 * col0 * col1 - col0 * 23 FROM tab1 AS cor0
----
11680
1959
4928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT ALL - CAST( NULL AS DECIMAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL - CAST ( NULL AS REAL ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 27 FROM tab1 AS cor0
----
123
81
84
query I rowsort
SELECT ALL + 86 AS col0 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT + + col2 * - ( + col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col0 * 73 + + cor0.col2 * 78 AS col1 FROM tab2 AS cor0
----
2617
7722
8731
onlyif mysql # use DIV operator for integer division
query I rowsort label-5913
SELECT + - 72 DIV col0 AS col2 FROM tab2 AS cor0
----
-10
0
0
skipif mysql # not compatible
query I rowsort label-5913
SELECT + - 72 / col0 AS col2 FROM tab2 AS cor0
----
-10
0
0
query I rowsort
SELECT - 73 + + ( - col1 + col0 ) * col2 FROM tab0 AS cor0
----
-135
-2119
-237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( col1 ) + col1 col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT tab1.col1 FROM tab1, tab0, tab2 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL col0 + col2 * + col0 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - ( - col0 ) * - col1 + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5919
SELECT ALL + col0 - - CAST( + 89 AS SIGNED ) col1 FROM tab2
----
167
168
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5919
SELECT ALL + col0 - - CAST ( + 89 AS INTEGER ) col1 FROM tab2
----
167
168
96
query I rowsort
SELECT + col1 * 81 * col2 + - tab1.col1 + - col2 * 98 AS col1 FROM tab1
----
108406
40574
91667
query I rowsort
SELECT - 79 + - col2 AS col2 FROM tab2 AS cor0
----
-105
-106
-117
query I rowsort
SELECT ALL + - col2 * - cor0.col1 * + col2 + 6 FROM tab1 AS cor0
----
119814
32496
75822
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + + 76 * - col1 - + col1 FROM tab1 AS cor0
----
-1001
-2002
-770
query I rowsort
SELECT ALL - col2 + col0 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT 83 + - col1 * 78 AS col2 FROM tab0 AS cor0
----
-6625
-7015
-7483
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT + 39 AS col2 FROM tab1 AS cor0
----
39
39
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5930
SELECT ALL - col1 - + col1 DIV + col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL - col1 - + col1 / + col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT + 69 + col1 FROM tab0 cor0
----
155
160
166
query I rowsort
SELECT cor0.col0 * col0 AS col2 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5933
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col2 + col1 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-5933
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col2 + col1 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT 6 + cor0.col2 FROM tab1, tab0 AS cor0
----
39
7
88
query I rowsort
SELECT - col0 * + col0 * ( + col1 ) AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL 25 * + col2 AS col2 FROM tab2 AS cor0
----
650
675
950
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) AS col2 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT - col0 + col2 * - 46 FROM tab0 AS cor0
----
-1542
-3861
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5939
SELECT DISTINCT - col2 + col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5939
SELECT DISTINCT - col2 + col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + col0 * + col1 * + 10 FROM tab2 AS cor0
----
13430
2170
46020
query I rowsort
SELECT DISTINCT - - 96 AS col2 FROM tab1 AS cor0
----
96
query I rowsort
SELECT - 93 + + col2 AS col1 FROM tab0
----
-11
-60
-92
query I rowsort
SELECT - 83 AS col2 FROM tab0
----
-83
-83
-83
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab2
----
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5945
SELECT DISTINCT col2 DIV + 96 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5945
SELECT DISTINCT col2 / + 96 AS col1 FROM tab0
----
0
query I rowsort
SELECT - 45 * + col2 FROM tab2 AS cor0
----
-1170
-1215
-1710
query I rowsort
SELECT + cor0.col2 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT - ( - col1 ) FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT - 15 FROM tab0
----
-15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5950
SELECT CAST( NULL AS SIGNED ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5950
SELECT CAST ( NULL AS INTEGER ) FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 82 AS col2 FROM tab2
----
82
82
82
query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab2, tab1 AS cor0
----
86
query I rowsort
SELECT cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + ( 4 * + col0 ) AS col1 FROM tab0
----
140
356
96
query I rowsort
SELECT 78 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT - 86 FROM tab1
----
-86
-86
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT col1 * - col1 DIV + col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-5957
SELECT col1 * - col1 / + col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT + col1 + + col1 * - ( - cor0.col1 ) + col2 FROM tab2 AS cor0
----
1019
344
3566
query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT + ( - col2 ) + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + + col0 AS col2 FROM tab0 cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5962
SELECT - col1 DIV col1 + - CAST( col2 + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5962
SELECT - col1 / col1 + - CAST ( col2 + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col2 * col1 + - ( - col1 ) - - col0 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
3589
671671
71036
query I rowsort
SELECT + + col1 * cor0.col1 * col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - 63 AS col1 FROM tab0, tab2 AS cor0
----
-63
query I rowsort
SELECT + 36 FROM tab2, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT col1 + + 9 * col2 AS col1 FROM tab2 AS cor0
----
274
293
359
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + col0 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col2 * col2 - 19 * col0 * + col1 FROM tab1 cor0
----
-10544
-8911
1434
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5970
SELECT + - col1 * CAST( NULL AS SIGNED ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5970
SELECT + - col1 * CAST ( NULL AS INTEGER ) + col0 * col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col2 * + ( col1 ) + col2 * + 63 * ( - col1 ) FROM tab2 AS cor0
----
-41344
-53568
-98176
query I rowsort
SELECT - cor0.col1 * - col2 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 + + 87 + - 89 * - col1 * + col0 AS col1 FROM tab2 AS cor0
----
119576
19373
409639
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 75 col1 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT ALL + col0 + - cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + col0 * col1 col2 FROM tab2 AS cor0
----
1406
280
4665
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 DISTINCT + - 99 * - 15 AS col2 FROM tab0 AS cor0
----
1485
query I rowsort
SELECT ALL - 54 * + 16 * col0 + + col2 FROM tab0 AS cor0
----
-20703
-30239
-76814
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * 68 col0 FROM tab1 AS cor0
----
3740
3740
3740
query I rowsort
SELECT + - ( + col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5983
SELECT CAST( - col2 AS SIGNED ) * col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5983
SELECT CAST ( - col2 AS INTEGER ) * col0 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - ( col2 ) * cor0.col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 56 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT DISTINCT + col0 * col1 + - cor0.col0 FROM tab1 cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + + col1 * 89 col1 FROM tab2 AS cor0
----
1530
2790
5310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + cor0.col1 * - col1 col1 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5989
SELECT tab2.col1 * cor0.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5989
SELECT tab2.col1 * cor0.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5990
SELECT + + col1 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-5990
SELECT + + col1 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - 88 FROM tab2, tab1 AS cor0
----
-88
query I rowsort
SELECT DISTINCT - tab2.col2 * - 66 FROM tab2, tab2 AS cor0
----
1716
1782
2508
onlyif mysql # use DIV operator for integer division
query I rowsort label-5993
SELECT + col1 DIV 25 + - cor0.col2 * col0 col0 FROM tab0 AS cor0
----
-32
-7295
-789
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5993
SELECT + col1 / 25 + - cor0.col2 * col0 col0 FROM tab0 AS cor0
----
-32
-7295
-789
onlyif mysql # use DIV operator for integer division
query I rowsort label-5994
SELECT ALL - col1 + col0 DIV col2 FROM tab1 AS cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-5994
SELECT ALL - col1 + col0 / col2 FROM tab1 AS cor0
----
-13
-26
-9
query I rowsort
SELECT + 39 * cor0.col0 AS col2 FROM tab0 cor0
----
1365
3471
936
query I rowsort
SELECT ALL - col2 - - col1 AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT col1 * 23 * tab1.col0 + col1 FROM tab1
----
14730
1820
23933
query I rowsort
SELECT + 6 FROM tab1, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT - col2 - - col1 * col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL + col1 * - col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 28 * col1 col0 FROM tab0 cor0
----
-2408
-2548
-2716
query I rowsort
SELECT ALL col2 * col2 + col0 * 91 FROM tab1 AS cor0
----
16496
3189
9073
query I rowsort
SELECT ALL + - ( cor0.col1 ) * - col0 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - - col1 * col2 - cor0.col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT ALL 9 AS col2 FROM tab0
----
9
9
9
query I rowsort
SELECT ALL col1 * + tab1.col2 - - ( col0 ) FROM tab1
----
1328
1407
634
query I rowsort
SELECT - - 38 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT ALL - col0 * + col1 + + 29 * col0 AS col0 FROM tab0 AS cor0
----
-1368
-2380
-5518
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6009
SELECT ALL - - col1 + CAST( col0 + - col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6009
SELECT ALL - - col1 + CAST ( col0 + - col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6012
SELECT col2 + tab0.col1 * + CAST( col2 * + col2 AS SIGNED ) + + col0 FROM tab0
----
133
612055
93711
skipif mysql # not compatible
query I rowsort label-6012
SELECT col2 + tab0.col1 * + CAST ( col2 * + col2 AS INTEGER ) + + col0 FROM tab0
----
133
612055
93711
query I rowsort
SELECT 70 - col0 FROM tab0
----
-19
35
46
query I rowsort
SELECT - col2 * + col1 + col2 + col2 * col0 FROM tab2
----
-621
2394
520
onlyif mysql # use DIV operator for integer division
query I rowsort label-6015
SELECT ALL tab0.col2 DIV 65 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL tab0.col2 / 65 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 90 * + col1 col0 FROM tab2 AS cor0
----
120870
19530
414180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col0 ) * + col2 + - ( 2 ) col2 FROM tab1 AS cor0
----
160
3646
7678
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6018
SELECT ALL CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6018
SELECT ALL CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 84 * + cor0.col1 FROM tab2 AS cor0
----
1428
2604
4956
query I rowsort
SELECT + col1 - ( + col1 ) * col1 AS col0 FROM tab1
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 64 ) * col0 col1 FROM tab2 AS cor0
----
-448
-4992
-5056
query I rowsort
SELECT + - cor0.col0 * - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT 30 * + col1 FROM tab2 AS cor0
----
1770
510
930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6024
SELECT + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6024
SELECT + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 87 * col0 * col2 FROM tab1 AS cor0
----
14094
317376
668160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 col0 FROM tab1
----
-45
-45
-45
query I rowsort
SELECT cor0.col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( ( col1 ) + + col0 ) col0 FROM tab2
----
137
38
96
query I rowsort
SELECT ( - 61 ) AS col0 FROM tab2 AS cor0
----
-61
-61
-61
query I rowsort
SELECT DISTINCT - ( 85 ) FROM tab1 AS cor0
----
-85
query I rowsort
SELECT - 74 AS col1 FROM tab1 cor0
----
-74
-74
-74
query I rowsort
SELECT ALL + - col0 AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT ( + 44 ) AS col1 FROM tab2
----
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6034
SELECT ( col2 ) + - col2 * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6034
SELECT ( col2 ) + - col2 * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 31 AS col0 FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - col0 + col0 * - col2 * + col1 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT DISTINCT - 25 * + col0 + col0 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT + - 1 + col2 AS col0 FROM tab2 AS cor0
----
25
26
37
query I rowsort
SELECT ALL - - 49 AS col0 FROM tab0 AS cor0
----
49
49
49
query I rowsort
SELECT ALL + - col1 * - cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - 70 * col0 FROM tab1 AS cor0
----
-210
-4480
-5600
query I rowsort
SELECT 9 * col1 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT - col2 * cor0.col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + - 81 + + col2 AS col0 FROM tab2 AS cor0
----
-43
-54
-55
query I rowsort
SELECT ALL + ( col2 ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - cor0.col2 * + col0 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
-399
1536
2754
query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab1 cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 + + 13 + - 62 col2 FROM tab2 AS cor0
----
1485
597
788
query I rowsort
SELECT ALL + col1 + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - col0 * + col1 + + 73 AS col2 FROM tab1 AS cor0
----
-5
-567
-967
query I rowsort
SELECT DISTINCT + col1 * + col1 - ( col0 ) AS col0 FROM tab1 cor0
----
36
673
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6052
SELECT ALL + col1 DIV ( col1 * col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6052
SELECT ALL + col1 / ( col1 * col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * - 6 + tab2.col1 FROM tab2
----
-155
-295
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6054
SELECT DISTINCT col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT col1 / - col1 AS col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT DISTINCT col2 + ( - col1 ) AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + col1 + + 75 FROM tab0 AS cor0
----
161
166
172
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6057
SELECT DISTINCT - cor0.col1 * CAST( + cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-6057
SELECT DISTINCT - cor0.col1 * CAST ( + cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + col2 + + 60 * + col2 * - col1 col0 FROM tab1 AS cor0
----
-33630
-73632
-82836
query I rowsort
SELECT DISTINCT - + col0 * col2 + 20 * col2 AS col2 FROM tab0 cor0
----
-132
-15
-5658
query I rowsort
SELECT ALL + col2 + col2 * - ( col1 ) - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col0 * - col2 + ( col0 ) AS col1 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT - col2 * - 55 + col1 * - col2 FROM tab0 AS cor0
----
-1023
-2952
-42
query I rowsort
SELECT ALL - col2 - - 30 FROM tab0 AS cor0
----
-3
-52
29
query I rowsort
SELECT - + col2 * col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT - col2 * 88 AS col2 FROM tab0 AS cor0
----
-2904
-7216
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6067
SELECT - col1 DIV - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-6067
SELECT - col1 / - col1 + - col1 AS col0 FROM tab0 AS cor0
----
-85
-90
-96
query I rowsort
SELECT ALL - col1 + + 32 * + col2 FROM tab0 AS cor0
----
-65
2533
970
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT DISTINCT + col0 + + col0 DIV col0 AS col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-6070
SELECT DISTINCT + col0 + + col0 / col0 AS col0 FROM tab1 AS cor0
----
4
65
81
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
onlyif mysql # use DIV operator for integer division
query I rowsort label-6072
SELECT DISTINCT + - col0 DIV - col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT + - col0 / - col0 FROM tab1 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6073
SELECT ALL col2 + col1 DIV cor0.col1 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL col2 + col1 / cor0.col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT ALL ( - col2 ) * col1 * + cor0.col2 + - cor0.col2 AS col1 FROM tab1 cor0
----
-119904
-32547
-75870
query I rowsort
SELECT col1 + ( col2 + - col0 ) AS col1 FROM tab1
----
29
3
77
query I rowsort
SELECT ALL 80 FROM tab2, tab0 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT DISTINCT - 29 FROM tab1, tab2 AS cor0
----
-29
query I rowsort
SELECT - 38 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to dc3731b6ce8b1f8ecf6042af8e1c4df1
query I rowsort
SELECT DISTINCT col2 + 83 * - col0 FROM tab1 AS cor0
----
-195
-5255
-6544
query I rowsort
SELECT ALL + col1 * 90 - col1 * 2 * col0 FROM tab1 cor0
----
-380
-910
2184
query I rowsort
SELECT - col0 + ( - 34 ) FROM tab0 AS cor0
----
-123
-58
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + ( col1 ) * - col0 col1 FROM tab0 cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + ( col0 ) * ( + col0 ) FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - ( + col0 ) * - col2 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6087
SELECT ALL 49 DIV col0 AS col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-6087
SELECT ALL 49 / col0 AS col0 FROM tab0
----
0
1
2
query I rowsort
SELECT cor1.col0 + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fdd2f547b28e02db29f913671a199b7b
query I rowsort
SELECT + col0 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col0 * + 51 + col1 FROM tab2 cor0
----
388
4037
4046
query I rowsort
SELECT col0 + cor0.col2 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT ALL + - col0 + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col2 * - 36 FROM tab1 AS cor0
----
-1944
-2052
-3456
onlyif mysql # use DIV operator for integer division
query I rowsort label-6094
SELECT ALL - col0 + 75 * - col2 DIV + col2 + col2 FROM tab0
----
-109
-66
-82
skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL - col0 + 75 * - col2 / + col2 + col2 FROM tab0
----
-109
-66
-82
query I rowsort
SELECT - 84 * - col1 AS col1 FROM tab0
----
7224
7644
8148
query I rowsort
SELECT + - col1 - + col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + + col1 * cor0.col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + 54 + + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1397
-271
-4656
query I rowsort
SELECT col0 * + cor0.col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT - 96 AS col0 FROM tab1
----
-96
-96
-96
query I rowsort
SELECT ALL col1 * - col1 * 71 FROM tab2
----
-20519
-247151
-68231
query I rowsort
SELECT - 36 * 65 + - tab2.col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to 28c8734b84d74ec8cceb29ce455e5e5f
query I rowsort
SELECT + col1 + + cor0.col2 * col1 FROM tab2 cor0
----
1593
663
868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT ALL 96 * + col1 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6104
SELECT ALL 96 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( + col1 ) * col2 * - 86 FROM tab1
----
-107328
-120744
-49020
query I rowsort
SELECT - cor0.col0 + - col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col1 * col2 + ( col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
14924
194
5676
query I rowsort
SELECT 58 * - cor0.col2 FROM tab2 AS cor0
----
-1508
-1566
-2204
query I rowsort
SELECT - - cor0.col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT col2 + 95 * col1 FROM tab1 cor0
----
1007
1331
2524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6111
SELECT col2 * CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-6111
SELECT col2 * CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col1 * tab0.col0 * + col2 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col1 + col0 * + 67 FROM tab2 AS cor0
----
500
5285
5310
query I rowsort
SELECT - col0 + - 85 AS col1 FROM tab2 AS cor0
----
-163
-164
-92
query I rowsort
SELECT DISTINCT - 93 - 79 AS col2 FROM tab0 AS cor0
----
-172
query I rowsort
SELECT - 39 * col0 + col0 AS col1 FROM tab1 AS cor0
----
-114
-2432
-3040
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col1 - - col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6120
SELECT - - ( col1 ) DIV - cor0.col0 - CAST( col0 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-11
-78
-79
skipif mysql # not compatible
query I rowsort label-6120
SELECT - - ( col1 ) / - cor0.col0 - CAST ( col0 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-11
-78
-79
query I rowsort
SELECT cor0.col1 + - col2 AS col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT tab0.col2 * col0 + col0 * + ( + col1 ) AS col2 FROM tab0
----
15397
2856
3430
query I rowsort
SELECT - ( + col1 ) - - col2 * + col2 FROM tab1 AS cor0
----
2890
3239
9203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6124
SELECT 52 * col1 * CAST( + col1 AS SIGNED ) + col2 col0 FROM tab0 cor0
----
384625
430694
489269
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6124
SELECT 52 * col1 * CAST ( + col1 AS INTEGER ) + col2 col0 FROM tab0 cor0
----
384625
430694
489269
onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT + 88 DIV - col0 + + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1041
-107
-641
skipif mysql # not compatible
query I rowsort label-6125
SELECT + 88 / - col0 + + cor0.col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1041
-107
-641
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6126
SELECT + col1 * col2 + + CAST( 34 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2508
3240
4512
skipif mysql # not compatible
query I rowsort label-6126
SELECT + col1 * col2 + + CAST ( 34 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2508
3240
4512
query I rowsort
SELECT 13 * - col0 * + col1 AS col2 FROM tab1
----
-1014
-13520
-8320
query I rowsort
SELECT DISTINCT col0 * + col1 * 64 FROM tab0
----
132096
217280
518336
query I rowsort
SELECT col1 * col2 * - 58 + - col2 * + col0 FROM tab0
----
-165396
-440094
-5661
query I rowsort
SELECT ALL - ( - 96 ) * cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 19c7ed22afd5c2bc0716e97bd608270e
query IIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0, tab1 cor1
----
243 values hashing to 9ed1a6a444254225f040123c46b7f70c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6132
SELECT - col2 + + CAST( col1 + - col2 AS SIGNED ) FROM tab1
----
-104
-179
-82
skipif mysql # not compatible
query I rowsort label-6132
SELECT - col2 + + CAST ( col1 + - col2 AS INTEGER ) FROM tab1
----
-104
-179
-82
query I rowsort
SELECT ALL + 99 - 77 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + ( 11 ) * - col0 col1 FROM tab1 cor0
----
-761
-87
-976
query I rowsort
SELECT DISTINCT + - col2 * + 8 + ( col2 ) FROM tab0 AS cor0
----
-231
-574
-7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6136
SELECT DISTINCT - col1 + + CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - col1 + + CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab2 cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 - + col0 AS col0 FROM tab2 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * col2 col2 FROM tab0 AS cor0
----
-1
-35937
-551368
onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT ALL - + col1 * cor0.col0 + - col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1342
-216
-4601
skipif mysql # not compatible
query I rowsort label-6139
SELECT ALL - + col1 * cor0.col0 + - col1 / - col1 AS col1 FROM tab2 AS cor0
----
-1342
-216
-4601
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6140
SELECT + col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6140
SELECT + col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col2 * - 7 * + 70 AS col2 FROM tab2 AS cor0
----
12740
13230
18620
onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT ALL - col2 + cor0.col2 + 1 DIV - col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL - col2 + cor0.col2 + 1 / - col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 43 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT - 84 + col0 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-84
-84
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab0 AS cor0
----
-62
-62
-62
query I rowsort
SELECT DISTINCT + - col1 * ( - cor0.col1 ) + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT ALL - 85 AS col0 FROM tab0 AS cor0
----
-85
-85
-85
query I rowsort
SELECT 83 * 12 + - col2 * - col0 * - col1 - col0 FROM tab2 AS cor0
----
-118734
-4870
-50117
query I rowsort
SELECT ALL + ( 95 ) AS col2 FROM tab2 AS cor0
----
95
95
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6152
SELECT DISTINCT - col2 * ( - col2 ) DIV + col0 AS col0 FROM tab2 AS cor0
----
104
18
8
skipif mysql # not compatible
query I rowsort label-6152
SELECT DISTINCT - col2 * ( - col2 ) / + col0 AS col0 FROM tab2 AS cor0
----
104
18
8
query I rowsort
SELECT DISTINCT + 30 * - col1 FROM tab2 AS cor0
----
-1770
-510
-930
query I rowsort
SELECT ALL - 72 * + col2 + col1 AS col1 FROM tab0 AS cor0
----
-2290
-5813
25
query I rowsort
SELECT ALL + ( col1 ) AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT 13 FROM tab1 cor0
----
13
13
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col1 col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - ( + col1 * + tab2.col1 + 44 ) FROM tab2
----
-1005
-333
-3525
query I rowsort
SELECT DISTINCT ( cor0.col2 ) + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 84 + col1 FROM tab2 AS cor0
----
101
115
143
query I rowsort
SELECT + 72 + - col0 FROM tab1 AS cor0
----
-8
69
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT - 86 + + col0 DIV + col1 FROM tab1
----
-80
-80
-86
skipif mysql # not compatible
query I rowsort label-6162
SELECT - 86 + + col0 / + col1 FROM tab1
----
-80
-80
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + ( 9 ) * col0 col2 FROM tab1 AS cor0
----
1
566
707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( + col1 ) col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT + col2 + 50 FROM tab1 AS cor0
----
104
107
146
onlyif mysql # use DIV operator for integer division
query I rowsort label-6166
SELECT col2 DIV col0 + col2 AS col0 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-6166
SELECT col2 / col0 + col2 AS col0 FROM tab2
----
26
30
38
query I rowsort
SELECT DISTINCT 34 AS col0 FROM tab2, tab0, tab1 cor0
----
34
query I rowsort
SELECT DISTINCT ( + col2 * ( - col2 ) ) AS col0 FROM tab2
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-6169
SELECT + col2 + + tab2.col2 DIV + col1 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-6169
SELECT + col2 + + tab2.col2 / + col1 FROM tab2
----
26
27
40
query I rowsort
SELECT 60 + col1 FROM tab1
----
70
73
86
query I rowsort
SELECT DISTINCT - - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + col1 * col2 + - col2 + + col1 AS col2 FROM tab1 AS cor0
----
1165
1376
523
query I rowsort
SELECT ALL col1 * + col2 + + col2 * tab0.col2 AS col0 FROM tab0
----
14186
3927
98
query I rowsort
SELECT - - col2 * + cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + tab1.col2 + + col1 * - col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT + - col0 * col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + col2 * cor0.col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL tab0.col1 * + col0 * - col1 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT - col2 + col1 * + col2 AS col1 FROM tab0
----
2805
7380
96
query I rowsort
SELECT DISTINCT col0 * tab2.col2 AS col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL 54 + col2 AS col1 FROM tab2
----
80
81
92
query I rowsort
SELECT + col1 + - col0 - + col2 FROM tab2
----
-100
-3
-45
query I rowsort
SELECT ALL - col2 + - ( - col0 ) * + col0 + col2 * + col2 FROM tab0
----
1225
14563
1632
onlyif mysql # use DIV operator for integer division
query I rowsort label-6188
SELECT ALL + col0 DIV + col2 + - col1 DIV + col0 - + col1 FROM tab0
----
-64
-89
-91
skipif mysql # not compatible
query I rowsort label-6188
SELECT ALL + col0 / + col2 + - col1 / + col0 - + col1 FROM tab0
----
-64
-89
-91
query I rowsort
SELECT DISTINCT - tab1.col1 + 95 AS col1 FROM tab1
----
69
82
85
query I rowsort
SELECT DISTINCT 61 + + col0 FROM tab1
----
125
141
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-6191
SELECT 4 DIV - 24 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6191
SELECT 4 / - 24 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 * col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + 85 + - col0 + + col2 FROM tab1
----
101
136
78
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6195
SELECT ALL + col1 DIV ( col2 * + col0 ) FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6195
SELECT ALL + col1 / ( col2 * + col0 ) FROM tab0 AS cor0
----
0
0
2
query I rowsort
SELECT + 98 * col0 + col2 FROM tab2 AS cor0
----
713
7670
7780
query I rowsort
SELECT - 94 + col2 FROM tab0
----
-12
-61
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT - + col1 * col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col2 + + cor0.col2 col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + 47 FROM tab2
----
47
query I rowsort
SELECT - + 97 FROM tab0 AS cor0
----
-97
-97
-97
query I rowsort
SELECT ALL cor0.col0 * - col1 FROM tab1 AS cor0
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + - col0 * col1 col1 FROM tab0 cor0
----
-2030
-3361
-8065
query I rowsort
SELECT col0 + + col0 AS col2 FROM tab1 cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6207
SELECT DISTINCT + col2 DIV - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-6207
SELECT DISTINCT + col2 / - cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 col0 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col2 col1 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-6210
SELECT + col1 + col1 DIV + col2 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6210
SELECT + col1 + col1 / + col2 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - - 3 AS col2 FROM tab0 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT 78 FROM tab0 cor0
----
78
query I rowsort
SELECT ALL + 52 * col0 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT 20 AS col0 FROM tab0 AS cor0
----
20
20
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-6215
SELECT ALL col2 DIV + col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-6215
SELECT ALL col2 / + col0 FROM tab1 AS cor0
----
0
1
18
onlyif mysql # use DIV operator for integer division
query I rowsort label-6216
SELECT - + col0 + col0 DIV - col2 col0 FROM tab0 AS cor0
----
-24
-70
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6216
SELECT - + col0 + col0 / - col2 col0 FROM tab0 AS cor0
----
-24
-70
-90
query I rowsort
SELECT DISTINCT 64 + col0 AS col2 FROM tab0 cor0
----
153
88
99
query I rowsort
SELECT ALL cor0.col2 * + col0 + + col0 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT 8 * col0 + - col2 FROM tab1 cor0
----
-30
455
544
query I rowsort
SELECT DISTINCT + + 34 AS col2 FROM tab0 AS cor0
----
34
query I rowsort
SELECT DISTINCT 24 FROM tab1, tab1 AS cor0
----
24
query I rowsort
SELECT DISTINCT 11 * 83 AS col1 FROM tab1
----
913
query I rowsort
SELECT + col1 * - 17 AS col0 FROM tab2
----
-1003
-289
-527
query I rowsort
SELECT - 14 FROM tab2 AS cor0
----
-14
-14
-14
query I rowsort
SELECT - ( + col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - col2 * - col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - + cor0.col1 * - col2 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-6228
SELECT + - col0 DIV - col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6228
SELECT + - col0 / - col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT - - 47 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1128
1645
4183
query I rowsort
SELECT ( - col1 ) * + ( - ( col1 ) ) AS col0 FROM tab2 AS cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 69 ) col1 FROM tab2
----
69
69
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6232
SELECT + col0 * + CAST( - col2 AS SIGNED ) * col0 + 67 FROM tab1 AS cor0
----
-233405
-419
-614333
skipif mysql # not compatible
query I rowsort label-6232
SELECT + col0 * + CAST ( - col2 AS INTEGER ) * col0 + 67 FROM tab1 AS cor0
----
-233405
-419
-614333
query I rowsort
SELECT + col2 * col1 + + col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL + + col0 + + 60 + col1 * col1 FROM tab2 AS cor0
----
1028
3619
428
query I rowsort
SELECT - col0 + + cor0.col2 FROM tab0 AS cor0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT ALL - + col0 DIV - ( ( - col2 ) ) AS col1 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6236
SELECT ALL - + col0 / - ( ( - col2 ) ) AS col1 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT ALL - col2 * + 10 * + col0 AS col2 FROM tab0 AS cor0
----
-350
-72980
-7920
query I rowsort
SELECT DISTINCT + - col1 + 60 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT - cor0.col1 * 52 * col1 - col0 FROM tab0 AS cor0
----
-384616
-430701
-489303
onlyif mysql # use DIV operator for integer division
query I rowsort label-6240
SELECT + col1 DIV 81 + 39 * col1 AS col1 FROM tab1 AS cor0
----
1014
390
507
skipif mysql # not compatible
query I rowsort label-6240
SELECT + col1 / 81 + 39 * col1 AS col1 FROM tab1 AS cor0
----
1014
390
507
query I rowsort
SELECT DISTINCT 16 FROM tab1, tab0 cor0
----
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-6242
SELECT + col2 DIV + col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6242
SELECT + col2 / + col1 FROM tab1
----
2
5
7
query I rowsort
SELECT col2 * + col1 - + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - cor0.col1 * - 9 + 89 FROM tab0 cor0
----
863
908
962
query I rowsort
SELECT DISTINCT - col2 * - 22 + + col0 AS col1 FROM tab1 AS cor0
----
1191
1318
2192
query I rowsort
SELECT ALL 23 + 11 FROM tab1 AS cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6247
SELECT + cor0.col2 + + 96 DIV - col1 col2 FROM tab0 AS cor0
----
1
32
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6247
SELECT + cor0.col2 + + 96 / - col1 col2 FROM tab0 AS cor0
----
1
32
81
query I rowsort
SELECT DISTINCT - 46 * col1 FROM tab2 AS cor0
----
-1426
-2714
-782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col0 + col0 col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT 13 * + 1 + + col1 - col2 AS col1 FROM tab1 AS cor0
----
-15
-34
-70
query I rowsort
SELECT DISTINCT - + col0 * col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6253
SELECT + 27 - 23 * col0 DIV + col2 FROM tab0 AS cor0
----
-778
11
3
skipif mysql # not compatible
query I rowsort label-6253
SELECT + 27 - 23 * col0 / + col2 FROM tab0 AS cor0
----
-778
11
3
query I rowsort
SELECT ALL - - 26 + - col2 * - col0 AS col2 FROM tab1 AS cor0
----
188
3674
7706
query I rowsort
SELECT + cor0.col0 + 46 FROM tab0 AS cor0
----
135
70
81
query I rowsort
SELECT ALL 14 AS col0 FROM tab0 AS cor0
----
14
14
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6257
SELECT ALL 91 + col0 - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL 91 + col0 - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * col0 * + tab0.col1 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT - 76 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * + col0 col2 FROM tab1
----
262144
27
512000
onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT col2 DIV 94 + + tab1.col1 * 58 AS col2 FROM tab1
----
1508
580
755
skipif mysql # not compatible
query I rowsort label-6261
SELECT col2 / 94 + + tab1.col1 * 58 AS col2 FROM tab1
----
1508
580
755
query I rowsort
SELECT cor0.col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6263
SELECT DISTINCT CAST( + tab1.col2 AS SIGNED ) + + col2 FROM tab1
----
108
114
192
skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT CAST ( + tab1.col2 AS INTEGER ) + + col2 FROM tab1
----
108
114
192
query I rowsort
SELECT + col0 * - col2 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 * cor0.col0 * - col1 + col2 - 53 col2 FROM tab2 AS cor0
----
-13046
-276147
-80595
query I rowsort
SELECT DISTINCT - col2 * col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT 90 FROM tab0
----
90
90
90
query I rowsort
SELECT - 23 * col0 AS col1 FROM tab0 cor0
----
-2047
-552
-805
query I rowsort
SELECT ALL + cor1.col1 * 74 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2bc65e52b35c1e02e7c244003eb6ecdb
query I rowsort
SELECT ALL + col0 * tab1.col0 FROM tab1
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 8 + + 0 col1 FROM tab1 AS cor0
----
-5
56
72
query I rowsort
SELECT + col2 - - 20 FROM tab2 AS cor0
----
46
47
58
query I rowsort
SELECT ALL col2 - - 90 FROM tab1
----
144
147
186
query I rowsort
SELECT ALL col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 * 29 + + col0 AS col0 FROM tab0 AS cor0
----
-211553
-22944
-980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col0 col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + + cor0.col1 * + 34 AS col1 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT ( col2 * tab2.col0 ) FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6279
SELECT DISTINCT col0 DIV - col0 + + col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-6279
SELECT DISTINCT col0 / - col0 + + col0 FROM tab2
----
6
77
78
query I rowsort
SELECT - cor0.col2 + + col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT col1 * col0 * - col2 + - col2 + - col1 FROM tab2 AS cor0
----
-119737
-51089
-5917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 13 col0 FROM tab2 cor0
----
-13
-14
-25
query I rowsort
SELECT DISTINCT + col0 + + ( col2 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL - col1 + - 10 * col2 FROM tab1 cor0
----
-566
-580
-973
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - + cor0.col2 * - ( 68 + + col0 ) * + col2 FROM tab2 AS cor0
----
212268
54675
98696
query I rowsort
SELECT DISTINCT - + col0 + ( + col0 ) FROM tab0 cor0
----
0
query I rowsort
SELECT + - cor0.col0 + col2 * col1 FROM tab1 cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT col2 DIV 8 + - col1 * col2 + ( - col2 ) FROM tab1
----
-1332
-1452
-620
skipif mysql # not compatible
query I rowsort label-6289
SELECT col2 / 8 + - col1 * col2 + ( - col2 ) FROM tab1
----
-1332
-1452
-620
query I rowsort
SELECT + 10 * col2 - + col1 AS col0 FROM tab1
----
514
560
947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col0 ) * + col0 col2 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - - col1 * - col0 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 53 ) * + col0 col1 FROM tab2 cor0
----
-371
-4134
-4187
query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + + col2 + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - col1 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + + 71 * - 67 - - col1 AS col2 FROM tab2 AS cor0
----
-4698
-4726
-4740
query I rowsort
SELECT + 30 + - col1 * ( + 3 ) FROM tab2 AS cor0
----
-147
-21
-63
query I rowsort
SELECT 58 * col2 + - ( col1 ) + col0 AS col2 FROM tab2 AS cor0
----
1527
1542
2266
query I rowsort
SELECT DISTINCT - col0 * + col0 * + col0 AS col2 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT ALL + - col2 * - col2 + ( 97 ) FROM tab2 AS cor0
----
1541
773
826
query I rowsort
SELECT - - cor0.col1 + + cor0.col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL ( + cor0.col1 ) + + col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - 54 + col0 + col0 FROM tab0 AS cor0
----
-6
124
16
query I rowsort
SELECT ALL 85 AS col2 FROM tab2 AS cor0
----
85
85
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6306
SELECT + - 87 DIV + col1 + 98 + col2 AS col0 FROM tab2 AS cor0
----
123
123
131
skipif mysql # not compatible
query I rowsort label-6306
SELECT + - 87 / + col1 + 98 + col2 AS col0 FROM tab2 AS cor0
----
123
123
131
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * ( + col2 + + col2 ) AS col2 FROM tab2 AS cor0
----
1430
1465
2967
query I rowsort
SELECT DISTINCT col0 + cor0.col0 * cor0.col2 + - col2 FROM tab2 AS cor0
----
169
2080
3043
query I rowsort
SELECT - - col0 + - col2 * - ( + 98 ) AS col0 FROM tab0 AS cor0
----
133
3258
8125
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6310
SELECT + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6310
SELECT + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6311
SELECT ALL - col0 * col2 + 34 DIV - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-163
-2002
-2966
skipif mysql # not compatible
query I rowsort label-6311
SELECT ALL - col0 * col2 + 34 / - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-163
-2002
-2966
query I rowsort
SELECT DISTINCT - col1 * col0 + + ( col0 * col2 ) AS col0 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab0, tab0 AS cor0
----
55
query I rowsort
SELECT DISTINCT 27 FROM tab1, tab2 cor0, tab0 AS cor1
----
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 * - col1 - - col2 col2 FROM tab0 AS cor0
----
-8137
-8563
-9214
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col0 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT 76 AS col1 FROM tab2, tab0 cor0, tab2 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
query I rowsort
SELECT DISTINCT + col0 + - cor0.col2 - - col2 AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT cor0.col1 + + col0 * 92 FROM tab2 AS cor0
----
675
7235
7285
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab0 cor2
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6321
SELECT - col1 DIV + col0 + col1 AS col2 FROM tab2 AS cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-6321
SELECT - col1 / + col0 + col1 AS col2 FROM tab2 AS cor0
----
17
27
59
query I rowsort
SELECT + col1 * col1 + + 47 * 73 AS col2 FROM tab0
----
10827
11712
12840
query I rowsort
SELECT col2 * - ( col2 ) + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL cor0.col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + 37 * cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
1221
3034
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6326
SELECT DISTINCT - 80 + - col1 * col2 DIV + col0 FROM tab0
----
-163
-198
-82
skipif mysql # not compatible
query I rowsort label-6326
SELECT DISTINCT - 80 + - col1 * col2 / + col0 FROM tab0
----
-163
-198
-82
query I rowsort
SELECT DISTINCT + - 62 AS col1 FROM tab1 cor0
----
-62
query I rowsort
SELECT ALL cor0.col0 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT - - ( + 16 ) FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT ALL - - ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + tab1.col2 + ( col2 * - col1 ) AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT col0 * + 14 + - col2 AS col2 FROM tab0
----
1164
303
489
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6333
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 * - 31 FROM tab0 AS cor0
----
-1085
-2759
-744
query I rowsort
SELECT DISTINCT + + col0 + col2 * col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ( - col0 ) FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col0 * - ( - col0 ) + - col0 + + col0 * + col1 FROM tab1 AS cor0
----
4672
7360
84
query I rowsort
SELECT DISTINCT - - col1 - + col0 AS col2 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT - 77 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-539
-6006
-6083
query I rowsort
SELECT ALL + col0 * + ( + col0 * - col2 ) AS col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL col1 * col1 * + col2 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6342
SELECT DISTINCT - col1 DIV CAST( 69 AS SIGNED ) AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-6342
SELECT DISTINCT - col1 / CAST ( 69 AS INTEGER ) AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - col0 * - col1 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col1 * tab1.col0 AS col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT DISTINCT ( col2 ) + col1 * col1 AS col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT ALL + - col0 + + ( - col0 ) * - 54 * 3 FROM tab0 cor0
----
14329
3864
5635
query I rowsort
SELECT 85 AS col2 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT - 42 * - 66 AS col2 FROM tab0 AS cor0
----
2772
query I rowsort
SELECT ALL + col0 * + col0 - - col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT col2 + col0 + col2 FROM tab2
----
130
155
61
query I rowsort
SELECT - 63 * col1 - col0 FROM tab0 AS cor0
----
-5442
-5822
-6146
query I rowsort
SELECT ALL - ( + 43 ) * - col2 AS col0 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT ALL - tab0.col0 + col1 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL col1 + - col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + col0 * col0 + + col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT col2 * + col0 + - tab0.col0 AS col0 FROM tab0
----
0
7209
768
query I rowsort
SELECT col2 * + tab1.col2 + col0 * col1 FROM tab1
----
10256
2994
3889
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= NULL
----
query I rowsort
SELECT + col0 * + col2 + + col2 * - tab0.col1 FROM tab0
----
-164
-2046
-62
query I rowsort
SELECT ALL + col1 * + col2 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6361
SELECT col2 + col1 + col2 DIV col2 AS col0 FROM tab0
----
120
174
99
skipif mysql # not compatible
query I rowsort label-6361
SELECT col2 + col1 + col2 / col2 AS col0 FROM tab0
----
120
174
99
query III rowsort
SELECT * FROM tab0 WHERE col2 * + col2 * + col1 + + col2 NOT IN ( - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + col2 * tab1.col2 * col2 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT DISTINCT col0 + col1 + col2 FROM tab2
----
134
163
65
query I rowsort
SELECT col1 * - col2 * - tab2.col1 AS col0 FROM tab2
----
10982
25947
90506
query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + col2 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT col1 * col1 + + col0 + col2 FROM tab0 WHERE - col2 * col1 IN ( col2 + + col2 * col0 / - col0 )
----
query I rowsort
SELECT ALL + col2 * col1 + tab2.col0 + + tab2.col0 * - col2 FROM tab2
----
-2277
-416
655
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col1 FROM tab0 WHERE NOT NULL <> ( + col1 * col0 )
----
query I rowsort
SELECT + col1 + col0 + col2 AS col2 FROM tab1
----
131
189
83
query I rowsort
SELECT DISTINCT + col2 * tab0.col0 * - col2 AS col1 FROM tab0
----
-26136
-35
-598436
query I rowsort
SELECT col2 * + col1 * - col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT - col0 * - col2 * col2 AS col0 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT col0 + - col2 FROM tab1 WHERE ( NULL ) > ( + col1 + col1 )
----
query I rowsort
SELECT col2 * col2 + - col1 - col0 FROM tab1
----
2887
3175
9123
query I rowsort
SELECT ALL tab2.col1 * + col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - tab1.col1 * + col1 AS col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - tab0.col1 * - col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL col0 * col1 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL - col1 + + col0 * col1 AS col1 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT ALL - cor0.col0 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT - cor0.col1 * col1 + + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT cor0.col0 + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col2 <> cor0.col1 OR NULL NOT BETWEEN ( col0 + + col2 * col2 ) AND NULL
----
24
86
33
89
91
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6385
SELECT DISTINCT - + cor0.col0 + + cor0.col1 DIV + col2 + col0 AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6385
SELECT DISTINCT - + cor0.col0 + + cor0.col1 / + col2 + col0 AS col0 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6386
SELECT DISTINCT col0 + col2 DIV + col2 AS col1 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT col0 + col2 / + col2 AS col1 FROM tab0
----
25
36
90
query I rowsort
SELECT - col2 - + col2 * - col0 AS col1 FROM tab1 AS cor0
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col1 + + col0 + col1 col0 FROM tab1 WHERE NULL = NULL
----
query I rowsort
SELECT + col2 * 10 FROM tab0 AS cor0
----
10
330
820
query I rowsort
SELECT - col1 * - 23 AS col2 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT col0 + - ( col2 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + col2 * - cor0.col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + col0 + cor0.col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL 54 AS col0 FROM tab1
----
54
54
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + - col1 * - col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - col1 * ( + col2 + col2 ) * tab1.col1 FROM tab1
----
-11400
-32448
-73008
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to f1682f477bbed24d681925c633bed9db
query I rowsort
SELECT ALL - cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL 11 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to 9abcb2f48b3a009aa8d65d82a30c843f
onlyif mysql # use DIV operator for integer division
query I rowsort label-6401
SELECT col0 DIV + 6 AS col1 FROM tab0
----
14
4
5
skipif mysql # not compatible
query I rowsort label-6401
SELECT col0 / + 6 AS col1 FROM tab0
----
14
4
5
query I rowsort
SELECT col2 * col2 + col0 * - col2 + col2 FROM tab1
----
-342
1632
2808
query I rowsort
SELECT + 39 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( col2 ) BETWEEN NULL AND col2
----
query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT tab0.col1 - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT 89 * col0 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT + 85 * + col0 * - col1 FROM tab0 AS cor0
----
-175440
-288575
-688415
query I rowsort
SELECT ALL 11 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT - ( - col0 ) * ( col0 ) AS col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6412
SELECT col0 + + col0 DIV + tab1.col1 FROM tab1
----
3
70
86
skipif mysql # not compatible
query I rowsort label-6412
SELECT col0 + + col0 / + tab1.col1 FROM tab1
----
3
70
86
query I rowsort
SELECT col0 * tab0.col1 + - col2 AS col1 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT + col1 * + col1 * col2 + + col0 FROM tab1
----
16304
36507
5764
query I rowsort
SELECT ALL - col0 * col1 FROM tab2 WHERE NULL > col0
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = NULL
----
query I rowsort
SELECT col1 - col0 AS col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL + tab0.col2 - + col2 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 3 * tab2.col1 FROM tab2
----
177
51
93
query I rowsort
SELECT ( col2 + col0 ) AS col0 FROM tab0
----
171
36
57
query I rowsort
SELECT + + col0 * + cor0.col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - + col2 * col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + col0 * + col1 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - col2 * + col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - 50 + col1 FROM tab2 AS cor0
----
-19
-33
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6426
SELECT DISTINCT 77 + + 85 * + col1 - CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6426
SELECT DISTINCT 77 + + 85 * + col1 - CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + 99 + + 7 FROM tab0 AS cor0
----
-92
-92
-92
query I rowsort
SELECT ALL - - 55 AS col2 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT + - cor0.col2 * 71 + col0 FROM tab2 AS cor0
----
-1768
-1910
-2619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + cor0.col2 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - col0 * + ( - col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 31 FROM tab2 cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - 28 * - cor0.col1 + + cor0.col2 + + 22 FROM tab0 AS cor0
----
2463
2652
2739
query I rowsort
SELECT + ( cor0.col2 ) + col2 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col1 ) col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - - 75 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT DISTINCT + - col0 * - col1 + - col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT + col0 * - 40 * + col0 + - col1 AS col1 FROM tab2 AS cor0
----
-1991
-243419
-249657
query I rowsort
SELECT + + 10 AS col2 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT ALL + cor0.col2 + col0 * - col2 - + ( + 13 ) * col0 AS col1 FROM tab0 AS cor0
----
-1071
-489
-8373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6441
SELECT ALL CAST( tab2.col2 AS SIGNED ) + - col1 FROM tab2
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL CAST ( tab2.col2 AS INTEGER ) + - col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT DISTINCT 29 * + 2 AS col1 FROM tab2 AS cor0
----
58
query I rowsort
SELECT cor0.col2 + - col0 AS col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6444
SELECT DISTINCT + CAST( + 89 AS SIGNED ) * - col0 AS col2 FROM tab2 cor0
----
-623
-6942
-7031
skipif mysql # not compatible
query I rowsort label-6444
SELECT DISTINCT + CAST ( + 89 AS INTEGER ) * - col0 AS col2 FROM tab2 cor0
----
-623
-6942
-7031
query I rowsort
SELECT ALL + 15 FROM tab0 AS cor0
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-6446
SELECT DISTINCT cor0.col2 DIV - col0 col1 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT cor0.col2 / - col0 col1 FROM tab1 AS cor0
----
-1
-18
0
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to b51b4342db121ebc2d3d353dcd8ed521
query I rowsort
SELECT + col2 * col1 + col2 AS col2 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + + 27 FROM tab1, tab0 AS cor0, tab0 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to cee3679895e41b5065b6c038274a6a7d
query I rowsort
SELECT - + col1 - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT 4 + - col2 AS col1 FROM tab1
----
-50
-53
-92
query I rowsort
SELECT - 56 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT + col2 * col0 * - ( + col1 ) FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT tab0.col0 + + ( + 15 ) * + col1 FROM tab0
----
1314
1454
1490
onlyif mysql # use DIV operator for integer division
query I rowsort label-6455
SELECT col2 * col0 DIV 46 FROM tab1
----
166
3
79
skipif mysql # not compatible
query I rowsort label-6455
SELECT col2 * col0 / 46 FROM tab1
----
166
3
79
query I rowsort
SELECT DISTINCT 35 * - cor0.col2 FROM tab1, tab2 AS cor0
----
-1330
-910
-945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT ALL + col1 + - CAST( NULL AS SIGNED ) * 43 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6457
SELECT ALL + col1 + - CAST ( NULL AS INTEGER ) * 43 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6458
SELECT col2 DIV - tab2.col1 AS col2 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-6458
SELECT col2 / - tab2.col1 AS col2 FROM tab2
----
-2
0
0
query I rowsort
SELECT + - col1 * + col0 - col0 * + col1 FROM tab0 AS cor0
----
-16198
-4128
-6790
onlyif mysql # use DIV operator for integer division
query I rowsort label-6460
SELECT ALL - col0 * - col0 DIV col0 AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL - col0 * - col0 / col0 AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - 50 FROM tab1, tab1 AS cor0
----
-50
query I rowsort
SELECT ALL - - col2 + + 97 + - col2 FROM tab1 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT - cor0.col0 * + 16 FROM tab1 AS cor0
----
-1024
-1280
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6465
SELECT DISTINCT - + col0 * + CAST( col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6465
SELECT DISTINCT - + col0 * + CAST ( col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 14 + + cor0.col1 AS col1 FROM tab0, tab2 AS cor0
----
31
45
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6467
SELECT DISTINCT - col0 DIV - col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6467
SELECT DISTINCT - col0 / - col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab0 AS cor0
----
92
query I rowsort
SELECT + - col2 - col1 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + 73 FROM tab2 cor0
----
73
73
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * + col0 col1 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT tab1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 3 + + tab1.col0 - - ( 80 ) AS col0 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to c107372a317a15503a6e5a343fbb8427
query I rowsort
SELECT ALL + 84 - + tab1.col2 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 94f0694196ba0536fe9eb368beb41ef3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 59 col2 FROM tab1 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + 0 AS REAL ) * - col0 + + ( cor0.col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ( - 89 ) FROM tab0 AS cor0
----
-89
-89
-89
query I rowsort
SELECT tab2.col2 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - - ( col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - ( - col1 ) + - col1 * + col0 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6481
SELECT ALL - ( col0 ) * CAST( + col0 * col0 AS SIGNED ) FROM tab2
----
-343
-474552
-493039
skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL - ( col0 ) * CAST ( + col0 * col0 AS INTEGER ) FROM tab2
----
-343
-474552
-493039
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col1 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT DISTINCT + col2 * col1 + 16 FROM tab1 AS cor0
----
1264
1420
586
query I rowsort
SELECT ALL + + col1 * - col2 + ( + ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + - col1 + - col2 * col1 * ( - col2 ) FROM tab0 AS cor0
----
0
611793
93568
query I rowsort
SELECT DISTINCT - + 44 - col1 * col1 FROM tab0 AS cor0
----
-7440
-8325
-9453
query I rowsort
SELECT + 25 * col2 * col2 + + ( col0 ) FROM tab1 cor0
----
230480
72903
81289
query I rowsort
SELECT - col1 + + col1 * - col0 FROM tab1 cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL + + ( + col1 ) + - ( col2 ) FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + col0 + + col1 * 2 AS col0 FROM tab1 AS cor0
----
106
55
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT + col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6491
SELECT + col0 / - col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6492
SELECT DISTINCT + - col0 DIV - 53 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + - col0 / - 53 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT + + cor0.col1 * col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col1 + cor0.col1 * 99 FROM tab1 AS cor0
----
1000
1300
2600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
-7
-78
-79
query I rowsort
SELECT + tab0.col1 + + col0 FROM tab0
----
110
132
180
query I rowsort
SELECT + 96 AS col2 FROM tab0
----
96
96
96
query I rowsort
SELECT ALL - - col0 - - col2 AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT + cor0.col0 * cor0.col0 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 AS cor0, tab2 cor1
----
54
57
96
query I rowsort
SELECT - col1 - - col2 FROM tab1 AS cor0
----
28
47
83
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
query I rowsort
SELECT 14 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT - 72 FROM tab1, tab1 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT DISTINCT + 16 FROM tab2
----
16
query I rowsort
SELECT - col1 * + col1 AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL ( + col1 * - col1 + + col2 ) AS col2 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT - col0 * tab2.col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT 27 * + tab0.col0 AS col2 FROM tab0
----
2403
648
945
query I rowsort
SELECT + col1 * col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT + 42 - col2 AS col1 FROM tab2 AS cor0
----
15
16
4
query I rowsort
SELECT DISTINCT + col1 * - col2 - + ( + col1 ) AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT ALL col0 - col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab0, tab1, tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - 82 FROM tab1, tab1 AS cor0
----
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 * - 62 col0 FROM tab2
----
-1054
-1922
-3658
query I rowsort
SELECT ALL + col2 * 37 AS col2 FROM tab1 AS cor0
----
1998
2109
3552
query I rowsort
SELECT - col2 * + col2 + + col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 + - cor0.col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT + - cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 97 + + 30 * col0 AS col0 FROM tab1 cor0
----
187
2017
2497
query I rowsort
SELECT - - 88 * 0 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * 45 AS col0 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT + 20 * - col1 FROM tab1 AS cor0
----
-200
-260
-520
query I rowsort
SELECT cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 40 + col2 * + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-26096
-598396
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-6528
SELECT ( - tab0.col0 ) DIV col1 - - tab0.col0 * - col1 AS col1 FROM tab0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-6528
SELECT ( - tab0.col0 ) / col1 - - tab0.col0 * - col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - ( - col0 ) * col2 - + ( - col2 ) FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT col1 * 47 FROM tab1
----
1222
470
611
query I rowsort
SELECT ALL - tab2.col2 * 70 + 67 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c1075bcd0c2361445336926301b04506
query I rowsort
SELECT cor0.col1 * tab0.col0 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 9dd217b6385bf38f78d8b6e6b7864578
query I rowsort
SELECT - 37 * + col1 FROM tab0 AS cor0
----
-3182
-3367
-3589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 + 12 col2 FROM tab0
----
62
62
62
query I rowsort
SELECT ALL 0 + cor0.col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT ALL + 70 * - tab2.col2 FROM tab2
----
-1820
-1890
-2660
query I rowsort
SELECT - + 55 + - col2 AS col1 FROM tab2 AS cor0
----
-81
-82
-93
query I rowsort
SELECT ALL + 5 + col2 * ( col0 ) FROM tab1 AS cor0
----
167
3653
7685
query I rowsort
SELECT DISTINCT + 6 * + col2 FROM tab1 AS cor0
----
324
342
576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6540
SELECT DISTINCT + col0 DIV + col1 AS col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-6540
SELECT DISTINCT + col0 / + col1 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT + + ( col0 ) * col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + 35 + + col2 * - col1 AS col1 FROM tab1 cor0
----
-1213
-1369
-535
onlyif mysql # use DIV operator for integer division
query I rowsort label-6543
SELECT - - ( col1 ) DIV cor0.col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6543
SELECT - - ( col1 ) / cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 14 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT ALL - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col0 + 89 * 88 AS col1 FROM tab2 AS cor0
----
7753
7754
7825
query I rowsort
SELECT - + cor0.col2 * col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT cor0.col1 + + 75 + + col2 AS col0 FROM tab0 AS cor0
----
173
194
248
query I rowsort
SELECT + col1 * - col0 * col0 + - col1 FROM tab2 AS cor0
----
-106114
-1550
-359015
query I rowsort
SELECT DISTINCT - col1 * col1 - + col1 * + cor0.col0 * col0 AS col1 FROM tab2 AS cor0
----
-106386
-2480
-362437
query I rowsort
SELECT + col1 * col1 + - col0 AS col0 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL + + col1 * col0 + - ( col2 ) FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + ( col2 ) AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT cor0.col2 - + col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - col2 - 15 * + 79 FROM tab0 AS cor0
----
-1186
-1218
-1267
query I rowsort
SELECT 16 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( col0 ) ) + 92 * col2 col1 FROM tab0 AS cor0
----
3012
57
7455
query I rowsort
SELECT ALL ( 88 ) * col2 FROM tab1 AS cor0
----
4752
5016
8448
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6560
SELECT ALL + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 85 + 0 + + col1 * 37 FROM tab2 AS cor0
----
1232
2268
714
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + col0 ) + + col0 col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT - col0 * tab2.col1 * - 23 FROM tab2
----
105846
30889
4991
query I rowsort
SELECT ALL - 73 + cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1270
144
4529
query I rowsort
SELECT + + 24 + + col2 AS col0 FROM tab1 AS cor0
----
120
78
81
query I rowsort
SELECT ALL - 81 * col0 + col2 * col1 FROM tab1 AS cor0
----
-4614
-5232
1161
query I rowsort
SELECT ALL - col0 + - col2 * 17 AS col1 FROM tab1 AS cor0
----
-1033
-1712
-921
onlyif mysql # use DIV operator for integer division
query I rowsort label-6568
SELECT col0 + col1 DIV col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-6568
SELECT col0 + col1 / col1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col2 * + col1 + + col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT cor1.col0 FROM tab0, tab0 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT ALL col0 + - col1 + - tab0.col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + 92 + col2 * + cor0.col1 FROM tab2 cor0
----
1626
738
929
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6573
SELECT DISTINCT - 92 - + col1 * CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6573
SELECT DISTINCT - 92 - + col1 * CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col1 - + cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - 94 - col1 AS col2 FROM tab0 AS cor0
----
-180
-185
-191
onlyif mysql # use DIV operator for integer division
query I rowsort label-6576
SELECT + col0 * col1 + + col0 DIV 16 AS col1 FROM tab2 AS cor0
----
1347
217
4606
skipif mysql # not compatible
query I rowsort label-6576
SELECT + col0 * col1 + + col0 / 16 AS col1 FROM tab2 AS cor0
----
1347
217
4606
query I rowsort
SELECT ALL + ( col1 ) * 79 + col0 * + col0 FROM tab1 AS cor0
----
2063
4886
7427
query I rowsort
SELECT DISTINCT - + 56 + col2 FROM tab1 AS cor0
----
-2
1
40
query I rowsort
SELECT ALL + 49 AS col0 FROM tab2 cor0
----
49
49
49
query I rowsort
SELECT DISTINCT - ( + col0 ) + col0 * col2 * + col1 FROM tab1 AS cor0
----
36416
4209
99760
onlyif mysql # use DIV operator for integer division
query I rowsort label-6581
SELECT ALL 53 * - col0 + 8 DIV - col0 FROM tab1 cor0
----
-161
-3392
-4240
skipif mysql # not compatible
query I rowsort label-6581
SELECT ALL 53 * - col0 + 8 / - col0 FROM tab1 cor0
----
-161
-3392
-4240
query I rowsort
SELECT ( + col1 ) * col0 - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT ALL col1 * cor0.col2 + + col2 * 57 FROM tab2 cor0
----
2376
2812
3016
query I rowsort
SELECT DISTINCT - cor0.col0 - col2 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT ALL + 88 * col1 FROM tab1 AS cor0
----
1144
2288
880
query I rowsort
SELECT DISTINCT - cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + 7 * 65 AS col0 FROM tab1, tab0 AS cor0
----
455
query I rowsort
SELECT + col1 + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT 79 * + col2 * + col1 AS col1 FROM tab2
----
121186
51034
66123
query I rowsort
SELECT ALL - col2 * - 4 FROM tab0 cor0
----
132
328
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col2 col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT tab1.col0 - tab1.col2 AS col1 FROM tab1
----
-16
-51
7
query I rowsort
SELECT ( 88 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
onlyif mysql # use DIV operator for integer division
query I rowsort label-6595
SELECT ALL + 45 - col0 DIV col0 FROM tab1 AS cor0
----
44
44
44
skipif mysql # not compatible
query I rowsort label-6595
SELECT ALL + 45 - col0 / col0 FROM tab1 AS cor0
----
44
44
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6596
SELECT ALL - 32 + 33 DIV - cor0.col1 - 79 AS col2 FROM tab0 AS cor0
----
-111
-111
-111
skipif mysql # not compatible
query I rowsort label-6596
SELECT ALL - 32 + 33 / - cor0.col1 - 79 AS col2 FROM tab0 AS cor0
----
-111
-111
-111
query I rowsort
SELECT ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
7
78
79
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 380241bbc503a31e70494611a87ffd99
query I rowsort
SELECT ALL - + 91 + col0 - + col0 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT + + ( + col1 ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 + col0 * col1 FROM tab2 AS cor0
----
1178
1632
8083
onlyif mysql # use DIV operator for integer division
query I rowsort label-6602
SELECT ALL - - cor0.col2 + - col1 - + col0 DIV - 54 FROM tab1 AS cor0
----
28
48
84
skipif mysql # not compatible
query I rowsort label-6602
SELECT ALL - - cor0.col2 + - col1 - + col0 / - 54 FROM tab1 AS cor0
----
28
48
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6603
SELECT + CAST( col1 AS SIGNED ) * col1 FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-6603
SELECT + CAST ( col1 AS INTEGER ) * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT + + 53 + col1 * cor0.col0 * ( col1 ) AS col0 FROM tab1 cor0
----
13573
2081
6453
query I rowsort
SELECT DISTINCT + 40 * col0 + + col0 * cor0.col2 + 31 FROM tab2 AS cor0
----
500
5179
6193
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 65 ) col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23
query I rowsort
SELECT + cor0.col0 FROM tab1, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT ALL - cor0.col2 * col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - ( + col2 ) * cor0.col2 + cor0.col0 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col1 FROM tab0
----
84
84
84
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
query I rowsort
SELECT + 84 FROM tab2, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + 88 + 12 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 4 col2 FROM tab2 cor0
----
-4
-4
-4
query I rowsort
SELECT - col0 + col0 * col2 * col2 FROM tab1 AS cor0
----
207872
737200
8745
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 60 * + col1 FROM tab0 AS cor0
----
-5160
-5460
-5820
query I rowsort
SELECT DISTINCT + col2 * 74 AS col0 FROM tab1
----
3996
4218
7104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 * + col0 col2 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6622
SELECT col1 * + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6622
SELECT col1 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + ( + col1 ) AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col2 + + ( col0 ) AS col1 FROM tab2
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6625
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) + col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6625
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT + col1 * - col2 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-6627
SELECT ALL col1 DIV - ( - 50 * col1 ) AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6627
SELECT ALL col1 / - ( - 50 * col1 ) AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 * - col2 + col2 + tab0.col1 * + ( col1 ) AS col2 FROM tab0
----
1639
6340
9409
query I rowsort
SELECT + col1 * - 43 FROM tab0 AS cor0
----
-3698
-3913
-4171
query I rowsort
SELECT + - col1 * - cor0.col0 * + col0 AS col2 FROM tab1 cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT - 88 FROM tab0 cor0
----
-88
query I rowsort
SELECT DISTINCT + 16 * col0 AS col2 FROM tab0 AS cor0
----
1424
384
560
query I rowsort
SELECT + 86 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3010
-7654
query I rowsort
SELECT - 21 FROM tab0
----
-21
-21
-21
query I rowsort
SELECT ALL + 67 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to eea8a0738728ea55e4e7ba1506c9905a
query I rowsort
SELECT + col1 * col1 AS col0 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6638
SELECT ALL + col2 DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6638
SELECT ALL + col2 / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - - cor0.col0 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col2 * + col1 * col1 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT - ( ( - col1 ) ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 31 + col1 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
1643
756
875
query I rowsort
SELECT - col2 + 76 AS col0 FROM tab0 AS cor0
----
-6
43
75
query I rowsort
SELECT + + col1 + 42 * + cor0.col0 FROM tab1 AS cor0
----
152
2698
3373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6645
SELECT CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6645
SELECT CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - 11 + 85 FROM tab1 AS cor0
----
74
74
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-6647
SELECT ALL col1 DIV + ( + col0 ) + + col2 * col1 * col0 AS col1 FROM tab1 AS cor0
----
36480
4220
99840
skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL col1 / + ( + col0 ) + + col2 * col1 * col0 AS col1 FROM tab1 AS cor0
----
36480
4220
99840
query I rowsort
SELECT col0 + col2 * cor0.col1 FROM tab1 cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 13 * 76 + col2 col2 FROM tab0 AS cor0
----
1021
1070
989
query I rowsort
SELECT - + 13 FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT DISTINCT + 91 + col0 FROM tab0
----
115
126
180
query I rowsort
SELECT cor0.col1 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ( + 40 ) * col1 AS col1 FROM tab0
----
3440
3640
3880
query I rowsort
SELECT DISTINCT 34 + - col1 FROM tab1
----
21
24
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6655
SELECT 42 * + col0 * col0 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6655
SELECT 42 * + col0 * col0 + + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6656
SELECT 32 + - col2 DIV col0 col0 FROM tab1
----
14
31
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6656
SELECT 32 + - col2 / col0 col0 FROM tab1
----
14
31
32
query I rowsort
SELECT col2 * - 98 AS col1 FROM tab1
----
-5292
-5586
-9408
query I rowsort
SELECT DISTINCT col1 * - tab2.col0 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - tab2.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT - cor1.col2 + 94 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-2
37
40
query I rowsort
SELECT 20 * col2 AS col0 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT - col0 * - col2 * + col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT + 42 + col0 FROM tab0 AS cor0
----
131
66
77
query I rowsort
SELECT - col2 * + col0 * ( + col0 ) AS col1 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT 55 FROM tab1 AS cor0
----
55
query I rowsort
SELECT - col2 * cor0.col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT ALL + col0 DIV col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6667
SELECT ALL + col0 / col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - col2 - - 90 FROM tab1 AS cor0
----
-6
33
36
query I rowsort
SELECT ALL col0 * 35 AS col0 FROM tab1 cor0
----
105
2240
2800
query I rowsort
SELECT ALL - col2 * + col0 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 56 AS col1 FROM tab0
----
56
56
56
query I rowsort
SELECT + 93 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT - + 92 FROM tab0 AS cor0
----
-92
-92
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 97 col2 FROM tab1 AS cor0
----
-97
-97
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6675
SELECT - col2 * - col1 + - col0 DIV col2 FROM tab0 cor0
----
2838
62
7461
skipif mysql # not compatible
query I rowsort label-6675
SELECT - col2 * - col1 + - col0 / col2 FROM tab0 cor0
----
2838
62
7461
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + tab0.col1 col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL col2 + - col2 * - tab0.col0 + ( col0 * col0 + ( col2 ) ) AS col0 FROM tab0
----
1262
1434
15383
query I rowsort
SELECT + + col2 + ( - col2 ) AS col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6679
SELECT col2 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6679
SELECT col2 / cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + + col1 * + ( - col2 ) FROM tab1 AS cor0
----
-1261
-1430
-580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + - col0 * + col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col0 * - ( col1 ) FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col0 * + ( + cor0.col2 ) * - col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT ALL - col1 + - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - + cor0.col1 * - 39 AS col2 FROM tab0 AS cor0
----
3354
3549
3783
query I rowsort
SELECT - - col0 + - 39 AS col1 FROM tab2 AS cor0
----
-32
39
40
query I rowsort
SELECT DISTINCT + col0 + 3 FROM tab0 cor0
----
27
38
92
query I rowsort
SELECT ALL + col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + 20 + 73 AS col0 FROM tab1, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT 76 - col1 * - col2 AS col0 FROM tab0 AS cor0
----
173
2914
7538
query I rowsort
SELECT DISTINCT + ( - col2 ) * col2 AS col0 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - 63 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5
query I rowsort
SELECT col0 * col2 + cor0.col2 * col2 FROM tab0 AS cor0
----
14022
1881
36
skipif mysql # not compatible
query I rowsort
SELECT + col0 * col1 - col0 * + CAST ( col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT - - 51 + 87 FROM tab0 AS cor0
----
138
138
138
query I rowsort
SELECT - col2 - col0 AS col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - 55 + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-2083
-244
-3057
query I rowsort
SELECT + + 55 * col1 AS col2 FROM tab0 AS cor0
----
4730
5005
5335
onlyif mysql # use DIV operator for integer division
query I rowsort label-6700
SELECT 54 + + col1 DIV 93 FROM tab0 AS cor0
----
54
54
55
skipif mysql # not compatible
query I rowsort label-6700
SELECT 54 + + col1 / 93 FROM tab0 AS cor0
----
54
54
55
query I rowsort
SELECT DISTINCT - col0 * col1 * + ( col0 ) AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT ALL + 54 AS col2 FROM tab0 cor0
----
54
54
54
query I rowsort
SELECT + 35 * + col0 FROM tab1 AS cor0
----
105
2240
2800
onlyif mysql # use DIV operator for integer division
query I rowsort label-6704
SELECT + - col2 + + col1 DIV ( col1 ) FROM tab0 AS cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-6704
SELECT + - col2 + + col1 / ( col1 ) FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT + 6 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT ALL 48 AS col0 FROM tab0 cor0
----
48
48
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 32 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT cor0.col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT 39 AS col2 FROM tab2
----
39
39
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6710
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 + - col0 * - col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6710
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 + - col0 * - col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 72 FROM tab0, tab1, tab0 AS cor0
----
72
query I rowsort
SELECT + col0 - + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 * col1 + 27 * 5 AS col2 FROM tab0 AS cor0
----
2199
3530
8234
query I rowsort
SELECT ALL col0 * col2 * col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * - col2 + + col0 * + col1 col2 FROM tab1 AS cor0
----
-2894
-3270
-4912
query I rowsort
SELECT ALL - + col2 - col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT - col2 + col0 * 8 * col2 AS col1 FROM tab2 AS cor0
----
1485
16198
23978
query I rowsort
SELECT ALL - 15 * col2 AS col1 FROM tab1 AS cor0
----
-1440
-810
-855
onlyif mysql # use DIV operator for integer division
query I rowsort label-6719
SELECT col2 DIV col1 - + col2 AS col0 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-6719
SELECT col2 / col1 - + col2 AS col0 FROM tab1 AS cor0
----
-52
-52
-89
query I rowsort
SELECT col2 + + col0 * - col2 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT - - 82 + + cor0.col1 FROM tab2 AS cor0
----
113
141
99
query I rowsort
SELECT ALL + col1 + col1 * col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT + 62 + cor0.col2 * + col2 FROM tab1 AS cor0
----
2978
3311
9278
query I rowsort
SELECT DISTINCT + 18 * + col1 AS col2 FROM tab0 AS cor0
----
1548
1638
1746
query I rowsort
SELECT ALL + - cor0.col1 * - col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT ALL + col1 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL + col1 / - col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 70 FROM tab2 AS cor0
----
70
query I rowsort
SELECT ( 3 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - col1 * ( + col2 ) FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - - col2 * 4 AS col1 FROM tab0 AS cor0
----
132
328
4
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 8e88b3a69c24fc01553b0c32bf7748d0
query I rowsort
SELECT DISTINCT + + col0 * + col0 + ( + col0 ) AS col2 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT - col1 * + ( col2 ) + - col0 AS col0 FROM tab2 cor0
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 + cor0.col2 col0 FROM tab2 AS cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT col0 + - 11 * - col2 FROM tab1 cor0
----
1136
597
691
query I rowsort
SELECT DISTINCT + col0 * 95 + - 48 * col0 + 9 * - 20 FROM tab1 AS cor0
----
-39
2828
3580
query I rowsort
SELECT + col0 + ( 39 ) * + col0 AS col0 FROM tab0 cor0
----
1400
3560
960
query I rowsort
SELECT DISTINCT + col1 + - col0 + - col1 * col0 FROM tab0 AS cor0
----
-2002
-3333
-8097
onlyif mysql # use DIV operator for integer division
query I rowsort label-6739
SELECT col1 + - col2 DIV 75 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-6739
SELECT col1 + - col2 / 75 FROM tab2 AS cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 + 56 col1 FROM tab1 AS cor0
----
-1
-40
2
query I rowsort
SELECT DISTINCT - + col2 * 23 + col1 + cor0.col2 FROM tab0 AS cor0
----
-1713
-640
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-6742
SELECT - col1 + + col2 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6742
SELECT - col1 + + col2 / + col1 FROM tab0 AS cor0
----
-86
-91
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6743
SELECT ALL cor0.col1 + + CAST( col1 AS SIGNED ) * - col0 + col0 * + cor0.col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL cor0.col1 + + CAST ( col1 AS INTEGER ) * - col0 + col0 * + cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL cor1.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6745
SELECT + CAST( cor0.col1 AS SIGNED ) * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6745
SELECT + CAST ( cor0.col1 AS INTEGER ) * - col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + + 67 * col2 FROM tab1 AS cor0
----
3618
3819
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col0 FROM tab2 AS cor0
----
-29
query I rowsort
SELECT ALL + 86 * col2 FROM tab0 AS cor0
----
2838
7052
86
query I rowsort
SELECT - 0 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
onlyif mysql # use DIV operator for integer division
query I rowsort label-6750
SELECT ALL - - col1 + col0 DIV - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6750
SELECT ALL - - col1 + col0 / - col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( + col0 ) * - col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT - 44 FROM tab2 cor0
----
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6753
SELECT DISTINCT - CAST( + 18 AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
36
39
78
skipif mysql # not compatible
query I rowsort label-6753
SELECT DISTINCT - CAST ( + 18 AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
36
39
78
query I rowsort
SELECT DISTINCT - 87 AS col2 FROM tab1, tab0 cor0
----
-87
query I rowsort
SELECT DISTINCT col1 + ( + 46 ) + col2 FROM tab1
----
113
126
155
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 4 * col1 + col0 FROM tab2 AS cor0
----
131
147
314
query I rowsort
SELECT + + 4 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT DISTINCT + - 30 + 98 AS col0 FROM tab2 AS cor0
----
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6760
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6760
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6761
SELECT ALL col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - 40 + col0 * col1 + + ( + col1 ) * col0 * ( - col1 * col0 ) FROM tab2 AS cor0
----
-1802346
-21173842
-46912
query I rowsort
SELECT + + col2 + 35 FROM tab2 AS cor0
----
61
62
73
query I rowsort
SELECT - col1 + + col0 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT - 63 + - col1 FROM tab0 AS cor0
----
-149
-154
-160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6766
SELECT + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6766
SELECT + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col0 + - col0 * 93 FROM tab0 AS cor0
----
-2208
-3220
-8188
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0, tab2, tab1 AS cor1
----
972 values hashing to 980274175fafec015a83080672486a9a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6769
SELECT CAST( + ( col2 ) AS SIGNED ) FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6769
SELECT CAST ( + ( col2 ) AS INTEGER ) FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6770
SELECT - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6770
SELECT - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + + col1 - ( col1 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + - col0 AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL + 85 * - col0 + - col2 * - tab0.col2 + + col1 FROM tab0
----
-2877
-750
-865
query I rowsort
SELECT + 18 * col1 * + 22 FROM tab2
----
12276
23364
6732
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 + + cor0.col0 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1ace51a0be43a9fe5a17cb22cf5efab7
query I rowsort
SELECT DISTINCT col0 + - col1 * - 6 AS col2 FROM tab1
----
124
158
159
query I rowsort
SELECT - tab2.col1 * ( col0 ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT DISTINCT col1 * - ( col0 ) FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL 51 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT + col1 - col0 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col0 - + col2 col0 FROM tab0 AS cor0
----
-1
-33
-82
query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + col0 * + col2 - - col2 NOT BETWEEN ( NULL ) AND col2 / - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6784
SELECT - + col1 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-6784
SELECT - + col1 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
8
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) BETWEEN + cor0.col1 AND ( col0 + + col1 ) OR NULL IN ( col1 * + cor0.col1 )
----
query I rowsort
SELECT DISTINCT - col1 + - col2 AS col1 FROM tab2
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 + - col2 * col2 + - col1 AS col2 FROM tab2 AS cor0
----
-1382
-657
-753
onlyif mysql # use DIV operator for integer division
query I rowsort label-6789
SELECT - col1 DIV col1 + - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1344
-218
-4603
skipif mysql # not compatible
query I rowsort label-6789
SELECT - col1 / col1 + - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1344
-218
-4603
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----
query I rowsort
SELECT tab1.col2 - col1 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT - col0 + + tab0.col2 FROM tab0
----
-34
-7
9
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col1 col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT - col2 * col0 * col2 AS col2 FROM tab2 WHERE ( NULL ) IN ( - tab2.col0 * + col2 )
----
query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col1 * col2 * - col1 )
----
query I rowsort
SELECT + col1 * cor0.col1 + - col2 * col1 + cor0.col0 FROM tab1 cor0
----
-406
-725
-999
query I rowsort
SELECT col1 * cor0.col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT - col0 + - cor0.col2 - + col0 AS col1 FROM tab2 AS cor0
----
-182
-196
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-6800
SELECT + col0 - col2 DIV col0 AS col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-6800
SELECT + col0 - col2 / col0 AS col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT - cor0.col0 * col1 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - col2 + + cor0.col2 * col1 + col1 * - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 + col2 * - cor0.col1 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6805
SELECT col0 DIV col0 + - col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-6805
SELECT col0 / col0 + - col2 FROM tab1
----
-53
-56
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - col2 col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 + + col1 * + col2 AS col1 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT col2 * - col1 AS col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6809
SELECT DISTINCT - tab0.col1 DIV col0 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-6809
SELECT DISTINCT - tab0.col1 / col0 FROM tab0
----
-1
-2
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6810
SELECT tab0.col2 DIV - tab0.col2 AS col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6810
SELECT tab0.col2 / - tab0.col2 AS col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL + - col0 * + col1 + - col2 * col0 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT ALL - 42 + col1 AS col2 FROM tab1 cor0
----
-16
-29
-32
query I rowsort
SELECT ALL cor0.col1 - - col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab0 WHERE NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6815
SELECT col2 DIV - tab1.col2 - col1 * col2 DIV col0 col2 FROM tab1
----
-16
-469
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6815
SELECT col2 / - tab1.col2 - col1 * col2 / col0 col2 FROM tab1
----
-16
-469
-9
query I rowsort
SELECT DISTINCT - 46 * + col2 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT + 33 * - col2 AS col0 FROM tab0 AS cor0
----
-1089
-2706
-33
query I rowsort
SELECT ALL col0 * col2 + + 46 * + col0 + col1 AS col0 FROM tab0 AS cor0
----
11483
1742
1982
query I rowsort
SELECT + ( + col2 ) + + col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + 98 FROM tab2 AS cor0
----
98
query I rowsort
SELECT ALL col1 + + col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL - 93 + col0 * 96 + 82 AS col1 FROM tab0
----
2293
3349
8533
query I rowsort
SELECT DISTINCT + - col2 + + 8 * - 32 AS col0 FROM tab1 cor0
----
-310
-313
-352
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6824
SELECT ALL - + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL - + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * + 77 + 57 AS col0 FROM tab0 cor0
----
1905
2752
6910
query I rowsort
SELECT ( + col1 ) + col0 + 49 FROM tab0
----
159
181
229
query I rowsort
SELECT + ( - col0 ) + col1 FROM tab2
----
-19
-62
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6828
SELECT DISTINCT + col2 + col1 DIV + 39 AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT + col2 + col1 / + 39 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - tab0.col1 + col0 + col0 FROM tab0
----
-27
-38
87
query I rowsort
SELECT + ( col2 ) + 36 * col2 + col1 AS col1 FROM tab2
----
1021
1030
1423
query I rowsort
SELECT - col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col0 + col1
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 NOT IN ( col0 * col0 + col2 - col1 )
----
query I rowsort
SELECT ALL + col1 * - col1 + col0 AS col1 FROM tab1
----
-36
-673
-89
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <> - col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6835
SELECT + col2 + - col0 DIV + col1 AS col1 FROM tab2
----
25
27
34
skipif mysql # not compatible
query I rowsort label-6835
SELECT + col2 + - col0 / + col1 AS col1 FROM tab2
----
25
27
34
query I rowsort
SELECT ALL - col2 * col0 + + tab1.col2 FROM tab1
----
-108
-3591
-7584
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT - tab0.col0 * + col2 AS col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL tab1.col0 * - tab1.col0 + tab1.col1 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT ALL + col0 + col0 AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT - tab2.col1 * tab2.col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT tab1.col2 + - col2 FROM tab1
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) <> + col1
----
query I rowsort
SELECT ALL col2 + - col2 * - col1 FROM tab0
----
2871
7544
98
query III rowsort
SELECT * FROM tab0 WHERE ( col0 * col2 ) < ( + col2 + + col2 )
----
query I rowsort
SELECT + col0 * + col0 + col1 * col2 + - col1 AS col0 FROM tab2
----
6870
7559
855
query I rowsort
SELECT tab0.col2 * - col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL + col0 * - col0 * col2 + col1 - - col1 * col0 * tab2.col2 FROM tab2
----
-186107
-38473
4567
onlyif mysql # use DIV operator for integer division
query I rowsort label-6849
SELECT ALL - col1 DIV col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6849
SELECT ALL - col1 / col0 FROM tab1
----
-8
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT - col1 DIV - col2 + col2 FROM tab0
----
35
83
98
skipif mysql # not compatible
query I rowsort label-6850
SELECT - col1 / - col2 + col2 FROM tab0
----
35
83
98
query I rowsort
SELECT col2 * col2 AS col1 FROM tab2 WHERE col0 - col0 IN ( col1 * - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6852
SELECT DISTINCT + col1 * col0 DIV col2 AS col2 FROM tab1
----
1
10
11
skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + col1 * col0 / col2 AS col2 FROM tab1
----
1
10
11
query I rowsort
SELECT + col1 + col1 + col2 FROM tab1
----
106
122
77
query I rowsort
SELECT ALL + tab2.col2 + + col0 AS col2 FROM tab2
----
104
117
34
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) NOT IN ( + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + tab2.col1 * tab2.col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL - col2 + + tab0.col2 * col2 AS col0 FROM tab0
----
0
1056
6642
query I rowsort
SELECT + ( col2 ) * 18 * col2 - col1 AS col1 FROM tab2
----
12109
13091
25975
query I rowsort
SELECT DISTINCT + 84 + - col0 * - 95 AS col0 FROM tab0
----
2364
3409
8539
query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT + cor1.col2 * + 80 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 85c4d7deaa055b65137c2cd7070a0316
query I rowsort
SELECT ALL col2 * ( 10 * + col2 ) + + col0 + col0 FROM tab0 AS cor0
----
10938
67418
80
query I rowsort
SELECT - - cor0.col0 * 71 FROM tab0 AS cor0
----
1704
2485
6319
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6864
SELECT DISTINCT col1 * ( - col2 ) + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6864
SELECT DISTINCT col1 * ( - col2 ) + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
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 - 58 + col2 AS col1 FROM tab2
----
-20
-31
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 col0 FROM tab0, tab1, tab0 cor0
----
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + col0 * col2 * + col2 + 19 * col2 FROM tab1
----
209019
739104
9774
query I rowsort
SELECT + 70 AS col0 FROM tab1
----
70
70
70
query IIIIIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab0, tab1 AS cor1
----
243 values hashing to 26173f1193178352de9a2e4ca7f09d53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 28 col0 FROM tab2 AS cor0
----
-1064
-728
-756
query I rowsort
SELECT ALL - - col1 * - ( col1 ) FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6875
SELECT DISTINCT col2 * - col2 + cor0.col2 DIV col0 - - col0 AS col1 FROM tab0 AS cor0
----
-1064
-6635
34
skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT col2 * - col2 + cor0.col2 / col0 - - col0 AS col1 FROM tab0 AS cor0
----
-1064
-6635
34
query I rowsort
SELECT + + col0 * 86 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT ALL - col1 + 33 AS col1 FROM tab2 cor0
----
-26
16
2
query I rowsort
SELECT + col2 * 53 AS col2 FROM tab1
----
2862
3021
5088
query I rowsort
SELECT col0 + + 85 AS col0 FROM tab1
----
149
165
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-6880
SELECT DISTINCT 36 + - 55 DIV col1 + col2 * tab2.col1 AS col1 FROM tab2
----
1570
679
872
skipif mysql # not compatible
query I rowsort label-6880
SELECT DISTINCT 36 + - 55 / col1 + col2 * tab2.col1 AS col1 FROM tab2
----
1570
679
872
query I rowsort
SELECT ALL + col1 + 4 + + col0 * col2 FROM tab0 AS cor0
----
136
7393
882
onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT DISTINCT col1 + - 87 DIV - col0 FROM tab0 AS cor0
----
89
91
99
skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT col1 + - 87 / - col0 FROM tab0 AS cor0
----
89
91
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT DISTINCT - col0 DIV + col0 + + col1 col1 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6883
SELECT DISTINCT - col0 / + col0 + + col1 col1 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 22 ) col2 FROM tab1 cor0
----
-22
query I rowsort
SELECT - - 84 * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
-2748
-49
-6799
query I rowsort
SELECT ALL + + cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT - ( + col0 ) DIV + col1 + 81 AS col1 FROM tab1 AS cor0
----
75
75
81
skipif mysql # not compatible
query I rowsort label-6887
SELECT - ( + col0 ) / + col1 + 81 AS col1 FROM tab1 AS cor0
----
75
75
81
query I rowsort
SELECT + col1 * cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 * - col1 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-6890
SELECT ALL - - col0 DIV - col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL - - col0 / - col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT + 67 * - col1 FROM tab1 cor0
----
-1742
-670
-871
query I rowsort
SELECT DISTINCT + 10 * col2 AS col0 FROM tab2 cor0
----
260
270
380
query I rowsort
SELECT - 92 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
query I rowsort
SELECT DISTINCT - ( + col0 * + ( + col1 ) ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - - cor0.col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col1 * + col2 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT DISTINCT + 51 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
51
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to ea0f747588ddf5869ee18a5e22d9f237
query I rowsort
SELECT DISTINCT + + col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - col1 + cor0.col0 * col0 FROM tab0 AS cor0
----
1128
490
7830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6901
SELECT ALL + cor0.col1 + - col1 * CAST( - 89 AS SIGNED ) FROM tab2 AS cor0
----
1530
2790
5310
skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL + cor0.col1 + - col1 * CAST ( - 89 AS INTEGER ) FROM tab2 AS cor0
----
1530
2790
5310
query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab0 cor0
----
-47
query I rowsort
SELECT - - col0 + col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col2 - col2 FROM tab0 cor0
----
-164
-2
-66
query I rowsort
SELECT + + col2 * col0 + col0 * col2 * col0 AS col1 FROM tab1 AS cor0
----
237120
622080
648
query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - 12 * - col2 + + ( 1 + - cor0.col0 ) AS col0 FROM tab0 AS cor0
----
-22
373
896
onlyif mysql # use DIV operator for integer division
query I rowsort label-6909
SELECT ALL - cor0.col1 + col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58
skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - cor0.col1 + col1 / + col1 AS col1 FROM tab2 AS cor0
----
-16
-30
-58
query I rowsort
SELECT - 5 * col1 FROM tab0 AS cor0
----
-430
-455
-485
query I rowsort
SELECT DISTINCT - + col0 + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6913
SELECT col1 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-6913
SELECT col1 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + 4 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - cor0.col0 + col1 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT + tab2.col2 + 12 FROM tab2, tab1 AS cor0
----
9 values hashing to 29b546233bf5a4d8e76418c2401f7992
onlyif mysql # use DIV operator for integer division
query I rowsort label-6917
SELECT ALL + col2 * + 69 + col0 DIV + 5 AS col1 FROM tab0 cor0
----
2281
5675
76
skipif mysql # not compatible
query I rowsort label-6917
SELECT ALL + col2 * + 69 + col0 / + 5 AS col1 FROM tab0 cor0
----
2281
5675
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-6918
SELECT ALL + col0 DIV col0 + + col0 col2 FROM tab2 AS cor0
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6918
SELECT ALL + col0 / col0 + + col0 col2 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT + col2 + - 23 AS col0 FROM tab0 AS cor0
----
-22
10
59
query I rowsort
SELECT ALL col2 - + cor0.col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6921
SELECT DISTINCT + - 74 DIV 74 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT + - 74 / 74 + - col2 AS col0 FROM tab0 AS cor0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col0 ) * col1 + + col2 col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT cor0.col0 + cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8a206af99264e378e55b667df888459e
query I rowsort
SELECT DISTINCT - - 31 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
31
query I rowsort
SELECT - col0 + cor0.col2 * col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT ALL - col1 * tab1.col1 + + col1 FROM tab1
----
-156
-650
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 43 col2 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT - col1 * cor0.col1 + - col0 * col1 AS col2 FROM tab1 AS cor0
----
-1209
-740
-754
query I rowsort
SELECT - 32 - col1 FROM tab1 AS cor0
----
-42
-45
-58
query I rowsort
SELECT DISTINCT + cor0.col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-6931
SELECT - ( - col1 ) DIV col0 col1 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6931
SELECT - ( - col1 ) / col0 col1 FROM tab1
----
0
0
8
query I rowsort
SELECT 11 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col2 * + 9 + - col1 AS col1 FROM tab0 AS cor0
----
-106
-383
-829
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6935
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
query I rowsort
SELECT ALL - ( col2 ) * col2 + + ( 39 ) AS col1 FROM tab0
----
-1050
-6685
38
query I rowsort
SELECT col2 * 75 FROM tab2
----
1950
2025
2850
query I rowsort
SELECT ALL - col2 * - cor0.col1 + - col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + 18 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT ALL col0 + + 53 AS col2 FROM tab0
----
142
77
88
query I rowsort
SELECT DISTINCT + 15 + tab2.col2 FROM tab2
----
41
42
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6942
SELECT ALL + CAST( 11 AS SIGNED ) + - tab2.col0 * - col2 AS col0 FROM tab2
----
200
2039
3013
skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + CAST ( 11 AS INTEGER ) + - tab2.col0 * - col2 AS col0 FROM tab2
----
200
2039
3013
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT 69 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 2810c3097fe4771e273cfff903357b40
query I rowsort
SELECT col1 * + 17 - + col1 FROM tab1
----
160
208
416
query I rowsort
SELECT + ( tab2.col1 * col1 ) + + col0 FROM tab2
----
3559
368
968
query I rowsort
SELECT - cor0.col0 * + col0 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col1 FROM tab2 AS cor0
----
-52
-52
-52
query I rowsort
SELECT cor0.col0 + 34 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 52c08cd59d50e4e475953ab826c18095
query I rowsort
SELECT - ( + col2 ) * + col1 + + ( col0 ) FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6951
SELECT tab2.col0 * + CAST( tab2.col2 AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
skipif mysql # not compatible
query I rowsort label-6951
SELECT tab2.col0 * + CAST ( tab2.col2 AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to 41d4c126bfd4bfab59ba5e83427c98e0
query I rowsort
SELECT 85 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab0 cor1, tab0, tab1 AS cor2
----
3645 values hashing to ea1a922b7fccb9d184b31eb4689e063b
onlyif mysql # use DIV operator for integer division
query I rowsort label-6954
SELECT ALL + 63 DIV col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + 63 / col2 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT - col2 * + col1 * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6956
SELECT + col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6956
SELECT + col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - cor0.col1 + - col1 - col1 FROM tab0 AS cor0
----
-258
-273
-291
query I rowsort
SELECT - col2 + + col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - 52 AS col0 FROM tab0
----
-52
-52
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 col0 FROM tab0
----
84
84
84
query I rowsort
SELECT col2 * col2 * + col0 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-6962
SELECT - col0 + - col2 DIV 63 + col2 FROM tab0 AS cor0
----
-34
-8
9
skipif mysql # not compatible
query I rowsort label-6962
SELECT - col0 + - col2 / 63 + col2 FROM tab0 AS cor0
----
-34
-8
9
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + 9 AS REAL ) AS col0 FROM tab0, tab2 AS cor0
----
9
query I rowsort
SELECT ALL - col2 * - col1 + + 69 * + col1 AS col1 FROM tab0 AS cor0
----
13741
6790
8772
query I rowsort
SELECT DISTINCT - + col1 * - ( - col0 ) - + col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT DISTINCT - cor0.col2 + + 39 + col0 FROM tab2 AS cor0
----
19
80
91
query I rowsort
SELECT ALL - + col0 * + col0 - + 13 FROM tab1 AS cor0
----
-22
-4109
-6413
query I rowsort
SELECT + ( - cor0.col0 ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6970
SELECT ALL - CAST( ( + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-6970
SELECT ALL - CAST ( ( + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL 89 * + col1 AS col2 FROM tab0 cor0
----
7654
8099
8633
query I rowsort
SELECT - ( - col1 ) * col1 + col2 - 12 AS col1 FROM tab0 AS cor0
----
7417
8351
9398
query I rowsort
SELECT DISTINCT + 83 + - ( col2 ) AS col2 FROM tab2 AS cor0
----
45
56
57
query I rowsort
SELECT col1 * 9 AS col1 FROM tab1
----
117
234
90
query I rowsort
SELECT DISTINCT + col0 + col2 * + col0 * 80 FROM tab0 AS cor0
----
2835
583929
63384
query I rowsort
SELECT cor0.col1 + - 55 FROM tab1 AS cor0
----
-29
-42
-45
query I rowsort
SELECT + col1 * 12 + - col1 AS col1 FROM tab0 AS cor0
----
1001
1067
946
query I rowsort
SELECT ALL ( + col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT + - 29 AS col1 FROM tab0 AS cor0
----
-29
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - col2 + 66 * col1 AS col1 FROM tab1 AS cor0
----
1662
603
762
query I rowsort
SELECT DISTINCT - col1 * + col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col0 * col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 38 + col1 AS col0 FROM tab0 AS cor0
----
124
129
135
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6985
SELECT DISTINCT 16 - + col2 * CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
1264
1420
586
skipif mysql # not compatible
query I rowsort label-6985
SELECT DISTINCT 16 - + col2 * CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
1264
1420
586
query I rowsort
SELECT DISTINCT - col0 * + col1 * col1 + 2 AS col2 FROM tab2 AS cor0
----
-22829
-271516
-6725
query I rowsort
SELECT DISTINCT 64 * - col2 + col2 * - 78 FROM tab2 cor0
----
-3692
-3834
-5396
query I rowsort
SELECT - col0 * + col2 + + col0 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT + + col1 + - col2 * col1 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 col1 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT - col2 + col0 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL col0 + - col0 * col1 + col2 AS col2 FROM tab0 AS cor0
----
-2007
-3359
-7928
query I rowsort
SELECT DISTINCT + 45 - col1 FROM tab1 AS cor0
----
19
32
35
query I rowsort
SELECT ALL + 78 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
query I rowsort
SELECT ALL + col0 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + + cor0.col0 * + cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT - cor1.col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + ( col2 ) * col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col0 FROM tab1 AS cor0
----
-29
query I rowsort
SELECT DISTINCT + tab2.col1 + - ( col2 ) AS col0 FROM tab2
----
-21
33
4
query I rowsort
SELECT + col1 * col0 + col2 * + 96 FROM tab1 AS cor0
----
10256
5262
6112
query I rowsort
SELECT - cor0.col2 + 24 AS col1 FROM tab1 AS cor0
----
-30
-33
-72
query I rowsort
SELECT - + ( col2 ) FROM tab2 cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7006
SELECT 0 DIV ( col0 ) + - tab1.col2 FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7006
SELECT 0 / ( col0 ) + - tab1.col2 FROM tab1
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7007
SELECT CAST( + 33 AS SIGNED ) + col2 * 89 * col0 col0 FROM tab0
----
3148
649555
70521
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7007
SELECT CAST ( + 33 AS INTEGER ) + col2 * 89 * col0 col0 FROM tab0
----
3148
649555
70521
query I rowsort
SELECT ALL + 79 + - col1 AS col1 FROM tab2
----
20
48
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7009
SELECT - + col1 + cor0.col1 DIV 7 col0 FROM tab1 cor0
----
-12
-23
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7009
SELECT - + col1 + cor0.col1 / 7 col0 FROM tab1 cor0
----
-12
-23
-9
query I rowsort
SELECT - ( - col0 * col0 ) AS col2 FROM tab0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab0
----
89
query I rowsort
SELECT ALL ( - col2 ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + col1 + col1 * + 50 FROM tab0 AS cor0
----
4386
4641
4947
query I rowsort
SELECT - col0 * + 18 + + 23 * + col0 FROM tab2 AS cor0
----
35
390
395
onlyif mysql # use DIV operator for integer division
query I rowsort label-7015
SELECT DISTINCT - + col2 DIV ( col1 * + cor0.col2 ) AS col0 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT - + col2 / ( col1 * + cor0.col2 ) AS col0 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL - - cor0.col1 + + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7017
SELECT ALL - col2 DIV 56 + 80 * - col0 FROM tab0 cor0
----
-1920
-2800
-7121
skipif mysql # not compatible
query I rowsort label-7017
SELECT ALL - col2 / 56 + 80 * - col0 FROM tab0 cor0
----
-1920
-2800
-7121
query I rowsort
SELECT ALL col1 - 32 * + 88 FROM tab0 AS cor0
----
-2719
-2725
-2730
query I rowsort
SELECT - col2 + + 68 FROM tab1 AS cor0
----
-28
11
14
query I rowsort
SELECT - col0 * col0 * - col2 + col0 FROM tab0 AS cor0
----
1260
19032
649611
query I rowsort
SELECT DISTINCT + col1 * - 95 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT DISTINCT col2 * + ( - col2 * + cor0.col1 ) FROM tab0 cor0
----
-611884
-93654
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7023
SELECT - col1 DIV + col2 + 13 + + col1 FROM tab1
----
23
26
39
skipif mysql # not compatible
query I rowsort label-7023
SELECT - col1 / + col2 + 13 + + col1 FROM tab1
----
23
26
39
query I rowsort
SELECT DISTINCT - col0 * col0 + col1 AS col1 FROM tab2
----
-18
-6025
-6224
query IIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT col0 * + 52 + ( col0 ) FROM tab0 cor0
----
1272
1855
4717
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + ( col0 ) col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col2 - - cor0.col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT + - col2 * col0 * col1 - - col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
-36485
-4214
-99847
skipif mysql # not compatible
query I rowsort label-7029
SELECT + - col2 * col0 * col1 - - col2 / - col1 AS col0 FROM tab1 AS cor0
----
-36485
-4214
-99847
query I rowsort
SELECT DISTINCT - - col2 * 19 + + 44 FROM tab0 cor0
----
1602
63
671
query I rowsort
SELECT ALL - col2 + ( ( cor0.col2 ) ) * + ( col2 ) AS col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 - cor0.col1 * - cor0.col0 FROM tab1 AS cor0
----
1209
740
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-7033
SELECT ALL + tab0.col1 DIV - col2 + - ( - col0 ) * col0 AS col1 FROM tab0
----
1128
574
7920
skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL + tab0.col1 / - col2 + - ( - col0 ) * col0 AS col1 FROM tab0
----
1128
574
7920
onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT ALL + col0 + - col1 DIV + 51 col1 FROM tab2
----
7
77
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL + col0 + - col1 / + 51 col1 FROM tab2
----
7
77
79
query I rowsort
SELECT ALL 62 FROM tab2, tab2 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT - tab0.col1 * 21 + + col1 AS col1 FROM tab0
----
-1720
-1820
-1940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7037
SELECT + CAST( col0 AS SIGNED ) - - col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort label-7037
SELECT + CAST ( col0 AS INTEGER ) - - col2 * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT - 56 + - col2 * col0 + + 54 FROM tab1 AS cor0
----
-164
-3650
-7682
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7039
SELECT DISTINCT - col0 + - ( col0 * + col1 + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7039
SELECT DISTINCT - col0 + - ( col0 * + col1 + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
query I rowsort
SELECT ALL cor0.col1 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col1 + 50 AS col1 FROM tab2 AS cor0
----
-9
19
33
query I rowsort
SELECT ALL + col1 + + col2 + - col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( col1 ) * + col1 - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1079
470
728
query I rowsort
SELECT - ( + col0 ) * col2 - + 63 AS col1 FROM tab0 cor0
----
-7361
-855
-98
query I rowsort
SELECT col2 + + col2 AS col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT - 99 AS col1 FROM tab1
----
-99
-99
-99
query I rowsort
SELECT DISTINCT + cor0.col2 + col2 * cor0.col2 AS col1 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT ALL - + ( + col1 ) + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col2 * col0 + - 48 * + col1 + + col2 FROM tab2 AS cor0
----
-1650
-3780
-4834
query I rowsort
SELECT DISTINCT - + col0 + - col0 * - ( - col2 ) * + col2 AS col1 FROM tab1 cor0
----
-208000
-737360
-8751
query I rowsort
SELECT + + 39 * + col2 AS col2 FROM tab2 AS cor0
----
1014
1053
1482
query I rowsort
SELECT ALL 10 AS col2 FROM tab1 cor0
----
10
10
10
query I rowsort
SELECT ALL - + col2 * col1 * col0 AS col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-7054
SELECT DISTINCT + ( col2 ) * col1 DIV + col0 FROM tab2 AS cor0
----
119
19
8
skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT + ( col2 ) * col1 / + col0 FROM tab2 AS cor0
----
119
19
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT + + col0 * cor0.col0 DIV col1 FROM tab2 AS cor0
----
1
103
367
skipif mysql # not compatible
query I rowsort label-7055
SELECT + + col0 * cor0.col0 / col1 FROM tab2 AS cor0
----
1
103
367
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 - - cor0.col1 + - 83 AS col0 FROM tab2 AS cor0
----
-24
-52
-66
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to b8435223668db186a5012e4112253f28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 86 col2 FROM tab2 AS cor0
----
-7
-79
-8
query I rowsort
SELECT + col1 * 78 FROM tab2 AS cor0
----
1326
2418
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col2 col1 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 11 col1 FROM tab1 AS cor0
----
11
11
11
query I rowsort
SELECT + - cor0.col2 + col0 AS col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * col0 col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + + ( col2 ) - ( cor0.col1 ) * + col1 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + - 70 + - col1 - - ( - col1 ) * + col2 FROM tab1 AS cor0
----
-1331
-1500
-650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7067
SELECT ALL + ( + ( + col0 ) * + CAST( NULL AS SIGNED ) + - col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL + ( + ( + col0 ) * + CAST ( NULL AS INTEGER ) + - col2 ) AS col0 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7068
SELECT DISTINCT col0 * - col2 + + CAST( + col1 AS SIGNED ) + + col1 FROM tab1 AS cor0
----
-110
-3628
-7654
skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT col0 * - col2 + + CAST ( + col1 AS INTEGER ) + + col1 FROM tab1 AS cor0
----
-110
-3628
-7654
query I rowsort
SELECT + 61 FROM tab1 AS cor0
----
61
61
61
query I rowsort
SELECT + 4 + + col0 AS col0 FROM tab1 AS cor0
----
68
7
84
query I rowsort
SELECT DISTINCT col1 * col1 + + cor0.col2 * + col2 AS col1 FROM tab1 AS cor0
----
3349
3592
9385
query I rowsort
SELECT DISTINCT + - col2 + - col1 AS col0 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT 60 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT ALL - col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT - cor0.col2 * col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col1 * - ( col0 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT + - ( cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + + 40 * col1 FROM tab1 AS cor0
----
1040
400
520
query I rowsort
SELECT ALL - ( 71 ) AS col2 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab0, tab1 AS cor0
----
34
query I rowsort
SELECT DISTINCT 39 FROM tab2
----
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7082
SELECT + 16 + - ( col1 ) * - CAST( col2 AS SIGNED ) * col0 AS col1 FROM tab0
----
3411
664134
68128
skipif mysql # not compatible
query I rowsort label-7082
SELECT + 16 + - ( col1 ) * - CAST ( col2 AS INTEGER ) * col0 AS col1 FROM tab0
----
3411
664134
68128
query I rowsort
SELECT ALL + - cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7084
SELECT 14 DIV col0 - col2 AS col0 FROM tab1
----
-50
-57
-96
skipif mysql # not compatible
query I rowsort label-7084
SELECT 14 / col0 - col2 AS col0 FROM tab1
----
-50
-57
-96
query I rowsort
SELECT - 77 AS col1 FROM tab0 AS cor0
----
-77
-77
-77
query I rowsort
SELECT ALL 46 FROM tab2
----
46
46
46
query I rowsort
SELECT - + col0 + - 66 FROM tab2 AS cor0
----
-144
-145
-73
query I rowsort
SELECT ALL 83 FROM tab2
----
83
83
83
query I rowsort
SELECT ( + 93 ) + - col2 FROM tab1
----
-3
36
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) + - col0 col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL - cor0.col1 * + col2 + + col1 * - 61 + col2 FROM tab2 cor0
----
-1645
-2701
-5107
query I rowsort
SELECT ALL col1 * col2 - + ( col1 ) AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT DISTINCT + - col1 * + col0 + 58 * 9 FROM tab0 AS cor0
----
-1542
-2873
-7577
query I rowsort
SELECT - + 67 * col2 AS col0 FROM tab0 AS cor0
----
-2211
-5494
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + col1 * CAST ( 14 + - col0 AS REAL ) col0 FROM tab2 AS cor0
----
-1122
-3835
186
onlyif mysql # use DIV operator for integer division
query I rowsort label-7096
SELECT ALL col2 DIV col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7096
SELECT ALL col2 / col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + 61 AS col2 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT ALL + - col0 * col1 + cor0.col0 * col0 FROM tab2 cor0
----
-168
1482
4898
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7099
SELECT ALL CAST( NULL AS SIGNED ) col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7099
SELECT ALL CAST ( NULL AS INTEGER ) col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 35 * - col0 + cor0.col2 - col1 AS col0 FROM tab0 AS cor0
----
-1321
-3124
-893
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * - col0 col2 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( tab2.col2 ) + - cor0.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 7496b8a48c0f7a3c9ef4a8d8a4843fb8
query I rowsort
SELECT + - col1 - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT + col2 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL + col1 * col1 * col0 + col2 AS col0 FROM tab1
----
13616
2082
6457
query I rowsort
SELECT DISTINCT col1 + + 66 * 86 FROM tab2
----
5693
5707
5735
query I rowsort
SELECT ALL - + col1 * 31 AS col0 FROM tab1 AS cor0
----
-310
-403
-806
query I rowsort
SELECT DISTINCT + col0 * + col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - col0 + - 74 FROM tab2 cor0
----
-152
-153
-81
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-7111
SELECT DISTINCT - col0 + - 74 DIV + col2 AS col1 FROM tab0 AS cor0
----
-109
-26
-89
skipif mysql # not compatible
query I rowsort label-7111
SELECT DISTINCT - col0 + - 74 / + col2 AS col1 FROM tab0 AS cor0
----
-109
-26
-89
query I rowsort
SELECT + col2 * + col2 * - 36 FROM tab0 AS cor0
----
-242064
-36
-39204
query I rowsort
SELECT ALL 31 AS col1 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT - col2 * 1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + - 20 * - 7 AS col0 FROM tab2 AS cor0
----
140
140
140
query I rowsort
SELECT DISTINCT - ( - col0 ) AS col1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + - ( + col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + + col1 * ( 37 + - col2 ) col1 FROM tab2 AS cor0
----
-55
283
623
query I rowsort
SELECT DISTINCT + 90 + ( - cor0.col2 ) * + col0 * + col2 FROM tab2 AS cor0
----
-113986
-5013
-52638
query I rowsort
SELECT col1 * + 79 AS col1 FROM tab1 AS cor0
----
1027
2054
790
query I rowsort
SELECT ALL - + 6 FROM tab2 AS cor0
----
-6
-6
-6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7122
SELECT ALL + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col1 + - ( col0 ) * col1 AS col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT - + 56 AS col2 FROM tab2 AS cor0
----
-56
-56
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT + + 64 + 39 DIV + col1 AS col2 FROM tab0 AS cor0
----
64
64
64
skipif mysql # not compatible
query I rowsort label-7125
SELECT + + 64 + 39 / + col1 AS col2 FROM tab0 AS cor0
----
64
64
64
query I rowsort
SELECT + ( col0 ) * - col0 * - 13 FROM tab1 AS cor0
----
117
53248
83200
query I rowsort
SELECT DISTINCT - 67 + - col0 AS col2 FROM tab2 cor0
----
-145
-146
-74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7128
SELECT DISTINCT + 15 + - ( - col0 ) * - CAST( col2 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
-114061
-5088
-52713
skipif mysql # not compatible
query I rowsort label-7128
SELECT DISTINCT + 15 + - ( - col0 ) * - CAST ( col2 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
-114061
-5088
-52713
query I rowsort
SELECT ALL tab1.col0 * col0 * + col1 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-7130
SELECT ALL col1 * - 0 DIV ( col0 ) + + 51 DIV col0 AS col0 FROM tab2
----
0
0
7
skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL col1 * - 0 / ( col0 ) + + 51 / col0 AS col0 FROM tab2
----
0
0
7
query I rowsort
SELECT ALL + 13 AS col2 FROM tab1 cor0
----
13
13
13
query I rowsort
SELECT - - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - + 50 FROM tab0 AS cor0
----
-50
-50
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7134
SELECT DISTINCT CAST( NULL AS SIGNED ) * tab0.col0 * cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7134
SELECT DISTINCT CAST ( NULL AS INTEGER ) * tab0.col0 * cor0.col2 AS col1 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col0 + col0 + tab2.col2 AS col0 FROM tab2
----
182
196
41
query I rowsort
SELECT - 16 * tab1.col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 724f41b284b67c3f4af1d97d19c9db24
query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2, tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + cor0.col2 + 23 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 1b54cd7e99676953f35cce80f6ec3c34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7139
SELECT 46 DIV col1 FROM tab1
----
1
3
4
skipif mysql # not compatible
query I rowsort label-7139
SELECT 46 / col1 FROM tab1
----
1
3
4
query I rowsort
SELECT DISTINCT col1 * - col1 + + ( col2 ) AS col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT + 84 + + col2 FROM tab2 AS cor0
----
110
111
122
query I rowsort
SELECT - + 35 * col0 AS col1 FROM tab1 AS cor0
----
-105
-2240
-2800
query I rowsort
SELECT ALL - col1 * - col0 + - 4 * - col0 + - col1 FROM tab1 AS cor0
----
1347
64
886
query I rowsort
SELECT ALL - col1 * + col0 + - cor0.col2 AS col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - 99 FROM tab2, tab0 cor0, tab1 cor1
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT - col2 + - col0 - - 49 FROM tab2 AS cor0
----
-55
-68
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * + col2 + - 2 + + 58 col0 FROM tab1 AS cor0
----
-2860
-3193
-9160
query I rowsort
SELECT DISTINCT - + cor0.col0 + + col2 * 65 AS col1 FROM tab0 AS cor0
----
2121
30
5241
query I rowsort
SELECT ALL 62 + + col2 * col2 AS col0 FROM tab1 cor0
----
2978
3311
9278
query I rowsort
SELECT - + col2 + cor0.col1 - 37 * col0 * - col2 AS col0 FROM tab2 cor0
----
111053
6997
75069
query I rowsort
SELECT col1 + + 45 * col2 AS col1 FROM tab1 AS cor0
----
2456
2575
4333
onlyif mysql # use DIV operator for integer division
query I rowsort label-7152
SELECT DISTINCT - col0 * + cor0.col2 + - cor0.col2 DIV + col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3004
skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT - col0 * + cor0.col2 + - cor0.col2 / + col1 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3004
onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT DISTINCT - col2 DIV ( cor0.col1 ) FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - col2 / ( cor0.col1 ) FROM tab2 AS cor0
----
-2
0
query I rowsort
SELECT + col1 * cor0.col0 + - 22 AS col2 FROM tab1 AS cor0
----
1018
56
618
query I rowsort
SELECT DISTINCT + col0 * - 69 + col1 * col2 * - cor0.col2 FROM tab1 AS cor0
----
-125328
-36906
-76023
query I rowsort
SELECT ALL col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - + cor0.col0 + col1 - 46 * col0 FROM tab2 AS cor0
----
-298
-3607
-3696
query I rowsort
SELECT ALL + col0 + 88 AS col1 FROM tab1 AS cor0
----
152
168
91
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7160
SELECT ALL col1 DIV + col2 + - 19 AS col1 FROM tab1
----
-19
-19
-19
skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL col1 / + col2 + - 19 AS col1 FROM tab1
----
-19
-19
-19
query I rowsort
SELECT ALL col0 + col0 + 36 FROM tab1
----
164
196
42
query I rowsort
SELECT ALL 30 + - tab2.col0 FROM tab2
----
-48
-49
23
query I rowsort
SELECT - + col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + - 70 + + col1 FROM tab1 cor0
----
-44
-57
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * - col0 * + col2 col0 FROM tab2 AS cor0
----
-119593
-51017
-5828
onlyif mysql # use DIV operator for integer division
query I rowsort label-7166
SELECT ALL - + col0 DIV ( + col2 * col2 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL - + col0 / ( + col2 * col2 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + 12 * - col2 FROM tab0 AS cor0
----
-11
-363
-902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7168
SELECT DISTINCT - col1 * + 79 + - col2 * CAST( + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-14651
-7760
-9632
skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - col1 * + 79 + - col2 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-14651
-7760
-9632
query I rowsort
SELECT ALL + + 79 * - col0 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT DISTINCT - + ( - col1 ) + - col1 AS col0 FROM tab1 cor0
----
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262
query I rowsort
SELECT ALL 72 * + cor0.col2 FROM tab0 AS cor0
----
2376
5904
72
query I rowsort
SELECT DISTINCT col1 + + ( + col2 * 82 ) + col1 AS col0 FROM tab0 AS cor0
----
276
2878
6906
query I rowsort
SELECT DISTINCT + + ( col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - col2 + - 28 FROM tab0 cor0
----
-110
-29
-61
query I rowsort
SELECT + ( - col2 ) * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7177
SELECT DISTINCT col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT col1 / col1 AS col2 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL cor0.col2 * 63 * col0 FROM tab0 AS cor0
----
2205
459774
49896
query I rowsort
SELECT + ( cor0.col0 ) AS col2 FROM tab0 cor0
----
24
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7180
SELECT ALL + + CAST( + 25 AS SIGNED ) * col1 - - col0 AS col2 FROM tab2 AS cor0
----
1553
504
782
skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL + + CAST ( + 25 AS INTEGER ) * col1 - - col0 AS col2 FROM tab2 AS cor0
----
1553
504
782
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col1 * col1 col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL - + ( 57 ) AS col1 FROM tab0 AS cor0
----
-57
-57
-57
query I rowsort
SELECT DISTINCT - - ( - 0 ) * - col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - cor1.col1 * + 52 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-4472
-4732
-5044
query I rowsort
SELECT cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - ( - 79 ) + - col2 FROM tab1
----
-17
22
25
query I rowsort
SELECT DISTINCT 2 AS col2 FROM tab2
----
2
query I rowsort
SELECT 8 + col2 AS col1 FROM tab2 AS cor0
----
34
35
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - col0 col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - col0 * - col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT 94 + col1 AS col1 FROM tab0
----
180
185
191
query I rowsort
SELECT DISTINCT 71 AS col2 FROM tab2
----
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT tab2.col1 DIV cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80fd295d1248bc7aa727f742cd9d205f
skipif mysql # not compatible
query I rowsort label-7193
SELECT tab2.col1 / cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 80fd295d1248bc7aa727f742cd9d205f
query I rowsort
SELECT + - cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT + col2 DIV col1 + + col0 * col0 FROM tab1
----
11
4101
6407
skipif mysql # not compatible
query I rowsort label-7195
SELECT + col2 / col1 + + col0 * col0 FROM tab1
----
11
4101
6407
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT DISTINCT 29 + col1 AS col0 FROM tab1 AS cor0
----
39
42
55
query I rowsort
SELECT ALL - col1 - + col1 * col1 FROM tab1 cor0
----
-110
-182
-702
query I rowsort
SELECT ALL cor0.col2 * - col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col1 + col0 - - cor0.col2 AS col0 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT - - col0 * + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-7202
SELECT + col0 * col0 DIV 22 FROM tab2 AS cor0
----
2
276
283
skipif mysql # not compatible
query I rowsort label-7202
SELECT + col0 * col0 / 22 FROM tab2 AS cor0
----
2
276
283
query I rowsort
SELECT DISTINCT + - col0 * + col1 AS col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT 50 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT - - 95 FROM tab2 AS cor0
----
95
query I rowsort
SELECT ALL + col1 + col1 AS col2 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL + cor0.col0 * - 69 + + col1 AS col0 FROM tab0 AS cor0
----
-1570
-2318
-6050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 * - col0 col2 FROM tab0
----
-1824
-2660
-6764
query I rowsort
SELECT DISTINCT + 19 AS col2 FROM tab2, tab2 AS cor0
----
19
query I rowsort
SELECT DISTINCT 84 FROM tab2, tab0 cor0
----
84
query I rowsort
SELECT + ( - 65 ) * col2 * - col0 FROM tab0 AS cor0
----
2275
474370
51480
query I rowsort
SELECT ALL col2 * col2 * col2 + col0 + col2 AS col0 FROM tab2 cor0
----
17680
19717
54989
query I rowsort
SELECT 71 * + 19 * col0 AS col2 FROM tab2 AS cor0
----
105222
106571
9443
query I rowsort
SELECT + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7215
SELECT - col1 DIV + col0 - col2 FROM tab1
----
-57
-62
-96
skipif mysql # not compatible
query I rowsort label-7215
SELECT - col1 / + col0 - col2 FROM tab1
----
-57
-62
-96
query I rowsort
SELECT - col0 * ( col2 ) * cor0.col0 + - col2 * + 46 FROM tab1 AS cor0
----
-236094
-2970
-618816
query I rowsort
SELECT DISTINCT + col2 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL col0 + - 35 * 91 FROM tab0 AS cor0
----
-3096
-3150
-3161
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col1 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7220
SELECT - - col0 DIV ( + col0 ) FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7220
SELECT - - col0 / ( + col0 ) FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL 51 AS col2 FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab2, tab1 cor0
----
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-7223
SELECT - - col2 DIV + col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7223
SELECT - - col2 / + col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col1 + + 11 * - col0 AS col0 FROM tab1 AS cor0
----
-694
-7
-867
query I rowsort
SELECT - 79 FROM tab2 cor0
----
-79
-79
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + 16 * col1 * ( + cor0.col1 + + col2 ) col1 FROM tab2 AS cor0
----
14977
28799
80299
query I rowsort
SELECT ALL + col0 + + col1 * col2 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - 64 * + col1 AS col0 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT ALL + - ( - cor0.col1 ) * col1 AS col0 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7230
SELECT ALL + CAST( NULL AS SIGNED ) * 50 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7230
SELECT ALL + CAST ( NULL AS INTEGER ) * 50 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + col1 + - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 80 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT DISTINCT + + col1 + + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-7234
SELECT DISTINCT + col1 DIV - ( col0 ) + col2 * + col1 - - col0 FROM tab1 AS cor0
----
1328
1399
634
skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT + col1 / - ( col0 ) + col2 * + col1 - - col0 FROM tab1 AS cor0
----
1328
1399
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7235
SELECT col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7235
SELECT col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + ( + col0 * + col1 ) AS col0 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL 51 FROM tab1
----
51
51
51
query I rowsort
SELECT DISTINCT tab1.col1 + - col0 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT tab2.col2 * + tab2.col0 - - col0 DIV col0 FROM tab2
----
190
2029
3003
skipif mysql # not compatible
query I rowsort label-7239
SELECT tab2.col2 * + tab2.col0 - - col0 / col0 FROM tab2
----
190
2029
3003
query I rowsort
SELECT - col1 * + col1 AS col1 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT ALL + col0 DIV ( cor0.col1 * col1 ) + col2 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7241
SELECT ALL + col0 / ( cor0.col1 * col1 ) + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 20 * col2 FROM tab0
----
1640
20
660
query I rowsort
SELECT 42 AS col1 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2 cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-7245
SELECT ALL - col0 DIV 22 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
62
77
skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL - col0 / 22 + cor0.col0 AS col1 FROM tab1 AS cor0
----
3
62
77
query I rowsort
SELECT - col2 * col2 + + 54 FROM tab0
----
-1035
-6670
53
query I rowsort
SELECT tab0.col2 + 78 AS col1 FROM tab0
----
111
160
79
query I rowsort
SELECT + col0 + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT col1 + + col2 * - col2 FROM tab0
----
-1003
-6633
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7250
SELECT + tab0.col2 + CAST( - ( col0 ) AS SIGNED ) * 92 AS col1 FROM tab0
----
-2175
-3219
-8106
skipif mysql # not compatible
query I rowsort label-7250
SELECT + tab0.col2 + CAST ( - ( col0 ) AS INTEGER ) * 92 AS col1 FROM tab0
----
-2175
-3219
-8106
query I rowsort
SELECT DISTINCT col1 * ( - col1 ) FROM tab2
----
-289
-3481
-961
query I rowsort
SELECT - col0 * + col2 + ( + col1 * + 36 ) AS col2 FROM tab2
----
-2390
927
96
query I rowsort
SELECT col2 * col0 + col0 * col2 FROM tab0
----
14596
1584
70
query I rowsort
SELECT col1 + + ( ( + col2 ) ) FROM tab2
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7255
SELECT ALL - - col0 DIV - 37 + - 42 FROM tab1 AS cor0
----
-42
-43
-44
skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - - col0 / - 37 + - 42 FROM tab1 AS cor0
----
-42
-43
-44
query I rowsort
SELECT cor0.col1 * ( - ( + cor0.col2 ) ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 * - 12 AS col1 FROM tab0 AS cor0
----
12
396
984
query I rowsort
SELECT DISTINCT col1 * + col2 - - col0 * + 90 AS col1 FROM tab0
----
15472
3247
4998
query I rowsort
SELECT ALL + col0 - 46 FROM tab1
----
-43
18
34
query I rowsort
SELECT ALL ( col0 * + col1 ) - 79 * + col2 FROM tab1
----
-3863
-4188
-6544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7261
SELECT ALL + CAST( NULL AS DECIMAL ) * - 27 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + CAST ( NULL AS REAL ) * - 27 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 77 * + tab2.col2 FROM tab2
----
2002
2079
2926
query IIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 WHERE NULL = NULL
----
query I rowsort
SELECT ALL - col1 - - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col1 + - 23 * + col2 - + 76 AS col0 FROM tab1
----
-1292
-1377
-2271
query I rowsort
SELECT col1 - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - 69 * col2 + + col0 FROM tab2 AS cor0
----
1870
1872
2701
query I rowsort
SELECT DISTINCT - col0 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-3
-64
-80
query I rowsort
SELECT + cor0.col0 + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT - + col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL 14 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT - - 75 AS col2 FROM tab2 AS cor0
----
75
75
75
query I rowsort
SELECT ALL col2 + col0 * - 13 * - col1 AS col2 FROM tab0 AS cor0
----
105369
26865
44136
query I rowsort
SELECT + col0 + + cor0.col0 * + 85 - + col2 FROM tab0 AS cor0
----
2031
3009
7572
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7276
SELECT ALL col0 + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7276
SELECT ALL col0 + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + - col2 * ( - col0 ) AS col0 FROM tab2 cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-7278
SELECT + + 91 DIV col1 + 61 FROM tab0 AS cor0
----
61
62
62
skipif mysql # not compatible
query I rowsort label-7278
SELECT + + 91 / col1 + 61 FROM tab0 AS cor0
----
61
62
62
query I rowsort
SELECT DISTINCT - ( - col1 ) * + 32 AS col1 FROM tab0 AS cor0
----
2752
2912
3104
query I rowsort
SELECT + col0 * - col1 + col1 AS col2 FROM tab0 cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - 71 AS col0 FROM tab2 AS cor0
----
-71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 * col2 ) + col1 * col0 * tab1.col1 col1 FROM tab1
----
22736
4944
9649
query I rowsort
SELECT - cor2.col2 AS col2 FROM tab1, tab2 cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT + 86 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 42 AS col2 FROM tab0, tab1 AS cor0
----
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 col1 FROM tab0
----
58
58
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7288
SELECT - 94 DIV col2 FROM tab0
----
-1
-2
-94
skipif mysql # not compatible
query I rowsort label-7288
SELECT - 94 / col2 FROM tab0
----
-1
-2
-94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab0.col1 * + 28 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to a332cfd25dcf64ec1aac7d898652e988
query I rowsort
SELECT DISTINCT + + cor0.col1 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + ( col2 ) * + 30 FROM tab2 cor0
----
1140
780
810
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
query I rowsort
SELECT + col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col2 * col2 + col0 AS col1 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT 70 + col0 AS col0 FROM tab0 AS cor0
----
105
159
94
query I rowsort
SELECT + tab2.col1 * col0 + - 10 AS col0 FROM tab2
----
1333
207
4592
query I rowsort
SELECT col0 * + tab0.col0 + 61 AS col2 FROM tab0
----
1286
637
7982
query I rowsort
SELECT + tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col1 * - 81 FROM tab0 AS cor0
----
6966
7371
7857
query I rowsort
SELECT col1 + - 69 AS col0 FROM tab0
----
17
22
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7303
SELECT DISTINCT + col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7303
SELECT DISTINCT + col1 / + col0 AS col0 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7304
SELECT cor0.col2 * col2 DIV col1 AS col2 FROM tab0 AS cor0
----
0
12
73
skipif mysql # not compatible
query I rowsort label-7304
SELECT cor0.col2 * col2 / col1 AS col2 FROM tab0 AS cor0
----
0
12
73
query I rowsort
SELECT + col2 * col2 + + cor0.col2 * 49 FROM tab1 AS cor0
----
13920
5562
6042
query I rowsort
SELECT DISTINCT + 73 * col2 FROM tab0 AS cor0
----
2409
5986
73
query I rowsort
SELECT + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + ( - col1 ) * col2 * - col1 - - col2 AS col0 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT ALL - + ( col0 ) + - col1 * col1 FROM tab1 AS cor0
----
-164
-249
-679
query I rowsort
SELECT + 80 + col0 FROM tab0 AS cor0
----
104
115
169
query I rowsort
SELECT - 8 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT ALL + col1 * - col2 AS col2 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - - col2 * + 57 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT DISTINCT ( col1 ) + + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7315
SELECT CAST( - col2 AS SIGNED ) * cor0.col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif mysql # not compatible
query I rowsort label-7315
SELECT CAST ( - col2 AS INTEGER ) * cor0.col1 + col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - ( + col0 ) * - cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT tab2.col0 + - col1 * 10 * + col0 FROM tab2
----
-13351
-2163
-45942
query I rowsort
SELECT ALL + + col1 * - col0 + + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - ( col0 ) * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - cor0.col2 * - 84 + col0 FROM tab0 AS cor0
----
119
2796
6977
query I rowsort
SELECT tab1.col2 AS col0 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 12 FROM tab2, tab2 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # use DIV operator for integer division
query I rowsort label-7324
SELECT ALL 40 DIV + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80fe676dc89effc6095eab2edff03b51
skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL 40 / + cor0.col0 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 80fe676dc89effc6095eab2edff03b51
query I rowsort
SELECT - 43 * col0 + + col2 + - ( + col0 ) * col1 FROM tab2 cor0
----
-4702
-491
-7930
query I rowsort
SELECT + - col2 + + cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
-2
-37
-70
query I rowsort
SELECT ALL + cor0.col2 + - 44 FROM tab0, tab2 AS cor0
----
9 values hashing to 7bc42791208aac4a113a77bb6943b2bc
query I rowsort
SELECT - col0 * cor0.col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + 87 * - col0 AS col1 FROM tab0
----
-2088
-3045
-7743
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7330
SELECT ALL - CAST( NULL AS DECIMAL ) * + ( col0 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - CAST ( NULL AS REAL ) * + ( col0 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 66 * col1 AS col0 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT - ( tab1.col2 ) + + col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - + col0 * cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + + col1 * - cor0.col2 + + col0 + col2 AS col1 FROM tab0 AS cor0
----
-2781
-61
-7291
query I rowsort
SELECT ALL + col0 * col0 + - col0 * - cor0.col2 * 90 AS col2 FROM tab0 AS cor0
----
4375
664741
71856
query I rowsort
SELECT + col0 + - 6 * + col1 AS col1 FROM tab2 AS cor0
----
-179
-23
-276
query I rowsort
SELECT DISTINCT + + col2 * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col1 * col2 - 39 * + col1 AS col2 FROM tab1 cor0
----
180
390
741
query I rowsort
SELECT ALL - 42 + + col1 FROM tab1
----
-16
-29
-32
query I rowsort
SELECT ALL col1 * tab1.col0 + ( 90 * col0 ) FROM tab1
----
348
6400
8240
query I rowsort
SELECT - + cor0.col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + 69 + 52 FROM tab0 AS cor0
----
121
121
121
query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT + tab2.col1 DIV col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-7344
SELECT + tab2.col1 / col0 FROM tab2
----
0
0
4
query I rowsort
SELECT DISTINCT + + col2 + col0 * - 90 FROM tab1 AS cor0
----
-216
-5703
-7104
query I rowsort
SELECT + tab1.col1 * - col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - 50 AS col1 FROM tab2, tab0, tab1 cor0
----
27 values hashing to faf91d5263c18db4877a3c30c47e2487
query I rowsort
SELECT ALL - 28 AS col2 FROM tab0
----
-28
-28
-28
query I rowsort
SELECT DISTINCT 26 FROM tab2
----
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7350
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 98 col0 FROM tab1 cor0
----
-72
-85
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col2 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL 47 * - col1 AS col2 FROM tab1
----
-1222
-470
-611
query I rowsort
SELECT - 24 * tab0.col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 857ea1404acb6461f998154416fb3ef0
query I rowsort
SELECT - 37 FROM tab2
----
-37
-37
-37
query I rowsort
SELECT DISTINCT - tab1.col2 + col1 AS col2 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7357
SELECT ALL + col1 + col2 DIV + ( + col1 ) FROM tab1
----
15
20
28
skipif mysql # not compatible
query I rowsort label-7357
SELECT ALL + col1 + col2 / + ( + col1 ) FROM tab1
----
15
20
28
query I rowsort
SELECT DISTINCT col1 * 52 FROM tab1 AS cor0
----
1352
520
676
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * + 79 FROM tab1 AS cor0
----
263
5066
6333
query I rowsort
SELECT ALL - - col1 + - cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col0 + ( col2 ) * col2 * - col1 AS col0 FROM tab1 AS cor0
----
-119728
-32426
-75813
query I rowsort
SELECT DISTINCT - col1 + + ( ( col0 ) ) FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL - - col1 * ( + col1 * col0 ) - - col2 FROM tab0 AS cor0
----
177537
329316
737091
query I rowsort
SELECT ALL + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col0 + + col2 * cor0.col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - - col2 * 11 FROM tab1 AS cor0
----
1056
594
627
query I rowsort
SELECT DISTINCT col0 + col1 * + 63 AS col2 FROM tab1 AS cor0
----
1641
694
899
query I rowsort
SELECT ALL + + col2 - + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + col2 * + 25 AS col1 FROM tab2 AS cor0
----
650
675
950
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7370
SELECT ALL - - col1 * + CAST( NULL AS DECIMAL ) + + 85 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7370
SELECT ALL - - col1 * + CAST ( NULL AS REAL ) + + 85 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + ( - col0 * - col1 + - 59 * 90 ) AS col0 FROM tab0 AS cor0
----
-1818
-3160
2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7373
SELECT DISTINCT tab1.col2 DIV tab1.col1 AS col0 FROM tab1, tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7373
SELECT DISTINCT tab1.col2 / tab1.col1 AS col0 FROM tab1, tab1 cor0
----
2
5
7
query I rowsort
SELECT - col2 * + ( - col0 ) FROM tab2 cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7375
SELECT CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7375
SELECT CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7376
SELECT - 37 * - 1 + + col2 DIV 38 - - col2 DIV col2 FROM tab1 AS cor0
----
39
39
40
skipif mysql # not compatible
query I rowsort label-7376
SELECT - 37 * - 1 + + col2 / 38 - - col2 / col2 FROM tab1 AS cor0
----
39
39
40
query I rowsort
SELECT - - col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * - col1 + - col1 col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT 17 + col2 AS col1 FROM tab2 cor0
----
43
44
55
query I rowsort
SELECT - + col0 + + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * col0 + + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL - 64 * col2 AS col0 FROM tab0 cor0
----
-2112
-5248
-64
query I rowsort
SELECT + col0 * col1 + - 24 FROM tab1 AS cor0
----
1016
54
616
query I rowsort
SELECT ( col1 ) * cor0.col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 877a8dbac0e29b86e845fb64ed9d2242
query I rowsort
SELECT DISTINCT + col2 * col2 AS col0 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - col1 - col1 * - cor0.col1 * - 10 FROM tab2 AS cor0
----
-2907
-34869
-9641
onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT DISTINCT + 44 DIV + col1 + col2 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7388
SELECT DISTINCT + 44 / + col1 + col2 / col0 AS col2 FROM tab0 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7389
SELECT DISTINCT 36 + col1 * ( + cor0.col1 ) * col1 + cor0.col1 DIV cor0.col2 AS col1 FROM tab1 AS cor0
----
1036
17612
2233
skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT 36 + col1 * ( + cor0.col1 ) * col1 + cor0.col1 / cor0.col2 AS col1 FROM tab1 AS cor0
----
1036
17612
2233
query I rowsort
SELECT - 10 + col0 FROM tab2 AS cor0
----
-3
68
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-7391
SELECT ALL + 80 DIV + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
26
skipif mysql # not compatible
query I rowsort label-7391
SELECT ALL + 80 / + cor0.col0 AS col2 FROM tab1 AS cor0
----
1
1
26
query I rowsort
SELECT ALL - 33 * col0 AS col0 FROM tab1 AS cor0
----
-2112
-2640
-99
query I rowsort
SELECT DISTINCT + col0 * + cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 + - cor0.col0 * + 62 FROM tab2 AS cor0
----
-461
-4862
-4936
query I rowsort
SELECT DISTINCT 10 + - col2 FROM tab1
----
-44
-47
-86
query I rowsort
SELECT DISTINCT + - 70 + col2 AS col2 FROM tab2 AS cor0
----
-32
-43
-44
skipif mysql # not compatible
query I rowsort
SELECT - 49 * + col1 + + CAST ( + col2 + - col0 AS REAL ) * - col2 FROM tab0 AS cor0
----
-3885
-4511
-4719
query I rowsort
SELECT ALL + - cor0.col1 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT - + 84 + col1 * + ( + col2 * col2 ) - + ( col0 * + cor0.col0 ) AS col2 FROM tab2 cor0
----
18223
22466
33716
query I rowsort
SELECT ALL 91 AS col0 FROM tab1 AS cor0
----
91
91
91
query I rowsort
SELECT DISTINCT - col1 + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT + - 56 * col0 * - col2 FROM tab0 cor0
----
1960
408688
44352
onlyif mysql # use DIV operator for integer division
query I rowsort label-7403
SELECT ALL + col2 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7403
SELECT ALL + col2 / - col0 AS col2 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT + ( col2 ) + col1 * col1 - col1 FROM tab2 cor0
----
310
3448
957
query I rowsort
SELECT - - col1 + 71 * + col0 AS col0 FROM tab1 cor0
----
239
4554
5693
query I rowsort
SELECT ALL 44 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT - col1 + col0 * + 19 * + col2 FROM tab2 AS cor0
----
3560
38473
57021
onlyif mysql # use DIV operator for integer division
query I rowsort label-7408
SELECT ALL - col0 + + 81 DIV col1 AS col0 FROM tab1 AS cor0
----
-56
-74
0
skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - col0 + + 81 / col1 AS col0 FROM tab1 AS cor0
----
-56
-74
0
query I rowsort
SELECT + col0 + cor0.col2 * 80 FROM tab0 AS cor0
----
115
2664
6649
query I rowsort
SELECT + 46 * tab2.col1 FROM tab2
----
1426
2714
782
query I rowsort
SELECT ( + col0 * 42 ) + col0 + + tab2.col0 FROM tab2
----
308
3432
3476
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to df0306664dfa9962994889ea8d5edc5a
query I rowsort
SELECT DISTINCT - ( col2 ) * + col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT + col1 * + col2 + + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - 9 AS col2 FROM tab2 AS cor0
----
-9
-9
-9
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to ed80235f6457dada5cbb50ce9e2a8923
query I rowsort
SELECT + cor0.col1 * 69 FROM tab0 AS cor0
----
5934
6279
6693
query I rowsort
SELECT + 93 FROM tab1 cor0
----
93
93
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7419
SELECT - - cor0.col1 * ( col0 * - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7419
SELECT - - cor0.col1 * ( col0 * - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 48 + + col0 - col2 AS col0 FROM tab1 AS cor0
----
-41
-64
-99
query I rowsort
SELECT + tab0.col1 * 11 FROM tab0, tab2 AS cor0
----
9 values hashing to a2e7ea6fb249573ca21cb56d28d49e82
query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab1, tab2 AS cor0
----
-25
query I rowsort
SELECT DISTINCT - col0 * 93 + col1 AS col1 FROM tab1 AS cor0
----
-253
-5942
-7427
query I rowsort
SELECT + 71 FROM tab1, tab1 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT + ( + 89 ) * - col1 + tab2.col0 * col0 FROM tab2
----
-2710
4728
833
query I rowsort
SELECT ALL 90 AS col1 FROM tab2
----
90
90
90
query I rowsort
SELECT + - ( - 60 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 1d2ab302ae60f95b15e68cf89083b162
query I rowsort
SELECT DISTINCT ( 5 ) - tab1.col1 FROM tab1
----
-21
-5
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT + tab2.col2 DIV col0 + col2 + + col2 FROM tab2
----
52
57
76
skipif mysql # not compatible
query I rowsort label-7429
SELECT + tab2.col2 / col0 + col2 + + col2 FROM tab2
----
52
57
76
query I rowsort
SELECT ( - col0 ) - col1 * - col2 FROM tab0
----
2814
62
7373
query I rowsort
SELECT col2 + - 42 * tab2.col1 - + ( - col1 ) * col1 FROM tab2
----
-314
-387
1029
query I rowsort
SELECT + 74 + col1 + + col2 FROM tab1
----
141
154
183
query I rowsort
SELECT DISTINCT 7 - - ( - col0 ) AS col1 FROM tab2
----
-71
-72
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * col1 + col0 + col1 col0 FROM tab1 AS cor0
----
1043
464
600
query I rowsort
SELECT ALL 62 * - ( - col0 ) + cor0.col1 FROM tab0 cor0
----
1574
2267
5609
query I rowsort
SELECT ALL - col0 + ( col0 ) + - col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 cor1
----
7
78
79
query I rowsort
SELECT + + col1 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
1136
132
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 + ( + 59 * col0 + + col2 ) col2 FROM tab1 AS cor0
----
177
3776
4720
query I rowsort
SELECT DISTINCT - col0 + - 13 FROM tab2 AS cor0
----
-20
-91
-92
query I rowsort
SELECT ALL col1 * + 13 AS col1 FROM tab1
----
130
169
338
onlyif mysql # use DIV operator for integer division
query I rowsort label-7442
SELECT ALL tab1.col1 DIV col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL tab1.col1 / col1 FROM tab1
----
1
1
1
query I rowsort
SELECT - tab1.col1 + col1 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col1 * + col1 + + 96 * col2 + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-169
1592
2123
onlyif mysql # use DIV operator for integer division
query I rowsort label-7445
SELECT DISTINCT - + col0 DIV + ( col1 ) FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-7445
SELECT DISTINCT - + col0 / + ( col1 ) FROM tab1 AS cor0
----
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7446
SELECT - CAST( col1 * + col0 AS SIGNED ) + + col0 - col2 FROM tab1
----
-1056
-129
-633
skipif mysql # not compatible
query I rowsort label-7446
SELECT - CAST ( col1 * + col0 AS INTEGER ) + + col0 - col2 FROM tab1
----
-1056
-129
-633
query I rowsort
SELECT ALL + tab0.col1 + col2 * + col0 FROM tab0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) + + 35 col1 FROM tab0 AS cor0
----
117
36
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7449
SELECT - - cor0.col1 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7449
SELECT - - cor0.col1 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * 77 + col1 FROM tab0
----
174
2627
6405
query I rowsort
SELECT DISTINCT - col1 + + 93 FROM tab0
----
-4
2
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 8 + - col0 col2 FROM tab1
----
392
429
688
query I rowsort
SELECT + + col2 * + 36 + col2 + ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
1254
3116
38
query I rowsort
SELECT DISTINCT - 60 FROM tab2, tab1 AS cor0
----
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-7455
SELECT + - 82 * col0 + + CAST( + col0 AS SIGNED ) * - col1 DIV ( + 85 * col0 ) col2 FROM tab1 AS cor0
----
-246
-5248
-6560
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7455
SELECT + - 82 * col0 + + CAST ( + col0 AS INTEGER ) * - col1 / ( + 85 * col0 ) col2 FROM tab1 AS cor0
----
-246
-5248
-6560
query I rowsort
SELECT col0 * col2 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + col2 + + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 2 + col0 AS col1 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT ALL col0 * - col1 * + col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT + 90 AS col0 FROM tab1 AS cor0
----
90
90
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7461
SELECT DISTINCT + col1 + + col0 * CAST( - col2 AS SIGNED ) - col0 FROM tab0 AS cor0
----
-7296
-730
27
skipif mysql # not compatible
query I rowsort label-7461
SELECT DISTINCT + col1 + + col0 * CAST ( - col2 AS INTEGER ) - col0 FROM tab0 AS cor0
----
-7296
-730
27
query I rowsort
SELECT ALL - + col1 + + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + col2 * + col2 - + ( - ( col2 ) ) AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - 21 + col1 FROM tab0 AS cor0
----
65
70
76
query I rowsort
SELECT - cor0.col1 + - col2 * - col1 FROM tab2 cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7466
SELECT + - col0 * + cor0.col0 + + CAST( col2 + + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1127
-457
-7748
skipif mysql # not compatible
query I rowsort label-7466
SELECT + - col0 * + cor0.col0 + + CAST ( col2 + + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1127
-457
-7748
query I rowsort
SELECT DISTINCT + col0 * col1 + + ( col0 ) * col1 AS col2 FROM tab0 AS cor0
----
16198
4128
6790
query I rowsort
SELECT + + col2 * col2 AS col1 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT ALL ( + col1 ) - + ( col1 + col0 ) * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1196
-728
-730
query I rowsort
SELECT DISTINCT + col1 * cor0.col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7471
SELECT ALL - col0 DIV - cor0.col1 + - ( 32 ) col0 FROM tab0 AS cor0
----
-32
-32
-32
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL - col0 / - cor0.col1 + - ( 32 ) col0 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT col2 + col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - ( + tab0.col1 ) AS col0 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col1 FROM tab2
----
56
56
56
query I rowsort
SELECT DISTINCT - col0 * col0 * 34 AS col1 FROM tab1
----
-139264
-217600
-306
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col0 col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 43 + tab2.col0 * col1 * + col2 AS col2 FROM tab2
----
119609
50991
5816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7478
SELECT DISTINCT 41 DIV col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT 41 / col1 AS col0 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7479
SELECT - 40 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-7479
SELECT - 40 / col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7480
SELECT col0 DIV - col0 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7480
SELECT col0 / - col0 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT 78 * + col1 FROM tab0
----
6708
7098
7566
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col2 col2 FROM tab2 AS cor0
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT - col1 DIV col1 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
188
2027
3001
skipif mysql # not compatible
query I rowsort label-7483
SELECT - col1 / col1 + cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
188
2027
3001
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col1 * + 98 col0 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT - col2 * col1 + col1 FROM tab2 cor0
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7486
SELECT col1 * + CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-7486
SELECT col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + + col1 + + ( - col2 + col2 ) FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - 40 + col2 * cor0.col2 FROM tab1 cor0
----
2876
3209
9176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 * col2 col1 FROM tab2 AS cor0
----
1300
1350
1900
query I rowsort
SELECT DISTINCT + col0 * 35 AS col0 FROM tab2 AS cor0
----
245
2730
2765
onlyif mysql # use DIV operator for integer division
query I rowsort label-7491
SELECT CAST( - col1 AS SIGNED ) DIV col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7491
SELECT CAST ( - col1 AS INTEGER ) / col2 FROM tab1 AS cor0
----
0
0
0
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab2, tab2 AS cor1
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
onlyif mysql # use DIV operator for integer division
query I rowsort label-7493
SELECT ( + col2 ) DIV + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7493
SELECT ( + col2 ) / + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7494
SELECT - col1 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-7494
SELECT - col1 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-2
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7495
SELECT + col1 DIV 81 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7495
SELECT + col1 / 81 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT - col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-7496
SELECT - col2 / - col0 AS col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL + tab1.col2 + + col1 * + col1 FROM tab1
----
157
265
730
query I rowsort
SELECT tab2.col0 + + col2 * - col2 FROM tab2
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + col0 col1 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT DISTINCT - col2 + col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT 45 + col0 * - col1 FROM tab0 AS cor0
----
-2019
-3350
-8054
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7502
SELECT ALL + ( col2 ) + + col0 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7502
SELECT ALL + ( col2 ) + + col0 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - + 21 AS col0 FROM tab0 AS cor0
----
14
3
68
query I rowsort
SELECT ALL + col0 + 84 FROM tab0 AS cor0
----
108
119
173
query I rowsort
SELECT DISTINCT col0 + 6 + col2 FROM tab2 AS cor0
----
110
123
40
query I rowsort
SELECT DISTINCT + + 18 + col1 FROM tab1 AS cor0
----
28
31
44
query I rowsort
SELECT ALL + 47 * col1 - - col0 * col1 AS col2 FROM tab1 AS cor0
----
1110
1300
1651
query I rowsort
SELECT - + col0 * + 55 + col2 AS col2 FROM tab0 AS cor0
----
-1287
-1924
-4813
query I rowsort
SELECT col2 + 59 FROM tab1 cor0
----
113
116
155
query I rowsort
SELECT ALL + + ( col2 ) - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) * cor0.col2 + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT DISTINCT 31 * col1 FROM tab2 cor0
----
1829
527
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT - tab1.col1 * col0 * tab1.col1 AS col0 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7515
SELECT CAST( cor0.col0 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
skipif mysql # not compatible
query I rowsort label-7515
SELECT CAST ( cor0.col0 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7516
SELECT + col0 / ( col1 ) - - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7516
SELECT + col0 / ( col1 ) - - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 55 AS col0 FROM tab0
----
4730
5005
5335
query I rowsort
SELECT col1 - + col1 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - - 92 col1 FROM tab2 AS cor0
----
54
65
66
query I rowsort
SELECT + 22 * col0 + - col0 AS col0 FROM tab1 AS cor0
----
1344
1680
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7521
SELECT CAST( 15 AS SIGNED ) FROM tab2 AS cor0
----
15
15
15
skipif mysql # not compatible
query I rowsort label-7521
SELECT CAST ( 15 AS INTEGER ) FROM tab2 AS cor0
----
15
15
15
query I rowsort
SELECT DISTINCT + 72 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
72
query I rowsort
SELECT - 97 * col0 * ( - col1 ) FROM tab2 cor0
----
130271
21049
446394
query I rowsort
SELECT - col1 * cor0.col2 - col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT ALL + col2 * - col1 - col1 AS col0 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT ALL col2 + + 51 * cor0.col0 FROM tab2 AS cor0
----
384
4004
4067
query I rowsort
SELECT col1 + + ( - col2 ) FROM tab0 AS cor0
----
53
9
96
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
54
57
96
query I rowsort
SELECT ALL col0 * col2 * - col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT col1 * - 96 * + tab0.col1 AS col2 FROM tab0
----
-710016
-794976
-903264
query I rowsort
SELECT ALL - col0 * 38 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT DISTINCT + + col2 * + cor0.col1 * - 88 AS col2 FROM tab0 AS cor0
----
-249744
-656656
-8536
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7534
SELECT ALL - col0 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * col2 + - ( - col1 * - 44 ) AS col2 FROM tab2 AS cor0
----
-1175
-568
2254
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * + col0 + - cor0.col2 col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + + col2 * ( cor0.col2 + col0 ) AS col1 FROM tab1 AS cor0
----
16896
3078
6897
onlyif mysql # use DIV operator for integer division
query I rowsort label-7538
SELECT DISTINCT + col1 + - CAST( + 30 AS SIGNED ) DIV col0 FROM tab0 AS cor0
----
85
91
97
skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + col1 + - CAST ( + 30 AS INTEGER ) / col0 FROM tab0 AS cor0
----
85
91
97
query I rowsort
SELECT ALL ( - col0 ) * col2 + - col1 FROM tab0 AS cor0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( 10 ) * col0 col2 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT + cor0.col2 * col2 * col1 - - ( - 13 ) FROM tab0 AS cor0
----
611871
84
93641
query I rowsort
SELECT ALL 27 AS col0 FROM tab0 AS cor0
----
27
27
27
query I rowsort
SELECT col1 + - col0 - col0 AS col1 FROM tab2 AS cor0
----
-141
-97
17
query I rowsort
SELECT 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
61
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab1 cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT + col1 + - ( + col2 ) * col0 * 48 FROM tab0 AS cor0
----
-1583
-350213
-37930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7548
SELECT ALL + CAST( 48 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-30
-31
41
skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL + CAST ( 48 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-30
-31
41
query I rowsort
SELECT DISTINCT + + ( - col2 ) * col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - col0 + cor0.col2 col0 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - - col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * - col0 col1 FROM tab1 AS cor0
----
-17
4086
6387
onlyif mysql # use DIV operator for integer division
query I rowsort label-7553
SELECT DISTINCT col2 + - col1 DIV - 13 AS col0 FROM tab0 AS cor0
----
39
8
89
skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT col2 + - col1 / - 13 AS col0 FROM tab0 AS cor0
----
39
8
89
query I rowsort
SELECT col2 * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL - 99 AS col1 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT ALL - - col0 * col0 * + col0 + col0 FROM tab2 cor0
----
350
474630
493118
query I rowsort
SELECT ALL + + cor0.col2 + - 13 * - ( + col1 ) FROM tab2 AS cor0
----
259
430
793
onlyif mysql # use DIV operator for integer division
query I rowsort label-7558
SELECT 13 + + col1 DIV + col1 AS col1 FROM tab1
----
14
14
14
skipif mysql # not compatible
query I rowsort label-7558
SELECT 13 + + col1 / + col1 AS col1 FROM tab1
----
14
14
14
query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab0 cor0
----
54
57
96
query I rowsort
SELECT ALL - - col0 * - col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + + col1 * 9 + col2 AS col2 FROM tab0 cor0
----
807
874
901
query I rowsort
SELECT + col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7563
SELECT DISTINCT col1 DIV - 49 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT col1 / - 49 + - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col2 * + 85 * + col2 AS col1 FROM tab0 AS cor0
----
571540
85
92565
query I rowsort
SELECT DISTINCT - - col0 + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT DISTINCT col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col2 + 62 * + col1 AS col0 FROM tab0 AS cor0
----
5365
5724
6015
onlyif mysql # use DIV operator for integer division
query I rowsort label-7568
SELECT + 20 DIV col0 FROM tab1 AS cor0
----
0
0
6
skipif mysql # not compatible
query I rowsort label-7568
SELECT + 20 / col0 FROM tab1 AS cor0
----
0
0
6
query I rowsort
SELECT ALL - col1 * + 72 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT - ( col1 ) - col1 AS col2 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT + + ( + col2 ) FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + + 84 * + col2 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT + 39 + 47 FROM tab0 AS cor0
----
86
86
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-7574
SELECT + cor0.col1 DIV + cor0.col1 + + col1 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-7574
SELECT + cor0.col1 / + cor0.col1 + + col1 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT DISTINCT 24 * col0 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT - cor0.col1 + + cor0.col2 FROM tab1 cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7577
SELECT + - 47 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-7577
SELECT + - 47 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT ALL 83 * - col0 FROM tab1
----
-249
-5312
-6640
query I rowsort
SELECT - 9 + col0 AS col1 FROM tab0 AS cor0
----
15
26
80
query I rowsort
SELECT ( + col2 ) + 3 AS col1 FROM tab1 cor0
----
57
60
99
query I rowsort
SELECT ALL + - col1 * col0 + - col0 * + col1 - + 47 AS col1 FROM tab2 AS cor0
----
-2733
-481
-9251
query I rowsort
SELECT - col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7583
SELECT ALL col1 * CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7583
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col2 * + col0 + + col2 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
37
7462
858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - + col1 col2 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT col0 - ( col0 ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-171
-36
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT tab1.col0 * CAST ( 72 AS REAL ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6ea840cdf2b42247db0ed404945b7aa1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 43 col0 FROM tab2
----
43
43
43
query I rowsort
SELECT DISTINCT cor0.col2 + + cor0.col1 + cor1.col0 * + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 68dd8e8e30e8e7382ed20e64f3c33437
onlyif mysql # use DIV operator for integer division
query I rowsort label-7591
SELECT col1 DIV col0 col1 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7591
SELECT col1 / col0 col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
91
query I rowsort
SELECT ALL col0 * + col0 + + col0 AS col1 FROM tab2
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-7594
SELECT ALL + col1 DIV + col1 + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL + col1 / + col1 + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL 72 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT DISTINCT tab1.col0 + - col2 FROM tab1
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7597
SELECT 11 DIV - col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7597
SELECT 11 / - col1 FROM tab1 AS cor0
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7598
SELECT + col2 DIV cor0.col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7598
SELECT + col2 / cor0.col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT col0 * col2 + col1 - - col2 FROM tab2 AS cor0
----
2113
247
3057
query I rowsort
SELECT + ( - col0 ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT - col2 * tab2.col0 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + col1 * - 7 * 8 + + col1 AS col0 FROM tab0
----
-4730
-5005
-5335
query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT col2 + - ( col0 * + col1 + - col0 ) FROM tab1
----
-21
-519
-864
query I rowsort
SELECT ALL - cor0.col1 * - 44 AS col1 FROM tab2, tab1, tab0 cor0
----
27 values hashing to c0db56f81a57ff927cda1556444e3617
query I rowsort
SELECT DISTINCT + col0 + - col2 + col2 AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + col0 - + 40 FROM tab2 AS cor0
----
-118
-119
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 col2 FROM tab0
----
1
query I rowsort
SELECT ( 49 ) FROM tab0
----
49
49
49
query I rowsort
SELECT ( - 9 + - col1 ) * col2 FROM tab2
----
-1080
-1768
-988
query I rowsort
SELECT + col2 - - ( col1 ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT cor0.col1 * cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
query I rowsort
SELECT DISTINCT - col2 + - col2 - - col0 * col2 FROM tab1
----
3534
54
7488
query I rowsort
SELECT ALL + ( 65 ) * col2 * + col0 - tab2.col2 AS col2 FROM tab2
----
12258
131794
195092
query I rowsort
SELECT ALL tab2.col1 - 28 AS col2 FROM tab2
----
-11
3
31
query I rowsort
SELECT + 81 + - col2 AS col1 FROM tab1
----
-15
24
27
query I rowsort
SELECT ALL 16 AS col1 FROM tab1
----
16
16
16
query I rowsort
SELECT DISTINCT col1 * + col2 * + tab2.col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT - + col1 * cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col1 * + col0 AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col2 * 95 FROM tab2 AS cor0
----
2470
2565
3610
query I rowsort
SELECT - - cor0.col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + + col0 * 5 + + col0 AS col2 FROM tab1 AS cor0
----
18
384
480
query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab2, tab0 cor0, tab0 AS cor1
----
26
query I rowsort
SELECT ALL 84 + col1 FROM tab0 AS cor0
----
170
175
181
query I rowsort
SELECT DISTINCT + 41 + col2 AS col2 FROM tab1 AS cor0
----
137
95
98
query I rowsort
SELECT - - col1 * col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT 81 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
query I rowsort
SELECT ALL 11 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT ALL - col0 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col1 * col0 + - 80 * - col2 + col2 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1305
-4550
1754
query I rowsort
SELECT ALL col2 * cor0.col0 + - col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-7635
SELECT - col1 + col1 DIV 34 FROM tab0 AS cor0
----
-84
-89
-95
skipif mysql # not compatible
query I rowsort label-7635
SELECT - col1 + col1 / 34 FROM tab0 AS cor0
----
-84
-89
-95
query I rowsort
SELECT DISTINCT + cor0.col2 AS col0 FROM tab2 cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7637
SELECT + col2 - - col0 DIV col2 FROM tab0 AS cor0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-7637
SELECT + col2 - - col0 / col2 FROM tab0 AS cor0
----
33
36
83
query I rowsort
SELECT + col1 + 72 * - col1 * col2 FROM tab0 AS cor0
----
-204250
-537173
-6887
query I rowsort
SELECT + + col1 + 10 * ( - cor0.col2 ) FROM tab0 cor0
----
-244
-729
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT + + col0 DIV - 19 AS col2 FROM tab2 AS cor0
----
-4
-4
0
skipif mysql # not compatible
query I rowsort label-7640
SELECT + + col0 / - 19 AS col2 FROM tab2 AS cor0
----
-4
-4
0
query I rowsort
SELECT DISTINCT - col2 * + 73 AS col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7642
SELECT + cor0.col0 + + CAST( NULL AS SIGNED ) * col2 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7642
SELECT + cor0.col0 + + CAST ( NULL AS INTEGER ) * col2 - - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col1 + col0 * + col1 AS col1 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT col0 * + ( col1 ) + cor0.col0 * + col1 AS col2 FROM tab0 cor0
----
16198
4128
6790
query I rowsort
SELECT DISTINCT + col0 * col1 - + 61 * ( + col0 * col1 ) FROM tab2
----
-13020
-276120
-80580
query I rowsort
SELECT ALL + ( col0 ) + ( 48 ) * col2 - - ( + col0 + col2 * ( 70 ) ) FROM tab2
----
3200
3224
4642
query I rowsort
SELECT col0 + col2 - - col0 AS col0 FROM tab1
----
185
256
60
query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab2
----
74
query I rowsort
SELECT DISTINCT - col1 - - col2 * 9 FROM tab0
----
-88
211
647
query I rowsort
SELECT - col0 - col2 * ( - col1 ) FROM tab2
----
1456
567
830
query I rowsort
SELECT ALL - 38 * + col0 AS col2 FROM tab2 AS cor0
----
-266
-2964
-3002
query I rowsort
SELECT DISTINCT - 39 + + col1 AS col1 FROM tab2 AS cor0
----
-22
-8
20
query I rowsort
SELECT DISTINCT - 33 + 45 * col2 FROM tab0 AS cor0
----
12
1452
3657
query I rowsort
SELECT ALL col2 - - 53 FROM tab0 AS cor0
----
135
54
86
query I rowsort
SELECT ALL - - 45 * 10 + col0 AS col0 FROM tab2 cor0
----
457
528
529
query I rowsort
SELECT ( 98 ) FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT DISTINCT 57 + col2 * + col1 - col2 AS col0 FROM tab2 AS cor0
----
1565
665
867
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7658
SELECT DISTINCT CAST( NULL AS SIGNED ) / + 89 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7658
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + 89 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7659
SELECT - CAST( NULL AS SIGNED ) * + 92 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7659
SELECT - CAST ( NULL AS INTEGER ) * + 92 + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 59 * + 69 AS col2 FROM tab1 cor0
----
4071
4071
4071
query I rowsort
SELECT - 1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL col1 * col1 + - col0 FROM tab2 cor0
----
210
3403
954
query I rowsort
SELECT DISTINCT 20 FROM tab0, tab0 cor0, tab2 AS cor1
----
20
query I rowsort
SELECT DISTINCT 86 FROM tab2 AS cor0
----
86
query I rowsort
SELECT cor0.col2 + + col0 AS col1 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT + col1 + 52 * col0 FROM tab0 AS cor0
----
1334
1917
4719
query I rowsort
SELECT 0 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 cor0 CROSS JOIN tab1, tab0 cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT ALL + 28 AS col1 FROM tab2
----
28
28
28
query I rowsort
SELECT ALL + 10 FROM tab1, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT ALL 86 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT - ( + 59 ) AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 582c5aa5e5b4fc3f2ea27e7637992d1f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7673
SELECT ALL - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - cor0.col2 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT - 87 + + col0 FROM tab1 AS cor0
----
-23
-7
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7676
SELECT DISTINCT CAST( - col0 AS SIGNED ) AS col0 FROM tab0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT CAST ( - col0 AS INTEGER ) AS col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT ALL - 24 FROM tab1, tab0 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # use DIV operator for integer division
query I rowsort label-7678
SELECT col2 * tab1.col1 DIV col0 + + 82 FROM tab1
----
550
90
97
skipif mysql # not compatible
query I rowsort label-7678
SELECT col2 * tab1.col1 / col0 + + 82 FROM tab1
----
550
90
97
query I rowsort
SELECT + 25 + col2 FROM tab2
----
51
52
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7680
SELECT ALL CAST( 14 AS SIGNED ) FROM tab2
----
14
14
14
skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL CAST ( 14 AS INTEGER ) FROM tab2
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + + 24 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 405a6e181948af789c5f99066032918c
query I rowsort
SELECT col0 * + col1 + + col2 * 96 FROM tab1
----
10256
5262
6112
query I rowsort
SELECT DISTINCT ( + col2 ) + col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - - 70 * - col1 * - col1 AS col0 FROM tab2 cor0
----
20230
243670
67270
query I rowsort
SELECT ALL col2 * cor0.col1 + - 42 * + ( + col0 ) FROM tab2 AS cor0
----
-1742
-2672
543
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 - col1 + col1 + + col2 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - - cor0.col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - - col2 * - col0 + - 10 * col1 FROM tab1 AS cor0
----
-3748
-422
-7810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7690
SELECT DISTINCT col0 DIV + col0 + - col2 * + col1 + + col2 FROM tab2 AS cor0
----
-1507
-607
-809
skipif mysql # not compatible
query I rowsort label-7690
SELECT DISTINCT col0 / + col0 + - col2 * + col1 + + col2 FROM tab2 AS cor0
----
-1507
-607
-809
query I rowsort
SELECT tab0.col0 + - 71 FROM tab0
----
-36
-47
18
query I rowsort
SELECT - col0 + 88 FROM tab1 AS cor0
----
24
8
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * 74 col1 FROM tab1 AS cor0
----
1924
740
962
query I rowsort
SELECT DISTINCT col2 + cor0.col1 * col2 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT cor2.col0 * + cor2.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to d5bb2936215e00b8ed99fa757fc90166
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to adb876f0e99f8d4fbf7b7fcf19919a21
query I rowsort
SELECT - ( - 58 ) * col1 * col2 FROM tab0 AS cor0
----
164604
432796
5626
query I rowsort
SELECT ALL + - col2 * 5 * + col0 FROM tab2 AS cor0
----
-10140
-15010
-945
query I rowsort
SELECT DISTINCT + ( ( cor0.col0 ) ) AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-7701
SELECT DISTINCT - col0 DIV 78 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT - col0 / 78 FROM tab1 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7702
SELECT ALL - cor0.col1 + col2 DIV col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59
skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - cor0.col1 + col2 / col0 AS col0 FROM tab2 AS cor0
----
-17
-28
-59
query I rowsort
SELECT ALL + + 8 - col1 FROM tab1 AS cor0
----
-18
-2
-5
query I rowsort
SELECT ALL col2 * + col0 + - col2 FROM tab1
----
108
3591
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-7705
SELECT ALL ( col2 ) DIV + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL ( col2 ) / + col1 AS col2 FROM tab1 AS cor0
----
2
5
7
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT DISTINCT - col1 * col1 * + col0 + col0 FROM tab1 AS cor0
----
-13440
-2025
-6336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7708
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + col1 / + col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + col1 / + col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - ( + col0 ) + + col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT DISTINCT - tab2.col2 + + ( col2 * - col2 ) AS col2 FROM tab2
----
-1482
-702
-756
query I rowsort
SELECT DISTINCT + tab2.col1 * col2 + + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT col2 * - 55 * tab1.col2 AS col1 FROM tab1
----
-160380
-178695
-506880
query I rowsort
SELECT DISTINCT - + col0 * cor0.col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + cor0.col0 * + 17 AS col2 FROM tab1 AS cor0
----
1088
1360
51
query I rowsort
SELECT ALL + 50 FROM tab2, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT ALL + 5 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT ALL - + cor0.col1 * ( - col0 ) + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT 96 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL 85 * 22 * + tab1.col1 FROM tab1
----
18700
24310
48620
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7721
SELECT + CAST( - col0 AS SIGNED ) * col2 FROM tab1
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-7721
SELECT + CAST ( - col0 AS INTEGER ) * col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ALL ( 17 + col1 ) * + col0 FROM tab0
----
2472
3990
9612
query I rowsort
SELECT ALL 20 * col2 FROM tab0 AS cor0
----
1640
20
660
query I rowsort
SELECT ALL + 19 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
query I rowsort
SELECT + col1 + + ( + col0 ) AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + 61 + col0 FROM tab1 cor0
----
125
141
64
query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab1
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 31 + + col1 * col1 col1 FROM tab0 AS cor0
----
7427
8312
9440
query I rowsort
SELECT ALL 88 AS col2 FROM tab2 AS cor0
----
88
88
88
query I rowsort
SELECT cor0.col0 * cor0.col2 + col0 + col0 AS col2 FROM tab2 AS cor0
----
203
2184
3160
query I rowsort
SELECT - - ( col2 ) * ( + col2 ) FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL col2 * col2 + + col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7734
SELECT DISTINCT - + cor0.col1 DIV col1 col0 FROM tab2 AS cor0
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7734
SELECT DISTINCT - + cor0.col1 / col1 col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT - + col2 * + 41 AS col0 FROM tab2 cor0
----
-1066
-1107
-1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-7736
SELECT col1 + col1 DIV 9 FROM tab0 AS cor0
----
101
107
95
skipif mysql # not compatible
query I rowsort label-7736
SELECT col1 + col1 / 9 FROM tab0 AS cor0
----
101
107
95
query I rowsort
SELECT 80 AS col2 FROM tab0
----
80
80
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7738
SELECT DISTINCT + 19 DIV col0 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-7738
SELECT DISTINCT + 19 / col0 FROM tab1
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 68 col0 FROM tab0 AS cor0
----
2244
5576
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-7740
SELECT + col2 + col1 DIV - ( col2 ) AS col1 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-7740
SELECT + col2 + col1 / - ( col2 ) AS col1 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT DISTINCT 9 AS col1 FROM tab2, tab1 cor0
----
9
query I rowsort
SELECT ( 25 ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query I rowsort
SELECT DISTINCT col1 * tab0.col0 * - 38 FROM tab0
----
-129010
-307762
-78432
query I rowsort
SELECT - 70 - - col1 AS col0 FROM tab0 AS cor0
----
16
21
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7745
SELECT ALL CAST( col0 AS SIGNED ) + - cor0.col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL CAST ( col0 AS INTEGER ) + - cor0.col2 * col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT - ( col2 ) + col1 + 76 AS col1 FROM tab0 AS cor0
----
129
172
85
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 * col0 + + col0 FROM tab2 cor0
----
-113997
-5096
-52650
query I rowsort
SELECT - - col1 + - 7 FROM tab0 AS cor0
----
79
84
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7749
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT - ( - col1 ) * - 15 AS col2 FROM tab2 AS cor0
----
-255
-465
-885
query I rowsort
SELECT + + 51 FROM tab2 AS cor0
----
51
51
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7752
SELECT + 55 * - col2 * + CAST( NULL AS DECIMAL ) + 37 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7752
SELECT + 55 * - col2 * + CAST ( NULL AS REAL ) + 37 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 9 * col2 + - ( col0 * col2 ) AS col0 FROM tab1 AS cor0
----
-3135
-6816
324
query I rowsort
SELECT DISTINCT cor0.col0 * + tab0.col1 * + 47 FROM tab0, tab1 AS cor0
----
9 values hashing to fb4ed4eb713201c59cdfdbabf9bf8b66
query I rowsort
SELECT 64 * + tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 3ec0d39bf7d991632c9b7ce42b175748
query I rowsort
SELECT col0 + + 86 * - tab2.col2 FROM tab2
----
-2158
-2315
-3189
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT + ( col0 + + ( 22 ) ) FROM tab0
----
111
46
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7759
SELECT + col1 DIV col1 + col0 * 34 AS col2 FROM tab2 AS cor0
----
239
2653
2687
skipif mysql # not compatible
query I rowsort label-7759
SELECT + col1 / col1 + col0 * 34 AS col2 FROM tab2 AS cor0
----
239
2653
2687
onlyif mysql # use DIV operator for integer division
query I rowsort label-7760
SELECT DISTINCT + col1 * cor0.col1 DIV cor0.col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT + col1 * cor0.col1 / cor0.col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * cor0.col0 + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT col0 * + col0 + + col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT + col0 + + col2 * - col1 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT col2 + col2 * + col0 * col1 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT ALL + tab0.col2 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col1 + + cor0.col1 * col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - col1 + col2 * col0 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT cor0.col1 + col0 * + col0 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - col2 + - col2 * col2 * col0 AS col2 FROM tab0
----
-26169
-36
-598518
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col0 col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + + col1 * cor0.col2 * + col2 FROM tab1 AS cor0
----
119808
32490
75816
onlyif mysql # use DIV operator for integer division
query I rowsort label-7772
SELECT ALL col1 DIV - col1 - col0 FROM tab0 cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL col1 / - col1 - col0 FROM tab0 cor0
----
-25
-36
-90
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) IN ( col2 * + col0 )
----
query I rowsort
SELECT ALL + col0 * col1 + + col2 * - col0 FROM tab1 AS cor0
----
-3008
-6640
-84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 - + col0 * - col2 * col2 col1 FROM tab1 AS cor0
----
208000
737360
8751
query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - - cor0.col1 + + cor0.col1 * - col1 AS col1 FROM tab0 cor0
----
-7310
-8190
-9312
query I rowsort
SELECT + col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - 6 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
144
210
534
query I rowsort
SELECT ALL tab2.col2 + tab2.col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT + 60 + - col0 FROM tab0 AS cor0
----
-29
25
36
query I rowsort
SELECT - col2 + cor0.col1 * col1 * - col0 FROM tab0 AS cor0
----
-177537
-329316
-737091
query I rowsort
SELECT DISTINCT + - cor0.col0 * cor0.col1 AS col2 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col1 * cor0.col2 + col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-7785
SELECT 88 DIV + col1 + col2 AS col1 FROM tab2 AS cor0
----
27
29
43
skipif mysql # not compatible
query I rowsort label-7785
SELECT 88 / + col1 + col2 AS col1 FROM tab2 AS cor0
----
27
29
43
query I rowsort
SELECT 30 * col1 * col1 FROM tab2
----
104430
28830
8670
query I rowsort
SELECT + - cor0.col0 * - cor0.col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( cor0.col1 ) + col0 * - col0 * + col0 col1 FROM tab0 AS cor0
----
-13910
-42972
-705060
query I rowsort
SELECT cor0.col2 + col1 AS col2 FROM tab2 cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7790
SELECT ALL col0 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7790
SELECT ALL col0 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + cor0.col0 col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT - + col0 * - col2 + col2 * col2 + col1 * - col1 AS col2 FROM tab2 AS cor0
----
-43
-777
4157
query I rowsort
SELECT col2 * + col1 + - cor0.col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT + col0 + - col0 + + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col0 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - - col1 + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT - 40 - + col1 AS col1 FROM tab2
----
-57
-71
-99
query I rowsort
SELECT col1 + tab0.col1 + col0 FROM tab0
----
196
229
271
query I rowsort
SELECT DISTINCT tab0.col0 * col2 / + col2 AS col0 FROM tab0 WHERE NULL >= NULL
----
query I rowsort
SELECT - col0 + tab2.col0 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + - tab1.col2 * col0 col2 FROM tab1
----
-3008
-6640
-84
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col0 AND col1
----
query I rowsort
SELECT + col0 * - col1 + + col0 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT - col2 - - col1 * col0 FROM tab0
----
2031
3394
8017
query I rowsort
SELECT col0 * + tab1.col1 * + col0 AS col1 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT ALL col2 + tab1.col1 * + col1 DIV tab1.col1 + + col0 FROM tab1
----
131
189
83
skipif mysql # not compatible
query I rowsort label-7806
SELECT ALL col2 + tab1.col1 * + col1 / tab1.col1 + + col0 FROM tab1
----
131
189
83
query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / col1 = col0
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT tab0.col2 * col0 + - tab0.col0 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT DISTINCT col1 + + col2 + - col1 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7811
SELECT col2 DIV col2 AS col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7811
SELECT col2 / col2 AS col1 FROM tab0
----
1
1
1
query I rowsort
SELECT - col0 - + tab2.col2 FROM tab2
----
-104
-117
-34
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col0 NOT IN ( - col1 + col2 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( NULL )
----
query I rowsort
SELECT tab1.col0 + - col0 + col1 FROM tab1
----
10
13
26
query I rowsort
SELECT - col1 FROM tab0 WHERE col1 NOT IN ( col1 * tab0.col0 )
----
-86
-91
-97
query I rowsort
SELECT + col0 * - col0 + - col0 AS col1 FROM tab0
----
-1260
-600
-8010
query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 ) NOT BETWEEN + col1 * col0 + - col0 AND ( NULL )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col2 + + col1 FROM tab1
----
109
67
80
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 - col2 AND col1
----
query I rowsort
SELECT col1 * + tab0.col0 + + tab0.col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT + tab0.col1 * col1 AS col2 FROM tab0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7823
SELECT + col1 DIV tab0.col0 + col1 AS col2 FROM tab0
----
89
92
99
skipif mysql # not compatible
query I rowsort label-7823
SELECT + col1 / tab0.col0 + col1 AS col2 FROM tab0
----
89
92
99
query I rowsort
SELECT ALL + col0 - col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL + col2 / tab1.col1 + col2 * col1 + col0 AS col0 FROM tab1 WHERE NULL IN ( col2 )
----
query I rowsort
SELECT tab2.col0 * + col2 * col0 AS col2 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT col2 * + tab0.col0 + + col1 * col1 FROM tab0
----
15579
8188
9444
query I rowsort
SELECT DISTINCT - tab2.col2 * - col0 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7829
SELECT DISTINCT col2 DIV col2 + - col1 + - col2 FROM tab1
----
-108
-66
-79
skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT col2 / col2 + - col1 + - col2 FROM tab1
----
-108
-66
-79
query I rowsort
SELECT DISTINCT - tab0.col2 * - col2 AS col2 FROM tab0
----
1
1089
6724
query I rowsort
SELECT - col2 * - col2 * col0 + + col2 + col0 * col1 AS col2 FROM tab2
----
115457
5347
57356
query I rowsort
SELECT ALL + col1 + + tab0.col2 FROM tab0
----
119
173
98
query I rowsort
SELECT + col0 - col0 * - col1 AS col1 FROM tab1
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col1 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT cor0.col1 * + col1 - - col1 AS col2 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL col1 * cor0.col1 * + col1 FROM tab1 AS cor0
----
1000
17576
2197
query I rowsort
SELECT ALL + cor0.col2 + - col0 * col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT cor0.col0 - + cor0.col1 AS col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - col0 + col0 * col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT - col0 * cor0.col2 * col2 AS col0 FROM tab2 cor0
----
-114076
-5103
-52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col1 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT - - cor0.col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + + col2 col0 FROM tab1
----
130
133
172
query I rowsort
SELECT + - col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - 9 * col0 FROM tab0 AS cor0
----
-216
-315
-801
query I rowsort
SELECT DISTINCT - 12 * - col2 FROM tab1 AS cor0
----
1152
648
684
query I rowsort
SELECT - col0 + + 78 AS col2 FROM tab2 AS cor0
----
-1
0
71
query I rowsort
SELECT + col0 * tab2.col1 + + col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT - col2 * + 47 FROM tab2 AS cor0
----
-1222
-1269
-1786
onlyif mysql # use DIV operator for integer division
query I rowsort label-7850
SELECT ALL + col0 DIV 26 + 13 AS col1 FROM tab2 AS cor0
----
13
16
16
skipif mysql # not compatible
query I rowsort label-7850
SELECT ALL + col0 / 26 + 13 AS col1 FROM tab2 AS cor0
----
13
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-7851
SELECT + col1 DIV - col0 + col1 + col1 * - 21 * - tab1.col1 AS col1 FROM tab1
----
14214
2110
3562
skipif mysql # not compatible
query I rowsort label-7851
SELECT + col1 / - col0 + col1 + col1 * - 21 * - tab1.col1 AS col1 FROM tab1
----
14214
2110
3562
query I rowsort
SELECT - 60 FROM tab0 cor0
----
-60
-60
-60
query I rowsort
SELECT - 33 FROM tab0, tab1 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT DISTINCT + - col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL col1 * 66 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
5700
6095
6437
query I rowsort
SELECT + ( - ( + col0 ) ) + ( + col2 ) * col1 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT - 11 FROM tab1, tab0 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d
query I rowsort
SELECT ALL - ( + 65 + - col0 ) FROM tab2
----
-58
13
14
query I rowsort
SELECT - 11 AS col0 FROM tab0 AS cor0
----
-11
-11
-11
query I rowsort
SELECT - + col1 * - col1 + - col2 * + col2 * col0 FROM tab0 AS cor0
----
-18740
-590155
9374
query I rowsort
SELECT ( col2 ) * col1 + + col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT ( - 97 + + col1 ) * col0 AS col2 FROM tab1
----
-213
-5568
-6720
query I rowsort
SELECT + col0 + + col2 * col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT + col2 * + cor0.col2 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT 92 * col1 AS col1 FROM tab1 AS cor0
----
1196
2392
920
query I rowsort
SELECT - 57 * 57 + + col0 FROM tab1 AS cor0
----
-3169
-3185
-3246
query I rowsort
SELECT ( + col0 ) * + 51 AS col0 FROM tab2 cor0
----
357
3978
4029
query I rowsort
SELECT + cor0.col2 * col2 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT + + col2 * + col1 + - ( 20 ) + col1 * col1 FROM tab1 AS cor0
----
1397
2060
650
query I rowsort
SELECT ALL col1 - col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 45 AS col2 FROM tab2
----
45
query I rowsort
SELECT DISTINCT - + col1 - - col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 14 * col0 + + cor0.col1 * - col2 + - col2 FROM tab2 AS cor0
----
-1790
-2652
-962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col0 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 75 - + col0 * - ( col2 ) * cor0.col0 col1 FROM tab2 AS cor0
----
1398
158259
237233
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7876
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7876
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab0 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col1 + - col1 - + ( tab1.col0 + - col2 ) * + col1 * + col0 AS col0 FROM tab1
----
-4480
16640
3978
query I rowsort
SELECT cor0.col0 + col1 * - col1 AS col2 FROM tab0 cor0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-7879
SELECT - col1 DIV 46 AS col0 FROM tab0 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-7879
SELECT - col1 / 46 AS col0 FROM tab0 AS cor0
----
-1
-1
-2
query I rowsort
SELECT - + col2 * + col1 * + col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query IIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0 WHERE NULL > ( NULL )
----
query I rowsort
SELECT ALL col1 * ( col2 ) AS col1 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT ALL cor0.col1 DIV col0 AS col2 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL cor0.col1 / col0 AS col2 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT ALL + 74 + col2 FROM tab2 AS cor0
----
100
101
112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 69 col0 FROM tab0 AS cor0
----
-69
query I rowsort
SELECT 99 * - 78 FROM tab1 AS cor0
----
-7722
-7722
-7722
query I rowsort
SELECT - col0 * col1 * - col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + col2 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7889
SELECT DISTINCT col2 * ( - col0 ) DIV + tab2.col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7889
SELECT DISTINCT col2 * ( - col0 ) / + tab2.col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT + tab2.col0 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT col1 * tab0.col1 * col0 FROM tab0
----
177504
329315
737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-7892
SELECT ALL cor0.col2 DIV + col2 - col2 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-7892
SELECT ALL cor0.col2 / + col2 - col2 FROM tab0 cor0
----
-32
-81
0
query I rowsort
SELECT ALL + col0 * - col0 + ( + col0 ) * ( ( + col2 ) ) FROM tab2 cor0
----
-3239
-4056
140
query I rowsort
SELECT ALL + col2 - col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 * - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT col1 + ( 39 ) AS col2 FROM tab1 AS cor0
----
49
52
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 82 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT DISTINCT + col0 * tab2.col0 + 62 AS col1 FROM tab2
----
111
6146
6303
query I rowsort
SELECT ALL + tab0.col2 + + tab0.col0 + col2 FROM tab0
----
253
37
90
query I rowsort
SELECT + col0 * + col1 - + ( - ( col0 ) ) AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT 50 FROM tab0, tab1 AS cor0
----
50
query I rowsort
SELECT + col2 * + 50 + + tab0.col2 * + col2 * + col2 AS col2 FROM tab0
----
37587
51
555468
onlyif mysql # use DIV operator for integer division
query I rowsort label-7903
SELECT col2 + 81 DIV 42 col0 FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7903
SELECT col2 + 81 / 42 col0 FROM tab1
----
55
58
97
query I rowsort
SELECT ALL tab0.col0 * - 68 FROM tab0
----
-1632
-2380
-6052
onlyif mysql # use DIV operator for integer division
query I rowsort label-7905
SELECT ALL + col0 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL + col0 / tab0.col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - + cor0.col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL 79 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7908
SELECT ALL - col0 * - CAST( 79 AS SIGNED ) + col1 col0 FROM tab2 AS cor0
----
584
6221
6258
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - col0 * - CAST ( 79 AS INTEGER ) + col1 col0 FROM tab2 AS cor0
----
584
6221
6258
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7909
SELECT - CAST( NULL AS SIGNED ) / - 41 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7909
SELECT - CAST ( NULL AS INTEGER ) / - 41 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 26 + + col2 + - tab2.col1 FROM tab2
----
-30
-5
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + col0 - col0 * col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT ALL 87 * col1 - col2 * + col2 FROM tab1
----
-2379
-654
-8085
query I rowsort
SELECT 93 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT 4 * + col2 * col2 AS col0 FROM tab2
----
2704
2916
5776
query I rowsort
SELECT DISTINCT 45 AS col1 FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + tab2.col0 * - col0 col2 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT - + col2 * 55 - + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
-2322
-2736
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-7919
SELECT 7 DIV - col2 - + col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7919
SELECT 7 / - col2 - + col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ( - col0 ) - col2 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 + tab2.col1 * + col1 col2 FROM tab2
----
1015
3533
365
query I rowsort
SELECT + 31 + - cor0.col1 AS col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 9d4e78f8236b0dc817a9cf3744756d45
query I rowsort
SELECT DISTINCT + col0 - col0 FROM tab1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7924
SELECT ALL - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-7924
SELECT ALL - col0 / - col1 AS col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT + col1 + col0 - - col0 AS col2 FROM tab0 AS cor0
----
134
167
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-7926
SELECT 72 DIV + 32 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif mysql # not compatible
query I rowsort label-7926
SELECT 72 / + 32 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col0 - - col1 col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL + col2 * col1 + col2 + col2 FROM tab0 AS cor0
----
2904
7626
99
query I rowsort
SELECT DISTINCT + + ( - cor0.col0 ) - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col1 + cor0.col2 * + col1 FROM tab2 cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 col0 FROM tab2 AS cor0
----
92
92
92
query I rowsort
SELECT DISTINCT - col1 * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 98 + + col1 AS col2 FROM tab0 cor0
----
184
189
195
query I rowsort
SELECT ALL - 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32
query I rowsort
SELECT DISTINCT 77 FROM tab1 AS cor0
----
77
query I rowsort
SELECT + + 36 AS col2 FROM tab2 AS cor0
----
36
36
36
query I rowsort
SELECT DISTINCT + 94 * + col1 + - col0 AS col1 FROM tab2 cor0
----
1519
2907
5468
query I rowsort
SELECT DISTINCT - col2 * + col0 + - ( col0 ) FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT + col1 * + col2 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL col1 * col0 * 44 + 55 AS col1 FROM tab1
----
28215
3487
45815
query I rowsort
SELECT - 8 * + col2 * tab0.col2 FROM tab0
----
-53792
-8
-8712
query I rowsort
SELECT ALL - col1 + col2 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT - - cor0.col1 * col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - cor0.col1 - - col0 FROM tab1 cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-7945
SELECT ALL + col0 DIV + cor0.col0 - - col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL + col0 / + cor0.col0 - - col2 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT ALL 45 + col2 FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT - col1 * 80 FROM tab2 AS cor0
----
-1360
-2480
-4720
onlyif mysql # use DIV operator for integer division
query I rowsort label-7948
SELECT - col2 DIV + 3 + col2 FROM tab2 AS cor0
----
18
18
26
skipif mysql # not compatible
query I rowsort label-7948
SELECT - col2 / + 3 + col2 FROM tab2 AS cor0
----
18
18
26
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 DISTINCT + - col1 - + col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - + cor0.col2 * ( - col0 ) + - cor0.col1 AS col0 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7952
SELECT ALL + cor0.col2 * + CAST( NULL AS SIGNED ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7952
SELECT ALL + cor0.col2 * + CAST ( NULL AS INTEGER ) * + cor0.col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT + col2 * col2 + - col1 * - cor0.col0 / - CAST ( - col1 AS REAL ) AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL 30 + - col1 AS col2 FROM tab0
----
-56
-61
-67
query I rowsort
SELECT ALL - col1 + col0 * - col2 FROM tab1
----
-188
-3658
-7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + col1 * cor0.col1 col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT - + cor0.col2 + - 14 AS col2 FROM tab0 AS cor0
----
-15
-47
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 * + col1 col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + - ( - col0 ) + - col1 * 30 FROM tab0 AS cor0
----
-2556
-2641
-2875
query I rowsort
SELECT ALL - col1 * cor0.col2 + + col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7961
SELECT - CAST( col1 AS SIGNED ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-7961
SELECT - CAST ( col1 AS INTEGER ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - 46 + 21 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT ALL + + col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT - - col1 + 8 * - cor0.col1 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT - ( + col0 ) AS col2 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7966
SELECT ALL + - 64 + col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-56
-64
-64
skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + - 64 + col1 / col0 AS col1 FROM tab1 AS cor0
----
-56
-64
-64
query I rowsort
SELECT DISTINCT + + 13 * + col2 AS col2 FROM tab2 AS cor0
----
338
351
494
query I rowsort
SELECT + ( - 60 ) * - col2 AS col1 FROM tab1 AS cor0
----
3240
3420
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7969
SELECT CAST( NULL AS SIGNED ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7969
SELECT CAST ( NULL AS INTEGER ) / col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 62 + - col2 * + cor0.col1 FROM tab1 AS cor0
----
-1310
-1466
-632
onlyif mysql # use DIV operator for integer division
query I rowsort label-7971
SELECT cor0.col1 + + col2 DIV - col1 AS col0 FROM tab0 cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7971
SELECT cor0.col1 + + col2 / - col1 AS col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - - cor0.col1 * col0 * + cor0.col2 FROM tab1 cor0
----
36480
4212
99840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT ( 36 ) * - col1 * 63 AS col0 FROM tab0 AS cor0
----
-195048
-206388
-219996
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7975
SELECT ALL CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-7975
SELECT ALL CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT - - col1 * - 63 * col1 FROM tab1 AS cor0
----
-10647
-42588
-6300
onlyif mysql # use DIV operator for integer division
query I rowsort label-7977
SELECT - col2 DIV 76 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7977
SELECT - col2 / 76 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL 76 * col1 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT + ( col2 ) AS col2 FROM tab0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7980
SELECT DISTINCT + col0 * - CAST( 12 AS SIGNED ) + col0 FROM tab1 cor0
----
-33
-704
-880
skipif mysql # not compatible
query I rowsort label-7980
SELECT DISTINCT + col0 * - CAST ( 12 AS INTEGER ) + col0 FROM tab1 cor0
----
-33
-704
-880
query I rowsort
SELECT cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL - + col0 + - 26 AS col0 FROM tab1 AS cor0
----
-106
-29
-90
query I rowsort
SELECT + + cor0.col1 + + 68 AS col2 FROM tab0 cor0
----
154
159
165
query I rowsort
SELECT ALL - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL col0 + col1 * col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - col1 * cor0.col2 * cor0.col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT + col2 + + 67 + ( + col2 ) AS col1 FROM tab2 AS cor0
----
119
121
143
query I rowsort
SELECT + - col2 + 66 + 39 FROM tab0 cor0
----
104
23
72
query I rowsort
SELECT col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 97 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) col1 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * tab2.col0 col1 FROM tab2
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7993
SELECT 21 DIV + 1 FROM tab2
----
21
21
21
skipif mysql # not compatible
query I rowsort label-7993
SELECT 21 / + 1 FROM tab2
----
21
21
21
query I rowsort
SELECT ( col2 ) + + col0 * + 50 FROM tab2
----
377
3926
3988
query I rowsort
SELECT - col2 + + col2 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1, tab2, tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + 43 AS col0 FROM tab0 AS cor0
----
43
43
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-7998
SELECT DISTINCT + cor0.col0 DIV - col0 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-7998
SELECT DISTINCT + cor0.col0 / - col0 + col1 AS col1 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT ALL + ( 18 + - cor1.col2 ) AS col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 168df634a1da24d2bdbeefe6d1264680
query I rowsort
SELECT ALL + col2 * ( - col1 ) + + col2 * 32 AS col1 FROM tab2 cor0
----
-702
27
570
query I rowsort
SELECT DISTINCT - col2 + - 31 AS col1 FROM tab1 AS cor0
----
-127
-85
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-8002
SELECT + - col2 + col2 DIV - col0 FROM tab2 AS cor0
----
-26
-30
-38
skipif mysql # not compatible
query I rowsort label-8002
SELECT + - col2 + col2 / - col0 FROM tab2 AS cor0
----
-26
-30
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8003
SELECT - col0 DIV col2 + - col0 FROM tab1 AS cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-8003
SELECT - col0 / col2 + - col0 FROM tab1 AS cor0
----
-3
-65
-80
query I rowsort
SELECT DISTINCT - col0 + - ( col0 ) * tab0.col2 * col1 FROM tab0
----
-3430
-664207
-68136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 - tab1.col0 * 49 col1 FROM tab1
----
-3079
-3824
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col2 col0 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL col2 + col0 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + col1 - ( col1 ) * col2 FROM tab1
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ( 67 ) FROM tab1
----
67
67
67
query I rowsort
SELECT DISTINCT 59 * - col0 FROM tab2
----
-413
-4602
-4661
query I rowsort
SELECT DISTINCT - 9 FROM tab0
----
-9
query I rowsort
SELECT ALL 67 * col2 FROM tab2
----
1742
1809
2546
onlyif mysql # use DIV operator for integer division
query I rowsort label-8014
SELECT DISTINCT + col0 DIV - col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT + col0 / - col1 FROM tab0
----
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 3a186ad492d315801f56fb30a5e89dbb
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8016
SELECT - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8016
SELECT - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + ( - col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - + cor0.col2 * col2 * col1 AS col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8019
SELECT col0 * - cor0.col1 * ( ( - col2 ) ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8019
SELECT col0 * - cor0.col1 * ( ( - col2 ) ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + cor0.col2 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ( + col0 ) + + 43 + - col2 FROM tab1 AS cor0
----
-8
27
50
query I rowsort
SELECT - 50 AS col1 FROM tab0 cor0
----
-50
-50
-50
query I rowsort
SELECT 24 + col2 AS col2 FROM tab2 AS cor0
----
50
51
62
query I rowsort
SELECT ( + col1 ) * + col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + 66 FROM tab1 AS cor0
----
66
66
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL - cor0.col1 + col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + ( - col2 ) * col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8030
SELECT ALL cor0.col0 DIV - 55 + col1 FROM tab2 AS cor0
----
16
31
58
skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL cor0.col0 / - 55 + col1 FROM tab2 AS cor0
----
16
31
58
query I rowsort
SELECT cor0.col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - + ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + col1 + - col0 * + col0 FROM tab2 AS cor0
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( + col2 ) + - col2 * - col1 AS col1 FROM tab0 cor0
----
2805
7380
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8036
SELECT ALL - col1 + col0 * + CAST( - 9 AS SIGNED ) FROM tab2 cor0
----
-728
-761
-94
skipif mysql # not compatible
query I rowsort label-8036
SELECT ALL - col1 + col0 * + CAST ( - 9 AS INTEGER ) FROM tab2 cor0
----
-728
-761
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8037
SELECT - CAST( NULL AS SIGNED ) / 55 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8037
SELECT - CAST ( NULL AS INTEGER ) / 55 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 85 * 85 AS col0 FROM tab2
----
7225
7225
7225
query I rowsort
SELECT DISTINCT - col2 * - col0 + + col0 + col0 AS col1 FROM tab0
----
105
7476
840
query I rowsort
SELECT ALL + 68 + 29 AS col1 FROM tab0
----
97
97
97
query I rowsort
SELECT col0 * + tab1.col0 FROM tab1
----
4096
6400
9
query I rowsort
SELECT DISTINCT + col0 + - 84 * col1 + + col0 FROM tab0
----
-7176
-7466
-8078
query I rowsort
SELECT DISTINCT - col1 + - col2 * col1 - - col2 AS col1 FROM tab0 AS cor0
----
-193
-2891
-7471
query I rowsort
SELECT ALL 55 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT ALL - - col2 * - col0 + + 32 AS col2 FROM tab0 AS cor0
----
-3
-7266
-760
query I rowsort
SELECT DISTINCT - col0 * - col0 - + 90 AS col0 FROM tab0 AS cor0
----
1135
486
7831
query I rowsort
SELECT ALL + - col2 * ( + col2 ) + col2 AS col1 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT - - col2 + - cor0.col2 * col0 AS col0 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT ALL - col2 + 24 AS col0 FROM tab0 AS cor0
----
-58
-9
23
query I rowsort
SELECT 47 * - col0 * + col0 + + 82 FROM tab1
----
-192430
-300718
-341
query I rowsort
SELECT cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT + tab1.col0 + - col1 - 25 FROM tab1
----
-48
29
42
query I rowsort
SELECT DISTINCT + col0 - - col0 * + tab0.col2 AS col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT ALL - + col0 * - 82 + - 32 FROM tab2 AS cor0
----
542
6364
6446
skipif mysql # not compatible
query I rowsort
SELECT ALL + + col0 + - CAST ( + 11 AS REAL ) * - col2 FROM tab0 AS cor0
----
387
46
991
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-8057
SELECT ALL - col0 + - col2 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - col0 + - col2 / col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL col0 + - ( - ( col1 ) ) + - col2 FROM tab2 AS cor0
----
11
111
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-8059
SELECT col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8059
SELECT col1 / + col1 AS col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + col2 * 76 AS col1 FROM tab1
----
4104
4332
7296
query I rowsort
SELECT col0 + 99 * - 57 AS col2 FROM tab1
----
-5563
-5579
-5640
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8062
SELECT ALL col0 * CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL col0 * CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 9 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to ebef7303942834ca1e6ca8604ec18a07
query I rowsort
SELECT ALL col2 - + col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * 88 AS col2 FROM tab2 AS cor0
----
1496
2728
5192
query I rowsort
SELECT col1 * col1 + col2 FROM tab2 cor0
----
327
3507
988
query I rowsort
SELECT ALL - + col1 + - col2 AS col0 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT + col0 - + col0 * - col2 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT ALL 87 AS col1 FROM tab1
----
87
87
87
query I rowsort
SELECT ( - col2 ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - 12 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT - 31 FROM tab1 AS cor0
----
-31
-31
-31
onlyif mysql # use DIV operator for integer division
query I rowsort label-8073
SELECT ALL - col2 * col0 + - col2 DIV ( 24 ) AS col2 FROM tab1 AS cor0
----
-164
-3650
-7684
skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - col2 * col0 + - col2 / ( 24 ) AS col2 FROM tab1 AS cor0
----
-164
-3650
-7684
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8074
SELECT CAST( NULL AS SIGNED ) * - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8074
SELECT CAST ( NULL AS INTEGER ) * - cor0.col1 + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - 93 * col2 FROM tab0 AS cor0
----
3069
7626
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8076
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV col2 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-8076
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / col2 AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT + 31 FROM tab2 AS cor0
----
31
query I rowsort
SELECT ALL - ( - col0 ) + - col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + + col2 + - cor0.col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + 51 * 57 + cor0.col0 * + col2 FROM tab2 AS cor0
----
-2718
-879
95
query I rowsort
SELECT + col1 - - cor0.col2 * col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL 86 * - 77 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-6596
-6609
-6612
query I rowsort
SELECT ALL + + 38 AS col0 FROM tab0 AS cor0
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8084
SELECT DISTINCT - - cor0.col2 * cor0.col1 + 8 DIV + col1 + - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96
skipif mysql # not compatible
query I rowsort label-8084
SELECT DISTINCT - - cor0.col2 * cor0.col1 + 8 / + col1 + - cor0.col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - - col2 * + col1 * - col1 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL col2 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col1 + + col0 * + col2 FROM tab2 AS cor0
----
158
1969
2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-8088
SELECT + + cor0.col0 + + col2 DIV ( - ( - cor0.col0 ) ) col2 FROM tab1 AS cor0
----
21
64
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8088
SELECT + + cor0.col0 + + col2 / ( - ( - cor0.col0 ) ) col2 FROM tab1 AS cor0
----
21
64
81
query I rowsort
SELECT DISTINCT + 42 * col1 FROM tab1 AS cor0
----
1092
420
546
query I rowsort
SELECT + + 93 * cor0.col2 FROM tab0 cor0
----
3069
7626
93
query I rowsort
SELECT ALL - - 12 * col2 * col1 FROM tab0 cor0
----
1164
34056
89544
query I rowsort
SELECT DISTINCT ( - col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - + col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + 39 + col1 * col0 AS col0 FROM tab2 AS cor0
----
1382
256
4641
query I rowsort
SELECT 23 + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2087
3418
8122
query I rowsort
SELECT + + col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8097
SELECT ( - col0 ) + CAST( NULL AS SIGNED ) / ( + col2 ) + + ( + cor0.col2 + + cor0.col1 * col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8097
SELECT ( - col0 ) + CAST ( NULL AS INTEGER ) / ( + col2 ) + + ( + cor0.col2 + + cor0.col1 * col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8098
SELECT + col0 * + col0 + + 70 + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
122
6154
6311
skipif mysql # not compatible
query I rowsort label-8098
SELECT + col0 * + col0 + + 70 + col2 / col0 AS col1 FROM tab2 AS cor0
----
122
6154
6311
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8099
SELECT DISTINCT - + cor0.col2 * - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT - + cor0.col2 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 * ( + col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 41 AS REAL ) col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70
query I rowsort
SELECT + cor1.col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col0 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8104
SELECT + - col2 DIV - ( - 82 ) FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8104
SELECT + - col2 / - ( - 82 ) FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - - col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT + cor0.col2 + - 4 FROM tab1 AS cor0
----
50
53
92
query I rowsort
SELECT - - col2 * - 79 FROM tab0 AS cor0
----
-2607
-6478
-79
query I rowsort
SELECT ALL - - col2 * ( ( col2 ) ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL 61 AS col0 FROM tab0
----
61
61
61
query I rowsort
SELECT cor0.col2 * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL 24 + + cor0.col0 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to bdb87b63ab8aa777b785628535b9c12a
query I rowsort
SELECT tab2.col0 * tab2.col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT - 32 * - col1 * + col0 AS col2 FROM tab1 AS cor0
----
20480
2496
33280
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8115
SELECT - col2 * CAST( 81 * - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
15309
164268
243162
skipif mysql # not compatible
query I rowsort label-8115
SELECT - col2 * CAST ( 81 * - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
15309
164268
243162
query I rowsort
SELECT DISTINCT - col0 + col0 AS col0 FROM tab1
----
0
query I rowsort
SELECT col0 * - 73 AS col1 FROM tab2 AS cor0
----
-511
-5694
-5767
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8118
SELECT - col2 + CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-164
-2
-66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8118
SELECT - col2 + CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL - tab1.col2 FROM tab1, tab1 cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab1, tab2, tab0 AS cor0
----
19
query I rowsort
SELECT + col2 * col0 * - cor0.col1 AS col2 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT - - col1 * + cor0.col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * col2 + + col2 AS col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - col0 + col0 AS col1 FROM tab2
----
0
query I rowsort
SELECT - col1 * + col1 + - col1 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT - col2 * + tab1.col1 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NULL ) IN ( col0 * col0 )
----
query I rowsort
SELECT tab0.col0 * + col2 - + col2 FROM tab0 WHERE - col1 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT ( NULL ) = NULL
----
query I rowsort
SELECT col0 + col0 + col1 * + col1 AS col0 FROM tab0
----
7444
8459
9479
query I rowsort
SELECT + col1 + - col0 - - col1 FROM tab0
----
148
159
93
query I rowsort
SELECT ALL + col1 * - col1 - col0 AS col1 FROM tab1
----
-164
-249
-679
query I rowsort
SELECT DISTINCT - col2 * - col0 * - col2 + + col2 * col0 FROM tab0
----
-25344
-591138
0
query I rowsort
SELECT ALL col1 + + tab1.col2 AS col1 FROM tab1 WHERE ( NULL ) > NULL
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col0 ) <= NULL
----
query I rowsort
SELECT ALL - cor0.col1 + cor0.col2 FROM tab0, tab2 cor0
----
9 values hashing to 81a5cd95f3bf6bcb4ae24bb35bb8df50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - cor0.col0 col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - - col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - tab2.col0 * + col1 AS col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 + col2 * tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT - col1 + - col2 * col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT + tab2.col1 * - col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - tab2.col1 * + col0 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 - tab0.col1 FROM tab0
----
0
0
0
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - tab2.col0 + - tab2.col1 )
----
query I rowsort
SELECT DISTINCT col1 * - col1 * col1 FROM tab2
----
-205379
-29791
-4913
query I rowsort
SELECT ALL - col1 * + col2 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ( - col1 ) * 87 + + col1 - + col2 FROM tab1 AS cor0
----
-1214
-2290
-917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col2 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT ALL - ( col0 ) AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + ( col0 ) + - 10 FROM tab2 AS cor0
----
-3
68
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col1 + + col0 col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT + + col1 * - col1 * - ( + col0 ) + col1 - + 55 FROM tab2 cor0
----
22793
271522
6703
query I rowsort
SELECT - col2 * + col0 + ( + 24 ) AS col0 FROM tab2 AS cor0
----
-165
-2004
-2978
query I rowsort
SELECT - + col0 + - col2 - col0 AS col1 FROM tab1 AS cor0
----
-185
-256
-60
query I rowsort
SELECT + - col1 + col1 + + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - 39 * + col2 AS col0 FROM tab1 AS cor0
----
-2106
-2223
-3744
query I rowsort
SELECT DISTINCT - - cor0.col1 + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + + 4 * col2 * + col0 FROM tab1 AS cor0
----
14592
30720
648
query I rowsort
SELECT ALL - + 73 AS col0 FROM tab0 AS cor0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT - - col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 * col2 + ( - ( col0 ) ) FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL col0 * 35 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT col0 * col0 * + 91 + + col2 FROM tab2 cor0
----
4486
553670
567969
query I rowsort
SELECT 2 * + tab2.col0 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT - cor1.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8167
SELECT ALL + col1 + + tab1.col2 DIV col0 - col2 * + col0 AS col1 FROM tab1
----
-118
-3638
-7666
skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL + col1 + + tab1.col2 / col0 - col2 * + col0 AS col1 FROM tab1
----
-118
-3638
-7666
onlyif mysql # use DIV operator for integer division
query I rowsort label-8168
SELECT col2 DIV tab0.col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8168
SELECT col2 / tab0.col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 + - 33 AS col2 FROM tab1 AS cor0
----
-113
-36
-97
query I rowsort
SELECT DISTINCT - 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
-73
query I rowsort
SELECT - 26 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT col1 + + tab0.col0 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL ( - 72 * - col0 ) FROM tab1
----
216
4608
5760
query I rowsort
SELECT DISTINCT 60 * cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
3240
3420
5760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8176
SELECT - 87 DIV col0 AS col0 FROM tab0 cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-8176
SELECT - 87 / col0 AS col0 FROM tab0 cor0
----
-2
-3
0
query I rowsort
SELECT col0 * + col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8178
SELECT - col2 + - col1 DIV + col0 AS col2 FROM tab2
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-8178
SELECT - col2 + - col1 / + col0 AS col2 FROM tab2
----
-26
-31
-38
query I rowsort
SELECT DISTINCT 40 * + col2 FROM tab0
----
1320
3280
40
query I rowsort
SELECT ALL tab0.col0 - + col0 FROM tab0
----
0
0
0
query I rowsort
SELECT 74 + col1 * + tab2.col2 FROM tab2
----
1608
720
911
query I rowsort
SELECT DISTINCT - - col1 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + cor0.col1 * col1 + - col1 * col0 FROM tab2 AS cor0
----
-1054
-1121
744
query I rowsort
SELECT DISTINCT - + col1 - - cor0.col0 * col1 AS col1 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT DISTINCT col1 - col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - cor0.col2 * + cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 81 * - cor0.col0 FROM tab0 AS cor0
----
-1944
-2835
-7209
query I rowsort
SELECT ALL - col0 * - col0 * col0 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT ALL col0 + col0 * - col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT - 24 * - col0 AS col1 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT ALL - cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-8192
SELECT col1 * col0 - cor0.col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
1047
645
80
skipif mysql # not compatible
query I rowsort label-8192
SELECT col1 * col0 - cor0.col2 / - col1 AS col2 FROM tab1 AS cor0
----
1047
645
80
query I rowsort
SELECT DISTINCT - col0 * col2 + cor0.col1 * + col2 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT + col0 - col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT ALL cor0.col2 * - col1 - - col0 AS col0 FROM tab0 cor0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col0 - - col2 AS col1 FROM tab0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8198
SELECT col0 DIV - col2 - tab1.col0 FROM tab1
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-8198
SELECT col0 / - col2 - tab1.col0 FROM tab1
----
-3
-65
-80
query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - + col0 * ( col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT DISTINCT - + 81 + ( col2 ) * col2 AS col0 FROM tab2 AS cor0
----
1363
595
648
query I rowsort
SELECT ALL col0 + cor0.col0 FROM tab2 AS cor0
----
14
156
158
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + 1 AS REAL ) * - col2 + col2 / - col0 FROM tab2
----
-26
-30
-38
query I rowsort
SELECT ( - 24 ) * col1 AS col0 FROM tab2
----
-1416
-408
-744
query I rowsort
SELECT 77 * - 32 + col1 FROM tab2 cor0
----
-2405
-2433
-2447
query I rowsort
SELECT - ( cor0.col2 ) + + col2 + + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + ( - col2 ) * + col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-8209
SELECT DISTINCT tab2.col0 DIV - 55 FROM tab2
----
-1
0
skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT tab2.col0 / - 55 FROM tab2
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8210
SELECT - + col1 DIV cor0.col0 + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
21
74
93
skipif mysql # not compatible
query I rowsort label-8210
SELECT - + col1 / cor0.col0 + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
21
74
93
query I rowsort
SELECT DISTINCT - 3 * + col1 AS col2 FROM tab2 AS cor0
----
-177
-51
-93
query I rowsort
SELECT + ( 82 ) + + col2 FROM tab2 AS cor0
----
108
109
120
query I rowsort
SELECT DISTINCT - - cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT + 50 * - col0 + - cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1079
-4576
-5394
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col0 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col2 + - col1 * + col0 AS col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT 4 FROM tab0 cor0
----
4
query I rowsort
SELECT ALL + - 65 + cor0.col1 * cor0.col2 AS col2 FROM tab0 AS cor0
----
2773
32
7397
query I rowsort
SELECT DISTINCT + + 18 FROM tab1 cor0
----
18
query I rowsort
SELECT - 83 AS col0 FROM tab0 AS cor0
----
-83
-83
-83
query I rowsort
SELECT - - col0 * + col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 84 AS col2 FROM tab0 cor0
----
84
84
84
query I rowsort
SELECT 48 AS col1 FROM tab2
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8224
SELECT - CAST( + ( + col2 ) AS SIGNED ) FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8224
SELECT - CAST ( + ( + col2 ) AS INTEGER ) FROM tab2
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8225
SELECT DISTINCT - CAST( + col0 AS SIGNED ) * - col1 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) * - col1 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT + col0 + col1 DIV col0 FROM tab1
----
11
64
80
skipif mysql # not compatible
query I rowsort label-8226
SELECT + col0 + col1 / col0 FROM tab1
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col0 - + col0 col0 FROM tab1
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8228
SELECT DISTINCT - col2 DIV - col1 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-8228
SELECT DISTINCT - col2 / - col1 AS col1 FROM tab0
----
0
query I rowsort
SELECT col0 + col2 / col1 AS col0 FROM tab1 WHERE NOT NULL IN ( + col1 + + tab1.col1 + col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8230
SELECT DISTINCT col0 * col0 DIV + col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT col0 * col0 / + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NULL <= NULL
----
query I rowsort
SELECT cor0.col1 * col0 + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT col1 + - col2 AS col0 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT - col1 * col2 + + col2 AS col0 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-8235
SELECT col2 - col2 DIV col2 AS col1 FROM tab0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-8235
SELECT col2 - col2 / col2 AS col1 FROM tab0
----
0
32
81
query I rowsort
SELECT + col2 - + tab0.col1 * col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT col0 + col0 * col0 AS col1 FROM tab2
----
56
6162
6320
query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 * + col1 * col1 ) NOT BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 IN ( col2 + - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab2 WHERE col0 * col2 NOT IN ( col1 * + col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8241
SELECT col0 + tab0.col1 DIV + col0 FROM tab0
----
27
37
90
skipif mysql # not compatible
query I rowsort label-8241
SELECT col0 + tab0.col1 / + col0 FROM tab0
----
27
37
90
query I rowsort
SELECT ALL col2 + - tab1.col2 FROM tab1 WHERE NULL NOT BETWEEN + col2 + - col0 AND NULL
----
query I rowsort
SELECT DISTINCT + col1 + col2 * + col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT DISTINCT - col2 + tab1.col0 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT - tab1.col0 * col0 AS col1 FROM tab1 WHERE NULL > NULL
----
query I rowsort
SELECT ALL tab0.col1 + tab0.col2 AS col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + col1 + tab0.col0 FROM tab0
----
110
132
180
query I rowsort
SELECT + col2 * cor0.col2 + - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT + col0 * - col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8250
SELECT DISTINCT col0 + - col2 DIV tab0.col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT col0 + - col2 / tab0.col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT tab0.col0 * col2 + + col1 * + col2 AS col0 FROM tab0
----
132
14760
3630
query I rowsort
SELECT + tab0.col0 * col0 + tab0.col0 + - col1 * + col2 FROM tab0
----
-2238
1163
548
query I rowsort
SELECT ALL col0 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT cor0.col1 * + cor0.col2 + - col0 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + col2 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL + - col1 + + col1 * col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT col1 * + col2 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 + - col0 col1 FROM tab1 AS cor0
----
2913
3185
9136
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * col0 col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT ALL - col0 + - col1 * col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT + col1 * + col0 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 + - col1 + cor0.col0 AS col1 FROM tab0 cor0
----
-1287
-638
-7923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT - col1 * + col0 + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT - + col1 + col0 * - col2 + col2 * col1 FROM tab1 AS cor0
----
-3088
-6445
1216
query I rowsort
SELECT ALL - + col1 * col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT + tab2.col1 + + ( 86 ) FROM tab2
----
103
117
145
query I rowsort
SELECT ALL col2 + + tab2.col0 * 2 AS col2 FROM tab2
----
182
196
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8269
SELECT - - 48 * ( col0 * 68 ) + col1 DIV col2 AS col2 FROM tab1 AS cor0
----
208896
261120
9792
skipif mysql # not compatible
query I rowsort label-8269
SELECT - - 48 * ( col0 * 68 ) + col1 / col2 AS col2 FROM tab1 AS cor0
----
208896
261120
9792
onlyif mysql # use DIV operator for integer division
query I rowsort label-8270
SELECT col2 * cor0.col1 + col1 DIV - ( + 65 ) col1 FROM tab0 AS cor0
----
2837
7461
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8270
SELECT col2 * cor0.col1 + col1 / - ( + 65 ) col1 FROM tab0 AS cor0
----
2837
7461
96
query I rowsort
SELECT - 27 - + col1 FROM tab2 AS cor0
----
-44
-58
-86
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 AS cor0, tab0 cor1
----
972 values hashing to 9345325155d9f4d7dc4986690c631cb9
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT + col2 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8274
SELECT + col2 / col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - 72 + - cor0.col1 - - 27 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e1c16a8fd68e7e7b34e19e1ca216ac90
query I rowsort
SELECT - + 58 * col2 + + cor0.col1 * 67 AS col2 FROM tab0 cor0
----
1341
3848
6441
onlyif mysql # use DIV operator for integer division
query I rowsort label-8277
SELECT + col0 DIV + col2 + + col1 FROM tab1 AS cor0
----
11
13
26
skipif mysql # not compatible
query I rowsort label-8277
SELECT + col0 / + col2 + + col1 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT - col1 * - col1 * + cor0.col2 - - 71 FROM tab2 AS cor0
----
11053
26018
90577
query I rowsort
SELECT - 46 + + col2 FROM tab0 cor0
----
-13
-45
36
query I rowsort
SELECT - 86 + col2 FROM tab0 AS cor0
----
-4
-53
-85
query I rowsort
SELECT - col1 + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 28 * col0 * col0 - col1 AS col0 FROM tab0 cor0
----
16042
221697
34203
query I rowsort
SELECT DISTINCT - - 41 * ( cor1.col2 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
1353
3362
41
query I rowsort
SELECT ALL - 54 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT DISTINCT - cor0.col2 * col0 + - col2 - col0 AS col0 FROM tab1 AS cor0
----
-219
-3769
-7856
query I rowsort
SELECT ALL - + 27 FROM tab1 AS cor0
----
-27
-27
-27
query I rowsort
SELECT DISTINCT - - col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col1 col1 FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT DISTINCT - + cor0.col2 + - col0 * ( - col0 ) FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL + - col0 + col1 * - 89 FROM tab2 AS cor0
----
-1592
-2766
-5329
query I rowsort
SELECT + - col0 * cor0.col2 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 86 * col2 FROM tab2 AS cor0
----
2236
2322
3268
query I rowsort
SELECT ALL + - ( + col2 ) * col0 + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT col2 * - ( 53 ) * - col1 FROM tab2 cor0
----
34238
44361
81302
query I rowsort
SELECT col1 + + ( + 68 ) FROM tab0 AS cor0
----
154
159
165
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2, tab0 cor2
----
3645 values hashing to 52c9380a39df7a744b9f2f2c5bf55dd5
query I rowsort
SELECT ALL - col2 * + col1 + col2 * - col0 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT 3 FROM tab1, tab0 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT DISTINCT - + 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-65
query I rowsort
SELECT + - col1 * - cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col0 + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT col2 * ( - 49 ) AS col2 FROM tab1 AS cor0
----
-2646
-2793
-4704
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col2 col0 FROM tab1 AS cor0
----
1248
1404
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 4 col1 FROM tab1 AS cor0
----
12
256
320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8305
SELECT ALL + col1 DIV + ( - col1 ) AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8305
SELECT ALL + col1 / + ( - col1 ) AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - col1 * + 97 AS col0 FROM tab0 AS cor0
----
-8342
-8827
-9409
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 825c5bff5308aeedb3a0a28713da0683
query I rowsort
SELECT + + col2 * 54 AS col0 FROM tab1 AS cor0
----
2916
3078
5184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8309
SELECT DISTINCT CAST( NULL AS SIGNED ) + - cor0.col2 * col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - cor0.col2 * col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + ( - 57 ) AS col2 FROM tab1 AS cor0
----
-57
-57
-57
query I rowsort
SELECT ALL - 83 AS col1 FROM tab1 cor0
----
-83
-83
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8312
SELECT - CAST( col0 AS SIGNED ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-8312
SELECT - CAST ( col0 AS INTEGER ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * - ( - 71 ) col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 01a912f8aedff52df17d72dc96dc043e
query I rowsort
SELECT + - col0 * col1 * ( + col0 * col0 ) + + 80 FROM tab1 AS cor0
----
-2621360
-622
-6655920
query I rowsort
SELECT - 20 * - col2 AS col0 FROM tab0 AS cor0
----
1640
20
660
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 col0 FROM tab1, tab0 AS cor0
----
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * col0 col1 FROM tab2
----
49
6084
6241
query I rowsort
SELECT - - 89 + col0 FROM tab0 AS cor0
----
113
124
178
query I rowsort
SELECT DISTINCT col2 * cor0.col1 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL 90 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT DISTINCT + + col1 + CAST( 76 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
102
86
89
skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT + + col1 + CAST ( 76 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
102
86
89
query I rowsort
SELECT ALL - - col0 + - cor0.col1 * 66 FROM tab1 cor0
----
-1713
-596
-778
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL col2 + tab0.col2 AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - col1 * col2 * + ( - col1 * + col2 ) AS col0 FROM tab0
----
55681444
8054244
9409
query I rowsort
SELECT ALL tab1.col1 * - col1 AS col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 4 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
-4
query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab1
----
8
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 - + col0 AS col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + col2 * col1 + - col2 + ( + 57 ) FROM tab1 AS cor0
----
1209
1407
570
query I rowsort
SELECT 17 + + col2 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT ALL col1 + col2 * 71 AS col2 FROM tab2 AS cor0
----
1905
1948
2715
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8334
SELECT DISTINCT col1 * - col1 + CAST( NULL AS DECIMAL ) - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT col1 * - col1 + CAST ( NULL AS REAL ) - cor0.col1 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 * col1 + col1 AS col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL - 5 FROM tab2
----
-5
-5
-5
query I rowsort
SELECT DISTINCT - col0 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 * col1 + + 18 col0 FROM tab2 AS cor0
----
-1138
-2090
-3994
query I rowsort
SELECT ALL + - 44 * col0 AS col0 FROM tab2 AS cor0
----
-308
-3432
-3476
query I rowsort
SELECT ALL - 41 + col1 + - col1 * - col2 FROM tab0 AS cor0
----
153
2883
7512
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab0 AS cor0, tab0 cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT - col2 + col0 * - col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT - col0 * + col1 - col2 AS col1 FROM tab2
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT + col2 * col0 + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - cor0.col2 * - col2 AS col2 FROM tab2 cor0
----
1444
676
729
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1, tab1, tab1 AS cor2
----
3645 values hashing to 199388980dc5177ebebcfdbc0408ba02
onlyif mysql # use DIV operator for integer division
query I rowsort label-8347
SELECT cor0.col2 DIV 4 FROM tab1 AS cor0
----
13
14
24
skipif mysql # not compatible
query I rowsort label-8347
SELECT cor0.col2 / 4 FROM tab1 AS cor0
----
13
14
24
query I rowsort
SELECT ALL + ( col1 ) FROM tab0 cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col1 ) col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + - col0 * ( col1 ) FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col0 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT DISTINCT + + col0 + + col1 * col0 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8354
SELECT - CAST( - 56 AS SIGNED ) * - col2 AS col1 FROM tab2 AS cor0
----
-1456
-1512
-2128
skipif mysql # not compatible
query I rowsort label-8354
SELECT - CAST ( - 56 AS INTEGER ) * - col2 AS col1 FROM tab2 AS cor0
----
-1456
-1512
-2128
query I rowsort
SELECT ALL - col1 + 87 FROM tab2 AS cor0
----
28
56
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8356
SELECT ALL - 65 - col1 DIV cor0.col0 col0 FROM tab2 AS cor0
----
-65
-65
-69
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL - 65 - col1 / cor0.col0 col0 FROM tab2 AS cor0
----
-65
-65
-69
query I rowsort
SELECT DISTINCT col0 + 21 FROM tab0 AS cor0
----
110
45
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-8358
SELECT col1 DIV col1 + col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-8358
SELECT col1 / col1 + col0 FROM tab2 AS cor0
----
79
8
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8359
SELECT ALL + CAST( NULL AS SIGNED ) * - cor0.col1 + - col0 * + col1 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL + CAST ( NULL AS INTEGER ) * - cor0.col1 + - col0 * + col1 * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8360
SELECT ALL - CAST( NULL AS SIGNED ) + + 87 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - CAST ( NULL AS INTEGER ) + + 87 * col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 5 + - col2 AS col2 FROM tab1 AS cor0
----
-49
-52
-91
query I rowsort
SELECT DISTINCT + + ( + ( - cor0.col1 ) ) + + 39 FROM tab2 AS cor0
----
-20
22
8
query I rowsort
SELECT ALL tab1.col2 + - col2 * + col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT - - 32 * col2 AS col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT - - col1 * col0 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + col1 + + 80 FROM tab0 AS cor0
----
166
171
177
query I rowsort
SELECT - 94 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT ALL + - 87 * + col1 AS col0 FROM tab2 AS cor0
----
-1479
-2697
-5133
query I rowsort
SELECT ALL 38 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + tab2.col0 * col0 ) col2 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 7 ) * col0 + ( - col0 ) + + col0 col1 FROM tab1 AS cor0
----
-21
-448
-560
query I rowsort
SELECT cor0.col1 + col2 * col0 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT - col1 + + col0 - col0 * - tab1.col2 FROM tab1
----
139
3702
7747
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT CAST( NULL AS SIGNED ) + - 98 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8374
SELECT CAST ( NULL AS INTEGER ) + - 98 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 91 FROM tab2 cor0
----
-91
-91
-91
query I rowsort
SELECT 86 + - col1 FROM tab1 AS cor0
----
60
73
76
query I rowsort
SELECT ( - tab1.col1 ) + - tab1.col2 AS col0 FROM tab1
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * tab0.col1 * + col1 + 88 col1 FROM tab0
----
636144
753659
912761
query I rowsort
SELECT - + 98 * col1 AS col2 FROM tab1 AS cor0
----
-1274
-2548
-980
query I rowsort
SELECT - col2 + - 73 FROM tab1
----
-127
-130
-169
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * tab1.col1 col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-8382
SELECT ALL ( col2 ) DIV col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL ( col2 ) / col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT ( col1 * + col1 ) AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ALL - col1 * 53 AS col1 FROM tab0 AS cor0
----
-4558
-4823
-5141
query I rowsort
SELECT + col1 * - col0 - + col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT - col1 * cor0.col0 + + 96 AS col2 FROM tab0 AS cor0
----
-1968
-3299
-8003
query I rowsort
SELECT DISTINCT - - col0 + + 92 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT DISTINCT + col2 - - col0 AS col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8389
SELECT - col0 * + col1 + - 76 DIV - cor0.col0 FROM tab1 AS cor0
----
-1040
-53
-639
skipif mysql # not compatible
query I rowsort label-8389
SELECT - col0 * + col1 + - 76 / - cor0.col0 FROM tab1 AS cor0
----
-1040
-53
-639
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - col0 * col0 col1 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL - col1 * - 21 + + col1 AS col0 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT DISTINCT col0 * - 69 AS col1 FROM tab0 AS cor0
----
-1656
-2415
-6141
query I rowsort
SELECT col2 * 89 - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
0
2145
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-8394
SELECT ( tab0.col2 ) * col2 DIV col0 AS col1 FROM tab0
----
0
45
75
skipif mysql # not compatible
query I rowsort label-8394
SELECT ( tab0.col2 ) * col2 / col0 AS col1 FROM tab0
----
0
45
75
query I rowsort
SELECT 44 + - col1 * col0 + + 30 * + col0 * + tab0.col2 FROM tab0
----
-2301
210885
21740
query I rowsort
SELECT - tab1.col1 + + col2 AS col0 FROM tab1
----
28
47
83
query I rowsort
SELECT col2 * + col1 + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT col0 + 95 * - col1 + tab0.col2 FROM tab0
----
-8113
-8474
-9179
query I rowsort
SELECT + col0 + + col0 * - col1 + + col1 FROM tab0
----
-1954
-3263
-7919
query I rowsort
SELECT col0 + + tab0.col0 * - col2 + - col1 FROM tab0
----
-7300
-854
-97
query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab1 cor0
----
162
3648
7680
skipif mysql # not compatible
query I rowsort
SELECT - col0 * - CAST ( + ( - col1 ) AS REAL ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + - cor0.col1 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( col1 AS REAL ) AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8405
SELECT - + col1 + + cor0.col2 DIV cor0.col1 AS col2 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8405
SELECT - + col1 + + cor0.col2 / cor0.col1 AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col1 + 68 AS col1 FROM tab1 AS cor0
----
42
55
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8407
SELECT DISTINCT - - col1 + + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT - - col1 + + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - + 76 * - col0 AS col0 FROM tab2 AS cor0
----
532
5928
6004
query I rowsort
SELECT col1 * + col0 - + col1 AS col2 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT 29 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT + col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 * 15 * col1 FROM tab2 AS cor0
----
-20145
-3255
-69030
onlyif mysql # use DIV operator for integer division
query I rowsort label-8413
SELECT DISTINCT col0 + cor0.col2 DIV - 60 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT col0 + cor0.col2 / - 60 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT - - col1 + + col2 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8415
SELECT ALL col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + - cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8417
SELECT ALL - col2 DIV tab2.col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-8417
SELECT ALL - col2 / tab2.col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT ALL - col1 * col0 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT - 71 + 11 AS col1 FROM tab2 AS cor0
----
-60
-60
-60
query I rowsort
SELECT - col1 * + 4 + 82 AS col2 FROM tab1
----
-22
30
42
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab2 cor0, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ( 6 ) FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT - cor0.col1 + + col2 + col2 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT ALL - ( - cor1.col2 ) FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col0 * - col0 + + ( + col2 ) FROM tab1
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-8426
SELECT - col0 * col1 + col2 DIV col1 FROM tab2
----
-1341
-217
-4602
skipif mysql # not compatible
query I rowsort label-8426
SELECT - col0 * col1 + col2 / col1 FROM tab2
----
-1341
-217
-4602
query I rowsort
SELECT + 2 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL 17 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 7942394eb7766dfb9ea95b7805ff595d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8430
SELECT + ( - col1 ) DIV cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8430
SELECT + ( - col1 ) / cor0.col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + ( + cor0.col0 ) * col0 + 92 * + col1 + col1 FROM tab1 AS cor0
----
2427
5026
7609
query I rowsort
SELECT - col1 * cor0.col2 + cor0.col1 + + 18 AS col1 FROM tab0 AS cor0
----
-2734
-7353
18
query I rowsort
SELECT ALL + ( col0 ) + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + 79 FROM tab2, tab2 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT - col0 * cor0.col0 + col0 * col1 AS col2 FROM tab0 AS cor0
----
1488
178
2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col2 + col0 col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + - 42 AS col0 FROM tab1 cor0
----
-42
-42
-42
query I rowsort
SELECT DISTINCT cor0.col0 + col0 AS col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT ALL + col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 53 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1036
-6671
52
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0, tab2 AS cor1
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8442
SELECT + CAST( 29 * col0 AS SIGNED ) FROM tab1
----
1856
2320
87
skipif mysql # not compatible
query I rowsort label-8442
SELECT + CAST ( 29 * col0 AS INTEGER ) FROM tab1
----
1856
2320
87
query I rowsort
SELECT 91 + + col1 + col1 * 50 * col0 FROM tab0
----
103377
169938
405132
skipif mysql # not compatible
query I rowsort
SELECT ( col2 ) + + col2 * CAST ( 48 AS REAL ) * + col0 FROM tab0 AS cor0
----
1681
350386
38049
query I rowsort
SELECT ALL + 85 + col2 FROM tab0
----
118
167
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * + col0 + col0 col1 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT - + 49 AS col0 FROM tab0 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-8448
SELECT 35 DIV col1 AS col0 FROM tab1 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8448
SELECT 35 / col1 AS col0 FROM tab1 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + cor0.col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + + col2 * - col1 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT 82 + + col2 AS col0 FROM tab1 AS cor0
----
136
139
178
query I rowsort
SELECT DISTINCT - + col2 + col2 * - col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + - 53 + + col2 FROM tab0 AS cor0
----
-20
-52
29
query I rowsort
SELECT DISTINCT + - 7 * - col2 * + ( - col0 + + cor0.col0 ) AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8455
SELECT ALL + + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8455
SELECT ALL + + col0 / col2 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - col2 - + col2 * + 24 FROM tab0 cor0
----
-2050
-25
-825
query I rowsort
SELECT DISTINCT + col0 + col0 - 59 AS col1 FROM tab0
----
-11
11
119
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to 7781e11d4a9fc844b7b93d320748f7c1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8459
SELECT + col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-8459
SELECT + col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col2 - col0 * col1 * - col2 FROM tab0 AS cor0
----
3396
664200
68145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8461
SELECT + col1 - - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-8461
SELECT + col1 - - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 * - 55 + ( - cor0.col0 ) - - 90 FROM tab2 AS cor0
----
1442
1568
2101
query I rowsort
SELECT + - col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + ( - 22 ) AS col1 FROM tab0 AS cor0
----
-22
-22
-22
query I rowsort
SELECT ALL + cor0.col2 + - col1 AS col1 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT 17 AS col0 FROM tab0 AS cor0
----
17
17
17
query I rowsort
SELECT tab1.col1 * col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT - cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - col2 + - col1 * cor0.col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT - col0 * + ( + 90 * col0 ) FROM tab2 AS cor0
----
-4410
-547560
-561690
query I rowsort
SELECT DISTINCT col1 + + 36 * - cor0.col1 FROM tab1 AS cor0
----
-350
-455
-910
query I rowsort
SELECT - - col0 * + col1 + - 6 FROM tab2 AS cor0
----
1337
211
4596
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8474
SELECT ALL col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 * col0 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col2 * - col1 + - 22 AS col1 FROM tab2 AS cor0
----
-1556
-668
-859
query I rowsort
SELECT DISTINCT - col0 * + 98 + 95 * - col2 * - col1 AS col0 FROM tab2 AS cor0
----
138086
53628
78829
query I rowsort
SELECT - col1 + + ( - col0 ) + col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col2 * col2 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
15616
2925
7345
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8480
SELECT DISTINCT - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8480
SELECT DISTINCT - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 + + ( col2 ) * col0 FROM tab0 cor0
----
-62
706
7207
onlyif mysql # use DIV operator for integer division
query I rowsort label-8482
SELECT ALL - 26 * - col1 + CAST( col2 AS SIGNED ) DIV - col2 FROM tab1
----
259
337
675
skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - 26 * - col1 + CAST ( col2 AS INTEGER ) / - col2 FROM tab1
----
259
337
675
query I rowsort
SELECT + col2 + col0 * - col1 FROM tab1 cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT col2 + col0 * ( - col0 ) FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT col1 * 87 AS col0 FROM tab0 AS cor0
----
7482
7917
8439
query I rowsort
SELECT + ( cor1.col0 ) AS col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8487
SELECT DISTINCT 17 * col2 + 16 DIV col2 FROM tab1
----
1632
918
969
skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT 17 * col2 + 16 / col2 FROM tab1
----
1632
918
969
query I rowsort
SELECT ALL + - col2 * ( + col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT - cor0.col1 FROM tab2, tab0 cor0 CROSS JOIN tab0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8491
SELECT col2 + col0 * 93 DIV - col1 FROM tab2 AS cor0
----
-394
-96
6
skipif mysql # not compatible
query I rowsort label-8491
SELECT col2 + col0 * 93 / - col1 FROM tab2 AS cor0
----
-394
-96
6
query I rowsort
SELECT ALL - cor0.col1 * + 97 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a5180d07d316c0bacc2b209dd40b3c8d
query I rowsort
SELECT DISTINCT ( col2 ) + cor0.col1 * col1 FROM tab2 AS cor0
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-8494
SELECT ALL + - 17 DIV col1 AS col1 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL + - 17 / col1 AS col1 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT DISTINCT - + col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + ( ( - col0 ) ) + 15 * - col2 FROM tab1
----
-1520
-813
-919
query I rowsort
SELECT - ( col2 ) + col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - col0 - + 26 FROM tab1
----
-106
-29
-90
query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT + col1 + - col0 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - col0 * col2 * 26 + col2 AS col1 FROM tab2
----
-4887
-52702
-78014
query I rowsort
SELECT ALL + 78 + + col1 AS col1 FROM tab1
----
104
88
91
query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0, tab1 AS cor0, tab1 cor1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8504
SELECT DISTINCT - col0 * col0 DIV col1 + col2 FROM tab0
----
-11
-5
27
skipif mysql # not compatible
query I rowsort label-8504
SELECT DISTINCT - col0 * col0 / col1 + col2 FROM tab0
----
-11
-5
27
query I rowsort
SELECT ALL col1 + - tab1.col2 + ( - col2 ) FROM tab1
----
-104
-179
-82
query I rowsort
SELECT DISTINCT - - 2 + + col2 * ( ( col0 ) ) AS col0 FROM tab1 AS cor0
----
164
3650
7682
onlyif mysql # use DIV operator for integer division
query I rowsort label-8507
SELECT DISTINCT - + 80 DIV + col0 AS col1 FROM tab2 AS cor0
----
-1
-11
skipif mysql # not compatible
query I rowsort label-8507
SELECT DISTINCT - + 80 / + col0 AS col1 FROM tab2 AS cor0
----
-1
-11
query I rowsort
SELECT 15 + + col0 * col2 + col1 FROM tab1 AS cor0
----
203
3673
7708
query I rowsort
SELECT ALL 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 37 * col1 col2 FROM tab0 AS cor0
----
3182
3367
3589
query I rowsort
SELECT + - col0 * col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - col0 * col2 + + tab0.col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT - + col2 * + col2 - - col0 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-8514
SELECT DISTINCT + col2 * + col0 - CAST( col0 AS SIGNED ) DIV col0 AS col1 FROM tab0 AS cor0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT + col2 * + col0 - CAST ( col0 AS INTEGER ) / col0 AS col1 FROM tab0 AS cor0
----
34
7297
791
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col2 + - 87 col1 FROM tab0 AS cor0
----
10
2751
7375
query I rowsort
SELECT ALL + 36 * + col1 AS col2 FROM tab1 AS cor0
----
360
468
936
query I rowsort
SELECT - - cor0.col2 - cor0.col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col0 + 88 AS col1 FROM tab2 AS cor0
----
166
167
95
query I rowsort
SELECT - + col2 * col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 68 + + 6 FROM tab0, tab2 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT - tab0.col0 * + 71 FROM tab0
----
-1704
-2485
-6319
query I rowsort
SELECT + 48 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT + - cor0.col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT 68 * col0 FROM tab0 AS cor0
----
1632
2380
6052
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8525
SELECT ALL ( + col2 + col0 ) * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
2704
4446
918
skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL ( + col2 + col0 ) * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
2704
4446
918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8526
SELECT tab1.col2 / CAST( NULL AS SIGNED ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8526
SELECT tab1.col2 / CAST ( NULL AS INTEGER ) FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-8527
SELECT ALL - - 21 DIV - col2 + + col0 AS col0 FROM tab0 AS cor0
----
14
24
89
skipif mysql # not compatible
query I rowsort label-8527
SELECT ALL - - 21 / - col2 + + col0 AS col0 FROM tab0 AS cor0
----
14
24
89
query I rowsort
SELECT DISTINCT + 96 * col1 + + col1 - col2 FROM tab1 cor0
----
1165
2468
913
query I rowsort
SELECT - 2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 62 col1 FROM tab2 cor0
----
62
62
62
query I rowsort
SELECT DISTINCT + 72 FROM tab0 AS cor0
----
72
query I rowsort
SELECT - + col0 * 76 AS col1 FROM tab2 AS cor0
----
-532
-5928
-6004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8533
SELECT + CAST( NULL AS SIGNED ) + cor0.col0 * col1 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8533
SELECT + CAST ( NULL AS INTEGER ) + cor0.col0 * col1 * + cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 57 * col0 AS col0 FROM tab0 AS cor0
----
1368
1995
5073
query I rowsort
SELECT DISTINCT - col0 + col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-8536
SELECT ALL - - 52 DIV - col1 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - - 52 / - col1 - col0 AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT - + ( - col1 ) * col0 + col0 AS col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - + cor0.col1 * + col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * ( col2 ) * col2 AS col2 FROM tab1
----
157464
185193
884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8540
SELECT col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8540
SELECT col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col2 + - 20 + + col0 FROM tab2 AS cor0
----
-40
21
32
query I rowsort
SELECT - + cor0.col2 * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8543
SELECT - col2 * CAST( + col0 AS SIGNED ) * - col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
skipif mysql # not compatible
query I rowsort label-8543
SELECT - col2 * CAST ( + col0 AS INTEGER ) * - col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8544
SELECT - col1 / - col1 AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - - col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - col2 * col2 * col2 AS col2 FROM tab0 AS cor0
----
1
35937
551368
query I rowsort
SELECT col0 * col2 AS col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + - ( + col0 ) * col0 AS col2 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT 98 AS col0 FROM tab0 AS cor0
----
98
98
98
query I rowsort
SELECT - 56 * col0 AS col1 FROM tab1 cor0
----
-168
-3584
-4480
query I rowsort
SELECT DISTINCT ( + cor0.col2 ) + + cor0.col1 FROM tab0, tab0 AS cor0
----
119
173
98
query I rowsort
SELECT 86 FROM tab1, tab2 AS cor0
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * 82 col2 FROM tab2
----
-2132
-2214
-3116
onlyif mysql # use DIV operator for integer division
query I rowsort label-8554
SELECT ALL ( - 25 ) + + col0 DIV + col1 FROM tab2 AS cor0
----
-21
-24
-25
skipif mysql # not compatible
query I rowsort label-8554
SELECT ALL ( - 25 ) + + col0 / + col1 FROM tab2 AS cor0
----
-21
-24
-25
query I rowsort
SELECT DISTINCT + col2 * col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( - col1 AS REAL ) * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ( 12 ) * - col2 FROM tab1 cor0
----
-1152
-648
-684
onlyif mysql # use DIV operator for integer division
query I rowsort label-8558
SELECT - + col1 + + col2 DIV col1 - + col2 FROM tab1 AS cor0
----
-102
-62
-78
skipif mysql # not compatible
query I rowsort label-8558
SELECT - + col1 + + col2 / col1 - + col2 FROM tab1 AS cor0
----
-102
-62
-78
query I rowsort
SELECT - - 70 + col0 FROM tab2 AS cor0
----
148
149
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + cor0.col1 col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - ( col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8562
SELECT - - col2 + cor0.col2 DIV 21 col0 FROM tab1 AS cor0
----
100
56
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8562
SELECT - - col2 + cor0.col2 / 21 col0 FROM tab1 AS cor0
----
100
56
59
query I rowsort
SELECT + col1 * + cor0.col2 + - cor0.col1 * col1 AS col1 FROM tab2 AS cor0
----
-124
-1947
357
query I rowsort
SELECT ALL col1 + + col1 * + tab2.col0 + - ( - col1 ) FROM tab2
----
1377
279
4720
query I rowsort
SELECT col2 + + cor0.col2 * col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT + 23 * + col2 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT DISTINCT - col2 + cor0.col0 * col0 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-8568
SELECT DISTINCT - col1 * 24 + col2 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
-240
-311
-606
skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT - col1 * 24 + col2 / cor0.col0 AS col2 FROM tab1 AS cor0
----
-240
-311
-606
query I rowsort
SELECT + cor0.col2 - 88 FROM tab1 AS cor0
----
-31
-34
8
query I rowsort
SELECT + cor0.col2 * 48 + + col1 AS col0 FROM tab0 AS cor0
----
145
1670
4027
query I rowsort
SELECT col1 * - col2 * col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL cor0.col2 + + col2 * 14 * col0 AS col1 FROM tab0 AS cor0
----
102254
11121
491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col2 col2 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 * - col0 col2 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-8575
SELECT ALL - cor0.col1 DIV col1 col0 FROM tab1 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL - cor0.col1 / col1 col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col1 * + ( col2 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL col1 + col1 * cor0.col2 FROM tab0 cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT 91 * col2 * col1 FROM tab1
----
113568
127764
51870
query I rowsort
SELECT col0 * - tab1.col2 - col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT + 51 * + col0 AS col2 FROM tab1
----
153
3264
4080
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 * 99 col2 FROM tab0
----
280962
738738
9603
query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab0
----
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 39 + col0 * - col0 * + col2 + col0 col1 FROM tab1
----
-231185
-610576
1623
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8586
SELECT - col2 + + CAST( col0 AS SIGNED ) * col1 + + col0 FROM tab0 AS cor0
----
2055
3429
8106
skipif mysql # not compatible
query I rowsort label-8586
SELECT - col2 + + CAST ( col0 AS INTEGER ) * col1 + + col0 FROM tab0 AS cor0
----
2055
3429
8106
onlyif mysql # use DIV operator for integer division
query I rowsort label-8587
SELECT col0 DIV 71 + + ( col0 ) + + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1121
704
81
skipif mysql # not compatible
query I rowsort label-8587
SELECT col0 / 71 + + ( col0 ) + + cor0.col1 * + col0 AS col2 FROM tab1 AS cor0
----
1121
704
81
query I rowsort
SELECT - col1 + col1 + - 75 * col0 AS col1 FROM tab2 AS cor0
----
-525
-5850
-5925
query I rowsort
SELECT ALL + 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8590
SELECT - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8590
SELECT - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 CROSS JOIN tab0 cor1
----
243 values hashing to b3323704f6873113d863f8e27386b356
query I rowsort
SELECT + ( - 31 * col2 ) FROM tab2
----
-1178
-806
-837
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col1 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT - 66 FROM tab1, tab2 AS cor0
----
-66
query I rowsort
SELECT - - cor0.col1 * - ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ( + col0 ) AS col2 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT + tab2.col0 + 75 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to ba27326907f7a1adb9967125947e55ef
query I rowsort
SELECT - col0 - - col1 * + col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + col2 - + col2 AS col1 FROM tab2
----
0
query I rowsort
SELECT ALL 5 - - col1 FROM tab0
----
102
91
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8601
SELECT ALL col0 * + col2 - - CAST( 1 AS SIGNED ) AS col1 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-8601
SELECT ALL col0 * + col2 - - CAST ( 1 AS INTEGER ) AS col1 FROM tab1
----
163
3649
7681
query I rowsort
SELECT col2 * - tab2.col1 - + tab2.col0 * col2 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT + 97 + + col2 AS col1 FROM tab2
----
123
124
135
onlyif mysql # use DIV operator for integer division
query I rowsort label-8604
SELECT ALL + 57 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL + 57 / - col1 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8605
SELECT ALL - 54 DIV col0 + 65 AS col2 FROM tab2 AS cor0
----
58
65
65
skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL - 54 / col0 + 65 AS col2 FROM tab2 AS cor0
----
58
65
65
query I rowsort
SELECT 0 + col0 AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8607
SELECT + CAST( col2 AS SIGNED ) * + col1 + 69 FROM tab1 AS cor0
----
1317
1473
639
skipif mysql # not compatible
query I rowsort label-8607
SELECT + CAST ( col2 AS INTEGER ) * + col1 + 69 FROM tab1 AS cor0
----
1317
1473
639
query I rowsort
SELECT + - 82 - + col2 FROM tab0 AS cor0
----
-115
-164
-83
query I rowsort
SELECT DISTINCT + - ( 5 ) + + cor0.col1 * + 70 FROM tab2 AS cor0
----
1185
2165
4125
query I rowsort
SELECT ALL - 65 + - ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-1105
-143
-705
query I rowsort
SELECT DISTINCT - col1 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1427
617
698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col1 + tab2.col2 * - 62 col1 FROM tab2
----
-1527
-1616
-2301
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
query I rowsort
SELECT DISTINCT 28 + + cor0.col2 FROM tab0, tab0 AS cor0
----
110
29
61
query I rowsort
SELECT - col0 * 21 + col0 FROM tab2 cor0
----
-140
-1560
-1580
query I rowsort
SELECT DISTINCT - 43 AS col2 FROM tab1 cor0
----
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8617
SELECT ALL CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 66 FROM tab2 AS cor0
----
-66
query I rowsort
SELECT + - 95 + + col1 - col0 AS col1 FROM tab1 AS cor0
----
-149
-162
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT + - 68 + col1 - col2 AS col0 FROM tab2 cor0
----
-35
-64
-89
query I rowsort
SELECT ALL col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + - cor0.col2 * + col0 + - col2 * col0 - - col1 FROM tab0 AS cor0
----
-14505
-1498
27
query I rowsort
SELECT ALL col1 * - col1 AS col1 FROM tab2 cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + + col0 col2 FROM tab2 AS cor0
----
-210
-3403
-954
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab1 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL - ( + col2 ) + col2 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + - col2 + + col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - cor0.col1 * col0 * - col0 AS col1 FROM tab0 cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT ( col2 ) * tab1.col0 + ( tab1.col0 ) FROM tab1
----
165
3712
7760
query IIIIIIIII rowsort
SELECT * FROM tab1, tab0 cor0 CROSS JOIN tab1 AS cor1
----
243 values hashing to 70c6a01760d7239f3003db4da92180a4
query I rowsort
SELECT DISTINCT ( + col1 ) + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT ALL + - cor0.col2 * col2 + 21 FROM tab1 AS cor0
----
-2895
-3228
-9195
query I rowsort
SELECT ALL + - cor0.col2 + - 78 FROM tab2 AS cor0
----
-104
-105
-116
query I rowsort
SELECT DISTINCT + cor0.col1 * col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8636
SELECT + - col1 DIV - 65 AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8636
SELECT + - col1 / - 65 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 66 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cd4a3594ee8b45223ebf9f25840cd112
query I rowsort
SELECT DISTINCT + 60 AS col1 FROM tab0
----
60
query I rowsort
SELECT col0 * col0 - + ( + 38 ) FROM tab1
----
-29
4058
6362
query I rowsort
SELECT ALL + - cor0.col1 * col1 + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL 25 + - cor0.col0 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to a540a5768631d5bf1c7d147e66a1ee1f
query I rowsort
SELECT ALL tab0.col0 + + 63 FROM tab0, tab2 AS cor0
----
9 values hashing to 92cd3d1c2e00f987c595a465b20add9b
query I rowsort
SELECT - 44 * cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a3ab494b3c1dedf9ac3445973b4ad36a
query I rowsort
SELECT - tab1.col0 - + tab1.col2 * + tab1.col1 FROM tab1
----
-1328
-1407
-634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8645
SELECT DISTINCT + col1 - - CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8645
SELECT DISTINCT + col1 - - CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8646
SELECT col2 + CAST( NULL AS SIGNED ) * + 50 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8646
SELECT col2 + CAST ( NULL AS INTEGER ) * + 50 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 78 FROM tab0
----
111
160
79
query I rowsort
SELECT - col1 + 76 FROM tab2
----
17
45
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT DISTINCT col0 * + ( tab0.col1 ) + col0 * CAST( col0 AS SIGNED ) DIV col1 - + col2 AS col0 FROM tab0
----
2037
3406
8104
skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT col0 * + ( tab0.col1 ) + col0 * CAST ( col0 AS INTEGER ) / col1 - + col2 AS col0 FROM tab0
----
2037
3406
8104
onlyif mysql # use DIV operator for integer division
query I rowsort label-8650
SELECT col1 * 62 DIV - col2 AS col0 FROM tab1
----
-10
-29
-8
skipif mysql # not compatible
query I rowsort label-8650
SELECT col1 * 62 / - col2 AS col0 FROM tab1
----
-10
-29
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - ( - tab2.col2 ) col0 FROM tab2
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8652
SELECT - col0 DIV col1 + + ( col2 ) + col0 AS col0 FROM tab1
----
115
170
57
skipif mysql # not compatible
query I rowsort label-8652
SELECT - col0 / col1 + + ( col2 ) + col0 AS col0 FROM tab1
----
115
170
57
query I rowsort
SELECT + col1 + 86 + col0 AS col2 FROM tab2
----
124
182
223
query I rowsort
SELECT DISTINCT - col2 - - tab0.col2 AS col1 FROM tab0
----
0
query I rowsort
SELECT col2 + 80 - col1 AS col1 FROM tab0
----
-16
27
71
query I rowsort
SELECT ALL + col2 * 74 FROM tab1 cor0
----
3996
4218
7104
query I rowsort
SELECT ALL + tab1.col2 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + 99 FROM tab0 AS cor0
----
99
99
99
query I rowsort
SELECT - 5 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
query I rowsort
SELECT + - col0 + 3 FROM tab0 AS cor0
----
-21
-32
-86
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT DISTINCT + 41 FROM tab0
----
41
query I rowsort
SELECT + 58 * col0 FROM tab1
----
174
3712
4640
query I rowsort
SELECT ALL col0 + 44 AS col0 FROM tab1
----
108
124
47
query I rowsort
SELECT ALL 26 + col1 * col2 + + col0 AS col0 FROM tab1
----
1354
1433
660
query I rowsort
SELECT ALL - 31 + 50 FROM tab2
----
19
19
19
query I rowsort
SELECT ALL - - col1 * + 52 AS col1 FROM tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT ALL col1 * col1 + col2 + + ( 75 ) FROM tab2 cor0
----
1063
3582
402
query I rowsort
SELECT ALL col2 - ( + col1 ) AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - 70 * - 27 FROM tab1 AS cor0
----
1890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * col0 col0 FROM tab2 cor0
----
-609
-6786
-6873
query I rowsort
SELECT col0 + + col0 AS col0 FROM tab2
----
14
156
158
query I rowsort
SELECT ( - col1 ) + - 50 FROM tab0
----
-136
-141
-147
query I rowsort
SELECT + 50 + col0 * 27 * + ( col0 ) FROM tab2
----
1373
164318
168557
query I rowsort
SELECT + tab2.col2 + + col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT + + ( - col0 ) FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 28 + col0 AS col0 FROM tab1 AS cor0
----
108
31
92
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col2 * - tab0.col2 FROM tab0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8681
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8682
SELECT ALL + + col0 DIV 59 - - col2 AS col0 FROM tab1 AS cor0
----
54
58
97
skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL + + col0 / 59 - - col2 AS col0 FROM tab1 AS cor0
----
54
58
97
query I rowsort
SELECT DISTINCT + + col1 * 22 - col1 AS col2 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT ALL + col1 * ( col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + + cor0.col2 AS col2 FROM tab1 cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * 73 * - 67 - + col1 col0 FROM tab0 AS cor0
----
420540
444990
474330
query I rowsort
SELECT ALL - + col1 * 59 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-121776
-200305
-477841
query I rowsort
SELECT ALL - col2 + ( - col0 * + col2 ) + + ( 80 ) AS col2 FROM tab0 cor0
----
-7300
-745
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL cor0.col2 + - col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT cor0.col1 * + col2 + - col0 FROM tab0 AS cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - col1 * col0 col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - tab2.col0 + tab2.col0 FROM tab2, tab0 AS cor0
----
0
query I rowsort
SELECT col0 * col1 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + col1 + col1 * 56 AS col1 FROM tab2 AS cor0
----
1767
3363
969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT + col1 - col0 * tab2.col0 * + col2 AS col2 FROM tab2
----
-1292
-158125
-237141
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col2 + - 94 FROM tab2
----
-120
-121
-132
query I rowsort
SELECT - - col0 + + 43 FROM tab0 AS cor0
----
132
67
78
query I rowsort
SELECT ALL col1 + 3 + + col2 AS col2 FROM tab1
----
112
70
83
query I rowsort
SELECT ALL col2 + ( - col1 ) FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL tab2.col2 + - col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + 74 * cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2bc65e52b35c1e02e7c244003eb6ecdb
query I rowsort
SELECT col1 + 89 * cor0.col0 AS col1 FROM tab1 cor0
----
293
5706
7133
query I rowsort
SELECT DISTINCT 30 AS col2 FROM tab2, tab2 AS cor0
----
30
onlyif mysql # use DIV operator for integer division
query I rowsort label-8707
SELECT - col2 DIV - cor0.col1 + + col1 + + cor0.col2 * ( - col2 ) col0 FROM tab1 AS cor0
----
-2888
-3234
-9196
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8707
SELECT - col2 / - cor0.col1 + + col1 + + cor0.col2 * ( - col2 ) col0 FROM tab1 AS cor0
----
-2888
-3234
-9196
query I rowsort
SELECT - cor0.col2 * + col1 * col1 + col0 + + ( 32 ) FROM tab2 AS cor0
----
-10871
-25908
-90396
query I rowsort
SELECT 30 AS col1 FROM tab1
----
30
30
30
query I rowsort
SELECT ALL ( - ( - col0 ) ) AS col2 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col1 FROM tab0
----
-67
-67
-67
query I rowsort
SELECT - 84 + - ( col0 ) AS col2 FROM tab1 AS cor0
----
-148
-164
-87
query I rowsort
SELECT DISTINCT - col0 * + ( col1 ) FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-8714
SELECT col0 DIV - col1 - + ( - col0 ) * - cor0.col0 * + ( - cor0.col0 ) FROM tab0 AS cor0
----
13824
42875
704969
skipif mysql # not compatible
query I rowsort label-8714
SELECT col0 / - col1 - + ( - col0 ) * - cor0.col0 * + ( - cor0.col0 ) FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT - 9 * col2 AS col0 FROM tab1 AS cor0
----
-486
-513
-864
query I rowsort
SELECT - cor0.col1 * col1 - col0 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT - ( col1 ) + - col2 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col1 + + col0 * - tab2.col1 AS col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT col0 * col1 * - ( 10 ) - col0 FROM tab1 AS cor0
----
-10480
-6464
-783
query I rowsort
SELECT - col2 * - col2 + + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - + 41 - cor0.col1 FROM tab2 AS cor0
----
-100
-58
-72
query I rowsort
SELECT col0 + + cor0.col1 * ( col0 + - col2 ) FROM tab1 AS cor0
----
-128
-1323
134
query I rowsort
SELECT ( cor0.col2 ) * - 83 AS col1 FROM tab0 AS cor0
----
-2739
-6806
-83
query I rowsort
SELECT ALL - + col1 + col1 * - 18 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT - col0 + - col0 - col2 AS col0 FROM tab1
----
-185
-256
-60
query I rowsort
SELECT ALL 80 + tab0.col1 * ( col1 ) FROM tab0
----
7476
8361
9489
query I rowsort
SELECT ALL - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT 97 * - cor0.col0 FROM tab2 AS cor0
----
-679
-7566
-7663
query I rowsort
SELECT DISTINCT - col0 - col0 AS col2 FROM tab0 cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8730
SELECT ALL col0 * + 67 + col1 DIV + col1 + cor0.col0 * 9 * - col2 FROM tab1 AS cor0
----
-1256
-28543
-63759
skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL col0 * + 67 + col1 / + col1 + cor0.col0 * 9 * - col2 FROM tab1 AS cor0
----
-1256
-28543
-63759
query I rowsort
SELECT - col2 + 45 FROM tab0 AS cor0
----
-37
12
44
query I rowsort
SELECT ALL - - col1 + ( - col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-8733
SELECT ALL - col1 DIV cor0.col1 - - col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-8733
SELECT ALL - col1 / cor0.col1 - - col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT + col1 * cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT ALL - col0 * 11 AS col2 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT - cor0.col1 * col0 + - 16 * + col1 AS col2 FROM tab2 AS cor0
----
-1615
-5546
-713
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col0 + col1 col2 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT DISTINCT + + col2 + 36 AS col2 FROM tab1 AS cor0
----
132
90
93
query I rowsort
SELECT ALL - col0 * - 24 - col1 FROM tab0 cor0
----
2045
490
743
query I rowsort
SELECT - cor0.col2 + col2 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - cor0.col1 + 42 * + 6 AS col0 FROM tab2 AS cor0
----
193
221
235
query I rowsort
SELECT DISTINCT + col1 * 45 * + col0 FROM tab1 AS cor0
----
28800
3510
46800
query I rowsort
SELECT + col0 + col2 - col0 AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT DISTINCT + col0 + tab1.col0 - col0 FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT tab1.col1 DIV col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8746
SELECT tab1.col1 / col2 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + col1 * col0 * 47 - + tab0.col1 AS col0 FROM tab0
----
159468
380562
96922
onlyif mysql # use DIV operator for integer division
query I rowsort label-8748
SELECT DISTINCT - col1 DIV col1 - col2 FROM tab0
----
-2
-34
-83
skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - col1 / col1 - col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT - 42 - + col1 FROM tab0
----
-128
-133
-139
query I rowsort
SELECT + col0 * col0 + col2 + - col0 * col0 * - ( 54 * tab0.col0 ) FROM tab0
----
2316476
38076329
747105
onlyif mysql # use DIV operator for integer division
query I rowsort label-8751
SELECT - col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8751
SELECT - col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8752
SELECT DISTINCT - - col0 DIV col1 AS col1 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT - - col0 / col1 AS col1 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT - + ( col2 ) * + col0 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8754
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 68 + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-1021
-6656
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8756
SELECT + + cor0.col0 + + 30 DIV - col0 FROM tab0 cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-8756
SELECT + + cor0.col0 + + 30 / - col0 FROM tab0 cor0
----
23
35
89
query I rowsort
SELECT DISTINCT + 1 * col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT - + ( - 2 ) AS col1 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT ALL - cor0.col0 * col2 AS col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - col1 * 46 FROM tab1 AS cor0
----
-1196
-460
-598
query I rowsort
SELECT ALL - 44 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT DISTINCT - tab2.col1 FROM tab2, tab1 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 3 * - 90 AS col1 FROM tab0 AS cor0
----
270
270
270
query I rowsort
SELECT DISTINCT - - col2 * col1 + col2 * col2 FROM tab0 AS cor0
----
14186
3927
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8765
SELECT ALL + + cor0.col0 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + + cor0.col0 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - 11 + 7 * - col0 * - col1 AS col1 FROM tab2 AS cor0
----
1508
32203
9390
query I rowsort
SELECT col1 + - col1 * col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col2 + col2 * col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT col2 * + 52 + - col0 * - col0 * 21 FROM tab1
----
139392
2997
88980
query I rowsort
SELECT 59 FROM tab0, tab2 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab2, tab2 AS cor0
----
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8772
SELECT DISTINCT - col0 DIV ( 85 ) + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT - col0 / ( 85 ) + - cor0.col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - - tab1.col1 * + ( - tab1.col0 ) AS col0 FROM tab1, tab0, tab0 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8774
SELECT DISTINCT CAST( cor0.col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT CAST ( cor0.col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) - col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT + col0 + + 36 AS col0 FROM tab2 AS cor0
----
114
115
43
query I rowsort
SELECT ALL + 73 * cor0.col0 FROM tab0 AS cor0
----
1752
2555
6497
query I rowsort
SELECT DISTINCT + + col2 * - col0 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-15397
-2856
-3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-8779
SELECT ( - col0 ) + col1 DIV - CAST( + 50 AS SIGNED ) FROM tab2 AS cor0
----
-7
-79
-79
skipif mysql # not compatible
query I rowsort label-8779
SELECT ( - col0 ) + col1 / - CAST ( + 50 AS INTEGER ) FROM tab2 AS cor0
----
-7
-79
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT DISTINCT col0 DIV - col1 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-8780
SELECT DISTINCT col0 / - col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT - col2 * + col0 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 54 col1 FROM tab2 AS cor0
----
80
81
92
query I rowsort
SELECT ALL - 74 * + col0 FROM tab1 AS cor0
----
-222
-4736
-5920
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8784
SELECT CAST( NULL AS SIGNED ) + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8784
SELECT CAST ( NULL AS INTEGER ) + + cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 77 + + 73 AS col1 FROM tab2 AS cor0
----
150
150
150
query I rowsort
SELECT ALL + 80 - - col1 AS col0 FROM tab1 AS cor0
----
106
90
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8787
SELECT col0 DIV - ( col2 ) - - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
24
88
skipif mysql # not compatible
query I rowsort label-8787
SELECT col0 / - ( col2 ) - - cor0.col0 AS col0 FROM tab0 AS cor0
----
0
24
88
query I rowsort
SELECT DISTINCT col2 + - col2 * ( col0 ) AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * + col0 col0 FROM tab1 AS cor0
----
21
448
560
query I rowsort
SELECT DISTINCT 13 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
13
query I rowsort
SELECT + 38 * col1 * + col2 AS col1 FROM tab1 AS cor0
----
21660
47424
53352
query I rowsort
SELECT cor0.col2 * + cor0.col1 + + 69 AS col0 FROM tab1 AS cor0
----
1317
1473
639
query I rowsort
SELECT ALL + - ( - col2 ) + + 95 * + col2 FROM tab0 cor0
----
3168
7872
96
query I rowsort
SELECT - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - + col2 - col1 * cor0.col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT + - 4 * + col1 FROM tab0 AS cor0
----
-344
-364
-388
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col1 FROM tab0 AS cor0
----
32
32
32
query I rowsort
SELECT - + 41 * col0 * - col1 AS col1 FROM tab0 AS cor0
----
139195
332059
84624
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - 35 * col2 FROM tab2 AS cor0
----
-1330
-910
-945
query I rowsort
SELECT + 37 * + col1 AS col1 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 * - col2 + col0 AS col0 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT DISTINCT col1 + - ( + 35 ) AS col0 FROM tab2 AS cor0
----
-18
-4
24
query I rowsort
SELECT + - col2 + + 98 FROM tab1 AS cor0
----
2
41
44
query I rowsort
SELECT DISTINCT + - col1 + col1 - cor0.col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8807
SELECT ALL - + col2 + + col2 DIV 46 FROM tab1 AS cor0
----
-53
-56
-94
skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL - + col2 + + col2 / 46 FROM tab1 AS cor0
----
-53
-56
-94
query I rowsort
SELECT ALL + col1 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8809
SELECT ALL cor0.col0 + + CAST( NULL AS SIGNED ) * - 10 + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL cor0.col0 + + CAST ( NULL AS INTEGER ) * - 10 + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 + 19 * - 35 + col0 * ( col0 ) col1 FROM tab2 cor0
----
-647
5360
5559
query I rowsort
SELECT + cor0.col0 * cor0.col0 + 39 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
14119
210
7783
query I rowsort
SELECT + col1 + + 33 AS col1 FROM tab0 AS cor0
----
119
124
130
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8813
SELECT col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8813
SELECT col1 * + 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 ALL - - 87 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + col2 + - col0 * col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - cor0.col1 * + 45 AS col1 FROM tab0 cor0
----
-3870
-4095
-4365
query I rowsort
SELECT - cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8819
SELECT + col1 + CAST( col2 AS SIGNED ) FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-8819
SELECT + col1 + CAST ( col2 AS INTEGER ) FROM tab0
----
119
173
98
query I rowsort
SELECT + col1 + - col1 * + col1 AS col0 FROM tab0 AS cor0
----
-7310
-8190
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + - col2 * - col1 + ( ( col1 ) ) FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # use DIV operator for integer division
query I rowsort label-8823
SELECT - col0 DIV 88 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8823
SELECT - col0 / 88 FROM tab0
----
-1
0
0
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0, tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT + col0 + + 25 + col1 FROM tab2
----
121
162
63
query I rowsort
SELECT col0 + + ( - col1 ) FROM tab0
----
-2
-62
-62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8827
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col2 * + col2 * col2 col0 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col2 * + col2 * col2 col0 FROM tab0
----
NULL
query I rowsort
SELECT + 73 * + col0 FROM tab0
----
1752
2555
6497
query I rowsort
SELECT ALL - 42 - - cor1.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 516f11f9092a54705646602458ada1af
query I rowsort
SELECT + col2 * col1 * + ( - ( col0 ) ) AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - 9 + col2 AS col0 FROM tab2
----
17
18
29
query I rowsort
SELECT - 98 FROM tab2
----
-98
-98
-98
query I rowsort
SELECT ALL + 9 AS col2 FROM tab2 AS cor0
----
9
9
9
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab1, tab0, tab2 AS cor0, tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + col0 + col1 * 63 AS col0 FROM tab0 AS cor0
----
5442
5822
6146
query I rowsort
SELECT + 48 FROM tab0, tab2 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 35 ) col2 FROM tab1 AS cor0
----
35
35
35
query I rowsort
SELECT + + 2 FROM tab0 cor0
----
2
2
2
query I rowsort
SELECT DISTINCT col1 + col1 AS col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab0, tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT col1 + - ( + col1 ) AS col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT - 63 * 27 AS col0 FROM tab0
----
-1701
query I rowsort
SELECT + col1 * - 43 AS col1 FROM tab2
----
-1333
-2537
-731
query I rowsort
SELECT ALL - 87 FROM tab1
----
-87
-87
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8846
SELECT CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8846
SELECT CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab1
----
-2916
-3249
-9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8848
SELECT CAST( - ( col2 ) AS SIGNED ) AS col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-8848
SELECT CAST ( - ( col2 ) AS INTEGER ) AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT 52 * col0 FROM tab0
----
1248
1820
4628
query I rowsort
SELECT + ( + tab2.col2 ) * + col0 FROM tab2
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col0 - - 95 * col0 col0 FROM tab1
----
288
6144
7680
query I rowsort
SELECT DISTINCT - ( + col1 ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + cor0.col2 AS col1 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT DISTINCT - col0 + cor0.col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8854
SELECT DISTINCT - col0 + cor0.col1 / + col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + ( - 99 ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7
query I rowsort
SELECT - col0 * + 70 FROM tab0 AS cor0
----
-1680
-2450
-6230
query I rowsort
SELECT col1 + ( - 55 * col2 ) FROM tab0
----
-1729
-4419
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col2 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL 47 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8860
SELECT col0 DIV + col1 + col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8860
SELECT col0 / + col1 + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - col2 * + col2 * + col0 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT + col0 - + 75 FROM tab0
----
-40
-51
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8863
SELECT + col0 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8863
SELECT + col0 - - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 50 col1 FROM tab2 AS cor0
----
-43
28
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8865
SELECT DISTINCT + ( col1 ) - + col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT + ( col1 ) - + col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL 63 * + 37 FROM tab1 AS cor0
----
2331
2331
2331
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT - CAST( NULL AS SIGNED ) + 81 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8867
SELECT - CAST ( NULL AS INTEGER ) + 81 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 + + ( col1 ) * col1 FROM tab1 AS cor0
----
156
650
90
query I rowsort
SELECT DISTINCT - 65 + - col0 AS col2 FROM tab1 AS cor0
----
-129
-145
-68
query I rowsort
SELECT DISTINCT - + col2 * cor0.col0 + col2 FROM tab2 cor0
----
-162
-2002
-2964
query I rowsort
SELECT DISTINCT - + ( + 49 ) * - col0 + + 94 - + col2 AS col1 FROM tab0 AS cor0
----
1237
1808
4373
query I rowsort
SELECT ALL - 70 FROM tab1 AS cor0
----
-70
-70
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-8873
SELECT DISTINCT col2 * col2 DIV col1 FROM tab1 AS cor0
----
112
324
708
skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT col2 * col2 / col1 FROM tab1 AS cor0
----
112
324
708
query I rowsort
SELECT + + ( col1 ) * col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col1 + 69 FROM tab2 cor0
----
100
128
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8876
SELECT DISTINCT CAST( + col1 AS SIGNED ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col2 + 9 AS col0 FROM tab1 AS cor0
----
105
63
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT ALL - + col2 * col1 - - col2 * CAST( NULL AS SIGNED ) * + 16 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-8878
SELECT ALL - + col2 * col1 - - col2 * CAST ( NULL AS INTEGER ) * + 16 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT ALL + 64 * - col0 - + col2 DIV 37 AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5698
skipif mysql # not compatible
query I rowsort label-8879
SELECT ALL + 64 * - col0 - + col2 / 37 AS col2 FROM tab0 AS cor0
----
-1536
-2240
-5698
query I rowsort
SELECT col0 + + 12 FROM tab1 AS cor0
----
15
76
92
query I rowsort
SELECT ALL + cor0.col2 * 67 FROM tab0 AS cor0
----
2211
5494
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-8882
SELECT DISTINCT - ( - col0 ) * + col0 + ( cor0.col1 ) DIV + cor0.col1 FROM tab2 AS cor0
----
50
6085
6242
skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT - ( - col0 ) * + col0 + ( cor0.col1 ) / + cor0.col1 FROM tab2 AS cor0
----
50
6085
6242
query I rowsort
SELECT + - col1 + col1 * ( ( + col2 ) ) AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT 62 * + col1 AS col0 FROM tab2 AS cor0
----
1054
1922
3658
onlyif mysql # use DIV operator for integer division
query I rowsort label-8885
SELECT DISTINCT - col1 DIV - col1 FROM tab2 cor0
----
1
skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT - col1 / - col1 FROM tab2 cor0
----
1
query I rowsort
SELECT ALL col0 + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + + col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 11 * col1 FROM tab2 AS cor0
----
-187
-341
-649
query I rowsort
SELECT ALL - ( col2 ) + col0 AS col0 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + - col1 * - col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - - cor0.col0 + col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8892
SELECT col2 DIV + col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8892
SELECT col2 / + col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort
SELECT col2 + CAST ( col2 + - col2 AS REAL ) * 71 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + 81 * - col2 FROM tab1
----
-4374
-4617
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-8895
SELECT ALL + - col0 DIV 94 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + - col0 / 94 + - col2 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8896
SELECT DISTINCT + - col0 * + 47 - + ( + col1 ) DIV 54 AS col2 FROM tab0 AS cor0
----
-1129
-1646
-4184
skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + - col0 * + 47 - + ( + col1 ) / 54 AS col2 FROM tab0 AS cor0
----
-1129
-1646
-4184
query I rowsort
SELECT ALL - col0 * - 21 AS col0 FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT ALL + col1 + - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + 96 + col1 FROM tab2
----
113
127
155
query I rowsort
SELECT col1 + - col0 * + ( + col1 ) + + col1 * 7 AS col0 FROM tab0
----
-1376
-2619
-7371
query I rowsort
SELECT - 47 AS col0 FROM tab0
----
-47
-47
-47
query I rowsort
SELECT DISTINCT ( 98 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
98
query I rowsort
SELECT - tab2.col0 * 71 + cor0.col2 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to c51e6a78aceae099e7325d0dd61b3b37
query I rowsort
SELECT col0 + 31 FROM tab2
----
109
110
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col0 FROM tab0
----
-73
-73
-73
query I rowsort
SELECT ALL + + 95 * col1 FROM tab1 AS cor0
----
1235
2470
950
query I rowsort
SELECT ALL + 63 + + col1 * + col0 FROM tab2 AS cor0
----
1406
280
4665
onlyif mysql # use DIV operator for integer division
query I rowsort label-8908
SELECT + - col0 DIV col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8908
SELECT + - col0 / col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT ( ( col0 ) ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT + ( - col0 ) * col1 * tab1.col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT 48 * + col1 * - col0 FROM tab2
----
-10416
-220896
-64464
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8912
SELECT ( 43 ) + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8912
SELECT ( 43 ) + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - 7 AS col2 FROM tab1
----
-7
-7
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8914
SELECT - col1 DIV - col0 + - 84 FROM tab2
----
-80
-84
-84
skipif mysql # not compatible
query I rowsort label-8914
SELECT - col1 / - col0 + - 84 FROM tab2
----
-80
-84
-84
query I rowsort
SELECT DISTINCT - 64 * + col1 FROM tab0
----
-5504
-5824
-6208
query I rowsort
SELECT - - col0 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + ( cor0.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-8918
SELECT DISTINCT - + col1 * + col0 * CAST( - 29 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
133458
38947
6293
skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT - + col1 * + col0 * CAST ( - 29 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
133458
38947
6293
query I rowsort
SELECT + + 98 AS col0 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT ALL 26 FROM tab2 AS cor0
----
26
26
26
query I rowsort
SELECT DISTINCT + 2 FROM tab0 cor0
----
2
query I rowsort
SELECT - 89 * col2 FROM tab1 AS cor0
----
-4806
-5073
-8544
query I rowsort
SELECT ALL - col2 * col0 + col2 AS col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL 18 * cor0.col0 AS col2 FROM tab2 cor0
----
126
1404
1422
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8925
SELECT ALL - col2 + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8926
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) * + ( col1 ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) * + ( col1 ) FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col1 * ( - col1 ) + col2 + col1 * - 37 FROM tab0 AS cor0
----
-10545
-11566
-12997
query I rowsort
SELECT DISTINCT - col0 + col2 + col0 AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - + col0 - ( - col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 * - ( + cor0.col2 + col2 ) * col2 AS col0 FROM tab2 cor0
----
-109744
-35152
-39366
onlyif mysql # use DIV operator for integer division
query I rowsort label-8932
SELECT DISTINCT + col0 DIV + 20 + - 98 + col1 * cor0.col2 FROM tab0 AS cor0
----
0
2741
7368
skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT + col0 / + 20 + - 98 + col1 * cor0.col2 FROM tab0 AS cor0
----
0
2741
7368
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2, tab1 cor3
----
3645 values hashing to 9044210e7dc2a764fe944d925f222728
query I rowsort
SELECT ALL col0 + + tab0.col1 * - col2 + col0 AS col2 FROM tab0
----
-27
-2790
-7284
query I rowsort
SELECT col0 * + col1 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8936
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8936
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col1 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col2 ) col2 FROM tab2 cor0
----
-26
-27
-38
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab1 AS cor2
----
972 values hashing to cee640567b2a4ba7d97109d5025bf4d9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col0 * col2 col0 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-8941
SELECT - col2 DIV ( col1 ) + col0 col2 FROM tab1 cor0
----
1
59
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8941
SELECT - col2 / ( col1 ) + col0 col2 FROM tab1 cor0
----
1
59
73
query I rowsort
SELECT ( - col0 ) + + col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - ( + col2 ) + col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + tab1.col1 AS col0 FROM tab1, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT DISTINCT + col1 * 21 AS col0 FROM tab2 cor0
----
1239
357
651
query I rowsort
SELECT + ( + 76 ) + - col0 AS col1 FROM tab0 AS cor0
----
-13
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8947
SELECT + col0 + ( + col1 ) + + cor0.col2 DIV + 2 FROM tab0 cor0
----
126
132
221
skipif mysql # not compatible
query I rowsort label-8947
SELECT + col0 + ( + col1 ) + + cor0.col2 / + 2 FROM tab0 cor0
----
126
132
221
query I rowsort
SELECT + + ( 2 ) AS col2 FROM tab0 AS cor0
----
2
2
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 70 col0 FROM tab0 AS cor0
----
-70
-70
-70
query I rowsort
SELECT + col0 * + col2 * - col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT - + cor0.col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col1 * col1 AS col0 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT + - cor0.col0 + - col2 AS col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + col1 * - ( - cor0.col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - 39 FROM tab1 cor0
----
-39
-39
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + col1 * + ( col2 ) col0 FROM tab0 AS cor0
----
107
2848
7472
query I rowsort
SELECT - col1 * ( + col0 ) AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 73 * 68 FROM tab2
----
4964
query I rowsort
SELECT ALL - 32 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7106326ae056e78044adc0aef747ef08
query I rowsort
SELECT DISTINCT col0 * 72 FROM tab0
----
1728
2520
6408
onlyif mysql # use DIV operator for integer division
query I rowsort label-8961
SELECT - col0 + - col0 DIV col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-8961
SELECT - col0 + - col0 / col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT col1 * + 38 - col2 * + col2 FROM tab0 AS cor0
----
-3266
2179
3685
query I rowsort
SELECT DISTINCT + col1 * + 66 AS col2 FROM tab2 AS cor0
----
1122
2046
3894
query I rowsort
SELECT - + col0 * col0 + - col1 * - cor0.col1 - + col0 FROM tab0 AS cor0
----
271
6796
8149
query I rowsort
SELECT ALL 11 FROM tab1
----
11
11
11
query I rowsort
SELECT DISTINCT ( cor1.col1 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT - - col0 * + 92 AS col1 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT col2 * + tab0.col1 * + col0 + col0 + + 52 AS col2 FROM tab0
----
3482
664259
68188
query I rowsort
SELECT ALL tab2.col1 FROM tab2, tab0 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - cor0.col0 - - 12 AS col1 FROM tab0 AS cor0
----
-12
-23
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + - col1 col0 FROM tab0 AS cor0
----
-120
-125
-131
query I rowsort
SELECT - 44 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
1400
632
685
query I rowsort
SELECT ALL + tab0.col1 * 69 + 53 AS col1 FROM tab0
----
5987
6332
6746
query I rowsort
SELECT ALL - 82 + + cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2b4d2a1a9f2ff64e6a9c687087a291d2
query I rowsort
SELECT 82 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8977
SELECT ALL - col0 + - 44 DIV col0 FROM tab0
----
-25
-36
-89
skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL - col0 + - 44 / col0 FROM tab0
----
-25
-36
-89
query I rowsort
SELECT ALL col1 + + col2 * 26 FROM tab0
----
123
2223
944
query I rowsort
SELECT ALL - col0 * - col1 + 88 * col0 + + col2 * 91 AS col2 FROM tab1
----
11459
16816
5256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + cor0.col1 col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + 32 * + col0 AS col2 FROM tab1 AS cor0
----
2048
2560
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT - - 85 DIV - col0 FROM tab1 AS cor0
----
-1
-1
-28
skipif mysql # not compatible
query I rowsort label-8982
SELECT - - 85 / - col0 FROM tab1 AS cor0
----
-1
-1
-28
query I rowsort
SELECT 61 + - col1 FROM tab1 AS cor0
----
35
48
51
query I rowsort
SELECT DISTINCT + + col2 - - cor0.col2 * + ( - col2 * 67 ) AS col1 FROM tab0 AS cor0
----
-450426
-66
-72930
query I rowsort
SELECT cor1.col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL 54 FROM tab1, tab0 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
onlyif mysql # use DIV operator for integer division
query I rowsort label-8987
SELECT ALL - col1 DIV 85 + col1 AS col2 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-8987
SELECT ALL - col1 / 85 + col1 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - + cor0.col1 * + ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - col0 * + 58 + + cor0.col2 FROM tab1 AS cor0
----
-120
-3655
-4544
query I rowsort
SELECT - 9 AS col1 FROM tab2
----
-9
-9
-9
query I rowsort
SELECT ALL + - cor0.col2 + cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 * 21 col1 FROM tab0 cor0
----
819
819
819
query I rowsort
SELECT + 64 FROM tab1, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ( 68 ) * col1 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT - col2 * col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - ( col2 ) AS col2 FROM tab1 cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT tab0.col0 * col1 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8998
SELECT ALL - col0 + + col2 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - col0 + + col2 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 69 AS col0 FROM tab0 AS cor0
----
-69
query I rowsort
SELECT DISTINCT + - col2 + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - 37 AS col0 FROM tab1 cor0
----
-37
-37
-37
query I rowsort
SELECT DISTINCT - + 78 * cor0.col0 + + ( 31 ) FROM tab1 AS cor0
----
-203
-4961
-6209
query I rowsort
SELECT ALL - col0 - + col2 * + col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT - + col2 * col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + ( + col2 ) FROM tab0
----
1
33
82
query I rowsort
SELECT 84 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT ALL - 21 + + col1 FROM tab0
----
65
70
76
query I rowsort
SELECT + ( col0 ) * col2 AS col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col1 * - 25 * + col1 FROM tab2
----
-24025
-7225
-87025
query I rowsort
SELECT - 21 * col2 FROM tab0 AS cor0
----
-1722
-21
-693
query I rowsort
SELECT DISTINCT + col1 * - cor0.col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT + 28 FROM tab2 cor0
----
28
query I rowsort
SELECT - cor0.col2 + + 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ae6cef48271f465c88ca3bc458caa384
query I rowsort
SELECT - ( col2 ) + col0 * - ( + col1 ) FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT - 31 + - col1 * + col0 + + col2 FROM tab0
----
-2062
-3425
-8048
query I rowsort
SELECT + 96 + col2 - + col2 FROM tab2
----
96
96
96
query I rowsort
SELECT - 68 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6fbba7db5bccb533a35aa5125a231f88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9020
SELECT tab1.col2 - col2 DIV tab1.col1 FROM tab1
----
52
52
89
skipif mysql # not compatible
query I rowsort label-9020
SELECT tab1.col2 - col2 / tab1.col1 FROM tab1
----
52
52
89
query I rowsort
SELECT - 51 + col0 AS col1 FROM tab0
----
-16
-27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9022
SELECT col2 + - col0 DIV tab2.col1 AS col0 FROM tab2
----
25
27
34
skipif mysql # not compatible
query I rowsort label-9022
SELECT col2 + - col0 / tab2.col1 AS col0 FROM tab2
----
25
27
34
query I rowsort
SELECT DISTINCT 3 * col0 FROM tab1
----
192
240
9
query I rowsort
SELECT + + 38 FROM tab0 AS cor0
----
38
38
38
query I rowsort
SELECT - 75 * - cor0.col1 FROM tab0 AS cor0
----
6450
6825
7275
query I rowsort
SELECT ALL col1 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT - - col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - + col1 * col1 AS col1 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-9029
SELECT - col1 * col1 DIV - col1 + col1 col0 FROM tab0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9029
SELECT - col1 * col1 / - col1 + col1 col0 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab0
----
-42
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 + - 90 AS col1 FROM tab0 AS cor0
----
-90
-90
-90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9033
SELECT ALL - col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - ( - ( col2 ) ) * ( + col1 ) AS col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9035
SELECT - tab2.col0 DIV ( + col2 + + tab2.col1 ) FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9035
SELECT - tab2.col0 / ( + col2 + + tab2.col1 ) FROM tab2
----
-1
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9036
SELECT tab1.col1 DIV tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9036
SELECT tab1.col1 / tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col0 - + col0 AS col2 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 22 col1 FROM tab2 AS cor0
----
22
22
22
query I rowsort
SELECT DISTINCT + 41 * - 59 + - col1 AS col0 FROM tab0 AS cor0
----
-2505
-2510
-2516
onlyif mysql # use DIV operator for integer division
query I rowsort label-9040
SELECT ( - col1 ) + + col0 DIV col2 col1 FROM tab0
----
-62
-86
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9040
SELECT ( - col1 ) + + col0 / col2 col1 FROM tab0
----
-62
-86
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col2 FROM tab0
----
93
93
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9042
SELECT ALL + CAST( NULL AS SIGNED ) * col0 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9042
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 + col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 72 - + col0 FROM tab0 AS cor0
----
-107
-161
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9044
SELECT + CAST( + col2 AS SIGNED ) + + col0 * col2 FROM tab2 cor0
----
2054
216
3040
skipif mysql # not compatible
query I rowsort label-9044
SELECT + CAST ( + col2 AS INTEGER ) + + col0 * col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + col0 + + cor0.col1 * + cor0.col1 AS col0 FROM tab1 cor0
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9046
SELECT ALL CAST( NULL AS SIGNED ) + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9046
SELECT ALL CAST ( NULL AS INTEGER ) + 89 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( + col1 ) + cor0.col0 * 12 + + col1 AS col1 FROM tab1 cor0
----
788
88
986
query I rowsort
SELECT DISTINCT + 75 * col1 AS col0 FROM tab2 AS cor0
----
1275
2325
4425
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9049
SELECT DISTINCT - - CAST( cor0.col2 AS SIGNED ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
skipif mysql # not compatible
query I rowsort label-9049
SELECT DISTINCT - - CAST ( cor0.col2 AS INTEGER ) + - col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + col0 + 59 FROM tab1 AS cor0
----
123
139
62
query I rowsort
SELECT col0 + cor0.col0 + cor0.col2 * - col1 * col0 FROM tab1 AS cor0
----
-36352
-4206
-99680
query I rowsort
SELECT ALL - ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9053
SELECT - + CAST( NULL AS DECIMAL ) - 98 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9053
SELECT - + CAST ( NULL AS REAL ) - 98 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + col0 + - cor0.col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 41 + + col0 FROM tab0 cor0
----
130
65
76
query I rowsort
SELECT ALL - 2 AS col1 FROM tab0 AS cor0
----
-2
-2
-2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9057
SELECT DISTINCT CAST( + cor0.col2 AS SIGNED ) + - col2 * col1 * col1 FROM tab2 AS cor0
----
-10944
-25920
-90480
skipif mysql # not compatible
query I rowsort label-9057
SELECT DISTINCT CAST ( + cor0.col2 AS INTEGER ) + - col2 * col1 * col1 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT ALL - ( - col2 ) * col1 + - col2 * col1 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 40 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e4d10f7d6c34a281f524e45e82ebd2a0
query I rowsort
SELECT ALL + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 * - 55 AS col2 FROM tab2 AS cor0
----
-1430
-1485
-2090
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9062
SELECT CAST( NULL AS SIGNED ) + cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9062
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + - col1 * col1 * ( cor0.col1 * cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-10000
-28561
-456976
query I rowsort
SELECT col2 * - ( - col2 ) FROM tab2
----
1444
676
729
query I rowsort
SELECT - - col1 + - 37 AS col1 FROM tab1 AS cor0
----
-11
-24
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 + col1 * - col1 col1 FROM tab1 AS cor0
----
1079
470
728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + col0 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT ALL col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-9069
SELECT col1 DIV - 98 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9069
SELECT col1 / - 98 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT - + ( col2 ) * - col2 + 8 FROM tab2 AS cor0
----
1452
684
737
query I rowsort
SELECT + - 72 FROM tab1 AS cor0
----
-72
-72
-72
query I rowsort
SELECT - col2 * - 24 FROM tab0
----
1968
24
792
query I rowsort
SELECT + 45 FROM tab1, tab2 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT - col0 + + 50 FROM tab0
----
-39
15
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9076
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9076
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT tab0.col1 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9078
SELECT + col2 + CAST( NULL AS SIGNED ) * - col2 * - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9078
SELECT + col2 + CAST ( NULL AS INTEGER ) * - col2 * - col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9079
SELECT ALL 28 DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-28
0
0
skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL 28 / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-28
0
0
query I rowsort
SELECT ( cor0.col2 ) * 20 + + cor0.col0 FROM tab2 AS cor0
----
547
598
839
query I rowsort
SELECT + col2 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT + 15 AS col2 FROM tab1 AS cor0
----
15
15
15
query I rowsort
SELECT + col0 + col2 * 28 FROM tab2 AS cor0
----
1143
763
806
query I rowsort
SELECT DISTINCT - 11 + col0 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
151
3637
7669
onlyif mysql # use DIV operator for integer division
query I rowsort label-9085
SELECT - - col2 * - col1 - + col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
-1534
-646
-840
skipif mysql # not compatible
query I rowsort label-9085
SELECT - - col2 * - col1 - + col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
-1534
-646
-840
query I rowsort
SELECT + col2 * - col2 + col1 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT col0 - - col1 * col0 AS col2 FROM tab1
----
1120
704
81
query I rowsort
SELECT col2 + + col2 AS col2 FROM tab2
----
52
54
76
query I rowsort
SELECT DISTINCT 42 AS col1 FROM tab1
----
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-9090
SELECT - 63 DIV tab2.col1 AS col2 FROM tab2
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9090
SELECT - 63 / tab2.col1 AS col2 FROM tab2
----
-1
-2
-3
query I rowsort
SELECT 69 + col1 AS col1 FROM tab0
----
155
160
166
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 * + col0 col1 FROM tab0
----
1920
2800
7120
query I rowsort
SELECT DISTINCT - col2 * - col1 + col1 * + col1 FROM tab0
----
10234
15743
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-9094
SELECT + col2 + - col0 DIV + ( 96 ) + + col1 * 54 FROM tab0
----
4677
4996
5239
skipif mysql # not compatible
query I rowsort label-9094
SELECT + col2 + - col0 / + ( 96 ) + + col1 * 54 FROM tab0
----
4677
4996
5239
query I rowsort
SELECT DISTINCT 34 + + col2 + col1 FROM tab0
----
132
153
207
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT + col2 + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT - + col2 * col0 + + 68 + col0 FROM tab1 AS cor0
----
-3516
-7532
-91
query I rowsort
SELECT + col1 * - cor0.col2 + + col2 FROM tab2 cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-9100
SELECT DISTINCT + col0 * col1 + + 95 DIV + col1 AS col0 FROM tab0 cor0
----
2065
3395
8100
skipif mysql # not compatible
query I rowsort label-9100
SELECT DISTINCT + col0 * col1 + + 95 / + col1 AS col0 FROM tab0 cor0
----
2065
3395
8100
query I rowsort
SELECT + - 10 * cor0.col0 * col1 - - cor0.col0 * + col0 FROM tab0 AS cor0
----
-20064
-32725
-73069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + 35 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
69
query I rowsort
SELECT DISTINCT ( - col0 ) + col1 AS col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT cor0.col0 * - col0 * cor0.col2 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT - - col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-9108
SELECT col0 DIV ( 23 ) AS col2 FROM tab0 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-9108
SELECT col0 / ( 23 ) AS col2 FROM tab0 AS cor0
----
1
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col1 - - col2 col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT 71 FROM tab0
----
71
query I rowsort
SELECT DISTINCT + col2 * - col1 + + col2 AS col1 FROM tab0
----
-2805
-7380
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9112
SELECT 73 DIV tab2.col0 AS col2 FROM tab2
----
0
0
10
skipif mysql # not compatible
query I rowsort label-9112
SELECT 73 / tab2.col0 AS col2 FROM tab2
----
0
0
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * - col0 col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 90 + col0 col0 FROM tab2 AS cor0
----
131
142
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9115
SELECT col2 * - CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9115
SELECT col2 * - CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col1 - + col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab1, tab1 AS cor0
----
57
query I rowsort
SELECT + - col2 * col0 - - col1 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9119
SELECT - col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9119
SELECT - col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + - 78 AS col1 FROM tab0 AS cor0
----
13
19
8
query I rowsort
SELECT - - col0 + ( col0 ) AS col1 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT col1 + + ( - 63 ) AS col1 FROM tab0 AS cor0
----
23
28
34
query I rowsort
SELECT ALL ( - col1 ) * col2 * - col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-9124
SELECT DISTINCT - + col1 DIV + 72 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9124
SELECT DISTINCT - + col1 / + 72 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + col0 * 90 FROM tab2 AS cor0
----
630
7020
7110
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + cor0.col0 * + cor0.col2 col1 FROM tab1 cor0
----
108
3591
7584
query I rowsort
SELECT ALL - - 44 * - 61 - - col1 * col0 FROM tab0 AS cor0
----
-620
5415
711
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT - 9 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9128
SELECT - 9 / - col0 AS col2 FROM tab1 AS cor0
----
0
0
3
query I rowsort
SELECT - ( + col2 ) + cor0.col1 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9130
SELECT + col1 DIV + tab1.col1 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9130
SELECT + col1 / + tab1.col1 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - tab2.col2 col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - col2 * col2 * - col2 FROM tab2 WHERE NOT ( col2 ) >= ( NULL )
----
query I rowsort
SELECT col0 * - col0 + + col2 * tab1.col2 FROM tab1
----
-847
2816
2907
query I rowsort
SELECT - col0 + tab2.col2 - tab2.col2 AS col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NULL NOT IN ( col2 )
----
query I rowsort
SELECT ALL + tab2.col1 + - col2 * + col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT - col1 + col2 FROM tab1 WHERE NOT tab1.col0 + col2 * - col1 NOT IN ( col0 + tab1.col1 )
----
query I rowsort
SELECT ALL + tab0.col1 - col2 * + col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT tab1.col2 * col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT col2 * col1 * col0 FROM tab2
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 * col0 * + col1 col1 FROM tab0
----
-177480
-329280
-736920
query I rowsort
SELECT - 55 AS col1 FROM tab2 AS cor0
----
-55
-55
-55
query I rowsort
SELECT 14 AS col2 FROM tab2
----
14
14
14
query I rowsort
SELECT col2 * col2 - - col1 * col2 FROM tab0
----
14186
3927
98
query I rowsort
SELECT 98 * col0 FROM tab2 AS cor0
----
686
7644
7742
onlyif mysql # use DIV operator for integer division
query I rowsort label-9146
SELECT DISTINCT + 12 DIV col1 AS col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT + 12 / col1 AS col1 FROM tab2
----
0
query I rowsort
SELECT ALL + col1 * - cor0.col2 * + col1 + col0 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT DISTINCT + + col2 + + col0 * col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT - 68 - col1 FROM tab2 AS cor0
----
-127
-85
-99
query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT ( NULL ) <> NULL
----
query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9152
SELECT DISTINCT col0 DIV - col0 AS col2 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9152
SELECT DISTINCT col0 / - col0 AS col2 FROM tab0
----
-1
query I rowsort
SELECT col0 * + col1 + tab1.col0 + - col0 AS col1 FROM tab1
----
1040
640
78
query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT DISTINCT col0 * col0 + - col0 AS col2 FROM tab0
----
1190
552
7832
query I rowsort
SELECT + col1 + col2 * col2 AS col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE NOT col1 + - col1 IN ( + col1 + col0 * col2 )
----
7
78
79
query I rowsort
SELECT - col2 * - tab1.col0 FROM tab1
----
162
3648
7680
query III rowsort
SELECT * FROM tab1 WHERE NULL <> + col1 * col1 + + col0
----
query I rowsort
SELECT ALL col2 + + tab1.col1 AS col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - col2 + - tab1.col1 FROM tab1
----
-109
-67
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 * - col0 col1 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT col0 + - tab1.col1 AS col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT + + 36 + col1 * col2 FROM tab1 AS cor0
----
1284
1440
606
query I rowsort
SELECT + 73 * col0 FROM tab2 AS cor0
----
511
5694
5767
query I rowsort
SELECT + - col2 * col1 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT 8 * + 78 FROM tab0 AS cor0
----
624
query I rowsort
SELECT ( 23 ) AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
query I rowsort
SELECT ALL - cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT + - 67 * + cor0.col0 + col2 FROM tab1 AS cor0
----
-147
-4231
-5264
query I rowsort
SELECT DISTINCT + col2 * + 95 + - col1 AS col2 FROM tab0 AS cor0
----
-2
3049
7699
onlyif mysql # use DIV operator for integer division
query I rowsort label-9172
SELECT col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-9172
SELECT col1 / - col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT ALL - 12 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-11
21
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9174
SELECT DISTINCT - 81 + - 27 DIV + col1 FROM tab2
----
-81
-82
skipif mysql # not compatible
query I rowsort label-9174
SELECT DISTINCT - 81 + - 27 / + col1 FROM tab2
----
-81
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9175
SELECT ALL CAST( NULL AS SIGNED ) + + tab0.col2 * - col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9175
SELECT ALL CAST ( NULL AS INTEGER ) + + tab0.col2 * - col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col0 * - col1 - col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT - + col1 * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - cor0.col1 + col0 + col2 FROM tab0 AS cor0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 col1 FROM tab1 AS cor0
----
89
89
89
query I rowsort
SELECT ALL - 5 + + col1 AS col2 FROM tab1 AS cor0
----
21
5
8
query I rowsort
SELECT - col2 + - col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT 12 * col0 FROM tab2
----
84
936
948
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9184
SELECT col2 * col0 DIV - col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9184
SELECT col2 * col0 / - col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( col0 ) + col2 col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9186
SELECT - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9186
SELECT - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col2 * + ( - col1 + - col0 ) FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT DISTINCT - - col2 + ( col1 ) FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9189
SELECT - col1 DIV - 98 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9189
SELECT - col1 / - 98 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 84 FROM tab0
----
84
query I rowsort
SELECT + 67 - - col2 * - ( 56 ) FROM tab1
----
-2957
-3125
-5309
query I rowsort
SELECT tab0.col0 + + col1 + - 37 AS col1 FROM tab0
----
143
73
95
query I rowsort
SELECT cor2.col0 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to e28bf7f922650ca423ade3642ce0285b
query I rowsort
SELECT ALL - tab2.col1 + + tab2.col2 - col2 AS col0 FROM tab2
----
-17
-31
-59
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1 AS cor2
----
972 values hashing to 263f0eb7d5dfd4076c74918bc141bd9b
query I rowsort
SELECT - - col1 * 38 AS col1 FROM tab0 cor0
----
3268
3458
3686
query I rowsort
SELECT ALL col1 * 60 FROM tab0 AS cor0
----
5160
5460
5820
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 26 col0 FROM tab2 AS cor0
----
-1534
-442
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-9199
SELECT col0 DIV - 6 + col2 AS col2 FROM tab1 AS cor0
----
47
54
83
skipif mysql # not compatible
query I rowsort label-9199
SELECT col0 / - 6 + col2 AS col2 FROM tab1 AS cor0
----
47
54
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9200
SELECT DISTINCT col1 DIV + 53 + col2 AS col1 FROM tab0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT col1 / + 53 + col2 AS col1 FROM tab0
----
2
34
83
query I rowsort
SELECT ALL - col2 + 14 AS col0 FROM tab1
----
-40
-43
-82
query I rowsort
SELECT ALL + cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + col0 * 58 FROM tab0
----
1392
2030
5162
query I rowsort
SELECT ALL + 77 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL - - ( + 55 ) FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col1 * col0 AS col0 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT ALL - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + cor0.col2 * - col0 - col0 FROM tab1 cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT 70 * + col1 FROM tab1 AS cor0
----
1820
700
910
query I rowsort
SELECT ALL + 71 AS col0 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT DISTINCT - col1 * - col1 AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL + col0 + col1 FROM tab0 AS cor0 WHERE NOT ( NOT - col2 * - col2 - + col2 = col2 ) AND NOT NULL BETWEEN NULL AND NULL OR NOT NULL BETWEEN NULL AND - col2
----
query I rowsort
SELECT + + cor0.col0 + col0 AS col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT col1 * col1 * - col2 + + col2 FROM tab1 AS cor0
----
-16128
-36450
-5643
query I rowsort
SELECT - 28 + + col1 * + col0 FROM tab2 AS cor0
----
1315
189
4574
query I rowsort
SELECT ALL col2 + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - col2 + - col2 + - col2 FROM tab2 AS cor0
----
-114
-78
-81
query I rowsort
SELECT ( col2 ) + col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - col1 * + col2 + col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + + 88 + col1 FROM tab1 AS cor0
----
101
114
98
query I rowsort
SELECT + + 97 AS col1 FROM tab2 AS cor0
----
97
97
97
query I rowsort
SELECT DISTINCT 94 + - col1 FROM tab1
----
68
81
84
query I rowsort
SELECT + ( col0 + col1 ) * col1 FROM tab2
----
1178
1632
8083
query I rowsort
SELECT - col2 * + col0 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT - col2 * + 26 FROM tab1 AS cor0
----
-1404
-1482
-2496
query I rowsort
SELECT DISTINCT + col2 + + 49 * - 13 AS col1 FROM tab1 AS cor0
----
-541
-580
-583
query I rowsort
SELECT + + col0 * + cor0.col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT - - col2 AS col1 FROM tab1 cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9230
SELECT DISTINCT cor0.col0 - + 79 DIV - col2 FROM tab1 AS cor0
----
4
65
80
skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT cor0.col0 - + 79 / - col2 FROM tab1 AS cor0
----
4
65
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col1 * cor0.col2 * col1 col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT DISTINCT - col1 + - ( col2 ) AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - col2 + 66 FROM tab1 AS cor0
----
-30
12
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9234
SELECT + - col1 DIV ( + col1 ) AS col1 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9234
SELECT + - col1 / ( + col1 ) AS col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT - 13 * + tab2.col1 - + 20 FROM tab2
----
-241
-423
-787
query I rowsort
SELECT ALL 10 * - col2 FROM tab1
----
-540
-570
-960
query I rowsort
SELECT ALL - col2 * - 93 AS col1 FROM tab0 AS cor0
----
3069
7626
93
query I rowsort
SELECT DISTINCT - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - + col2 + 38 FROM tab1 AS cor0
----
-16
-19
-58
query I rowsort
SELECT DISTINCT + col2 + - ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9241
SELECT ALL - col0 * CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL - col0 * CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 61 + 73 FROM tab2, tab0 AS cor0
----
9 values hashing to 3ceb25f3d86505c05ae8b32388dc5c47
query I rowsort
SELECT - 5 FROM tab2, tab2 cor0
----
9 values hashing to 74665fbb47d5b17da011bca567195b21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9244
SELECT - col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9244
SELECT - col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT + + col0 + + col2 * + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT cor0.col2 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col2 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + + col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9250
SELECT col1 DIV col2 + col1 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-9250
SELECT col1 / col2 + col1 FROM tab0
----
194
88
92
query I rowsort
SELECT + tab2.col0 + tab2.col0 * col0 * col1 AS col1 FROM tab2
----
106176
1526
359034
query I rowsort
SELECT col0 + col0 * col0 AS col2 FROM tab0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 col1 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 + - col1 + - col1 col2 FROM tab0
----
-196
-229
-271
query I rowsort
SELECT tab1.col1 * col1 AS col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT - tab1.col0 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT tab0.col0 DIV col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9257
SELECT tab0.col0 / col0 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT col0 * - col1 + col0 * col0 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT col2 * - col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT + + col2 * col1 * + col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL - + 13 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL 52 + col1 FROM tab2 AS cor0
----
111
69
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9263
SELECT ALL - col0 DIV + col0 col1 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - col0 / + col0 col1 FROM tab2
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9264
SELECT + col2 DIV + col0 col1 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9264
SELECT + col2 / + col0 col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT - + cor0.col2 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - col0 + - col2 * col2 FROM tab2 AS cor0
----
-1523
-736
-754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9267
SELECT - col1 * - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-9267
SELECT - col1 * - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + col2 + + ( + cor0.col1 ) * + col0 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL col1 * - col0 AS col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col1 * ( col1 ) FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT col2 + col0 + + ( col0 ) FROM tab0
----
260
71
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
query I rowsort
SELECT ALL - tab2.col2 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT - col2 + - 57 * tab1.col0 AS col0 FROM tab1
----
-225
-3705
-4656
query I rowsort
SELECT - + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to f1682f477bbed24d681925c633bed9db
query I rowsort
SELECT col1 + + ( - col2 * - col1 ) AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - cor0.col0 + col2 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
233408
483
614320
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-9280
SELECT DISTINCT cor0.col1 + CAST( + col1 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-9280
SELECT DISTINCT cor0.col1 + CAST ( + col1 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT - cor0.col0 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT - 70 + - col0 AS col0 FROM tab2 AS cor0
----
-148
-149
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9284
SELECT + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9284
SELECT + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - 42 + col0 FROM tab0 AS cor0
----
1410
3533
77
query I rowsort
SELECT ALL + 3 FROM tab1, tab2 AS cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba
query I rowsort
SELECT - col0 * col0 + - cor0.col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT ALL - col0 - - col2 * col0 FROM tab2
----
182
1950
2923
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab1 cor0, tab2 AS cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9290
SELECT ALL + ( tab0.col2 ) * 0 DIV + col0 - - col0 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL + ( tab0.col2 ) * 0 / + col0 - - col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + 64 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to c8b19f4c3ff38700cd2bb8a077bf29b9
query I rowsort
SELECT ALL + + 29 AS col1 FROM tab2 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT - ( col2 ) * - ( col2 ) AS col1 FROM tab0 cor0
----
1
1089
6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9294
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9294
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1 cor0, tab0 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + 66 FROM tab0 AS cor0
----
66
66
66
query I rowsort
SELECT + 77 FROM tab0
----
77
77
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - - col2 col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT 7 + + tab0.col1 * + col0 + - tab0.col2 * col0 FROM tab0
----
1279
3367
808
query I rowsort
SELECT ALL - col1 * - cor0.col2 - + col2 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col2 * - col0 col2 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT ALL + col0 + col0 * + 18 AS col1 FROM tab1 AS cor0
----
1216
1520
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9302
SELECT DISTINCT + - col2 DIV - col2 col1 FROM tab0 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT + - col2 / - col2 col1 FROM tab0 cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 99 * - col2 + - 3 col0 FROM tab0 AS cor0
----
3264
8115
96
query I rowsort
SELECT + ( - col1 ) * - ( - col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - + col2 * + col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9306
SELECT DISTINCT cor0.col0 * - col2 * - 32 + + col2 DIV col0 AS col2 FROM tab2 AS cor0
----
6051
64896
96064
skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT cor0.col0 * - col2 * - 32 + + col2 / col0 AS col2 FROM tab2 AS cor0
----
6051
64896
96064
query I rowsort
SELECT ALL + - ( col2 ) + col2 * - 57 - - col0 * - ( col1 ) FROM tab2 AS cor0
----
-1783
-3547
-6110
query I rowsort
SELECT DISTINCT - col0 + col0 * col1 * col1 AS col1 FROM tab0 cor0
----
177480
329280
736920
onlyif mysql # use DIV operator for integer division
query I rowsort label-9309
SELECT DISTINCT - - col0 DIV + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT - - col0 / + col0 + cor0.col2 AS col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT DISTINCT + col0 * - ( + 11 ) AS col2 FROM tab2 cor0
----
-77
-858
-869
query I rowsort
SELECT + + col0 * col0 AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT ALL 46 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39
query I rowsort
SELECT ALL col1 + - ( - col2 ) AS col1 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 19 * - cor0.col0 col1 FROM tab2 AS cor0
----
126
1404
1422
query I rowsort
SELECT - 23 FROM tab0, tab1 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT - col1 * - 14 FROM tab0 AS cor0
----
1204
1274
1358
onlyif mysql # use DIV operator for integer division
query I rowsort label-9317
SELECT + cor0.col0 DIV - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9317
SELECT + cor0.col0 / - ( col0 ) AS col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL + col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9320
SELECT DISTINCT col2 DIV 38 AS col2 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT col2 / 38 AS col2 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT - col1 * col0 + cor0.col1 * - col0 FROM tab1 AS cor0
----
-1280
-156
-2080
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9322
SELECT + col2 * CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-9322
SELECT + col2 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL cor0.col0 * 47 + col0 FROM tab2 AS cor0
----
336
3744
3792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9324
SELECT ALL col1 * 74 + - cor0.col0 DIV - 8 FROM tab1 cor0
----
1924
748
972
skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL col1 * 74 + - cor0.col0 / - 8 FROM tab1 cor0
----
1924
748
972
query I rowsort
SELECT 77 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT - 57 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1591
-703
-894
onlyif mysql # use DIV operator for integer division
query I rowsort label-9327
SELECT DISTINCT - + 30 + - col1 + col2 DIV - ( - col0 ) col1 FROM tab1 cor0
----
-38
-40
-42
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT - + 30 + - col1 + col2 / - ( - col0 ) col1 FROM tab1 cor0
----
-38
-40
-42
query I rowsort
SELECT DISTINCT cor0.col2 + 50 AS col2 FROM tab2 AS cor0
----
76
77
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9329
SELECT - ( - col2 * col0 ) + tab2.col0 DIV 55 AS col1 FROM tab2
----
189
2029
3003
skipif mysql # not compatible
query I rowsort label-9329
SELECT - ( - col2 * col0 ) + tab2.col0 / 55 AS col1 FROM tab2
----
189
2029
3003
query I rowsort
SELECT DISTINCT + - col1 * 86 AS col0 FROM tab2 AS cor0
----
-1462
-2666
-5074
onlyif mysql # use DIV operator for integer division
query I rowsort label-9331
SELECT ALL tab2.col0 DIV col0 AS col1 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9331
SELECT ALL tab2.col0 / col0 AS col1 FROM tab2
----
1
1
1
query I rowsort
SELECT col1 * 49 AS col1 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT - - cor0.col2 * - 67 * - col1 FROM tab2 AS cor0
----
102778
43282
56079
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9334
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 42 * + col2 FROM tab1 AS cor0
----
2268
2394
4032
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
query I rowsort
SELECT ALL + col2 * + cor0.col1 + - col0 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT + tab0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + 93 + + col1 AS col0 FROM tab0 AS cor0
----
179
184
190
query I rowsort
SELECT ALL cor0.col1 + - col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + 88 * col1 AS col0 FROM tab0
----
7568
8008
8536
query I rowsort
SELECT - tab2.col2 * - 96 + col1 AS col2 FROM tab2
----
2555
2623
3665
query I rowsort
SELECT - 33 FROM tab1, tab2 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9344
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + CAST ( NULL AS REAL ) FROM tab1, tab2 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9345
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-9345
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 58 * - cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to fb691685f56c1cd744939fd9abf199fb
query I rowsort
SELECT + 0 * 79 AS col0 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9348
SELECT ALL 74 DIV + col2 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL 74 / + col2 FROM tab1
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * col2 col1 FROM tab1
----
108
3591
7584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) col0 FROM tab1
----
3
64
80
query I rowsort
SELECT - col1 + 50 - - col1 FROM tab1 cor0
----
50
50
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9352
SELECT + CAST( col1 AS SIGNED ) + + col0 col2 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9352
SELECT + CAST ( col1 AS INTEGER ) + + col0 col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 + cor0.col1 - + col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL + + col1 + + col2 * + col1 * + 60 AS col2 FROM tab0 AS cor0
----
170366
447811
5917
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 + + col2 - 63 * + col2 col2 FROM tab2 cor0
----
-1710
-78
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9356
SELECT DISTINCT CAST( NULL AS SIGNED ) + + cor0.col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + cor0.col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT tab0.col1 DIV tab0.col0 + + 87 DIV tab0.col0 AS col0 FROM tab0
----
1
4
6
skipif mysql # not compatible
query I rowsort label-9357
SELECT tab0.col1 / tab0.col0 + + 87 / tab0.col0 AS col0 FROM tab0
----
1
4
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9358
SELECT ALL + col0 DIV tab1.col0 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL + col0 / tab1.col0 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT 76 AS col2 FROM tab0
----
76
76
76
query I rowsort
SELECT DISTINCT - + 81 + col2 AS col0 FROM tab2 AS cor0
----
-43
-54
-55
query I rowsort
SELECT - tab0.col2 * + col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL col1 * + col0 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col2 * + ( - ( col2 ) ) FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9365
SELECT + col1 DIV ( 17 * col0 + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9365
SELECT + col1 / ( 17 * col0 + col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + col1 + - ( - 87 ) * - col0 AS col0 FROM tab0 AS cor0
----
-2002
-2948
-7652
query I rowsort
SELECT DISTINCT 45 FROM tab1, tab2 AS cor0
----
45
query I rowsort
SELECT - - cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL col0 * 42 FROM tab0 AS cor0
----
1008
1470
3738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * ( + 62 ) col2 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT DISTINCT - col1 * + 71 FROM tab0 AS cor0
----
-6106
-6461
-6887
query I rowsort
SELECT - cor0.col1 + col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 cor0, tab1 AS cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT 44 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT col2 + 60 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT - col0 * cor0.col1 + - col0 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 57 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
57
query I rowsort
SELECT ALL + 5 FROM tab1, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab1 AS cor0
----
98
98
98
query I rowsort
SELECT - col1 + - ( + col0 ) FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col0 + + 67 AS col2 FROM tab0 AS cor0
----
102
156
91
query I rowsort
SELECT + + ( - col2 ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 23 + - 5 * - col2 AS col1 FROM tab1 AS cor0
----
293
308
503
query I rowsort
SELECT DISTINCT 65 + + col0 AS col2 FROM tab2 AS cor0
----
143
144
72
query I rowsort
SELECT ALL - 25 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1368
-242
-4627
query I rowsort
SELECT 11 - - 94 FROM tab2, tab1 AS cor0
----
9 values hashing to a8f8daa1a1bfedb1421594e2314a6b6d
query I rowsort
SELECT + - col2 * - col0 + col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - cor0.col1 col1 FROM tab2 cor0
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9389
SELECT + col2 + - col0 DIV + col0 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-9389
SELECT + col2 + - col0 / + col0 FROM tab1 AS cor0
----
53
56
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col1 * + 96 col2 FROM tab1 AS cor0
----
1017
1344
2550
query I rowsort
SELECT - 79 + + col1 * - col1 FROM tab1 AS cor0
----
-179
-248
-755
query I rowsort
SELECT - col1 * col0 + - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT - col2 DIV + col0 + + 81 FROM tab1 AS cor0
----
63
80
81
skipif mysql # not compatible
query I rowsort label-9393
SELECT - col2 / + col0 + + 81 FROM tab1 AS cor0
----
63
80
81
query I rowsort
SELECT + - col2 + - col1 AS col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT 35 + - col0 * - col1 AS col2 FROM tab1 AS cor0
----
1075
113
675
query I rowsort
SELECT + cor0.col1 + - col2 - cor0.col2 FROM tab2 AS cor0
----
-23
-59
7
query I rowsort
SELECT DISTINCT - 62 * - col1 FROM tab1
----
1612
620
806
query I rowsort
SELECT - col2 + 5 AS col0 FROM tab1 AS cor0
----
-49
-52
-91
query I rowsort
SELECT 48 * cor0.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to dd3481a39cbb16e36b5952a98971e7b0
query I rowsort
SELECT + ( + col1 ) * tab1.col1 FROM tab1
----
100
169
676
onlyif mysql # use DIV operator for integer division
query I rowsort label-9401
SELECT DISTINCT + - 37 DIV + 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0
skipif mysql # not compatible
query I rowsort label-9401
SELECT DISTINCT + - 37 / + 72 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0
query I rowsort
SELECT - - 31 AS col0 FROM tab1 AS cor0
----
31
31
31
query I rowsort
SELECT + cor0.col2 * + ( col1 ) + + 62 * + col2 * col2 FROM tab1 cor0
----
182196
202008
572640
query I rowsort
SELECT DISTINCT - 89 * + col2 FROM tab1 AS cor0
----
-4806
-5073
-8544
query I rowsort
SELECT ALL col1 * + col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + - 42 + col2 FROM tab1 AS cor0
----
12
15
54
query I rowsort
SELECT DISTINCT - + ( - col0 ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col2 * col0 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - 4 + - col2 AS col2 FROM tab1 AS cor0
----
-100
-58
-61
query I rowsort
SELECT + + 44 * col0 - - col1 FROM tab2 AS cor0
----
339
3491
3493
onlyif mysql # use DIV operator for integer division
query I rowsort label-9411
SELECT + - 74 + col2 DIV col2 AS col2 FROM tab0 AS cor0
----
-73
-73
-73
skipif mysql # not compatible
query I rowsort label-9411
SELECT + - 74 + col2 / col2 AS col2 FROM tab0 AS cor0
----
-73
-73
-73
query I rowsort
SELECT ALL + + col1 * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - ( - 55 ) * - cor0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 97fffb985b84746b3608ffd578bdb450
query I rowsort
SELECT ALL - - ( 54 ) * + col0 AS col1 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT - 79 * col1 - col0 FROM tab0 AS cor0
----
-6818
-7278
-7698
query I rowsort
SELECT DISTINCT - + 30 * + col0 + col2 AS col2 FROM tab2 AS cor0
----
-183
-2314
-2332
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9417
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col2 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9417
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col2 * - col1 AS col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col1 * col1 * - col1 + col1 * col2 FROM tab1 AS cor0
----
-16172
-430
-949
query I rowsort
SELECT - + col1 + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT 74 + col0 - col1 FROM tab0
----
12
72
query I rowsort
SELECT col1 + ( + col2 ) * + cor0.col2 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + 60 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col1 FROM tab0
----
6
6
6
query I rowsort
SELECT ALL + col1 * + col1 FROM tab1
----
100
169
676
query I rowsort
SELECT - col2 * ( + ( cor0.col0 ) ) + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-9426
SELECT col0 DIV - ( col0 ) + col1 AS col0 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-9426
SELECT col0 / - ( col0 ) + col1 AS col0 FROM tab2
----
16
30
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + tab1.col1 col1 FROM tab1
----
20
26
52
query I rowsort
SELECT cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + 32 * - col2 AS col1 FROM tab0 AS cor0
----
-1056
-2624
-32
query I rowsort
SELECT + cor0.col0 * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 - - col2 col1 FROM tab1
----
1136
132
697
query I rowsort
SELECT ALL - 58 * - 23 AS col0 FROM tab2 cor0
----
1334
1334
1334
query I rowsort
SELECT ( col1 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 12 + - cor0.col0 AS col0 FROM tab2, tab0 cor0
----
-12
-23
-77
query I rowsort
SELECT DISTINCT 48 FROM tab0
----
48
query I rowsort
SELECT ALL col0 * 99 * col0 FROM tab2
----
4851
602316
617859
query I rowsort
SELECT ALL ( ( + col1 ) ) FROM tab0
----
86
91
97
query I rowsort
SELECT + 79 + - cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 429439f7417caf3302a7e62dd8d1ff2b
query I rowsort
SELECT DISTINCT + 77 + cor0.col1 FROM tab2 AS cor0
----
108
136
94
query I rowsort
SELECT ALL + col2 * + 46 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
1249
1274
1827
query I rowsort
SELECT ALL + + col0 * col1 - - col2 * + col1 FROM tab0 cor0
----
15561
3492
4902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9443
SELECT ALL - CAST( col2 AS SIGNED ) + col0 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-9443
SELECT ALL - CAST ( col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 14 FROM tab0, tab2 AS cor0
----
-14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9445
SELECT + - CAST( NULL AS DECIMAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9445
SELECT + - CAST ( NULL AS REAL ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0 cor1, tab1 AS cor2
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9447
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * - col0 + + 42 col0 FROM tab2 AS cor0
----
-6042
-6199
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * - col0 + + 42 col0 FROM tab2 AS cor0
----
-6042
-6199
-7
query I rowsort
SELECT DISTINCT - col0 + col0 * ( + col2 + - col1 ) * - ( - col2 ) FROM tab2
----
-67002
-763
62963
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT tab2.col2 * col0 * - 72 + ( - col2 ) * - ( + col1 ) * + col1 FROM tab2
----
-205162
-55510
12339
query I rowsort
SELECT ALL ( tab1.col0 ) * col0 + col0 AS col1 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL - tab2.col2 * + tab2.col0 + - ( + 77 ) AS col1 FROM tab2
----
-2105
-266
-3079
query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
91
query I rowsort
SELECT + col2 * + col2 + col2 AS col1 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT + 35 * col0 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT col1 * col0 * - ( col0 ) FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + cor0.col0 * - cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + col1 * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + - col1 * + 54 AS col2 FROM tab2 AS cor0
----
-1674
-3186
-918
query I rowsort
SELECT ALL - col2 * col2 + ( col0 ) AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT ALL col1 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1128
-490
-7830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( - 95 ) col1 FROM tab0 cor0
----
-13
-62
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9463
SELECT ALL - + col1 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL - + col1 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + + col1 + + 43 AS col0 FROM tab0 AS cor0
----
129
134
140
query I rowsort
SELECT cor0.col1 * + col2 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - + col1 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col0 * 94 + col1 FROM tab1 AS cor0
----
308
6026
7533
query I rowsort
SELECT - - 77 FROM tab2, tab1, tab1 cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL - tab2.col2 + - col2 * 89 AS col1 FROM tab2
----
-2340
-2430
-3420
query I rowsort
SELECT DISTINCT + col0 * col2 - col1 AS col2 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT DISTINCT - - col2 * col2 AS col1 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-9473
SELECT ALL + - col1 DIV - col0 + + col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + - col1 / - col0 + + col2 FROM tab0 AS cor0
----
3
36
83
query I rowsort
SELECT ALL + col0 * + 72 * - col2 + + col1 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-13391
-141414
-214801
query I rowsort
SELECT DISTINCT 98 FROM tab2, tab1, tab1 AS cor0
----
98
query I rowsort
SELECT DISTINCT col2 * + 78 AS col2 FROM tab2 AS cor0
----
2028
2106
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9477
SELECT ALL + cor0.col0 DIV ( 49 ) + - col1 AS col2 FROM tab2 AS cor0
----
-16
-31
-58
skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + cor0.col0 / ( 49 ) + - col1 AS col2 FROM tab2 AS cor0
----
-16
-31
-58
query I rowsort
SELECT DISTINCT - 62 - col1 * col0 * col2 FROM tab1 AS cor0
----
-36542
-4274
-99902
query I rowsort
SELECT 85 AS col0 FROM tab0 cor0
----
85
85
85
query I rowsort
SELECT DISTINCT 46 * col1 + + col0 AS col0 FROM tab0 AS cor0
----
3980
4275
4497
query I rowsort
SELECT - col1 * col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL cor0.col0 * + cor1.col1 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 6eeec3923edeeb87a63caee02fec19e4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 * + col2 col0 FROM tab0 cor0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9484
SELECT col1 + col2 / + CAST( NULL AS SIGNED ) + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9484
SELECT col1 + col2 / + CAST ( NULL AS INTEGER ) + cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 56 * col2 FROM tab1 AS cor0
----
3024
3192
5376
query I rowsort
SELECT col0 + - col2 * - ( + col2 ) FROM tab2
----
1523
736
754
query I rowsort
SELECT + col2 + tab1.col1 FROM tab1
----
109
67
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9488
SELECT ALL + col0 * - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL + col0 * - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 * - col0 * col1 + col0 + 75 AS col2 FROM tab0
----
-177405
-329205
-736845
query I rowsort
SELECT ALL col0 + tab2.col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + ( - col0 ) * - col0 * + col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL - col1 + + ( col0 ) FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL col2 * col2 + + col1 AS col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT DISTINCT col0 * + col0 + col1 AS col2 FROM tab0
----
1322
662
8012
query I rowsort
SELECT 69 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - tab0.col0 * - col0 AS col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL 95 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ALL + 63 FROM tab0, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT ( 74 ) + col0 FROM tab1 AS cor0
----
138
154
77
query I rowsort
SELECT ALL ( + col1 ) * + col0 * 51 FROM tab0 AS cor0
----
105264
173145
413049
query I rowsort
SELECT DISTINCT - + 18 * + col1 * col0 FROM tab0 AS cor0
----
-145782
-37152
-61110
query I rowsort
SELECT ALL + col2 * + 13 + cor0.col2 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT + 29 AS col1 FROM tab1 AS cor0
----
29
29
29
query I rowsort
SELECT ALL - - 8 * col0 FROM tab2 AS cor0
----
56
624
632
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9505
SELECT - CAST( NULL AS SIGNED ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9505
SELECT - CAST ( NULL AS INTEGER ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9506
SELECT - CAST( + col0 AS SIGNED ) * + col2 + cor0.col1 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
159
2132
255
skipif mysql # not compatible
query I rowsort label-9506
SELECT - CAST ( + col0 AS INTEGER ) * + col2 + cor0.col1 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
159
2132
255
query I rowsort
SELECT ALL - col2 * col0 * - col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9508
SELECT col0 * 88 * col1 + col0 DIV - 90 + + col1 AS col2 FROM tab1 AS cor0
----
56330
6890
91533
skipif mysql # not compatible
query I rowsort label-9508
SELECT col0 * 88 * col1 + col0 / - 90 + + col1 AS col2 FROM tab1 AS cor0
----
56330
6890
91533
query I rowsort
SELECT DISTINCT - + ( 80 ) AS col1 FROM tab0 AS cor0
----
-80
query I rowsort
SELECT + 24 * col0 FROM tab1 AS cor0
----
1536
1920
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-9511
SELECT + ( col0 ) DIV col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9511
SELECT + ( col0 ) / col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 col0 FROM tab1 AS cor0
----
95
95
95
query I rowsort
SELECT col1 * - 44 AS col0 FROM tab0
----
-3784
-4004
-4268
query I rowsort
SELECT ALL 51 FROM tab1, tab1 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - ( - tab2.col0 ) * tab2.col0 col1 FROM tab2
----
2989
371124
380701
query I rowsort
SELECT 18 FROM tab1, tab0 AS cor0
----
9 values hashing to b95bafa733666df39c5d3f94760d010f
query I rowsort
SELECT 68 + - col2 * cor0.col2 FROM tab0 AS cor0
----
-1021
-6656
67
query I rowsort
SELECT DISTINCT - + cor0.col2 FROM tab0, tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - ( - ( tab2.col2 ) ) FROM tab2
----
26
27
38
query I rowsort
SELECT ALL + 15 AS col0 FROM tab0
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9521
SELECT cor0.col1 DIV col1 AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9521
SELECT cor0.col1 / col1 AS col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - + 99 + col1 FROM tab0 AS cor0
----
-13
-2
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9523
SELECT ALL + 7 DIV col0 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-9523
SELECT ALL + 7 / col0 + + col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 * + col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT 57 FROM tab2, tab1 AS cor0
----
57
query I rowsort
SELECT - - col2 + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col0 * - col2 + - ( cor0.col0 ) * col1 * cor0.col0 FROM tab0 AS cor0
----
-118790
-48744
-713513
query I rowsort
SELECT - col1 * - col0 * col0 + + 89 FROM tab1 AS cor0
----
323
41049
83289
query I rowsort
SELECT DISTINCT + + col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL col1 + - 86 + col0 * - col2 * col1 AS col2 FROM tab2 AS cor0
----
-119679
-51103
-5914
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9531
SELECT DISTINCT - col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT - col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT + col1 + 9 FROM tab2 cor0
----
26
40
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9534
SELECT - col0 + + CAST( NULL AS DECIMAL ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9534
SELECT - col0 + + CAST ( NULL AS REAL ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + + 42 * col1 FROM tab2 AS cor0
----
1329
2504
752
query I rowsort
SELECT ALL - tab1.col1 + + ( col0 * col0 + 47 ) FROM tab1
----
30
4133
6434
query I rowsort
SELECT + col2 * 28 FROM tab2
----
1064
728
756
query I rowsort
SELECT - tab1.col1 * 29 AS col0 FROM tab1
----
-290
-377
-754
query I rowsort
SELECT col0 * - col0 + col0 + + tab0.col0 AS col1 FROM tab0
----
-1155
-528
-7743
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT tab1.col0 * + col2 AS col0 FROM tab1
----
162
3648
7680
query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col1 + col1 )
----
query I rowsort
SELECT + col0 * col0 FROM tab1 WHERE NOT - col1 NOT IN ( tab1.col1 + + col2 )
----
query I rowsort
SELECT ALL - col2 + + col1 * col2 * + col2 AS col1 FROM tab2
----
22572
24510
39858
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( col1 )
----
query I rowsort
SELECT + col1 * + col2 AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col0 / tab2.col1 FROM tab2 WHERE ( NULL ) BETWEEN - col1 AND ( col0 )
----
query I rowsort
SELECT ALL + tab2.col0 + - col2 AS col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - col0 + cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1328
-1407
-634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT + col0 - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + col1 * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
16224
36504
5700
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col0 ) NOT IN ( - col2 / - col0 )
----
query I rowsort
SELECT col2 FROM tab2 WHERE ( col1 * col2 ) NOT IN ( - col1 )
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9556
SELECT col1 + + col2 * col0 DIV col2 FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-9556
SELECT col1 + + col2 * col0 / col2 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * + tab1.col0 + col1
----
query I rowsort
SELECT ALL - col2 + col2 - col2 AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NOT NULL <> ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col0 col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT col2 * + col0 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT DISTINCT - tab1.col0 + col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT + col0 + col0 * - col1 FROM tab2
----
-1264
-210
-4524
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 < + col2
----
7
31
27
78
59
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT + col2 * + col2 + - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1088
6723
skipif mysql # not compatible
query I rowsort label-9565
SELECT + col2 * + col2 + - col0 / col0 AS col2 FROM tab0 AS cor0
----
0
1088
6723
query I rowsort
SELECT - col2 * col1 + cor0.col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT tab1.col2 * + col2 + + tab1.col0 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT cor0.col0 FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT col2 + - tab2.col2 * - col0 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT col2 + col1 * - col0 * col1 AS col1 FROM tab0 AS cor0
----
-177471
-329314
-736927
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col2 + + col0 * - col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT - - col2 + - col1 AS col1 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL cor0.col2 * col0 FROM tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + col2 * cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL col2 * - col0 + col1 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT col1 * - col0 + col0 AS col2 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT + - col1 * + col0 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * + col0 + - ( col1 ) col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT col2 * 95 AS col1 FROM tab0 AS cor0
----
3135
7790
95
query I rowsort
SELECT ALL col1 * - ( col2 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col2 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9585
SELECT DISTINCT col2 * CAST( + col0 + col1 * - 84 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-237600
-619510
-8113
skipif mysql # not compatible
query I rowsort label-9585
SELECT DISTINCT col2 * CAST ( + col0 + col1 * - 84 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-237600
-619510
-8113
onlyif mysql # use DIV operator for integer division
query I rowsort label-9586
SELECT - + col0 DIV ( + col0 ) FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9586
SELECT - + col0 / ( + col0 ) FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 + + 3 FROM tab2 AS cor0
----
-4
-75
-76
query I rowsort
SELECT ALL + - col0 - - ( col0 ) * col2 AS col0 FROM tab1 cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - + col2 * 29 FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT ALL + cor0.col0 + + col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col2 + ( + 33 ) + cor0.col1 * - 60 * col1 AS col0 FROM tab2 AS cor0
----
-17269
-208801
-57600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9593
SELECT DISTINCT + cor0.col0 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9593
SELECT DISTINCT + cor0.col0 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col0 * 62 FROM tab0 AS cor0
----
1488
2170
5518
query I rowsort
SELECT - col0 + + 11 + - 17 * col1 FROM tab1 AS cor0
----
-223
-290
-434
query I rowsort
SELECT ALL + cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT + col0 + + ( + 49 ) * col1 FROM tab2
----
1526
2969
912
query I rowsort
SELECT + 68 FROM tab1, tab1 AS cor0
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990
query I rowsort
SELECT + 1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - + 23 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - cor0.col0 col2 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT col0 * - cor0.col0 * - 47 + - cor0.col0 FROM tab1 cor0
----
192448
300720
420
onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT DISTINCT - col2 DIV col2 AS col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-9603
SELECT DISTINCT - col2 / col2 AS col0 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9604
SELECT - col2 * - col1 DIV col1 AS col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9604
SELECT - col2 * - col1 / col1 AS col0 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9605
SELECT col2 DIV - col1 AS col2 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9605
SELECT col2 / - col1 AS col2 FROM tab1
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9606
SELECT DISTINCT - col1 DIV col0 FROM tab1
----
-8
0
skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT - col1 / col0 FROM tab1
----
-8
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab0 cor0
----
10
10
10
query I rowsort
SELECT + col1 - col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - col0 FROM tab1 WHERE NULL > ( NULL )
----
query I rowsort
SELECT ALL - col1 * - col1 + tab0.col2 - + col0 * + col1 AS col0 FROM tab0
----
264
5365
6015
query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col2 - col0 NOT IN ( col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9612
SELECT DISTINCT + col0 DIV - col1 FROM tab1
----
-6
0
skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT + col0 / - col1 FROM tab1
----
-6
0
query I rowsort
SELECT ALL - tab1.col2 - + col0 FROM tab1 WHERE - col2 + - col0 - col1 IN ( col1 / col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9614
SELECT ALL col0 DIV + col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL col0 / + col0 FROM tab2
----
1
1
1
query I rowsort
SELECT - col0 * col0 + - col2 - col1 FROM tab0
----
-1323
-695
-8094
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 + col1 + col2 col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col1 * col0 + - 75 + + col2 * + tab2.col0 AS col0 FROM tab2
----
331
4270
6555
query I rowsort
SELECT ALL - tab0.col1 * - col1 + 6 AS col0 FROM tab0
----
7402
8287
9415
query I rowsort
SELECT DISTINCT - col0 * - col1 + + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL + cor0.col1 + - col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9621
SELECT DISTINCT - 1 + + col0 * CAST( - 9 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-64
-703
-712
skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT - 1 + + col0 * CAST ( - 9 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-64
-703
-712
query I rowsort
SELECT + col0 + cor0.col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-9623
SELECT ALL - + 61 DIV col0 AS col2 FROM tab1 AS cor0
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-9623
SELECT ALL - + 61 / col0 AS col2 FROM tab1 AS cor0
----
-20
0
0
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col0 + cor0.col0 * col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT cor0.col1 * + 66 + - 7 FROM tab0 AS cor0
----
5669
5999
6395
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9627
SELECT ALL - - col1 + - CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-9627
SELECT ALL - - col1 + - CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - + col0 * + 18 FROM tab0 AS cor0
----
-1602
-432
-630
query I rowsort
SELECT - col1 * + col2 + + 53 AS col2 FROM tab0 AS cor0
----
-2785
-44
-7409
query I rowsort
SELECT - col1 * 59 + - col0 FROM tab1 AS cor0
----
-1537
-654
-847
query I rowsort
SELECT 90 AS col1 FROM tab2 AS cor0
----
90
90
90
query I rowsort
SELECT 69 AS col0 FROM tab1 AS cor0
----
69
69
69
query I rowsort
SELECT ALL 22 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9
query I rowsort
SELECT + - col0 + cor0.col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - - 72 AS col0 FROM tab0 AS cor0
----
72
72
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 71 col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
71
query I rowsort
SELECT ( col2 ) + - col0 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9638
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-9638
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0, tab1 AS cor1
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9639
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0, tab2 cor0, tab2 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT ALL 26 DIV col0 AS col2 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9640
SELECT ALL 26 / col0 AS col2 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + + col0 * col2 - - col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL 64 + 30 FROM tab2, tab2 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL + 44 + + col1 AS col1 FROM tab0
----
130
135
141
query I rowsort
SELECT ALL tab2.col2 + - tab2.col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + 26 + + tab1.col0 AS col0 FROM tab1
----
106
29
90
query I rowsort
SELECT + - col2 * + col0 AS col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9647
SELECT col0 + cor0.col1 DIV - 49 - col1 FROM tab2 AS cor0
----
-24
18
62
skipif mysql # not compatible
query I rowsort label-9647
SELECT col0 + cor0.col1 / - 49 - col1 FROM tab2 AS cor0
----
-24
18
62
query I rowsort
SELECT - 89 * - col2 * tab2.col1 AS col2 FROM tab2
----
136526
57494
74493
query I rowsort
SELECT ALL - tab2.col0 * tab2.col1 * col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT ( col2 * + col1 ) AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT ALL tab0.col0 * + tab0.col2 * - ( + col0 ) FROM tab0
----
-1225
-19008
-649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-9652
SELECT ALL + col2 + col2 DIV 52 col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL + col2 + col2 / 52 col0 FROM tab2
----
26
27
38
query I rowsort
SELECT + tab2.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT col2 + - col1 * - col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - col0 * tab2.col2 * - col0 FROM tab2
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * tab2.col2 * - col0 + col2 col0 FROM tab2
----
-1296
-158158
-237120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - tab2.col2 * + col0 col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT + tab0.col1 * col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT - col2 + col1 * col0 - col0 FROM tab2 AS cor0
----
1226
183
4498
query I rowsort
SELECT DISTINCT tab0.col2 - col0 * col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT col2 - - tab1.col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL + col1 * + col2 - col2 * - col0 AS col0 FROM tab2
----
1026
3562
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT DISTINCT - col1 * - col0 - - col0 DIV col1 FROM tab2
----
1347
217
4603
skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT - col1 * - col0 - - col0 / col1 FROM tab2
----
1347
217
4603
query I rowsort
SELECT 35 FROM tab2
----
35
35
35
query I rowsort
SELECT 53 AS col2 FROM tab1
----
53
53
53
onlyif mysql # use DIV operator for integer division
query I rowsort label-9666
SELECT DISTINCT col2 DIV + col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT col2 / + col2 FROM tab0
----
1
query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab2, tab0 AS cor0
----
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9668
SELECT DISTINCT + + col0 DIV + col0 + col1 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + + col0 / + col0 + col1 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT + + col2 + col1 * col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL - 46 * + col2 + - col0 FROM tab1 AS cor0
----
-2487
-2686
-4496
query I rowsort
SELECT DISTINCT + ( col0 ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT 2 FROM tab1, tab1 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ALL + 94 FROM tab1
----
94
94
94
query I rowsort
SELECT DISTINCT tab2.col1 * + 76 FROM tab2
----
1292
2356
4484
query I rowsort
SELECT + + col2 * col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT 4 FROM tab2
----
4
4
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT - + 3 DIV + col2 col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9677
SELECT - + 3 / + col2 col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + ( col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + + cor0.col2 * col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - ( - tab0.col2 ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL - ( - col2 ) + 71 FROM tab1 AS cor0
----
125
128
167
query I rowsort
SELECT + + col2 * - col0 + + col2 * + 76 AS col1 FROM tab1 AS cor0
----
-384
3942
684
query I rowsort
SELECT ALL col2 + - col0 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT - 95 AS col0 FROM tab1 AS cor0
----
-95
-95
-95
query I rowsort
SELECT DISTINCT + - col1 * col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col0 * - ( col2 ) FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT ALL ( tab1.col2 ) + col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9689
SELECT col0 DIV + col0 AS col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9689
SELECT col0 / + col0 AS col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col0 + + col1 * - col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT - - 72 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT ALL + col1 + + cor0.col2 FROM tab0 cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col1 * ( 59 + col1 ) col2 FROM tab0 AS cor0
----
12503
13732
15133
query I rowsort
SELECT DISTINCT + + col0 * - col2 + ( - col1 ) FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + + col0 + - cor0.col1 * - ( col1 ) AS col0 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT DISTINCT - 55 + + col2 AS col0 FROM tab0 AS cor0
----
-22
-54
27
query I rowsort
SELECT - cor0.col1 * - cor0.col0 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL - col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + 57 * col1 AS col2 FROM tab1 AS cor0
----
1482
570
741
query I rowsort
SELECT DISTINCT + 60 * + col0 FROM tab2 AS cor0
----
420
4680
4740
query I rowsort
SELECT DISTINCT + + col1 * - col2 + col0 * ( col0 ) FROM tab0 AS cor0
----
-2262
1128
459
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * col2 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT - col0 + - col1 AS col0 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * col0 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - - cor0.col1 + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - col1 - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT + - col1 * - col1 + - col1 AS col0 FROM tab2 cor0
----
272
3422
930
query I rowsort
SELECT + col1 * + col0 - col0 * - col1 AS col2 FROM tab2 AS cor0
----
2686
434
9204
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9711
SELECT + + col0 * CAST( - 92 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
-2184
-3185
-8099
skipif mysql # not compatible
query I rowsort label-9711
SELECT + + col0 * CAST ( - 92 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
-2184
-3185
-8099
query I rowsort
SELECT DISTINCT - - ( col2 ) FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + cor0.col0 ) + + col0 * - cor0.col1 col2 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT + col2 * - col2 + col0 + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT col0 * - col0 * + col2 AS col2 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT DISTINCT - ( 92 ) + - col2 * + col2 AS col2 FROM tab1 AS cor0
----
-3008
-3341
-9308
query I rowsort
SELECT - + col2 * col2 + col0 * - col0 * - col1 FROM tab0 AS cor0
----
118824
48447
714087
query I rowsort
SELECT DISTINCT ( 20 ) * col1 + col2 + col2 FROM tab0 cor0
----
1786
1942
1984
query I rowsort
SELECT DISTINCT 82 * + cor0.col0 + - col2 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
1650
5818
7808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 + - col2 * 24 col0 FROM tab0 AS cor0
----
-10067
-2856
-3419
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9721
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9722
SELECT ALL - CAST( NULL AS SIGNED ) + col2 + - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 + - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 60 FROM tab0 cor0
----
60
query I rowsort
SELECT DISTINCT 2 AS col1 FROM tab1, tab2 cor0
----
2
query I rowsort
SELECT - 9 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT ALL 12 + + 75 FROM tab1 AS cor0
----
87
87
87
query I rowsort
SELECT ( col1 ) * col0 + col0 + + col1 AS col0 FROM tab2 cor0
----
1439
255
4739
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9728
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9728
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9729
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 48 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 48 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - 97 * - col1 col0 FROM tab2 AS cor0
----
1666
3038
5782
query I rowsort
SELECT ALL - col0 + cor0.col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ( cor0.col2 ) + - col0 * col2 + + col0 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT DISTINCT - col1 * + ( col2 + 13 ) * - col1 FROM tab1 AS cor0
----
18421
45292
7000
onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT DISTINCT CAST( - ( cor0.col0 ) AS SIGNED ) DIV CAST( ( + col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT CAST ( - ( cor0.col0 ) AS INTEGER ) / CAST ( ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-6
0
query I rowsort
SELECT ALL - col2 * col1 * col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col0 * + col1 + cor0.col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 * col2 * col0 AS col1 FROM tab1 AS cor0
----
211584
744960
8910
query I rowsort
SELECT DISTINCT - 95 + col0 FROM tab0 AS cor0
----
-6
-60
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT - - 47 + + col1 * 74 DIV + 22 FROM tab0 cor0
----
336
353
373
skipif mysql # not compatible
query I rowsort label-9739
SELECT - - 47 + + col1 * 74 / + 22 FROM tab0 cor0
----
336
353
373
query I rowsort
SELECT DISTINCT + + cor0.col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - cor0.col0 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT + col2 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL + - col2 + 92 * col2 FROM tab0 AS cor0
----
3003
7462
91
query I rowsort
SELECT ALL - col2 + 42 AS col1 FROM tab1 cor0
----
-12
-15
-54
query I rowsort
SELECT DISTINCT + col1 * col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - + col0 * + 50 * 50 FROM tab2 AS cor0
----
-17500
-195000
-197500
query I rowsort
SELECT DISTINCT + tab1.col2 - - col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col1 * + col2 - col0 AS col2 FROM tab2
----
1456
567
830
query I rowsort
SELECT col0 + + ( + col1 ) * - col1 * col0 FROM tab2
----
-22752
-271440
-6720
query I rowsort
SELECT col2 * - 79 AS col0 FROM tab2
----
-2054
-2133
-3002
query I rowsort
SELECT - + col0 + + 34 AS col1 FROM tab0 AS cor0
----
-1
-55
10
query I rowsort
SELECT DISTINCT - col1 + col0 * ( + col0 * ( + 39 ) ) - + col1 AS col0 FROM tab1
----
159724
249574
299
query I rowsort
SELECT col2 + ( 55 * col2 ) + ( 16 * tab1.col0 ) FROM tab1
----
3072
4216
6656
query I rowsort
SELECT + col0 + 20 FROM tab2
----
27
98
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9755
SELECT col2 DIV + 99 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9755
SELECT col2 / + 99 FROM tab1
----
0
0
0
query I rowsort
SELECT - col0 + ( + 83 ) * col2 + col0 AS col2 FROM tab2
----
2158
2241
3154
query I rowsort
SELECT ALL tab1.col0 + + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT - col0 * - col1 * + ( - tab2.col1 + - col2 ) FROM tab2
----
-12586
-391170
-73865
query I rowsort
SELECT + 35 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT + 26 * - col0 FROM tab1
----
-1664
-2080
-78
query I rowsort
SELECT ALL - + 69 + cor0.col0 FROM tab1 AS cor0
----
-5
-66
11
query I rowsort
SELECT DISTINCT + col1 + + col2 * + col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + - col2 * - cor0.col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + cor0.col1 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT - 74 - + col0 * - 34 FROM tab1 cor0
----
2102
2646
28
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab2.col0 col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT ALL + col2 * + ( + col1 + - tab1.col0 ) AS col2 FROM tab1
----
-3078
-6432
1242
query I rowsort
SELECT + col1 * - 98 + ( col0 ) + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-8380
-8740
-9436
query I rowsort
SELECT + col0 + col1 * + col1 FROM tab1 cor0
----
164
249
679
query I rowsort
SELECT ALL - ( + col0 ) + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + cor0.col1 + col2 FROM tab0 AS cor0
----
195
205
264
query I rowsort
SELECT + col2 * + 59 AS col0 FROM tab0 AS cor0
----
1947
4838
59
query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab0, tab0 AS cor0
----
22
query I rowsort
SELECT ALL - 38 FROM tab0, tab0 cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col0 FROM tab2
----
10
10
10
query I rowsort
SELECT 89 * + ( - col0 ) FROM tab0 AS cor0
----
-2136
-3115
-7921
query I rowsort
SELECT DISTINCT col2 + - 32 FROM tab0 cor0
----
-31
1
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-9778
SELECT ALL - col0 DIV - cor0.col0 - + col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - col0 / - cor0.col0 - + col1 AS col1 FROM tab0 AS cor0
----
-85
-90
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col2 FROM tab0, tab2 AS cor0
----
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9780
SELECT - ( + col2 ) + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-9780
SELECT - ( + col2 ) + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - 43 AS col0 FROM tab1 AS cor0
----
-43
-43
-43
onlyif mysql # use DIV operator for integer division
query I rowsort label-9782
SELECT DISTINCT ( - col0 ) - + col0 * cor0.col1 DIV col0 col0 FROM tab0 AS cor0
----
-110
-132
-180
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT ( - col0 ) - + col0 * cor0.col1 / col0 col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ( col2 ) - col2 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9784
SELECT DISTINCT CAST( + 13 * - col1 AS SIGNED ) FROM tab2
----
-221
-403
-767
skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT CAST ( + 13 * - col1 AS INTEGER ) FROM tab2
----
-221
-403
-767
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) * ( col1 ) col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + ( + ( - col0 ) ) FROM tab1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT + 72 FROM tab2 AS cor0
----
72
72
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-9789
SELECT 68 + tab1.col0 DIV - ( tab1.col0 * - col1 ) FROM tab1
----
68
68
68
skipif mysql # not compatible
query I rowsort label-9789
SELECT 68 + tab1.col0 / - ( tab1.col0 * - col1 ) FROM tab1
----
68
68
68
query I rowsort
SELECT 66 - 82 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
query I rowsort
SELECT ( + cor0.col0 ) + + col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - col1 - ( col0 ) AS col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9793
SELECT + col0 - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9793
SELECT + col0 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col0 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9795
SELECT - col0 DIV 42 + col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7296
792
skipif mysql # not compatible
query I rowsort label-9795
SELECT - col0 / 42 + col0 * col2 AS col2 FROM tab0 AS cor0
----
35
7296
792
query I rowsort
SELECT ALL - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + cor0.col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col0 * - 80 FROM tab2 AS cor0
----
-560
-6240
-6320
query I rowsort
SELECT DISTINCT + + col0 + 43 * - 97 AS col2 FROM tab0 AS cor0
----
-4082
-4136
-4147
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9800
SELECT + col0 + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-9800
SELECT + col0 + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - + cor0.col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-9803
SELECT ALL col0 DIV col0 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL col0 / col0 AS col2 FROM tab2
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9804
SELECT - col0 + 80 DIV + col1 FROM tab2 AS cor0
----
-5
-75
-77
skipif mysql # not compatible
query I rowsort label-9804
SELECT - col0 + 80 / + col1 FROM tab2 AS cor0
----
-5
-75
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9805
SELECT DISTINCT col2 DIV 45 AS col2 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT col2 / 45 AS col2 FROM tab0
----
0
1
query I rowsort
SELECT col1 * - 68 * - 24 AS col2 FROM tab0
----
140352
148512
158304
query I rowsort
SELECT ALL 17 * + cor0.col0 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 93a32356c9894c315a3ac8cd89cc9e88
query I rowsort
SELECT 39 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to ed2ebd9def3e2c38aa46cb3af60fe229
query I rowsort
SELECT DISTINCT + tab2.col1 + 33 AS col0 FROM tab2, tab0 AS cor0
----
50
64
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9810
SELECT - col2 + 7 DIV ( tab1.col0 + ( - 62 ) ) AS col1 FROM tab1
----
-54
-54
-96
skipif mysql # not compatible
query I rowsort label-9810
SELECT - col2 + 7 / ( tab1.col0 + ( - 62 ) ) AS col1 FROM tab1
----
-54
-54
-96
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2, tab0 cor1
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9812
SELECT CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9812
SELECT CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + + 33 + + col0 + - col2 * - 90 FROM tab1 AS cor0
----
4896
5227
8753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9814
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-9814
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 * + col2 col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + 60 AS col2 FROM tab0 AS cor0
----
60
60
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col0 FROM tab0 AS cor0
----
24
24
24
query I rowsort
SELECT + - cor0.col0 * ( col1 ) * + cor0.col1 + - 66 * + cor0.col0 AS col2 FROM tab1 cor0
----
-10624
-18800
-2226
query I rowsort
SELECT DISTINCT + col2 + - col1 * col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col1 + 29 FROM tab0 AS cor0
----
115
120
126
onlyif mysql # use DIV operator for integer division
query I rowsort label-9822
SELECT ALL + col1 DIV ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9822
SELECT ALL + col1 / ( - col0 ) FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + cor0.col1 col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT col2 * 24 + + ( + col1 ) AS col1 FROM tab0 AS cor0
----
121
2059
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9825
SELECT col0 * CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9825
SELECT col0 * CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9826
SELECT ALL col0 - - col2 DIV - 90 AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-9826
SELECT ALL col0 - - col2 / - 90 AS col0 FROM tab2
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 * 65 + col0 + + col0 col0 FROM tab0
----
184518
485208
6375
query I rowsort
SELECT ALL col1 + - 80 FROM tab2 AS cor0
----
-21
-49
-63
query I rowsort
SELECT - col0 * ( cor0.col0 ) * col2 + - col1 FROM tab0 AS cor0
----
-1322
-19094
-649613
query I rowsort
SELECT DISTINCT col1 + ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT tab1.col1 + col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT col2 + col2 * - 83 AS col2 FROM tab1
----
-4428
-4674
-7872
query I rowsort
SELECT ALL 28 - - ( col1 ) FROM tab0 AS cor0
----
114
119
125
query I rowsort
SELECT 16 + cor0.col0 * col0 AS col1 FROM tab1 AS cor0
----
25
4112
6416
query I rowsort
SELECT ALL - 6 * + col1 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT DISTINCT col2 + - ( col1 ) * cor0.col2 + + col2 FROM tab2 AS cor0
----
-1482
-570
-783
query I rowsort
SELECT + - col2 + col2 * col1 AS col0 FROM tab0 AS cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + 8 col0 FROM tab1 cor0
----
-24
-512
-640
onlyif mysql # use DIV operator for integer division
query I rowsort label-9840
SELECT ALL + col1 + col0 DIV col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL + col1 + col0 / col1 FROM tab2
----
21
31
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9841
SELECT ALL col1 * CAST( NULL AS SIGNED ) + - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + - col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab2, tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 * 25 + col2 AS col0 FROM tab0
----
2307
633
876
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL + 15 FROM tab2
----
15
15
15
query I rowsort
SELECT ALL - ( + col1 ) * + col1 * 46 FROM tab0
----
-340216
-380926
-432814
query I rowsort
SELECT - cor0.col0 + - col2 + + col1 AS col0 FROM tab0 AS cor0
----
-80
29
61
query I rowsort
SELECT ALL + 64 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-25
29
40
query I rowsort
SELECT - col2 + col2 * ( + col0 ) AS col0 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT ALL + col1 + col1 DIV cor0.col1 col1 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL + col1 + col1 / cor0.col1 col1 FROM tab2 AS cor0
----
18
32
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 41 * - col0 col1 FROM tab2 AS cor0
----
287
3198
3239
query I rowsort
SELECT + col0 * + col1 + - col0 AS col1 FROM tab2
----
1264
210
4524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) - col0 col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - ( + col0 * - col2 + - tab2.col0 ) AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT 67 - col0 FROM tab1
----
-13
3
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9857
SELECT - col1 * col1 DIV + 40 FROM tab1
----
-16
-2
-4
skipif mysql # not compatible
query I rowsort label-9857
SELECT - col1 * col1 / + 40 FROM tab1
----
-16
-2
-4
query I rowsort
SELECT + ( 67 ) + + cor0.col1 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c66659eb0257ddfde7fd4119160542c9
query I rowsort
SELECT DISTINCT + col2 + col1 - 94 FROM tab0
----
25
4
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9860
SELECT ALL ( - cor0.col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9860
SELECT ALL ( - cor0.col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col0 - + col2 AS col1 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + + 23 AS col0 FROM tab1 AS cor0
----
23
query I rowsort
SELECT DISTINCT - 17 + cor0.col2 * 28 AS col2 FROM tab2 AS cor0
----
1047
711
739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col1 + + col1 + - col1 col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9865
SELECT DISTINCT - + ( - col0 ) + col1 DIV - 74 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-9865
SELECT DISTINCT - + ( - col0 ) + col1 / - 74 FROM tab0 AS cor0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9866
SELECT - 93 * - col0 + col0 DIV cor0.col1 - - col0 FROM tab2 AS cor0
----
658
7333
7430
skipif mysql # not compatible
query I rowsort label-9866
SELECT - 93 * - col0 + col0 / cor0.col1 - - col0 FROM tab2 AS cor0
----
658
7333
7430
query I rowsort
SELECT DISTINCT - col0 + col0 * 51 * - col0 AS col2 FROM tab1 AS cor0
----
-208960
-326480
-462
onlyif mysql # use DIV operator for integer division
query I rowsort label-9868
SELECT DISTINCT col1 + col0 DIV + col0 + col1 FROM tab1
----
21
27
53
skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT col1 + col0 / + col0 + col1 FROM tab1
----
21
27
53
query I rowsort
SELECT - ( - col1 ) + - 56 - 46 FROM tab0 cor0
----
-11
-16
-5
query I rowsort
SELECT + 64 FROM tab1
----
64
64
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9871
SELECT col2 DIV col1 + - col0 FROM tab2
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-9871
SELECT col2 / col1 + - col0 FROM tab2
----
-7
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 - - col2 * - col1 col1 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT + - tab1.col1 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT col2 - + tab0.col1 AS col2 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9875
SELECT - tab2.col1 + - col2 DIV + col0 FROM tab2
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-9875
SELECT - tab2.col1 + - col2 / + col0 FROM tab2
----
-17
-34
-59
query I rowsort
SELECT DISTINCT + col0 * col1 - - col0 AS col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT + col2 - tab2.col0 * ( col1 ) * col0 FROM tab2
----
-106059
-1492
-358930
query I rowsort
SELECT ALL + 15 FROM tab1
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-9879
SELECT DISTINCT col1 DIV cor0.col2 + + col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-9879
SELECT DISTINCT col1 / cor0.col2 + + col1 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-9880
SELECT DISTINCT tab0.col0 * col1 DIV - col2 FROM tab0
----
-3395
-62
-98
skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT tab0.col0 * col1 / - col2 FROM tab0
----
-3395
-62
-98
query I rowsort
SELECT DISTINCT + col1 + - 62 FROM tab0 AS cor0
----
24
29
35
query I rowsort
SELECT ALL + + col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - + cor1.col0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9884
SELECT - col1 DIV col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9884
SELECT - col1 / col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9885
SELECT - col0 + + CAST( NULL AS SIGNED ) - - col0 * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9885
SELECT - col0 + + CAST ( NULL AS INTEGER ) - - col0 * col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 + - 75 FROM tab2 AS cor0
----
-37
-48
-49
query I rowsort
SELECT ALL - + 50 + col0 * - col1 FROM tab1 AS cor0
----
-1090
-128
-690
query I rowsort
SELECT ALL 55 * - col2 FROM tab1 AS cor0
----
-2970
-3135
-5280
query I rowsort
SELECT + col1 + + 82 FROM tab0 AS cor0
----
168
173
179
query I rowsort
SELECT DISTINCT - cor0.col2 + ( + col1 ) FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9891
SELECT DISTINCT - + 85 * col2 + + col1 DIV - col1 AS col0 FROM tab0 AS cor0
----
-2806
-6971
-86
skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - + 85 * col2 + + col1 / - col1 AS col0 FROM tab0 AS cor0
----
-2806
-6971
-86
query I rowsort
SELECT DISTINCT cor0.col2 - 45 AS col2 FROM tab0 AS cor0
----
-12
-44
37
query I rowsort
SELECT ( col1 ) + col1 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9894
SELECT ALL - cor0.col0 DIV col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL - cor0.col0 / col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - + 77 * - col0 FROM tab0 AS cor0
----
1848
2695
6853
query I rowsort
SELECT + 71 + 79 FROM tab1 AS cor0
----
150
150
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT ALL + - 87 + - col0 DIV + col1 FROM tab0 AS cor0
----
-87
-87
-87
skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL + - 87 + - col0 / + col1 FROM tab0 AS cor0
----
-87
-87
-87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9899
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + + col0 * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + + col0 * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + + cor0.col0 + + col0 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9901
SELECT + - ( col0 ) DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9901
SELECT + - ( col0 ) / col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab2, tab1 cor0, tab2 AS cor1, tab1 AS cor2
----
81 values hashing to bb5bb13eab35a33bb4641905f5e7c9b6
query I rowsort
SELECT ALL + + col0 * - col0 + + 48 FROM tab2 cor0
----
-1
-6036
-6193
query I rowsort
SELECT DISTINCT - + col1 + - col0 AS col0 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 70 * - col2 - - col2 col2 FROM tab0 AS cor0
----
2343
5822
71
query I rowsort
SELECT ALL - col2 + - col1 + 12 * - col0 FROM tab1 AS cor0
----
-1069
-116
-835
query I rowsort
SELECT 58 + + col1 * - tab0.col1 FROM tab0
----
-7338
-8223
-9351
query I rowsort
SELECT col0 + - tab1.col2 * col2 AS col0 FROM tab1
----
-2913
-3185
-9136
query I rowsort
SELECT - - col0 + + col1 * + col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - 84 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT - col2 * + 67 FROM tab2 AS cor0
----
-1742
-1809
-2546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 * tab0.col1 col2 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT cor0.col1 + cor0.col1 FROM tab1, tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col0 FROM tab0 AS cor0
----
97
97
97
query I rowsort
SELECT + tab0.col2 + - tab0.col0 * 51 AS col1 FROM tab0
----
-1191
-1784
-4457
query I rowsort
SELECT DISTINCT cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3
64
80
query I rowsort
SELECT - ( col1 ) * col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT - col1 + + col0 * - col1 FROM tab0 cor0
----
-2150
-3492
-8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9919
SELECT + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9919
SELECT + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab1, tab0 AS cor1
----
972 values hashing to 67c5300bc5cba0be4f54a444dc6f05b9
query I rowsort
SELECT - 39 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a08a82dc9276c0173448e9a1c89dba93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9922
SELECT + + 61 DIV - 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-9922
SELECT + + 61 / - 26 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT DISTINCT 97 FROM tab0, tab1 AS cor0, tab0 cor1
----
97
query I rowsort
SELECT - cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9925
SELECT + cor0.col2 DIV 47 AS col0 FROM tab1 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-9925
SELECT + cor0.col2 / 47 AS col0 FROM tab1 AS cor0
----
1
1
2
query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to 39615739daa2056ffb6e430a8ff0bfc8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( - ( - col0 ) + tab0.col0 ) col0 FROM tab0
----
105
267
72
query I rowsort
SELECT + col1 + 83 * cor0.col1 * - col2 AS col2 FROM tab1 cor0
----
-103571
-116506
-47300
query I rowsort
SELECT + col1 * cor0.col1 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT 12 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT - 5 * - col0 FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT ALL - cor1.col0 + + 53 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 047b101b11a58a66362f598675c7e510
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9935
SELECT ALL + CAST( NULL AS DECIMAL ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9935
SELECT ALL + CAST ( NULL AS REAL ) + cor0.col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + + col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col0 col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT 20 + + 7 FROM tab1 AS cor0
----
27
query I rowsort
SELECT col2 * - col2 - 90 FROM tab1 cor0
----
-3006
-3339
-9306
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col1 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT DISTINCT + 21 + tab2.col0 FROM tab2
----
100
28
99
query I rowsort
SELECT - col1 * + col0 + + ( + col2 ) AS col1 FROM tab0 cor0
----
-2031
-3394
-8017
query I rowsort
SELECT 15 * col2 FROM tab2 AS cor0
----
390
405
570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * col0 + col0 col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - cor0.col0 * + 35 FROM tab1 AS cor0
----
-105
-2240
-2800
query I rowsort
SELECT DISTINCT - col1 + 62 FROM tab1 AS cor0
----
36
49
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9948
SELECT DISTINCT cor0.col0 DIV col1 AS col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT cor0.col0 / col1 AS col1 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT DISTINCT - col0 - + 91 * col2 AS col1 FROM tab2 AS cor0
----
-2444
-2464
-3537
query I rowsort
SELECT ALL + col1 + 47 AS col1 FROM tab2 AS cor0
----
106
64
78
query I rowsort
SELECT DISTINCT - 91 FROM tab0
----
-91
query I rowsort
SELECT DISTINCT 70 FROM tab2
----
70
query I rowsort
SELECT - col2 * - 59 - col0 AS col1 FROM tab1 cor0
----
3183
3299
5584
query I rowsort
SELECT DISTINCT + - ( + col0 ) + col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + 1 * - col2 + col1 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9956
SELECT ALL ( + col2 ) - col0 DIV col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL ( + col2 ) - col0 / col1 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 * - col1 - col2 FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT ALL - + 9 - + col1 * cor0.col0 FROM tab0 AS cor0
----
-2073
-3404
-8108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9959
SELECT DISTINCT - + CAST( + col1 AS SIGNED ) * - col0 FROM tab0 cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-9959
SELECT DISTINCT - + CAST ( + col1 AS INTEGER ) * - col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col1 * - 64 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT - + 1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + ( - col0 ) * col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - cor0.col0 + + ( - col0 ) * ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9964
SELECT - col2 * - 70 - col2 * CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9964
SELECT - col2 * - 70 - col2 * CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 283f1c907a0999dbd972d3bd45746c06
onlyif mysql # use DIV operator for integer division
query I rowsort label-9966
SELECT ALL - 16 DIV - cor0.col1 - + col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - 16 / - cor0.col1 - + col0 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * - col1 + - 46 col0 FROM tab0 AS cor0
----
6490
6870
7326
query I rowsort
SELECT ALL 75 * - col2 AS col1 FROM tab0 AS cor0
----
-2475
-6150
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + col2 col1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9970
SELECT - + col2 * + col2 - CAST( 12 * + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-13
-1485
-7708
skipif mysql # not compatible
query I rowsort label-9970
SELECT - + col2 * + col2 - CAST ( 12 * + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-13
-1485
-7708
query I rowsort
SELECT ALL + ( col1 ) * + 30 + col2 FROM tab1 AS cor0
----
357
486
834
query I rowsort
SELECT DISTINCT + 65 FROM tab1 AS cor0
----
65
query I rowsort
SELECT ALL + - col0 * col0 + - col2 + col0 FROM tab1 AS cor0
----
-4089
-60
-6416
query I rowsort
SELECT ALL col2 + col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT 39 * - col2 - col1 FROM tab0 AS cor0
----
-136
-1373
-3289
query I rowsort
SELECT - ( - col0 ) * + 0 + + col0 AS col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + + 45 AS col1 FROM tab0 cor0
----
45
45
45
query I rowsort
SELECT ( - col1 * col1 ) AS col2 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + 45 FROM tab1
----
45
45
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 50 ) * col1 col0 FROM tab1
----
1300
500
650
query I rowsort
SELECT DISTINCT ( col1 ) - + tab0.col0 FROM tab0
----
2
62
query I rowsort
SELECT - 62 * col1 AS col0 FROM tab1
----
-1612
-620
-806
query I rowsort
SELECT ALL - - col0 * - ( + 44 ) - col1 FROM tab0 AS cor0
----
-1142
-1637
-4007
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9984
SELECT DISTINCT - col1 - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT - col1 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col0 * col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9986
SELECT DISTINCT - col0 DIV col2 + - col2 DIV cor0.col0 FROM tab0 AS cor0
----
-1
-35
skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT - col0 / col2 + - col2 / cor0.col0 FROM tab0 AS cor0
----
-1
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9987
SELECT DISTINCT col2 DIV 29 FROM tab1 AS cor0
----
1
3
skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT col2 / 29 FROM tab1 AS cor0
----
1
3
query I rowsort
SELECT col1 + - col2 * - col0 FROM tab0 cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT DISTINCT - 7 * col2 DIV - col0 AS col1 FROM tab1
----
126
6
8
skipif mysql # not compatible
query I rowsort label-9989
SELECT DISTINCT - 7 * col2 / - col0 AS col1 FROM tab1
----
126
6
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT - + col2 * - col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT + col0 + - 49 * col1 FROM tab0 AS cor0
----
-4190
-4370
-4718
query I rowsort
SELECT ALL + + col2 * + 91 * 56 AS col0 FROM tab2 AS cor0
----
132496
137592
193648
query I rowsort
SELECT ALL col1 * + 67 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT DISTINCT + 4 AS col2 FROM tab0 AS cor0
----
4
query I rowsort
SELECT col1 * col2 * + cor0.col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT cor1.col0 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL col0 * 79 AS col2 FROM tab1
----
237
5056
6320
query I rowsort
SELECT + + col2 * - 57 FROM tab1 cor0
----
-3078
-3249
-5472