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 DISTINCT + col1 * - col1 * col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT - + ( + 92 ) - col2 FROM tab1 AS cor0
----
-146
-149
-188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2
SELECT + - 18 - - col2 * col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2
SELECT + - 18 - - col2 * col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 90 - col0 FROM tab1 AS cor0
----
10
26
87
query I rowsort
SELECT + col2 + ( col2 ) * - ( col1 ) FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT col0 * col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-6
SELECT ALL - col0 DIV col0 AS col1 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6
SELECT ALL - col0 / col0 AS col1 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab2, tab0 AS cor0
----
53
query I rowsort
SELECT - col2 * - col1 + col2 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-9
SELECT + col2 - col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-9
SELECT + col2 - col0 / - col0 AS col0 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT + col2 + - col0 + col2 FROM tab1 AS cor0
----
105
112
50
query I rowsort
SELECT DISTINCT + col0 * - col0 + - 98 * + col1 FROM tab2
----
-11866
-3087
-7907
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * col1 * + tab1.col1 col2 FROM tab1
----
12675
50700
7500
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL + - ( + col0 ) * - cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL - col1 + - tab1.col0 / - col1 + tab1.col1 AS col0 FROM tab1 WHERE NOT - col2 BETWEEN ( NULL ) AND + col2
----
query III rowsort
SELECT * FROM tab2 WHERE col2 * col0 BETWEEN NULL AND col2
----
query I rowsort
SELECT col1 + tab0.col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT col0 + col0 * + col2 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - tab2.col0 AS col1 FROM tab2 WHERE NOT - col1 * col2 IN ( + col1 * col2 )
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 - tab2.col0 FROM tab2
----
-19
-62
24
query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - col0 BETWEEN ( NULL ) AND col0
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < col1
----
query I rowsort
SELECT col2 FROM tab0 WHERE NOT col1 * + col1 IN ( + col0 * + col0 )
----
1
33
82
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + col0 )
----
query III rowsort
SELECT * FROM tab0 WHERE col0 < ( NULL )
----
query I rowsort
SELECT ALL col0 * col0 - col0 AS col0 FROM tab2
----
42
6006
6162
query I rowsort
SELECT ALL tab2.col2 - + tab2.col1 FROM tab2
----
-33
-4
21
query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 = + col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + col0 * col2 * col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT - cor0.col2 + + col0 * 45 AS col0 FROM tab1 AS cor0
----
2823
3504
81
query I rowsort
SELECT 8 AS col1 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col2 * col1 * - col1 + + col2 * col1 * col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - tab1.col0 * col0 AS col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col1 - + col0 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL col0 * col0 - - col2 AS col1 FROM tab1
----
4153
63
6496
query I rowsort
SELECT DISTINCT - col1 - col1 * - col2 AS col0 FROM tab0
----
0
2752
7371
query I rowsort
SELECT col0 + col2 * + col0 AS col1 FROM tab1
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-40
SELECT - col2 DIV + col1 AS col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-40
SELECT - col2 / + col1 AS col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT ALL + col1 + col0 + cor0.col1 FROM tab2 AS cor0 WHERE NULL IN ( col2 * - col1 + + col0 )
----
query I rowsort
SELECT DISTINCT - col2 * col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - col0 + + tab2.col1 FROM tab2
----
-19
-62
24
query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = - col0 * - col1
----
query I rowsort
SELECT DISTINCT col0 * col2 + + tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT col0 + tab1.col1 AS col0 FROM tab1
----
29
74
93
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT IN ( - tab2.col0 * col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-48
SELECT + col2 + + 32 DIV - col0 FROM tab0
----
1
32
82
skipif mysql # not compatible
query I rowsort label-48
SELECT + col2 + + 32 / - col0 FROM tab0
----
1
32
82
query I rowsort
SELECT ALL - - 74 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT - tab2.col1 + - 96 FROM tab2
----
-113
-127
-155
query I rowsort
SELECT - col0 * 30 * col0 + cor0.col2 * - ( col1 ) * col2 + col0 * - 59 FROM tab2 AS cor0
----
-216439
-227006
-24482
query I rowsort
SELECT - col1 * + cor0.col2 + - cor0.col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + col0 * - ( 38 ) FROM tab1
----
-114
-2432
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-54
SELECT ALL + cor0.col0 DIV + col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-54
SELECT ALL + cor0.col0 / + col2 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - 3 FROM tab2, tab0 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
query I rowsort
SELECT col1 + 26 * + col0 FROM tab0
----
1007
2405
710
query I rowsort
SELECT DISTINCT + ( 43 ) * col0 FROM tab2
----
301
3354
3397
query I rowsort
SELECT ALL - 61 * col2 + col2 FROM tab1 AS cor0
----
-3240
-3420
-5760
query I rowsort
SELECT ALL 10 FROM tab0, tab2 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT DISTINCT + col0 * - col1 + + col1 - + 40 * col2 * col0 AS col2 FROM tab0 AS cor0
----
-299928
-33658
-4698
query I rowsort
SELECT DISTINCT + col0 * 95 * tab0.col2 + col1 FROM tab0
----
3422
693401
75326
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-62
SELECT ALL + CAST( cor0.col1 AS SIGNED ) + + col1 FROM tab1 cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-62
SELECT ALL + CAST ( cor0.col1 AS INTEGER ) + + col1 FROM tab1 cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 + - col2 col1 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-64
SELECT DISTINCT ( + col0 ) DIV col1 + col0 col1 FROM tab2 AS cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-64
SELECT DISTINCT ( + col0 ) / col1 + col0 col1 FROM tab2 AS cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 col0 FROM tab0, tab0 AS cor0
----
-49
query I rowsort
SELECT ALL 25 + col1 FROM tab2
----
42
56
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT ALL + ( - col0 ) + col0 * + 53 FROM tab0
----
1248
1820
4628
query I rowsort
SELECT DISTINCT - 0 FROM tab1 cor0
----
0
query I rowsort
SELECT 2 * col0 FROM tab0 cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-72
SELECT + 56 DIV col1 - - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
-59
-76
skipif mysql # not compatible
query I rowsort label-72
SELECT + 56 / col1 - - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
-59
-76
query I rowsort
SELECT ALL - - col0 * + col2 * + col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT col2 - col0 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col0 + col0 * + col1 FROM tab1 cor0
----
576
75
960
query I rowsort
SELECT ALL - 16 + col1 AS col2 FROM tab0 AS cor0
----
70
75
81
query I rowsort
SELECT ALL - + 41 FROM tab1 AS cor0
----
-41
-41
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * + col2 col1 FROM tab1 AS cor0
----
1404
1482
2496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-79
SELECT - + col2 * CAST( col1 AS SIGNED ) + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
skipif mysql # not compatible
query I rowsort label-79
SELECT - + col2 * CAST ( col1 AS INTEGER ) + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + + col2 - col2 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT DISTINCT - col0 + ( col2 ) * col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT - col0 * + 41 + 37 AS col2 FROM tab2 AS cor0
----
-250
-3161
-3202
query I rowsort
SELECT DISTINCT + + col2 - + col2 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - col1 * col2 + - col1 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT - + col2 + + cor0.col1 * col0 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL - col2 + - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT - col1 + col0 * col1 * col2 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT ALL col0 * 28 * col0 + col1 * - col2 * col2 FROM tab1 AS cor0
----
-75564
59392
82198
query I rowsort
SELECT - - col2 + + cor0.col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL + col2 + - col0 + col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT + - cor0.col1 + col2 + + col2 AS col1 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT 75 DIV col0 AS col2 FROM tab0 cor0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-93
SELECT 75 / col0 AS col2 FROM tab0 cor0
----
0
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-94
SELECT + - col2 + - col2 DIV col2 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-94
SELECT + - col2 + - col2 / col2 FROM tab1 AS cor0
----
-55
-58
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-95
SELECT + + col1 DIV + col2 AS col2 FROM tab0 cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-95
SELECT + + col1 / + col2 AS col2 FROM tab0 cor0
----
1
2
97
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0, tab2 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 6a63085e8cab6f97591fd0a6b6ffff07
query I rowsort
SELECT col2 * - 40 AS col1 FROM tab1
----
-2160
-2280
-3840
query I rowsort
SELECT DISTINCT - tab2.col0 + + col2 * 19 FROM tab2
----
416
506
643
query I rowsort
SELECT ALL col0 * ( col1 ) * - col1 AS col2 FROM tab1
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col1 FROM tab0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * col0 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ( + 80 ) FROM tab1
----
80
80
80
query I rowsort
SELECT 62 + col2 FROM tab2
----
100
88
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-104
SELECT + CAST( 4 AS SIGNED ) + - tab1.col0 DIV - col0 FROM tab1
----
5
5
5
skipif mysql # not compatible
query I rowsort label-104
SELECT + CAST ( 4 AS INTEGER ) + - tab1.col0 / - col0 FROM tab1
----
5
5
5
query I rowsort
SELECT ALL + 13 AS col1 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT ALL 92 * col1 * col0 AS col1 FROM tab0
----
189888
312340
745108
query I rowsort
SELECT ALL - col1 + cor0.col0 * - col2 FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT ALL ( + col1 ) + - tab0.col1 AS col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT col2 + tab1.col2 - + col1 FROM tab1
----
104
179
82
query I rowsort
SELECT ALL + col1 + + col1 * - ( 82 ) AS col2 FROM tab2
----
-1377
-2511
-4779
query I rowsort
SELECT - col1 + - col2 * - col2 * + col0 FROM tab1
----
207926
737267
8722
query I rowsort
SELECT - 41 + col2 AS col2 FROM tab2 AS cor0
----
-14
-15
-3
query I rowsort
SELECT ALL + + col1 - + cor0.col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - 30 + col1 FROM tab2
----
-13
1
29
query I rowsort
SELECT ALL 8 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 33069adc3c1142d31511ec88fcfa40af
query I rowsort
SELECT DISTINCT 83 * - cor1.col1 AS col0 FROM tab2, tab0 cor0, tab1 AS cor1
----
-1079
-2158
-830
query I rowsort
SELECT ALL - col0 * col2 * col1 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT - col2 * ( 48 ) AS col0 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT ALL + - col0 + - 4 FROM tab1 AS cor0
----
-68
-7
-84
query I rowsort
SELECT + - col1 + ( - col2 ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - col0 - cor0.col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT col0 + 59 FROM tab0 AS cor0
----
148
83
94
query I rowsort
SELECT DISTINCT + + col1 - 54 FROM tab0 AS cor0
----
32
37
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * + ( col1 ) + col2 col1 FROM tab2 cor0
----
11020
25974
90532
query I rowsort
SELECT col0 + - col2 AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL - + col0 * 3 + col2 AS col0 FROM tab0 AS cor0
----
-104
-185
-39
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + - col1 * CAST ( 45 AS REAL ) FROM tab0 AS cor0
----
-3870
-4095
-4365
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-129
SELECT DISTINCT - + col0 * - CAST( NULL AS SIGNED ) + - 92 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-129
SELECT DISTINCT - + col0 * - CAST ( NULL AS INTEGER ) + - 92 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL cor0.col2 + + 29 FROM tab0 AS cor0
----
111
30
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - col2 col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT - col2 * 56 + col0 FROM tab0 AS cor0
----
-1824
-21
-4503
query I rowsort
SELECT - tab0.col1 * cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 5e05f50cc51e966d7e055a113d30a5e0
query I rowsort
SELECT + col0 * - col0 AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT + tab2.col2 * + col2 AS col1 FROM tab2
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-136
SELECT + cor0.col0 - - col2 DIV - cor0.col2 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-136
SELECT + cor0.col0 - - col2 / - cor0.col2 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * + col1 col0 FROM tab2 cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-138
SELECT + cor0.col2 - + col1 * + col0 DIV + col0 AS col2 FROM tab2 cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-138
SELECT + cor0.col2 - + col1 * + col0 / + col0 AS col2 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT - + cor0.col1 + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col1 + col1 + - tab2.col0 FROM tab2
----
-45
40
55
query I rowsort
SELECT cor0.col1 * - col1 * col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - col2 + col2 * - col2 * + cor0.col1 FROM tab2 AS cor0
----
-22626
-24586
-39910
query I rowsort
SELECT cor0.col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - + cor0.col2 - - col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT + - 35 AS col2 FROM tab1 AS cor0
----
-35
-35
-35
query I rowsort
SELECT - col0 + + col1 * + col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT - 89 - col0 AS col0 FROM tab0 AS cor0
----
-113
-124
-178
query I rowsort
SELECT ALL + ( cor0.col1 ) * col2 + col1 FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-149
SELECT 95 DIV + col0 FROM tab1 AS cor0
----
1
1
31
skipif mysql # not compatible
query I rowsort label-149
SELECT 95 / + col0 FROM tab1 AS cor0
----
1
1
31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * cor0.col2 col2 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-151
SELECT DISTINCT - col2 DIV col1 col2 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-151
SELECT DISTINCT - col2 / col1 col2 FROM tab0
----
0
query I rowsort
SELECT + + 15 AS col2 FROM tab2 AS cor0
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-153
SELECT + - col0 + - col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-153
SELECT + - col0 + - col2 / + col1 AS col2 FROM tab1 AS cor0
----
-5
-69
-87
query I rowsort
SELECT + col2 * col0 - + col2 AS col0 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT - 51 AS col1 FROM tab2
----
-51
-51
-51
query I rowsort
SELECT + 99 + col2 FROM tab0
----
100
132
181
query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * col1 col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col1 * - col1 * ( - col2 ) AS col0 FROM tab0 cor0
----
-244068
-679042
-9409
query I rowsort
SELECT - 20 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT DISTINCT + col0 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - - col0 * - ( 96 ) * col0 FROM tab1 AS cor0
----
-393216
-614400
-864
query I rowsort
SELECT col1 * col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + col2 * col1 + + col1 * col1 * col1 FROM tab1 AS cor0
----
1570
18980
3445
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-165
SELECT DISTINCT - col2 * CAST( + col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
skipif mysql # not compatible
query I rowsort label-165
SELECT DISTINCT - col2 * CAST ( + col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-166
SELECT ALL - col2 + + col1 DIV col0 FROM tab0 AS cor0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-166
SELECT ALL - col2 + + col1 / col0 FROM tab0 AS cor0
----
-30
-81
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 * col2 + + col1 * col0 col0 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT + - col1 + - 29 AS col2 FROM tab0 AS cor0
----
-115
-120
-126
query I rowsort
SELECT DISTINCT + - col0 - col0 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT ALL col2 * + cor0.col1 + - col2 * + col2 AS col2 FROM tab1 cor0
----
-1512
-2679
-7968
onlyif mysql # use DIV operator for integer division
query I rowsort label-171
SELECT DISTINCT - col0 + cor0.col1 DIV col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5
skipif mysql # not compatible
query I rowsort label-171
SELECT DISTINCT - col0 + cor0.col1 / col0 AS col1 FROM tab1 AS cor0
----
-64
-80
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-172
SELECT - col2 DIV + ( + cor0.col0 ) FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-172
SELECT - col2 / + ( + cor0.col0 ) FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT DISTINCT + - col1 * - col2 + - cor0.col0 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + - col1 * col2 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-175
SELECT DISTINCT - col2 DIV - ( col0 ) + col0 FROM tab0 AS cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-175
SELECT DISTINCT - col2 / - ( col0 ) + col0 FROM tab0 AS cor0
----
25
35
89
query I rowsort
SELECT ALL + col2 * cor0.col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-177
SELECT DISTINCT col2 + - col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-177
SELECT DISTINCT col2 + - col2 / + col2 AS col1 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT ALL + col1 * - col2 + col0 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-1395
3526
5152
query I rowsort
SELECT + col1 * 27 * + col2 + col2 AS col0 FROM tab2 cor0
----
17480
22626
41444
query I rowsort
SELECT - + col0 * + col1 - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
onlyif mysql # use DIV operator for integer division
query I rowsort label-181
SELECT col1 DIV + col2 + - col1 FROM tab0 AS cor0
----
-84
-90
0
skipif mysql # not compatible
query I rowsort label-181
SELECT col1 / + col2 + - col1 FROM tab0 AS cor0
----
-84
-90
0
query I rowsort
SELECT + col2 + + col1 * col2 + + col2 AS col0 FROM tab2 cor0
----
1586
722
891
query I rowsort
SELECT ALL + 77 * - col1 AS col0 FROM tab0 AS cor0
----
-6622
-7007
-7469
query I rowsort
SELECT + 59 + - col2 FROM tab2 AS cor0
----
21
32
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-185
SELECT cor0.col1 * col2 / col0 + + CAST( NULL AS SIGNED ) * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-185
SELECT cor0.col1 * col2 / col0 + + CAST ( NULL AS INTEGER ) * - col0 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-187
SELECT col0 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-187
SELECT col0 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - cor0.col2 + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - - col2 + + col0 + + col1 AS col0 FROM tab2 cor0
----
134
163
65
query I rowsort
SELECT DISTINCT + + 15 * col1 AS col1 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT + 28 + 21 * col2 FROM tab0 AS cor0
----
1750
49
721
query I rowsort
SELECT ALL - 7 FROM tab0 cor0
----
-7
-7
-7
query I rowsort
SELECT ALL + + col0 * col2 * - col1 + + col0 AS col2 FROM tab0 AS cor0
----
-3360
-664029
-68088
query I rowsort
SELECT DISTINCT col2 * + col1 + + col1 + + 40 FROM tab0
----
234
2964
7593
onlyif mysql # use DIV operator for integer division
query I rowsort label-195
SELECT - col2 DIV col0 + + col2 - - tab0.col2 AS col1 FROM tab0
----
164
2
65
skipif mysql # not compatible
query I rowsort label-195
SELECT - col2 / col0 + + col2 - - tab0.col2 AS col1 FROM tab0
----
164
2
65
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col2 AS REAL ) + tab2.col1 AS col2 FROM tab2
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-197
SELECT + CAST( NULL AS DECIMAL ) * 70 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-197
SELECT + CAST ( NULL AS REAL ) * 70 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * col2 + cor0.col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - + col0 * cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - 23 * col1 FROM tab1 AS cor0
----
-230
-299
-598
query I rowsort
SELECT ALL - + 21 * col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-13566
-17577
-32214
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-202
SELECT - col2 / - cor0.col0 + + ( - cor0.col2 ) * + col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-202
SELECT - col2 / - cor0.col0 + + ( - cor0.col2 ) * + col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 95 * + col2 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT - col0 + cor0.col0 + - 20 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT ALL - + 67 + col1 FROM tab2 cor0
----
-36
-50
-8
query I rowsort
SELECT DISTINCT - - ( - col2 ) + col0 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - 48 AS col0 FROM tab2 AS cor0
----
-48
-48
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-208
SELECT - - col2 * col0 + CAST( NULL AS SIGNED ) * - ( + col1 + col2 * + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-208
SELECT - - col2 * col0 + CAST ( NULL AS INTEGER ) * - ( + col1 + col2 * + col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 64 * col1 FROM tab2 AS cor0
----
-1088
-1984
-3776
query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab2, tab0 AS cor0
----
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-211
SELECT - col0 * cor0.col0 + + CAST( NULL AS SIGNED ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-211
SELECT - col0 * cor0.col0 + + CAST ( NULL AS INTEGER ) + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 14 AS col2 FROM tab1
----
14
14
14
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col2 * tab2.col1 col0 FROM tab2
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-214
SELECT ALL 26 * col1 DIV - tab1.col1 AS col2 FROM tab1
----
-26
-26
-26
skipif mysql # not compatible
query I rowsort label-214
SELECT ALL 26 * col1 / - tab1.col1 AS col2 FROM tab1
----
-26
-26
-26
query I rowsort
SELECT ALL - 89 * - col0 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT ALL - + cor0.col2 * + col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ALL 57 + col0 + + ( - col0 ) FROM tab0 cor0
----
57
57
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * + col1 - col1 col0 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT + ( ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 72 + col1 * col1 col2 FROM tab2
----
-1271
-767
-935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-221
SELECT 0 * - col2 + - col2 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-221
SELECT 0 * - col2 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 45 + cor0.col1 * - col1 FROM tab1 cor0
----
-124
-55
-631
query I rowsort
SELECT ALL + 81 + - ( + col2 ) AS col1 FROM tab1
----
-15
24
27
query I rowsort
SELECT ALL ( + col1 ) + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + ( col1 ) + - col0 AS col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-226
SELECT ALL cor0.col1 + + 20 + col1 DIV 11 FROM tab0 AS cor0
----
113
119
125
skipif mysql # not compatible
query I rowsort label-226
SELECT ALL cor0.col1 + + 20 + col1 / 11 FROM tab0 AS cor0
----
113
119
125
query I rowsort
SELECT + 65 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT - + ( + 53 ) FROM tab0 AS cor0
----
-53
-53
-53
query I rowsort
SELECT ALL - - ( col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 * ( - col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + 57 + col2 FROM tab0 AS cor0
----
-24
-56
25
query I rowsort
SELECT DISTINCT 97 + 83 FROM tab1 AS cor0
----
180
query I rowsort
SELECT + + col1 * - col2 - + col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
17
31
59
query I rowsort
SELECT ALL - + 68 * 67 + - col0 FROM tab0 AS cor0
----
-4580
-4591
-4645
query I rowsort
SELECT - col2 + + 98 * col2 AS col2 FROM tab2 AS cor0
----
2522
2619
3686
query I rowsort
SELECT DISTINCT + + col0 + 15 + col0 * - col2 FROM tab0 cor0
----
-7194
-753
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-238
SELECT col1 + + col1 DIV - col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-238
SELECT col1 + + col1 / - col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + - cor0.col1 + + col0 * col0 * + col0 AS col0 FROM tab1 AS cor0
----
1
262134
511987
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-241
SELECT + col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-241
SELECT + col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 - - col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT + ( - col1 ) * col0 * col2 + col2 AS col1 FROM tab0 cor0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 51 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752
query I rowsort
SELECT DISTINCT - 81 + - col2 - - col1 AS col0 FROM tab0 AS cor0
----
-28
-72
15
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - - 46 * - col0 AS col2 FROM tab2 AS cor0
----
-322
-3588
-3634
query I rowsort
SELECT DISTINCT - 75 * cor0.col2 * - col0 FROM tab2 AS cor0
----
14175
152100
225150
query I rowsort
SELECT ALL - col2 + - col2 AS col1 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT - ( cor0.col2 + 24 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 2409992d2071f62a4355c85817771062
query I rowsort
SELECT DISTINCT 23 + + col0 * + col2 FROM tab1
----
185
3671
7703
query I rowsort
SELECT + col1 * col0 - + col1 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-254
SELECT - col0 DIV + col1 + 17 FROM tab2 AS cor0
----
13
16
17
skipif mysql # not compatible
query I rowsort label-254
SELECT - col0 / + col1 + 17 FROM tab2 AS cor0
----
13
16
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 + + tab2.col1 col0 FROM tab2, tab1, tab2 AS cor0
----
108
122
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-256
SELECT ALL + 38 DIV col0 + 93 AS col2 FROM tab1
----
105
93
93
skipif mysql # not compatible
query I rowsort label-256
SELECT ALL + 38 / col0 + 93 AS col2 FROM tab1
----
105
93
93
query I rowsort
SELECT - col1 + tab1.col1 + + tab1.col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL cor0.col0 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT DISTINCT + + col2 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + cor0.col0 * col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + 94 FROM tab2
----
94
query I rowsort
SELECT + col1 * 4 * - 6 FROM tab2
----
-1416
-408
-744
query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab1
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-264
SELECT col1 DIV 3 FROM tab0
----
28
30
32
skipif mysql # not compatible
query I rowsort label-264
SELECT col1 / 3 FROM tab0
----
28
30
32
query I rowsort
SELECT DISTINCT - col2 * + col2 * - col2 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT - col2 * cor0.col1 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT tab1.col2 * + col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL - 26 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
query I rowsort
SELECT ALL + ( + tab1.col0 ) AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - 57 AS col2 FROM tab2
----
-57
query I rowsort
SELECT ALL cor0.col0 * 16 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 99e649ce62cd6d43c9819f506dba3c86
query I rowsort
SELECT cor0.col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-274
SELECT DISTINCT - col2 * col0 - col1 DIV + col2 FROM tab0 AS cor0
----
-132
-7299
-794
skipif mysql # not compatible
query I rowsort label-274
SELECT DISTINCT - col2 * col0 - col1 / + col2 FROM tab0 AS cor0
----
-132
-7299
-794
query I rowsort
SELECT 10 + + cor0.col1 FROM tab1 AS cor0
----
20
23
36
query I rowsort
SELECT ALL - 13 AS col1 FROM tab0
----
-13
-13
-13
query I rowsort
SELECT ALL + ( - col2 ) FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-278
SELECT + 1 DIV - col0 col0 FROM tab2 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-278
SELECT + 1 / - col0 col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 10 * + cor0.col1 * ( - col0 ) FROM tab1 AS cor0
----
-10400
-6400
-780
query I rowsort
SELECT - ( col1 ) + - col2 * col2 * col2 FROM tab2
----
-17635
-19714
-54889
query I rowsort
SELECT 70 AS col2 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT + - cor0.col2 + col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + 90 + col1 FROM tab1 AS cor0
----
-64
-77
-80
query I rowsort
SELECT DISTINCT + col0 * 48 AS col0 FROM tab2
----
336
3744
3792
query I rowsort
SELECT ALL + col1 * 98 AS col2 FROM tab0
----
8428
8918
9506
query I rowsort
SELECT - col1 * - col0 + col0 - col1 FROM tab2
----
1405
193
4621
query I rowsort
SELECT ALL - col0 * - 50 * - col0 + col1 * - col0 AS col1 FROM tab0
----
-30864
-404149
-64645
query I rowsort
SELECT - - 94 * 55 AS col0 FROM tab0 AS cor0
----
5170
5170
5170
onlyif mysql # use DIV operator for integer division
query I rowsort label-289
SELECT col2 DIV cor0.col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-289
SELECT col2 / cor0.col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT - ( + col2 ) + - col0 * + col1 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL + cor0.col0 + col0 + - col0 * ( - col0 ) FROM tab2 AS cor0
----
6240
63
6399
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 49 * col1 + col0 col1 FROM tab1 AS cor0
----
-1271
-426
-557
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + cor0.col2 ) + cor0.col2 col0 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col0 + - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + - col2 * col2 FROM tab0 cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - 63 + + 74 * col0 * cor0.col2 FROM tab2 AS cor0
----
13923
150009
222085
query I rowsort
SELECT DISTINCT - 62 + - cor0.col0 * + col2 FROM tab1 AS cor0
----
-224
-3710
-7742
query I rowsort
SELECT + + 30 AS col1 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT + - cor0.col2 * + 7 + + col0 * col2 FROM tab0 AS cor0
----
28
561
6724
query I rowsort
SELECT DISTINCT + col1 * - 15 AS col1 FROM tab0 AS cor0
----
-1290
-1365
-1455
query I rowsort
SELECT DISTINCT ( col0 ) * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 35 AS col2 FROM tab2 AS cor0
----
-35
-35
-35
query I rowsort
SELECT - col1 * + ( + col2 ) * - 26 + + 50 AS col0 FROM tab1 cor0
----
14870
32498
36554
query I rowsort
SELECT ALL 4 AS col1 FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT ALL col1 - tab0.col0 AS col2 FROM tab0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-307
SELECT CAST( NULL AS DECIMAL ) - + 15 * - tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-307
SELECT CAST ( NULL AS REAL ) - + 15 * - tab1.col2 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + col1 + - col0 * + col0 FROM tab2 cor0
----
-18
-6025
-6224
query I rowsort
SELECT ( + col2 ) * ( + 25 ) * + col2 AS col2 FROM tab0 AS cor0
----
168100
25
27225
query I rowsort
SELECT - col0 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT - 57 + col2 FROM tab1 AS cor0
----
-3
0
39
query I rowsort
SELECT ALL col0 * col1 + cor0.col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT ALL col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col0 * ( col2 ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + - 24 AS col1 FROM tab1, tab2 cor0
----
-24
query I rowsort
SELECT col1 - - col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT - 24 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT DISTINCT - + col0 + + col0 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT + + col1 * 7 FROM tab0 AS cor0
----
602
637
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-321
SELECT DISTINCT - - col1 + - cor0.col1 DIV cor0.col0 AS col0 FROM tab1 AS cor0
----
10
13
18
skipif mysql # not compatible
query I rowsort label-321
SELECT DISTINCT - - col1 + - cor0.col1 / cor0.col0 AS col0 FROM tab1 AS cor0
----
10
13
18
query I rowsort
SELECT - col1 - + col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL cor0.col2 + 73 FROM tab2 AS cor0
----
100
111
99
query I rowsort
SELECT DISTINCT - col0 - + cor0.col1 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-3559
-368
-968
query I rowsort
SELECT col0 * - 64 + col1 FROM tab2 cor0
----
-417
-4933
-5039
query I rowsort
SELECT ALL + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + col1 + - cor0.col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT ALL - + col1 * + ( 24 ) * col0 AS col2 FROM tab2 AS cor0
----
-110448
-32232
-5208
query I rowsort
SELECT DISTINCT - col0 + + col2 * col2 + - col1 AS col1 FROM tab1
----
2887
3175
9123
query I rowsort
SELECT DISTINCT - cor0.col1 - - cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT - + col0 * cor0.col0 * - col0 FROM tab1 cor0
----
262144
27
512000
query I rowsort
SELECT col0 - - col2 * - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT col0 * ( + col2 * col1 ) FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-334
SELECT - ( col1 ) + tab0.col1 DIV col0 FROM tab0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-334
SELECT - ( col1 ) + tab0.col1 / col0 FROM tab0
----
-83
-90
-95
onlyif mysql # use DIV operator for integer division
query I rowsort label-335
SELECT col0 + - tab1.col0 DIV + col2 col2 FROM tab1
----
3
63
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-335
SELECT col0 + - tab1.col0 / + col2 col2 FROM tab1
----
3
63
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-336
SELECT col0 / - col1 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-336
SELECT col0 / - col1 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 - - tab2.col2 * col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT - - col2 * + 46 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT ALL - - col2 + 17 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT DISTINCT - col0 * - ( - col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL - col0 * + col2 - + col2 FROM tab1
----
-216
-3705
-7776
query I rowsort
SELECT ALL + + 54 FROM tab2 AS cor0
----
54
54
54
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL = NULL
----
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-344
SELECT - col0 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-344
SELECT - col0 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 * cor0.col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-346
SELECT - col0 * - col0 DIV - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-346
SELECT - col0 * - col0 / - cor0.col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col0 + col0 * + 61 AS col0 FROM tab1 AS cor0
----
180
3840
4800
query I rowsort
SELECT ALL 53 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT DISTINCT + + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + + 56 AS col0 FROM tab0 AS cor0
----
56
56
56
query I rowsort
SELECT - 45 - col0 AS col0 FROM tab2
----
-123
-124
-52
query I rowsort
SELECT - cor0.col0 - - 23 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 36bd10e36ca4dbc96762458ab52e59ca
query I rowsort
SELECT DISTINCT 39 AS col1 FROM tab1
----
39
query I rowsort
SELECT 68 AS col2 FROM tab2
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 + 50 ) * col0 col2 FROM tab2
----
10191
399
9984
query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1
----
-66
query I rowsort
SELECT - 89 + tab1.col2 FROM tab1
----
-32
-35
7
query I rowsort
SELECT - col0 - + col2 * col1 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT 38 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
-107844
-283556
-3686
query I rowsort
SELECT DISTINCT 51 FROM tab0
----
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col2 FROM tab1
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 90 col0 FROM tab0
----
90
query I rowsort
SELECT ALL - ( + col0 ) - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT col2 + + col1 + col2 * 82 AS col1 FROM tab1 AS cor0
----
4508
4741
7981
query I rowsort
SELECT DISTINCT 73 + - ( - col0 ) + + col2 * + col0 AS col0 FROM tab2 AS cor0
----
2179
269
3154
query I rowsort
SELECT - 70 * - col2 AS col1 FROM tab1 cor0
----
3780
3990
6720
query I rowsort
SELECT DISTINCT - ( 47 ) + - col1 FROM tab1 AS cor0
----
-57
-60
-73
query I rowsort
SELECT DISTINCT - - col0 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + col2 - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + 24 - cor0.col1 FROM tab2 AS cor0
----
-35
-7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-372
SELECT ALL + + 66 DIV - col1 + + 37 AS col0 FROM tab1 AS cor0
----
31
32
35
skipif mysql # not compatible
query I rowsort label-372
SELECT ALL + + 66 / - col1 + + 37 AS col0 FROM tab1 AS cor0
----
31
32
35
query I rowsort
SELECT 55 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
query I rowsort
SELECT - - col1 * - 76 FROM tab1 AS cor0
----
-1976
-760
-988
query I rowsort
SELECT DISTINCT - col0 * 82 * col1 AS col1 FROM tab0 AS cor0
----
-169248
-278390
-664118
query I rowsort
SELECT ALL - + col2 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1406
650
702
query I rowsort
SELECT - col0 * 92 AS col0 FROM tab0 AS cor0
----
-2208
-3220
-8188
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3
query I rowsort
SELECT + 84 AS col1 FROM tab0 AS cor0
----
84
84
84
query I rowsort
SELECT + col2 * 28 AS col0 FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT - col2 + ( col0 + - tab1.col0 ) FROM tab1
----
-54
-57
-96
query I rowsort
SELECT + 82 AS col0 FROM tab0 AS cor0
----
82
82
82
query I rowsort
SELECT DISTINCT - 78 + 31 * cor0.col1 FROM tab2, tab1 AS cor0
----
232
325
728
query I rowsort
SELECT - col0 + col0 * col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-385
SELECT + cor0.col2 + ( - col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-385
SELECT + cor0.col2 + ( - col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - col2 * 58 FROM tab2 cor0
----
-1508
-1566
-2204
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d
query I rowsort
SELECT col2 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL - cor1.col0 * + cor1.col0 AS col1 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to cee99dc489c7dab49eb32b6beb2ec8c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 70 * + col1 + col0 col0 FROM tab2 AS cor0
----
1269
2177
4208
query I rowsort
SELECT 70 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT + + 73 + + col1 FROM tab1 AS cor0
----
83
86
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col1 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - 29 * - col2 FROM tab2 AS cor0
----
1102
754
783
query I rowsort
SELECT ALL + 25 * col1 FROM tab0 AS cor0
----
2150
2275
2425
onlyif mysql # use DIV operator for integer division
query I rowsort label-397
SELECT ( col1 ) - - col1 DIV col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-397
SELECT ( col1 ) - - col1 / col1 FROM tab1
----
11
14
27
query I rowsort
SELECT 33 AS col0 FROM tab0
----
33
33
33
query I rowsort
SELECT + cor1.col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # use DIV operator for integer division
query I rowsort label-400
SELECT tab1.col2 DIV + col0 + - col1 + col2 AS col0 FROM tab1
----
46
47
84
skipif mysql # not compatible
query I rowsort label-400
SELECT tab1.col2 / + col0 + - col1 + col2 AS col0 FROM tab1
----
46
47
84
query I rowsort
SELECT - + col1 * col0 + - ( col1 ) AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + 61 AS col1 FROM tab0
----
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT ALL + tab0.col1 + - 38 DIV cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to de0e55f8c6523ee10a80811cbdaf7a7f
skipif mysql # not compatible
query I rowsort label-403
SELECT ALL + tab0.col1 + - 38 / cor0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to de0e55f8c6523ee10a80811cbdaf7a7f
onlyif mysql # use DIV operator for integer division
query I rowsort label-404
SELECT DISTINCT + col2 DIV - col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort label-404
SELECT DISTINCT + col2 / - col1 FROM tab2
----
-2
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * CAST ( + col2 * + col2 AS REAL ) FROM tab2
----
114076
5103
52728
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 34 col0 FROM tab1
----
-1836
-1938
-3264
query I rowsort
SELECT col2 * col1 + + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1292
1674
3068
onlyif mysql # use DIV operator for integer division
query I rowsort label-408
SELECT - cor0.col1 DIV + 70 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-408
SELECT - cor0.col1 / + 70 + - col1 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT + col0 * - 93 FROM tab1 AS cor0
----
-279
-5952
-7440
query I rowsort
SELECT col0 * cor0.col0 + col2 AS col2 FROM tab2 AS cor0
----
6110
6279
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-411
SELECT + col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-411
SELECT + col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT + cor0.col0 - cor0.col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 * col2 - col1 AS col1 FROM tab2 cor0
----
-2087
-220
-3019
query I rowsort
SELECT col0 * - col0 - + cor0.col1 FROM tab0 AS cor0
----
-1322
-662
-8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 AS cor0 WHERE col2 + + col0 + - col1 * col1 * - col1 BETWEEN ( NULL ) AND - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-417
SELECT - cor0.col1 + - col1 DIV - col0 col1 FROM tab2 AS cor0
----
-17
-27
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-417
SELECT - cor0.col1 + - col1 / - col0 col1 FROM tab2 AS cor0
----
-17
-27
-59
query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 = NULL
----
query I rowsort
SELECT col1 + - col2 FROM tab0 WHERE NOT NULL > ( col1 )
----
query I rowsort
SELECT col0 * - col0 * + col2 AS col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT + col0 * - col1 * col2 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-423
SELECT + col1 DIV + tab0.col1 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-423
SELECT + col1 / + tab0.col1 AS col0 FROM tab0
----
1
1
1
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( tab2.col1 + col0 + col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( - tab0.col2 * + col2 )
----
query I rowsort
SELECT ALL col2 * col0 + - tab0.col2 - tab0.col2 * + col0 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-427
SELECT tab2.col1 * col1 DIV - col0 FROM tab2
----
-137
-3
-44
skipif mysql # not compatible
query I rowsort label-427
SELECT tab2.col1 * col1 / - col0 FROM tab2
----
-137
-3
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col2 col2 FROM tab0
----
1
1089
6724
query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + col0 * - col2 * - col2 >= col1 * - col2 * col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * col1 - col1 col2 FROM tab2 AS cor0
----
119593
51017
5828
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 * tab1.col1 col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col0 * col1 * col0 + + col2 + + col1 * col2 * col0 AS col0 FROM tab2
----
-239278
-55025
4367
query I rowsort
SELECT ALL tab1.col0 * col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT col1 + + tab2.col2 * col0 * col0 AS col0 FROM tab2
----
1354
158243
237175
onlyif mysql # use DIV operator for integer division
query I rowsort label-436
SELECT ALL col0 * - col1 DIV col1 AS col1 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-436
SELECT ALL col0 * - col1 / col1 AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + + col1 * + col1 * col2 AS col0 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 + col1 AS col0 FROM tab2 cor0
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT col2 * - col1 + col2 AS col1 FROM tab2
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-441
SELECT - tab1.col0 + col2 DIV + col2 FROM tab1
----
-2
-63
-79
skipif mysql # not compatible
query I rowsort label-441
SELECT - tab1.col0 + col2 / + col2 FROM tab1
----
-2
-63
-79
query I rowsort
SELECT DISTINCT + - col2 + col1 * - col0 + - cor0.col2 FROM tab2 AS cor0
----
-1419
-271
-4654
query I rowsort
SELECT DISTINCT col0 + + col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - + col0 + - col1 AS col1 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - col1 * col1 + - cor0.col1 AS col0 FROM tab2 cor0
----
-306
-3540
-992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col1 col2 FROM tab2 cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-447
SELECT cor0.col2 DIV + col0 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-447
SELECT cor0.col2 / + col0 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT + + col0 * col1 + + cor0.col2 AS col1 FROM tab1 cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-449
SELECT col1 DIV col1 + - col2 AS col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-449
SELECT col1 / col1 + - col2 AS col2 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT + col1 + col1 * + ( + col0 ) AS col2 FROM tab0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col0 FROM tab1, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-452
SELECT DISTINCT + cor0.col0 + cor0.col1 DIV + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-452
SELECT DISTINCT + cor0.col0 + cor0.col1 / + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + col2 + + cor0.col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT cor1.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT 14 AS col1 FROM tab1 cor0
----
14
14
14
query I rowsort
SELECT DISTINCT - col2 + - col1 AS col0 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - col0 + 54 * - col0 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345
query I rowsort
SELECT col1 * + 9 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT DISTINCT + - col0 * + 21 FROM tab1 AS cor0
----
-1344
-1680
-63
query I rowsort
SELECT + col0 + - ( - col1 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL + col1 + col0 * + 51 AS col2 FROM tab2 cor0
----
388
4037
4046
onlyif mysql # use DIV operator for integer division
query I rowsort label-462
SELECT ALL - + col1 * 33 DIV col2 FROM tab0 AS cor0
----
-3201
-36
-86
skipif mysql # not compatible
query I rowsort label-462
SELECT ALL - + col1 * 33 / col2 FROM tab0 AS cor0
----
-3201
-36
-86
query I rowsort
SELECT - col2 * - 0 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col1 * + col0 col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT col2 * + cor0.col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT col0 * tab1.col0 + col1 * - col1 FROM tab1
----
-667
3996
6231
query I rowsort
SELECT + col2 * col1 FROM tab0 WHERE NOT col0 NOT IN ( - col1 * - col2 )
----
query I rowsort
SELECT col2 * col2 * col1 + col1 AS col0 FROM tab2
----
22630
24565
39943
query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT NULL NOT IN ( - col2 )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2 * col2 + tab0.col0 * + col2 + + col2 )
----
query I rowsort
SELECT ALL + tab0.col0 - - col0 * col0 AS col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT ALL + col0 - tab0.col1 AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + col1 + - col1 * + tab1.col1 AS col1 FROM tab1
----
-156
-650
-90
query I rowsort
SELECT + col1 + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT - col0 * col1 * col1 + + col2 FROM tab2
----
-22793
-271492
-6700
query I rowsort
SELECT - tab1.col1 * + col0 * col1 + tab1.col0 AS col0 FROM tab1
----
-13440
-2025
-6336
query I rowsort
SELECT ALL - ( col1 ) + + 53 FROM tab1 AS cor0
----
27
40
43
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + + ( col1 * + col1 ) FROM tab1 AS cor0
----
4196
6569
685
query I rowsort
SELECT DISTINCT + col0 * + col0 * - col2 AS col1 FROM tab1
----
-233472
-486
-614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col2 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT col2 + col0 AS col1 FROM tab0
----
171
36
57
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - col2 )
----
query I rowsort
SELECT col1 + + col0 + col0 AS col2 FROM tab0
----
134
167
269
onlyif mysql # use DIV operator for integer division
query I rowsort label-484
SELECT ALL + col0 DIV - col2 - + col2 FROM tab1
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-484
SELECT ALL + col0 / - col2 - + col2 FROM tab1
----
-54
-58
-96
query I rowsort
SELECT ALL col1 * col2 + + col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + - col1 + + 11 * col2 FROM tab2 AS cor0
----
227
266
401
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - ( + col0 + + tab1.col2 ) * 46 AS col1 FROM tab1
----
-2622
-5566
-8096
query I rowsort
SELECT col0 * - col1 * - ( col0 ) FROM tab2 AS cor0
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col0 FROM tab1
----
-29
-29
-29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col2 FROM tab2
----
48
48
48
query I rowsort
SELECT DISTINCT + 55 * - col2 AS col1 FROM tab2
----
-1430
-1485
-2090
query I rowsort
SELECT + 63 FROM tab1
----
63
63
63
query I rowsort
SELECT + 41 FROM tab0, tab1 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 59ca7c96f3955e014bebd08b5442edff
query I rowsort
SELECT col0 + - tab2.col0 * + col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT - + col2 + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT col0 * - col1 * col1 FROM tab0 cor0
----
-177504
-329315
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-499
SELECT + - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-499
SELECT + - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + + tab0.col2 * tab0.col1 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT + 84 + col0 FROM tab2 AS cor0
----
162
163
91
query I rowsort
SELECT ( + ( + col1 ) * + 93 ) + + col2 FROM tab0
----
8031
8545
9022
query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT - 21 + + ( col0 ) FROM tab1 AS cor0
----
-18
43
59
query I rowsort
SELECT + + col1 + col2 * cor0.col2 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT DISTINCT + - col0 * + cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT + col2 * col0 + + col1 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
72
query I rowsort
SELECT 70 * col1 * col2 AS col0 FROM tab1 AS cor0
----
39900
87360
98280
query I rowsort
SELECT DISTINCT - - 47 FROM tab2 AS cor0
----
47
query I rowsort
SELECT DISTINCT cor0.col2 * + 8 FROM tab2, tab0 cor0
----
264
656
8
query I rowsort
SELECT + 4 AS col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 + + col2 * 60 col2 FROM tab2 AS cor0
----
1582
1642
2302
query I rowsort
SELECT - 85 + + col2 * col1 FROM tab1 AS cor0
----
1163
1319
485
query I rowsort
SELECT DISTINCT col1 * col1 * + col0 + col2 + col2 AS col0 FROM tab0
----
177570
329317
737173
query I rowsort
SELECT - col0 + col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL 19 FROM tab1
----
19
19
19
query I rowsort
SELECT + 41 + + col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
-7257
-751
6
query I rowsort
SELECT cor0.col2 * col1 * - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT + 7 AS col2 FROM tab2 AS cor0
----
7
7
7
query I rowsort
SELECT col2 * col2 * + col2 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
156060
184623
883488
query I rowsort
SELECT DISTINCT + col1 + + col0 * col2 FROM tab0 cor0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 + - col1 * + col2 + col0 AS col1 FROM tab1 AS cor0
----
-1072
-1347
-449
query I rowsort
SELECT ALL + col0 + - col1 AS col1 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + + col0 - col1 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT ALL col0 - col1 * col2 * - col1 AS col2 FROM tab1
----
16304
36507
5764
query I rowsort
SELECT + ( - col2 ) - + col1 FROM tab1
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-529
SELECT CAST( NULL AS SIGNED ) * col1 + - col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-529
SELECT CAST ( NULL AS INTEGER ) * col1 + - col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT 74 * + col1 * - col1 + - col1 + + col1 AS col2 FROM tab1
----
-12506
-50024
-7400
query I rowsort
SELECT + + 35 + 88 * col1 AS col1 FROM tab2 AS cor0
----
1531
2763
5227
query I rowsort
SELECT ALL 75 AS col2 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT - col1 * cor0.col1 * cor0.col1 FROM tab2 cor0
----
-205379
-29791
-4913
onlyif mysql # use DIV operator for integer division
query I rowsort label-534
SELECT ALL 43 + - col1 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
-54
41
42
skipif mysql # not compatible
query I rowsort label-534
SELECT ALL 43 + - col1 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
-54
41
42
query I rowsort
SELECT col0 - + col2 * + col0 AS col0 FROM tab1 cor0
----
-159
-3584
-7600
query I rowsort
SELECT 43 * col1 AS col1 FROM tab1
----
1118
430
559
query I rowsort
SELECT - cor0.col0 + + col0 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-538
SELECT - - col0 * - col0 + + col2 * - col2 + - col0 DIV - col2 AS col1 FROM tab1 AS cor0
----
-15616
-2925
-7344
skipif mysql # not compatible
query I rowsort label-538
SELECT - - col0 * - col0 + + col2 * - col2 + - col0 / - col2 AS col1 FROM tab1 AS cor0
----
-15616
-2925
-7344
query I rowsort
SELECT ALL - - cor0.col0 * - col0 + - col2 FROM tab0 AS cor0
----
-1226
-609
-8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-540
SELECT + ( - 56 ) DIV - col2 FROM tab0
----
0
1
56
skipif mysql # not compatible
query I rowsort label-540
SELECT + ( - 56 ) / - col2 FROM tab0
----
0
1
56
query I rowsort
SELECT + 83 AS col1 FROM tab0
----
83
83
83
query I rowsort
SELECT + ( col2 ) AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT + 9 FROM tab1
----
9
9
9
query I rowsort
SELECT ALL + ( 84 ) + - col0 FROM tab1 AS cor0
----
20
4
81
query I rowsort
SELECT - col2 * + col2 + - col0 * 71 FROM tab1
----
-14896
-3129
-7793
query I rowsort
SELECT - 85 * col1 * - col0 + tab0.col2 * tab0.col0 FROM tab0
----
176232
288610
695713
query I rowsort
SELECT DISTINCT ( 89 ) * + cor0.col1 + col0 FROM tab0 AS cor0
----
7678
8188
8668
query I rowsort
SELECT + cor0.col2 + + col2 * - col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL + col0 * 95 * - col2 + - 89 AS col1 FROM tab1 AS cor0
----
-15479
-346649
-729689
query I rowsort
SELECT ALL 49 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT - + ( - ( - col1 ) ) - + 59 AS col2 FROM tab2 AS cor0
----
-118
-76
-90
query I rowsort
SELECT DISTINCT - 84 * col0 AS col2 FROM tab0 AS cor0
----
-2016
-2940
-7476
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-553
SELECT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-553
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-554
SELECT DISTINCT + col0 DIV 90 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-554
SELECT DISTINCT + col0 / 90 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-555
SELECT DISTINCT 62 + + col0 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
62
63
skipif mysql # not compatible
query I rowsort label-555
SELECT DISTINCT 62 + + col0 / cor0.col2 AS col0 FROM tab1 AS cor0
----
62
63
query I rowsort
SELECT 62 - - col1 AS col2 FROM tab0 AS cor0
----
148
153
159
query I rowsort
SELECT col1 * + col2 + - ( col2 ) FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL + - col2 - - col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 1 + col1 * ( col2 ) FROM tab1 AS cor0
----
1249
1405
571
query I rowsort
SELECT DISTINCT col2 * cor0.col1 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + col2 * + col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT ( - tab2.col0 ) FROM tab2
----
-7
-78
-79
query I rowsort
SELECT DISTINCT 22 * + 59 * - col0 AS col2 FROM tab2
----
-101244
-102542
-9086
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-564
SELECT ALL cor0.col2 / tab2.col1 + CAST( NULL AS SIGNED ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-564
SELECT ALL cor0.col2 / tab2.col1 + CAST ( NULL AS INTEGER ) FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-565
SELECT 36 DIV col0 - col0 * 6 DIV + col1 AS col1 FROM tab0
----
-1
-5
0
skipif mysql # not compatible
query I rowsort label-565
SELECT 36 / col0 - col0 * 6 / + col1 AS col1 FROM tab0
----
-1
-5
0
query I rowsort
SELECT ALL tab0.col0 * tab0.col1 AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to aff311fa1b3948e179779cc03c1fade4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - ( + col1 ) * - col2 col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + col0 + - ( cor0.col2 ) FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - cor0.col2 + ( col1 ) AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + col1 * 56 AS col1 FROM tab2 cor0
----
1736
3304
952
query I rowsort
SELECT DISTINCT - col0 * ( - 47 ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
356
3692
3751
query I rowsort
SELECT + - col0 * 19 * - col1 FROM tab0 AS cor0
----
153881
39216
64505
query I rowsort
SELECT ALL - - col1 + ( + 96 ) * col2 FROM tab2 AS cor0
----
2555
2623
3665
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-574
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 + + ( - col2 * + col2 ) AS col0 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ALL + cor0.col1 * 21 AS col2 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT DISTINCT + col1 * + 25 FROM tab1 AS cor0
----
250
325
650
query I rowsort
SELECT ALL - col2 * + 65 AS col1 FROM tab2 AS cor0
----
-1690
-1755
-2470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 97 col2 FROM tab0
----
97
97
97
query I rowsort
SELECT DISTINCT + 9 FROM tab1, tab2 cor0, tab1 AS cor1
----
9
query I rowsort
SELECT DISTINCT + 73 FROM tab2, tab2 AS cor0, tab1, tab2 AS cor1
----
73
query I rowsort
SELECT col0 * + 92 FROM tab0 AS cor0
----
2208
3220
8188
query I rowsort
SELECT ALL + cor1.col1 FROM tab1 cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT col0 + - 54 AS col1 FROM tab1 AS cor0
----
-51
10
26
query I rowsort
SELECT ALL col0 * col2 + col2 AS col1 FROM tab0
----
36
7380
825
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( - 99 AS REAL ) AS col1 FROM tab2 AS cor0
----
-99
-99
-99
query I rowsort
SELECT DISTINCT 48 * 67 * cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
205824
257280
9648
query I rowsort
SELECT ALL - tab0.col0 - + 62 FROM tab0, tab1 AS cor0
----
9 values hashing to 9ffb54262b407b2a1881e14984e81978
query I rowsort
SELECT 3 * 0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT - tab2.col0 + col2 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT col2 * + col0 + col2 + - col1 FROM tab0
----
-61
7289
739
query I rowsort
SELECT col0 + 72 AS col0 FROM tab1
----
136
152
75
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col1 FROM tab0 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT - col1 * col0 + col2 * col0 AS col2 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT ALL + - 82 * + cor0.col0 FROM tab1 AS cor0
----
-246
-5248
-6560
query I rowsort
SELECT col1 * - 24 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1390
-370
-717
query I rowsort
SELECT ALL - cor0.col1 * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 79 + - 21 FROM tab2 AS cor0
----
58
query I rowsort
SELECT DISTINCT - + 92 + + col1 AS col2 FROM tab1 AS cor0
----
-66
-79
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-601
SELECT - cor0.col2 * 62 DIV col1 + col1 AS col2 FROM tab2 AS cor0
----
-121
-23
32
skipif mysql # not compatible
query I rowsort label-601
SELECT - cor0.col2 * 62 / col1 + col1 AS col2 FROM tab2 AS cor0
----
-121
-23
32
query I rowsort
SELECT DISTINCT + cor0.col0 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT DISTINCT - + 45 * + 24 FROM tab2 AS cor0
----
-1080
onlyif mysql # use DIV operator for integer division
query I rowsort label-604
SELECT ALL + - 6 DIV + col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-604
SELECT ALL + - 6 / + col0 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 79 col2 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT - - col2 + 58 * col0 AS col1 FROM tab2 cor0
----
433
4550
4620
query I rowsort
SELECT DISTINCT - 17 * col0 + - col0 FROM tab2 AS cor0
----
-126
-1404
-1422
query I rowsort
SELECT 38 * col2 FROM tab1 AS cor0
----
2052
2166
3648
query I rowsort
SELECT ALL 9 * + 38 AS col0 FROM tab2 cor0
----
342
342
342
query I rowsort
SELECT DISTINCT - col0 + + tab2.col1 * col0 FROM tab2
----
1264
210
4524
query I rowsort
SELECT ALL + col2 + + col0 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT + 93 * col2 FROM tab0
----
3069
7626
93
query I rowsort
SELECT ALL col1 + col0 * + col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT col2 - - cor0.col2 * + 61 AS col2 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT DISTINCT + - 62 * - col0 + 68 FROM tab0 AS cor0
----
1556
2238
5586
query I rowsort
SELECT ALL + - col0 * + col2 - - col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT + cor0.col2 + col0 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL 96 AS col0 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT - cor0.col2 - col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT ALL - 12 + + col0 FROM tab1 AS cor0
----
-9
52
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-621
SELECT col0 * col1 + col2 DIV cor0.col1 FROM tab1 cor0
----
1047
645
80
skipif mysql # not compatible
query I rowsort label-621
SELECT col0 * col1 + col2 / cor0.col1 FROM tab1 cor0
----
1047
645
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-622
SELECT DISTINCT - col1 DIV - 32 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - col1 / - 32 FROM tab2 AS cor0
----
0
1
query I rowsort
SELECT DISTINCT + 20 FROM tab0, tab1 AS cor0, tab1 cor1
----
20
query I rowsort
SELECT DISTINCT 57 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab0, tab0 AS cor2
----
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-625
SELECT - col2 DIV col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-625
SELECT - col2 / col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - + col0 * col2 + col2 * col1 AS col0 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT DISTINCT - + col0 + 95 * - 59 FROM tab0 AS cor0
----
-5629
-5640
-5694
query I rowsort
SELECT ALL + cor0.col0 * - cor0.col0 - - col1 AS col0 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT - col0 * cor0.col0 * + 76 FROM tab0 AS cor0
----
-43776
-601996
-93100
onlyif mysql # use DIV operator for integer division
query I rowsort label-630
SELECT + - col2 DIV - col0 + + cor0.col2 * - cor0.col0 FROM tab1 cor0
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-630
SELECT + - col2 / - col0 + + cor0.col2 * - cor0.col0 FROM tab1 cor0
----
-144
-3648
-7679
query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT + + 94 AS col0 FROM tab0 AS cor0
----
94
query I rowsort
SELECT - + col1 * col0 * - cor0.col0 FROM tab2 cor0
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-634
SELECT + - 50 DIV col0 FROM tab0 cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-634
SELECT + - 50 / col0 FROM tab0 cor0
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-635
SELECT DISTINCT + col0 + + col2 * + CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-1365
-598
-722
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT + col0 + + col2 * + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT DISTINCT - 0 * col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - 40 + + col1 + ( col2 ) FROM tab2 AS cor0
----
15
18
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT tab2.col2 * - col2 + - col1 AS col0 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT + - ( + col2 ) + - col0 * - col1 * col1 AS col2 FROM tab0 AS cor0
----
177471
329314
736927
query I rowsort
SELECT ALL - col0 * tab1.col2 AS col1 FROM tab1
----
-162
-3648
-7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( cor0.col2 ) col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
1
33
82
query I rowsort
SELECT - tab2.col1 * tab2.col1 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 79ea663c5f468cc57a869fc826cf04a5
query I rowsort
SELECT + col2 * - tab0.col2 * - col2 FROM tab0
----
1
35937
551368
query I rowsort
SELECT + ( + col0 ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT - + col2 - + cor0.col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0, tab0, tab0 AS cor1
----
972 values hashing to 09b120a8ff13ebafea7af10c2152241b
query I rowsort
SELECT - col1 * + ( tab1.col1 ) FROM tab1
----
-100
-169
-676
query I rowsort
SELECT - col0 + - tab2.col1 AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT 3 FROM tab0, tab2 AS cor0
----
3
query I rowsort
SELECT - ( cor0.col2 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT col0 * tab0.col0 * col2 AS col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT 17 * - 59 FROM tab2
----
-1003
-1003
-1003
query I rowsort
SELECT DISTINCT + 98 * - col1 AS col0 FROM tab0
----
-8428
-8918
-9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-655
SELECT ALL ( col1 ) DIV col0 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-655
SELECT ALL ( col1 ) / col0 AS col2 FROM tab0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-656
SELECT DISTINCT 45 DIV - col2 FROM tab1
----
0
skipif mysql # not compatible
query I rowsort label-656
SELECT DISTINCT 45 / - col2 FROM tab1
----
0
query I rowsort
SELECT ALL - tab0.col2 FROM tab0, tab1 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-658
SELECT DISTINCT + - 70 DIV col0 FROM tab0 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT + - 70 / col0 FROM tab0 AS cor0
----
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-659
SELECT ALL + CAST( col1 AS SIGNED ) * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-659
SELECT ALL + CAST ( col1 AS INTEGER ) * cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 75 * col2 AS col0 FROM tab0 cor0
----
-2475
-6150
-75
query I rowsort
SELECT col2 * + 9 AS col1 FROM tab0
----
297
738
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
query I rowsort
SELECT DISTINCT + 47 * 67 FROM tab1
----
3149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor1.col2 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + col1 * - col1 + col1 col2 FROM tab0
----
-7277
-8108
-9311
query I rowsort
SELECT 74 * + 84 + col2 - - col2 AS col0 FROM tab0
----
6218
6282
6380
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col0 FROM tab1 cor0
----
-10
-10
-10
query I rowsort
SELECT + ( col2 ) + 86 AS col1 FROM tab0
----
119
168
87
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT DISTINCT + col2 * col0 + col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT 64 + col0 * col2 FROM tab2 cor0
----
2092
253
3066
query I rowsort
SELECT 88 + col1 - col0 AS col1 FROM tab2 AS cor0
----
112
26
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-673
SELECT + col0 + - col2 * + col0 DIV 1 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif mysql # not compatible
query I rowsort label-673
SELECT + col0 + - col2 * + col0 / 1 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT + col1 + - 87 * col2 FROM tab1 AS cor0
----
-4672
-4949
-8339
onlyif mysql # use DIV operator for integer division
query I rowsort label-675
SELECT cor0.col2 DIV - 13 FROM tab2 cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-675
SELECT cor0.col2 / - 13 FROM tab2 cor0
----
-2
-2
-2
query I rowsort
SELECT + 28 FROM tab1 cor0
----
28
28
28
query I rowsort
SELECT - + ( + col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 - 71 * col2 AS col1 FROM tab0 AS cor0
----
-2319
-36
-5733
query I rowsort
SELECT - - col0 * + 94 AS col0 FROM tab1 AS cor0
----
282
6016
7520
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 DISTINCT cor0.col2 * - 35 - cor0.col1 FROM tab1 cor0
----
-1916
-2005
-3373
query I rowsort
SELECT DISTINCT 57 + col2 FROM tab1
----
111
114
153
query I rowsort
SELECT cor0.col1 + - col1 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 64 FROM tab0 cor0
----
64
64
64
query I rowsort
SELECT DISTINCT - 13 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-102
-37
-48
query I rowsort
SELECT + 73 + col0 * 36 FROM tab2 cor0
----
2881
2917
325
query I rowsort
SELECT - 77 * - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84c67bfcf6ffc1aa6329b92a89560023
onlyif mysql # use DIV operator for integer division
query I rowsort label-688
SELECT DISTINCT col0 * ( - tab2.col0 ) DIV - col0 AS col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-688
SELECT DISTINCT col0 * ( - tab2.col0 ) / - col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT col1 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT + 77 FROM tab0, tab1 AS cor0
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-691
SELECT col2 DIV - col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-691
SELECT col2 / - col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT + col2 + - 61 FROM tab2 AS cor0
----
-23
-34
-35
query I rowsort
SELECT DISTINCT - + cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT + cor0.col0 + - 69 * col2 * - col1 FROM tab2 AS cor0
----
105924
44653
57760
query I rowsort
SELECT ALL col1 * 53 FROM tab1 cor0
----
1378
530
689
query I rowsort
SELECT DISTINCT - tab2.col0 + + cor0.col0 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 082e660fdb43b4559ee4c78f197723a3
query I rowsort
SELECT ALL col2 + + 13 * tab2.col1 FROM tab2
----
259
430
793
query I rowsort
SELECT ALL + col0 * - col2 * + col0 + 75 FROM tab2
----
-1248
-158109
-237083
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-699
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * 35 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * 35 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + col2 * 53 * - col2 FROM tab1 AS cor0
----
154548
172197
488448
query I rowsort
SELECT ALL + 84 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT DISTINCT 15 + col0 - + cor0.col1 FROM tab2 AS cor0
----
-9
34
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-703
SELECT + CAST( 52 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d
skipif mysql # not compatible
query I rowsort label-703
SELECT + CAST ( 52 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0, tab1 cor1, tab1 AS cor2
----
81 values hashing to 7b4a664e9c62b46b517569587d5a621d
onlyif mysql # use DIV operator for integer division
query I rowsort label-704
SELECT ALL - ( + col2 ) DIV col0 col2 FROM tab2 cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-704
SELECT ALL - ( + col2 ) / col0 col2 FROM tab2 cor0
----
-3
0
0
query I rowsort
SELECT + + col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL 84 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
query I rowsort
SELECT - + col0 - + col0 AS col1 FROM tab2 AS cor0
----
-14
-156
-158
query I rowsort
SELECT ALL - cor0.col2 + col0 * + ( + col2 ) * + cor0.col2 + - col2 * - col1 FROM tab0 cor0
----
131
28941
605816
query I rowsort
SELECT DISTINCT - + ( + col2 ) * - col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-710
SELECT ALL - col1 * col2 + - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif mysql # not compatible
query I rowsort label-710
SELECT ALL - col1 * col2 + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-711
SELECT DISTINCT + 82 DIV col0 FROM tab2 AS cor0
----
1
11
skipif mysql # not compatible
query I rowsort label-711
SELECT DISTINCT + 82 / col0 FROM tab2 AS cor0
----
1
11
query I rowsort
SELECT + col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + ( - cor0.col1 ) * col1 + + col1 AS col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-714
SELECT + col2 + - col0 + - ( + col1 ) DIV col1 FROM tab0 cor0
----
-35
-8
8
skipif mysql # not compatible
query I rowsort label-714
SELECT + col2 + - col0 + - ( + col1 ) / col1 FROM tab0 cor0
----
-35
-8
8
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - - col0 * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col2 + - col0 * 63 + + col1 * - cor0.col0 AS col1 FROM tab2 cor0
----
-6282
-631
-9490
query I rowsort
SELECT DISTINCT col2 * col1 + col1 * + col2 FROM tab0 AS cor0
----
14924
194
5676
onlyif mysql # use DIV operator for integer division
query I rowsort label-719
SELECT DISTINCT - - col2 + col1 DIV col1 FROM tab2 AS cor0
----
27
28
39
skipif mysql # not compatible
query I rowsort label-719
SELECT DISTINCT - - col2 + col1 / col1 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - - cor0.col0 * + col0 + - 94 * cor0.col1 AS col0 FROM tab0 AS cor0
----
-633
-7508
-7893
query I rowsort
SELECT ALL - ( 50 ) + + col2 FROM tab0
----
-17
-49
32
query I rowsort
SELECT - 54 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT ALL + 51 + - col0 * + col2 FROM tab1
----
-111
-3597
-7629
query I rowsort
SELECT 13 + - col1 FROM tab0
----
-73
-78
-84
query I rowsort
SELECT ALL + 19 * - col2 + 49 AS col1 FROM tab0 AS cor0
----
-1509
-578
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 col0 FROM tab0
----
33
query I rowsort
SELECT + ( ( col0 ) ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT col2 - - 41 AS col2 FROM tab2
----
67
68
79
query I rowsort
SELECT ALL - ( cor0.col2 ) * 92 FROM tab2 AS cor0
----
-2392
-2484
-3496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col2 * + cor0.col0 * - ( + col2 ) FROM tab0 AS cor0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * col0 + col0 col2 FROM tab1
----
234
4992
6240
query I rowsort
SELECT cor0.col1 + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - col2 + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 92 * - col0 * tab0.col0 AS col1 FROM tab0
----
-112700
-52992
-728732
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 * col2 col1 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - 33 AS col0 FROM tab2
----
-33
onlyif mysql # use DIV operator for integer division
query I rowsort label-738
SELECT - + ( col2 ) DIV col1 col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-738
SELECT - + ( col2 ) / col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + 59 * - col0 AS col0 FROM tab0 AS cor0
----
-1416
-2065
-5251
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( - col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT + 53 FROM tab1 cor0
----
53
query I rowsort
SELECT DISTINCT ( + col1 ) * col2 + col2 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1566
2090
2210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-743
SELECT CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-743
SELECT CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col0 + 15 AS col1 FROM tab2
----
22
93
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-745
SELECT DISTINCT - col0 DIV - col1 AS col0 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - col0 / - col1 AS col0 FROM tab2
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - tab0.col0 col1 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-747
SELECT col2 * tab1.col1 DIV + col2 + + 44 * tab1.col2 * col1 + tab1.col2 FROM tab1
----
25147
55021
61856
skipif mysql # not compatible
query I rowsort label-747
SELECT col2 * tab1.col1 / + col2 + + 44 * tab1.col2 * col1 + tab1.col2 FROM tab1
----
25147
55021
61856
query I rowsort
SELECT - 36 AS col2 FROM tab0, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT ALL ( + tab2.col0 ) AS col0 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT DISTINCT + 36 FROM tab2 AS cor0
----
36
query I rowsort
SELECT col2 * + 14 * col1 FROM tab0 AS cor0
----
104468
1358
39732
onlyif mysql # use DIV operator for integer division
query I rowsort label-752
SELECT - col1 * + cor0.col1 DIV col1 - 31 AS col2 FROM tab1 AS cor0
----
-41
-44
-57
skipif mysql # not compatible
query I rowsort label-752
SELECT - col1 * + cor0.col1 / col1 - 31 AS col2 FROM tab1 AS cor0
----
-41
-44
-57
query I rowsort
SELECT ALL - col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - col0 + 51 * - col1 FROM tab1 AS cor0
----
-1329
-574
-743
query I rowsort
SELECT DISTINCT - 53 + col1 AS col0 FROM tab0 AS cor0
----
33
38
44
query I rowsort
SELECT ALL 72 * - col1 AS col0 FROM tab1 AS cor0
----
-1872
-720
-936
query I rowsort
SELECT - - 6 * + ( - col1 ) FROM tab0 cor0
----
-516
-546
-582
query I rowsort
SELECT ALL + col1 * 91 FROM tab0 AS cor0
----
7826
8281
8827
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( - col2 AS REAL ) AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-760
SELECT - cor0.col0 * col1 + + col2 DIV - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1047
-645
-80
skipif mysql # not compatible
query I rowsort label-760
SELECT - cor0.col0 * col1 + + col2 / - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1047
-645
-80
query I rowsort
SELECT + - col1 - col0 * - col0 AS col1 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT col0 * cor0.col0 - - 38 FROM tab1 AS cor0
----
4134
47
6438
query I rowsort
SELECT - 6 + + col2 FROM tab2 AS cor0
----
20
21
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-764
SELECT + col1 DIV 14 AS col0 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-764
SELECT + col1 / 14 AS col0 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT + + 47 * + 39 AS col2 FROM tab0 AS cor0
----
1833
1833
1833
query I rowsort
SELECT + col1 + 35 * + col1 FROM tab0 cor0
----
3096
3276
3492
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-767
SELECT + CAST( - 98 AS SIGNED ) AS col0 FROM tab2 cor0
----
-98
-98
-98
skipif mysql # not compatible
query I rowsort label-767
SELECT + CAST ( - 98 AS INTEGER ) AS col0 FROM tab2 cor0
----
-98
-98
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-768
SELECT CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-768
SELECT CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL - - ( 14 ) + col2 * col2 FROM tab1 AS cor0
----
2930
3263
9230
query I rowsort
SELECT - 22 * col2 + - col0 AS col1 FROM tab2 AS cor0
----
-601
-650
-915
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-771
SELECT - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-771
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col1 FROM tab0 AS cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-773
SELECT DISTINCT - + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-773
SELECT DISTINCT - + col1 / col0 AS col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT + + 4 + + col2 FROM tab2 AS cor0
----
30
31
42
query I rowsort
SELECT ALL + + 45 * col2 AS col1 FROM tab1 cor0
----
2430
2565
4320
query I rowsort
SELECT + 10 AS col0 FROM tab2
----
10
10
10
query I rowsort
SELECT DISTINCT - 65 + - tab0.col0 AS col2 FROM tab0, tab2 AS cor0
----
-100
-154
-89
query I rowsort
SELECT + 59 + + col0 AS col0 FROM tab1 AS cor0
----
123
139
62
query I rowsort
SELECT ALL + + col0 * + col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-780
SELECT - col1 DIV - 85 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-780
SELECT - col1 / - 85 col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL col2 * col0 AS col0 FROM tab1 cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col1 col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col0 * col2 + - 96 - - cor0.col2 FROM tab1 AS cor0
----
120
3609
7680
query I rowsort
SELECT - col2 + ( - 69 ) FROM tab1 AS cor0
----
-123
-126
-165
query I rowsort
SELECT DISTINCT col2 + + 17 AS col0 FROM tab0 cor0
----
18
50
99
query I rowsort
SELECT ALL + col0 + - 15 - col1 * col1 FROM tab0 AS cor0
----
-7387
-8207
-9389
query I rowsort
SELECT ALL + col2 + - 54 * + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-34503
-4158
-56064
query I rowsort
SELECT DISTINCT + col1 + 77 FROM tab1 AS cor0
----
103
87
90
query I rowsort
SELECT ALL col1 - tab1.col1 * 92 FROM tab1
----
-1183
-2366
-910
query I rowsort
SELECT DISTINCT + + 42 + + ( - col2 ) FROM tab1 cor0
----
-12
-15
-54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * cor0.col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + tab2.col2 - - col2 * + ( - col1 ) AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT 82 * col0 FROM tab0 AS cor0
----
1968
2870
7298
query I rowsort
SELECT ALL + 40 FROM tab0 AS cor0
----
40
40
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-796
SELECT ( + col0 ) DIV CAST( cor0.col0 AS SIGNED ) 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-796
SELECT ( + col0 ) / CAST ( cor0.col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-797
SELECT + 74 * - col0 / CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-797
SELECT + 74 * - col0 / CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT ALL + 87 * col0 FROM tab0
----
2088
3045
7743
query I rowsort
SELECT ( cor0.col1 ) + ( col1 ) FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-802
SELECT + - col0 + col1 * col2 DIV col2 FROM tab0 cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-802
SELECT + - col0 + col1 * col2 / col2 FROM tab0 cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-803
SELECT ALL + - 81 + 53 DIV col2 AS col1 FROM tab1 AS cor0
----
-81
-81
-81
skipif mysql # not compatible
query I rowsort label-803
SELECT ALL + - 81 + 53 / col2 AS col1 FROM tab1 AS cor0
----
-81
-81
-81
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT ALL 23 - + 14 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # use DIV operator for integer division
query I rowsort label-806
SELECT + 93 + col2 * col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-3
36
39
skipif mysql # not compatible
query I rowsort label-806
SELECT + 93 + col2 * col1 / - col1 AS col1 FROM tab1 AS cor0
----
-3
36
39
query I rowsort
SELECT - col0 * + col0 * 16 FROM tab0
----
-126736
-19600
-9216
query I rowsort
SELECT DISTINCT col2 + - 90 * - col2 * + col2 + col1 * col0 AS col0 FROM tab0
----
100107
3486
613341
query I rowsort
SELECT ALL - tab0.col1 * col2 + + col0 * + col1 AS col1 FROM tab0
----
-774
3298
637
onlyif mysql # use DIV operator for integer division
query I rowsort label-810
SELECT 45 DIV tab2.col0 + col0 * + 51 * + 28 col2 FROM tab2
----
10002
111384
112812
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-810
SELECT 45 / tab2.col0 + col0 * + 51 * + 28 col2 FROM tab2
----
10002
111384
112812
query I rowsort
SELECT + 61 + ( col0 + 90 ) * 70 * - col1 AS col0 FROM tab0
----
-1140169
-686219
-848689
query I rowsort
SELECT ALL 14 AS col0 FROM tab1
----
14
14
14
query I rowsort
SELECT tab0.col2 + - 93 * col0 AS col1 FROM tab0
----
-2199
-3254
-8195
query I rowsort
SELECT DISTINCT - 60 + + col0 + col2 FROM tab1
----
-3
116
61
query I rowsort
SELECT DISTINCT - 88 * - 23 FROM tab2
----
2024
query I rowsort
SELECT ALL - - 40 FROM tab2 cor0
----
40
40
40
query I rowsort
SELECT ALL + + col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-818
SELECT ( - 43 ) DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-818
SELECT ( - 43 ) / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 * 91 FROM tab2 AS cor0
----
1547
2821
5369
query I rowsort
SELECT DISTINCT + col0 * - 17 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT ALL - - 99 + 76 * + col2 AS col1 FROM tab0 AS cor0
----
175
2607
6331
query I rowsort
SELECT ALL tab1.col0 * - col2 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT ( + tab2.col0 * 78 ) + + col2 AS col1 FROM tab2
----
573
6110
6200
query I rowsort
SELECT - col0 * col2 + col2 + 52 AS col1 FROM tab2
----
-110
-1950
-2912
query I rowsort
SELECT - col2 * - col1 + ( - 38 ) AS col0 FROM tab2 AS cor0
----
1496
608
799
query I rowsort
SELECT + col0 + ( + 44 * - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-1141
-376
-492
query I rowsort
SELECT DISTINCT + col1 + 76 FROM tab2 AS cor0
----
107
135
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-828
SELECT DISTINCT - col1 * CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT - col1 * CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-829
SELECT ALL + col0 * - col1 DIV + col1 col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-829
SELECT ALL + col0 * - col1 / + col1 col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-830
SELECT col0 + CAST( + col1 AS SIGNED ) * + col0 - col1 FROM tab2 AS cor0
----
1405
193
4621
skipif mysql # not compatible
query I rowsort label-830
SELECT col0 + CAST ( + col1 AS INTEGER ) * + col0 - col1 FROM tab2 AS cor0
----
1405
193
4621
query I rowsort
SELECT ALL + col1 + - ( + 79 ) * col2 * - col0 FROM tab1 AS cor0
----
12824
288202
606733
query I rowsort
SELECT DISTINCT + col1 + 89 AS col2 FROM tab1 AS cor0
----
102
115
99
query I rowsort
SELECT DISTINCT 95 AS col0 FROM tab2
----
95
query I rowsort
SELECT + + col2 - + 51 AS col0 FROM tab1 cor0
----
3
45
6
query I rowsort
SELECT DISTINCT + - col1 * col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT - - col2 * cor0.col0 + + col1 + col0 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT ALL - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - - cor0.col1 * col0 + cor0.col2 * + col1 AS col2 FROM tab2 AS cor0
----
1054
1989
6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-839
SELECT - - col1 DIV + col2 + - col1 + col0 AS col1 FROM tab0 cor0
----
-1
-60
35
skipif mysql # not compatible
query I rowsort label-839
SELECT - - col1 / + col2 + - col1 + col0 AS col1 FROM tab0 cor0
----
-1
-60
35
query I rowsort
SELECT - 71 FROM tab1, tab2 AS cor0
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062
query I rowsort
SELECT ALL + col0 + 76 FROM tab2
----
154
155
83
query I rowsort
SELECT 88 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT - cor0.col0 * 78 AS col1 FROM tab1 AS cor0
----
-234
-4992
-6240
query I rowsort
SELECT ALL col0 + - ( col2 ) * col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT ALL - col1 + - col1 * + ( tab1.col2 ) FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - col2 - + col0 AS col2 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-847
SELECT ALL - col1 + - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-847
SELECT ALL - col1 + - col1 / col1 AS col0 FROM tab1 AS cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT DISTINCT - + col1 DIV col1 - 95 FROM tab1 AS cor0
----
-96
skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT - + col1 / col1 - 95 FROM tab1 AS cor0
----
-96
query I rowsort
SELECT ALL + col2 * col0 + 52 + - col1 FROM tab2 cor0
----
2021
210
3037
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT - col0 * - col1 - 54 * + col2 FROM tab1 AS cor0
----
-2438
-2838
-4144
query I rowsort
SELECT ( - col2 ) + - col0 AS col2 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT 37 + + ( - col0 ) * + col0 FROM tab0 AS cor0
----
-1188
-539
-7884
query I rowsort
SELECT DISTINCT 28 + + cor0.col1 FROM tab2 AS cor0
----
45
59
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-856
SELECT ALL + col2 - + 15 DIV - col2 AS col2 FROM tab0 AS cor0
----
16
33
82
skipif mysql # not compatible
query I rowsort label-856
SELECT ALL + col2 - + 15 / - col2 AS col2 FROM tab0 AS cor0
----
16
33
82
query I rowsort
SELECT col1 * + col0 - col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - 74 * + 90 FROM tab0 AS cor0
----
-6660
-6660
-6660
query I rowsort
SELECT DISTINCT + + 84 + - col2 * col2 FROM tab1 AS cor0
----
-2832
-3165
-9132
query I rowsort
SELECT ALL + 81 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
query I rowsort
SELECT 10 FROM tab0, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT ALL col0 + tab2.col2 AS col1 FROM tab2
----
104
117
34
query I rowsort
SELECT + col2 + - col1 * + col1 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - col1 + ( + ( tab0.col2 ) ) AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT - + ( - 51 ) FROM tab2 AS cor0
----
51
51
51
query I rowsort
SELECT col1 + 1 AS col2 FROM tab1
----
11
14
27
query I rowsort
SELECT ALL + + ( col1 ) * + 53 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT ALL + cor0.col1 * - col0 - cor0.col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - + 76 * + col0 AS col0 FROM tab1 AS cor0
----
-228
-4864
-6080
onlyif mysql # use DIV operator for integer division
query I rowsort label-870
SELECT ALL - col2 DIV - col0 + + col0 * col0 + - col2 FROM tab2 AS cor0
----
25
6058
6203
skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - col2 / - col0 + + col0 * col0 + - col2 FROM tab2 AS cor0
----
25
6058
6203
query I rowsort
SELECT ALL + + col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + + col0 * col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 64 * col0 * - col0 FROM tab0 AS cor0
----
36864
506944
78400
query I rowsort
SELECT DISTINCT - cor0.col2 * - col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col1 + cor0.col2 * ( col1 ) AS col0 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL + 46 + col1 AS col2 FROM tab2
----
105
63
77
query I rowsort
SELECT DISTINCT - 10 * - col1 - ( - col1 ) FROM tab0 AS cor0
----
1001
1067
946
query I rowsort
SELECT - col2 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT 21 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 312c166f4dc412730c43555105b1f44b
query I rowsort
SELECT + col0 + ( 83 ) FROM tab0 AS cor0
----
107
118
172
query I rowsort
SELECT 16 + cor0.col1 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1b926ba126643dac0ef114a74b0bd26c
query I rowsort
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - 86 FROM tab0
----
-86
-86
-86
query I rowsort
SELECT + 8 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab2 cor1, tab2 cor2
----
972 values hashing to 82def1c3361e635dd4cf447edc22edb9
query I rowsort
SELECT ALL - col2 * col0 + col2 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL - 54 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT + + 72 * + col2 AS col2 FROM tab0 AS cor0
----
2376
5904
72
query I rowsort
SELECT + col0 + + col2 + - col1 FROM tab0 AS cor0
----
-29
-61
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + col0 * cor0.col0 col1 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT + + col2 * cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - col0 * + col1 * - 4 FROM tab0 AS cor0
----
13580
32396
8256
query I rowsort
SELECT + + 87 * + col2 - 42 AS col2 FROM tab1 AS cor0
----
4656
4917
8310
onlyif mysql # use DIV operator for integer division
query I rowsort label-894
SELECT + col2 DIV + col2 + - 26 * col2 + - col2 AS col2 FROM tab0 cor0
----
-2213
-26
-890
skipif mysql # not compatible
query I rowsort label-894
SELECT + col2 / + col2 + - 26 * col2 + - col2 AS col2 FROM tab0 cor0
----
-2213
-26
-890
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + col2 + col2 col2 FROM tab2 AS cor0
----
115
91
93
query I rowsort
SELECT - - 69 + col0 + col1 AS col1 FROM tab0 cor0
----
179
201
249
query I rowsort
SELECT - col2 + 57 AS col0 FROM tab2 AS cor0
----
19
30
31
query I rowsort
SELECT - + col1 * + ( - col1 ) + col0 * col1 AS col1 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT DISTINCT + col2 * cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL + cor0.col0 + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT - col0 * + col2 + - col0 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-902
SELECT ( 41 ) * col2 + CAST( - 82 AS SIGNED ) FROM tab1 AS cor0
----
2132
2255
3854
skipif mysql # not compatible
query I rowsort label-902
SELECT ( 41 ) * col2 + CAST ( - 82 AS INTEGER ) FROM tab1 AS cor0
----
2132
2255
3854
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT 27 * 52 AS col2 FROM tab0 AS cor0
----
1404
1404
1404
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-905
SELECT - CAST( + 4 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-905
SELECT - CAST ( + 4 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-4
-4
-4
query I rowsort
SELECT 67 * col1 FROM tab0 AS cor0
----
5762
6097
6499
query I rowsort
SELECT 14 * col2 + + col1 AS col1 FROM tab1 AS cor0
----
1357
782
808
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col0 + col2 * + 33 AS col1 FROM tab0 cor0
----
-2
-4592
297
query I rowsort
SELECT + col1 * - col0 * - col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - 61 AS col2 FROM tab1 cor0
----
-61
-61
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-911
SELECT DISTINCT - - CAST( + ( col0 ) AS SIGNED ) DIV + ( col1 ) FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-911
SELECT DISTINCT - - CAST ( + ( col0 ) AS INTEGER ) / + ( col1 ) FROM tab2 AS cor0
----
0
1
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-912
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 * cor0.col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 * cor0.col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( 80 ) * + col0 FROM tab0 AS cor0
----
1920
2800
7120
query I rowsort
SELECT - - col1 + - ( + col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + 28 + col1 FROM tab1 AS cor0
----
38
41
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + 76 * cor0.col0 col1 FROM tab1 AS cor0
----
231
4928
6160
query I rowsort
SELECT ALL - 7 + 98 - col0 * - col0 FROM tab1 AS cor0
----
100
4187
6491
query I rowsort
SELECT ALL + + ( - col0 ) * col2 + + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - 15 + col1 AS col0 FROM tab0 AS cor0
----
71
76
82
query I rowsort
SELECT + 8 AS col1 FROM tab2 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT col1 - col0 AS col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL - - cor0.col1 + - col0 * ( - 33 ) AS col1 FROM tab0 AS cor0
----
1252
3028
878
query I rowsort
SELECT ALL + 70 FROM tab0, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911
query I rowsort
SELECT - col1 + - col0 AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - col0 * ( + col0 ) - 41 * - col1 AS col2 FROM tab2
----
-3665
-5544
1222
query I rowsort
SELECT ALL + 91 FROM tab1, tab1 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL col2 + + ( col0 ) AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col0 * - 88 + ( - col2 ) + + col1 FROM tab0 AS cor0
----
2165
3176
7841
query I rowsort
SELECT 35 * + tab1.col2 AS col2 FROM tab1
----
1890
1995
3360
query I rowsort
SELECT ALL + + col0 * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-932
SELECT DISTINCT + col1 DIV col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT + col1 / col0 FROM tab0
----
1
2
3
query I rowsort
SELECT DISTINCT col2 + - col1 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-934
SELECT DISTINCT + + col0 * CAST( ( col2 ) AS SIGNED ) + CAST( col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-934
SELECT DISTINCT + + col0 * CAST ( ( col2 ) AS INTEGER ) + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT col1 * 15 - + col1 FROM tab1 AS cor0
----
140
182
364
query I rowsort
SELECT DISTINCT - - col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col0 * col0 + col2 col1 FROM tab1 cor0
----
4153
63
6496
query I rowsort
SELECT ALL col0 * - ( col1 ) - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-939
SELECT - col0 + + cor0.col1 DIV - 84 AS col1 FROM tab2 cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-939
SELECT - col0 + + cor0.col1 / - 84 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + + cor0.col1 + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-943
SELECT DISTINCT col1 - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-943
SELECT DISTINCT col1 - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-944
SELECT DISTINCT - col2 DIV col1 FROM tab2 AS cor0
----
-2
0
skipif mysql # not compatible
query I rowsort label-944
SELECT DISTINCT - col2 / col1 FROM tab2 AS cor0
----
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 * - 62 col1 FROM tab1 AS cor0
----
2728
2728
2728
query I rowsort
SELECT + ( + 44 ) + col2 * - col2 AS col0 FROM tab0 AS cor0
----
-1045
-6680
43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-947
SELECT ALL - col2 + + CAST( col2 AS SIGNED ) * col2 FROM tab0
----
0
1056
6642
skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - col2 + + CAST ( col2 AS INTEGER ) * col2 FROM tab0
----
0
1056
6642
query I rowsort
SELECT ALL - col1 * + ( cor0.col2 * 54 ) FROM tab0 cor0
----
-153252
-402948
-5238
query I rowsort
SELECT DISTINCT col0 + 20 AS col0 FROM tab0
----
109
44
55
query I rowsort
SELECT ALL - 49 AS col1 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to adfccb10c9468825d9961e3613140f89
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT col2 * 38 AS col0 FROM tab0
----
1254
3116
38
query I rowsort
SELECT - tab2.col0 + + col1 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT DISTINCT 98 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
98
query I rowsort
SELECT ALL + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-956
SELECT DISTINCT cor0.col1 DIV + col0 AS col2 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT cor0.col1 / + col0 AS col2 FROM tab1 AS cor0
----
0
8
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 67 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT + 65 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT - ( - col1 ) * col1 + ( col2 + 17 ) * - ( col1 ) * + col2 AS col0 FROM tab2
----
-35241
-35867
-62481
query I rowsort
SELECT DISTINCT 76 FROM tab2
----
76
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT DISTINCT + 18 * - col0 * - 20 FROM tab1
----
1080
23040
28800
query I rowsort
SELECT DISTINCT ( - cor1.col0 ) FROM tab1, tab0 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT + 84 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1 cor1, tab1 cor2
----
972 values hashing to f8fe28681e8720551e1ec173631fc529
query I rowsort
SELECT DISTINCT - col2 + - col1 * col2 FROM tab1 cor0
----
-1344
-1458
-627
query I rowsort
SELECT - 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT + col2 * - col2 * col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL tab1.col1 * - col0 AS col2 FROM tab1
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-971
SELECT DISTINCT col1 + col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
10
14
44
skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT col1 + col2 / + col0 AS col2 FROM tab1 AS cor0
----
10
14
44
query I rowsort
SELECT DISTINCT 7 FROM tab0, tab0 AS cor0
----
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-973
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-974
SELECT ALL tab1.col1 * + CAST( - col0 * - col1 AS SIGNED ) FROM tab1
----
13520
2028
6400
skipif mysql # not compatible
query I rowsort label-974
SELECT ALL tab1.col1 * + CAST ( - col0 * - col1 AS INTEGER ) FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-975
SELECT ALL col1 DIV tab2.col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-975
SELECT ALL col1 / tab2.col0 FROM tab2
----
0
0
4
query I rowsort
SELECT 4 + + 85 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743
query I rowsort
SELECT - col2 * + ( 95 ) * - cor0.col0 FROM tab0 AS cor0
----
3325
693310
75240
onlyif mysql # use DIV operator for integer division
query I rowsort label-978
SELECT - col2 DIV ( + 84 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-978
SELECT - col2 / ( + 84 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 * - cor0.col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * - tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col0 + - ( col0 + col0 ) AS col1 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 56 + - 74 AS col2 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT cor0.col2 + 53 AS col2 FROM tab2 AS cor0
----
79
80
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-984
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col1 + - col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-984
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col1 + - col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - 70 + + ( - col1 ) * col0 FROM tab0 AS cor0
----
-2134
-3465
-8169
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 40 AS REAL ) AS col0 FROM tab2 cor0
----
40
40
40
query I rowsort
SELECT ALL ( col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - + 47 AS col0 FROM tab0 AS cor0
----
-47
query I rowsort
SELECT ALL 13 AS col0 FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT ALL - col0 + - col1 AS col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-991
SELECT ALL - + col2 + - col2 DIV ( - col1 ) FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-991
SELECT ALL - + col2 + - col2 / ( - col1 ) FROM tab1 AS cor0
----
-52
-52
-89
query I rowsort
SELECT - 37 + col0 FROM tab1 cor0
----
-34
27
43
query I rowsort
SELECT - - col1 + + col0 * 65 FROM tab0 AS cor0
----
1646
2372
5876
query I rowsort
SELECT + + 98 + - cor0.col1 * cor0.col0 * 42 FROM tab0 AS cor0
----
-142492
-340060
-86590
onlyif mysql # use DIV operator for integer division
query I rowsort label-995
SELECT + + 69 DIV col2 AS col0 FROM tab0 AS cor0
----
0
2
69
skipif mysql # not compatible
query I rowsort label-995
SELECT + + 69 / col2 AS col0 FROM tab0 AS cor0
----
0
2
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-996
SELECT ALL + col0 DIV col2 + col1 * col1 FROM tab0 AS cor0
----
7396
8282
9444
skipif mysql # not compatible
query I rowsort label-996
SELECT ALL + col0 / col2 + col1 * col1 FROM tab0 AS cor0
----
7396
8282
9444
query I rowsort
SELECT ALL + 53 * + col2 + col0 * - col1 + col0 * col2 FROM tab1 AS cor0
----
11728
2946
6029
query I rowsort
SELECT ALL + - cor0.col2 * cor0.col0 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + col0 * col0 AS col2 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL 70 + + col0 AS col2 FROM tab2
----
148
149
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1001
SELECT ALL 44 + - 70 DIV - col1 FROM tab0
----
44
44
44
skipif mysql # not compatible
query I rowsort label-1001
SELECT ALL 44 + - 70 / - col1 FROM tab0
----
44
44
44
query I rowsort
SELECT 62 * - col0 AS col1 FROM tab0 AS cor0
----
-1488
-2170
-5518
query I rowsort
SELECT + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * col0 col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT - + 20 AS col0 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab1, tab2 AS cor0
----
-49
query I rowsort
SELECT ALL + ( + col0 ) + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + ( - col0 ) - + col1 * 10 AS col2 FROM tab2 AS cor0
----
-249
-317
-668
query I rowsort
SELECT DISTINCT + 28 * col2 + - col0 FROM tab1 AS cor0
----
1509
1532
2608
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col1 FROM tab1
----
60
query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab2, tab1 AS cor0
----
-79
query I rowsort
SELECT ALL col0 + col2 + - col0 AS col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1013
SELECT ALL - col0 DIV - col2 + - col0 * 66 * - col1 - + 34 col1 FROM tab0 AS cor0
----
136190
224071
534501
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL - col0 / - col2 + - col0 * 66 * - col1 - + 34 col1 FROM tab0 AS cor0
----
136190
224071
534501
query I rowsort
SELECT DISTINCT 37 FROM tab0, tab2 AS cor0
----
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 65 ) + col0 col1 FROM tab1
----
129
145
68
query I rowsort
SELECT col0 - - col1 FROM tab2
----
137
38
96
query I rowsort
SELECT + tab1.col1 - col0 * col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT col2 + - col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
onlyif mysql # use DIV operator for integer division
query I rowsort label-1020
SELECT ALL + ( tab1.col2 ) DIV tab1.col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1020
SELECT ALL + ( tab1.col2 ) / tab1.col0 FROM tab1
----
0
1
18
query I rowsort
SELECT ALL 54 * col2 AS col1 FROM tab1
----
2916
3078
5184
query I rowsort
SELECT - + cor0.col0 * col0 * - ( + col1 + 9 * + ( col2 ) ) FROM tab0 AS cor0
----
129850
220608
6566509
query I rowsort
SELECT DISTINCT - 24 * + cor1.col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
-168
-1872
-1896
query I rowsort
SELECT ALL + 37 * - cor0.col1 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to b290e62fb46c59b7f176836a41ed381d
query I rowsort
SELECT ALL - col0 * - tab1.col0 * ( - col0 ) AS col0 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT ( col2 + 74 ) * - col2 FROM tab2
----
-2600
-2727
-4256
query I rowsort
SELECT - 26 AS col0 FROM tab1
----
-26
-26
-26
query I rowsort
SELECT DISTINCT ( + cor0.col0 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3
64
80
query I rowsort
SELECT - col0 * + 71 FROM tab1
----
-213
-4544
-5680
query I rowsort
SELECT DISTINCT - col0 + col0 * 76 AS col0 FROM tab0
----
1800
2625
6675
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1031
SELECT + col2 + + CAST( NULL AS SIGNED ) * + ( + cor0.col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1031
SELECT + col2 + + CAST ( NULL AS INTEGER ) * + ( + cor0.col2 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + - ( - 81 ) FROM tab1 AS cor0
----
1
17
78
query I rowsort
SELECT + col1 * 51 + - 1 AS col2 FROM tab1 AS cor0
----
1325
509
662
query I rowsort
SELECT ALL - col1 + + col2 * + col2 AS col1 FROM tab2
----
1427
617
698
onlyif mysql # use DIV operator for integer division
query I rowsort label-1035
SELECT DISTINCT col0 + + 52 DIV - col2 FROM tab0
----
-17
23
89
skipif mysql # not compatible
query I rowsort label-1035
SELECT DISTINCT col0 + + 52 / - col2 FROM tab0
----
-17
23
89
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col0 AS REAL ) * + col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) * + col2 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1038
SELECT - col0 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1038
SELECT - col0 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - 83 FROM tab0
----
-1
-50
-82
query I rowsort
SELECT + 39 * + ( + col1 * col2 ) FROM tab1 AS cor0
----
22230
48672
54756
query I rowsort
SELECT - 89 + 36 * cor0.col0 FROM tab2 AS cor0
----
163
2719
2755
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1042
SELECT DISTINCT - - CAST( + 49 AS SIGNED ) + col2 * + 50 AS col1 FROM tab1 AS cor0
----
2749
2899
4849
skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - - CAST ( + 49 AS INTEGER ) + col2 * + 50 AS col1 FROM tab1 AS cor0
----
2749
2899
4849
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1043
SELECT CAST( tab2.col0 * - col2 AS SIGNED ) + + col2 AS col1 FROM tab2
----
-162
-2002
-2964
skipif mysql # not compatible
query I rowsort label-1043
SELECT CAST ( tab2.col0 * - col2 AS INTEGER ) + + col2 AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT - ( - col2 ) * col1 + - col2 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT ALL + col0 + 10 * + col2 AS col0 FROM tab0 AS cor0
----
354
45
909
query I rowsort
SELECT col1 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-1047
SELECT + col0 DIV col0 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1445
677
730
skipif mysql # not compatible
query I rowsort label-1047
SELECT + col0 / col0 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1445
677
730
query I rowsort
SELECT - 85 * + 17 FROM tab1 AS cor0
----
-1445
-1445
-1445
query I rowsort
SELECT DISTINCT + 77 AS col0 FROM tab0 AS cor0
----
77
query I rowsort
SELECT DISTINCT 33 AS col1 FROM tab1 cor0
----
33
query I rowsort
SELECT ALL + col2 * - ( + col1 ) * + ( + col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-1052
SELECT - col1 DIV - col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1052
SELECT - col1 / - col1 FROM tab0
----
1
1
1
query I rowsort
SELECT - + cor0.col1 * - col1 + - col0 AS col2 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT - 48 FROM tab2 AS cor0
----
-48
-48
-48
query I rowsort
SELECT ALL - + col1 + col1 + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - col0 + col2 + + col1 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT + col2 + + col0 * 43 FROM tab0 cor0
----
1065
1506
3909
query I rowsort
SELECT ALL + + col2 - + col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 23 AS col0 FROM tab2 AS cor0
----
23
23
23
query I rowsort
SELECT + + col0 - 54 FROM tab0 AS cor0
----
-19
-30
35
query I rowsort
SELECT ALL + + col1 * + 93 FROM tab0 cor0
----
7998
8463
9021
query I rowsort
SELECT ALL + cor0.col1 + cor0.col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c78408d90c4e135ef1bbc23c5252cd1d
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col2 + col2 + + col1 * + 9 * col2 FROM tab0 AS cor0
----
22737
59778
777
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + + col0 col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + 57 * + col0 FROM tab2
----
399
4446
4503
query I rowsort
SELECT ALL - tab2.col1 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT - 52 * col0 + col0 FROM tab0 AS cor0
----
-1224
-1785
-4539
query I rowsort
SELECT ALL 79 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT ALL - + col2 * - col2 * - col1 + + 98 AS col2 FROM tab2 AS cor0
----
-22501
-24450
-39786
query I rowsort
SELECT - - 78 AS col0 FROM tab1 AS cor0
----
78
78
78
query I rowsort
SELECT ALL - - col1 + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + col2 * + 45 FROM tab2 cor0
----
1170
1215
1710
onlyif mysql # use DIV operator for integer division
query I rowsort label-1074
SELECT DISTINCT - col0 * col2 DIV + col2 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1074
SELECT DISTINCT - col0 * col2 / + col2 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + CAST ( col2 AS REAL ) + - cor0.col1 / col0 FROM tab0 AS cor0
----
-1
30
81
query I rowsort
SELECT ALL + ( + col1 ) * col2 + col2 AS col0 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + 60 * + cor0.col0 - - col0 FROM tab2 AS cor0
----
427
4758
4819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1079
SELECT ALL - CAST( NULL AS SIGNED ) + 76 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1079
SELECT ALL - CAST ( NULL AS INTEGER ) + 76 * col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 65 AS col0 FROM tab2 cor0
----
-65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1081
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - 93 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1081
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - 93 AS col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 * col0 + col1 col2 FROM tab0 AS cor0
----
1871
566
797
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1083
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * - col0 AS col1 FROM tab2 cor0
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-1083
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * - col0 AS col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 + col1 * ( 4 ) + col0 AS col2 FROM tab1 AS cor0
----
36
47
53
query I rowsort
SELECT ALL + ( - col0 ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col2 - col1 * ( + 68 ) AS col0 FROM tab2 AS cor0
----
-1118
-2081
-3986
query I rowsort
SELECT - ( - col2 ) * - cor0.col0 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL col0 - + col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT DISTINCT + + col1 * col1 + - ( - cor0.col1 ) AS col0 FROM tab2 cor0
----
306
3540
992
query I rowsort
SELECT ALL + - col0 + - cor0.col2 + - 18 AS col0 FROM tab2 AS cor0
----
-122
-135
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1091
SELECT - cor0.col0 - - col1 DIV + col0 FROM tab2 AS cor0
----
-3
-78
-79
skipif mysql # not compatible
query I rowsort label-1091
SELECT - cor0.col0 - - col1 / + col0 FROM tab2 AS cor0
----
-3
-78
-79
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-1093
SELECT + 55 - - cor0.col2 * - CAST( col2 + col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-13393
-2123
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1093
SELECT + 55 - - cor0.col2 * - CAST ( col2 + col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-13393
-2123
53
query I rowsort
SELECT DISTINCT - col0 + + col0 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7
query I rowsort
SELECT - cor0.col0 * ( + col2 ) + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL - + col0 * - 48 AS col0 FROM tab1 AS cor0
----
144
3072
3840
query I rowsort
SELECT DISTINCT - col1 + 29 AS col2 FROM tab1 AS cor0
----
16
19
3
query I rowsort
SELECT ALL + cor0.col0 + cor0.col0 - 40 AS col2 FROM tab1 AS cor0
----
-34
120
88
query I rowsort
SELECT ALL 89 AS col1 FROM tab1
----
89
89
89
query I rowsort
SELECT ALL - col2 * + col1 + - ( col0 * 88 ) AS col0 FROM tab0 AS cor0
----
-15294
-3177
-4950
query I rowsort
SELECT DISTINCT - col2 * - col0 + - 35 FROM tab1 AS cor0
----
127
3613
7645
query I rowsort
SELECT DISTINCT + col1 + + ( - col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL col1 * - col1 + - col1 * ( + 60 ) AS col1 FROM tab0 AS cor0
----
-12556
-13741
-15229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + - ( - col1 ) col1 FROM tab1 AS cor0
----
-63
-76
-79
query I rowsort
SELECT 42 * cor0.col0 + col2 FROM tab0 AS cor0
----
1041
1471
3820
query I rowsort
SELECT ALL 87 + col2 FROM tab2 AS cor0
----
113
114
125
query I rowsort
SELECT ALL - 95 * col1 FROM tab0 AS cor0
----
-8170
-8645
-9215
query I rowsort
SELECT col0 + 70 FROM tab2
----
148
149
77
query I rowsort
SELECT + tab1.col1 + - ( - col2 * col2 ) FROM tab1
----
2942
3259
9229
query I rowsort
SELECT - 19 * col2 AS col0 FROM tab1 AS cor0
----
-1026
-1083
-1824
query I rowsort
SELECT col0 * - 18 AS col1 FROM tab1 AS cor0
----
-1152
-1440
-54
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1113
SELECT - col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1113
SELECT - col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL 10 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + + 11 * - col0 col0 FROM tab2
----
-50
-831
-832
query I rowsort
SELECT 41 * 3 FROM tab1, tab0 AS cor0
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb
query I rowsort
SELECT DISTINCT + col2 * + col0 * col0 FROM tab2
----
1323
158184
237158
query I rowsort
SELECT ALL 43 AS col0 FROM tab1, tab0, tab1 cor0, tab0 cor1
----
81 values hashing to 53b2f139a07f856ac44a1158efd4e63d
query I rowsort
SELECT + col0 + + col0 * col2 AS col0 FROM tab1
----
165
3712
7760
query I rowsort
SELECT DISTINCT 50 AS col0 FROM tab2, tab0 AS cor0
----
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-1121
SELECT + 75 + - col2 DIV - col1 FROM tab2
----
75
75
77
skipif mysql # not compatible
query I rowsort label-1121
SELECT + 75 + - col2 / - col1 FROM tab2
----
75
75
77
query I rowsort
SELECT + - ( col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + 21 FROM tab2
----
21
21
21
query I rowsort
SELECT ALL 14 AS col1 FROM tab1
----
14
14
14
query I rowsort
SELECT - + cor0.col2 AS col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT col2 * tab0.col0 + + 96 + col2 FROM tab0
----
132
7476
921
query I rowsort
SELECT 85 + - 15 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + tab0.col2 * + ( col0 ) col0 FROM tab0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-1129
SELECT col2 DIV 2 FROM tab0 AS cor0
----
0
16
41
skipif mysql # not compatible
query I rowsort label-1129
SELECT col2 / 2 FROM tab0 AS cor0
----
0
16
41
query I rowsort
SELECT + col2 - - col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT 98 * tab2.col0 * 33 + + 23 FROM tab2
----
22661
252275
255509
onlyif mysql # use DIV operator for integer division
query I rowsort label-1132
SELECT DISTINCT + 67 DIV tab2.col1 + col1 AS col0 FROM tab2
----
20
33
60
skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT + 67 / tab2.col1 + col1 AS col0 FROM tab2
----
20
33
60
query I rowsort
SELECT 10 * - col1 * col0 AS col1 FROM tab2
----
-13430
-2170
-46020
query I rowsort
SELECT DISTINCT 75 * tab0.col2 + + col0 * tab0.col0 + + col2 * 55 * - col2 FROM tab0
----
-355749
-56844
1245
query I rowsort
SELECT ALL + - cor0.col0 * - col2 + + 92 + col0 FROM tab0 AS cor0
----
162
7479
908
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0 AS cor2, tab2 AS cor3
----
3645 values hashing to d752a38ff42b067eedd12ad6c3f9365e
query I rowsort
SELECT + - col0 * - 79 + + col0 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-1360
1408
75
query I rowsort
SELECT DISTINCT col1 + - ( col2 ) AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + - col1 * ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col1 + CAST ( col1 AS REAL ) * col0 FROM tab0 AS cor0
----
1978
3298
8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( + col1 ) * col2 col2 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + 77 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT + + col2 * col1 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1144
SELECT DISTINCT + col2 DIV - ( + 93 ) AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT + col2 / - ( + 93 ) AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + col0 + + CAST ( + col0 AS REAL ) col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - col1 + 57 FROM tab1 AS cor0
----
31
44
47
query I rowsort
SELECT ALL col1 * - 37 AS col0 FROM tab0 AS cor0
----
-3182
-3367
-3589
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col2 col0 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - - 39 AS col0 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT - 62 AS col2 FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT + col2 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-1152
SELECT ALL - col2 + + cor0.col1 DIV + 11 - + col0 AS col1 FROM tab2 AS cor0
----
-116
-32
-99
skipif mysql # not compatible
query I rowsort label-1152
SELECT ALL - col2 + + cor0.col1 / + 11 - + col0 AS col1 FROM tab2 AS cor0
----
-116
-32
-99
query I rowsort
SELECT DISTINCT + col0 + + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + col0 + + col2 + - 5 * - col2 FROM tab2 AS cor0
----
169
234
307
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 65 + + cor0.col0 col0 FROM tab0 cor0
----
100
2169
5419
query I rowsort
SELECT - col1 * col2 * col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT ALL + cor0.col1 * - 67 - - col0 FROM tab1 AS cor0
----
-1739
-606
-791
query I rowsort
SELECT ( + col1 ) * + 91 AS col1 FROM tab0
----
7826
8281
8827
query I rowsort
SELECT + ( - 92 ) AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1160
SELECT + ( cor0.col0 ) * col1 + CAST( NULL AS SIGNED ) + - 70 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1160
SELECT + ( cor0.col0 ) * col1 + CAST ( NULL AS INTEGER ) + - 70 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 22 * col2 FROM tab1 AS cor0
----
1188
1254
2112
onlyif mysql # use DIV operator for integer division
query I rowsort label-1162
SELECT - 56 + + 56 DIV col0 FROM tab1 AS cor0
----
-38
-56
-56
skipif mysql # not compatible
query I rowsort label-1162
SELECT - 56 + + 56 / col0 FROM tab1 AS cor0
----
-38
-56
-56
query I rowsort
SELECT - col1 - + col1 FROM tab2 cor0
----
-118
-34
-62
query I rowsort
SELECT - col1 * + 81 + col1 AS col2 FROM tab1 AS cor0
----
-1040
-2080
-800
query I rowsort
SELECT + col0 * + 89 * col0 FROM tab1 AS cor0
----
364544
569600
801
query I rowsort
SELECT 31 * col1 FROM tab2 AS cor0
----
1829
527
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1167
SELECT DISTINCT + col2 * - CAST( NULL AS DECIMAL ) + + ( col0 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1167
SELECT DISTINCT + col2 * - CAST ( NULL AS REAL ) + + ( col0 ) FROM tab1
----
NULL
query I rowsort
SELECT ALL + tab0.col1 + + col1 AS col0 FROM tab0
----
172
182
194
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + - 86 AS col2 FROM tab2 AS cor0
----
-86
-86
-86
query I rowsort
SELECT - 9 * + col1 * 96 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-15334
-27621
-52510
query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab1, tab2 cor0
----
-57
query I rowsort
SELECT ALL cor0.col2 * - col0 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT col1 * col0 + + col1 AS col1 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1175
SELECT ALL CAST( - col1 AS SIGNED ) AS col1 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-1175
SELECT ALL CAST ( - col1 AS INTEGER ) AS col1 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + col2 * col1 - 43 AS col0 FROM tab0 AS cor0
----
2795
54
7419
query I rowsort
SELECT - - cor0.col0 + col1 + - ( - col2 * + col0 + col1 ) FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1178
SELECT + 28 DIV + 20 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1178
SELECT + 28 / + 20 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL 6 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query I rowsort
SELECT + + 56 AS col1 FROM tab2, tab0, tab0 cor0, tab1
----
81 values hashing to 9cee91ca9c60ba6e45a33b388a3b7d9b
query I rowsort
SELECT ALL + - 93 FROM tab1 cor0
----
-93
-93
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1182
SELECT - + 93 DIV - col0 - - col1 * col2 AS col2 FROM tab0 AS cor0
----
2841
7463
99
skipif mysql # not compatible
query I rowsort label-1182
SELECT - + 93 / - col0 - - col1 * col2 AS col2 FROM tab0 AS cor0
----
2841
7463
99
query I rowsort
SELECT col2 * - cor0.col2 + 18 + + 13 AS col1 FROM tab1 AS cor0
----
-2885
-3218
-9185
query I rowsort
SELECT DISTINCT 58 * - tab2.col0 + + tab2.col0 - + col0 AS col1 FROM tab2
----
-406
-4524
-4582
query I rowsort
SELECT ALL col1 - col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT + 46 AS col0 FROM tab1
----
46
46
46
query I rowsort
SELECT + 25 * col0 AS col2 FROM tab0
----
2225
600
875
query I rowsort
SELECT col1 * - col1 * + col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT 61 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab0.col1 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1191
SELECT DISTINCT col1 + - col0 * CAST( NULL AS SIGNED ) + 67 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT col1 + - col0 * CAST ( NULL AS INTEGER ) + 67 FROM tab1
----
NULL
query I rowsort
SELECT + - cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - col0 + - col0 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-118860
-49560
-720900
query I rowsort
SELECT DISTINCT col2 + + cor0.col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT ALL - - col1 * col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT ALL - col0 * cor0.col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT + cor0.col2 + + col2 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + col0 - tab0.col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col1 * 11 + - col2 * cor0.col1 FROM tab2 AS cor0
----
-459
-496
-885
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 AS cor1, tab1, tab0 cor2
----
3645 values hashing to 3b4587ab6c08d2179c6df094d2f76ad7
query I rowsort
SELECT ( 81 ) FROM tab0 cor0
----
81
81
81
query I rowsort
SELECT + cor0.col2 + 72 FROM tab0 AS cor0
----
105
154
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1203
SELECT ALL + CAST( NULL AS SIGNED ) + 25 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + CAST ( NULL AS INTEGER ) + 25 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( ( - col1 ) ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL col0 + + col1 + - col2 FROM tab0
----
131
77
98
query I rowsort
SELECT cor0.col0 * - 3 * col0 AS col2 FROM tab1 AS cor0
----
-12288
-19200
-27
query I rowsort
SELECT + + cor0.col0 * col2 AS col1 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - cor0.col2 * 77 AS col2 FROM tab1 cor0
----
-4158
-4389
-7392
query I rowsort
SELECT - col1 + col0 + ( + 30 + + col1 ) FROM tab1
----
110
33
94
query I rowsort
SELECT 90 * + col1 + + col0 FROM tab1
----
1250
2343
964
onlyif mysql # use DIV operator for integer division
query I rowsort label-1211
SELECT col2 + col0 * ( col1 ) DIV ( col0 ) FROM tab2
----
55
58
85
skipif mysql # not compatible
query I rowsort label-1211
SELECT col2 + col0 * ( col1 ) / ( col0 ) FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + col2 * + col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 24 col1 FROM tab1 AS cor0
----
240
312
624
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1214
SELECT col2 * CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-1214
SELECT col2 * CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1216
SELECT DISTINCT + + col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1216
SELECT DISTINCT + + col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + col2 + 65 FROM tab2 AS cor0
----
103
91
92
query I rowsort
SELECT + + col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-105
-112
-50
query I rowsort
SELECT DISTINCT col1 - ( + col0 ) * - col1 * col2 AS col0 FROM tab0 cor0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT + col0 - 81 * - col2 AS col2 FROM tab2 AS cor0
----
2184
2194
3157
query I rowsort
SELECT - col0 + + 23 * col2 FROM tab1 AS cor0
----
1239
1247
2128
onlyif mysql # use DIV operator for integer division
query I rowsort label-1223
SELECT ALL col0 * - cor0.col0 + + col2 + + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
-22
-6057
-6199
skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL col0 * - cor0.col0 + + col2 + + col0 / + col1 AS col2 FROM tab2 AS cor0
----
-22
-6057
-6199
query I rowsort
SELECT + ( - 64 ) + + col1 * col0 + col2 AS col2 FROM tab1
----
1072
633
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-1225
SELECT + tab0.col0 DIV + 53 col1 FROM tab0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1225
SELECT + tab0.col0 / + 53 col1 FROM tab0
----
0
0
1
query I rowsort
SELECT + 54 * - tab0.col1 FROM tab0
----
-4644
-4914
-5238
query I rowsort
SELECT DISTINCT ( col2 ) + - col0 + col0 * col0 FROM tab0
----
1191
585
7914
query I rowsort
SELECT cor0.col1 * - col0 + - col0 - + col2 AS col0 FROM tab1 AS cor0
----
-1216
-135
-761
query I rowsort
SELECT DISTINCT - + ( + ( + col2 ) ) + - ( cor0.col0 ) * - col1 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT DISTINCT - 22 * col2 * col2 + 8 * 99 + - col0 FROM tab0 cor0
----
-147225
-23190
735
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1231
SELECT + CAST( - cor0.col0 AS SIGNED ) + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-1231
SELECT + CAST ( - cor0.col0 AS INTEGER ) + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1232
SELECT ALL CAST( NULL AS SIGNED ) * 36 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1232
SELECT ALL CAST ( NULL AS INTEGER ) * 36 + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( + 53 ) + + col0 FROM tab0 AS cor0
----
142
77
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1234
SELECT ALL CAST( NULL AS SIGNED ) + - col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1234
SELECT ALL CAST ( NULL AS INTEGER ) + - col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 77 + + col0 FROM tab0 cor0
----
-42
-53
12
query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) FROM tab0 AS cor0
----
-2
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-1237
SELECT + col1 * + col2 DIV col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-1237
SELECT + col1 * + col2 / col2 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - col2 + col1 * col0 + 19 FROM tab0 AS cor0
----
2050
3413
8036
query I rowsort
SELECT ALL + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + cor0.col0 * + 37 FROM tab1 AS cor0
----
111
2368
2960
onlyif mysql # use DIV operator for integer division
query I rowsort label-1242
SELECT + - col0 + - col1 * 14 DIV - col1 AS col2 FROM tab2 AS cor0
----
-64
-65
7
skipif mysql # not compatible
query I rowsort label-1242
SELECT + - col0 + - col1 * 14 / - col1 AS col2 FROM tab2 AS cor0
----
-64
-65
7
query I rowsort
SELECT DISTINCT 13 * col0 AS col0 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT 10 * - col1 AS col0 FROM tab2
----
-170
-310
-590
onlyif mysql # use DIV operator for integer division
query I rowsort label-1245
SELECT + - col2 DIV cor0.col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-1245
SELECT + - col2 / cor0.col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT + - col1 + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT + + ( - col0 ) AS col1 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1248
SELECT + - col0 * col0 + + 24 DIV cor0.col0 FROM tab2 AS cor0
----
-46
-6084
-6241
skipif mysql # not compatible
query I rowsort label-1248
SELECT + - col0 * col0 + + 24 / cor0.col0 FROM tab2 AS cor0
----
-46
-6084
-6241
query I rowsort
SELECT ALL - ( + col2 ) * - 57 + col2 AS col2 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT DISTINCT + 60 * col2 - - col2 * - col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
24219
26828
41444
query I rowsort
SELECT DISTINCT - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - + 42 + col0 AS col2 FROM tab0 AS cor0
----
-18
-7
47
query I rowsort
SELECT DISTINCT + col0 * col0 - col2 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
1322
619805
94230
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + cor0.col1 * col0 * cor0.col1 col1 FROM tab1 cor0
----
13533
2054
6410
query I rowsort
SELECT - 12 + col1 AS col2 FROM tab0 AS cor0
----
74
79
85
query I rowsort
SELECT - - col2 - + col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 58 + col1 AS col1 FROM tab1 AS cor0
----
68
71
84
query I rowsort
SELECT 12 * cor0.col2 + col2 FROM tab2 AS cor0
----
338
351
494
query I rowsort
SELECT - 41 AS col1 FROM tab0 AS cor0
----
-41
-41
-41
query I rowsort
SELECT - - col0 + 47 * + col1 FROM tab0 AS cor0
----
4066
4366
4594
query I rowsort
SELECT tab2.col0 + - 97 * 44 FROM tab2, tab2 AS cor0
----
9 values hashing to 97f09bde799219b4dd7c81d87433bff8
query I rowsort
SELECT col0 + - 54 FROM tab0 AS cor0
----
-19
-30
35
query I rowsort
SELECT col1 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-636056
-753571
-912673
onlyif mysql # use DIV operator for integer division
query I rowsort label-1264
SELECT ALL - cor0.col2 DIV col1 + + col1 - - col1 FROM tab0 cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-1264
SELECT ALL - cor0.col2 / col1 + + col1 - - col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT ALL - + col1 - + col1 * - col2 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT + 46 * col0 + - col1 AS col1 FROM tab2 AS cor0
----
291
3529
3617
query I rowsort
SELECT - + col1 * - col0 * col2 FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 87 AS REAL ) FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT ALL col2 + - col1 AS col1 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 col2 FROM tab1, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1271
SELECT + col1 * + cor0.col2 + CAST( - ( + col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
2805
7380
96
skipif mysql # not compatible
query I rowsort label-1271
SELECT + col1 * + cor0.col2 + CAST ( - ( + col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT cor0.col2 + + tab0.col0 * + cor0.col1 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a863561b8472917021c583e8ee6c893f
query I rowsort
SELECT DISTINCT - 78 * col2 + - col2 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT DISTINCT + cor1.col2 * 91 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
4914
5187
8736
query I rowsort
SELECT 84 FROM tab1, tab2, tab0 AS cor0, tab0
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1276
SELECT + CAST( NULL AS SIGNED ) * - tab2.col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1276
SELECT + CAST ( NULL AS INTEGER ) * - tab2.col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - - col2 + - 62 FROM tab1 AS cor0
----
-5
-8
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1278
SELECT CAST( - 10 AS SIGNED ) FROM tab2 AS cor0
----
-10
-10
-10
skipif mysql # not compatible
query I rowsort label-1278
SELECT CAST ( - 10 AS INTEGER ) FROM tab2 AS cor0
----
-10
-10
-10
query I rowsort
SELECT ( + col0 ) * col0 + - ( cor0.col2 ) AS col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT - 79 AS col2 FROM tab1 AS cor0
----
-79
query I rowsort
SELECT + col1 * col2 + col1 AS col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1, tab2 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT - ( col0 ) AS col1 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT col2 * + col2 * + 13 - - ( col2 ) AS col0 FROM tab1
----
119904
37962
42294
query I rowsort
SELECT - + 47 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1201
1357
523
query I rowsort
SELECT + 68 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
query I rowsort
SELECT - - col0 * col1 + - 69 FROM tab0 AS cor0
----
1995
3326
8030
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1288
SELECT + + cor0.col1 / - CAST( NULL AS SIGNED ) - col0 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1288
SELECT + + cor0.col1 / - CAST ( NULL AS INTEGER ) - col0 * - col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 - + col1 col0 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT - col2 + 59 - col1 * - col0 FROM tab0 AS cor0
----
2090
3453
8076
query I rowsort
SELECT - col1 - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL 74 * col2 FROM tab1
----
3996
4218
7104
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + col2 + col0 FROM tab2 AS cor0
----
1460
251
4706
onlyif mysql # use DIV operator for integer division
query I rowsort label-1294
SELECT - + col0 DIV + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1294
SELECT - + col0 / + cor0.col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL tab0.col1 * col1 AS col2 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + 36 FROM tab0, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT col2 * + tab0.col0 + - col1 AS col0 FROM tab0
----
-62
706
7207
query I rowsort
SELECT + col1 + ( + col0 ) FROM tab1
----
29
74
93
query I rowsort
SELECT ALL + col1 * - 15 + col1 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
-248
1088
3717
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ALL + + col2 - - col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - + col1 * + 50 AS col2 FROM tab2 cor0
----
-1550
-2950
-850
query I rowsort
SELECT + cor0.col0 + 85 * col1 FROM tab0 AS cor0
----
7334
7824
8280
query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 + + 61 * + cor0.col1 + col1 col2 FROM tab0 AS cor0
----
5373
5683
6055
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1306
SELECT DISTINCT + - CAST( 29 AS SIGNED ) FROM tab0 AS cor0
----
-29
skipif mysql # not compatible
query I rowsort label-1306
SELECT DISTINCT + - CAST ( 29 AS INTEGER ) FROM tab0 AS cor0
----
-29
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - - col2 + ( - col1 + + col0 ) AS col1 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT DISTINCT + + 50 AS col2 FROM tab1 AS cor0
----
50
query I rowsort
SELECT DISTINCT + + 7 + col1 * - col0 FROM tab1 AS cor0
----
-1033
-633
-71
query I rowsort
SELECT ALL + cor0.col2 + + col2 FROM tab0 cor0
----
164
2
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1312
SELECT + CAST( 66 AS SIGNED ) - - col1 FROM tab0 AS cor0
----
152
157
163
skipif mysql # not compatible
query I rowsort label-1312
SELECT + CAST ( 66 AS INTEGER ) - - col1 FROM tab0 AS cor0
----
152
157
163
query I rowsort
SELECT ALL + cor0.col0 + + col0 * col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + col0 * col0 + tab0.col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT + col1 + - 75 * tab2.col1 - col0 FROM tab2
----
-1337
-2301
-4444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col2 col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - 31 + - col2 FROM tab1 cor0
----
-127
-85
-88
query I rowsort
SELECT ALL + ( col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT 17 * + col2 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT ALL + col1 * col1 * col2 AS col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT + + 0 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 2 + + col0 FROM tab0 cor0
----
26
37
91
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL - 37 - - cor0.col1 * - col2 * + col2 FROM tab1 cor0
----
-119845
-32527
-75853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1325
SELECT - ( - cor0.col1 ) * + CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
skipif mysql # not compatible
query I rowsort label-1325
SELECT - ( - cor0.col1 ) * + CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT 76 * cor0.col1 AS col1 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT - - col1 + col0 * col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + + col1 + - col1 AS col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 + + 82 * col0 * + 30 FROM tab1
----
157497
196896
7434
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1330
SELECT CAST( ( col2 ) AS SIGNED ) - - tab0.col2 * col1 FROM tab0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-1330
SELECT CAST ( ( col2 ) AS INTEGER ) - - tab0.col2 * col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT tab1.col0 * - 77 AS col0 FROM tab1
----
-231
-4928
-6160
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1332
SELECT CAST( 59 * - col2 AS SIGNED ) AS col1 FROM tab2
----
-1534
-1593
-2242
skipif mysql # not compatible
query I rowsort label-1332
SELECT CAST ( 59 * - col2 AS INTEGER ) AS col1 FROM tab2
----
-1534
-1593
-2242
query I rowsort
SELECT tab0.col1 * - 48 AS col2 FROM tab0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL - cor0.col2 FROM tab2, tab2 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT + col1 + + col1 AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT ALL - 73 FROM tab0
----
-73
-73
-73
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 AS col2 FROM tab2 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col1 + cor0.col1 * col2 + col0 AS col1 FROM tab1 AS cor0
----
1341
1433
644
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + - col1 + - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT - col1 + col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
54
57
96
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( NULL ) OR NOT NULL > col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1346
SELECT DISTINCT - cor0.col1 DIV col0 FROM tab2 AS cor0
----
-4
0
skipif mysql # not compatible
query I rowsort label-1346
SELECT DISTINCT - cor0.col1 / col0 FROM tab2 AS cor0
----
-4
0
query I rowsort
SELECT + + col2 * - col0 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * + col1 + + col1 * col1 col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1349
SELECT col1 + col1 DIV col1 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-1349
SELECT col1 + col1 / col1 FROM tab2
----
18
32
60
query I rowsort
SELECT DISTINCT + col0 + - col0 * - col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT - col2 * + tab1.col0 * + col1 + col1 * + col2 - tab1.col0 * + col1 FROM tab1
----
-2886
-36550
-99632
query I rowsort
SELECT + col1 * col2 + col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + col1 + + col0 * - col1 AS col1 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col2 * col1 * col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT col2 + - col2 * col2 AS col0 FROM tab0
----
-1056
-6642
0
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + col2 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1357
SELECT + col1 DIV col2 + + tab0.col0 AS col1 FROM tab0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-1357
SELECT + col1 / col2 + + tab0.col0 AS col1 FROM tab0
----
132
26
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1358
SELECT DISTINCT + col0 * tab1.col1 DIV + col2 + tab1.col0 FROM tab1
----
4
75
90
skipif mysql # not compatible
query I rowsort label-1358
SELECT DISTINCT + col0 * tab1.col1 / + col2 + tab1.col0 FROM tab1
----
4
75
90
query I rowsort
SELECT DISTINCT - col0 * col2 + + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - col1 + col2 * + cor0.col1 - col0 FROM tab0 AS cor0
----
-35
2728
7282
query I rowsort
SELECT + - cor0.col0 * col2 + - col2 * col1 AS col1 FROM tab1 AS cor0
----
-1566
-4218
-8928
query I rowsort
SELECT tab0.col0 AS col1 FROM tab0 WHERE NULL NOT IN ( tab0.col1 )
----
query I rowsort
SELECT ALL - 62 FROM tab1
----
-62
-62
-62
query I rowsort
SELECT DISTINCT cor0.col0 * tab1.col2 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to d678abade8bf70a0dcfdc79d6219306c
query I rowsort
SELECT cor0.col0 * - col0 - col1 FROM tab1 AS cor0
----
-35
-4106
-6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 + col0 col1 FROM tab1
----
128
160
6
query I rowsort
SELECT - + 61 + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7457
-8342
-9470
query I rowsort
SELECT DISTINCT - tab2.col1 + + tab2.col1 AS col1 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1369
SELECT - col0 DIV col0 - col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-1369
SELECT - col0 / col0 - col2 AS col1 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT ALL col1 * + tab1.col0 + - col1 * col0 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * col0 + col2 + tab1.col1 AS col0 FROM tab1
----
1149
158
707
query I rowsort
SELECT ALL col1 * + col0 * col0 + + col2 FROM tab2
----
106135
1546
358982
query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL AND + col2 <= NULL
----
query I rowsort
SELECT DISTINCT - - col1 * + col2 - + col0 * + col0 FROM tab0 AS cor0
----
-1128
-459
2262
query I rowsort
SELECT ALL - col2 + cor0.col2 * + col2 AS col1 FROM tab1 cor0
----
2862
3192
9120
query I rowsort
SELECT ALL - col1 * tab0.col1 AS col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col2 * tab2.col1 AS col1 FROM tab2 WHERE NOT ( NULL ) > ( - col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1378
SELECT DISTINCT + col0 * + col0 * + col2 + - col1 DIV - col1 AS col1 FROM tab1
----
233473
487
614401
skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT + col0 * + col0 * + col2 + - col1 / - col1 AS col1 FROM tab1
----
233473
487
614401
query I rowsort
SELECT col2 + + col2 * col2 * + col2 FROM tab2
----
17602
19710
54910
query I rowsort
SELECT + col1 * col0 - + col1 FROM tab0
----
1978
3298
8008
query I rowsort
SELECT tab2.col0 * - col0 - col1 * - tab2.col1 FROM tab2
----
-2603
-5952
912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col2 * col2 - col0 col1 FROM tab1
----
2913
3185
9136
query I rowsort
SELECT ALL - col1 * + col1 + + col0 * col0 AS col0 FROM tab0
----
-360
-6820
-8184
query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * col1 NOT IN ( col0 + col1 + col1 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - col2 + - col0
----
query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT col1 * cor0.col2 + col0 + col1 * + col0 FROM tab1 AS cor0
----
1274
1485
2368
query I rowsort
SELECT DISTINCT - col0 + col0 + + col2 AS col0 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1389
SELECT DISTINCT + 26 DIV col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + 26 / col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col1 * col0 + tab0.col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT + col2 * + col1 * + tab2.col0 AS col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL col2 + col2 * col0 - col2 * - col0 AS col1 FROM tab2
----
405
4082
6042
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - col2 + + col1 + col0 IN ( col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT tab0.col1 * tab0.col1 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col1 FROM tab0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT ALL + col1 DIV col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL + col1 / col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT DISTINCT - cor0.col0 * + col0 * - cor0.col0 + + col2 FROM tab2 AS cor0
----
370
474578
493077
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > col1
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 = NULL
----
query I rowsort
SELECT DISTINCT - col1 * col1 + col0 * col1 FROM tab1 cor0
----
-598
540
871
query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 * col2 AND NULL
----
query I rowsort
SELECT - col0 + - col0 * col1 AS col1 FROM tab2
----
-1422
-224
-4680
query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col1 - + col2 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - col1 + col2 * + col1 + + col2 FROM tab1
----
1331
1432
617
query I rowsort
SELECT ALL - col1 * tab1.col2 - col1 FROM tab1
----
-1261
-1430
-580
query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col1 >= ( NULL )
----
query I rowsort
SELECT ALL col0 * col2 - col0 FROM tab2
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1410
SELECT col2 DIV + col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1410
SELECT col2 / + col1 AS col2 FROM tab1
----
2
5
7
query I rowsort
SELECT DISTINCT + col1 * tab1.col1 + - col0 FROM tab1
----
36
673
89
query I rowsort
SELECT - tab2.col1 * col2 * col2 + + col0 AS col0 FROM tab2 WHERE tab2.col1 > NULL
----
query I rowsort
SELECT ALL + col2 / - col0 FROM tab2 WHERE NULL IN ( + col1 )
----
query I rowsort
SELECT ALL - col1 + - col0 AS col0 FROM tab0 WHERE NOT - col2 / - col1 NOT IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col2 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT + col1 + - tab1.col0 FROM tab1
----
-54
-67
23
query I rowsort
SELECT DISTINCT - - col2 + - col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1419
SELECT col2 DIV cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-1419
SELECT col2 / cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT DISTINCT col2 * - cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 81 * - col2 FROM tab0 AS cor0
----
2673
6642
81
query I rowsort
SELECT + ( + col0 ) * + ( col0 ) + col1 FROM tab2 AS cor0
----
6143
6258
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1423
SELECT ALL - col2 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL - col2 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT 40 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT DISTINCT + 62 * col2 AS col1 FROM tab1
----
3348
3534
5952
query I rowsort
SELECT DISTINCT - 93 AS col0 FROM tab2
----
-93
query I rowsort
SELECT DISTINCT + tab1.col2 * col1 - col0 FROM tab1
----
1168
1401
506
query I rowsort
SELECT + col1 + + col0 * ( col2 * col1 ) + - col2 AS col0 FROM tab0
----
3491
664127
68165
query I rowsort
SELECT - 3 * col2 FROM tab2
----
-114
-78
-81
query I rowsort
SELECT - + 54 * + col2 * + col2 - ( col1 ) FROM tab1 AS cor0
----
-157490
-175456
-497677
onlyif mysql # use DIV operator for integer division
query I rowsort label-1431
SELECT - col2 * + col1 - col0 DIV col1 AS col0 FROM tab1 AS cor0
----
-1254
-1404
-576
skipif mysql # not compatible
query I rowsort label-1431
SELECT - col2 * + col1 - col0 / col1 AS col0 FROM tab1 AS cor0
----
-1254
-1404
-576
query I rowsort
SELECT DISTINCT + tab0.col0 - + col2 AS col2 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1433
SELECT 64 DIV + col0 + - col1 * - col0 - col2 * col1 FROM tab2
----
-611
3068
697
skipif mysql # not compatible
query I rowsort label-1433
SELECT 64 / + col0 + - col1 * - col0 - col2 * col1 FROM tab2
----
-611
3068
697
query I rowsort
SELECT col0 + - tab1.col1 + col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - cor0.col1 - + 15 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 5f4dc9dbb8e82ed43a051b47c2b45a9c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1436
SELECT + - col2 * + CAST( - cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-1436
SELECT + - col2 * + CAST ( - cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - ( - cor1.col1 ) AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT col1 * 43 AS col2 FROM tab1
----
1118
430
559
query I rowsort
SELECT 92 + + 30 FROM tab0 AS cor0
----
122
122
122
query I rowsort
SELECT - cor0.col2 + + col0 * + col0 AS col1 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT DISTINCT + - col0 * - col0 * + col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT DISTINCT col2 * ( + col0 ) AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT + ( + cor0.col2 ) * col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + 5 AS col2 FROM tab0 cor0
----
5
5
5
query I rowsort
SELECT 17 * ( + col1 ) * col1 FROM tab0
----
125732
140777
159953
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1446
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1446
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col2 FROM tab1
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + tab1.col0 * - col0 col2 FROM tab1
----
-12
-4160
-6480
query I rowsort
SELECT ALL - ( ( - col0 ) ) FROM tab1
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-1449
SELECT - 94 * + col2 + + col1 DIV tab0.col0 AS col2 FROM tab0
----
-3099
-7707
-92
skipif mysql # not compatible
query I rowsort label-1449
SELECT - 94 * + col2 + + col1 / tab0.col0 AS col2 FROM tab0
----
-3099
-7707
-92
query I rowsort
SELECT ALL 10 FROM tab1 AS cor0
----
10
10
10
query I rowsort
SELECT ALL + - ( col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + 76 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT DISTINCT - 76 + - col2 AS col2 FROM tab0 AS cor0
----
-109
-158
-77
query I rowsort
SELECT + col2 + 47 * + col1 FROM tab0 cor0
----
4075
4359
4560
query I rowsort
SELECT ALL 67 FROM tab1, tab1 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + col1 + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 81 AS col1 FROM tab1 AS cor0
----
-81
query I rowsort
SELECT ALL 12 + + col2 AS col2 FROM tab2 AS cor0
----
38
39
50
query I rowsort
SELECT ALL - 21 + + col1 FROM tab0 cor0
----
65
70
76
query I rowsort
SELECT + - 85 AS col0 FROM tab1 AS cor0
----
-85
-85
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col2 + col1 * + cor0.col1 * - col0 col1 FROM tab0 cor0
----
-177537
-329316
-737091
query I rowsort
SELECT ALL + 24 + + col0 * + cor0.col1 FROM tab2 AS cor0
----
1367
241
4626
query I rowsort
SELECT ALL col2 * - cor0.col2 + col2 + + col0 FROM tab1 AS cor0
----
-2859
-3128
-9040
query I rowsort
SELECT DISTINCT + col2 + - col0 * + col2 * + col1 FROM tab0 AS cor0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL - col0 * col1 * + cor0.col0 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT - 45 + + col2 * + col2 AS col2 FROM tab0 AS cor0
----
-44
1044
6679
query I rowsort
SELECT DISTINCT + col0 + + col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # use DIV operator for integer division
query I rowsort label-1468
SELECT ALL 2 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1468
SELECT ALL 2 / col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT ALL - ( col2 ) * - col1 AS col0 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + 91 FROM tab1
----
91
91
91
query I rowsort
SELECT cor0.col1 AS col2 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT + + col1 + - col1 FROM tab1 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 14 * col1 col2 FROM tab1 AS cor0
----
-140
-182
-364
query I rowsort
SELECT - col2 + + 63 AS col1 FROM tab2 AS cor0
----
25
36
37
query I rowsort
SELECT DISTINCT cor0.col2 * + ( cor0.col0 ) + col1 * col1 AS col1 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT - col0 * - cor0.col0 - - col1 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT - - col1 + col1 * col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL - - col0 * col0 + col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1479
SELECT ALL + col1 + CAST( NULL AS SIGNED ) * - 70 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1479
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) * - 70 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 20 AS col0 FROM tab0
----
-20
-20
-20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT - + col2 + - 47 FROM tab0 AS cor0
----
-129
-48
-80
query I rowsort
SELECT ALL + + col0 + - 40 FROM tab2 AS cor0
----
-33
38
39
query I rowsort
SELECT ALL col1 * - 7 + col1 + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
1674
2900
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-1485
SELECT DISTINCT col0 DIV cor0.col1 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT col0 / cor0.col1 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT - - col1 * col0 * 49 - col1 FROM tab2 AS cor0
----
10602
225439
65790
query I rowsort
SELECT ALL col0 * + 53 + col1 * col1 * - col0 FROM tab0 AS cor0
----
-176232
-327460
-732292
query I rowsort
SELECT DISTINCT - col2 - - 98 FROM tab0 cor0
----
16
65
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1489
SELECT DISTINCT 78 + + col0 DIV + cor0.col1 + + col1 FROM tab2 AS cor0
----
109
138
99
skipif mysql # not compatible
query I rowsort label-1489
SELECT DISTINCT 78 + + col0 / + cor0.col1 + + col1 FROM tab2 AS cor0
----
109
138
99
query I rowsort
SELECT - 32 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT + + 79 AS col0 FROM tab2 AS cor0
----
79
79
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1492
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + col0 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-1492
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + col0 FROM tab0 AS cor0
----
171
36
57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1493
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 * - col2 + + col2 AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 + tab0.col1 * + tab0.col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - col2 + + col2 * + 8 FROM tab0
----
231
574
7
query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1497
SELECT + col2 - + CAST( + col0 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-108
-3591
-7584
skipif mysql # not compatible
query I rowsort label-1497
SELECT + col2 - + CAST ( + col0 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT DISTINCT col1 * - col0 * - cor0.col2 + + col0 + ( col1 * - col1 ) FROM tab0 cor0
----
-5979
60740
655926
query I rowsort
SELECT ALL + + col0 + col2 * - ( col0 ) + col2 * + ( col1 ) FROM tab0 AS cor0
----
2070
253
97
query I rowsort
SELECT ALL col1 + ( col1 ) FROM tab1
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + ( col2 ) col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + cor0.col1 + col2 * - col0 * - col0 AS col2 FROM tab1 cor0
----
233482
512
614413
query I rowsort
SELECT ALL col0 * ( + col2 ) + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT col0 * 35 + - cor0.col1 FROM tab2 AS cor0
----
214
2671
2748
query I rowsort
SELECT ALL - col1 + 39 + 24 AS col2 FROM tab0 AS cor0
----
-23
-28
-34
query I rowsort
SELECT - 70 + - col1 + + col0 * col2 FROM tab1 cor0
----
3568
66
7597
query I rowsort
SELECT - - 89 * col0 + cor0.col2 AS col1 FROM tab2 AS cor0
----
650
6968
7069
query I rowsort
SELECT + col1 - + cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - ( + col2 ) + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL col1 + - 81 AS col1 FROM tab1 AS cor0
----
-55
-68
-71
query I rowsort
SELECT + col2 * - 93 + + col1 FROM tab2 AS cor0
----
-2359
-2480
-3517
query I rowsort
SELECT DISTINCT + 83 * ( + col1 ) FROM tab1 AS cor0
----
1079
2158
830
query I rowsort
SELECT + cor0.col1 + - col0 - cor0.col0 FROM tab1 AS cor0
----
-118
-147
20
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1514
SELECT CAST( NULL AS SIGNED ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1514
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - tab1.col1 * col2 AS col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - - 20 - col2 AS col0 FROM tab2 AS cor0
----
-18
-6
-7
query I rowsort
SELECT ALL - + cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + - 59 + + col0 AS col2 FROM tab1 AS cor0
----
-56
21
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1520
SELECT DISTINCT - col2 DIV col0 + - ( 98 ) FROM tab0 AS cor0
----
-98
-99
skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT - col2 / col0 + - ( 98 ) FROM tab0 AS cor0
----
-98
-99
query I rowsort
SELECT ALL + 19 AS col1 FROM tab1 AS cor0
----
19
19
19
query I rowsort
SELECT DISTINCT 99 + + col0 FROM tab1 AS cor0
----
102
163
179
query I rowsort
SELECT ALL + 0 * col0 - ( + col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - + col0 * + col1 * ( cor0.col2 ) FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL - + col2 + col2 * col1 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - 40 - cor0.col2 AS col2 FROM tab0 AS cor0
----
-122
-41
-73
query I rowsort
SELECT ALL + - col2 + col2 * + cor0.col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT ALL 93 * + col1 + 79 AS col0 FROM tab0 AS cor0
----
8077
8542
9100
query I rowsort
SELECT DISTINCT col0 * col0 - + col0 * - 29 FROM tab0 AS cor0
----
10502
1272
2240
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col1 col1 FROM tab0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col0 FROM tab0 AS cor0
----
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + cor0.col2 * col0 col0 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col1 FROM tab1
----
-75
-75
-75
query I rowsort
SELECT - ( cor0.col0 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT + + col2 + - 23 * - ( col2 ) AS col1 FROM tab0 cor0
----
1968
24
792
query I rowsort
SELECT - col2 * - 33 + + col1 FROM tab0 AS cor0
----
1175
130
2797
query I rowsort
SELECT - cor0.col0 + + 73 AS col2 FROM tab2 AS cor0
----
-5
-6
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col2 col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - 54 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT cor0.col0 * col2 + - col2 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT 23 * - col2 FROM tab0
----
-1886
-23
-759
query I rowsort
SELECT + 1 * + col2 + + col2 AS col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 64 col1 FROM tab1 AS cor0
----
-64
query I rowsort
SELECT ALL - cor0.col2 * - col2 AS col0 FROM tab0 AS cor0
----
1
1089
6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) * + col1 col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + ( 0 ) AS col0 FROM tab0
----
0
query I rowsort
SELECT ALL + col0 + - col2 * ( - 79 ) FROM tab2 cor0
----
2132
2140
3081
query I rowsort
SELECT - 7 * col1 AS col2 FROM tab0
----
-602
-637
-679
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * col0 col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT cor0.col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL 6 * 50 + col2 AS col1 FROM tab0 AS cor0
----
301
333
382
query I rowsort
SELECT + 80 * + col2 + - col1 FROM tab0 AS cor0
----
-17
2554
6469
query I rowsort
SELECT - + 98 AS col0 FROM tab0 AS cor0
----
-98
-98
-98
query I rowsort
SELECT DISTINCT 38 + - col1 FROM tab1 AS cor0
----
12
25
28
query I rowsort
SELECT ALL - - col0 * + col1 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - - 25 * cor0.col2 FROM tab1 AS cor0
----
1350
1425
2400
query I rowsort
SELECT + + 28 + - col0 FROM tab0 AS cor0
----
-61
-7
4
query I rowsort
SELECT ALL - cor0.col0 + - col2 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-165
-3712
-7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1559
SELECT DISTINCT + 70 DIV - 56 - + col2 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT + 70 / - 56 - + col2 FROM tab1 AS cor0
----
-55
-58
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1560
SELECT DISTINCT - 40 * col2 * CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1560
SELECT DISTINCT - 40 * col2 * CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + col0 + col0 AS col1 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT DISTINCT - + col2 + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 * col0 col2 FROM tab2 AS cor0
----
273
3042
3081
query I rowsort
SELECT ALL + 77 + cor0.col2 FROM tab2 AS cor0
----
103
104
115
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1565
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 79 AS col1 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 79 AS col1 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT - col1 * col2 * - 16 AS col1 FROM tab2 AS cor0
----
10336
13392
24544
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1567
SELECT - - 95 * col2 * col1 + - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1567
SELECT - - 95 * col2 * col1 + - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 88 + + 30 AS col1 FROM tab0 AS cor0
----
118
118
118
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 70 col0 FROM tab1
----
1820
700
910
query I rowsort
SELECT DISTINCT + 94 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
94
query I rowsort
SELECT - - col0 * - col1 + + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT col0 * + col2 * + col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col0 FROM tab2
----
306
3540
992
query I rowsort
SELECT DISTINCT + col0 + col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT tab1.col0 + col2 * + col1 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL col1 * col2 + 60 AS col2 FROM tab0
----
157
2898
7522
query I rowsort
SELECT - - col0 + 21 * col1 AS col2 FROM tab2 AS cor0
----
1317
436
658
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1, tab0 AS cor2
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
onlyif mysql # use DIV operator for integer division
query I rowsort label-1579
SELECT ALL - col0 DIV col2 + - col2 * col2 FROM tab1 AS cor0
----
-2916
-3250
-9216
skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - col0 / col2 + - col2 * col2 FROM tab1 AS cor0
----
-2916
-3250
-9216
query I rowsort
SELECT ALL ( ( tab2.col2 ) ) FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT 82 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT 2 FROM tab0, tab2 AS cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
query I rowsort
SELECT ( col2 ) + col0 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL + 41 FROM tab0
----
41
41
41
query I rowsort
SELECT DISTINCT 32 FROM tab0 cor0
----
32
query I rowsort
SELECT ALL - col0 + 41 * col2 AS col1 FROM tab2 AS cor0
----
1100
1479
988
query I rowsort
SELECT DISTINCT cor0.col1 * - 53 + col0 FROM tab2 AS cor0
----
-1636
-3049
-822
query I rowsort
SELECT + + ( + col1 ) * col0 AS col0 FROM tab1 cor0
----
1040
640
78
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 cor2
----
972 values hashing to 8420206d6932c454f05a38de634b3cb5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1590
SELECT DISTINCT - ( + 16 ) DIV col0 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-1590
SELECT DISTINCT - ( + 16 ) / col0 FROM tab0 cor0
----
0
query I rowsort
SELECT - 77 * + col0 FROM tab0
----
-1848
-2695
-6853
query I rowsort
SELECT - cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT 56 * col2 * + col1 AS col0 FROM tab0 AS cor0
----
158928
417872
5432
query I rowsort
SELECT col0 * + col2 + tab2.col0 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col0 - - col2 AS col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1596
SELECT 21 DIV col0 col2 FROM tab1
----
0
0
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1596
SELECT 21 / col0 col2 FROM tab1
----
0
0
7
query I rowsort
SELECT + 70 + + col2 AS col1 FROM tab0
----
103
152
71
query I rowsort
SELECT ALL - col1 - col2 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - col2 * col2 + + col1 * tab1.col2 + - col2 * + col0 FROM tab1
----
-15648
-1674
-6327
query I rowsort
SELECT DISTINCT + col0 + tab1.col1 - 72 FROM tab1
----
-43
2
21
query I rowsort
SELECT ALL + col0 * cor0.col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + ( col2 ) + + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT - 35 * col0 FROM tab1 AS cor0
----
-105
-2240
-2800
query I rowsort
SELECT + + col0 * cor0.col0 + - 51 + - col0 FROM tab1 AS cor0
----
-45
3981
6269
query I rowsort
SELECT col1 + + 14 FROM tab0 cor0
----
100
105
111
onlyif mysql # use DIV operator for integer division
query I rowsort label-1607
SELECT ALL + - cor0.col0 * col0 DIV - col1 FROM tab0 AS cor0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-1607
SELECT ALL + - cor0.col0 * col0 / - col1 FROM tab0 AS cor0
----
12
6
87
query I rowsort
SELECT - + col0 * + col2 + col2 + col0 AS col1 FROM tab2 AS cor0
----
-155
-1924
-2885
query I rowsort
SELECT DISTINCT col2 * + 69 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT col1 * col1 * col2 AS col0 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT - + col2 + col2 - col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + ( + col2 ) AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT + cor0.col2 * + cor0.col0 * + col1 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + col1 * 24 AS col0 FROM tab2 AS cor0
----
1416
408
744
query I rowsort
SELECT + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 52 + col2 + col2 col1 FROM tab0 AS cor0
----
-4406
-4568
-5042
query I rowsort
SELECT ALL + col2 * + 41 AS col2 FROM tab2 AS cor0
----
1066
1107
1558
query I rowsort
SELECT DISTINCT + - cor0.col2 * cor0.col0 + cor0.col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-1619
SELECT DISTINCT - col0 DIV - 55 AS col2 FROM tab0
----
0
1
skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT - col0 / - 55 AS col2 FROM tab0
----
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - tab2.col2 * + col0 col1 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + 61 AS col0 FROM tab0
----
61
query I rowsort
SELECT 82 + col1 FROM tab2
----
113
141
99
query I rowsort
SELECT DISTINCT + ( + 52 ) AS col0 FROM tab2
----
52
query I rowsort
SELECT DISTINCT - ( ( col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + cor0.col0 + - cor0.col2 * + col1 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - - col2 * - 72 AS col1 FROM tab2 cor0
----
-1872
-1944
-2736
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + - 95 FROM tab2 cor0
----
-95
-95
-95
query I rowsort
SELECT ALL + 79 AS col2 FROM tab1 AS cor0
----
79
79
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1630
SELECT + col1 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1630
SELECT + col1 / + col0 AS col2 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT - col1 + - col0 AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT col1 + cor0.col0 + + ( col1 + col0 ) * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1595
4292
9021
query I rowsort
SELECT - - cor0.col0 - + col0 * - 28 AS col2 FROM tab0 AS cor0
----
1015
2581
696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col2 ) col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + ( - col1 ) * + tab0.col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ( + cor0.col1 ) + + 99 FROM tab1 cor0
----
109
112
125
query I rowsort
SELECT + + 31 * col0 AS col0 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT ALL + - col0 + col1 * 48 FROM tab0 AS cor0
----
4104
4279
4621
query I rowsort
SELECT ALL - + col2 * col1 + col1 + - col2 FROM tab0 AS cor0
----
-1
-2785
-7453
query I rowsort
SELECT ALL + col2 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col2 * + ( cor0.col2 + - col2 ) * - ( col0 ) AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col2 * col0 + col1 * cor0.col2 AS col0 FROM tab2 AS cor0
----
-2356
-494
648
query I rowsort
SELECT - - cor0.col1 * cor0.col2 + - 55 FROM tab0 AS cor0
----
2783
42
7407
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1644
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1644
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - + col0 + ( cor0.col0 ) FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + col0 + col1 col2 FROM tab1 AS cor0
----
104
1053
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col2 col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + col0 + ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT cor0.col0 + - cor1.col0 + - 52 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
9 values hashing to 78efbca91067095bdc221215c03b103d
query I rowsort
SELECT + + 32 * col0 AS col2 FROM tab0 AS cor0
----
1120
2848
768
query I rowsort
SELECT ALL - 81 * - col2 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT DISTINCT + + 31 AS col2 FROM tab2 cor0
----
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1654
SELECT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1654
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
onlyif mysql # use DIV operator for integer division
query I rowsort label-1656
SELECT DISTINCT col2 * 6 DIV ( - col1 ) FROM tab1
----
-12
-34
-44
skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT col2 * 6 / ( - col1 ) FROM tab1
----
-12
-34
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT DISTINCT + col1 + col2 DIV col2 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1657
SELECT DISTINCT + col1 + col2 / col2 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1658
SELECT + CAST( 3 AS SIGNED ) + col1 FROM tab2 AS cor0
----
20
34
62
skipif mysql # not compatible
query I rowsort label-1658
SELECT + CAST ( 3 AS INTEGER ) + col1 FROM tab2 AS cor0
----
20
34
62
query I rowsort
SELECT ALL col2 + + col1 AS col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT col0 + + 25 AS col0 FROM tab0 AS cor0
----
114
49
60
query I rowsort
SELECT + ( cor0.col0 ) AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + 10 * - cor0.col2 FROM tab0 AS cor0
----
-10
-330
-820
onlyif mysql # use DIV operator for integer division
query I rowsort label-1663
SELECT + col2 + - col2 * col2 + col0 DIV col0 AS col0 FROM tab0 cor0
----
-1055
-6641
1
skipif mysql # not compatible
query I rowsort label-1663
SELECT + col2 + - col2 * col2 + col0 / col0 AS col0 FROM tab0 cor0
----
-1055
-6641
1
query I rowsort
SELECT - 60 + + col2 FROM tab2 AS cor0
----
-22
-33
-34
query I rowsort
SELECT ALL 14 FROM tab2, tab1 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab1 cor0, tab0, tab2 cor1
----
972 values hashing to 9600bdf5bac0caec3229e87170cc40b3
query I rowsort
SELECT - 24 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT ALL - 62 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
query I rowsort
SELECT DISTINCT - 76 + + col0 * + col0 * 94 AS col0 FROM tab0
----
115074
54068
744498
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT ALL + col0 * - col2 + - 61 AS col0 FROM tab0
----
-7359
-853
-96
query I rowsort
SELECT + col1 * + col2 * col0 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + col2 * col1 * + col0 AS col0 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT + 2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1675
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1675
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2, tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT + 97 * - tab1.col0 FROM tab1, tab1 AS cor0
----
-291
-6208
-7760
query I rowsort
SELECT + col0 + - 11 FROM tab0
----
13
24
78
query I rowsort
SELECT + col2 * + cor0.col2 * col1 - col0 FROM tab2 AS cor0
----
22592
24469
39806
query I rowsort
SELECT + col2 * - col0 * col1 AS col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col1 - ( - col0 * col2 ) AS col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT ALL + col0 * ( - 20 ) AS col1 FROM tab2 AS cor0
----
-140
-1560
-1580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 91 + tab0.col2 * - 96 * 71 col0 FROM tab0
----
-225019
-559003
-6907
query I rowsort
SELECT 39 + col2 FROM tab1 AS cor0
----
135
93
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1684
SELECT - cor0.col0 * col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1684
SELECT - cor0.col0 * col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 34 + - col1 FROM tab1 cor0
----
21
24
8
query I rowsort
SELECT col0 * col2 + + 17 AS col1 FROM tab1 AS cor0
----
179
3665
7697
query I rowsort
SELECT - col2 * - col0 * col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + col1 * ( col1 ) AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 + 65 * col1 AS col1 FROM tab1 AS cor0
----
1664
640
832
query I rowsort
SELECT + - col1 + col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + cor0.col2 * - 41 AS col0 FROM tab2 AS cor0
----
-1066
-1107
-1558
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1693
SELECT - col0 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1693
SELECT - col0 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * - 47 FROM tab1 AS cor0
----
-2538
-2679
-4512
query I rowsort
SELECT - col2 - col1 AS col1 FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1696
SELECT - ( - col2 ) - - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1696
SELECT - ( - col2 ) - - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 15 * - col1 + col0 + + 69 * + col2 AS col2 FROM tab2
----
2335
2757
2956
query I rowsort
SELECT + ( + col0 ) - col1 * col2 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL + - col2 * 48 AS col0 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT col0 - - col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + cor0.col0 * - 37 + 70 FROM tab1, tab2 AS cor0
----
9 values hashing to 8acb4eb0a31aa0000d3c932169026469
query I rowsort
SELECT ALL + + ( - col0 ) * - 52 + col1 AS col1 FROM tab0 AS cor0
----
1334
1917
4719
query I rowsort
SELECT - tab2.col0 * + 88 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to c7ddeb7a5965682c14d95b72d3edfdff
query I rowsort
SELECT ALL - 70 + col1 FROM tab0 cor0
----
16
21
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-1705
SELECT col0 DIV ( col1 ) FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-1705
SELECT col0 / ( col1 ) FROM tab1
----
0
6
6
query I rowsort
SELECT - 68 * + col0 AS col1 FROM tab0
----
-1632
-2380
-6052
query I rowsort
SELECT ALL 93 AS col0 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
query I rowsort
SELECT DISTINCT tab2.col2 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
26
27
38
query I rowsort
SELECT 55 * + col1 AS col0 FROM tab0
----
4730
5005
5335
query I rowsort
SELECT tab2.col2 * + tab2.col1 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 00f153c5d80e692faff5018d8701b92d
query I rowsort
SELECT DISTINCT + - 1 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1533
645
836
query I rowsort
SELECT + + cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT 18 * + col2 AS col2 FROM tab0 AS cor0
----
1476
18
594
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 * col0 col1 FROM tab0 AS cor0
----
-105
-267
-72
query I rowsort
SELECT - - col2 * col0 - - ( - col1 + + col1 ) * - 78 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 - + col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL + cor0.col0 * col2 - - 63 FROM tab0 AS cor0
----
7361
855
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1718
SELECT ALL + + col1 * + col1 * + CAST( col2 + col0 AS SIGNED ) FROM tab0 AS cor0
----
1416051
338724
421572
skipif mysql # not compatible
query I rowsort label-1718
SELECT ALL + + col1 * + col1 * + CAST ( col2 + col0 AS INTEGER ) FROM tab0 AS cor0
----
1416051
338724
421572
query I rowsort
SELECT + 59 * + cor0.col1 AS col0 FROM tab2 AS cor0
----
1003
1829
3481
query I rowsort
SELECT - ( + col0 ) * - col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL 97 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1722
SELECT - col1 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1722
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 + ( + 62 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1671
-1705
-2373
query I rowsort
SELECT ALL 17 + + tab0.col1 * + col1 FROM tab0
----
7413
8298
9426
onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT ( col2 ) * col0 DIV col1 + tab1.col2 + - 70 * col0 AS col1 FROM tab1
----
-150
-4059
-4914
skipif mysql # not compatible
query I rowsort label-1725
SELECT ( col2 ) * col0 / col1 + tab1.col2 + - 70 * col0 AS col1 FROM tab1
----
-150
-4059
-4914
query I rowsort
SELECT + col2 + - col2 * + 47 AS col0 FROM tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT ALL - 24 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT + - cor0.col2 DIV cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 525114d3cda3b98833487393e7c2b936
skipif mysql # not compatible
query I rowsort label-1728
SELECT + - cor0.col2 / cor0.col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 525114d3cda3b98833487393e7c2b936
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col0 FROM tab0
----
119
173
98
query I rowsort
SELECT - - 24 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT ALL - 13 + 10 FROM tab0 AS cor0
----
-3
-3
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - col1 ) * col1 * + ( - col2 ) col0 FROM tab2 AS cor0
----
10982
25947
90506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1733
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1733
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - ( col1 * + col1 ) col2 FROM tab2
----
-327
-3507
-988
query I rowsort
SELECT DISTINCT - - col1 - - 88 AS col0 FROM tab1 AS cor0
----
101
114
98
query I rowsort
SELECT DISTINCT - ( 56 ) FROM tab0 AS cor0
----
-56
query I rowsort
SELECT ALL + col2 + col1 * - col1 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT + 0 * - 76 * cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 6 AS col0 FROM tab2 AS cor0
----
6
query I rowsort
SELECT DISTINCT + col0 * col1 - col1 FROM tab2 AS cor0
----
1326
186
4543
skipif mysql # not compatible
query I rowsort
SELECT - - CAST ( + col2 AS REAL ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL + + col1 + col1 AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 92 + col0 * col2 FROM tab2 AS cor0
----
2120
281
3094
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 + + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - - col0 * col2 + - col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-1748
SELECT col2 DIV + tab1.col2 + + col1 AS col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1748
SELECT col2 / + tab1.col2 + + col1 AS col1 FROM tab1
----
11
14
27
query I rowsort
SELECT + col1 * - col2 + - col0 AS col1 FROM tab2
----
-1612
-725
-844
query I rowsort
SELECT - col1 * col2 + - col0 FROM tab0
----
-132
-2862
-7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-1751
SELECT DISTINCT col1 DIV cor0.col0 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT col1 / cor0.col0 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) * + col0 * tab0.col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT - 23 + + col1 * + col1 + col2 AS col1 FROM tab0
----
7406
8340
9387
query I rowsort
SELECT DISTINCT - 10 * + col2 + + col0 * col0 AS col0 FROM tab2
----
-221
5824
5861
query I rowsort
SELECT ALL col1 + + col2 + + col1 * - tab0.col2 AS col1 FROM tab0
----
-2719
-7289
1
query I rowsort
SELECT - col0 * + col0 * col0 - - col1 FROM tab2 AS cor0
----
-312
-474493
-493022
query I rowsort
SELECT + 60 + col2 FROM tab0 AS cor0
----
142
61
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 * + col1 + col0 col2 FROM tab1
----
-1349
-456
-596
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1760
SELECT DISTINCT CAST( NULL AS SIGNED ) + 41 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 41 FROM tab1
----
NULL
query I rowsort
SELECT DISTINCT - ( 2 * col1 + - col1 * col0 ) FROM tab0
----
1892
3201
7917
query I rowsort
SELECT ALL col1 * ( col1 ) AS col0 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT ALL cor0.col0 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 + col1 + - col2 col2 FROM tab2
----
30
5
59
query I rowsort
SELECT 13 * + col1 AS col1 FROM tab1
----
130
169
338
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 * + col0 + + col0 col0 FROM tab0
----
1260
600
8010
query I rowsort
SELECT ALL 67 AS col0 FROM tab2, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT ALL + col1 + - col0 * tab2.col2 + col0 FROM tab2
----
-151
-1891
-2906
query I rowsort
SELECT DISTINCT + - 77 FROM tab0 AS cor0
----
-77
query I rowsort
SELECT 4 + col1 FROM tab0 AS cor0
----
101
90
95
query I rowsort
SELECT ALL - 24 * + col2 * col0 AS col1 FROM tab0
----
-175152
-19008
-840
query I rowsort
SELECT + col0 * + col0 + col1 + + col0 FROM tab2 cor0
----
6221
6337
87
query I rowsort
SELECT DISTINCT + - cor0.col0 * - col1 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT ALL - col2 DIV + col0 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL - col2 / + col0 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT DISTINCT - - 48 FROM tab2 AS cor0
----
48
query I rowsort
SELECT col2 - col0 * col0 * + col2 AS col1 FROM tab1 WHERE NOT ( + col2 * col2 ) = - col0 * - col2
----
-233415
-432
-614304
query I rowsort
SELECT col2 + + tab1.col2 * - col0 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-1778
SELECT tab2.col1 + tab2.col0 DIV - col0 FROM tab2
----
16
30
58
skipif mysql # not compatible
query I rowsort label-1778
SELECT tab2.col1 + tab2.col0 / - col0 FROM tab2
----
16
30
58
query I rowsort
SELECT - col2 * col2 AS col1 FROM tab0 WHERE ( col2 ) BETWEEN NULL AND + col2
----
query I rowsort
SELECT - col2 + col0 * tab1.col2 * col1 - col2 FROM tab1
----
36366
4104
99648
query I rowsort
SELECT ALL col2 FROM tab0 WHERE ( NULL ) NOT IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1782
SELECT + col1 DIV - tab0.col1 AS col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1782
SELECT + col1 / - tab0.col1 AS col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col2 + tab1.col0 AS col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT DISTINCT col1 - - col0 FROM tab0
----
110
132
180
query I rowsort
SELECT col1 * col0 + + col2 AS col1 FROM tab1
----
1136
132
697
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT - col2 DIV + col1 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-1787
SELECT - col2 / + col1 FROM tab2
----
-2
0
0
query I rowsort
SELECT DISTINCT - col0 * + col2 * col0 FROM tab2
----
-1323
-158184
-237158
query III rowsort
SELECT * FROM tab0 WHERE col2 + col2 * col2 >= ( col1 )
----
24
86
33
89
91
82
query I rowsort
SELECT ALL - col1 * + col1 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT tab1.col1 + + tab1.col2 * col0 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 * - col0 col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NULL BETWEEN tab1.col1 / col0 AND ( col0 )
----
query I rowsort
SELECT DISTINCT col1 * + col0 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE NULL BETWEEN ( - col2 ) AND NULL
----
query I rowsort
SELECT + tab1.col1 * - col0 - - col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT tab2.col0 * tab2.col1 + - tab2.col0 * col0 FROM tab2
----
-1482
-4898
168
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 - col0 col0 FROM tab2
----
0
query I rowsort
SELECT col0 - + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + col1 )
----
query I rowsort
SELECT col1 * col1 + tab0.col1 AS col2 FROM tab0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 * col2 col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT col1 * tab2.col1 * col2 FROM tab2
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 ) OR NOT ( NULL ) > NULL
----
query I rowsort
SELECT ALL + + col2 + col1 * - cor0.col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col2 + cor0.col1 AS col1 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT col0 * col0 AS col2 FROM tab2 WHERE NOT NULL >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE ( - col2 ) IN ( col2 / - col0 )
----
query I rowsort
SELECT DISTINCT col0 + col0 * - col1 AS col2 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-1811
SELECT DISTINCT - col1 + col0 DIV + col2 AS col0 FROM tab1 cor0
----
-13
-26
-9
skipif mysql # not compatible
query I rowsort label-1811
SELECT DISTINCT - col1 + col0 / + col2 AS col0 FROM tab1 cor0
----
-13
-26
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1812
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 col0 FROM tab2 AS cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1812
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 col0 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( + col0 * tab2.col0 AS REAL ) AS col2 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT ALL 76 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT DISTINCT col0 * - 93 AS col2 FROM tab2
----
-651
-7254
-7347
query I rowsort
SELECT DISTINCT + 2 - - 70 AS col2 FROM tab0 AS cor0
----
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1817
SELECT DISTINCT + col0 DIV 64 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT + col0 / 64 FROM tab2 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 13 AS REAL ) + col0 FROM tab0 cor0
----
102
37
48
query I rowsort
SELECT ALL + - col0 * + 37 - cor0.col2 * col0 AS col2 FROM tab0 AS cor0
----
-10591
-1330
-1680
query I rowsort
SELECT - 39 * + col2 + col0 * + col0 * - col2 FROM tab1 AS cor0
----
-235695
-2592
-618144
query I rowsort
SELECT DISTINCT - col1 - + col0 AS col2 FROM tab1
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1822
SELECT - tab0.col0 * col1 + col2 + col2 DIV ( - 20 * col0 ) col1 FROM tab0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1822
SELECT - tab0.col0 * col1 + col2 + col2 / ( - 20 * col0 ) col1 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + col2 - col1 AS col0 FROM tab2
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1824
SELECT col2 + - CAST( NULL AS SIGNED ) * 70 - + col1 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1824
SELECT col2 + - CAST ( NULL AS INTEGER ) * 70 - + col1 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * ( - col2 ) * tab2.col1 FROM tab2
----
-119652
-51034
-5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col1 + - col2 col1 FROM tab0
----
131
77
98
query I rowsort
SELECT ALL + col2 + + ( + 51 ) - col0 * + 4 FROM tab1
----
-148
-173
93
query I rowsort
SELECT col1 * - ( - col1 ) * + col2 - col0 AS col1 FROM tab1
----
16144
36501
5636
query I rowsort
SELECT ALL - col2 + - ( col1 * + ( + col2 ) ) FROM tab1
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT + ( col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + - col1 * col1 + - col1 + col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + + cor0.col2 + col2 * cor0.col1 + - col2 * 13 AS col2 FROM tab2 AS cor0
----
1222
190
513
query I rowsort
SELECT DISTINCT + cor0.col2 + 74 FROM tab0 AS cor0
----
107
156
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-1834
SELECT ALL - + ( + 83 ) DIV + col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1834
SELECT ALL - + ( + 83 ) / + col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col1 col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT + 63 * - col0 + col1 AS col2 FROM tab0 cor0
----
-1426
-2108
-5516
onlyif mysql # use DIV operator for integer division
query I rowsort label-1837
SELECT DISTINCT 66 + + col0 DIV col1 AS col2 FROM tab1 AS cor0
----
66
72
skipif mysql # not compatible
query I rowsort label-1837
SELECT DISTINCT 66 + + col0 / col1 AS col2 FROM tab1 AS cor0
----
66
72
query I rowsort
SELECT - + col2 + cor0.col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col2 + + cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT 1 + + col0 * - col1 FROM tab2 AS cor0
----
-1342
-216
-4601
query I rowsort
SELECT tab2.col2 + col1 * col0 FROM tab2
----
1381
244
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * + col2 col2 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col2 * + col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT - 25 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT DISTINCT - tab2.col0 - col0 DIV - col1 FROM tab2
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - tab2.col0 - col0 / - col1 FROM tab2
----
-7
-75
-77
query I rowsort
SELECT - tab0.col1 * + col0 + + col2 + + col1 * col2 * + 20 FROM tab0
----
-1454
141223
54729
query I rowsort
SELECT ALL col1 - - col2 * tab0.col2 FROM tab0
----
1175
6815
98
query I rowsort
SELECT + col0 * - col0 + col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-24
query I rowsort
SELECT + + cor0.col2 * + col2 * - ( col2 ) AS col0 FROM tab0 AS cor0
----
-1
-35937
-551368
query I rowsort
SELECT + col2 * - ( - col2 * col2 ) AS col2 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT - col1 * - 63 AS col2 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT - col1 * ( col1 ) FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL + col1 * - 13 FROM tab0
----
-1118
-1183
-1261
query I rowsort
SELECT ALL + col1 + cor0.col0 * - col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-1856
SELECT + col0 DIV 94 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1856
SELECT + col0 / 94 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col0 + col2 AS col0 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-1858
SELECT - - cor0.col2 DIV 60 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1858
SELECT - - cor0.col2 / 60 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT ALL - col1 * 68 + col1 FROM tab2 AS cor0
----
-1139
-2077
-3953
onlyif mysql # use DIV operator for integer division
query I rowsort label-1860
SELECT DISTINCT - + cor0.col2 * - 47 + col0 * - cor0.col2 DIV - col2 FROM tab0 AS cor0
----
1575
3943
82
skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - + cor0.col2 * - 47 + col0 * - cor0.col2 / - col2 FROM tab0 AS cor0
----
1575
3943
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT ALL - - col2 DIV 79 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1861
SELECT ALL - - col2 / 79 FROM tab1 cor0
----
0
0
1
query I rowsort
SELECT col0 + col1 * + col2 AS col1 FROM tab2 cor0
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + ( cor0.col2 ) col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1864
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + + col0 * col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + + col0 * col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 65 AS col0 FROM tab2 AS cor0
----
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 52 * + cor0.col2 * col2 col2 FROM tab2 AS cor0
----
35152
37908
75088
query I rowsort
SELECT ALL - + ( + 76 ) + + col2 FROM tab2 AS cor0
----
-38
-49
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-1868
SELECT - cor0.col2 DIV + col1 - + col2 * + col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724
skipif mysql # not compatible
query I rowsort label-1868
SELECT - cor0.col2 / + col1 - + col2 * + col2 AS col2 FROM tab0 cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 - col2 col0 FROM tab2 AS cor0
----
1
12
13
query I rowsort
SELECT DISTINCT col1 + + 8 AS col0 FROM tab0 AS cor0
----
105
94
99
query I rowsort
SELECT - col0 * col1 * - cor0.col2 - + col0 FROM tab0 cor0
----
3360
664029
68088
query I rowsort
SELECT + col2 + + 56 * col1 AS col1 FROM tab2
----
1763
3330
990
query I rowsort
SELECT + 30 * 71 FROM tab2 AS cor0
----
2130
2130
2130
query I rowsort
SELECT - 0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col2 * + col2 + col1 AS col1 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT - + col2 + col0 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + 89 * col2 + + cor0.col2 * + col0 FROM tab2 AS cor0
----
2592
4342
6384
query I rowsort
SELECT - 35 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b
query I rowsort
SELECT ALL 93 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT ALL + 52 + + col2 AS col0 FROM tab0 AS cor0
----
134
53
85
query I rowsort
SELECT ALL - - 41 AS col1 FROM tab2 AS cor0
----
41
41
41
query I rowsort
SELECT ALL - cor0.col2 * col2 * col2 + col1 AS col1 FROM tab1 cor0
----
-157438
-185183
-884723
query I rowsort
SELECT DISTINCT cor0.col1 - cor0.col1 AS col2 FROM tab2, tab2 AS cor0
----
0
query I rowsort
SELECT ALL - 68 FROM tab1
----
-68
-68
-68
query I rowsort
SELECT + ( - cor0.col2 ) FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT 65 AS col1 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
onlyif mysql # use DIV operator for integer division
query I rowsort label-1887
SELECT ALL - - col1 + col0 * 71 DIV - col0 FROM tab0 AS cor0
----
15
20
26
skipif mysql # not compatible
query I rowsort label-1887
SELECT ALL - - col1 + col0 * 71 / - col0 FROM tab0 AS cor0
----
15
20
26
query I rowsort
SELECT DISTINCT col2 * - 33 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT DISTINCT - col2 + + 72 + 90 AS col2 FROM tab1 AS cor0
----
105
108
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * + col2 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + col1 * ( + ( + col1 ) ) FROM tab2
----
3559
368
968
query I rowsort
SELECT + 17 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
query I rowsort
SELECT DISTINCT + 14 * col2 AS col2 FROM tab0
----
1148
14
462
onlyif mysql # use DIV operator for integer division
query I rowsort label-1894
SELECT ALL ( tab0.col0 ) DIV + col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1894
SELECT ALL ( tab0.col0 ) / + col0 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT - 78 * col0 + - 68 * ( - col1 ) AS col1 FROM tab1
----
-4312
-5356
1534
query I rowsort
SELECT ALL - 58 FROM tab2
----
-58
-58
-58
query I rowsort
SELECT ALL + 50 - + col0 FROM tab1 AS cor0
----
-14
-30
47
query I rowsort
SELECT + col2 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT DISTINCT + ( - 31 ) * col0 + - tab1.col2 AS col0 FROM tab1
----
-147
-2041
-2576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col0 + 59 col2 FROM tab1 AS cor0
----
-4037
-6341
50
query I rowsort
SELECT - col1 * 25 AS col0 FROM tab2 AS cor0
----
-1475
-425
-775
query I rowsort
SELECT + 0 FROM tab1
----
0
0
0
query I rowsort
SELECT - - col2 + col1 * - col2 FROM tab1 cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + col0 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - 20 * - tab1.col2 AS col0 FROM tab1
----
1080
1140
1920
query I rowsort
SELECT ALL col2 * ( + col1 ) AS col2 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL + - col2 * + cor0.col0 - - col2 * + 64 FROM tab2 cor0
----
-364
-570
1539
query I rowsort
SELECT ALL + ( 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-1909
SELECT CAST( NULL AS SIGNED ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1909
SELECT CAST ( NULL AS INTEGER ) + + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * - ( col2 ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT + col2 + 90 * + col0 AS col0 FROM tab2
----
657
7046
7148
query I rowsort
SELECT + col1 + + tab0.col1 * 59 FROM tab0
----
5160
5460
5820
query I rowsort
SELECT ALL 44 FROM tab2, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
onlyif mysql # use DIV operator for integer division
query I rowsort label-1914
SELECT col1 DIV - col1 + - col1 FROM tab2
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-1914
SELECT col1 / - col1 + - col1 FROM tab2
----
-18
-32
-60
query I rowsort
SELECT DISTINCT + 61 * - 77 FROM tab1, tab2 AS cor0
----
-4697
query I rowsort
SELECT DISTINCT + 89 FROM tab1, tab0 AS cor0
----
89
query I rowsort
SELECT DISTINCT - col2 + + 77 * tab2.col0 * col0 AS col1 FROM tab2
----
3746
468442
480519
query IIIIIIIII rowsort
SELECT * FROM tab2, tab2 cor0 CROSS JOIN tab2 AS cor1
----
243 values hashing to 5ac29bd6e3a9e69ed9c73ca7a34114f7
query I rowsort
SELECT ALL + col2 + 62 FROM tab1
----
116
119
158
query I rowsort
SELECT DISTINCT col2 + cor0.col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - - col2 - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - ( ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + - col0 * col1 + - col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT col1 - 7 AS col1 FROM tab1 AS cor0
----
19
3
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-1925
SELECT DISTINCT - + cor0.col1 + ( col1 ) DIV + col0 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-1925
SELECT DISTINCT - + cor0.col1 + ( col1 ) / + col0 FROM tab0 AS cor0
----
-83
-90
-95
query I rowsort
SELECT + + 36 * col2 + col1 FROM tab0 AS cor0
----
1274
133
3043
query I rowsort
SELECT DISTINCT + col2 * - col0 - + cor0.col1 AS col1 FROM tab0 cor0
----
-132
-7389
-878
query I rowsort
SELECT + 75 + - col1 FROM tab1 AS cor0
----
49
62
65
query I rowsort
SELECT ALL + 50 * - cor0.col1 FROM tab0 AS cor0
----
-4300
-4550
-4850
query I rowsort
SELECT + ( + col2 ) * + cor0.col0 - + col0 * ( col2 ) AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 8 + col0 * + col0 AS col2 FROM tab2
----
41
6076
6233
onlyif mysql # use DIV operator for integer division
query I rowsort label-1932
SELECT + col0 + - col2 DIV 72 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-1932
SELECT + col0 + - col2 / 72 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL ( - col1 ) + cor0.col2 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT + col2 * + col2 + tab1.col1 * - 23 + + col2 FROM tab1
----
2372
3076
9013
onlyif mysql # use DIV operator for integer division
query I rowsort label-1935
SELECT ( + col1 + + col2 ) DIV - 72 AS col1 FROM tab2
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1935
SELECT ( + col1 + + col2 ) / - 72 AS col1 FROM tab2
----
-1
0
0
query I rowsort
SELECT DISTINCT + 0 * + ( - col0 ) AS col1 FROM tab0
----
0
query I rowsort
SELECT ALL tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 col2 FROM tab0, tab2, tab0 AS cor0, tab1
----
-86
-91
-97
query I rowsort
SELECT + 63 FROM tab1, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - col1 * + col0 * col2 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col1 - - col0 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 - + col2 col0 FROM tab1 AS cor0
----
-25
-28
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col0 + - col1 col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT - + col2 * col0 - ( ( - col1 ) + + 87 ) * - col1 AS col2 FROM tab0 cor0
----
-1005
-706
-7662
query I rowsort
SELECT + col0 * col0 * col2 - col2 AS col2 FROM tab2 AS cor0
----
1296
158158
237120
onlyif mysql # use DIV operator for integer division
query I rowsort label-1946
SELECT col0 DIV 6 + tab0.col1 FROM tab0
----
102
105
90
skipif mysql # not compatible
query I rowsort label-1946
SELECT col0 / 6 + tab0.col1 FROM tab0
----
102
105
90
query I rowsort
SELECT - col0 + 24 * + col1 FROM tab2 AS cor0
----
1338
329
737
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + - cor0.col0 + - 15 * + col1 col2 FROM tab2 AS cor0
----
-1022
-351
-503
query I rowsort
SELECT DISTINCT col2 + 45 AS col0 FROM tab1 AS cor0
----
102
141
99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1950
SELECT DISTINCT - + col2 * CAST( NULL AS SIGNED ) + col1 + col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1950
SELECT DISTINCT - + col2 * CAST ( NULL AS INTEGER ) + col1 + col0 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT col1 + col1 AS col2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL + col1 * 9 + + 82 * - col2 * + col0 + - col0 * col2 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-4302
-91110
107637
query I rowsort
SELECT DISTINCT - col0 + + 48 AS col2 FROM tab1 AS cor0
----
-16
-32
45
query I rowsort
SELECT + 1 AS col0 FROM tab1 AS cor0
----
1
1
1
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 1e9d01970ae508486ddabec967bb176c
query I rowsort
SELECT + ( + 42 ) + col1 FROM tab2 AS cor0
----
101
59
73
query I rowsort
SELECT - 20 AS col1 FROM tab1 AS cor0
----
-20
-20
-20
query I rowsort
SELECT 68 AS col1 FROM tab0 AS cor0
----
68
68
68
query I rowsort
SELECT + 32 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab1 cor2
----
81 values hashing to 6bef041528d0147be26f7de162c66a5f
query I rowsort
SELECT DISTINCT + col2 + - 96 - col2 FROM tab2 AS cor0
----
-96
query I rowsort
SELECT DISTINCT - + col0 + 28 AS col1 FROM tab1 AS cor0
----
-36
-52
25
query I rowsort
SELECT DISTINCT col0 * + 66 - - cor0.col0 AS col2 FROM tab1 cor0
----
201
4288
5360
query I rowsort
SELECT DISTINCT + - col0 * + col0 + + col0 AS col1 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT DISTINCT - col0 + - 2 FROM tab1 AS cor0
----
-5
-66
-82
query I rowsort
SELECT ALL - - col1 + cor0.col0 * - ( col0 ) FROM tab1 cor0
----
-4086
-6387
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + col1 + col1 * col1 * - col1 FROM tab0 AS cor0
----
-635970
-753480
-912576
onlyif mysql # use DIV operator for integer division
query I rowsort label-1969
SELECT ALL + - col0 * 78 DIV + 78 AS col1 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL + - col0 * 78 / + 78 AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT 29 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
29
query I rowsort
SELECT DISTINCT 59 FROM tab2, tab2 cor0
----
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1972
SELECT DISTINCT + ( + cor0.col1 ) DIV - col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1972
SELECT DISTINCT + ( + cor0.col1 ) / - col2 AS col1 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1973
SELECT ALL col0 - + col1 DIV + 50 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL col0 - + col1 / + 50 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL col0 - - col2 AS col2 FROM tab0
----
171
36
57
query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <= NULL
----
query I rowsort
SELECT tab1.col0 + col0 AS col2 FROM tab1
----
128
160
6
query I rowsort
SELECT + 50 * + cor0.col1 FROM tab1 AS cor0
----
1300
500
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1978
SELECT ALL col1 + col0 * col2 DIV + col1 AS col2 FROM tab0 AS cor0
----
171
95
97
skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL col1 + col0 * col2 / + col1 AS col2 FROM tab0 AS cor0
----
171
95
97
query I rowsort
SELECT DISTINCT tab0.col2 AS col2 FROM tab0 WHERE - col0 >= col1 / col0
----
query I rowsort
SELECT ALL - col1 * - col0 AS col0 FROM tab2
----
1343
217
4602
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col2 * tab0.col2 * - col0 - - col2 )
----
query I rowsort
SELECT DISTINCT - col0 - col0 * tab0.col1 * col0 FROM tab0
----
-118860
-49560
-720900
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col1 * + col1
----
query I rowsort
SELECT - col1 * col0 + + col1 AS col0 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT col0 - + col2 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 * + col1
----
query I rowsort
SELECT DISTINCT col2 * + tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + + 41 + + col1 FROM tab0 AS cor0
----
127
132
138
query I rowsort
SELECT + col0 + col1 * + col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT 84 * + col1 + - 82 FROM tab1 cor0
----
1010
2102
758
query I rowsort
SELECT ALL cor0.col2 - + col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT - cor0.col2 + col1 * + col2 FROM tab0 cor0
----
2805
7380
96
query I rowsort
SELECT 85 + - col0 * - col0 FROM tab1 AS cor0
----
4181
6485
94
query I rowsort
SELECT - + 88 * col1 FROM tab0 cor0
----
-7568
-8008
-8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-1994
SELECT DISTINCT 72 DIV - col1 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1994
SELECT DISTINCT 72 / - col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT ALL cor0.col0 * + col1 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - col0 + cor0.col1 AS col2 FROM tab0 AS cor0
----
2
62
62
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 - col1 + - col0 * col0 col1 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT ALL + + 42 AS col1 FROM tab1 AS cor0
----
42
42
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT - col2 * + ( col1 ) * + col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL - col2 * + ( - 42 ) FROM tab0 AS cor0
----
1386
3444
42
query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab0, tab0 AS cor0
----
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + cor0.col1 + + 93 col1 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT cor0.col0 * cor0.col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT cor0.col2 FROM tab1, tab0 AS cor0 WHERE - cor0.col0 = NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2007
SELECT DISTINCT + - col0 DIV 70 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-2007
SELECT DISTINCT + - col0 / 70 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT col0 + 70 * col2 FROM tab0 AS cor0
----
105
2334
5829
query I rowsort
SELECT + 87 - + 45 FROM tab1 AS cor0
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-2010
SELECT + cor0.col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2010
SELECT + cor0.col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2011
SELECT + col1 DIV - col1 + col1 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-2011
SELECT + col1 / - col1 + col1 AS col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL - 24 FROM tab2, tab1 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2013
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col2 + + cor0.col1 / + 40 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2013
SELECT DISTINCT + CAST ( NULL AS REAL ) * col2 + + cor0.col1 / + 40 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL ( col2 ) * - col1 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2015
SELECT ALL - - CAST( col0 AS SIGNED ) - - cor0.col2 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL - - CAST ( col0 AS INTEGER ) - - cor0.col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL col0 * 88 FROM tab0 AS cor0
----
2112
3080
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-2017
SELECT + 88 DIV col0 FROM tab1 AS cor0
----
1
1
29
skipif mysql # not compatible
query I rowsort label-2017
SELECT + 88 / col0 FROM tab1 AS cor0
----
1
1
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 33 col2 FROM tab1 AS cor0
----
-33
query I rowsort
SELECT ALL - 58 AS col1 FROM tab0 AS cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT + ( - col0 ) * col2 + col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT DISTINCT + - ( col2 ) + + 39 AS col2 FROM tab2 AS cor0
----
1
12
13
query I rowsort
SELECT col2 * + col0 + - cor0.col2 FROM tab2 AS cor0
----
162
2002
2964
query I rowsort
SELECT ALL - - 73 AS col1 FROM tab1 AS cor0
----
73
73
73
query I rowsort
SELECT DISTINCT - ( - col2 ) + - col2 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-2025
SELECT DISTINCT - 78 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-11
0
skipif mysql # not compatible
query I rowsort label-2025
SELECT DISTINCT - 78 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
-1
-11
0
query I rowsort
SELECT cor0.col0 + cor0.col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + ( + col1 ) + + col0 * col2 + - tab0.col2 * + col1 FROM tab0
----
-1960
-73
35
query I rowsort
SELECT DISTINCT col2 + + col2 AS col2 FROM tab1
----
108
114
192
query I rowsort
SELECT - tab0.col2 * - 34 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4370847e8381c8b40bec9cf36e0b0ecf
onlyif mysql # use DIV operator for integer division
query I rowsort label-2030
SELECT DISTINCT - 31 DIV + col0 + + CAST( + 2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-8
2
skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - 31 / + col0 + + CAST ( + 2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-8
2
query I rowsort
SELECT ALL - col1 + col2 * cor0.col0 * col0 FROM tab1 AS cor0
----
233462
460
614387
query I rowsort
SELECT DISTINCT - tab1.col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-54
-57
-96
query I rowsort
SELECT DISTINCT col0 * - tab1.col1 + + col1 AS col2 FROM tab1
----
-1027
-52
-630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2034
SELECT CAST( - col1 AS SIGNED ) + + col1 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2034
SELECT CAST ( - col1 AS INTEGER ) + + col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT + 7 * - col2 AS col2 FROM tab1
----
-378
-399
-672
query I rowsort
SELECT DISTINCT 27 FROM tab1, tab2 AS cor0
----
27
query I rowsort
SELECT - col2 * + ( 51 ) * + col2 + ( 95 * col2 ) + 65 FROM tab1
----
-143521
-160219
-460831
query I rowsort
SELECT DISTINCT - - col2 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2039
SELECT ALL + col2 + + CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL + col2 + + CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2040
SELECT ALL + cor0.col2 DIV cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7e5c7714579af4e1291ae0c30ad11f46
skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + cor0.col2 / cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 7e5c7714579af4e1291ae0c30ad11f46
query I rowsort
SELECT col2 * 12 AS col2 FROM tab0
----
12
396
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-2042
SELECT DISTINCT - tab2.col0 DIV ( + tab2.col1 ) AS col2 FROM tab2
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - tab2.col0 / ( + tab2.col1 ) AS col2 FROM tab2
----
-1
-4
0
query I rowsort
SELECT ( col1 ) * - col2 AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT - ( + 25 ) AS col1 FROM tab1
----
-25
-25
-25
query I rowsort
SELECT DISTINCT + col0 - - 89 * col1 AS col2 FROM tab0 AS cor0
----
7678
8188
8668
query I rowsort
SELECT + - 71 + + 20 + + col1 FROM tab0 AS cor0
----
35
40
46
query I rowsort
SELECT + 74 AS col2 FROM tab1 cor0
----
74
74
74
query I rowsort
SELECT - col2 - 43 AS col1 FROM tab0 AS cor0
----
-125
-44
-76
query I rowsort
SELECT - ( 26 ) * - cor0.col0 * - col2 - - col2 * + col1 * + col1 AS col0 FROM tab1 cor0
----
-183456
-89148
32292
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col0 * - ( + col2 ) col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - col2 * - tab2.col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL 23 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT ALL + 73 * col1 + 65 * col0 * - col0 FROM tab0 AS cor0
----
-31162
-508222
-72544
query I rowsort
SELECT + 49 + col1 AS col0 FROM tab2 AS cor0
----
108
66
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2055
SELECT + col0 DIV - ( col1 * - col1 + col2 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2055
SELECT + col0 / - ( col1 * - col1 + col2 ) FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2056
SELECT - - col0 DIV 95 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2056
SELECT - - col0 / 95 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - ( col0 ) + - 72 FROM tab0
----
-107
-161
-96
query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab2
----
-77
query I rowsort
SELECT DISTINCT - cor0.col1 FROM tab2, tab1, tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT col2 + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL + - col2 - + col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2062
SELECT ALL - cor0.col0 * - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - cor0.col0 * - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2063
SELECT DISTINCT - col0 - CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT - col0 - CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + 32 * + col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT ALL + - 10 + + col0 * cor0.col2 FROM tab0 AS cor0
----
25
7288
782
query I rowsort
SELECT DISTINCT - col1 + - 51 FROM tab0 AS cor0
----
-137
-142
-148
query I rowsort
SELECT + cor0.col0 * 20 AS col0 FROM tab0 AS cor0
----
1780
480
700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2068
SELECT DISTINCT CAST( 98 AS SIGNED ) FROM tab2 AS cor0
----
98
skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT CAST ( 98 AS INTEGER ) FROM tab2 AS cor0
----
98
query I rowsort
SELECT DISTINCT + - 81 FROM tab2 AS cor0
----
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 33 * 40 + col2 * col1 AS col0 FROM tab0 AS cor0
----
-1223
1518
6142
query I rowsort
SELECT col0 * - col2 * + cor0.col0 + col2 AS col2 FROM tab2 cor0
----
-1296
-158158
-237120
query I rowsort
SELECT DISTINCT col0 - col0 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + - 41 + col0 * + 15 AS col0 FROM tab2 cor0
----
1129
1144
64
query I rowsort
SELECT - - col1 * + col0 + - 20 FROM tab1 AS cor0
----
1020
58
620
query I rowsort
SELECT DISTINCT + col2 * - 23 * + col0 FROM tab0
----
-167854
-18216
-805
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2077
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2077
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 83 * tab0.col0 FROM tab0
----
-171312
-281785
-672217
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2079
SELECT ALL CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2080
SELECT ALL - CAST( NULL AS DECIMAL ) * ( col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL - CAST ( NULL AS REAL ) * ( col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-34
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0, tab1, tab2 cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
query I rowsort
SELECT col2 + - col2 * - col2 FROM tab1 AS cor0
----
2970
3306
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - 12 + col1 col1 FROM tab0 AS cor0
----
2138
3480
8178
query I rowsort
SELECT - cor0.col2 * + cor0.col1 + col1 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT col0 + col1 * 42 AS col2 FROM tab1 AS cor0
----
1095
484
626
onlyif mysql # use DIV operator for integer division
query I rowsort label-2088
SELECT DISTINCT + col0 DIV 70 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT + col0 / 70 FROM tab1
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2089
SELECT ALL CAST( NULL AS DECIMAL ) * - 38 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL CAST ( NULL AS REAL ) * - 38 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor1.col0 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL 22 * col1 AS col0 FROM tab1 AS cor0
----
220
286
572
query I rowsort
SELECT DISTINCT + 48 FROM tab2, tab0 AS cor0
----
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + col2 col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2094
SELECT DISTINCT - + col2 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - + col2 / cor0.col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL + - 75 * col2 AS col1 FROM tab1 AS cor0
----
-4050
-4275
-7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2096
SELECT DISTINCT - col1 DIV - col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT - col1 / - col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT 8 AS col0 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT ALL - - 26 AS col0 FROM tab0 AS cor0
----
26
26
26
query I rowsort
SELECT + + 66 AS col0 FROM tab0 cor0
----
66
66
66
query I rowsort
SELECT DISTINCT + + 55 - + col1 AS col2 FROM tab1 cor0
----
29
42
45
query I rowsort
SELECT ALL + + 4 * col2 AS col0 FROM tab1 AS cor0
----
216
228
384
query I rowsort
SELECT + 36 FROM tab0 cor0
----
36
36
36
query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab1 AS cor0
----
-42
query I rowsort
SELECT ALL col0 * col2 * - col1 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - + ( - col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL + + 33 + col2 FROM tab0 AS cor0
----
115
34
66
query I rowsort
SELECT DISTINCT + + 83 + col2 + 52 FROM tab1 AS cor0
----
189
192
231
query I rowsort
SELECT + col2 - - 86 FROM tab0 AS cor0
----
119
168
87
query I rowsort
SELECT DISTINCT + - col2 * 67 * + col1 AS col1 FROM tab0 AS cor0
----
-190146
-499954
-6499
query I rowsort
SELECT DISTINCT cor0.col2 * + col0 * + col2 + - col0 AS col2 FROM tab2 AS cor0
----
113997
5096
52650
onlyif mysql # use DIV operator for integer division
query I rowsort label-2111
SELECT + - col0 DIV - col0 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2111
SELECT + - col0 / - col0 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2112
SELECT + - cor0.col1 + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2112
SELECT + - cor0.col1 + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + 67 AS col0 FROM tab0 cor0
----
100
149
68
query I rowsort
SELECT col2 * + col1 + col0 * col2 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT DISTINCT ( 68 ) FROM tab1, tab1 AS cor0, tab0 AS cor1
----
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT ALL cor0.col2 * ( + col1 ) - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL cor0.col2 * ( + col1 ) - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + + 92 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT DISTINCT col2 + + 68 * - 88 * col1 AS col0 FROM tab2 AS cor0
----
-101690
-185477
-353030
onlyif mysql # use DIV operator for integer division
query I rowsort label-2119
SELECT + - col2 * - col0 + - col2 DIV - col1 col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2119
SELECT + - col2 * - col0 + - col2 / - col1 col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + col0 + 1 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT col2 + ( + col0 ) * col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT + cor0.col0 + col0 * + col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT ALL - col2 * - col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT col0 * + col2 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
36470
4186
99827
query I rowsort
SELECT - cor0.col0 * 43 FROM tab2 AS cor0
----
-301
-3354
-3397
query I rowsort
SELECT 5 * 59 FROM tab1 AS cor0
----
295
295
295
query I rowsort
SELECT ALL col0 * + col2 * col1 FROM tab0 AS cor0
----
3395
664118
68112
onlyif mysql # use DIV operator for integer division
query I rowsort label-2128
SELECT DISTINCT + - col1 DIV col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-2128
SELECT DISTINCT + - col1 / col2 AS col2 FROM tab0 AS cor0
----
-1
-2
-97
query I rowsort
SELECT col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 39 * col2 AS col2 FROM tab0 AS cor0
----
1287
3198
39
query I rowsort
SELECT ALL - 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query I rowsort
SELECT DISTINCT col0 + - ( col2 * tab1.col0 ) FROM tab1
----
-159
-3584
-7600
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab0, tab1 cor2
----
3645 values hashing to d865c68b86e66898eeac28f450e48e70
query I rowsort
SELECT ALL tab2.col0 + tab2.col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 92 col2 FROM tab0 AS cor0
----
-92
-92
-92
query I rowsort
SELECT - + 54 + + col2 FROM tab1 AS cor0
----
0
3
42
query I rowsort
SELECT DISTINCT - col1 + + cor0.col0 * col0 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
-1347
-158165
-237096
query I rowsort
SELECT + - col2 * + 80 FROM tab2 cor0
----
-2080
-2160
-3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col1 ) col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col2 * - 7 + col0 FROM tab2 AS cor0
----
-104
-182
-187
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2141
SELECT - col2 + CAST( NULL AS SIGNED ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2141
SELECT - col2 + CAST ( NULL AS INTEGER ) * tab2.col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2142
SELECT DISTINCT - col0 * tab0.col2 + tab0.col0 DIV + tab0.col2 FROM tab0
----
-7297
-792
0
skipif mysql # not compatible
query I rowsort label-2142
SELECT DISTINCT - col0 * tab0.col2 + tab0.col0 / + tab0.col2 FROM tab0
----
-7297
-792
0
query I rowsort
SELECT - col2 * - col1 * - col1 + + col1 AS col1 FROM tab2
----
-10965
-25916
-90447
query I rowsort
SELECT DISTINCT + 62 * - col1 + + col1 FROM tab0 AS cor0
----
-5246
-5551
-5917
onlyif mysql # use DIV operator for integer division
query I rowsort label-2145
SELECT ALL 95 DIV 48 + col2 * - 88 - - cor0.col2 FROM tab1 AS cor0
----
-4697
-4958
-8351
skipif mysql # not compatible
query I rowsort label-2145
SELECT ALL 95 / 48 + col2 * - 88 - - cor0.col2 FROM tab1 AS cor0
----
-4697
-4958
-8351
query I rowsort
SELECT DISTINCT + - col2 * - col2 + col0 AS col2 FROM tab0 AS cor0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor1.col1 + 20 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7ebd557f18fc1be25351685dabdddace
query I rowsort
SELECT 95 * tab2.col0 AS col0 FROM tab2
----
665
7410
7505
query I rowsort
SELECT DISTINCT col2 - col2 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT 13 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - - col0 + 9 AS col2 FROM tab1 AS cor0
----
12
73
89
query I rowsort
SELECT + tab1.col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT col2 * + tab0.col2 + ( - col1 ) FROM tab0
----
-96
1003
6633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor1.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT ALL + col0 DIV col0 + + tab1.col2 AS col1 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + col0 / col0 + + tab1.col2 AS col1 FROM tab1
----
55
58
97
query I rowsort
SELECT DISTINCT - col1 * + ( col0 ) - - cor0.col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col0 - col0 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL + col0 + col1 * - col2 AS col0 FROM tab0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-2159
SELECT ALL - col2 DIV + 29 + - col2 FROM tab2
----
-26
-27
-39
skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - col2 / + 29 + - col2 FROM tab2
----
-26
-27
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 + + col0 col2 FROM tab1
----
29
74
93
query I rowsort
SELECT 93 * 98 FROM tab2, tab1 AS cor0
----
9 values hashing to 73c95a4ee30efc84058821bd609feec1
query I rowsort
SELECT ALL + col2 + + col1 * col0 * cor0.col1 AS col2 FROM tab1 AS cor0
----
13616
2082
6457
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2163
SELECT col1 * - CAST( NULL AS SIGNED ) - + 33 * col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2163
SELECT col1 * - CAST ( NULL AS INTEGER ) - + 33 * col2 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2164
SELECT cor0.col1 * col1 - col1 DIV + col1 AS col1 FROM tab0 AS cor0
----
7395
8280
9408
skipif mysql # not compatible
query I rowsort label-2164
SELECT cor0.col1 * col1 - col1 / + col1 AS col1 FROM tab0 AS cor0
----
7395
8280
9408
query I rowsort
SELECT ALL - ( - col0 + tab0.col0 ) AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT - col0 * cor0.col1 + 22 FROM tab0 AS cor0
----
-2042
-3373
-8077
query I rowsort
SELECT 20 * col2 AS col2 FROM tab1 AS cor0
----
1080
1140
1920
query I rowsort
SELECT DISTINCT - 21 + col2 AS col2 FROM tab0 AS cor0
----
-20
12
61
query I rowsort
SELECT - - cor0.col2 * col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT col0 * ( 23 ) FROM tab0
----
2047
552
805
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col2 * - 0 + ( col1 ) FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + - cor0.col0 * 52 FROM tab0 AS cor0
----
-1248
-1820
-4628
query I rowsort
SELECT ALL - cor0.col2 * + col2 * 36 FROM tab2 AS cor0
----
-24336
-26244
-51984
query I rowsort
SELECT ALL + col0 * 85 + col0 AS col0 FROM tab0 cor0
----
2064
3010
7654
query I rowsort
SELECT + 83 FROM tab0, tab2 AS cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c
query I rowsort
SELECT ALL cor0.col2 * + ( col2 ) * 52 AS col2 FROM tab0 AS cor0
----
349648
52
56628
onlyif mysql # use DIV operator for integer division
query I rowsort label-2179
SELECT 52 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-2179
SELECT 52 / - col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
query I rowsort
SELECT + + col1 + col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT cor0.col0 * 56 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + + 25 AS col0 FROM tab1 AS cor0
----
25
query I rowsort
SELECT ALL + col1 * col2 * 17 AS col1 FROM tab2
----
10982
14229
26078
onlyif mysql # use DIV operator for integer division
query I rowsort label-2185
SELECT col1 DIV 59 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2185
SELECT col1 / 59 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + ( 73 ) * col2 FROM tab0 AS cor0
----
2409
5986
73
query I rowsort
SELECT - 9 + 31 * - col1 AS col0 FROM tab2 cor0
----
-1838
-536
-970
query I rowsort
SELECT - - cor0.col1 * - 11 FROM tab0, tab2 AS cor0
----
9 values hashing to a77f5900e659b4b8df785714db27c969
query I rowsort
SELECT DISTINCT - tab1.col0 * + tab1.col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + ( + tab0.col2 ) AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2191
SELECT ALL CAST( NULL AS SIGNED ) / 34 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2191
SELECT ALL CAST ( NULL AS INTEGER ) / 34 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 33 col2 FROM tab0 AS cor0
----
33
query I rowsort
SELECT ALL 74 FROM tab1 AS cor0
----
74
74
74
query I rowsort
SELECT - - 58 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT ALL - col2 * + col1 + 36 AS col2 FROM tab0 AS cor0
----
-2802
-61
-7426
query I rowsort
SELECT + - col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT - 79 + - col1 AS col1 FROM tab1 AS cor0
----
-105
-89
-92
query I rowsort
SELECT ALL + + ( col0 ) * ( - cor0.col2 ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT 8 * col2 * 84 AS col1 FROM tab0 AS cor0
----
22176
55104
672
query I rowsort
SELECT DISTINCT + 39 * - col2 AS col2 FROM tab0
----
-1287
-3198
-39
query I rowsort
SELECT - 24 * + 27 AS col2 FROM tab0
----
-648
-648
-648
query I rowsort
SELECT col2 * - 76 - 3 FROM tab1 AS cor0
----
-4107
-4335
-7299
query I rowsort
SELECT + col2 + - 76 * + col1 FROM tab1 AS cor0
----
-1922
-703
-892
query I rowsort
SELECT - + cor0.col2 + - 94 FROM tab0 cor0
----
-127
-176
-95
query I rowsort
SELECT ALL tab1.col1 + tab1.col1 * 92 * + col1 + col1 AS col0 FROM tab1
----
15574
62244
9220
query I rowsort
SELECT ALL 92 + + col2 FROM tab1
----
146
149
188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + ( col1 ) col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT col2 - - col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT - col0 - ( + col0 ) * col0 AS col1 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + col2 + col2 * 2 * - 26 + - tab0.col1 FROM tab0
----
-148
-1769
-4273
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( ( col0 ) + 47 ) col2 FROM tab2
----
1458
3250
4788
query I rowsort
SELECT DISTINCT + 19 FROM tab1 AS cor0
----
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2213
SELECT + - col2 * + col1 + + col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2213
SELECT + - col2 * + col1 + + col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 64 * - col2 FROM tab0 AS cor0
----
-2112
-5248
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-2215
SELECT - col1 DIV 97 - - 1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2215
SELECT - col1 / 97 - - 1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col1 + - 74 * 50 FROM tab2 AS cor0
----
-3641
-3669
-3683
query I rowsort
SELECT ( col0 ) - - 46 * - col0 FROM tab0
----
-1080
-1575
-4005
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2218
SELECT ALL - col1 * - CAST( 62 AS SIGNED ) + col1 FROM tab1 AS cor0
----
1638
630
819
skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - col1 * - CAST ( 62 AS INTEGER ) + col1 FROM tab1 AS cor0
----
1638
630
819
query I rowsort
SELECT col0 * col2 * + cor0.col0 FROM tab0 cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col1 col2 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL 82 + col1 FROM tab1
----
108
92
95
query I rowsort
SELECT ALL col1 + - col2 * - col2 * - 32 AS col2 FROM tab2
----
-21573
-23297
-46191
query I rowsort
SELECT DISTINCT + 77 + col2 + - tab2.col2 * + tab2.col1 * col1 AS col1 FROM tab2
----
-10867
-25843
-90403
query I rowsort
SELECT - col0 * - col0 + col0 + col1 AS col1 FROM tab0
----
1357
686
8101
query I rowsort
SELECT 20 AS col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 0a35fe98f3e7d5fc8ff2ae815bd20ef4
query I rowsort
SELECT + + col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT + col0 + - ( col2 * - col2 + col1 ) FROM tab0 AS cor0
----
-61
1027
6722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2228
SELECT ALL cor0.col2 + CAST( + 31 AS SIGNED ) FROM tab1 cor0
----
127
85
88
skipif mysql # not compatible
query I rowsort label-2228
SELECT ALL cor0.col2 + CAST ( + 31 AS INTEGER ) FROM tab1 cor0
----
127
85
88
query I rowsort
SELECT ALL + cor0.col1 - col0 * col0 FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2230
SELECT DISTINCT - col0 + - col0 DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2230
SELECT DISTINCT - col0 + - col0 / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2231
SELECT + - col0 + - CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2231
SELECT + - col0 + - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col1 col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col0 * cor0.col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-2234
SELECT col1 DIV cor0.col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2234
SELECT col1 / cor0.col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - col0 * 35 AS col1 FROM tab1 AS cor0
----
-105
-2240
-2800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - cor0.col0 * + col0 col1 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT + + col0 + + 49 + + col0 AS col0 FROM tab2 AS cor0
----
205
207
63
query I rowsort
SELECT ALL ( tab2.col0 ) - col0 * col0 AS col0 FROM tab2
----
-42
-6006
-6162
query I rowsort
SELECT - + col0 * col0 + col0 FROM tab2 cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL - col0 * - col2 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT + + col2 + - 29 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-2296
-28
-924
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2243
SELECT - col0 DIV + col2 + + col2 * + 47 FROM tab0 AS cor0
----
12
1551
3853
skipif mysql # not compatible
query I rowsort label-2243
SELECT - col0 / + col2 + + col2 * + 47 FROM tab0 AS cor0
----
12
1551
3853
query I rowsort
SELECT + col1 + 76 AS col1 FROM tab2 AS cor0
----
107
135
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( cor0.col0 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL 83 + cor0.col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to 26c1e9095d895be75f4609be3f9194bf
query I rowsort
SELECT DISTINCT - - col2 * col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + - cor0.col2 AS col2 FROM tab0 cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col2 FROM tab0
----
-50
-50
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-2251
SELECT DISTINCT + - ( col0 ) * 44 + + col1 DIV col0 FROM tab2 AS cor0
----
-304
-3432
-3476
skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT + - ( col0 ) * 44 + + col1 / col0 FROM tab2 AS cor0
----
-304
-3432
-3476
query I rowsort
SELECT ALL - col2 * - col2 + 59 AS col1 FROM tab2 AS cor0
----
1503
735
788
query I rowsort
SELECT + - cor0.col1 - cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT col0 * + col0 + cor0.col1 * - col0 FROM tab0 AS cor0
----
-1488
-178
-2170
query I rowsort
SELECT ALL - ( + col1 ) * + 12 FROM tab1 AS cor0
----
-120
-156
-312
query I rowsort
SELECT + 7 - - col1 * 11 AS col1 FROM tab1 AS cor0
----
117
150
293
query I rowsort
SELECT DISTINCT - - ( col1 ) * + 16 + + col2 AS col2 FROM tab2 AS cor0
----
310
523
970
query I rowsort
SELECT DISTINCT col0 * col1 + col0 * + col1 + + col1 AS col2 FROM tab2 AS cor0
----
2703
465
9263
query I rowsort
SELECT + - 96 + col1 AS col0 FROM tab1 AS cor0
----
-70
-83
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2260
SELECT 60 DIV col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2260
SELECT 60 / col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col1 * + col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2262
SELECT ALL - col2 + + cor0.col2 + + CAST( - 74 AS SIGNED ) FROM tab0 AS cor0
----
-74
-74
-74
skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL - col2 + + cor0.col2 + + CAST ( - 74 AS INTEGER ) FROM tab0 AS cor0
----
-74
-74
-74
query I rowsort
SELECT - ( - col1 ) * 38 - cor0.col0 AS col0 FROM tab2 cor0
----
1171
2164
567
query I rowsort
SELECT DISTINCT - col2 * + col1 * cor0.col0 + - col2 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT ALL - col2 * col1 - - tab2.col2 * - tab2.col0 FROM tab2
----
-1026
-3562
-3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2266
SELECT ALL - - col0 * col0 - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - - col0 * col0 - + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + cor0.col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 * col1 + + 74 FROM tab2 AS cor0
----
-1460
-572
-763
query I rowsort
SELECT ALL + col2 * col0 + - 96 + col2 AS col0 FROM tab0 AS cor0
----
-60
7284
729
query I rowsort
SELECT ALL - ( cor1.col1 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2271
SELECT - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2271
SELECT - CAST ( NULL AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col2 * ( col1 ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col2 * - 67 + + 1 * + cor0.col0 * - col2 AS col2 FROM tab2 AS cor0
----
-286
-456
1620
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT - + cor0.col1 + col2 DIV + cor0.col0 FROM tab0 cor0
----
-85
-91
-97
skipif mysql # not compatible
query I rowsort label-2274
SELECT - + cor0.col1 + col2 / + cor0.col0 FROM tab0 cor0
----
-85
-91
-97
query I rowsort
SELECT - ( + col1 ) + col0 + - col1 * col0 AS col1 FROM tab1
----
-101
-586
-973
onlyif mysql # use DIV operator for integer division
query I rowsort label-2276
SELECT DISTINCT col2 + col1 DIV + tab1.col1 AS col0 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-2276
SELECT DISTINCT col2 + col1 / + tab1.col1 AS col0 FROM tab1
----
55
58
97
query I rowsort
SELECT DISTINCT + - col2 - 29 * col1 FROM tab1 AS cor0
----
-347
-473
-808
query I rowsort
SELECT - col2 * + 6 FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT cor2.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT ALL + col0 + + 85 + - col1 FROM tab1 AS cor0
----
139
152
62
query I rowsort
SELECT DISTINCT + ( col1 ) + col2 * - ( - 87 ) AS col0 FROM tab0 AS cor0
----
184
2957
7225
onlyif mysql # use DIV operator for integer division
query I rowsort label-2282
SELECT DISTINCT col2 * col0 - + cor0.col0 DIV 58 AS col2 FROM tab2 AS cor0
----
189
2027
3001
skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT col2 * col0 - + cor0.col0 / 58 AS col2 FROM tab2 AS cor0
----
189
2027
3001
query I rowsort
SELECT ALL + - 94 + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-37
-58
77
query I rowsort
SELECT DISTINCT col0 - - col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - ( cor0.col0 ) * - 95 FROM tab2, tab2 AS cor0
----
9 values hashing to 8c99833518f2e5463bc15159b6a72819
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2286
SELECT ALL - ( + tab2.col0 * + CAST( NULL AS SIGNED ) ) - 60 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL - ( + tab2.col0 * + CAST ( NULL AS INTEGER ) ) - 60 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2287
SELECT + CAST( - 22 AS SIGNED ) AS col0 FROM tab1
----
-22
-22
-22
skipif mysql # not compatible
query I rowsort label-2287
SELECT + CAST ( - 22 AS INTEGER ) AS col0 FROM tab1
----
-22
-22
-22
query I rowsort
SELECT ALL 1 AS col1 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + 96 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + col2 col1 FROM tab2 AS cor0
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 + 31 col0 FROM tab1 cor0
----
31
31
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-2292
SELECT cor0.col1 DIV tab0.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7a47860681566df74bf5ec42bb859479
skipif mysql # not compatible
query I rowsort label-2292
SELECT cor0.col1 / tab0.col2 FROM tab0, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7a47860681566df74bf5ec42bb859479
query I rowsort
SELECT ALL - 20 * - ( + col2 ) FROM tab0
----
1640
20
660
query I rowsort
SELECT ALL - - ( + col2 ) + + col2 + col0 * 56 FROM tab1 AS cor0
----
276
3698
4672
query I rowsort
SELECT col1 * ( col2 * - 91 ) FROM tab1 AS cor0
----
-113568
-127764
-51870
query I rowsort
SELECT + 84 * cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT + + col0 + + 27 AS col2 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT col2 + 41 AS col0 FROM tab2 AS cor0
----
67
68
79
query I rowsort
SELECT - col2 + - col2 * + col0 FROM tab0 AS cor0
----
-36
-7380
-825
query I rowsort
SELECT - + col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL 90 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT ALL - col0 + col0 * + 67 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT - 82 FROM tab0, tab2 AS cor0
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c
query I rowsort
SELECT DISTINCT + 10 AS col0 FROM tab2, tab0 AS cor0
----
10
query I rowsort
SELECT + 76 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col0 col0 FROM tab2, tab0, tab1 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - col2 - ( col1 ) * col0 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT - 50 FROM tab1 AS cor0
----
-50
query I rowsort
SELECT ALL col1 + - 85 * col2 AS col1 FROM tab2 AS cor0
----
-2151
-2264
-3213
query I rowsort
SELECT + col2 * col0 * - tab1.col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT ALL tab1.col1 + tab1.col2 - + 74 * - col2 FROM tab1
----
4076
4285
7213
query I rowsort
SELECT col0 * 13 * tab2.col0 FROM tab2
----
637
79092
81133
query I rowsort
SELECT 98 * + 61 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c14c2b4b125b8ec0b0ff3ef0d76b7333
query I rowsort
SELECT ALL - col0 + - 99 * col2 - + col2 AS col2 FROM tab2
----
-2678
-2707
-3879
query I rowsort
SELECT ALL + tab1.col0 + tab1.col1 FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2317
SELECT tab2.col2 + col2 DIV + col1 AS col1 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-2317
SELECT tab2.col2 + col2 / + col1 AS col1 FROM tab2
----
26
27
40
query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab2 cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - ( + col1 ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL 76 * 28 + + col0 * 0 AS col1 FROM tab1 AS cor0
----
2128
2128
2128
query I rowsort
SELECT - 85 AS col2 FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT + + 33 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col2 * + col1 col2 FROM tab2 AS cor0
----
1560
684
864
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
3645 values hashing to 73edaf471aef3f42e9a0b0be98b79374
query I rowsort
SELECT - cor0.col2 + col0 * - 67 AS col2 FROM tab2 AS cor0
----
-496
-5252
-5331
query I rowsort
SELECT - - ( - cor0.col1 ) AS col2 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT - col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 + 56 AS col1 FROM tab0 AS cor0
----
145
80
91
query I rowsort
SELECT + - col1 * + col1 * col1 + - col2 + + col2 * - 8 * col2 AS col1 FROM tab1 cor0
----
-27049
-40958
-76021
query I rowsort
SELECT col2 * ( + col1 ) * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + + col2 + - col2 AS col2 FROM tab1 cor0
----
0
query I rowsort
SELECT + cor0.col1 - 54 AS col2 FROM tab1 AS cor0
----
-28
-41
-44
query I rowsort
SELECT - col2 + + ( col1 * - col0 ) FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT - col0 + col0 + - col1 * col0 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT col1 * - col2 - + col1 * + col2 FROM tab1 AS cor0
----
-1140
-2496
-2808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 - cor0.col2 * - col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + col1 + + ( col1 ) FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT col0 + col0 * col2 FROM tab1 cor0
----
165
3712
7760
query I rowsort
SELECT - col0 + + col2 * 48 FROM tab0 AS cor0
----
13
1560
3847
query I rowsort
SELECT col1 * col0 - col0 AS col2 FROM tab0 AS cor0
----
2040
3360
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-2342
SELECT DISTINCT - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT - col0 / col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - col1 + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-2344
SELECT DISTINCT - col2 DIV col1 + ( 51 ) AS col2 FROM tab2 AS cor0
----
49
51
skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - col2 / col1 + ( 51 ) AS col2 FROM tab2 AS cor0
----
49
51
query I rowsort
SELECT ALL + - ( + cor0.col2 ) FROM tab1, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + - cor0.col0 + + 75 FROM tab1, tab1 AS cor0
----
9 values hashing to 95d919c4e2ac04a31029bd2b39390e86
query I rowsort
SELECT DISTINCT ( + cor0.col1 ) * col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col1 col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL col2 + + col0 + + col1 * + col1 AS col1 FROM tab0
----
7453
8452
9445
onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT ALL col1 + - col0 * - col2 - col1 DIV - col0 FROM tab1
----
196
3658
7693
skipif mysql # not compatible
query I rowsort label-2350
SELECT ALL col1 + - col0 * - col2 - col1 / - col0 FROM tab1
----
196
3658
7693
query I rowsort
SELECT col2 * tab2.col0 - - col2 AS col1 FROM tab2
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-2352
SELECT ALL tab1.col0 DIV - col2 AS col2 FROM tab1
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2352
SELECT ALL tab1.col0 / - col2 AS col2 FROM tab1
----
-1
0
0
query I rowsort
SELECT 45 FROM tab1, tab0 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # use DIV operator for integer division
query I rowsort label-2354
SELECT col0 * col1 DIV + tab1.col1 AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-2354
SELECT col0 * col1 / + tab1.col1 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL + tab0.col0 + tab0.col2 * - 70 + col1 FROM tab0
----
-2200
-5560
62
query I rowsort
SELECT DISTINCT col0 + + col2 + 30 * + 40 * + col1 FROM tab0
----
103257
109371
116436
query I rowsort
SELECT - 6 + col2 FROM tab2
----
20
21
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT - col1 DIV + 82 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2358
SELECT - col1 / + 82 col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 9 - - col2 AS col2 FROM tab0
----
-8
24
73
query I rowsort
SELECT ( - col1 ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col0 * + col1 - + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL - col0 + + col2 AS col1 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2363
SELECT ALL col0 DIV - tab0.col1 + ( - col0 ) * - tab0.col2 AS col0 FROM tab0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL col0 / - tab0.col1 + ( - col0 ) * - tab0.col2 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL tab0.col0 * col0 + - col0 FROM tab0
----
1190
552
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT + col0 DIV - col0 + col1 - col2 FROM tab0
----
52
8
95
skipif mysql # not compatible
query I rowsort label-2365
SELECT + col0 / - col0 + col1 - col2 FROM tab0
----
52
8
95
query III rowsort
SELECT * FROM tab1 WHERE + col2 IN ( - col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2367
SELECT col0 - col1 DIV col0 AS col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-2367
SELECT col0 - col1 / col0 AS col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT - col2 + col1 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT - col2 + col1 * col0 * + col1 FROM tab1
----
13424
1974
6343
query I rowsort
SELECT DISTINCT col2 - + tab2.col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab0 WHERE col2 IN ( col1 + - col2 + - col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - tab0.col1 col2 FROM tab0
----
0
0
0
query I rowsort
SELECT col2 - + col2 AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NULL NOT IN ( - col2 )
----
query I rowsort
SELECT - col0 + + tab0.col1 FROM tab0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col1 * col2 * tab0.col2 col1 FROM tab0
----
611884
93654
97
query I rowsort
SELECT + tab0.col0 + col1 AS col0 FROM tab0 WHERE NULL IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2378
SELECT ALL col2 DIV - col2 AS col0 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2378
SELECT ALL col2 / - col2 AS col0 FROM tab1
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2380
SELECT col1 * col2 DIV col0 AS col2 FROM tab1
----
15
468
8
skipif mysql # not compatible
query I rowsort label-2380
SELECT col1 * col2 / col0 AS col2 FROM tab1
----
15
468
8
query I rowsort
SELECT - col0 * - tab2.col0 * - col2 AS col2 FROM tab2
----
-1323
-158184
-237158
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 - col2 NOT BETWEEN - col0 / + col2 - col1 AND - col2
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT + col0 + - col0 + - col2 * + col0 AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col0 + + col0 * col1 FROM tab2
----
1422
224
4680
query I rowsort
SELECT ALL + col2 * + col1 + + col1 FROM tab2
----
1593
663
868
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL tab1.col2 - tab1.col1 * + col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + 16 * 51 AS col2 FROM tab2
----
816
query I rowsort
SELECT DISTINCT + tab0.col1 * + col1 FROM tab0
----
7396
8281
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + 19 col0 FROM tab2
----
62
62
62
query I rowsort
SELECT - col2 * col0 + col2 AS col1 FROM tab2
----
-162
-2002
-2964
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2392
SELECT ALL + CAST( - col2 + + col0 AS SIGNED ) AS col1 FROM tab2
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL + CAST ( - col2 + + col0 AS INTEGER ) AS col1 FROM tab2
----
-20
41
52
query I rowsort
SELECT + ( - col2 ) * col1 + 83 FROM tab2
----
-1451
-563
-754
query I rowsort
SELECT + ( col0 ) * cor0.col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col1 + - col2 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 47 ) col1 FROM tab0 AS cor0
----
-47
query I rowsort
SELECT ALL - col2 * cor0.col0 + + col1 + ( 20 ) * + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
13133
1424
9162
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 * col1 + col0 * + col0 col1 FROM tab2 AS cor0
----
-16590
-265434
-6678
query I rowsort
SELECT DISTINCT col0 * 2 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2400
SELECT ALL CAST( col1 AS SIGNED ) AS col1 FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL CAST ( col1 AS INTEGER ) AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT 64 * + col1 FROM tab0
----
5504
5824
6208
query I rowsort
SELECT ALL + col2 - + col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL - + col0 * - col2 + 60 * cor0.col0 FROM tab1 AS cor0
----
12480
342
7488
query I rowsort
SELECT ALL col1 + + cor0.col2 - - col2 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT DISTINCT + cor0.col2 - - cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT + 3 * + col0 * + col1 - - col1 AS col0 FROM tab1 cor0
----
1930
260
3133
onlyif mysql # use DIV operator for integer division
query I rowsort label-2407
SELECT + 57 DIV col1 FROM tab1
----
2
4
5
skipif mysql # not compatible
query I rowsort label-2407
SELECT + 57 / col1 FROM tab1
----
2
4
5
query I rowsort
SELECT ALL - 25 * col2 + col0 * - col0 FROM tab1 AS cor0
----
-1359
-5521
-8800
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2409
SELECT - col2 + + col1 * + CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
7363
8199
9408
skipif mysql # not compatible
query I rowsort label-2409
SELECT - col2 + + col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT 0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT 34 * col2 AS col0 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT - col0 + - col0 * 12 AS col0 FROM tab2 AS cor0
----
-1014
-1027
-91
query I rowsort
SELECT + col0 + + col2 * + ( 24 ) FROM tab1 cor0
----
1299
1432
2384
query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab2, tab1 AS cor0
----
63
query I rowsort
SELECT DISTINCT + col0 + 4 AS col1 FROM tab1 AS cor0
----
68
7
84
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-2417
SELECT col2 DIV + col1 + - col0 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-2417
SELECT col2 / + col1 + - col0 FROM tab1 AS cor0
----
-1
-59
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-2418
SELECT ALL col2 + + 19 + - col1 DIV + cor0.col0 FROM tab0 cor0
----
100
18
49
skipif mysql # not compatible
query I rowsort label-2418
SELECT ALL col2 + + 19 + - col1 / + cor0.col0 FROM tab0 cor0
----
100
18
49
query I rowsort
SELECT + col0 * + 19 AS col2 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT ALL + col1 + 29 FROM tab2 cor0
----
46
60
88
query I rowsort
SELECT ALL col2 + + 7 FROM tab2 AS cor0
----
33
34
45
query I rowsort
SELECT ALL + - col2 * + col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2424
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col2 * 7 AS col1 FROM tab2 AS cor0
----
182
189
266
query I rowsort
SELECT + 66 * + col2 * + col2 FROM tab0 AS cor0
----
443784
66
71874
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab1 cor1, tab0, tab0 AS cor2
----
3645 values hashing to d24b34b0673c90715a7101e7e630fa94
query I rowsort
SELECT - 0 * + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 41 * + 68 FROM tab0 AS cor0
----
-2788
-2788
-2788
query I rowsort
SELECT DISTINCT - col2 * + tab2.col1 * - col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT 30 + col0 * + 9 AS col2 FROM tab2 AS cor0
----
732
741
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col2 * col0 col0 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT ALL - cor1.col0 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + - 99 * cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29f4b52236e6cacaf6a6faa5ea4f8343
query I rowsort
SELECT + - col2 * + col2 - - col1 AS col0 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT - col1 * + col1 + + col0 FROM tab2 AS cor0
----
-210
-3403
-954
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2437
SELECT - col2 + CAST( col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2437
SELECT - col2 + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + - col0 + ( - col0 ) * col1 * + col2 AS col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
skipif mysql # not compatible
query I rowsort
SELECT - col2 * CAST ( 96 * col1 AS REAL ) FROM tab0 AS cor0
----
-272448
-716352
-9312
query I rowsort
SELECT - 9 * cor0.col1 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3232a778ce391ddf9a8193720049fb23
query I rowsort
SELECT DISTINCT - 16 FROM tab1, tab1 AS cor0
----
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-2442
SELECT DISTINCT + col0 DIV + col1 col0 FROM tab1
----
0
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + col0 / + col1 col0 FROM tab1
----
0
6
query I rowsort
SELECT - 76 AS col1 FROM tab2, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 30b3ee36c95bb84d1f6a640c4d41cf15
query I rowsort
SELECT + 15 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL - 9 + 4 AS col2 FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT + 47 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT DISTINCT + 12 FROM tab0, tab1 AS cor0, tab2, tab0 AS cor1
----
12
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab0 cor2
----
3645 values hashing to fb1fb273a543ea33958edfcaa2e7ed26
query I rowsort
SELECT 37 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2450
SELECT ALL + col0 DIV - 21 + col1 * + col1 FROM tab0
----
7395
8277
9408
skipif mysql # not compatible
query I rowsort label-2450
SELECT ALL + col0 / - 21 + col1 * + col1 FROM tab0
----
7395
8277
9408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - tab1.col1 col1 FROM tab1
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2453
SELECT ALL CAST( 26 + - col2 AS SIGNED ) AS col1 FROM tab0
----
-56
-7
25
skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL CAST ( 26 + - col2 AS INTEGER ) AS col1 FROM tab0
----
-56
-7
25
query I rowsort
SELECT ALL ( col0 ) AS col2 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT + cor1.col0 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col0 * cor0.col1 + + 31 - cor0.col1 FROM tab2 AS cor0
----
1357
217
4574
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - col2 * col2 - + col1 * cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
-25440
-39420
-8949
query I rowsort
SELECT - 20 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to eb3a66728062963cccbd15bd2f5c9eee
query I rowsort
SELECT - 70 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073
query I rowsort
SELECT 59 FROM tab1, tab2, tab2 cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
query I rowsort
SELECT + col0 - col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2464
SELECT ALL 76 * col1 DIV col2 col2 FROM tab0
----
198
7372
84
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL 76 * col1 / col2 col2 FROM tab0
----
198
7372
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-2465
SELECT + col2 DIV - col0 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2465
SELECT + col2 / - col0 FROM tab0
----
-1
0
0
query I rowsort
SELECT ALL 88 FROM tab2, tab1, tab2 cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT col1 * - col1 * + 25 FROM tab0
----
-184900
-207025
-235225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2468
SELECT - + cor0.col1 * - CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-2468
SELECT - + cor0.col1 * - CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL col2 * 33 FROM tab0
----
1089
2706
33
query I rowsort
SELECT ALL + col0 * + 88 * + 1 FROM tab1
----
264
5632
7040
query I rowsort
SELECT - col1 + cor0.col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT + + col2 * - 95 AS col0 FROM tab0 AS cor0
----
-3135
-7790
-95
query I rowsort
SELECT ALL + col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * 87 FROM tab1 cor0
----
1131
2262
870
query I rowsort
SELECT DISTINCT col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT 84 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT DISTINCT col1 + + ( 46 ) FROM tab1 AS cor0
----
56
59
72
query I rowsort
SELECT ALL + col1 + col2 * - col2 * + cor0.col1 FROM tab0 AS cor0
----
-611793
-93568
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab2 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
onlyif mysql # use DIV operator for integer division
query I rowsort label-2480
SELECT - col0 DIV col1 + 29 AS col1 FROM tab0
----
29
29
29
skipif mysql # not compatible
query I rowsort label-2480
SELECT - col0 / col1 + 29 AS col1 FROM tab0
----
29
29
29
query I rowsort
SELECT DISTINCT + col2 * 53 * - col1 FROM tab2
----
-34238
-44361
-81302
query I rowsort
SELECT - tab0.col0 + col1 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT + col1 * - tab2.col0 AS col1 FROM tab2
----
-1343
-217
-4602
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3
query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT ALL - + cor0.col0 - + col0 AS col2 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL col2 * 88 + + col1 * cor0.col1 * col1 FROM tab1 AS cor0
----
10645
22328
6016
query I rowsort
SELECT ALL - - col1 + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col2 + - col0 FROM tab0 cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2490
SELECT - + col0 * col0 DIV col2 + - col2 * - col0 + - col2 FROM tab0 AS cor0
----
-1191
7120
742
skipif mysql # not compatible
query I rowsort label-2490
SELECT - + col0 * col0 / col2 + - col2 * - col0 + - col2 FROM tab0 AS cor0
----
-1191
7120
742
query I rowsort
SELECT ALL - - 48 + + 25 FROM tab2 AS cor0
----
73
73
73
query I rowsort
SELECT ALL 84 AS col2 FROM tab1 AS cor0
----
84
84
84
query I rowsort
SELECT - ( - cor0.col1 ) + col0 + col0 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col1 FROM tab0 AS cor0
----
-2
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col1 ) col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT + 78 - col0 * col0 FROM tab0 AS cor0
----
-1147
-498
-7843
query I rowsort
SELECT + 70 FROM tab2 cor0
----
70
70
70
query I rowsort
SELECT DISTINCT + - col2 * col0 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + - 64 FROM tab0 AS cor0
----
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2500
SELECT CAST( - cor0.col0 AS SIGNED ) - col1 FROM tab2 cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-2500
SELECT CAST ( - cor0.col0 AS INTEGER ) - col1 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT col1 * - 62 * - col0 AS col1 FROM tab1
----
39680
4836
64480
query I rowsort
SELECT + col0 + + 67 + + 52 * col2 FROM tab2
----
1478
1497
2122
onlyif mysql # use DIV operator for integer division
query I rowsort label-2503
SELECT - col2 * col0 + + 5 + col1 DIV col1 col0 FROM tab0
----
-29
-7292
-786
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2503
SELECT - col2 * col0 + + 5 + col1 / col1 col0 FROM tab0
----
-29
-7292
-786
query I rowsort
SELECT - tab1.col1 - + col0 AS col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT DISTINCT col1 * col0 + + col2 - + col0 AS col2 FROM tab2
----
1302
237
4550
query I rowsort
SELECT DISTINCT + - col2 * + cor0.col0 + + 11 AS col0 FROM tab1 AS cor0
----
-151
-3637
-7669
query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col0 * col1 - + cor0.col0 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT ( - col0 ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col0 + - cor0.col1 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL + + ( cor0.col2 ) * - col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col0 * col0 + col2 AS col2 FROM tab2 cor0
----
6110
6279
76
query I rowsort
SELECT ALL - + ( + col0 ) * ( col1 ) FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 32 FROM tab1, tab2 AS cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT tab0.col1 + + tab0.col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2517
SELECT DISTINCT - col0 DIV col1 + cor0.col1 FROM tab2 AS cor0
----
13
31
58
skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT - col0 / col1 + cor0.col1 FROM tab2 AS cor0
----
13
31
58
query I rowsort
SELECT 17 AS col0 FROM tab0
----
17
17
17
query I rowsort
SELECT col1 - col0 * - 86 AS col0 FROM tab2
----
633
6767
6811
onlyif mysql # use DIV operator for integer division
query I rowsort label-2520
SELECT - col1 DIV col0 + col0 AS col1 FROM tab2 cor0
----
3
78
79
skipif mysql # not compatible
query I rowsort label-2520
SELECT - col1 / col0 + col0 AS col1 FROM tab2 cor0
----
3
78
79
query I rowsort
SELECT + - col1 * col1 + - 66 FROM tab2 AS cor0
----
-1027
-3547
-355
query I rowsort
SELECT ALL + col1 * tab1.col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT - col0 * 8 FROM tab0 cor0
----
-192
-280
-712
onlyif mysql # use DIV operator for integer division
query I rowsort label-2524
SELECT ALL + col1 DIV 65 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + col1 / 65 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + col0 + col2 * + ( col1 ) AS col2 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT - col0 * + 70 AS col2 FROM tab0 AS cor0
----
-1680
-2450
-6230
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - col0 + CAST ( + col2 AS REAL ) AS col1 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT ALL + + col1 - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col2 + + 5 * col0 col2 FROM tab1 AS cor0
----
1419
1648
890
query I rowsort
SELECT ALL - col0 - col2 * - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
157461
185129
884656
query I rowsort
SELECT - cor0.col2 * ( 27 ) FROM tab2 cor0
----
-1026
-702
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + ( + cor0.col2 ) col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col2 + 90 + col2 FROM tab2
----
142
144
166
query I rowsort
SELECT DISTINCT - + 30 + - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-21
-37
-64
query I rowsort
SELECT DISTINCT - 15 * - 92 + - col1 + ( - col1 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
1276
327
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-2536
SELECT col2 * 86 * col0 + 87 DIV + cor0.col0 - - cor0.col0 FROM tab2 AS cor0
----
16273
174487
258252
skipif mysql # not compatible
query I rowsort label-2536
SELECT col2 * 86 * col0 + 87 / + cor0.col0 - - cor0.col0 FROM tab2 AS cor0
----
16273
174487
258252
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 54 col0 FROM tab1 AS cor0
----
-2916
-3078
-5184
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2538
SELECT ALL + + CAST( col2 AS SIGNED ) * - col1 FROM tab2 cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL + + CAST ( col2 AS INTEGER ) * - col1 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 17 - col2 col0 FROM tab1 AS cor0
----
113
125
388
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + - col1 col1 FROM tab0 AS cor0
----
1128
490
7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2541
SELECT ALL - - cor0.col1 DIV - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - - cor0.col1 / - col1 AS col2 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - - col0 * - col0 - - col2 * col0 FROM tab0 AS cor0
----
-1190
-623
216
query I rowsort
SELECT ALL + + 12 * col0 + - cor0.col0 AS col1 FROM tab0 cor0
----
264
385
979
query I rowsort
SELECT ALL + cor0.col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + + col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-2546
SELECT DISTINCT ( col2 ) DIV col2 AS col1 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT ( col2 ) / col2 AS col1 FROM tab0 AS cor0
----
1
query I rowsort
SELECT + 71 * col1 AS col2 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT - cor0.col1 * - col1 * + col0 + - col0 FROM tab2 AS cor0
----
22752
271440
6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-2549
SELECT DISTINCT + col1 - - col2 * col2 DIV col0 FROM tab1 AS cor0
----
128
60
998
skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT + col1 - - col2 * col2 / col0 FROM tab1 AS cor0
----
128
60
998
query I rowsort
SELECT ALL ( - col1 ) + col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT 38 + - col2 FROM tab0 AS cor0
----
-44
37
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2552
SELECT + ( col0 ) DIV col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2552
SELECT + ( col0 ) / col2 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-2553
SELECT col1 DIV 95 AS col2 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-2553
SELECT col1 / 95 AS col2 FROM tab0
----
0
0
1
query I rowsort
SELECT - + 53 * 11 AS col1 FROM tab2 AS cor0
----
-583
-583
-583
query I rowsort
SELECT ALL - col1 * + col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-2556
SELECT DISTINCT + 56 + 7 DIV col2 AS col0 FROM tab0 cor0
----
56
63
skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + 56 + 7 / col2 AS col0 FROM tab0 cor0
----
56
63
query I rowsort
SELECT - - 8 + - ( col1 + col1 ) FROM tab0 AS cor0
----
-164
-174
-186
skipif mysql # not compatible
query I rowsort
SELECT ALL - + col2 * ( + col1 ) + CAST ( col1 AS REAL ) AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT - ( col1 ) + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT col1 + + col1 AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT + col0 * 79 FROM tab0
----
1896
2765
7031
query I rowsort
SELECT - - 34 - + 54 FROM tab2 AS cor0
----
-20
-20
-20
query I rowsort
SELECT - - cor0.col0 * + col0 + col1 FROM tab0 AS cor0
----
1322
662
8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-2564
SELECT - col0 DIV - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2564
SELECT - col0 / - col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * col1 col0 FROM tab1 AS cor0
----
-1118
-430
-559
onlyif mysql # use DIV operator for integer division
query I rowsort label-2566
SELECT DISTINCT - 44 DIV - col1 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - 44 / - col1 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT DISTINCT 47 + + col2 AS col1 FROM tab2 AS cor0
----
73
74
85
query I rowsort
SELECT - col0 * cor0.col2 * + col0 FROM tab1 cor0
----
-233472
-486
-614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2569
SELECT 96 + + col1 / CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2569
SELECT 96 + + col1 / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 * ( + col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT 32 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
32
query I rowsort
SELECT ALL 79 AS col1 FROM tab2
----
79
79
79
query I rowsort
SELECT - col2 + - ( + 26 ) * + col1 * - col2 AS col1 FROM tab0 cor0
----
193930
2521
73755
query I rowsort
SELECT col0 * - ( - cor0.col1 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2575
SELECT col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2575
SELECT col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2576
SELECT + - col1 DIV col2 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2576
SELECT + - col1 / col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * - col1 * col0 + col0 FROM tab2 cor0
----
-106018
-1512
-358878
query I rowsort
SELECT ALL + 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 ALL - col2 + col1 col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT col0 + - 76 + + col1 FROM tab2 AS cor0
----
-38
20
61
query I rowsort
SELECT ALL col2 + + 9 FROM tab0 AS cor0
----
10
42
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2582
SELECT col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-2582
SELECT col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2583
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2583
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col2 + ( col2 + + col2 ) FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT DISTINCT + col2 * - 47 FROM tab1 AS cor0
----
-2538
-2679
-4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-2586
SELECT 22 DIV ( col0 ) FROM tab1 cor0
----
0
0
7
skipif mysql # not compatible
query I rowsort label-2586
SELECT 22 / ( col0 ) FROM tab1 cor0
----
0
0
7
query I rowsort
SELECT DISTINCT - + 6 * + col0 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT + - 24 * - 22 FROM tab1 AS cor0
----
528
528
528
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + + 39 col1 FROM tab1 cor0
----
-25
-41
36
query I rowsort
SELECT ALL + - 69 * + 75 FROM tab1 AS cor0
----
-5175
-5175
-5175
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2591
SELECT CAST( NULL AS DECIMAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-2591
SELECT CAST ( NULL AS REAL ) FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT 48 * 11 AS col2 FROM tab0, tab2 AS cor0
----
528
onlyif mysql # use DIV operator for integer division
query I rowsort label-2593
SELECT + 36 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2593
SELECT + 36 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - ( - col2 ) * 91 + col0 + col2 AS col1 FROM tab2 cor0
----
-2262
-2423
-3341
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 25 * col0 col0 FROM tab1 AS cor0
----
-1600
-2000
-75
query I rowsort
SELECT - + ( cor0.col1 ) AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - 68 FROM tab2, tab0 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
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 61 * - col1 AS col0 FROM tab1
----
-1586
-610
-793
onlyif mysql # use DIV operator for integer division
query I rowsort label-2600
SELECT ALL - col1 DIV - col2 col1 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - col1 / - col2 col1 FROM tab0 AS cor0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2601
SELECT DISTINCT + 0 DIV col0 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT + 0 / col0 AS col2 FROM tab2
----
0
query I rowsort
SELECT - 7 * col1 FROM tab1
----
-182
-70
-91
query I rowsort
SELECT - col1 * col1 * col0 AS col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL 3 AS col2 FROM tab2
----
3
3
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * + col0 - + col2 col1 FROM tab1
----
1607
1984
24
query I rowsort
SELECT - 59 - col1 FROM tab0
----
-145
-150
-156
query I rowsort
SELECT tab1.col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT + + cor0.col0 + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - - col1 * ( 77 ) + col1 * - ( - col1 ) * col2 AS col2 FROM tab1 cor0
----
17225
38506
6470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * tab0.col0 col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT 50 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 314aace40e704c20a6be06204a329f80
query I rowsort
SELECT ALL - ( + col2 ) * col1 + 92 AS col0 FROM tab1
----
-1156
-1312
-478
query I rowsort
SELECT 32 AS col2 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT - 56 + col2 FROM tab1
----
-2
1
40
query I rowsort
SELECT DISTINCT 5 AS col2 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
5
query I rowsort
SELECT 27 + - 11 FROM tab2
----
16
16
16
query I rowsort
SELECT 42 * + tab0.col0 + col0 * tab0.col2 AS col1 FROM tab0
----
11036
1505
1800
query I rowsort
SELECT DISTINCT + ( - cor0.col0 ) FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - - 80 AS col2 FROM tab2 AS cor0
----
80
query I rowsort
SELECT ALL + col1 * col0 * col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL ( col2 ) * 17 AS col2 FROM tab0 AS cor0
----
1394
17
561
query I rowsort
SELECT ALL - ( + col2 ) + + cor0.col1 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2623
SELECT DISTINCT + col2 * col0 * + col2 + - 36 * + col2 + CAST( NULL AS SIGNED ) * col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + col2 * col0 * + col2 + - 36 * + col2 + CAST ( NULL AS INTEGER ) * col1 * + col2 AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab2
----
5
query I rowsort
SELECT DISTINCT 11 AS col2 FROM tab2, tab1, tab0 cor0
----
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2626
SELECT ALL + + col0 + col1 DIV + col2 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + + col0 + col1 / + col2 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT + 55 * col2 FROM tab0 cor0
----
1815
4510
55
query I rowsort
SELECT ALL - ( - col0 ) * 86 - - col0 AS col2 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT + - 35 FROM tab2 AS cor0
----
-35
-35
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col0 * col2 col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL 84 * + col1 * - 70 AS col0 FROM tab2 AS cor0
----
-182280
-346920
-99960
query I rowsort
SELECT ALL col0 + col0 * col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT ALL - col1 + + ( - 64 ) FROM tab1
----
-74
-77
-90
query I rowsort
SELECT ALL + col1 + - col0 + ( - tab2.col2 ) AS col1 FROM tab2
----
-100
-3
-45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2635
SELECT ALL + col1 + col2 DIV + col2 + tab1.col1 FROM tab1
----
21
27
53
skipif mysql # not compatible
query I rowsort label-2635
SELECT ALL + col1 + col2 / + col2 + tab1.col1 FROM tab1
----
21
27
53
query I rowsort
SELECT ALL - col0 * - col0 + + ( col2 * - tab1.col2 ) FROM tab1
----
-2816
-2907
847
query I rowsort
SELECT DISTINCT col2 * col2 + - col2 AS col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT ALL + - col0 * + col0 * - col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + col0 * + 71 + - col2 AS col1 FROM tab1 AS cor0
----
159
4487
5584
onlyif mysql # use DIV operator for integer division
query I rowsort label-2640
SELECT ALL - col0 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL - col0 / col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL 57 + + col1 FROM tab2 cor0
----
116
74
88
query I rowsort
SELECT DISTINCT + + 84 - 59 AS col0 FROM tab2 AS cor0
----
25
query I rowsort
SELECT ALL + col0 * + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + - col2 * + 61 AS col0 FROM tab2 AS cor0
----
-1586
-1647
-2318
query I rowsort
SELECT ALL 16 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
310
523
970
query I rowsort
SELECT ALL - col2 * - 94 * col1 FROM tab2 AS cor0
----
144196
60724
78678
query I rowsort
SELECT - col2 * - col2 + + cor0.col1 * 13 AS col0 FROM tab1 AS cor0
----
3254
3379
9385
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 80 ) col2 FROM tab2 cor0
----
80
query I rowsort
SELECT DISTINCT + col2 - col2 AS col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col1 + cor0.col1 * col2 * - col0 col1 FROM tab1 AS cor0
----
-3536
-36380
-99671
query I rowsort
SELECT col0 + - tab2.col2 - - col0 FROM tab2
----
-13
120
130
query I rowsort
SELECT DISTINCT col2 + col1 * 50 + + tab1.col2 FROM tab1
----
1408
614
842
onlyif mysql # use DIV operator for integer division
query I rowsort label-2654
SELECT - col2 DIV col0 + + col0 * col0 FROM tab2 AS cor0
----
46
6084
6241
skipif mysql # not compatible
query I rowsort label-2654
SELECT - col2 / col0 + + col0 * col0 FROM tab2 AS cor0
----
46
6084
6241
query I rowsort
SELECT - col0 * - col2 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT + col0 + - col1 * col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT ALL col2 + ( + ( col1 ) * 13 ) FROM tab0
----
1151
1262
1265
query I rowsort
SELECT col1 + - ( - col0 ) * - col1 AS col2 FROM tab1
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-2659
SELECT 58 DIV cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954
skipif mysql # not compatible
query I rowsort label-2659
SELECT 58 / cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4650003ffa5d766d08d3882d1381b954
query I rowsort
SELECT ALL - + col1 * + 24 FROM tab1 AS cor0
----
-240
-312
-624
query I rowsort
SELECT + 33 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 5b9acd68f8a2078394b8b32da4e0a18f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab0 AS cor0
----
-88
query I rowsort
SELECT - col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to 1b40f6ebec12e55a9e5893620c5636c7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT 63 * col2 * col2 AS col2 FROM tab1 AS cor0
----
183708
204687
580608
query I rowsort
SELECT + + 65 * col1 AS col0 FROM tab2 AS cor0
----
1105
2015
3835
query I rowsort
SELECT DISTINCT - 46 * + 96 AS col2 FROM tab0
----
-4416
query I rowsort
SELECT + 73 FROM tab1, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
onlyif mysql # use DIV operator for integer division
query I rowsort label-2672
SELECT ALL 61 DIV + col0 AS col0 FROM tab2
----
0
0
8
skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL 61 / + col0 AS col0 FROM tab2
----
0
0
8
query I rowsort
SELECT ALL - ( - col0 ) AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT + col0 * ( cor0.col0 ) - - col0 FROM tab2 AS cor0
----
56
6162
6320
query I rowsort
SELECT + - col0 - - col1 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT col0 * - col1 + col0 AS col0 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT + col2 + col2 * + col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT + col2 * tab0.col0 + - col2 FROM tab0
----
34
7216
759
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 460ecaf0151851c22525e8eac77a0a82
query I rowsort
SELECT + + cor1.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2, tab0 AS cor2
----
243 values hashing to 63f734facb33901524f6f2c799118db4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2681
SELECT + col0 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2681
SELECT + col0 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2682
SELECT - cor0.col2 + + 57 DIV col2 AS col0 FROM tab0 AS cor0
----
-32
-82
56
skipif mysql # not compatible
query I rowsort label-2682
SELECT - cor0.col2 + + 57 / col2 AS col0 FROM tab0 AS cor0
----
-32
-82
56
query I rowsort
SELECT ALL col1 * col2 * + col0 + + col1 * - col1 * + ( + col1 ) FROM tab0 AS cor0
----
-567944
-89453
-909278
query I rowsort
SELECT ALL + cor0.col0 + - 59 * - col0 - col0 FROM tab0 AS cor0
----
1416
2065
5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-2685
SELECT DISTINCT - - col0 * - col2 * + cor0.col1 - - col0 * - cor0.col0 DIV col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT - - col0 * - col2 * + cor0.col1 - - col0 * - cor0.col0 / col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
onlyif mysql # use DIV operator for integer division
query I rowsort label-2686
SELECT - col1 * - ( - col1 ) - + col0 DIV + 57 AS col1 FROM tab0 AS cor0
----
-7396
-8282
-9409
skipif mysql # not compatible
query I rowsort label-2686
SELECT - col1 * - ( - col1 ) - + col0 / + 57 AS col1 FROM tab0 AS cor0
----
-7396
-8282
-9409
query I rowsort
SELECT ALL + - col1 * - 16 + 12 AS col0 FROM tab1 cor0
----
172
220
428
query I rowsort
SELECT DISTINCT + - col2 + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - + cor0.col1 + - cor0.col0 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT ALL + + cor0.col2 - col0 * 85 AS col2 FROM tab0 AS cor0
----
-2007
-2974
-7483
query I rowsort
SELECT 95 + - col0 AS col0 FROM tab1 AS cor0
----
15
31
92
query I rowsort
SELECT + ( + col2 * col0 ) AS col2 FROM tab2
----
189
2028
3002
query I rowsort
SELECT - 74 AS col2 FROM tab0
----
-74
-74
-74
query I rowsort
SELECT - 95 AS col2 FROM tab2 AS cor0
----
-95
-95
-95
query I rowsort
SELECT - 9 * - col1 AS col1 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT DISTINCT col2 * col1 * - col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT ALL + col0 * - col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT - 37 + + col2 * col1 * col2 FROM tab2 AS cor0
----
22562
24511
39847
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * ( - tab2.col0 ) col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL - cor1.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + ( + col1 ) + - col2 * - col0 col2 FROM tab2
----
-1453
-772
2713
onlyif mysql # use DIV operator for integer division
query I rowsort label-2702
SELECT col0 * + 45 + col0 + col1 DIV + col0 AS col0 FROM tab1 cor0
----
146
2944
3680
skipif mysql # not compatible
query I rowsort label-2702
SELECT col0 * + 45 + col0 + col1 / + col0 AS col0 FROM tab1 cor0
----
146
2944
3680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + ( 41 ) * col2 + - col0 col0 FROM tab2 AS cor0
----
1066
1107
1558
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 * + col1 col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT + tab0.col1 * - ( + col0 ) FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 61 FROM tab1, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT 30 * - 87 * col0 AS col2 FROM tab0 AS cor0
----
-232290
-62640
-91350
query I rowsort
SELECT DISTINCT + ( 2 ) * - col0 FROM tab1
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + col0 AS REAL ) col2 FROM tab1
----
3
64
80
query I rowsort
SELECT - ( - tab0.col0 * + col0 ) FROM tab0
----
1225
576
7921
query I rowsort
SELECT - 58 AS col2 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT + col2 + col1 + col2 * col0 FROM tab2
----
2113
247
3057
query I rowsort
SELECT DISTINCT cor0.col2 + tab1.col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to b8b62762005dc0d7237145d0538edb34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2714
SELECT col2 + - col1 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
30
81
skipif mysql # not compatible
query I rowsort label-2714
SELECT col2 + - col1 / col0 AS col2 FROM tab0 AS cor0
----
-1
30
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2715
SELECT - col2 * + col2 + + col0 DIV + col0 FROM tab1 AS cor0
----
-2915
-3248
-9215
skipif mysql # not compatible
query I rowsort label-2715
SELECT - col2 * + col2 + + col0 / + col0 FROM tab1 AS cor0
----
-2915
-3248
-9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-2716
SELECT + col2 DIV + col2 + col0 col0 FROM tab0 AS cor0
----
25
36
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2716
SELECT + col2 / + col2 + col0 col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT + col1 * - tab1.col1 + col1 AS col0 FROM tab1
----
-156
-650
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT - col1 * col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2718
SELECT - col1 * col0 / col1 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2719
SELECT col0 * - cor0.col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2719
SELECT col0 * - cor0.col1 / col1 AS col0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2720
SELECT ALL - col1 + cor0.col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-24
-5
-6
skipif mysql # not compatible
query I rowsort label-2720
SELECT ALL - col1 + cor0.col2 / col1 AS col0 FROM tab1 AS cor0
----
-24
-5
-6
query I rowsort
SELECT DISTINCT col0 - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT col2 * col0 * col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT ALL cor0.col1 * - col2 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT col2 FROM tab0 WHERE + col0 - col0 >= NULL
----
query I rowsort
SELECT + col2 + col1 + - col2 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-2726
SELECT - - cor0.col2 + + col1 * col0 DIV - col2 - - col0 AS col2 FROM tab0 AS cor0
----
-3359
-5
73
skipif mysql # not compatible
query I rowsort label-2726
SELECT - - cor0.col2 + + col1 * col0 / - col2 - - col0 AS col2 FROM tab0 AS cor0
----
-3359
-5
73
query I rowsort
SELECT DISTINCT - col1 + + col1 - tab0.col2 FROM tab0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-2728
SELECT col0 + + col1 DIV + col2 - col0 col0 FROM tab0 AS cor0
----
1
2
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2728
SELECT col0 + + col1 / + col2 - col0 col0 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + col2 - + col1 * + col1 AS col0 FROM tab2
----
-251
-3455
-934
onlyif mysql # use DIV operator for integer division
query I rowsort label-2730
SELECT + cor0.col1 DIV + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4
skipif mysql # not compatible
query I rowsort label-2730
SELECT + cor0.col1 / + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 318c9ee2d951551d2809d5b794d537f4
query I rowsort
SELECT + + col0 + - cor0.col1 - - cor0.col0 AS col0 FROM tab1 cor0
----
-20
118
147
query I rowsort
SELECT ALL + col1 * col2 * + tab2.col0 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL + + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col1 + cor0.col1 * - cor0.col2 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2735
SELECT DISTINCT - col0 DIV + cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT - col0 / + cor0.col1 AS col2 FROM tab1 AS cor0
----
-6
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2736
SELECT DISTINCT tab2.col2 DIV - col0 - + col0 * - col2 FROM tab2
----
186
2028
3002
skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT tab2.col2 / - col0 - + col0 * - col2 FROM tab2
----
186
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col1 col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - tab2.col0 col1 FROM tab2
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT ALL col2 * col0 DIV - col1 FROM tab0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL col2 * col0 / - col1 FROM tab0
----
-80
-9
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2740
SELECT ALL - col1 * + col2 DIV + col2 FROM tab1
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2740
SELECT ALL - col1 * + col2 / + col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL - col1 * + tab0.col1 + - 83 FROM tab0
----
-7479
-8364
-9492
query I rowsort
SELECT + - col2 * + 35 AS col1 FROM tab1 AS cor0
----
-1890
-1995
-3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col0 col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + col0 + + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL col2 + col0 AS col0 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - col2 + + 5 AS col2 FROM tab2 AS cor0
----
-21
-22
-33
query I rowsort
SELECT - cor1.col0 + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 58b70711d07101b247f36e81fc4d5ce1
query I rowsort
SELECT ALL - 60 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2749
SELECT col0 * CAST( 73 AS SIGNED ) * col2 AS col0 FROM tab2
----
13797
148044
219146
skipif mysql # not compatible
query I rowsort label-2749
SELECT col0 * CAST ( 73 AS INTEGER ) * col2 AS col0 FROM tab2
----
13797
148044
219146
onlyif mysql # use DIV operator for integer division
query I rowsort label-2750
SELECT ALL + col1 DIV + col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL + col1 / + col2 FROM tab0
----
1
2
97
query I rowsort
SELECT ALL - col0 * - 36 FROM tab1
----
108
2304
2880
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 AS col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT DISTINCT + 18 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2754
SELECT ALL col0 + CAST( NULL AS SIGNED ) / + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2754
SELECT ALL col0 + CAST ( NULL AS INTEGER ) / + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + ( - 59 ) * + cor0.col0 FROM tab0 AS cor0
----
-1440
-2100
-5340
query I rowsort
SELECT DISTINCT col1 - col0 * col0 FROM tab0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-2757
SELECT DISTINCT - 63 - 29 * col0 DIV 63 FROM tab0
----
-103
-74
-79
skipif mysql # not compatible
query I rowsort label-2757
SELECT DISTINCT - 63 - 29 * col0 / 63 FROM tab0
----
-103
-74
-79
skipif mysql # not compatible
query I rowsort
SELECT + col1 + ( - col2 ) + + CAST ( + col1 AS REAL ) FROM tab2
----
-4
35
92
query I rowsort
SELECT DISTINCT - tab2.col1 - col1 * col1 * col2 AS col1 FROM tab2
----
-10999
-25978
-90565
query I rowsort
SELECT ALL + + ( col0 ) * col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + + cor0.col1 * + col0 + + cor0.col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT + ( tab2.col1 ) * col0 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 51 * col0 + col0 AS col0 FROM tab2
----
364
4056
4108
query I rowsort
SELECT - - col0 - - ( col2 ) * col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 19 + - cor0.col1 + col0 col1 FROM tab0 AS cor0
----
-21
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 * col2 + 77 col1 FROM tab2 AS cor0
----
1
23
25
query I rowsort
SELECT + col0 * - col2 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - 33 - - col2 AS col2 FROM tab2 cor0
----
-6
-7
5
query I rowsort
SELECT + + col2 + + col1 AS col0 FROM tab1 AS cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-2770
SELECT ALL - col1 DIV col0 + + cor0.col1 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-2770
SELECT ALL - col1 / col0 + + cor0.col1 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT ALL cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + cor0.col1 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - 58 * cor0.col2 - col2 * + 45 FROM tab2 AS cor0
----
-2678
-2781
-3914
query I rowsort
SELECT ALL - + col0 + - col0 * col0 * col0 FROM tab0 AS cor0
----
-13848
-42910
-705058
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * + col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT DISTINCT - 39 AS col0 FROM tab2 AS cor0
----
-39
query I rowsort
SELECT DISTINCT + col2 * col0 * col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT + col2 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT 23 FROM tab2 AS cor0
----
23
query I rowsort
SELECT + + col2 * col2 + col1 FROM tab2 AS cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 col1 FROM tab1 AS cor0
----
-59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2783
SELECT - + col1 DIV col2 - cor0.col1 FROM tab0 AS cor0
----
-194
-88
-92
skipif mysql # not compatible
query I rowsort label-2783
SELECT - + col1 / col2 - cor0.col1 FROM tab0 AS cor0
----
-194
-88
-92
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col0 * tab1.col2 AS col2 FROM tab1
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 80 * col2 + - ( col0 ) * + col0 + + col0 col0 FROM tab1 AS cor0
----
-14000
-4326
-8592
query I rowsort
SELECT + cor0.col2 - col2 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( - cor0.col2 ) - - 82 AS col0 FROM tab0 AS cor0
----
0
49
81
query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + + ( col1 ) AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 + col2 col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT - - cor0.col1 + col1 AS col0 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT col2 * - ( - col0 ) + + col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2793
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) / 87 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2793
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) / 87 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + col2 + + ( 93 ) * + col1 - col2 AS col1 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT - + col0 * col0 + ( + col1 + + col1 ) AS col2 FROM tab1 cor0
----
-4076
-6374
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * 85 + col0 col2 FROM tab2
----
-114076
-18438
-391092
query I rowsort
SELECT DISTINCT - 9 * col1 + col2 FROM tab0
----
-737
-741
-872
query I rowsort
SELECT + col2 + col0 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-180
-40903
-83104
query I rowsort
SELECT DISTINCT - col0 + col0 * 9 * + col1 FROM tab0
----
18552
30520
72802
query I rowsort
SELECT - ( - tab1.col1 ) + - 62 + ( col0 ) FROM tab1
----
-33
12
31
query I rowsort
SELECT - + col0 + + 56 FROM tab0 AS cor0
----
-33
21
32
query I rowsort
SELECT ALL + col0 + - col1 + col2 AS col1 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2804
SELECT - ( + 13 ) + col2 DIV - 24 FROM tab0 AS cor0
----
-13
-14
-16
skipif mysql # not compatible
query I rowsort label-2804
SELECT - ( + 13 ) + col2 / - 24 FROM tab0 AS cor0
----
-13
-14
-16
query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL col2 + 81 FROM tab0 AS cor0
----
114
163
82
query I rowsort
SELECT ALL + col2 + - col2 * + col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT ( ( - col0 ) ) * 2 AS col1 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2809
SELECT DISTINCT - col2 + col0 * col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - col2 + col0 * col2 / + col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 1 * col0 + + cor0.col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - 1 AS col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT + 41 * cor0.col0 * - col2 AS col1 FROM tab1 cor0
----
-149568
-314880
-6642
query I rowsort
SELECT DISTINCT - cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + 2 AS col1 FROM tab2 AS cor0
----
-2
query I rowsort
SELECT ALL 42 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-126
-2688
-3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-2816
SELECT ALL - col0 DIV 21 AS col2 FROM tab0 AS cor0
----
-1
-1
-4
skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - col0 / 21 AS col2 FROM tab0 AS cor0
----
-1
-1
-4
query I rowsort
SELECT + 87 * - col2 FROM tab1 cor0
----
-4698
-4959
-8352
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2818
SELECT col0 * CAST( 8 AS SIGNED ) + col0 * ( tab1.col1 ) AS col0 FROM tab1
----
102
1152
1680
skipif mysql # not compatible
query I rowsort label-2818
SELECT col0 * CAST ( 8 AS INTEGER ) + col0 * ( tab1.col1 ) AS col0 FROM tab1
----
102
1152
1680
query I rowsort
SELECT + col1 + - tab1.col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - + 61 + - cor0.col0 * col0 AS col2 FROM tab1 AS cor0
----
-4157
-6461
-70
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + col1 * + col1 - - col1 FROM tab2
----
306
3540
992
query I rowsort
SELECT ALL + col2 + + col1 * + col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT ALL col2 * col1 + + col0 FROM tab1
----
1328
1407
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2825
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - tab1.col2 + - col0 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - tab1.col2 + - col0 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT - ( col1 ) * col1 + col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT ALL col1 * - col0 + cor0.col0 FROM tab1 AS cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-2828
SELECT ALL + col1 * col0 DIV col0 + + 56 AS col2 FROM tab0 AS cor0
----
142
147
153
skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL + col1 * col0 / col0 + + 56 AS col2 FROM tab0 AS cor0
----
142
147
153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2829
SELECT cor0.col1 + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2829
SELECT cor0.col1 + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2830
SELECT + col2 * col1 DIV cor0.col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2830
SELECT + col2 * col1 / cor0.col2 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-2831
SELECT ALL col1 + col1 DIV + 55 AS col1 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL col1 + col1 / + 55 AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - 21 - cor0.col0 FROM tab2 AS cor0
----
-100
-28
-99
query I rowsort
SELECT DISTINCT + 76 * + 92 * col1 AS col1 FROM tab1
----
181792
69920
90896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 * tab1.col2 col2 FROM tab1
----
-4212
-4446
-7488
query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT tab1.col2 * 33 AS col2 FROM tab1
----
1782
1881
3168
query I rowsort
SELECT DISTINCT 50 AS col2 FROM tab2
----
50
query I rowsort
SELECT - + col2 + col1 * + col0 FROM tab1 AS cor0
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-2839
SELECT - col0 DIV cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2839
SELECT - col0 / cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + col1 + - ( 57 ) FROM tab1 AS cor0
----
-31
-44
-47
query I rowsort
SELECT + col0 + + 41 AS col2 FROM tab1 AS cor0
----
105
121
44
onlyif mysql # use DIV operator for integer division
query I rowsort label-2842
SELECT - col2 DIV 26 + + col1 - col0 AS col1 FROM tab2 AS cor0
----
-20
-63
23
skipif mysql # not compatible
query I rowsort label-2842
SELECT - col2 / 26 + + col1 - col0 AS col1 FROM tab2 AS cor0
----
-20
-63
23
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - - col0 * + 65 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
249
4217
5296
query I rowsort
SELECT DISTINCT - + 83 + col0 FROM tab2 AS cor0
----
-4
-5
-76
query I rowsort
SELECT DISTINCT - col0 * + 41 FROM tab1
----
-123
-2624
-3280
onlyif mysql # use DIV operator for integer division
query I rowsort label-2847
SELECT ALL col1 DIV - 40 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2847
SELECT ALL col1 / - 40 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * + 50 FROM tab1
----
1300
500
650
query I rowsort
SELECT ALL - 65 + col0 AS col0 FROM tab0 AS cor0
----
-30
-41
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 11 col0 FROM tab0 AS cor0
----
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-2851
SELECT DISTINCT ( col2 ) * col1 DIV col1 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT ( col2 ) * col1 / col1 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - + col1 + - col1 AS col2 FROM tab1 cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT - - ( - 74 ) FROM tab0 AS cor0
----
-74
query I rowsort
SELECT ALL + ( col0 ) + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL ( - 17 ) + - col2 FROM tab2 AS cor0
----
-43
-44
-55
query I rowsort
SELECT DISTINCT + col1 - + cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 - - 39 col2 FROM tab2 AS cor0
----
104
query I rowsort
SELECT ALL - + 93 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
-157
-173
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2859
SELECT + 26 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-2859
SELECT + 26 / col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 - - 85 AS col0 FROM tab2
----
102
116
144
onlyif mysql # use DIV operator for integer division
query I rowsort label-2861
SELECT DISTINCT - col0 - col1 DIV - 65 AS col2 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - col0 - col1 / - 65 AS col2 FROM tab2
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2862
SELECT - col1 DIV 89 + - 4 * - col2 AS col0 FROM tab0
----
132
3
327
skipif mysql # not compatible
query I rowsort label-2862
SELECT - col1 / 89 + - 4 * - col2 AS col0 FROM tab0
----
132
3
327
query I rowsort
SELECT col1 + ( - tab1.col0 ) * col0 + + ( col1 + + col1 ) AS col2 FROM tab1
----
-4066
-6361
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 12 + tab1.col1 + - tab1.col2 col2 FROM tab1
----
721
8
877
query I rowsort
SELECT + 15 FROM tab0, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT - col1 - ( col2 ) FROM tab1
----
-109
-67
-80
query I rowsort
SELECT - col1 + + col0 + col2 FROM tab1
----
111
163
31
query I rowsort
SELECT DISTINCT + ( 72 ) FROM tab0, tab0 AS cor0
----
72
query I rowsort
SELECT ALL col1 * - col1 - ( col2 ) * - 48 FROM tab0
----
-4345
-5812
-9361
query I rowsort
SELECT DISTINCT cor0.col1 + + col1 AS col1 FROM tab1 cor0
----
20
26
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT ALL + cor0.col1 + - cor0.col1 DIV col1 AS col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + cor0.col1 + - cor0.col1 / col1 AS col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL - ( + col1 ) * - cor0.col2 - + 5 FROM tab2 AS cor0
----
1529
641
832
query I rowsort
SELECT col1 + 64 FROM tab1 AS cor0
----
74
77
90
query I rowsort
SELECT DISTINCT 34 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
-1190
-3026
-816
query I rowsort
SELECT - 85 FROM tab2 cor0
----
-85
-85
-85
query I rowsort
SELECT DISTINCT + - 8 * - col1 * col1 AS col1 FROM tab1 AS cor0
----
1352
5408
800
query I rowsort
SELECT DISTINCT + col0 + - col0 + cor0.col2 * + 58 FROM tab1 cor0
----
3132
3306
5568
query I rowsort
SELECT ALL + col0 - + cor0.col2 * col0 AS col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + col0 * - col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT cor0.col0 * + tab0.col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 12930ec3ed2e24e506ebb47d036ed597
query I rowsort
SELECT + 60 + - col2 FROM tab0
----
-22
27
59
query I rowsort
SELECT + + col2 * + ( col2 ) - + cor0.col0 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT + + col0 - - col0 AS col0 FROM tab0 cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 * - 43 * col0 col2 FROM tab1
----
-176118
-275187
-361
onlyif mysql # use DIV operator for integer division
query I rowsort label-2885
SELECT DISTINCT + col1 DIV - 30 - + col0 FROM tab2
----
-79
-8
skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT + col1 / - 30 - + col0 FROM tab2
----
-79
-8
query I rowsort
SELECT DISTINCT tab1.col2 + 61 AS col2 FROM tab1
----
115
118
157
query I rowsort
SELECT DISTINCT col1 + col0 * - col1 * col1 FROM tab1
----
-13507
-2002
-6390
query I rowsort
SELECT ALL - col2 * col0 * - 19 + col1 FROM tab2
----
3622
38591
57055
query I rowsort
SELECT - col1 + + 64 FROM tab2 AS cor0
----
33
47
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2890
SELECT ALL + col0 DIV 75 + 90 - - col1 * ( col0 ) FROM tab0 AS cor0
----
2154
3485
8190
skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL + col0 / 75 + 90 - - col1 * ( col0 ) FROM tab0 AS cor0
----
2154
3485
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + cor0.col0 col0 FROM tab0 AS cor0
----
178
48
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 * - 65 col0 FROM tab2 AS cor0
----
43940
47385
93860
query I rowsort
SELECT DISTINCT + cor0.col2 + - 38 - + col0 AS col0 FROM tab2 AS cor0
----
-18
-79
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-2894
SELECT DISTINCT + + cor0.col1 DIV - ( col0 ) - + cor0.col0 FROM tab2 AS cor0
----
-11
-78
-79
skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT + + cor0.col1 / - ( col0 ) - + cor0.col0 FROM tab2 AS cor0
----
-11
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col0 FROM tab0 AS cor0
----
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * - col1 + - 43 * + 3 col0 FROM tab1 AS cor0
----
-1169
-207
-769
onlyif mysql # use DIV operator for integer division
query I rowsort label-2897
SELECT - + col1 + + col2 DIV 31 - - ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
1428
617
698
skipif mysql # not compatible
query I rowsort label-2897
SELECT - + col1 + + col2 / 31 - - ( cor0.col2 ) * + col2 FROM tab2 AS cor0
----
1428
617
698
query I rowsort
SELECT 35 * + cor0.col0 + - 20 * + col2 + + col2 AS col0 FROM tab1 AS cor0
----
-921
1157
976
query I rowsort
SELECT - ( col0 ) - - 69 FROM tab0 AS cor0
----
-20
34
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-2900
SELECT DISTINCT cor0.col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-2900
SELECT DISTINCT cor0.col2 / + col0 AS col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT col1 + col0 * ( col2 ) AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ALL - + 25 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT col2 + col0 * + col0 - - ( col2 ) * cor0.col0 FROM tab2 AS cor0
----
265
8138
9281
onlyif mysql # use DIV operator for integer division
query I rowsort label-2904
SELECT + col0 DIV + col1 AS col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-2904
SELECT + col0 / + col1 AS col1 FROM tab1
----
0
6
6
query I rowsort
SELECT DISTINCT cor0.col0 AS col1 FROM tab2, tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 * + col1 + + col2 col2 FROM tab1 AS cor0
----
-43
-622
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2907
SELECT 0 + - col0 * CAST( 54 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-378
-4212
-4266
skipif mysql # not compatible
query I rowsort label-2907
SELECT 0 + - col0 * CAST ( 54 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-378
-4212
-4266
query I rowsort
SELECT col0 + ( + col0 ) AS col0 FROM tab1
----
128
160
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2909
SELECT ALL + CAST( + 2 AS SIGNED ) - - col2 FROM tab2
----
28
29
40
skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL + CAST ( + 2 AS INTEGER ) - - col2 FROM tab2
----
28
29
40
query I rowsort
SELECT ALL - col1 * - col2 AS col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2911
SELECT - - col0 + + cor0.col2 + CAST( NULL AS SIGNED ) * 9 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2911
SELECT - - col0 + + cor0.col2 + CAST ( NULL AS INTEGER ) * 9 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + col1 + col1 * col0 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT ALL cor0.col0 * col2 + col1 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - ( col0 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ( - col2 ) * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT col2 * col0 * cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
3396
664200
68145
onlyif mysql # use DIV operator for integer division
query I rowsort label-2917
SELECT ALL - col2 DIV - col0 + - tab2.col0 + - col1 FROM tab2
----
-137
-35
-96
skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL - col2 / - col0 + - tab2.col0 + - col1 FROM tab2
----
-137
-35
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2918
SELECT col0 * col1 DIV 6 AS col1 FROM tab2
----
223
36
767
skipif mysql # not compatible
query I rowsort label-2918
SELECT col0 * col1 / 6 AS col1 FROM tab2
----
223
36
767
query I rowsort
SELECT DISTINCT tab0.col2 * + col1 * col2 + - col1 AS col1 FROM tab0
----
0
611793
93568
onlyif mysql # use DIV operator for integer division
query I rowsort label-2920
SELECT + 96 * - col1 + + ( col0 ) DIV + col1 AS col0 FROM tab2
----
-1628
-2976
-5663
skipif mysql # not compatible
query I rowsort label-2920
SELECT + 96 * - col1 + + ( col0 ) / + col1 AS col0 FROM tab2
----
-1628
-2976
-5663
query I rowsort
SELECT ALL + col2 + ( - col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - cor0.col0 * + col1 + - col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT DISTINCT - ( col2 ) * cor0.col2 + + col0 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2924
SELECT ALL - CAST( NULL AS SIGNED ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL - CAST ( NULL AS INTEGER ) - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2925
SELECT - + CAST( - col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-2925
SELECT - + CAST ( - col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + col0 * col2 + + col2 * - 30 FROM tab1 AS cor0
----
-1458
1938
4800
query I rowsort
SELECT DISTINCT + 66 FROM tab2, tab2 AS cor0, tab1, tab0 AS cor1
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-2928
SELECT DISTINCT 40 DIV + ( col1 + tab2.col1 * 44 ) AS col0 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2928
SELECT DISTINCT 40 / + ( col1 + tab2.col1 * 44 ) AS col0 FROM tab2
----
0
query I rowsort
SELECT 16 * 95 FROM tab1, tab0, tab0 cor0
----
27 values hashing to ec92a12d6612350216af747aae4e8c9b
query I rowsort
SELECT ALL - 54 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT ALL - ( - 10 ) - tab1.col2 * - col2 FROM tab1
----
2926
3259
9226
onlyif mysql # use DIV operator for integer division
query I rowsort label-2932
SELECT ALL 64 DIV col2 - - tab0.col1 DIV + tab0.col0 FROM tab0
----
1
4
66
skipif mysql # not compatible
query I rowsort label-2932
SELECT ALL 64 / col2 - - tab0.col1 / + tab0.col0 FROM tab0
----
1
4
66
query I rowsort
SELECT DISTINCT - ( - col0 ) - col2 FROM tab0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2934
SELECT 26 * col0 DIV col0 AS col1 FROM tab2
----
26
26
26
skipif mysql # not compatible
query I rowsort label-2934
SELECT 26 * col0 / col0 AS col1 FROM tab2
----
26
26
26
query I rowsort
SELECT DISTINCT - col0 * - col2 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - + cor0.col2 + ( col2 + col1 ) FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2937
SELECT ALL + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2938
SELECT DISTINCT - - CAST( NULL AS SIGNED ) / - cor0.col2 + + cor0.col0 / col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) / - cor0.col2 + + cor0.col0 / col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - - 64 * col2 + col0 FROM tab0 AS cor0
----
2136
5337
99
query I rowsort
SELECT - 33 + 38 * + col1 AS col0 FROM tab1
----
347
461
955
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2941
SELECT col2 + + col2 * + CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
36
7380
825
skipif mysql # not compatible
query I rowsort label-2941
SELECT col2 + + col2 * + CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL cor0.col0 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL - 85 FROM tab0
----
-85
-85
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2944
SELECT DISTINCT - + col0 * col2 + - ( - 30 ) DIV - col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-826
skipif mysql # not compatible
query I rowsort label-2944
SELECT DISTINCT - + col0 * col2 + - ( - 30 ) / - col0 + - col2 FROM tab0 AS cor0
----
-36
-7380
-826
query I rowsort
SELECT + 65 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT - cor0.col1 * - cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + 82 AS col1 FROM tab1, tab0 cor0
----
82
query I rowsort
SELECT DISTINCT + 13 AS col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
13
onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT DISTINCT col0 DIV - ( - col1 ) FROM tab1 cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT col0 / - ( - col1 ) FROM tab1 cor0
----
0
6
query I rowsort
SELECT + col1 * + 15 * 16 AS col2 FROM tab0 AS cor0
----
20640
21840
23280
query I rowsort
SELECT + col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT col0 * col1 * 80 FROM tab2 AS cor0
----
107440
17360
368160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * + 58 + + col2 + + 88 col2 FROM tab1 AS cor0
----
1650
725
938
query I rowsort
SELECT + + 20 AS col0 FROM tab0 cor0
----
20
20
20
query I rowsort
SELECT DISTINCT 73 + + col0 AS col2 FROM tab2 AS cor0
----
151
152
80
query I rowsort
SELECT ALL col0 * col0 AS col1 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT + 83 * - col1 FROM tab1 AS cor0
----
-1079
-2158
-830
query I rowsort
SELECT + col2 * + 15 FROM tab0 AS cor0
----
1230
15
495
query I rowsort
SELECT DISTINCT + + ( - cor0.col1 ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - 84 * cor0.col2 FROM tab1 AS cor0
----
-4536
-4788
-8064
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 * + ( col0 ) col0 FROM tab0 cor0
----
-2040
-2975
-7565
query I rowsort
SELECT + - col0 * - col0 * col2 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-2963
SELECT col0 + - col1 DIV + col1 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-2963
SELECT col0 + - col1 / + col1 FROM tab2 AS cor0
----
6
77
78
query I rowsort
SELECT col2 + - col1 * col0 * + 36 FROM tab2 AS cor0
----
-165646
-48310
-7785
query I rowsort
SELECT col0 * + col1 * + col0 AS col2 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2966
SELECT - col1 DIV col1 + col0 + + col1 col0 FROM tab2 AS cor0
----
136
37
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2966
SELECT - col1 / col1 + col0 + + col1 col0 FROM tab2 AS cor0
----
136
37
95
query I rowsort
SELECT DISTINCT + col0 - + tab1.col1 AS col0 FROM tab1
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 * - tab0.col1 - + col1 * col0 * + col0 col0 FROM tab0
----
-112035
-43516
-714441
query I rowsort
SELECT DISTINCT + ( - tab2.col2 ) * + ( tab2.col1 ) - - col2 AS col0 FROM tab2
----
-1508
-608
-810
query I rowsort
SELECT tab2.col0 + col0 * + 4 AS col2 FROM tab2
----
35
390
395
query I rowsort
SELECT + col0 - - col1 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort
SELECT cor0.col2 + - CAST ( + 0 AS REAL ) * col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + - col2 + - 5 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-198
-492
-6
query I rowsort
SELECT DISTINCT + col0 + + col1 AS col2 FROM tab2
----
137
38
96
query I rowsort
SELECT - col1 + ( + col1 + + col2 ) * cor0.col0 AS col0 FROM tab0 AS cor0
----
15306
2770
3333
query I rowsort
SELECT - + col1 * + col2 + + col1 FROM tab0 AS cor0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT ALL + - col2 + 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-2977
SELECT ALL + - col2 + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2978
SELECT DISTINCT + cor0.col2 + CAST( col2 AS SIGNED ) * col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
skipif mysql # not compatible
query I rowsort label-2978
SELECT DISTINCT + cor0.col2 + CAST ( col2 AS INTEGER ) * col1 AS col0 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2979
SELECT ALL - cor0.col1 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL - cor0.col1 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL + 85 AS col2 FROM tab1
----
85
85
85
query I rowsort
SELECT ALL - col0 * + col0 AS col2 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col0 * - col2 + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2983
SELECT + ( col0 ) * + col1 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2983
SELECT + ( col0 ) * + col1 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2984
SELECT + + CAST( col2 AS SIGNED ) * col2 FROM tab1 cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-2984
SELECT + + CAST ( col2 AS INTEGER ) * col2 FROM tab1 cor0
----
2916
3249
9216
query I rowsort
SELECT + 47 * + cor0.col2 * + col1 FROM tab0 AS cor0
----
133386
350714
4559
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab2 cor1
----
972 values hashing to d41be7437523f0dba2158c7f0439f329
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT - cor0.col1 * - ( col0 ) FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - 74 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT 37 * + 57 FROM tab1
----
2109
2109
2109
query I rowsort
SELECT DISTINCT - + col1 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col0 FROM tab2 cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col0 col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-2994
SELECT - - col2 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2994
SELECT - - col2 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - + 86 FROM tab1 AS cor0
----
-86
-86
-86
query I rowsort
SELECT ALL 91 AS col2 FROM tab0 AS cor0
----
91
91
91
query I rowsort
SELECT + 28 * cor0.col0 FROM tab0 AS cor0
----
2492
672
980
onlyif mysql # use DIV operator for integer division
query I rowsort label-2998
SELECT - col0 DIV col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2998
SELECT - col0 / col0 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT - + 84 + col0 FROM tab1 AS cor0
----
-20
-4
-81
query I rowsort
SELECT ( cor0.col0 ) * - 5 AS col1 FROM tab1 cor0
----
-15
-320
-400
query I rowsort
SELECT DISTINCT + 88 * col0 FROM tab0 AS cor0
----
2112
3080
7832
onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT 78 DIV col0 AS col1 FROM tab1 cor0
----
0
1
26
skipif mysql # not compatible
query I rowsort label-3002
SELECT 78 / col0 AS col1 FROM tab1 cor0
----
0
1
26
query I rowsort
SELECT ALL ( col0 ) * col0 FROM tab0 AS cor0
----
1225
576
7921
onlyif mysql # use DIV operator for integer division
query I rowsort label-3004
SELECT DISTINCT + col2 DIV + cor0.col1 AS col0 FROM tab2 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-3004
SELECT DISTINCT + col2 / + cor0.col1 AS col0 FROM tab2 cor0
----
0
2
query I rowsort
SELECT ALL - col1 + - col2 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT DISTINCT col1 * + col1 * - ( 98 * + col0 ) AS col0 FROM tab2 AS cor0
----
-2237438
-26608764
-659246
query I rowsort
SELECT ALL - - 77 + col0 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2165
3507
8265
query I rowsort
SELECT - 79 AS col2 FROM tab0
----
-79
-79
-79
query I rowsort
SELECT ALL cor0.col0 * col2 + col0 AS col1 FROM tab1 cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-3010
SELECT ALL col2 + + col1 DIV col1 - 4 AS col1 FROM tab0
----
-2
30
79
skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL col2 + + col1 / col1 - 4 AS col1 FROM tab0
----
-2
30
79
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT 33 FROM tab2, tab2 AS cor0
----
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 + - col1 * col0 col2 FROM tab0 AS cor0
----
-16020
-2640
-4620
onlyif mysql # use DIV operator for integer division
query I rowsort label-3014
SELECT DISTINCT + - col0 DIV - col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-3014
SELECT DISTINCT + - col0 / - col1 - cor0.col1 AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + - 44 FROM tab2 AS cor0
----
-44
-44
-44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - col2 * + col1 col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT col1 * - 56 FROM tab0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL + 45 AS col1 FROM tab2
----
45
45
45
query I rowsort
SELECT ALL 29 * 71 AS col0 FROM tab1
----
2059
2059
2059
query I rowsort
SELECT + + 67 AS col2 FROM tab2 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + + col0 - 27 FROM tab1 cor0
----
-24
37
53
query I rowsort
SELECT - - 52 AS col1 FROM tab0 cor0
----
52
52
52
query I rowsort
SELECT col2 * - ( + col0 ) FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-3024
SELECT ALL + col1 DIV 54 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL + col1 / 54 FROM tab2 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3025
SELECT cor0.col0 * - CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3025
SELECT cor0.col0 * - CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3026
SELECT ALL - - col2 * col1 DIV col0 FROM tab0 AS cor0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL - - col2 * col1 / col0 FROM tab0 AS cor0
----
118
2
83
query I rowsort
SELECT - col1 + ( col0 ) * - cor0.col2 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3028
SELECT DISTINCT + + cor0.col0 + CAST( NULL AS SIGNED ) * col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3028
SELECT DISTINCT + + cor0.col0 + CAST ( NULL AS INTEGER ) * col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT - + cor0.col1 * ( - col2 ) FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3030
SELECT DISTINCT + - col0 DIV + 40 col0 FROM tab2 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT + - col0 / + 40 col0 FROM tab2 AS cor0
----
-1
0
query I rowsort
SELECT - col1 * 81 FROM tab1 AS cor0
----
-1053
-2106
-810
query I rowsort
SELECT + col1 * col2 * 78 AS col2 FROM tab2 AS cor0
----
119652
50388
65286
query I rowsort
SELECT ALL + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL + col2 * - 13 FROM tab2 cor0
----
-338
-351
-494
query I rowsort
SELECT 5 + + col2 * + col0 AS col2 FROM tab1 AS cor0
----
167
3653
7685
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-3037
SELECT DISTINCT col1 DIV ( col1 ) FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT col1 / ( col1 ) FROM tab0 AS cor0
----
1
query I rowsort
SELECT + 13 + col1 FROM tab1 AS cor0
----
23
26
39
query I rowsort
SELECT ALL + ( + 27 ) FROM tab2 AS cor0
----
27
27
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + 57 col0 FROM tab0
----
146
81
92
query I rowsort
SELECT - cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT DISTINCT + col1 * - col1 + - 56 AS col2 FROM tab1 AS cor0
----
-156
-225
-732
query I rowsort
SELECT - - col1 * - col2 + 16 FROM tab0 AS cor0
----
-2822
-7446
-81
query I rowsort
SELECT DISTINCT ( col2 ) * col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL - cor0.col1 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT + cor0.col2 * col0 * col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
query I rowsort
SELECT DISTINCT cor0.col2 + col1 * + col1 * - 61 AS col0 FROM tab1 AS cor0
----
-10213
-41182
-6043
onlyif mysql # use DIV operator for integer division
query I rowsort label-3048
SELECT + col2 + - col0 DIV col2 AS col0 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-3048
SELECT + col2 + - col0 / col2 AS col0 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT ALL + col2 + - col0 * + ( - 54 ) AS col0 FROM tab2 AS cor0
----
405
4238
4304
query I rowsort
SELECT ALL + col1 * + col1 * + col0 FROM tab1
----
13520
2028
6400
query I rowsort
SELECT ALL + - col0 + + col1 AS col1 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + cor0.col0 + - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3053
SELECT + col1 DIV - 87 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3053
SELECT + col1 / - 87 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - col1 * 50 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT DISTINCT - col0 * col2 + + col0 + col0 FROM tab2 AS cor0
----
-175
-1872
-2844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3056
SELECT + CAST( NULL AS DECIMAL ) FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3056
SELECT + CAST ( NULL AS REAL ) FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3057
SELECT ALL 19 DIV + col0 col1 FROM tab2
----
0
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL 19 / + col0 col1 FROM tab2
----
0
0
2
query I rowsort
SELECT DISTINCT + cor1.col2 FROM tab1, tab2 AS cor0, tab2 cor1
----
26
27
38
query I rowsort
SELECT + tab1.col0 AS col1 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
onlyif mysql # use DIV operator for integer division
query I rowsort label-3060
SELECT DISTINCT col0 DIV - ( + 91 ) AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-3060
SELECT DISTINCT col0 / - ( + 91 ) AS col1 FROM tab0
----
0
query I rowsort
SELECT DISTINCT 60 AS col2 FROM tab1, tab2 AS cor0
----
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-3062
SELECT ALL col0 DIV ( col1 * + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL col0 / ( col1 * + col0 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query IIIIIIIII rowsort
SELECT * FROM tab0, tab2, tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT 78 * 14 + - col0 * - tab2.col2 AS col2 FROM tab2
----
1281
3120
4094
query I rowsort
SELECT - ( - 89 ) AS col1 FROM tab2
----
89
89
89
query I rowsort
SELECT + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col1 + col1 + col2 AS col1 FROM tab1
----
106
122
77
query I rowsort
SELECT cor1.col0 * - ( 49 * tab0.col0 ) FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to a03f1eead6cdf4326937ac9d10daedd6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 66 + 54 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 9 + col2 col1 FROM tab1 AS cor0
----
45
48
87
query I rowsort
SELECT ALL - + 70 + col0 AS col1 FROM tab1 AS cor0
----
-6
-67
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - col1 * - col0 + - 69 AS col0 FROM tab0 AS cor0
----
1995
3326
8030
query I rowsort
SELECT col1 + + col0 * 49 FROM tab2 AS cor0
----
374
3881
3888
query I rowsort
SELECT + col0 * cor0.col1 + - ( col2 ) * - col0 * + col1 FROM tab1 AS cor0
----
100880
37120
4290
query I rowsort
SELECT ALL - + col1 * - col0 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL + - col1 * - col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - - col0 * + col0 AS col1 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3080
SELECT ALL + CAST( 36 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1116
-2124
-612
skipif mysql # not compatible
query I rowsort label-3080
SELECT ALL + CAST ( 36 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1116
-2124
-612
query I rowsort
SELECT - cor0.col0 + col0 - + col1 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 68 - - col2 FROM tab2 AS cor0
----
106
94
95
query I rowsort
SELECT DISTINCT + 10 * 92 + + col2 - col2 FROM tab2 AS cor0
----
920
query I rowsort
SELECT - col1 + 60 - col0 AS col1 FROM tab2
----
-36
-77
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab2
----
66
66
66
query I rowsort
SELECT ALL col1 * - 21 + tab2.col0 * col1 - col0 * col1 FROM tab2
----
-1239
-357
-651
query I rowsort
SELECT - 26 * + col2 FROM tab2
----
-676
-702
-988
query I rowsort
SELECT + + col1 - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - col0 - - ( + cor0.col0 + col0 ) * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-12880
-21
-8256
query I rowsort
SELECT col0 + - col1 - col1 * col0 AS col0 FROM tab2
----
-1281
-241
-4583
query I rowsort
SELECT - col0 + - 27 AS col0 FROM tab1
----
-107
-30
-91
query I rowsort
SELECT DISTINCT 30 * + col1 + col1 AS col1 FROM tab1
----
310
403
806
query I rowsort
SELECT - 95 AS col1 FROM tab1
----
-95
-95
-95
query I rowsort
SELECT - tab1.col0 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT DISTINCT - 28 * + tab0.col2 + + ( - ( col0 ) ) * col0 * - col2 AS col0 FROM tab0
----
1197
18084
647226
query I rowsort
SELECT ALL + 79 + col0 FROM tab0
----
103
114
168
query I rowsort
SELECT - 7 AS col2 FROM tab2
----
-7
-7
-7
query I rowsort
SELECT col1 * + 39 FROM tab1 cor0
----
1014
390
507
onlyif mysql # use DIV operator for integer division
query I rowsort label-3099
SELECT + col0 DIV + col0 - - col1 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-3099
SELECT + col0 / + col0 - - col1 FROM tab1
----
11
14
27
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + + 9 FROM tab1 AS cor0
----
18
4105
6409
onlyif mysql # use DIV operator for integer division
query I rowsort label-3101
SELECT ALL col0 DIV + col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL col0 / + col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL - + col1 * + col0 + + col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
-1288
-159
-4517
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col0 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT col0 + + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3106
SELECT DISTINCT - cor0.col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT - cor0.col0 / - col0 AS col0 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - + col1 * cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL col0 * - col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 + col2 * col0 col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + col0 * col0 - cor0.col0 AS col0 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL - col2 * + col0 * - tab0.col2 AS col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col2 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col2 col2 FROM tab2 cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3114
SELECT DISTINCT + + cor0.col1 DIV - cor0.col1 + col0 + - col1 FROM tab1 cor0
----
-24
53
66
skipif mysql # not compatible
query I rowsort label-3114
SELECT DISTINCT + + cor0.col1 / - cor0.col1 + col0 + - col1 FROM tab1 cor0
----
-24
53
66
query I rowsort
SELECT ALL - col0 - - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - col2 * col1 + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - + ( - col2 ) + col0 * cor0.col1 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT ALL + 84 AS col0 FROM tab2 cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3121
SELECT col1 + col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-3121
SELECT col1 + col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
194
88
92
query I rowsort
SELECT - cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3123
SELECT + - 15 DIV col0 + col2 FROM tab2 AS cor0
----
25
26
38
skipif mysql # not compatible
query I rowsort label-3123
SELECT + - 15 / col0 + col2 FROM tab2 AS cor0
----
25
26
38
query I rowsort
SELECT DISTINCT + col2 * - col2 + cor0.col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT ALL ( col2 ) * col1 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3126
SELECT col1 DIV col0 + + col0 * - col0 * - col2 FROM tab2 AS cor0
----
1327
158184
237158
skipif mysql # not compatible
query I rowsort label-3126
SELECT col1 / col0 + + col0 * - col0 * - col2 FROM tab2 AS cor0
----
1327
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT - + col0 DIV col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-3127
SELECT - + col0 / col1 AS col1 FROM tab1 AS cor0
----
-6
-6
0
query I rowsort
SELECT ALL + cor0.col0 + - col2 * - col2 AS col0 FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-3129
SELECT DISTINCT - 95 DIV - col1 AS col0 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-3129
SELECT DISTINCT - 95 / - col1 AS col0 FROM tab2 AS cor0
----
1
3
5
query I rowsort
SELECT ALL - - ( + col1 ) + cor0.col1 * - col1 * + col1 FROM tab0 cor0
----
-635970
-753480
-912576
query I rowsort
SELECT - col2 + cor0.col1 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + col2 * + col0 + - col2 * col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col0 * - col1 * col1 col0 FROM tab0 AS cor0
----
-177480
-329280
-736920
onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT - + col1 DIV - col1 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3134
SELECT - + col1 / - col1 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + - col2 + - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT col1 * - col2 + col0 AS col2 FROM tab2
----
-1456
-567
-830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col2 * - col1 + + col2 + col0 col1 FROM tab0
----
-2781
-61
-7291
query I rowsort
SELECT ALL + col0 + + col0 + col1 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL 25 + + col2 + col0 FROM tab0
----
196
61
82
query I rowsort
SELECT - col2 * - col1 + col2 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-798
108
858
query I rowsort
SELECT + - 62 AS col2 FROM tab1 AS cor0
----
-62
-62
-62
query I rowsort
SELECT col1 + + col2 AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - ( col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT ALL cor0.col2 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3145
SELECT ALL + CAST( - col2 * + col2 AS SIGNED ) AS col0 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL + CAST ( - col2 * + col2 AS INTEGER ) AS col0 FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT + + cor1.col2 + - 64 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e085d552c93847e2c30de38eb5b10cae
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3148
SELECT DISTINCT - 94 * + col0 + - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - 94 * + col0 + - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
query I rowsort
SELECT - - 45 AS col1 FROM tab1 AS cor0
----
45
45
45
query I rowsort
SELECT DISTINCT + - 13 * col0 FROM tab1 AS cor0
----
-1040
-39
-832
query I rowsort
SELECT ALL cor0.col1 + col2 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT DISTINCT - 3 + col1 * - 71 FROM tab2 AS cor0
----
-1210
-2204
-4192
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col0 + col0 * col2 col1 FROM tab2 AS cor0
----
-2574
-28
1659
query I rowsort
SELECT ALL cor0.col0 + col2 * + col0 FROM tab0 cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-3155
SELECT DISTINCT - col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT - col1 / + col2 AS col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL 38 FROM tab2 AS cor0
----
38
38
38
query I rowsort
SELECT ALL 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT ALL + col1 + ( col0 ) FROM tab1
----
29
74
93
query I rowsort
SELECT - 82 AS col1 FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT ALL + - cor0.col1 + - 52 * + col1 FROM tab2 AS cor0
----
-1643
-3127
-901
query I rowsort
SELECT + col1 * - col2 + 38 FROM tab2 AS cor0
----
-1496
-608
-799
query I rowsort
SELECT DISTINCT - + col2 + + col2 FROM tab0 cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + col0 col2 FROM tab2 AS cor0
----
-182
-1950
-2923
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3165
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3165
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 * - ( col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT col2 * + col2 AS col0 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - col1 + + 67 + + ( col1 ) AS col0 FROM tab1 cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + cor0.col0 + 36 - col1 * - col2 AS col2 FROM tab1 AS cor0
----
1364
1443
670
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col2 + 22 * col0 col2 FROM tab2 AS cor0
----
2384
3250
991
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3171
SELECT DISTINCT cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT - CAST( 81 AS SIGNED ) FROM tab1 AS cor0
----
-81
-81
-81
skipif mysql # not compatible
query I rowsort label-3172
SELECT - CAST ( 81 AS INTEGER ) FROM tab1 AS cor0
----
-81
-81
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + cor0.col2 col0 FROM tab0 AS cor0
----
128
47
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3174
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + ( col2 ) + - ( - col1 ) * - col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + ( col2 ) + - ( - col1 ) * - col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - col0 * 72 FROM tab2 AS cor0
----
-504
-5616
-5688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3176
SELECT ( - col0 + + tab1.col1 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3176
SELECT ( - col0 + + tab1.col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( 82 ) FROM tab2 cor0
----
-82
query I rowsort
SELECT ALL + cor1.col2 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT col0 * ( col2 ) + col1 * + col2 FROM tab1 AS cor0
----
1566
4218
8928
query I rowsort
SELECT + col2 * - ( + col1 ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT cor0.col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + - col0 * + col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col2 - cor0.col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + ( cor0.col0 ) * col1 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT 71 * col0 FROM tab0 AS cor0
----
1704
2485
6319
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab0.col0 ) * col0 col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT - 48 * + 16 * + col1 FROM tab1
----
-19968
-7680
-9984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3188
SELECT CAST( cor0.col1 AS SIGNED ) FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3188
SELECT CAST ( cor0.col1 AS INTEGER ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ( + col2 ) + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT - - 49 + - col1 + - col1 FROM tab2 AS cor0
----
-13
-69
15
query I rowsort
SELECT DISTINCT cor1.col2 + + cor1.col0 + + cor1.col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
260
71
81
query I rowsort
SELECT - ( - 62 ) * + cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 6087555f6b5956c2d9a6a8ceb786f1fd
query I rowsort
SELECT 20 * - col1 * col0 + col1 AS col0 FROM tab0 AS cor0
----
-161889
-41194
-67803
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * col2 + col1 col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT - - 83 AS col1 FROM tab1 AS cor0
----
83
83
83
query I rowsort
SELECT ALL - + tab2.col2 FROM tab2, tab1 AS cor0, tab1, tab2 AS cor1
----
81 values hashing to c569638e8a09ff819458d62ddbde994c
onlyif mysql # use DIV operator for integer division
query I rowsort label-3197
SELECT ( 55 ) + tab2.col1 DIV - 32 FROM tab2
----
54
55
55
skipif mysql # not compatible
query I rowsort label-3197
SELECT ( 55 ) + tab2.col1 / - 32 FROM tab2
----
54
55
55
query I rowsort
SELECT - - col2 + - 23 AS col2 FROM tab2 AS cor0
----
15
3
4
query I rowsort
SELECT + col0 * ( + col2 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT col1 * + col2 + + tab1.col1 FROM tab1
----
1261
1430
580
query I rowsort
SELECT col2 + + 82 * - tab1.col1 + col2 AS col1 FROM tab1
----
-2024
-706
-874
query I rowsort
SELECT DISTINCT col1 * col2 + 82 * col2 FROM tab2
----
3051
3666
3762
onlyif mysql # use DIV operator for integer division
query I rowsort label-3203
SELECT ALL col1 DIV col1 + 98 + - col1 FROM tab2
----
40
68
82
skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL col1 / col1 + 98 + - col1 FROM tab2
----
40
68
82
query I rowsort
SELECT ALL col2 + + 34 AS col1 FROM tab0
----
116
35
67
query I rowsort
SELECT + col2 * col0 * - col1 + - cor0.col1 + + 86 * col0 FROM tab0 AS cor0
----
-482
-656555
-66134
query I rowsort
SELECT 73 + + 52 - col2 * - col1 FROM tab0 AS cor0
----
222
2963
7587
query I rowsort
SELECT + ( - col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + - col0 * 21 + - col1 + 28 FROM tab2 AS cor0
----
-150
-1648
-1669
onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT col1 + - col2 DIV ( + col0 ) AS col0 FROM tab1
----
10
12
8
skipif mysql # not compatible
query I rowsort label-3209
SELECT col1 + - col2 / ( + col0 ) AS col0 FROM tab1
----
10
12
8
query I rowsort
SELECT + 44 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT - cor0.col1 + - ( + 17 ) FROM tab2, tab1, tab2 AS cor0
----
-34
-48
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-3212
SELECT + col0 DIV 47 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3212
SELECT + col0 / 47 FROM tab2
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3213
SELECT ALL + col1 DIV col1 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3213
SELECT ALL + col1 / col1 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT ALL col2 * - col0 * col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + tab0.col1 * + 98 AS col2 FROM tab0
----
8428
8918
9506
query I rowsort
SELECT + col2 + 15 FROM tab2 cor0
----
41
42
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + 90 col2 FROM tab1 cor0
----
154
170
93
query I rowsort
SELECT DISTINCT + + col0 * - col2 * ( col1 ) + col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3219
SELECT + - cor0.col2 + CAST( 59 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-1449
-2066
-5333
skipif mysql # not compatible
query I rowsort label-3219
SELECT + - cor0.col2 + CAST ( 59 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-1449
-2066
-5333
onlyif mysql # use DIV operator for integer division
query I rowsort label-3220
SELECT - + col0 DIV 21 AS col1 FROM tab2 cor0
----
-3
-3
0
skipif mysql # not compatible
query I rowsort label-3220
SELECT - + col0 / 21 AS col1 FROM tab2 cor0
----
-3
-3
0
query I rowsort
SELECT DISTINCT - - cor0.col0 * ( + col0 ) FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL - col0 + - col0 * col1 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT ALL + - ( col0 ) * col0 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-343
-474552
-493039
onlyif mysql # use DIV operator for integer division
query I rowsort label-3224
SELECT DISTINCT + cor0.col0 * + cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + cor0.col0 * + cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3225
SELECT ALL - col1 DIV 22 AS col2 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL - col1 / 22 AS col2 FROM tab2
----
-1
-2
0
query I rowsort
SELECT col1 + - ( - 92 ) AS col2 FROM tab2
----
109
123
151
onlyif mysql # use DIV operator for integer division
query I rowsort label-3227
SELECT ALL + tab2.col0 DIV ( + col0 ) FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + tab2.col0 / ( + col0 ) FROM tab2
----
1
1
1
query I rowsort
SELECT ALL - 87 FROM tab1, tab2 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT ALL + - col1 * col2 + + col2 + + col1 FROM tab1 AS cor0
----
-1139
-1324
-503
query I rowsort
SELECT DISTINCT tab0.col2 AS col0 FROM tab0, tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL 21 + + col1 FROM tab1 cor0
----
31
34
47
query I rowsort
SELECT - 40 + + col1 FROM tab0 AS cor0
----
46
51
57
query I rowsort
SELECT 33 + - col0 AS col0 FROM tab2 cor0
----
-45
-46
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col1 FROM tab1
----
68
68
68
query I rowsort
SELECT - 69 + - cor0.col0 FROM tab1 AS cor0
----
-133
-149
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3236
SELECT - col0 * + col0 + + CAST( + 48 AS SIGNED ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-3616
-5776
1239
skipif mysql # not compatible
query I rowsort label-3236
SELECT - col0 * + col0 + + CAST ( + 48 AS INTEGER ) * cor0.col1 AS col2 FROM tab1 AS cor0
----
-3616
-5776
1239
query I rowsort
SELECT DISTINCT + col2 + + tab0.col0 FROM tab0
----
171
36
57
query I rowsort
SELECT cor0.col1 + col2 AS col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT 92 * - col1 AS col0 FROM tab1
----
-1196
-2392
-920
query I rowsort
SELECT ALL col0 * - tab0.col1 + col2 AS col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT ALL col0 + col2 * 76 FROM tab0
----
111
2532
6321
query I rowsort
SELECT - + col0 + - col1 + col0 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - col1 * col0 + - col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT 61 - - col0 FROM tab1
----
125
141
64
query I rowsort
SELECT - col1 + cor0.col0 AS col0 FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - + col1 * + col2 + cor0.col2 * - col2 FROM tab1 cor0
----
-10464
-3819
-4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT + + col0 + + col0 * col1 DIV col1 FROM tab1 AS cor0
----
128
160
6
skipif mysql # not compatible
query I rowsort label-3247
SELECT + + col0 + + col0 * col1 / col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col0 * + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * + col2 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + cor0.col1 - + col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL cor0.col0 * - 66 FROM tab0 AS cor0
----
-1584
-2310
-5874
query I rowsort
SELECT - + cor0.col0 * col2 + - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + col1 + + 30 FROM tab0 AS cor0
----
116
121
127
query I rowsort
SELECT ALL cor0.col1 * + 79 + col2 FROM tab1 AS cor0
----
1123
2108
847
query I rowsort
SELECT - col0 * ( - 85 ) AS col2 FROM tab1 AS cor0
----
255
5440
6800
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + col0 + 37 - tab0.col2 FROM tab0
----
28
44
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT col2 * - col0 - - col0 * 20 DIV col2 FROM tab0 AS cor0
----
-7277
-778
665
skipif mysql # not compatible
query I rowsort label-3258
SELECT col2 * - col0 - - col0 * 20 / col2 FROM tab0 AS cor0
----
-7277
-778
665
onlyif mysql # use DIV operator for integer division
query I rowsort label-3259
SELECT - - ( - col0 ) * col2 DIV ( col0 ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85
skipif mysql # not compatible
query I rowsort label-3259
SELECT - - ( - col0 ) * col2 / ( col0 ) + - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ( + 89 ) * + cor0.col2 - col2 FROM tab2 AS cor0
----
2288
2376
3344
query I rowsort
SELECT + col1 * + 43 AS col1 FROM tab2 AS cor0
----
1333
2537
731
onlyif mysql # use DIV operator for integer division
query I rowsort label-3262
SELECT + ( col2 ) DIV - col0 - - col0 FROM tab0 AS cor0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-3262
SELECT + ( col2 ) / - col0 - - col0 FROM tab0 AS cor0
----
23
35
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3263
SELECT + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3263
SELECT + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - + col0 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT - ( + 94 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col1 col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + 34 FROM tab2 AS cor0
----
34
34
34
query I rowsort
SELECT col1 + + col1 FROM tab0 WHERE NOT NULL <= col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3270
SELECT tab1.col2 DIV tab1.col1 AS col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3270
SELECT tab1.col2 / tab1.col1 AS col1 FROM tab1
----
2
5
7
query I rowsort
SELECT DISTINCT + tab0.col1 * + col2 AS col0 FROM tab0
----
2838
7462
97
query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col1 * col0 + col1 ) NOT IN ( col2 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT + tab0.col0 - + col0 * + col0 AS col2 FROM tab0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + tab2.col1 * + col2 col0 FROM tab2
----
-119652
-51034
-5859
query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col1 + - col1 >= + col0
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL + col0 * - col1 * - col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT col0 * + tab0.col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - col2 + col1 + + col0 > + col2
----
54
57
96
query I rowsort
SELECT ALL + col2 * + tab1.col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + col0 * col2 + col1 * - col2 + col0 AS col0 FROM tab1
----
-1239
3142
6512
query I rowsort
SELECT ALL tab1.col1 * + col2 + col2 - - col0 FROM tab1
----
1424
1461
691
query I rowsort
SELECT - col0 + col1 FROM tab1 WHERE NOT col2 * col0 NOT BETWEEN - col1 AND NULL
----
query I rowsort
SELECT ALL - col1 / + col2 FROM tab1 WHERE ( NULL ) = NULL
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + col0 * tab2.col1 * - col2 col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT + col1 + + tab2.col1 - - col1 * + tab2.col2 * col2 FROM tab2
----
22661
24582
40002
query I rowsort
SELECT DISTINCT col1 + - col1 * - col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT col1 * col2 + + tab2.col2 - - col0 * - col0 AS col1 FROM tab2
----
-4524
-5557
815
query I rowsort
SELECT col0 + col1 AS col1 FROM tab1
----
29
74
93
query I rowsort
SELECT + col2 * col2 + col2 * col0 + col1 * + col1 AS col1 FROM tab2
----
1879
4735
6185
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - col0 )
----
query I rowsort
SELECT DISTINCT tab2.col2 + col1 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + tab1.col1 - tab1.col1 FROM tab1
----
0
0
0
query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 IN ( + col1 )
----
26
27
38
query I rowsort
SELECT col0 * col2 + col1 AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col2 + - col0 AS col1 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3298
SELECT col1 + + col1 DIV col0 AS col2 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-3298
SELECT col1 + + col1 / col0 AS col2 FROM tab1
----
10
13
34
query I rowsort
SELECT col1 * + col2 + - col2 AS col0 FROM tab0
----
2805
7380
96
query I rowsort
SELECT DISTINCT + col1 - - col0 FROM tab0
----
110
132
180
query I rowsort
SELECT ALL col0 - + col2 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col1 * cor0.col1 - - col2 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT + col2 - + cor0.col2 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * tab2.col1 col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL tab0.col2 + + col0 AS col0 FROM tab0
----
171
36
57
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + col0 + col0 IN ( + col0 + tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT ALL + col2 * + tab2.col2 FROM tab2
----
1444
676
729
query I rowsort
SELECT + col0 * tab1.col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3309
SELECT + col2 - tab0.col0 DIV tab0.col2 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-3309
SELECT + col2 - tab0.col0 / tab0.col2 FROM tab0
----
-34
33
81
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 * tab2.col1 )
----
query I rowsort
SELECT ALL + col0 * - col2 - tab0.col2 FROM tab0
----
-36
-7380
-825
query I rowsort
SELECT ALL col0 - + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 * - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 + col1 col2 FROM tab1 cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-3315
SELECT DISTINCT - col2 DIV - cor0.col1 FROM tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-3315
SELECT DISTINCT - col2 / - cor0.col1 FROM tab2 AS cor0
----
0
2
query I rowsort
SELECT - cor2.col1 + + 4 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 5ecd5ce3f34afd6e9a4f11ca4bf967c8
query I rowsort
SELECT ALL col2 * - ( ( col0 ) ) AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT - cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3319
SELECT ALL col1 DIV - ( - 20 ) AS col0 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3319
SELECT ALL col1 / - ( - 20 ) AS col0 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT ALL + col0 + + cor0.col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - col0 * - col0 * + col1 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT - + cor0.col2 * col2 AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT + 46 + - 36 * - col1 AS col1 FROM tab0 AS cor0
----
3142
3322
3538
query I rowsort
SELECT ALL + 89 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT tab1.col2 * tab1.col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab1
----
-20
query I rowsort
SELECT - + 7 + + 35 * - col2 AS col1 FROM tab0 AS cor0
----
-1162
-2877
-42
query I rowsort
SELECT DISTINCT - 80 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
-80
query I rowsort
SELECT DISTINCT + 25 * - col2 FROM tab2
----
-650
-675
-950
query I rowsort
SELECT 46 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1104
1610
4094
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3331
SELECT - ( col2 ) * - CAST( 30 AS SIGNED ) FROM tab2 AS cor0
----
1140
780
810
skipif mysql # not compatible
query I rowsort label-3331
SELECT - ( col2 ) * - CAST ( 30 AS INTEGER ) FROM tab2 AS cor0
----
1140
780
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3332
SELECT col0 * + col1 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3332
SELECT col0 * + col1 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * ( - col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT col1 * + 60 AS col0 FROM tab0 AS cor0
----
5160
5460
5820
query I rowsort
SELECT - - cor0.col1 * + 1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT - + col2 + col0 * col1 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + col2 * 82 AS col2 FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT ALL ( col0 * col2 ) + + col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT + tab0.col2 FROM tab0, tab1 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3340
SELECT ALL CAST( + 84 AS SIGNED ) + col1 + - 11 FROM tab1
----
83
86
99
skipif mysql # not compatible
query I rowsort label-3340
SELECT ALL CAST ( + 84 AS INTEGER ) + col1 + - 11 FROM tab1
----
83
86
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-3341
SELECT + tab1.col2 - 5 DIV + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3341
SELECT + tab1.col2 - 5 / + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - + col2 * - 16 + col1 AS col2 FROM tab0 AS cor0
----
113
1403
614
query I rowsort
SELECT + ( ( - col2 ) ) * 53 FROM tab2 AS cor0
----
-1378
-1431
-2014
query I rowsort
SELECT + col2 + 58 AS col1 FROM tab0
----
140
59
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-3345
SELECT + ( tab0.col2 ) DIV + col1 - - col1 * col0 * col0 FROM tab0
----
118825
49536
720811
skipif mysql # not compatible
query I rowsort label-3345
SELECT + ( tab0.col2 ) / + col1 - - col1 * col0 * col0 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 + col1 * col2 col2 FROM tab0 AS cor0
----
2774
33
7398
query I rowsort
SELECT - 61 * col2 AS col1 FROM tab2 AS cor0
----
-1586
-1647
-2318
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3348
SELECT DISTINCT + col1 * + col0 * + CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif mysql # not compatible
query I rowsort label-3348
SELECT DISTINCT + col1 * + col0 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
119652
51034
5859
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 col1 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT - 3 AS col0 FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT + col0 + - col1 * - col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT - - 74 * col1 - - col0 AS col1 FROM tab2 AS cor0
----
1337
2301
4444
query I rowsort
SELECT + ( col1 ) + + 52 * col1 AS col0 FROM tab0 AS cor0
----
4558
4823
5141
query I rowsort
SELECT DISTINCT - col2 * - col0 + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT ALL + ( + col2 ) + + 73 FROM tab2 AS cor0
----
100
111
99
query I rowsort
SELECT ALL + col1 * + cor0.col0 + col2 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - col2 - ( col0 ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + col1 - 72 FROM tab2
----
-13
-41
-55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3359
SELECT + tab1.col1 / + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3359
SELECT + tab1.col1 / + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 - - 94 * - col0 AS col1 FROM tab1 AS cor0
----
-228
-5959
-7424
onlyif mysql # use DIV operator for integer division
query I rowsort label-3361
SELECT ALL - 36 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-3361
SELECT ALL - 36 / col0 AS col1 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL + 35 * col2 AS col2 FROM tab2 AS cor0
----
1330
910
945
query I rowsort
SELECT DISTINCT + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - 56 AS col2 FROM tab1 AS cor0
----
-56
-56
-56
onlyif mysql # use DIV operator for integer division
query I rowsort label-3365
SELECT ALL + ( + col0 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + ( + col0 ) / - col2 AS col2 FROM tab1 AS cor0
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 col0 FROM tab1 cor0
----
-59
-59
-59
query I rowsort
SELECT ALL + + 42 FROM tab0 AS cor0
----
42
42
42
query I rowsort
SELECT DISTINCT ( 99 ) AS col2 FROM tab2 cor0
----
99
query I rowsort
SELECT - ( + cor0.col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 32 * cor0.col0 AS col0 FROM tab1 AS cor0
----
2048
2560
96
query I rowsort
SELECT - tab0.col1 * ( - 91 ) * col0 FROM tab0
----
187824
308945
737009
query I rowsort
SELECT - cor0.col1 + + cor0.col0 AS col1 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to cd2ed0f8f28bdf79fb96cc708de5c5ff
query I rowsort
SELECT ALL col0 - - 23 FROM tab2
----
101
102
30
query I rowsort
SELECT ALL + - ( 35 ) + - col1 * 46 + col0 AS col1 FROM tab1 AS cor0
----
-1228
-431
-553
query I rowsort
SELECT - 5 * + 92 FROM tab1 AS cor0
----
-460
-460
-460
query I rowsort
SELECT ALL + col0 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col1 + + 21 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT - + col2 + col0 - + col1 * cor0.col1 * + cor0.col2 AS col1 FROM tab2 AS cor0
----
-10941
-25967
-90454
query I rowsort
SELECT DISTINCT - 90 * col2 + - col1 + 62 * col2 AS col1 FROM tab0 AS cor0
----
-1010
-125
-2387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL 74 AS col2 FROM tab1 AS cor0
----
74
74
74
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab0 cor2
----
972 values hashing to 9a5ab925af18e11f7748f3b2e722ff3d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 col0 FROM tab2, tab2 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT DISTINCT - col1 - col0 DIV tab1.col2 AS col1 FROM tab1
----
-11
-13
-26
skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT - col1 - col0 / tab1.col2 AS col1 FROM tab1
----
-11
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3385
SELECT + tab2.col0 + CAST( + col2 * col0 AS SIGNED ) FROM tab2
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-3385
SELECT + tab2.col0 + CAST ( + col2 * col0 AS INTEGER ) FROM tab2
----
196
2106
3081
query I rowsort
SELECT col2 * ( col0 ) AS col2 FROM tab0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3387
SELECT DISTINCT - col2 + + col1 DIV tab0.col2 AS col1 FROM tab0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT - col2 + + col1 / tab0.col2 AS col1 FROM tab0
----
-31
-81
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3388
SELECT - CAST( + col1 AS SIGNED ) * col2 AS col2 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-3388
SELECT - CAST ( + col1 AS INTEGER ) * col2 AS col2 FROM tab1
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3389
SELECT - CAST( NULL AS SIGNED ) - + col1 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3389
SELECT - CAST ( NULL AS INTEGER ) - + col1 col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 60 + ( - col0 ) FROM tab0
----
-29
25
36
query I rowsort
SELECT ( + col0 ) + + tab2.col2 * col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT tab0.col1 + - 44 FROM tab0
----
42
47
53
query I rowsort
SELECT ( col2 ) + + col1 + ( - col0 ) FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + 71 + + tab0.col1 * - col1 AS col0 FROM tab0
----
-7325
-8210
-9338
query I rowsort
SELECT ALL - col0 + 74 * tab0.col1 FROM tab0
----
6340
6645
7143
query I rowsort
SELECT ALL + col1 + - col1 AS col0 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3397
SELECT DISTINCT CAST( col2 AS SIGNED ) + col2 FROM tab2
----
52
54
76
skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT CAST ( col2 AS INTEGER ) + col2 FROM tab2
----
52
54
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col1 * col2 col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3399
SELECT ALL - cor0.col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - cor0.col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col2 + cor0.col0 * col1 + - col1 AS col1 FROM tab1 AS cor0
----
-2
573
931
query I rowsort
SELECT ALL + - col1 - col0 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3402
SELECT DISTINCT - col2 + - cor0.col2 DIV col1 + col1 FROM tab2 AS cor0
----
-23
33
4
skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT - col2 + - cor0.col2 / col1 + col1 FROM tab2 AS cor0
----
-23
33
4
query I rowsort
SELECT - 96 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to a7b3e5dd01c8929180b7ffda67f79798
query I rowsort
SELECT - 87 + col2 AS col1 FROM tab0
----
-5
-54
-86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 9046c86f4ecdb3416770671e3173d46c
query I rowsort
SELECT 35 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 0d13dfd4c4a9d51ace3582c31cadcdbc
query I rowsort
SELECT ALL col0 - col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + col2 + 88 * - 25 FROM tab0
----
-2118
-2167
-2199
onlyif mysql # use DIV operator for integer division
query I rowsort label-3410
SELECT DISTINCT - col2 DIV 42 + - 4 * col0 FROM tab1 AS cor0
----
-13
-257
-322
skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT - col2 / 42 + - 4 * col0 FROM tab1 AS cor0
----
-13
-257
-322
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT ALL + col0 + CAST( + 41 AS SIGNED ) FROM tab0 cor0
----
130
65
76
skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + col0 + CAST ( + 41 AS INTEGER ) FROM tab0 cor0
----
130
65
76
query I rowsort
SELECT ALL - + col0 + cor0.col0 + + 77 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT ALL + - cor0.col2 * - 82 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT DISTINCT - + col0 + + ( 75 ) AS col1 FROM tab1 AS cor0
----
-5
11
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 81 col0 FROM tab2 AS cor0
----
-2
-3
-74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col2 FROM tab2
----
-83
-83
-83
query I rowsort
SELECT col0 * tab1.col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT 27 * - col2 FROM tab1
----
-1458
-1539
-2592
query I rowsort
SELECT ALL col2 * col2 * ( - col1 ) AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - col2 * + cor0.col2 - ( col1 ) AS col2 FROM tab2 AS cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + - col0 col2 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3422
SELECT - + 1 DIV cor0.col1 + 25 AS col2 FROM tab0 AS cor0
----
25
25
25
skipif mysql # not compatible
query I rowsort label-3422
SELECT - + 1 / cor0.col1 + 25 AS col2 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT ALL + 2 * col1 AS col0 FROM tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 * - ( 61 ) * col0 + - col2 col1 FROM tab1 cor0
----
-39097
-4812
-63536
query I rowsort
SELECT - - col2 - - 82 * - cor0.col1 * col0 FROM tab2 AS cor0
----
-110088
-17767
-377338
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3427
SELECT DISTINCT ( col2 ) + + CAST( NULL AS SIGNED ) * - col1 * tab0.col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3427
SELECT DISTINCT ( col2 ) + + CAST ( NULL AS INTEGER ) * - col1 * tab0.col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - col0 + - col0 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ( col2 ) + - ( - col2 ) * + tab2.col0 + - ( - col0 ) * + col0 * tab2.col1 FROM tab2
----
109137
1735
361010
query I rowsort
SELECT DISTINCT - col0 + - col0 * - col0 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT - + 99 * col0 + - col1 AS col0 FROM tab2 AS cor0
----
-724
-7781
-7838
query I rowsort
SELECT ALL ( ( - col2 ) ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - ( cor0.col2 ) AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - + 16 AS col2 FROM tab0 cor0
----
-16
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3436
SELECT ALL + col2 DIV - 15 FROM tab0 AS cor0
----
-2
-5
0
skipif mysql # not compatible
query I rowsort label-3436
SELECT ALL + col2 / - 15 FROM tab0 AS cor0
----
-2
-5
0
query I rowsort
SELECT ALL - 2 + + col1 AS col0 FROM tab1 AS cor0
----
11
24
8
query I rowsort
SELECT + ( col1 ) + col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + - ( col2 ) * - cor0.col1 + - 50 FROM tab0 AS cor0
----
2788
47
7412
query I rowsort
SELECT DISTINCT + - col2 * + col2 AS col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + tab1.col1 + - 56 AS col0 FROM tab1
----
-30
-43
-46
query I rowsort
SELECT + col2 * ( col2 + 76 ) FROM tab0 AS cor0
----
12956
3597
77
query I rowsort
SELECT 33 * col1 AS col2 FROM tab1 cor0
----
330
429
858
query I rowsort
SELECT ( 34 ) * col1 FROM tab2 AS cor0
----
1054
2006
578
query I rowsort
SELECT - 92 * 95 FROM tab0 AS cor0
----
-8740
-8740
-8740
query I rowsort
SELECT ALL 67 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3447
SELECT - 10 * col1 * + CAST( 84 AS SIGNED ) col0 FROM tab0 AS cor0
----
-72240
-76440
-81480
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3447
SELECT - 10 * col1 * + CAST ( 84 AS INTEGER ) col0 FROM tab0 AS cor0
----
-72240
-76440
-81480
onlyif mysql # use DIV operator for integer division
query I rowsort label-3448
SELECT ( col1 ) DIV - col2 + + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3448
SELECT ( col1 ) / - col2 + + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - 83 * col0 AS col0 FROM tab0 AS cor0
----
-1992
-2905
-7387
query I rowsort
SELECT - 54 + + col0 FROM tab0 AS cor0
----
-19
-30
35
query I rowsort
SELECT ALL - 21 * + col0 AS col1 FROM tab2
----
-147
-1638
-1659
query I rowsort
SELECT DISTINCT 26 FROM tab0, tab0 AS cor0
----
26
query I rowsort
SELECT + 42 AS col2 FROM tab0
----
42
42
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-3454
SELECT + col1 DIV - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3454
SELECT + col1 / - col1 col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # use DIV operator for integer division
query I rowsort label-3456
SELECT ALL + ( col0 ) DIV + tab0.col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL + ( col0 ) / + tab0.col2 FROM tab0
----
0
1
35
query I rowsort
SELECT ALL - 28 FROM tab2, tab1, tab2 AS cor0, tab1 AS cor1
----
81 values hashing to 70e92c218433163922867899a16e1269
query I rowsort
SELECT - ( 84 ) AS col1 FROM tab1, tab1 cor0, tab1 cor1
----
27 values hashing to 02f1688b8610806ca28739b1735f6ae4
query I rowsort
SELECT 70 * col0 AS col0 FROM tab2 AS cor0
----
490
5460
5530
onlyif mysql # use DIV operator for integer division
query I rowsort label-3460
SELECT + + col1 DIV - col0 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-3460
SELECT + + col1 / - col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT DISTINCT - 42 - 9 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-51
query I rowsort
SELECT DISTINCT col0 * - col0 * tab1.col1 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT ALL + col1 * col0 + col1 AS col2 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-3464
SELECT ALL + col2 * + ( col2 ) - - col1 DIV 36 FROM tab2 AS cor0
----
1444
677
729
skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL + col2 * + ( col2 ) - - col1 / 36 FROM tab2 AS cor0
----
1444
677
729
query I rowsort
SELECT - col0 + col0 * - 56 FROM tab0 AS cor0
----
-1368
-1995
-5073
query I rowsort
SELECT DISTINCT col2 * + col1 + cor0.col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT + - 87 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-87
query I rowsort
SELECT + 53 AS col2 FROM tab2
----
53
53
53
query I rowsort
SELECT ALL 11 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT 10 + col2 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
10
10
10
skipif mysql # not compatible
query I rowsort label-3472
SELECT 10 + col2 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT DISTINCT + - cor0.col1 + - 8 FROM tab2, tab1 AS cor0
----
-18
-21
-34
query I rowsort
SELECT ALL cor0.col2 AS col0 FROM tab2, tab1 cor0 WHERE NULL >= ( NULL )
----
query I rowsort
SELECT - 1 * - col2 AS col0 FROM tab1
----
54
57
96
query I rowsort
SELECT + cor0.col0 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 2 * col2 col0 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + 72 * - cor0.col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-1872
-720
-936
query I rowsort
SELECT col2 * 31 AS col1 FROM tab2 cor0
----
1178
806
837
query I rowsort
SELECT ALL + col0 * col0 + + tab1.col1 AS col2 FROM tab1
----
35
4106
6413
query I rowsort
SELECT DISTINCT col2 * 26 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT DISTINCT - col1 + ( + col2 ) + + col2 AS col1 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT col0 * + col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( + 48 ) col1 FROM tab2 AS cor0
----
1488
2832
816
query I rowsort
SELECT ALL + ( + tab1.col1 ) * col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL 49 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT ALL col2 * ( + col2 ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - 67 + - cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 593008c77fc4ae6d178487c688c58581
query I rowsort
SELECT - + col2 * + col2 - 90 AS col2 FROM tab0 AS cor0
----
-1179
-6814
-91
query I rowsort
SELECT col2 * + col0 + - cor0.col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + + ( + cor0.col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - 10 * col0 + cor0.col1 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
-253
2598
6572
query I rowsort
SELECT ALL cor0.col2 * col0 + col0 * 17 * col0 FROM tab0 AS cor0
----
10584
141955
20860
query I rowsort
SELECT DISTINCT - - 78 * col1 + ( + col2 * col2 + col0 * 76 ) FROM tab0 AS cor0
----
10227
20586
9621
query I rowsort
SELECT - col1 * - col2 - 71 FROM tab1 AS cor0
----
1177
1333
499
query I rowsort
SELECT + col0 - col0 * + col1 AS col2 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT 72 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT - + ( + col0 ) - ( cor0.col1 ) * + cor0.col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL - col0 + col0 * + ( col1 ) AS col2 FROM tab1 cor0
----
576
75
960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3501
SELECT DISTINCT col1 + col1 * - CAST( NULL AS SIGNED ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT col1 + col1 * - CAST ( NULL AS INTEGER ) - col0 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT col2 * - col2 + col1 * 76 AS col1 FROM tab1 AS cor0
----
-2489
-8228
-940
query I rowsort
SELECT ALL + + col1 + cor0.col2 * + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT col2 * col2 + 75 FROM tab0 cor0
----
1164
6799
76
query I rowsort
SELECT + col1 * cor0.col2 - 75 FROM tab2 AS cor0
----
1459
571
762
query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 + - ( col0 ) FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + col0 + + col2 * - col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT DISTINCT + - col1 + + col1 AS col0 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL 76 AS col0 FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT + col2 + - col2 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ( - col0 ) + + 9 * col0 FROM tab0
----
192
280
712
onlyif mysql # use DIV operator for integer division
query I rowsort label-3512
SELECT ALL + - col1 DIV + col0 + col2 + col0 col1 FROM tab0 AS cor0
----
170
34
54
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3512
SELECT ALL + - col1 / + col0 + col2 + col0 col1 FROM tab0 AS cor0
----
170
34
54
query I rowsort
SELECT DISTINCT + 97 * col1 FROM tab2 AS cor0
----
1649
3007
5723
query I rowsort
SELECT + + col2 * + col2 * - col1 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - cor0.col2 - + 88 FROM tab1 AS cor0
----
-142
-145
-184
query I rowsort
SELECT col1 + + 25 AS col0 FROM tab0 AS cor0
----
111
116
122
query I rowsort
SELECT cor0.col1 * + col2 + + ( col0 ) FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT + + cor0.col1 * - col0 + col2 * col1 AS col1 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT ALL - - col2 + + cor0.col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + cor0.col0 * 94 * col0 FROM tab0 AS cor0
----
115150
54144
744574
query I rowsort
SELECT DISTINCT - - cor0.col2 + - 30 FROM tab1 AS cor0
----
24
27
66
query I rowsort
SELECT - ( + col0 ) * col2 AS col0 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT ALL tab0.col0 FROM tab0, tab1 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT ( col0 ) + col0 + 90 AS col1 FROM tab0
----
138
160
268
query I rowsort
SELECT 81 * col1 + + col0 + - 45 * + col1 FROM tab1
----
424
548
939
query I rowsort
SELECT 94 * col1 + - col2 * + tab0.col1 AS col1 FROM tab0
----
1092
5246
9021
query I rowsort
SELECT ALL - tab1.col2 + + col0 * col1 + tab1.col2 * col2 AS col2 FROM tab1
----
10160
2940
3832
query I rowsort
SELECT DISTINCT 87 + col1 + col1 AS col0 FROM tab2
----
121
149
205
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3529
SELECT col1 * col0 + - CAST( NULL AS SIGNED ) - + ( + col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3529
SELECT col1 * col0 + - CAST ( NULL AS INTEGER ) - + ( + col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + 3 + col0 AS col0 FROM tab0
----
27
38
92
query I rowsort
SELECT ALL col2 - - tab0.col2 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL ( col2 ) * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL 14 * - ( - col1 * ( - col2 ) ) FROM tab1 cor0
----
-17472
-19656
-7980
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 46 col1 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT + ( + 48 ) FROM tab2 cor0
----
48
48
48
query I rowsort
SELECT + ( + 31 ) FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT + 99 * col1 FROM tab2 AS cor0
----
1683
3069
5841
query I rowsort
SELECT ALL + + ( + col1 ) + col1 + + ( col1 ) AS col2 FROM tab2 AS cor0
----
177
51
93
query I rowsort
SELECT col1 + + 96 FROM tab0 AS cor0
----
182
187
193
query I rowsort
SELECT - + ( - 37 ) FROM tab2 AS cor0
----
37
37
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-3541
SELECT ALL - col2 DIV 1 + + col0 FROM tab0 AS cor0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - col2 / 1 + + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - col2 * + ( 65 ) * col0 + col2 FROM tab0
----
-2274
-474288
-51447
query I rowsort
SELECT 41 - tab2.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 3fdb5ad8989e06f5d28e89e20afce52e
query I rowsort
SELECT - 10 AS col1 FROM tab0 cor0
----
-10
-10
-10
query I rowsort
SELECT DISTINCT + col0 * 90 FROM tab1
----
270
5760
7200
query I rowsort
SELECT DISTINCT - - 65 AS col2 FROM tab2 AS cor0
----
65
query I rowsort
SELECT + + 47 * - col0 * cor0.col0 + ( + col0 ) + col0 AS col1 FROM tab1 AS cor0
----
-192384
-300640
-417
query I rowsort
SELECT col2 * col0 * tab2.col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT DISTINCT - tab1.col1 * tab1.col2 * cor0.col1 FROM tab1, tab0, tab2 cor0
----
9 values hashing to 9307fc7971e3696d91232e91b9882451
query I rowsort
SELECT + col2 + + 41 * + col1 FROM tab2 AS cor0
----
1298
2445
735
query I rowsort
SELECT + - ( - col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - 10 + + col1 AS col2 FROM tab0
----
76
81
87
query I rowsort
SELECT - col1 * col2 * 43 + - col1 FROM tab1
----
-24520
-53677
-60398
query I rowsort
SELECT DISTINCT col0 * - col0 * - 56 FROM tab0
----
32256
443576
68600
onlyif mysql # use DIV operator for integer division
query I rowsort label-3555
SELECT tab2.col0 + ( col0 ) DIV col0 AS col2 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-3555
SELECT tab2.col0 + ( col0 ) / col0 AS col2 FROM tab2
----
79
8
80
query I rowsort
SELECT ALL col0 + + col2 * col1 * cor0.col0 AS col0 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT ALL + - col0 * cor0.col1 + - 77 AS col2 FROM tab0 cor0
----
-2141
-3472
-8176
query I rowsort
SELECT - - cor0.col2 * - ( - 65 + col2 * col2 ) FROM tab1 AS cor0
----
-153954
-181488
-878496
onlyif mysql # use DIV operator for integer division
query I rowsort label-3559
SELECT ALL + col2 + - 96 DIV + col0 FROM tab2 cor0
----
14
25
37
skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL + col2 + - 96 / + col0 FROM tab2 cor0
----
14
25
37
query I rowsort
SELECT ALL - tab0.col0 * + ( + cor0.col1 ) + tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 19dcea721a98617c279590fa438c691b
query I rowsort
SELECT - col2 - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT + + col2 * col1 + - col1 FROM tab1 AS cor0
----
1235
1378
560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3563
SELECT ALL + + CAST( NULL AS SIGNED ) + + 68 - col0 * + 42 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + + CAST ( NULL AS INTEGER ) + + 68 - col0 * + 42 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + ( + col0 * - col0 + + col2 ) AS col0 FROM tab2 AS cor0
----
-15
-5980
-6124
query I rowsort
SELECT - + ( - 31 ) - + col1 AS col1 FROM tab2 AS cor0
----
-28
0
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-3566
SELECT DISTINCT 19 * col0 DIV + col2 + ( col0 ) * cor0.col1 FROM tab1 AS cor0
----
1055
661
79
skipif mysql # not compatible
query I rowsort label-3566
SELECT DISTINCT 19 * col0 / + col2 + ( col0 ) * cor0.col1 FROM tab1 AS cor0
----
1055
661
79
query I rowsort
SELECT ALL 12 + - col1 FROM tab1 cor0
----
-1
-14
2
query I rowsort
SELECT 15 - + col0 FROM tab1 AS cor0
----
-49
-65
12
query I rowsort
SELECT DISTINCT col0 * 55 + - col2 FROM tab2 AS cor0
----
358
4264
4307
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab0, tab1, tab2 AS cor1
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37
query I rowsort
SELECT DISTINCT + col1 - col2 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT ALL - cor0.col1 * - ( + col0 + 75 ) AS col0 FROM tab2 AS cor0
----
2542
2618
9027
query I rowsort
SELECT - col2 * ( col1 ) AS col1 FROM tab0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3574
SELECT ALL - + col1 DIV + 92 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-3574
SELECT ALL - + col1 / + 92 + col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + - col1 + + col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3576
SELECT ALL - col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL - col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col0 col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3578
SELECT + CAST( + col0 AS SIGNED ) * + col0 + 99 * - 14 FROM tab2 AS cor0
----
-1337
4698
4855
skipif mysql # not compatible
query I rowsort label-3578
SELECT + CAST ( + col0 AS INTEGER ) * + col0 + 99 * - 14 FROM tab2 AS cor0
----
-1337
4698
4855
query I rowsort
SELECT - col1 * col2 - cor0.col2 * + 94 FROM tab2 AS cor0
----
-3375
-3978
-4218
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + col0 col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT 63 AS col2 FROM tab2 AS cor0
----
63
63
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-3582
SELECT + cor0.col1 DIV col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-3582
SELECT + cor0.col1 / col0 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT DISTINCT + 83 AS col2 FROM tab2
----
83
query I rowsort
SELECT DISTINCT - - 8 - - cor0.col0 AS col2 FROM tab2 AS cor0
----
15
86
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3585
SELECT col0 * col2 + - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3585
SELECT col0 * col2 + - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 * + col2 * col1 + ( - col2 ) FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT col2 * + tab2.col2 * - col1 + col1 FROM tab2
----
-22568
-24531
-39825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col2 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL - + 10 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT - cor0.col1 + + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT col2 * - col0 * col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL cor0.col0 * col0 FROM tab0 AS cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 * col2 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT + col1 + + col0 * - ( col0 + + col1 ) AS col1 FROM tab2 AS cor0
----
-10627
-235
-7567
query I rowsort
SELECT ALL - - col2 * - cor0.col2 + cor0.col0 * col2 AS col2 FROM tab0 AS cor0
----
-297
34
574
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT + cor0.col0 * + col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT 75 * col0 AS col2 FROM tab2
----
525
5850
5925
query I rowsort
SELECT - - cor0.col0 + 46 FROM tab0 AS cor0
----
135
70
81
query I rowsort
SELECT + col1 * 16 AS col1 FROM tab0 AS cor0
----
1376
1456
1552
query I rowsort
SELECT col0 * - 84 AS col0 FROM tab0 AS cor0
----
-2016
-2940
-7476
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3603
SELECT col0 + CAST( - cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-3603
SELECT col0 + CAST ( - cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3604
SELECT + col0 DIV col2 + col2 AS col1 FROM tab1 AS cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-3604
SELECT + col0 / col2 + col2 AS col1 FROM tab1 AS cor0
----
54
58
96
query I rowsort
SELECT ALL col1 * col2 + + col0 AS col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3606
SELECT - col1 DIV + ( col1 ) + - col0 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-3606
SELECT - col1 / + ( col1 ) + - col0 FROM tab0 AS cor0
----
-25
-36
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3607
SELECT cor0.col1 DIV + 24 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3607
SELECT cor0.col1 / + 24 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT col1 * + 40 AS col0 FROM tab0 AS cor0
----
3440
3640
3880
query I rowsort
SELECT col0 * ( 33 ) AS col2 FROM tab2 AS cor0
----
231
2574
2607
query I rowsort
SELECT + col0 * - ( - col0 ) + + col2 AS col1 FROM tab1 cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-3611
SELECT ALL - col0 DIV - tab1.col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - col0 / - tab1.col0 FROM tab1
----
1
1
1
query I rowsort
SELECT DISTINCT - 56 + col1 + col2 FROM tab0 AS cor0
----
117
42
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * col2 col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3614
SELECT + 16 + col1 DIV + col0 FROM tab0 AS cor0
----
17
18
19
skipif mysql # not compatible
query I rowsort label-3614
SELECT + 16 + col1 / + col0 FROM tab0 AS cor0
----
17
18
19
query I rowsort
SELECT - 51 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 08d3853e39924d3c636260a6dd856837
query I rowsort
SELECT DISTINCT + tab1.col2 * - 61 FROM tab1, tab1 AS cor0, tab2, tab1 cor1
----
-3294
-3477
-5856
onlyif mysql # use DIV operator for integer division
query I rowsort label-3617
SELECT cor0.col2 + col1 DIV cor0.col0 FROM tab2 AS cor0
----
26
31
38
skipif mysql # not compatible
query I rowsort label-3617
SELECT cor0.col2 + col1 / cor0.col0 FROM tab2 AS cor0
----
26
31
38
query I rowsort
SELECT - 12 FROM tab1, tab2 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to 60b4654b2477631ac8f4a95ec4a22fd3
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - 75 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT ( col2 ) * + tab2.col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT - 46 * cor0.col2 FROM tab1, tab0, tab0 AS cor0
----
-1518
-3772
-46
query I rowsort
SELECT - - 35 FROM tab2 cor0
----
35
35
35
query I rowsort
SELECT ALL ( 74 ) AS col2 FROM tab2, tab1 AS cor0, tab1 cor1
----
27 values hashing to dc22979e6d261795bd3ce2990fdbbf82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3625
SELECT ALL - col0 DIV - col1 col0 FROM tab2
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - col0 / - col1 col0 FROM tab2
----
0
1
4
query I rowsort
SELECT ALL 45 + - col2 * - col2 AS col0 FROM tab0 AS cor0
----
1134
46
6769
query I rowsort
SELECT 15 * col0 FROM tab0 cor0
----
1335
360
525
query I rowsort
SELECT DISTINCT - 19 FROM tab0 AS cor0
----
-19
onlyif mysql # use DIV operator for integer division
query I rowsort label-3629
SELECT + - 48 - - cor0.col2 DIV col1 col1 FROM tab1 AS cor0
----
-41
-43
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3629
SELECT + - 48 - - cor0.col2 / col1 col1 FROM tab1 AS cor0
----
-41
-43
-46
query I rowsort
SELECT ALL - + 22 + col2 FROM tab0 AS cor0
----
-21
11
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 51 * - cor0.col0 col0 FROM tab0 cor0
----
-1224
-1785
-4539
query I rowsort
SELECT DISTINCT - - col1 * col1 + col1 * + col1 AS col1 FROM tab1 cor0
----
1352
200
338
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * + col2 * - 96 + 14 * - col0 col0 FROM tab2 AS cor0
----
-228228
-235970
-333074
query I rowsort
SELECT - 62 + - col2 FROM tab0 AS cor0
----
-144
-63
-95
query I rowsort
SELECT + col0 * col2 * col0 AS col0 FROM tab0 cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - 44 FROM tab0 AS cor0
----
-44
-44
-44
query I rowsort
SELECT + ( - cor0.col2 ) + 41 * 37 * + col0 FROM tab1 cor0
----
121264
4497
97031
onlyif mysql # use DIV operator for integer division
query I rowsort label-3638
SELECT - cor0.col1 DIV col0 + - cor0.col2 + + col1 FROM tab2 AS cor0
----
-21
0
33
skipif mysql # not compatible
query I rowsort label-3638
SELECT - cor0.col1 / col0 + - cor0.col2 + + col1 FROM tab2 AS cor0
----
-21
0
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * - col2 col2 FROM tab1 cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3640
SELECT ALL + CAST( + col1 AS SIGNED ) FROM tab1
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3640
SELECT ALL + CAST ( + col1 AS INTEGER ) FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT - 88 AS col0 FROM tab1, tab1 AS cor0
----
-88
query I rowsort
SELECT ( col0 + + col1 ) AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT + col0 * - col1 * col1 AS col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT DISTINCT - + col1 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + col0 + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + - col2 + + col0 * - col2 * col1 FROM tab1 AS cor0
----
-36537
-4266
-99936
query I rowsort
SELECT - col0 * col2 * + col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT + col0 * - col2 - 8 AS col0 FROM tab1
----
-170
-3656
-7688
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col1 col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col1 + + col0 * col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT - - col2 + ( ( col2 ) ) + 46 AS col1 FROM tab1 AS cor0
----
154
160
238
query I rowsort
SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT ALL + col0 * - 42 + col0 DIV + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1008
-1435
-3737
skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL + col0 * - 42 + col0 / + ( col2 ) AS col1 FROM tab0 AS cor0
----
-1008
-1435
-3737
query I rowsort
SELECT cor1.col2 + - 7 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 75b0ec2f05802a9a66a39c43df051829
query I rowsort
SELECT - ( + 36 ) AS col0 FROM tab0 AS cor0
----
-36
-36
-36
query I rowsort
SELECT DISTINCT - + ( - cor0.col1 ) FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL 28 + + col1 FROM tab0 AS cor0
----
114
119
125
query I rowsort
SELECT ALL + col2 * col2 * cor0.col2 + 73 AS col2 FROM tab2 AS cor0
----
17649
19756
54945
query I rowsort
SELECT ALL cor0.col0 FROM tab0, tab2 AS cor0, tab1 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL - ( + col2 + + col1 ) AS col1 FROM tab1
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - ( + col0 ) + + cor0.col1 * + 29 * - col1 FROM tab0 AS cor0
----
-214508
-240238
-272896
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3662
SELECT - CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3662
SELECT - CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - 57 + - col0 AS col2 FROM tab2 AS cor0
----
-135
-136
-64
query I rowsort
SELECT DISTINCT - tab1.col1 * + ( - col2 ) FROM tab1
----
1248
1404
570
query I rowsort
SELECT + - ( 22 ) + - col2 * ( - col0 ) FROM tab1 AS cor0
----
140
3626
7658
query I rowsort
SELECT col2 * col2 + + cor0.col2 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT DISTINCT - col0 + - 5 - col2 AS col0 FROM tab2 AS cor0
----
-109
-122
-39
query I rowsort
SELECT 72 + col2 AS col0 FROM tab1 AS cor0
----
126
129
168
onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT DISTINCT - col0 + + cor0.col0 DIV + col0 FROM tab2 cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-3669
SELECT DISTINCT - col0 + + cor0.col0 / + col0 FROM tab2 cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT + col1 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-706
-7207
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab2
----
-60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3672
SELECT ALL col1 - + col0 / CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3672
SELECT ALL col1 - + col0 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3673
SELECT DISTINCT + + col2 * + cor0.col1 / CAST( NULL AS SIGNED ) + col2 * col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT + + col2 * + cor0.col1 / CAST ( NULL AS INTEGER ) + col2 * col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 72 + + col1 AS col2 FROM tab0 AS cor0
----
14
19
25
query I rowsort
SELECT DISTINCT + 49 * cor0.col1 AS col0 FROM tab2, tab0, tab0 AS cor0
----
4214
4459
4753
query I rowsort
SELECT ALL + col2 + - col1 AS col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - col0 * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL 83 AS col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT ALL - col0 + + ( col2 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col1 + - 81 * col1 AS col1 FROM tab2 AS cor0
----
-1360
-2480
-4720
query I rowsort
SELECT DISTINCT - col0 * ( + 79 ) AS col2 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col1 FROM tab2 cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 - - col1 col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - 88 + col1 FROM tab0 AS cor0
----
174
179
185
query I rowsort
SELECT DISTINCT + 41 * col0 FROM tab1 AS cor0
----
123
2624
3280
query I rowsort
SELECT ALL + 40 * + col0 FROM tab0 AS cor0
----
1400
3560
960
query I rowsort
SELECT + 17 * - col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT ALL - 76 AS col2 FROM tab1 AS cor0
----
-76
-76
-76
query I rowsort
SELECT - + col1 + + ( + col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( col2 ) + + col1 AS col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col1 * + 82 - cor0.col1 AS col2 FROM tab2 AS cor0
----
1377
2511
4779
query I rowsort
SELECT DISTINCT + col2 * + col1 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT col0 + ( 54 ) AS col2 FROM tab2
----
132
133
61
query I rowsort
SELECT - col1 + ( 4 + col1 ) AS col1 FROM tab1
----
4
4
4
query I rowsort
SELECT DISTINCT - tab0.col2 + ( + ( + col1 ) ) AS col0 FROM tab0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col2 FROM tab2
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 * + col1 col2 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT cor0.col1 + + col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + col0 * col0 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 )
----
query I rowsort
SELECT - col2 + + tab0.col1 AS col2 FROM tab0
----
53
9
96
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND ( NULL )
----
query I rowsort
SELECT ALL + col0 * + col0 * - col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - col2 - col1 * - tab2.col1 AS col0 FROM tab2
----
251
3455
934
query I rowsort
SELECT DISTINCT tab0.col1 - tab0.col1 FROM tab0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 col2 FROM tab2
----
137
38
96
query I rowsort
SELECT col1 * - col2 * - cor0.col2 FROM tab1 AS cor0
----
119808
32490
75816
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT * FROM tab0 WHERE col1 <= NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) BETWEEN col2 + - col0 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 * col2 col1 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT DISTINCT col1 * + tab0.col0 + col2 * col0 FROM tab0
----
15397
2856
3430
onlyif mysql # use DIV operator for integer division
query I rowsort label-3712
SELECT - tab2.col0 DIV + tab2.col1 + tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f88a6478686a21d9f88befee4ddbf79e
skipif mysql # not compatible
query I rowsort label-3712
SELECT - tab2.col0 / + tab2.col1 + tab2.col0 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f88a6478686a21d9f88befee4ddbf79e
onlyif mysql # use DIV operator for integer division
query I rowsort label-3713
SELECT col1 DIV tab0.col1 + + col0 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-3713
SELECT col1 / tab0.col1 + + col0 AS col2 FROM tab0
----
25
36
90
query I rowsort
SELECT + tab1.col0 * col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT col0 + tab1.col2 * col1 AS col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3716
SELECT + col0 DIV - col0 + - col1 col2 FROM tab0
----
-87
-92
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3716
SELECT + col0 / - col0 + - col1 col2 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT ALL - col2 - - cor0.col0 AS col0 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3718
SELECT + cor0.col0 * col1 DIV + col2 + col2 FROM tab1 AS cor0
----
106
55
68
skipif mysql # not compatible
query I rowsort label-3718
SELECT + cor0.col0 * col1 / + col2 + col2 FROM tab1 AS cor0
----
106
55
68
query I rowsort
SELECT DISTINCT col1 * + col0 + col0 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2 cor0 CROSS JOIN tab0 WHERE NOT NULL >= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3721
SELECT cor0.col2 DIV + col2 AS col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3721
SELECT cor0.col2 / + col2 AS col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT cor0.col1 + col2 * cor0.col0 * - col0 FROM tab0 AS cor0
----
-1128
-18922
-649431
query I rowsort
SELECT col1 + - col2 * - col0 + - col0 FROM tab1 cor0
----
185
3594
7613
query I rowsort
SELECT - cor0.col0 * col0 + + col2 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL - 17 * + col2 AS col2 FROM tab0
----
-1394
-17
-561
query I rowsort
SELECT - col0 - - cor0.col2 * col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + col1 + - 97 * col1 FROM tab0 AS cor0
----
-8256
-8736
-9312
query I rowsort
SELECT - + cor0.col2 * - col0 + - col0 FROM tab1 AS cor0
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT col2 + - 17 AS col0 FROM tab1 AS cor0
----
37
40
79
query I rowsort
SELECT DISTINCT + + col2 + + 56 * - col2 FROM tab0 AS cor0
----
-1815
-4510
-55
query I rowsort
SELECT DISTINCT - col2 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3733
SELECT cor0.col0 DIV ( col1 ) + + col0 col2 FROM tab2 AS cor0
----
7
79
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3733
SELECT cor0.col0 / ( col1 ) + + col0 col2 FROM tab2 AS cor0
----
7
79
83
query I rowsort
SELECT ALL col2 + - 63 FROM tab0 AS cor0
----
-30
-62
19
query I rowsort
SELECT DISTINCT - - col0 * col0 + + col0 + col1 AS col0 FROM tab2 AS cor0
----
6221
6337
87
query I rowsort
SELECT ALL - col0 * - col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col0 col0 FROM tab2 WHERE NULL <> - col2 + col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT + tab1.col2 DIV - col1 col1 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3738
SELECT + tab1.col2 / - col1 col1 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT col2 - + col2 * col1 AS col1 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT + col0 * col2 + - col0 + + col1 AS col1 FROM tab0
----
7300
854
97
query I rowsort
SELECT DISTINCT - col1 + - col2 * col0 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT + col0 * tab1.col2 - + col0 AS col1 FROM tab1
----
159
3584
7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 - col2 col0 FROM tab2
----
-20
41
52
query I rowsort
SELECT tab0.col2 * - col1 - col0 FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT ALL col2 + - col0 AS col0 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3746
SELECT col2 + col2 DIV - col2 AS col2 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-3746
SELECT col2 + col2 / - col2 AS col2 FROM tab1
----
53
56
95
query I rowsort
SELECT + col1 + col1 * - col0 - tab0.col0 * + col1 FROM tab0 WHERE NOT + col2 * + col1 NOT IN ( + col2 * + col0 )
----
query I rowsort
SELECT col0 * col0 + tab2.col2 AS col2 FROM tab2 WHERE NOT - col1 NOT IN ( + col2 + + col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 * + col1 IN ( + col2 + col0 - - col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 + col0 + - col0 col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT + tab0.col0 * - col0 + col1 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT - 85 FROM tab1, tab2 AS cor0
----
-85
query I rowsort
SELECT 46 * col2 FROM tab0 AS cor0
----
1518
3772
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-3754
SELECT DISTINCT - col1 * tab0.col2 + col2 DIV col0 FROM tab0
----
-2837
-7462
-97
skipif mysql # not compatible
query I rowsort label-3754
SELECT DISTINCT - col1 * tab0.col2 + col2 / col0 FROM tab0
----
-2837
-7462
-97
query I rowsort
SELECT col0 * - col2 - tab1.col0 AS col2 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT ALL + col1 * - tab0.col2 + tab0.col1 * + col0 FROM tab0
----
-774
3298
637
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 IN ( col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT + col0 + - ( col0 ) * + col1 * - col2 FROM tab2 AS cor0
----
119730
51113
5866
onlyif mysql # use DIV operator for integer division
query I rowsort label-3759
SELECT cor0.col2 DIV - col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-3759
SELECT cor0.col2 / - col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT + cor0.col0 * - 30 FROM tab1 AS cor0
----
-1920
-2400
-90
query I rowsort
SELECT + cor0.col2 + col2 * - col1 AS col0 FROM tab1 cor0
----
-1152
-1350
-513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3762
SELECT + CAST( NULL AS SIGNED ) + 3 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3762
SELECT + CAST ( NULL AS INTEGER ) + 3 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - col1 + 21 * + col2 FROM tab1 AS cor0
----
1108
1187
2003
query I rowsort
SELECT DISTINCT - - col2 * + cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + cor0.col1 * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL - col0 + col0 * + col2 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT - col1 * 65 FROM tab1 cor0
----
-1690
-650
-845
query I rowsort
SELECT DISTINCT col1 + col1 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT ALL - cor0.col1 + ( + col0 ) FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT cor0.col0 + - col1 * + 89 * col1 FROM tab1 AS cor0
----
-14961
-60161
-8836
onlyif mysql # use DIV operator for integer division
query I rowsort label-3771
SELECT DISTINCT + 36 DIV ( - col1 ) FROM tab2 cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3771
SELECT DISTINCT + 36 / ( - col1 ) FROM tab2 cor0
----
-1
-2
0
query I rowsort
SELECT DISTINCT 56 FROM tab1, tab1 AS cor0
----
56
query I rowsort
SELECT 79 * col1 FROM tab1 cor0
----
1027
2054
790
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 * + col0 + col1 * 77 FROM tab1 AS cor0
----
10750
208706
738281
query I rowsort
SELECT cor0.col0 + col1 * col1 AS col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT ALL - - col1 * col1 - col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT 22 FROM tab2 AS cor0
----
22
query I rowsort
SELECT - cor1.col0 - 90 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 55b0bc449a81226e7add1c00cf47d8f6
query I rowsort
SELECT DISTINCT - - 50 AS col2 FROM tab1 cor0
----
50
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to ac17da4547aa356439ff11568174588c
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab1 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort
SELECT col0 * col0 + - CAST ( - col1 AS REAL ) AS col0 FROM tab1
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + + 74 * - 75 * col1 col2 FROM tab1 cor0
----
-144246
-55443
-72054
query I rowsort
SELECT + 78 AS col2 FROM tab2
----
78
78
78
query I rowsort
SELECT DISTINCT + tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
24
35
89
query I rowsort
SELECT + - col1 * + col0 * + 73 AS col1 FROM tab0 AS cor0
----
-150672
-247835
-591227
query I rowsort
SELECT + 23 + tab1.col1 FROM tab1
----
33
36
49
query I rowsort
SELECT - col0 - + col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL - col2 + col1 * - tab0.col1 FROM tab0
----
-7429
-8363
-9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-3790
SELECT ALL + col0 DIV - col1 + - col0 * 35 + col1 FROM tab0
----
-1128
-3024
-754
skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + col0 / - col1 + - col0 * 35 + col1 FROM tab0
----
-1128
-3024
-754
query I rowsort
SELECT ALL - col2 + col2 + - 33 * col0 AS col0 FROM tab0 AS cor0
----
-1155
-2937
-792
query I rowsort
SELECT cor0.col0 * - 43 FROM tab0 AS cor0
----
-1032
-1505
-3827
query I rowsort
SELECT DISTINCT cor0.col1 * cor0.col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3794
SELECT ALL col2 * - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL col2 * - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) - col1 col0 FROM tab0
----
0
query I rowsort
SELECT col2 * col0 * - col2 + col0 AS col0 FROM tab2
----
-113997
-5096
-52650
query I rowsort
SELECT - 91 * - col2 FROM tab2
----
2366
2457
3458
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3798
SELECT ALL CAST( NULL AS DECIMAL ) + 58 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3798
SELECT ALL CAST ( NULL AS REAL ) + 58 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 91 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6ec4feac5c635ab8e5da71006896acab
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 - - ( - tab0.col0 ) * + 54 col1 FROM tab0
----
-1246
-1840
-4756
query I rowsort
SELECT 20 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT ALL + - col0 - - col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT 59 + + 7 FROM tab0 cor0
----
66
66
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-3804
SELECT DISTINCT - - cor0.col2 DIV + 65 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT - - cor0.col2 / + 65 AS col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT ALL col0 + 27 - - col0 AS col0 FROM tab0 AS cor0
----
205
75
97
query I rowsort
SELECT 37 + + 47 AS col0 FROM tab2
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3807
SELECT col0 DIV 71 AS col2 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-3807
SELECT col0 / 71 AS col2 FROM tab2
----
0
1
1
query I rowsort
SELECT + - cor0.col2 - ( col1 ) AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + - 97 AS col1 FROM tab0 AS cor0
----
-97
query I rowsort
SELECT ALL + 68 * - col0 AS col2 FROM tab2 AS cor0
----
-476
-5304
-5372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + + cor0.col1 col1 FROM tab1 AS cor0
----
52
55
68
query I rowsort
SELECT DISTINCT - col1 + col0 + cor0.col0 * - col1 FROM tab2 AS cor0
----
-1281
-241
-4583
query I rowsort
SELECT DISTINCT - 67 - col0 FROM tab2 AS cor0
----
-145
-146
-74
query I rowsort
SELECT ALL - 36 * + col0 - col2 FROM tab0 AS cor0
----
-1261
-3286
-897
query I rowsort
SELECT ALL + col2 * - col0 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 * 60 col2 FROM tab2 AS cor0
----
413
4602
4661
query I rowsort
SELECT ALL - + cor1.col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL + 53 AS col2 FROM tab0
----
53
53
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 * col1 + + ( col0 ) col1 FROM tab0 AS cor0
----
3722
4002
4206
query I rowsort
SELECT ALL - 62 + - col2 * col1 AS col0 FROM tab2 cor0
----
-1596
-708
-899
query I rowsort
SELECT + + col0 * cor0.col0 + - col2 AS col0 FROM tab0 AS cor0
----
1224
543
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-3822
SELECT ALL + col1 DIV + cor0.col0 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL + col1 / + cor0.col0 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT ALL - 37 + + col2 AS col2 FROM tab1 AS cor0
----
17
20
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-3824
SELECT ALL 43 DIV col1 AS col2 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3824
SELECT ALL 43 / col1 AS col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col1 - col2 * - col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - 62 * col1 + - 38 FROM tab0 AS cor0
----
-5370
-5680
-6052
query I rowsort
SELECT ALL - ( + cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
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 DISTINCT + ( - col0 ) + - 7 FROM tab2 AS cor0
----
-14
-85
-86
query I rowsort
SELECT cor0.col1 * col0 + - col0 * 81 FROM tab2 AS cor0
----
-1716
-350
-5056
query I rowsort
SELECT ALL - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-3833
SELECT ALL 57 * col0 DIV col1 + 6 AS col2 FROM tab1 AS cor0
----
12
356
370
skipif mysql # not compatible
query I rowsort label-3833
SELECT ALL 57 * col0 / col1 + 6 AS col2 FROM tab1 AS cor0
----
12
356
370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3834
SELECT + CAST( NULL AS DECIMAL ) * col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3834
SELECT + CAST ( NULL AS REAL ) * col0 / - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor1.col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
-10
-13
-26
query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2
----
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * - 14 col1 FROM tab2 AS cor0
----
84
84
84
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to e486ce227b61d9db6f8414f9d6361094
query I rowsort
SELECT ALL cor0.col1 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - cor0.col1 col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - 93 * cor0.col0 FROM tab0 AS cor0
----
-2232
-3255
-8277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * col1 + - cor0.col2 col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT + col1 * col2 + 96 FROM tab1 AS cor0
----
1344
1500
666
query I rowsort
SELECT col1 + - ( - col2 ) FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + - cor0.col0 * col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - col1 - - cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT + col2 + 11 * col0 FROM tab2 AS cor0
----
104
884
907
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col2 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT 42 + col0 * - 75 FROM tab0
----
-1758
-2583
-6633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3850
SELECT DISTINCT 14 + col1 - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-3850
SELECT DISTINCT 14 + col1 - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT 13 + col2 FROM tab2
----
39
40
51
query I rowsort
SELECT + 43 * col2 + - ( col2 + + col1 ) AS col0 FROM tab2
----
1033
1103
1579
query I rowsort
SELECT ALL cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3854
SELECT - col2 DIV ( tab0.col0 + + col1 ) col1 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3854
SELECT - col2 / ( tab0.col0 + + col1 ) col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + col0 * 72 * 28 FROM tab0 AS cor0
----
179424
48384
70560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3856
SELECT DISTINCT cor0.col0 DIV col0 AS col1 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-3856
SELECT DISTINCT cor0.col0 / col0 AS col1 FROM tab1 AS cor0
----
1
query I rowsort
SELECT + cor0.col2 * 7 * + cor0.col1 + col2 - - 22 AS col2 FROM tab1 cor0
----
4069
8854
9904
query I rowsort
SELECT DISTINCT col2 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT cor0.col2 * col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT cor0.col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT tab1.col0 * 81 FROM tab1
----
243
5184
6480
query I rowsort
SELECT + col1 * + col2 + - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - col2 * + col2 - - col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT DISTINCT 43 * - cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
-3665
-3831
-4170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col0 ) * col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 + col0 - + cor0.col1 * - col1 col2 FROM tab2 cor0
----
3568
377
977
query I rowsort
SELECT + + col2 + col0 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL col2 * 46 AS col1 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT DISTINCT - tab1.col0 + col2 AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL + cor0.col1 AS col1 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL col2 * + tab0.col1 - col2 FROM tab0
----
2805
7380
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3872
SELECT col2 DIV 71 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3872
SELECT col2 / 71 FROM tab2
----
0
0
0
query I rowsort
SELECT 63 * 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d8d034b1531943053b5b862278d7301
query I rowsort
SELECT - 71 AS col0 FROM tab2
----
-71
-71
-71
query I rowsort
SELECT 56 * + col2 AS col2 FROM tab0 AS cor0
----
1848
4592
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3876
SELECT + col1 * col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3876
SELECT + col1 * col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col1 FROM tab0 AS cor0
----
56
56
56
query I rowsort
SELECT - col0 + 94 AS col0 FROM tab2
----
15
16
87
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0, tab0 AS cor0, tab1 AS cor1
----
972 values hashing to 9af67d6f98010464af5d560bf949d487
query I rowsort
SELECT col1 * col1 - + col1 FROM tab1
----
156
650
90
query I rowsort
SELECT - ( + 38 ) FROM tab1
----
-38
-38
-38
query I rowsort
SELECT DISTINCT tab1.col2 + + col1 * - col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT ALL - + col0 + + col0 * - col0 AS col2 FROM tab1 cor0
----
-12
-4160
-6480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4
query I rowsort
SELECT - + 86 AS col2 FROM tab1 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT - 41 * col2 + + col2 FROM tab2
----
-1040
-1080
-1520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col0 FROM tab2
----
118
34
62
query I rowsort
SELECT DISTINCT - cor0.col0 + - cor0.col1 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-3889
SELECT DISTINCT - + col0 DIV col2 + cor0.col2 FROM tab1 AS cor0
----
54
56
96
skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT - + col0 / col2 + cor0.col2 FROM tab1 AS cor0
----
54
56
96
query I rowsort
SELECT - col1 + + tab2.col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT ALL + - col0 + + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT + - 75 * + col1 AS col1 FROM tab1 AS cor0
----
-1950
-750
-975
onlyif mysql # use DIV operator for integer division
query I rowsort label-3893
SELECT + 42 DIV + cor0.col2 FROM tab0 AS cor0
----
0
1
42
skipif mysql # not compatible
query I rowsort label-3893
SELECT + 42 / + cor0.col2 FROM tab0 AS cor0
----
0
1
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-3894
SELECT DISTINCT - col0 DIV + col2 + - col1 * col0 FROM tab1 AS cor0
----
-1040
-641
-78
skipif mysql # not compatible
query I rowsort label-3894
SELECT DISTINCT - col0 / + col2 + - col1 * col0 FROM tab1 AS cor0
----
-1040
-641
-78
query I rowsort
SELECT + 11 * + col1 AS col1 FROM tab0 cor0
----
1001
1067
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 3 col1 FROM tab1 AS cor0
----
3
3
3
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT cor0.col1 * - col0 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + 53 * - col1 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT DISTINCT - + 13 + - col2 + - col2 * - 68 AS col0 FROM tab0 AS cor0
----
2198
54
5481
query I rowsort
SELECT 12 * - col0 FROM tab1 AS cor0
----
-36
-768
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT cor0.col2 DIV + col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3902
SELECT cor0.col2 / + col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - col0 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
114076
5103
52728
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 DISTINCT + - 14 * col0 + + cor0.col0 FROM tab0 AS cor0
----
-1157
-312
-455
query I rowsort
SELECT 18 * col0 AS col2 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT ALL col1 * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL col1 + + 10 + 20 FROM tab1
----
40
43
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-3909
SELECT DISTINCT + cor0.col0 DIV 9 FROM tab2 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-3909
SELECT DISTINCT + cor0.col0 / 9 FROM tab2 AS cor0
----
0
8
query I rowsort
SELECT DISTINCT col1 + - col2 AS col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL col0 + + col0 AS col2 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3912
SELECT ALL - + col2 * CAST( col2 * col2 AS SIGNED ) - + col0 FROM tab2 AS cor0
----
-17654
-19690
-54951
skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - + col2 * CAST ( col2 * col2 AS INTEGER ) - + col0 FROM tab2 AS cor0
----
-17654
-19690
-54951
query I rowsort
SELECT DISTINCT - col0 * ( + 43 ) FROM tab2 AS cor0
----
-301
-3354
-3397
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3914
SELECT - col2 + - CAST( NULL AS SIGNED ) * col2 + + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3914
SELECT - col2 + - CAST ( NULL AS INTEGER ) * col2 + + col0 * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + ( 12 ) AS col0 FROM tab2 AS cor0
----
19
90
91
query I rowsort
SELECT col0 - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT + - cor0.col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3918
SELECT ALL - CAST( NULL AS SIGNED ) * + cor0.col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3918
SELECT ALL - CAST ( NULL AS INTEGER ) * + cor0.col2 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col2 * - 24 + col1 AS col2 FROM tab2 cor0
----
-565
-617
-895
query I rowsort
SELECT DISTINCT - - cor0.col2 + 1 AS col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT DISTINCT + + col2 + + col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT DISTINCT - 26 + ( - col1 ) * - col0 FROM tab2 AS cor0
----
1317
191
4576
query I rowsort
SELECT + 36 FROM tab1, tab0 cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 + 87 * - col1 col0 FROM tab1 AS cor0
----
-1128
-2259
-867
query I rowsort
SELECT col0 * cor0.col2 * - col0 - + col2 FROM tab1 AS cor0
----
-233529
-540
-614496
query I rowsort
SELECT ALL + - ( + ( col0 ) ) + ( 5 ) * + col2 FROM tab2 AS cor0
----
111
128
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-3927
SELECT DISTINCT - ( - col1 ) DIV col2 AS col0 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT - ( - col1 ) / col2 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT + ( - col1 ) + - col0 + - 9 * col2 * col1 FROM tab2 cor0
----
-13943
-5910
-7571
onlyif mysql # use DIV operator for integer division
query I rowsort label-3929
SELECT - + col1 * - col2 - - col2 DIV + col0 AS col2 FROM tab1 AS cor0
----
1249
1422
570
skipif mysql # not compatible
query I rowsort label-3929
SELECT - + col1 * - col2 - - col2 / + col0 AS col2 FROM tab1 AS cor0
----
1249
1422
570
query I rowsort
SELECT DISTINCT + ( col0 ) + - col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + - ( col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - - col1 - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * + col1 + cor0.col0 + col0 AS col0 FROM tab0 AS cor0
----
2112
3465
8277
query I rowsort
SELECT DISTINCT - 9 + - 59 * col2 FROM tab0 AS cor0
----
-1956
-4847
-68
query I rowsort
SELECT + col1 * + col0 * col0 + - col0 + + col1 FROM tab2 cor0
----
106035
1543
358937
query I rowsort
SELECT DISTINCT - + 66 - 48 AS col1 FROM tab2 AS cor0
----
-114
query I rowsort
SELECT ALL - + ( cor0.col0 ) * col1 + col1 * col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3938
SELECT + + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3938
SELECT + + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + col1 - 76 AS col0 FROM tab0 AS cor0
----
10
15
21
query I rowsort
SELECT + - col1 + - 9 FROM tab1 cor0
----
-19
-22
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - cor0.col2 ) + + cor0.col0 col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3942
SELECT col2 * + col0 + CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3942
SELECT col2 * + col0 + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - 38 * + 86 + tab2.col0 + CAST ( 5 AS REAL ) col0 FROM tab2
----
-3184
-3185
-3256
query I rowsort
SELECT ALL tab0.col1 + - 9 + col2 AS col2 FROM tab0
----
110
164
89
query I rowsort
SELECT - + col1 * - 60 AS col1 FROM tab2 AS cor0
----
1020
1860
3540
query I rowsort
SELECT 72 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT DISTINCT + col0 * ( + col0 ) + col0 + + col2 FROM tab1 AS cor0
----
4217
6576
66
query I rowsort
SELECT - col0 + col0 * + col0 FROM tab1 AS cor0
----
4032
6
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 * col0 col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + cor0.col2 * cor0.col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3951
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0, tab1 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to ed0ce6de90f51f6f9035da5f66a6f197
onlyif mysql # use DIV operator for integer division
query I rowsort label-3953
SELECT ALL - + col1 DIV + col2 + col1 AS col2 FROM tab0 AS cor0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL - + col1 / + col2 + col1 AS col2 FROM tab0 AS cor0
----
0
84
90
query I rowsort
SELECT 36 + + col1 FROM tab1
----
46
49
62
query I rowsort
SELECT DISTINCT + 29 * - col2 FROM tab0
----
-2378
-29
-957
onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT - tab2.col2 DIV 92 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3956
SELECT - tab2.col2 / 92 AS col1 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3957
SELECT ALL + col0 + col0 DIV + 98 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + col0 + col0 / + 98 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT - tab0.col2 * - 13 + - col1 AS col2 FROM tab0
----
-84
343
975
query I rowsort
SELECT ALL + tab0.col1 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - tab1.col0 * 10 + + 64 - - col0 FROM tab1
----
-512
-656
37
query I rowsort
SELECT DISTINCT col0 - ( ( - col2 ) * col2 + 24 ) FROM tab2
----
1499
712
730
query I rowsort
SELECT + col2 + + col1 * + cor0.col2 AS col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3963
SELECT - + cor0.col0 + - col2 DIV col2 FROM tab1 AS cor0
----
-4
-65
-81
skipif mysql # not compatible
query I rowsort label-3963
SELECT - + cor0.col0 + - col2 / col2 FROM tab1 AS cor0
----
-4
-65
-81
query I rowsort
SELECT col2 * col0 + col2 * tab2.col2 FROM tab2
----
2704
4446
918
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + ( + col2 * - col0 ) col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 AS col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL cor0.col1 + + col1 AS col1 FROM tab1 AS cor0
----
20
26
52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + cor0.col2 col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 91 FROM tab0 cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT tab1.col2 * ( col0 ) + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + tab1.col1 * ( - 34 ) AS col2 FROM tab1
----
-340
-442
-884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3972
SELECT col1 + + CAST( - 41 AS SIGNED ) AS col2 FROM tab0 cor0
----
45
50
56
skipif mysql # not compatible
query I rowsort label-3972
SELECT col1 + + CAST ( - 41 AS INTEGER ) AS col2 FROM tab0 cor0
----
45
50
56
query I rowsort
SELECT - col0 * - 60 FROM tab1 cor0
----
180
3840
4800
query I rowsort
SELECT DISTINCT - col1 * + col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 10 * + col0 FROM tab2 cor0
----
-70
-780
-790
query I rowsort
SELECT DISTINCT - + col0 + ( col0 ) AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3977
SELECT + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-3977
SELECT + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + 93 FROM tab1
----
93
query I rowsort
SELECT - 53 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to 639c30ad80f8147eddb1a5f768a0a5ec
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 12 ) col1 FROM tab2 AS cor0
----
-12
-12
-12
query I rowsort
SELECT + + 87 * - col2 - col1 AS col2 FROM tab1 AS cor0
----
-4724
-4969
-8365
query I rowsort
SELECT + 71 AS col1 FROM tab0 AS cor0
----
71
71
71
query I rowsort
SELECT - 91 FROM tab2
----
-91
-91
-91
query I rowsort
SELECT DISTINCT 76 FROM tab2, tab0, tab0 AS cor0
----
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 * - 45 col0 FROM tab2 cor0
----
-207090
-60435
-9765
query I rowsort
SELECT DISTINCT 20 + cor1.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
37
51
79
query I rowsort
SELECT + 58 * col1 FROM tab1 AS cor0
----
1508
580
754
query I rowsort
SELECT DISTINCT 49 * - col0 AS col2 FROM tab1 AS cor0
----
-147
-3136
-3920
query I rowsort
SELECT - - 3 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
21
234
237
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col2 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3991
SELECT DISTINCT 19 + - col0 * CAST( - col0 * col2 + col0 AS SIGNED ) col1 FROM tab0 cor0
----
18451
19
641620
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3991
SELECT DISTINCT 19 + - col0 * CAST ( - col0 * col2 + col0 AS INTEGER ) col1 FROM tab0 cor0
----
18451
19
641620
query I rowsort
SELECT - - cor0.col1 * - col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT col1 + - col1 * col1 * col2 - - col1 AS col2 FROM tab1 AS cor0
----
-16198
-36452
-5680
query I rowsort
SELECT ALL cor0.col1 + - col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col1 * col2 * 24 AS col1 FROM tab1 AS cor0
----
13680
29952
33696
query I rowsort
SELECT ( tab0.col2 ) AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT - + col2 * - 20 AS col1 FROM tab0 AS cor0
----
1640
20
660
onlyif mysql # use DIV operator for integer division
query I rowsort label-3998
SELECT DISTINCT - col0 * - cor0.col2 * col1 + + col0 * cor0.col1 DIV + col2 + - col0 FROM tab0 AS cor0
----
664127
6755
68150
skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT - col0 * - cor0.col2 * col1 + + col0 * cor0.col1 / + col2 + - col0 FROM tab0 AS cor0
----
664127
6755
68150
query I rowsort
SELECT ALL - cor0.col0 * col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col0 - 93 FROM tab2 AS cor0
----
-100
-171
-172
query I rowsort
SELECT - col2 * ( 10 ) AS col0 FROM tab2 AS cor0
----
-260
-270
-380
onlyif mysql # use DIV operator for integer division
query I rowsort label-4002
SELECT DISTINCT - col1 DIV col0 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-4002
SELECT DISTINCT - col1 / col0 FROM tab2
----
-4
0
query I rowsort
SELECT DISTINCT 70 + - col1 * col1 AS col0 FROM tab1 AS cor0
----
-30
-606
-99
query I rowsort
SELECT DISTINCT + - col2 + 51 AS col0 FROM tab1 AS cor0
----
-3
-45
-6
query I rowsort
SELECT 6 * + col1 + col1 FROM tab2 AS cor0
----
119
217
413
query I rowsort
SELECT ALL + 57 * 67 FROM tab1 cor0
----
3819
3819
3819
query I rowsort
SELECT col0 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT + - col2 * + col2 + - cor0.col0 * + 62 AS col1 FROM tab2 cor0
----
-1163
-5512
-6342
query I rowsort
SELECT - 74 * col1 FROM tab0 AS cor0
----
-6364
-6734
-7178
query I rowsort
SELECT cor1.col0 AS col2 FROM tab2, tab1 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - col1 * + col1 * 73 AS col2 FROM tab1
----
-12337
-49348
-7300
query I rowsort
SELECT + 30 + + cor0.col0 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to d67491a724a68896282c9b49fed0906d
query I rowsort
SELECT ( 57 ) * - col2 AS col0 FROM tab0 AS cor0
----
-1881
-4674
-57
query I rowsort
SELECT + col0 * - cor0.col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + col1 + + 64 * cor0.col1 FROM tab1 AS cor0
----
1690
650
845
query I rowsort
SELECT ALL - col0 * - col0 + col2 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-4017
SELECT cor0.col1 + - 81 DIV cor0.col0 AS col2 FROM tab0 cor0
----
83
91
95
skipif mysql # not compatible
query I rowsort label-4017
SELECT cor0.col1 + - 81 / cor0.col0 AS col2 FROM tab0 cor0
----
83
91
95
query I rowsort
SELECT ALL - + col1 + + ( - col1 ) FROM tab2 AS cor0
----
-118
-34
-62
query I rowsort
SELECT ALL + 23 AS col0 FROM tab2
----
23
23
23
query I rowsort
SELECT DISTINCT - + col1 * col1 + + col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-4021
SELECT ALL - col1 + col0 DIV 9 FROM tab0 AS cor0
----
-82
-84
-94
skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - col1 + col0 / 9 FROM tab0 AS cor0
----
-82
-84
-94
query I rowsort
SELECT ALL + col2 + 80 FROM tab1 AS cor0
----
134
137
176
onlyif mysql # use DIV operator for integer division
query I rowsort label-4023
SELECT DISTINCT + col1 * - ( + cor0.col0 ) + - col0 * cor0.col0 DIV - col2 FROM tab1 cor0
----
-569
-78
-974
skipif mysql # not compatible
query I rowsort label-4023
SELECT DISTINCT + col1 * - ( + cor0.col0 ) + - col0 * cor0.col0 / - col2 FROM tab1 cor0
----
-569
-78
-974
query I rowsort
SELECT + + col0 * 44 + - col1 * - col0 * + cor0.col0 FROM tab1 AS cor0
----
366
43776
86720
query I rowsort
SELECT ALL + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL col0 + + col1 - + col0 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4027
SELECT ( col1 ) DIV CAST( col0 + - col2 AS SIGNED ) FROM tab0
----
-9
13
2
skipif mysql # not compatible
query I rowsort label-4027
SELECT ( col1 ) / CAST ( col0 + - col2 AS INTEGER ) FROM tab0
----
-9
13
2
query I rowsort
SELECT ALL + ( - col0 ) + ( col0 ) - - col1 AS col0 FROM tab1
----
10
13
26
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2, tab2 cor1, tab1, tab2 AS cor2
----
3645 values hashing to 6726a15019c52908f1f1d0df0cd4c1b8
query I rowsort
SELECT ALL - col2 * 69 AS col0 FROM tab1 AS cor0
----
-3726
-3933
-6624
onlyif mysql # use DIV operator for integer division
query I rowsort label-4031
SELECT DISTINCT col0 DIV 76 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT col0 / 76 FROM tab1 cor0
----
0
1
query I rowsort
SELECT col0 * 91 FROM tab1 AS cor0
----
273
5824
7280
onlyif mysql # use DIV operator for integer division
query I rowsort label-4033
SELECT + cor0.col1 + - ( + 85 ) DIV col2 FROM tab1 AS cor0
----
13
25
9
skipif mysql # not compatible
query I rowsort label-4033
SELECT + cor0.col1 + - ( + 85 ) / col2 FROM tab1 AS cor0
----
13
25
9
query I rowsort
SELECT DISTINCT - col1 + 1 * col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + - col1 * - col0 + ( + col0 ) FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL col0 * + 7 + col2 AS col2 FROM tab2
----
572
591
76
query I rowsort
SELECT - col1 * - ( + col1 * - col1 ) + col2 FROM tab0
----
-636023
-753489
-912672
query I rowsort
SELECT ALL + 41 FROM tab1
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) col1 FROM tab2
----
17
31
59
query I rowsort
SELECT - 27 + col2 * col1 FROM tab0
----
2811
70
7435
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + col0 + col0 col0 FROM tab0
----
1157
312
455
query I rowsort
SELECT 96 AS col0 FROM tab0
----
96
96
96
query I rowsort
SELECT + + col1 + - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col1 - + cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT + col2 * - col2 * - col2 + col0 AS col2 FROM tab2
----
17654
19690
54951
query I rowsort
SELECT DISTINCT 92 + col0 AS col1 FROM tab0
----
116
127
181
query I rowsort
SELECT - col1 + col1 + col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - col1 * - col2 AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col1 + col0 + col0 FROM tab2 cor0
----
-17
141
97
query I rowsort
SELECT ALL ( + col0 + tab0.col1 ) * col2 AS col2 FROM tab0
----
132
14760
3630
query I rowsort
SELECT ALL + 71 * + tab2.col1 * tab2.col1 FROM tab2
----
20519
247151
68231
query I rowsort
SELECT DISTINCT 13 FROM tab2 AS cor0
----
13
query I rowsort
SELECT ALL col2 - + col2 AS col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - - 85 FROM tab1 AS cor0
----
85
85
85
query I rowsort
SELECT ALL - + ( cor0.col1 ) + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT ALL + col2 DIV col0 + col1 AS col0 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + col2 / col0 + col1 AS col0 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT 94 AS col1 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT - cor0.col1 + - cor0.col1 AS col2 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT ALL + 86 * col0 FROM tab1 AS cor0
----
258
5504
6880
query I rowsort
SELECT ALL - col1 * + cor0.col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
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-4065
SELECT DISTINCT - - col2 * col0 DIV - cor0.col0 + col0 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
106059
1492
358930
skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT - - col2 * col0 / - cor0.col0 + col0 * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
106059
1492
358930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col0 FROM tab0 AS cor0
----
119
173
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4067
SELECT ALL - - cor0.col1 * - col2 * col2 - cor0.col0 * col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-119888
-32554
-75819
skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL - - cor0.col1 * - col2 * col2 - cor0.col0 * col0 / col0 AS col1 FROM tab1 AS cor0
----
-119888
-32554
-75819
query I rowsort
SELECT - - cor0.col1 * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - col1 * col0 - - col0 * - col0 FROM tab2 cor0
----
-10686
-266
-7584
query I rowsort
SELECT - - cor0.col0 - cor0.col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 - - col2 FROM tab1
----
108
114
192
query I rowsort
SELECT DISTINCT - col2 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT 13 * col0 AS col2 FROM tab1 cor0
----
1040
39
832
query I rowsort
SELECT DISTINCT - ( ( cor0.col2 ) ) * - col2 AS col1 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - 67 * - 48 AS col0 FROM tab2
----
3216
3216
3216
query I rowsort
SELECT - 27 FROM tab1, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT ALL ( + col1 ) * cor0.col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT + - ( + col0 ) + + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT 12 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT ALL col2 * - ( col2 ) + col0 + col2 FROM tab1
----
-2859
-3128
-9040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4083
SELECT - ( + col0 ) DIV + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4083
SELECT - ( + col0 ) / + cor0.col0 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4084
SELECT DISTINCT - ( + col2 ) + col2 DIV col2 AS col0 FROM tab0 cor0
----
-32
-81
0
skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT - ( + col2 ) + col2 / col2 AS col0 FROM tab0 cor0
----
-32
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * col0 col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + + col1 * cor0.col0 AS col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-4087
SELECT DISTINCT ( col2 ) DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT ( col2 ) / - col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT col1 + + col0 * col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT col1 - col2 * - col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT + 19 + - 34 * col0 AS col1 FROM tab2
----
-219
-2633
-2667
query I rowsort
SELECT ALL 91 AS col1 FROM tab2
----
91
91
91
query I rowsort
SELECT ALL - - 72 * - col2 * + col0 FROM tab2 AS cor0
----
-13608
-146016
-216144
query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab2 AS cor0
----
94
query I rowsort
SELECT DISTINCT - 5 + + col1 AS col2 FROM tab1 AS cor0
----
21
5
8
query I rowsort
SELECT + col2 + - col1 * col0 * + col2 FROM tab2 AS cor0
----
-119626
-50996
-5832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col0 col1 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 65 col2 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT - cor0.col1 * col2 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ( + col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + - 59 * col0 FROM tab1 AS cor0
----
-177
-3776
-4720
query I rowsort
SELECT + 32 * 41 + col2 FROM tab2
----
1338
1339
1350
query I rowsort
SELECT 33 * col2 - col2 AS col0 FROM tab0
----
1056
2624
32
query I rowsort
SELECT ( - col2 ) * + col2 * + col1 + col0 AS col1 FROM tab0
----
-611795
-62
-93630
query I rowsort
SELECT ALL - 75 FROM tab1, tab2 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT DISTINCT + 4 FROM tab0, tab1 AS cor0
----
4
query I rowsort
SELECT + 47 FROM tab1, tab2 cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL - cor0.col1 * - cor0.col2 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to f5605ce6cbd6ecc79a4a887488bb6947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4108
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( cor0.col0 ) AS col1 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( cor0.col0 ) AS col1 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL col0 * ( col2 ) * col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT ALL - 78 AS col2 FROM tab1
----
-78
-78
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4111
SELECT ALL + 4 * cor0.col1 DIV 33 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to bb9728ddc3b34110a377a284ddc5b1da
skipif mysql # not compatible
query I rowsort label-4111
SELECT ALL + 4 * cor0.col1 / 33 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to bb9728ddc3b34110a377a284ddc5b1da
onlyif mysql # use DIV operator for integer division
query I rowsort label-4112
SELECT DISTINCT 53 DIV col1 FROM tab1
----
2
4
5
skipif mysql # not compatible
query I rowsort label-4112
SELECT DISTINCT 53 / col1 FROM tab1
----
2
4
5
query I rowsort
SELECT ALL - 22 * col1 FROM tab0
----
-1892
-2002
-2134
query I rowsort
SELECT DISTINCT + tab2.col2 * + tab2.col2 AS col1 FROM tab2, tab0, tab0 cor0
----
1444
676
729
onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT - tab1.col1 * col1 DIV col2 AS col2 FROM tab1
----
-1
-1
-12
skipif mysql # not compatible
query I rowsort label-4115
SELECT - tab1.col1 * col1 / col2 AS col2 FROM tab1
----
-1
-1
-12
query I rowsort
SELECT + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - - 9 FROM tab0 cor0
----
9
9
9
query I rowsort
SELECT ALL 88 * + 35 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 4d82416541c538885d4e07a8e75f7e35
query I rowsort
SELECT col2 * + col2 + 10 * cor0.col1 FROM tab0 cor0
----
1949
7634
971
query I rowsort
SELECT DISTINCT - - 63 AS col1 FROM tab0 AS cor0
----
63
query I rowsort
SELECT - + 44 + + col0 FROM tab2 AS cor0
----
-37
34
35
query I rowsort
SELECT - + col1 * + ( + cor0.col0 ) + - col2 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT ALL col0 * - ( cor0.col0 ) AS col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col0 * ( - col0 ) + + col0 AS col2 FROM tab0 AS cor0
----
1260
600
8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * cor0.col2 + col0 col1 FROM tab0 cor0
----
-1065
-6635
34
query I rowsort
SELECT col0 + col0 * + tab1.col1 FROM tab1
----
1120
704
81
query I rowsort
SELECT col1 + 13 FROM tab0 cor0
----
104
110
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-4128
SELECT DISTINCT tab2.col1 DIV ( + col1 ) + + col0 AS col0 FROM tab2
----
79
8
80
skipif mysql # not compatible
query I rowsort label-4128
SELECT DISTINCT tab2.col1 / ( + col1 ) + + col0 AS col0 FROM tab2
----
79
8
80
query I rowsort
SELECT ALL + col1 * - ( col0 ) * - col2 + col2 FROM tab2
----
119678
51072
5886
query I rowsort
SELECT 94 FROM tab1, tab1 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4131
SELECT col0 + CAST( NULL AS DECIMAL ) * col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4131
SELECT col0 + CAST ( NULL AS REAL ) * col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + - cor0.col1 + col0 * 0 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4133
SELECT DISTINCT - CAST( + 60 AS SIGNED ) col0 FROM tab1, tab2 AS cor0
----
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT - CAST ( + 60 AS INTEGER ) col0 FROM tab1, tab2 AS cor0
----
-60
query I rowsort
SELECT col2 * + col2 - - tab2.col2 * + col0 FROM tab2
----
2704
4446
918
query I rowsort
SELECT + tab0.col1 - col2 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL 41 FROM tab2, tab0 AS cor0
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e
query I rowsort
SELECT col2 * - ( cor0.col2 ) + - col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT - ( col0 ) * col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4139
SELECT CAST( col2 AS SIGNED ) + cor0.col2 * 59 AS col1 FROM tab0 AS cor0
----
1980
4920
60
skipif mysql # not compatible
query I rowsort label-4139
SELECT CAST ( col2 AS INTEGER ) + cor0.col2 * 59 AS col1 FROM tab0 AS cor0
----
1980
4920
60
query I rowsort
SELECT ALL + + 96 FROM tab2 AS cor0
----
96
96
96
query I rowsort
SELECT DISTINCT col1 * col2 + col2 * - ( 13 ) AS col0 FROM tab2 AS cor0
----
1196
152
486
query I rowsort
SELECT - col2 * + 72 FROM tab2 AS cor0
----
-1872
-1944
-2736
query I rowsort
SELECT - + 68 * 58 AS col2 FROM tab0 cor0
----
-3944
-3944
-3944
query I rowsort
SELECT 77 AS col2 FROM tab2 AS cor0
----
77
77
77
query I rowsort
SELECT + - 73 * col2 AS col0 FROM tab0 AS cor0
----
-2409
-5986
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 * + col2 col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4147
SELECT DISTINCT + 85 + - col0 + + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
-3
147
63
skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT + 85 + - col0 + + col1 / col2 AS col0 FROM tab0 AS cor0
----
-3
147
63
query I rowsort
SELECT col1 + col2 * - ( 32 ) AS col0 FROM tab1 AS cor0
----
-1702
-1814
-3059
query I rowsort
SELECT - 93 FROM tab2 cor0
----
-93
-93
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4150
SELECT + - 40 + + col2 - + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-24
-47
11
skipif mysql # not compatible
query I rowsort label-4150
SELECT + - 40 + + col2 - + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-24
-47
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-4151
SELECT + col1 DIV col2 + CAST( ( col0 ) AS SIGNED ) DIV + col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4151
SELECT + col1 / col2 + CAST ( ( col0 ) AS INTEGER ) / + col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT - ( col1 ) * col2 + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1331
-1432
-617
query I rowsort
SELECT - col2 + + col1 * col1 * ( + col2 ) FROM tab0 AS cor0
----
244035
678960
9408
query I rowsort
SELECT DISTINCT + tab0.col2 * col0 + - tab0.col0 AS col2 FROM tab0
----
0
7209
768
query I rowsort
SELECT + col2 + + col1 + col0 AS col0 FROM tab2
----
134
163
65
query I rowsort
SELECT ALL + - col0 * - col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL + 11 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 69116737f3f57e2e3273f6dbb04d036c
query I rowsort
SELECT DISTINCT + ( tab1.col0 ) * + col0 AS col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT + - col0 * + cor0.col0 + + 72 * col2 FROM tab0 AS cor0
----
-1153
-2017
1800
query I rowsort
SELECT DISTINCT + + cor0.col2 * 14 AS col0 FROM tab2 cor0
----
364
378
532
query I rowsort
SELECT DISTINCT 64 * col1 * col1 + 55 + tab0.col2 FROM tab0
----
473432
530121
602232
onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT DISTINCT - tab1.col2 DIV col1 col2 FROM tab1
----
-2
-5
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4162
SELECT DISTINCT - tab1.col2 / col1 col2 FROM tab1
----
-2
-5
-7
query I rowsort
SELECT 37 * col0 - ( col0 + - cor0.col2 ) AS col2 FROM tab0 AS cor0
----
1261
3286
897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 45 * + col1 col1 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT 22 + col0 FROM tab1 cor0
----
102
25
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * + col2 col1 FROM tab2
----
-416
-432
-608
onlyif mysql # use DIV operator for integer division
query I rowsort label-4168
SELECT 14 DIV + col2 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4168
SELECT 14 / + col2 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - 94 * + col1 + col0 FROM tab2
----
-1519
-2907
-5468
query I rowsort
SELECT - 97 * col1 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT ALL - 63 * col1 AS col0 FROM tab0 AS cor0
----
-5418
-5733
-6111
query I rowsort
SELECT ALL - col2 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4173
SELECT DISTINCT + col0 DIV + cor0.col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4173
SELECT DISTINCT + col0 / + cor0.col2 FROM tab0 cor0
----
0
1
35
query I rowsort
SELECT ALL - col2 * cor0.col1 + col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + col1 + - ( 25 * col0 ) AS col0 FROM tab1 cor0
----
-1590
-1987
-49
query I rowsort
SELECT + col0 - + 52 FROM tab1 AS cor0
----
-49
12
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4177
SELECT DISTINCT + col2 * + 44 + col2 * + col1 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
245520
682650
9453
skipif mysql # not compatible
query I rowsort label-4177
SELECT DISTINCT + col2 * + 44 + col2 * + col1 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
245520
682650
9453
onlyif mysql # use DIV operator for integer division
query I rowsort label-4178
SELECT - col1 + - col0 DIV col1 FROM tab1 AS cor0
----
-16
-19
-26
skipif mysql # not compatible
query I rowsort label-4178
SELECT - col1 + - col0 / col1 FROM tab1 AS cor0
----
-16
-19
-26
query I rowsort
SELECT DISTINCT - cor0.col0 + 32 AS col2 FROM tab0 AS cor0
----
-3
-57
8
query I rowsort
SELECT ALL + cor0.col0 * col2 + col0 AS col2 FROM tab1 cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4181
SELECT DISTINCT - cor0.col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT - cor0.col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col2 - - 89 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT DISTINCT col1 - - 53 AS col1 FROM tab0 AS cor0
----
139
144
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-4184
SELECT ALL + col1 DIV col1 col0 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL + col1 / col1 col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - 94 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
query I rowsort
SELECT ALL col0 * col1 - + col0 AS col1 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - + col0 + + cor0.col2 * - col0 FROM tab2 AS cor0
----
-196
-2106
-3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT col0 DIV cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-4188
SELECT col0 / cor0.col1 AS col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL ( col1 ) * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL + 62 + + 51 FROM tab2 AS cor0
----
113
113
113
query I rowsort
SELECT DISTINCT + + 80 * - 88 FROM tab1 AS cor0
----
-7040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4192
SELECT ALL + CAST( + col2 AS SIGNED ) DIV col1 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4192
SELECT ALL + CAST ( + col2 AS INTEGER ) / col1 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT + ( 55 ) AS col2 FROM tab2 AS cor0
----
55
55
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4194
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-4194
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 col2 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + - col0 * - col2 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4197
SELECT DISTINCT col0 DIV ( col0 * + col0 ) + col2 * 87 AS col0 FROM tab1
----
4698
4959
8352
skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT col0 / ( col0 * + col0 ) + col2 * 87 AS col0 FROM tab1
----
4698
4959
8352
query I rowsort
SELECT DISTINCT + col1 + - ( - 40 ) + tab2.col1 FROM tab2
----
102
158
74
query I rowsort
SELECT - col0 - - 23 FROM tab2
----
-55
-56
16
query I rowsort
SELECT ALL - 68 + + col1 AS col1 FROM tab2 AS cor0
----
-37
-51
-9
query I rowsort
SELECT DISTINCT ( - 9 ) FROM tab1
----
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + + tab0.col2 col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 57351d452a382e227a12f019d3a3f0c9
query I rowsort
SELECT - cor0.col0 * col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - - col2 * col2 * col0 FROM tab2 AS cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-4205
SELECT + 80 + col1 DIV + ( 50 ) FROM tab0 AS cor0
----
81
81
81
skipif mysql # not compatible
query I rowsort label-4205
SELECT + 80 + col1 / + ( 50 ) FROM tab0 AS cor0
----
81
81
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-4206
SELECT - col0 DIV cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4206
SELECT - col0 / cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - 71 FROM tab2 AS cor0
----
71
71
71
query I rowsort
SELECT ALL + 77 * 75 FROM tab2
----
5775
5775
5775
query I rowsort
SELECT ALL ( col2 * col1 + 28 ) AS col2 FROM tab1
----
1276
1432
598
query I rowsort
SELECT - + cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col1 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + + cor0.col1 * col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - 18 FROM tab0 AS cor0
----
-18
-18
-18
query I rowsort
SELECT + col1 * col2 * + col0 FROM tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT ALL + - 78 FROM tab1 cor0
----
-78
-78
-78
query I rowsort
SELECT DISTINCT + col0 * 63 + col0 AS col0 FROM tab2 AS cor0
----
448
4992
5056
query I rowsort
SELECT col1 + 41 AS col0 FROM tab0 AS cor0
----
127
132
138
query I rowsort
SELECT DISTINCT + + col0 * - col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 + 18 + cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-342
-6802
-8166
query I rowsort
SELECT + col0 + 27 FROM tab2 AS cor0
----
105
106
34
query I rowsort
SELECT ALL + cor0.col2 + 81 AS col1 FROM tab2 AS cor0
----
107
108
119
query I rowsort
SELECT + + col0 + 29 * col2 AS col0 FROM tab1 AS cor0
----
1569
1717
2864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4223
SELECT ALL col0 * CAST( col2 * cor0.col2 AS SIGNED ) FROM tab1 AS cor0
----
207936
737280
8748
skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL col0 * CAST ( col2 * cor0.col2 AS INTEGER ) FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-4224
SELECT DISTINCT col2 DIV col0 col0 FROM tab1 AS cor0
----
0
1
18
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4224
SELECT DISTINCT col2 / col0 col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT ALL - + col1 * col1 + - col1 FROM tab2 AS cor0
----
-306
-3540
-992
query I rowsort
SELECT DISTINCT - - cor0.col2 + cor0.col0 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col1 + 12 AS col2 FROM tab0 AS cor0
----
103
109
98
query I rowsort
SELECT ALL 43 * col2 + col0 * - 9 + col1 FROM tab1 AS cor0
----
1885
2321
3421
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4229
SELECT ALL CAST( NULL AS SIGNED ) * ( cor0.col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL CAST ( NULL AS INTEGER ) * ( cor0.col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 83 * + col0 AS col0 FROM tab1 AS cor0
----
252
5376
6720
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT - ( + col0 ) * - col0 * col0 FROM tab1 AS cor0
----
262144
27
512000
query I rowsort
SELECT DISTINCT - 97 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4234
SELECT - + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4234
SELECT - + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + + col1 * + 91 FROM tab0 AS cor0
----
7859
8363
8828
query I rowsort
SELECT - col0 * ( col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT - 96 * + col1 AS col2 FROM tab2
----
-1632
-2976
-5664
query I rowsort
SELECT - cor0.col1 + - 2 * - col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - + col0 * col2 * + col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT + - col0 + + col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT col2 + + col1 * 58 AS col0 FROM tab1 AS cor0
----
1562
637
850
query I rowsort
SELECT + ( 6 ) FROM tab0 AS cor0
----
6
6
6
query I rowsort
SELECT DISTINCT 15 + - col1 AS col2 FROM tab0 AS cor0
----
-71
-76
-82
query I rowsort
SELECT DISTINCT + col0 * + col1 + col2 * col0 - 32 FROM tab1 AS cor0
----
208
4256
8688
query I rowsort
SELECT + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + cor0.col1 * + col2 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL col1 * col1 + col2 AS col2 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-4248
SELECT ALL + 87 DIV col0 FROM tab0
----
0
2
3
skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + 87 / col0 FROM tab0
----
0
2
3
query I rowsort
SELECT ALL 17 * col1 AS col1 FROM tab0
----
1462
1547
1649
query I rowsort
SELECT DISTINCT - ( col2 + + col1 * - col2 ) AS col1 FROM tab1
----
1152
1350
513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col2 FROM tab2
----
-11
-11
-11
query I rowsort
SELECT ALL col2 * + col0 AS col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT + - 78 * col2 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT - + ( - col2 ) * ( + 65 ) * col1 FROM tab2 AS cor0
----
41990
54405
99710
query I rowsort
SELECT + 7 FROM tab1
----
7
7
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab2.col2 * - ( col1 ) col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT - 17 AS col1 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT DISTINCT 14 * + col1 AS col0 FROM tab2 AS cor0
----
238
434
826
onlyif mysql # use DIV operator for integer division
query I rowsort label-4259
SELECT + col1 DIV cor0.col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-4259
SELECT + col1 / cor0.col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT tab2.col2 * + col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT + 75 * col0 AS col2 FROM tab2
----
525
5850
5925
query I rowsort
SELECT ALL col0 * + 84 AS col1 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT + col2 * + tab0.col2 AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL col2 + - col2 * + 88 + col0 AS col0 FROM tab1
----
-4695
-4895
-8272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 * 93 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1209
-2418
-930
query I rowsort
SELECT - tab2.col2 + + col2 - - col2 * col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT - 0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT ALL + col2 + col2 + - col1 FROM tab1
----
104
179
82
query I rowsort
SELECT + 79 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT col0 * + tab0.col0 * col1 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - col1 * + col0 * 78 + - col2 * + ( 47 * col1 ) + - col2 FROM tab1
----
-139872
-72126
-76767
onlyif mysql # use DIV operator for integer division
query I rowsort label-4272
SELECT DISTINCT col1 DIV col2 + - col2 DIV col0 FROM tab0
----
1
97
skipif mysql # not compatible
query I rowsort label-4272
SELECT DISTINCT col1 / col2 + - col2 / col0 FROM tab0
----
1
97
query I rowsort
SELECT - tab2.col0 - - 7 FROM tab2
----
-71
-72
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4274
SELECT ALL col2 + + col2 DIV + col0 AS col1 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-4274
SELECT ALL col2 + + col2 / + col0 AS col1 FROM tab1
----
57
72
97
query I rowsort
SELECT col0 * - 76 FROM tab2
----
-532
-5928
-6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-4276
SELECT col1 + + ( 46 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
10
13
41
skipif mysql # not compatible
query I rowsort label-4276
SELECT col1 + + ( 46 ) / + col0 AS col2 FROM tab1 AS cor0
----
10
13
41
query I rowsort
SELECT ALL + - col1 + + 33 FROM tab2 AS cor0
----
-26
16
2
query I rowsort
SELECT DISTINCT - col2 * col1 * cor0.col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4279
SELECT - col2 * - CAST( col1 + col0 AS SIGNED ) FROM tab2 cor0
----
1026
3562
3648
skipif mysql # not compatible
query I rowsort label-4279
SELECT - col2 * - CAST ( col1 + col0 AS INTEGER ) FROM tab2 cor0
----
1026
3562
3648
onlyif mysql # use DIV operator for integer division
query I rowsort label-4280
SELECT - col1 DIV 88 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4280
SELECT - col1 / 88 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 32 FROM tab0, tab1 AS cor0
----
-32
query I rowsort
SELECT + 41 + - 87 FROM tab2
----
-46
-46
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 5 + col2 * + col0 ) col1 FROM tab0
----
30
7293
787
query I rowsort
SELECT col0 + - 99 FROM tab1 AS cor0
----
-19
-35
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4285
SELECT CAST( ( col1 ) AS SIGNED ) * col1 FROM tab1 AS cor0
----
100
169
676
skipif mysql # not compatible
query I rowsort label-4285
SELECT CAST ( ( col1 ) AS INTEGER ) * col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - + 69 + - col1 * ( 83 ) FROM tab0 AS cor0
----
-7207
-7622
-8120
query I rowsort
SELECT + col2 + - col2 AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - 67 AS col0 FROM tab1 AS cor0
----
-67
-67
-67
query I rowsort
SELECT + col2 + - cor0.col0 * - col2 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT + - 42 * cor0.col0 + + cor0.col0 * col0 AS col0 FROM tab1 cor0
----
-117
1408
3040
query I rowsort
SELECT 14 * - col1 FROM tab2
----
-238
-434
-826
query I rowsort
SELECT ALL 59 - - cor0.col1 FROM tab1 AS cor0
----
69
72
85
query I rowsort
SELECT - - col1 + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col1 + col1 - col0 * - 8 AS col2 FROM tab0 cor0
----
192
280
712
query I rowsort
SELECT DISTINCT + - col2 * cor0.col2 AS col2 FROM tab2 cor0
----
-1444
-676
-729
query I rowsort
SELECT ALL col0 * - cor0.col2 * + col0 + - col1 AS col2 FROM tab2 AS cor0
----
-1354
-158243
-237175
query I rowsort
SELECT ALL col2 * - col2 + col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - - col0 - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT 20 + - col2 AS col2 FROM tab1 AS cor0
----
-34
-37
-76
query I rowsort
SELECT ALL col2 * 4 + + col1 * col0 FROM tab0 AS cor0
----
2196
3399
8427
query I rowsort
SELECT + col1 + 24 FROM tab2
----
41
55
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-4302
SELECT DISTINCT + - col0 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4302
SELECT DISTINCT + - col0 / - col0 AS col0 FROM tab0 AS cor0
----
1
query I rowsort
SELECT DISTINCT - - ( 82 ) AS col0 FROM tab0 AS cor0
----
82
query I rowsort
SELECT ALL - cor0.col1 + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 + ( 91 ) FROM tab1 AS cor0
----
-2828
-3222
-9205
query I rowsort
SELECT ALL ( 39 ) - - col2 AS col0 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT ALL + - cor0.col1 * + col1 + - col1 * + col0 FROM tab0 AS cor0
----
-12804
-16380
-9460
query I rowsort
SELECT DISTINCT + col1 + 93 FROM tab0 cor0
----
179
184
190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4309
SELECT ALL CAST( 79 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-2054
-2133
-3002
skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL CAST ( 79 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-2054
-2133
-3002
query I rowsort
SELECT DISTINCT col2 * - col2 + col0 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4311
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * cor0.col0 * + col1 + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * cor0.col0 * + col1 + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - 54 AS col2 FROM tab0 AS cor0
----
-54
-54
-54
query I rowsort
SELECT - tab1.col0 + - ( - col0 ) AS col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL 85 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e4cf94cf0cc632acff30ad1dac617cb7
query I rowsort
SELECT DISTINCT - 63 AS col1 FROM tab1 cor0
----
-63
query I rowsort
SELECT - ( ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL cor0.col2 * col1 + col1 + - ( + col2 ) * col0 * col2 FROM tab2 AS cor0
----
-113413
-4235
-51135
query I rowsort
SELECT ALL + - 12 + col1 AS col1 FROM tab0 AS cor0
----
74
79
85
query I rowsort
SELECT ALL - 95 * + 4 AS col1 FROM tab0 AS cor0
----
-380
-380
-380
query I rowsort
SELECT - 59 + col1 FROM tab0 AS cor0
----
27
32
38
query I rowsort
SELECT ALL + 89 * - col1 AS col0 FROM tab0 AS cor0
----
-7654
-8099
-8633
query I rowsort
SELECT DISTINCT cor0.col0 + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + 59 * col1 FROM tab0 AS cor0
----
5074
5369
5723
query I rowsort
SELECT ALL + 40 * cor0.col0 * 75 FROM tab2 AS cor0
----
21000
234000
237000
onlyif mysql # use DIV operator for integer division
query I rowsort label-4325
SELECT DISTINCT cor0.col1 DIV + col1 FROM tab2 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-4325
SELECT DISTINCT cor0.col1 / + col1 FROM tab2 AS cor0
----
1
query I rowsort
SELECT ALL + + 79 * + col2 + 97 * + 22 AS col1 FROM tab1 AS cor0
----
6400
6637
9718
onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT ALL - 15 DIV col2 - 64 AS col2 FROM tab0 AS cor0
----
-64
-64
-79
skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - 15 / col2 - 64 AS col2 FROM tab0 AS cor0
----
-64
-64
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-4328
SELECT DISTINCT col1 + col0 DIV - col0 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-4328
SELECT DISTINCT col1 + col0 / - col0 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT DISTINCT - cor0.col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT 5 * - col0 FROM tab0 AS cor0
----
-120
-175
-445
query I rowsort
SELECT + 4 + + col0 + 64 AS col1 FROM tab0 AS cor0
----
103
157
92
query I rowsort
SELECT ALL - 26 AS col0 FROM tab2 AS cor0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT + ( col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - - col0 + col2 FROM tab1 AS cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-4335
SELECT - col0 + cor0.col1 DIV col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4335
SELECT - col0 + cor0.col1 / col2 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + + 70 - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
2098
259
3072
query I rowsort
SELECT - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4338
SELECT DISTINCT - + col2 DIV + 55 - - col1 AS col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4338
SELECT DISTINCT - + col2 / + 55 - - col1 AS col0 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4339
SELECT ALL + col1 * col1 - col0 DIV col1 FROM tab0 cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + col1 * col1 - col0 / col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT ALL tab0.col1 + col1 * + 47 AS col2 FROM tab0
----
4128
4368
4656
onlyif mysql # use DIV operator for integer division
query I rowsort label-4341
SELECT cor0.col0 DIV col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4341
SELECT cor0.col0 / col0 FROM tab2 cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4342
SELECT - col2 DIV + 15 col1 FROM tab1 AS cor0
----
-3
-3
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4342
SELECT - col2 / + 15 col1 FROM tab1 AS cor0
----
-3
-3
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-4343
SELECT - col2 DIV + col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-4343
SELECT - col2 / + col1 FROM tab2 AS cor0
----
-2
0
0
query I rowsort
SELECT - col0 * ( col2 ) FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col2 + cor0.col1 * 50 AS col2 FROM tab1 AS cor0
----
1354
557
746
query I rowsort
SELECT ALL - col1 * - 26 AS col1 FROM tab2 AS cor0
----
1534
442
806
query I rowsort
SELECT DISTINCT - col0 * col1 + col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT + col2 * col0 + 36 AS col1 FROM tab1
----
198
3684
7716
query I rowsort
SELECT ALL 98 + col2 AS col0 FROM tab1
----
152
155
194
query I rowsort
SELECT DISTINCT 10 * - col1 + 80 FROM tab2
----
-230
-510
-90
query I rowsort
SELECT DISTINCT + col0 * 18 FROM tab1
----
1152
1440
54
query I rowsort
SELECT ALL + 50 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT ALL - col2 * - col0 * + col2 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT col2 * - col2 * - cor0.col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT + + col1 * 63 FROM tab2 AS cor0
----
1071
1953
3717
onlyif mysql # use DIV operator for integer division
query I rowsort label-4356
SELECT col1 + col2 DIV ( col0 ) FROM tab0 cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-4356
SELECT col1 + col2 / ( col0 ) FROM tab0 cor0
----
87
91
97
query I rowsort
SELECT ( col0 ) + col1 * - col0 FROM tab1
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT 31 + + col1 * col1 DIV + col0 + col1 col1 FROM tab1
----
282
42
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4358
SELECT 31 + + col1 * col1 / + col0 + col1 col1 FROM tab1
----
282
42
46
query I rowsort
SELECT DISTINCT - 89 FROM tab1
----
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4360
SELECT ALL 76 + col0 DIV + col0 + - col1 FROM tab1 AS cor0
----
51
64
67
skipif mysql # not compatible
query I rowsort label-4360
SELECT ALL 76 + col0 / + col0 + - col1 FROM tab1 AS cor0
----
51
64
67
query I rowsort
SELECT DISTINCT + 36 + tab1.col0 FROM tab1
----
100
116
39
query I rowsort
SELECT col1 + col2 * tab2.col0 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT + 26 + col1 AS col0 FROM tab2 AS cor0
----
43
57
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT - col1 DIV - col0 AS col1 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4364
SELECT - col1 / - col0 AS col1 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT + - 27 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL - - col2 + col0 * 40 FROM tab0 AS cor0
----
1401
3642
993
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
972 values hashing to d222ba302bd1ddd1c8b2ddf1a4d0b07a
query I rowsort
SELECT 83 * + tab2.col2 + + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 6067871cdde3afd4bbd96214552467b3
query I rowsort
SELECT + cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT + ( - col1 ) + - col2 + + col0 FROM tab0 AS cor0
----
-63
-84
-95
query I rowsort
SELECT + col1 - + col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 * + col1 + - 91 * ( cor0.col0 + col1 ) col0 FROM tab2 cor0
----
-114833
-371423
-4977
query I rowsort
SELECT + 3 AS col2 FROM tab0 cor0
----
3
3
3
query I rowsort
SELECT - col1 + 54 AS col2 FROM tab1 AS cor0
----
28
41
44
query I rowsort
SELECT - + ( col1 ) * col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col0 + - col1 AS col0 FROM tab1 cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4377
SELECT CAST( NULL AS SIGNED ) * - 87 * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4377
SELECT CAST ( NULL AS INTEGER ) * - 87 * - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab0 AS cor2
----
81 values hashing to 2df272448a67587d4635afedff278dcc
query I rowsort
SELECT - ( col0 ) * - col0 + col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 * col2 * col0 AS col0 FROM tab2 cor0
----
114076
5103
52728
query I rowsort
SELECT - 5 * cor0.col0 AS col1 FROM tab2, tab1 cor0, tab1 AS cor1
----
27 values hashing to e4307922311fa4d855e5bd73b5c8b024
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4383
SELECT - col1 - + CAST( - col0 AS SIGNED ) * - col2 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif mysql # not compatible
query I rowsort label-4383
SELECT - col1 - + CAST ( - col0 AS INTEGER ) * - col2 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT DISTINCT - + 53 - 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-147
query I rowsort
SELECT + col1 * col1 AS col0 FROM tab1
----
100
169
676
query I rowsort
SELECT col2 * + col2 + tab2.col0 + col0 * + 5 FROM tab2
----
1144
1918
771
query I rowsort
SELECT col0 + - ( - col2 ) AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT + 29 + 21 AS col2 FROM tab0 AS cor0
----
50
50
50
query I rowsort
SELECT + col1 + ( col2 ) FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT col0 * - col2 AS col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - tab0.col1 * + ( + 41 ) * + col2 FROM tab0
----
-116358
-305942
-3977
query I rowsort
SELECT DISTINCT col0 * col2 * - 75 FROM tab1
----
-12150
-273600
-576000
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( + col2 AS REAL ) col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 43 + + cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
43
48
54
query I rowsort
SELECT DISTINCT - + 51 AS col0 FROM tab2 AS cor0
----
-51
query I rowsort
SELECT 89 - col0 AS col2 FROM tab2 cor0
----
10
11
82
query I rowsort
SELECT DISTINCT cor1.col1 + + 73 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
83
86
99
query I rowsort
SELECT - 54 + col2 - + col0 FROM tab1 AS cor0
----
-3
-38
-61
query I rowsort
SELECT ALL - - 89 + ( - cor0.col1 ) AS col1 FROM tab1 AS cor0
----
63
76
79
query I rowsort
SELECT ALL + - ( - cor0.col0 ) * col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - 17 + col1 - col0 AS col0 FROM tab0
----
-15
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT - col0 - + col0 DIV - col2 AS col1 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-4403
SELECT - col0 - + col0 / - col2 AS col1 FROM tab1
----
-3
-63
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4404
SELECT ALL - CAST( NULL AS SIGNED ) - col2 * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL - CAST ( NULL AS INTEGER ) - col2 * + col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - tab2.col2 * col2 * - col0 + - ( - col0 ) FROM tab2
----
114155
5110
52806
query I rowsort
SELECT ALL 67 * + ( col0 ) FROM tab1
----
201
4288
5360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) - - col1 * + 78 AS col1 FROM tab2
----
1343
2449
4661
query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 * tab0.col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT + - ( + col2 ) * + col2 + + col1 - + col2 FROM tab2 cor0
----
-1465
-643
-725
query I rowsort
SELECT ALL + tab1.col2 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT col1 + + 89 * + col2 - ( tab2.col0 ) FROM tab2
----
2295
2427
3320
query I rowsort
SELECT - col0 * col0 + + tab1.col2 * - ( col2 ) FROM tab1
----
-15616
-2925
-7345
query I rowsort
SELECT + 22 * - ( col2 ) + 4 + 90 FROM tab2
----
-478
-500
-742
query I rowsort
SELECT col0 - col2 * - col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT DISTINCT col2 + 50 * col1 * 64 FROM tab1
----
32057
41696
83254
query I rowsort
SELECT ALL 79 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab2 cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT - col1 - tab1.col1 AS col0 FROM tab1
----
-20
-26
-52
query I rowsort
SELECT - col1 * + 35 + - col0 * - col0 FROM tab1 AS cor0
----
-901
3746
5945
query I rowsort
SELECT - col1 + - ( 50 ) * col1 AS col0 FROM tab0 AS cor0
----
-4386
-4641
-4947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4422
SELECT DISTINCT + col0 / + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4422
SELECT DISTINCT + col0 / + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - cor0.col0 * + col2 AS col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4424
SELECT ALL col1 + col0 DIV 21 AS col1 FROM tab2 AS cor0
----
20
31
62
skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL col1 + col0 / 21 AS col1 FROM tab2 AS cor0
----
20
31
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + ( - col1 ) col1 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4426
SELECT + + 84 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4426
SELECT + + 84 / - col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4427
SELECT - col1 + col2 DIV 97 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-4427
SELECT - col1 + col2 / 97 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col0 + - 45 col1 FROM tab2 AS cor0
----
4
6039
6196
query I rowsort
SELECT + cor0.col0 + cor0.col2 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4430
SELECT DISTINCT - col2 + + col0 + col2 * 45 DIV tab2.col1 AS col1 FROM tab2
----
141
19
71
skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - col2 + + col0 + col2 * 45 / tab2.col1 AS col1 FROM tab2
----
141
19
71
query I rowsort
SELECT ALL - col2 * 31 + col2 * + col0 AS col2 FROM tab2
----
-648
1222
1824
query I rowsort
SELECT DISTINCT tab2.col1 * + tab2.col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT ALL - cor0.col1 + + 2 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3065ea74d5f91df03e395577532fa00b
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT cor0.col1 * col1 * + col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + col2 + col2 * ( - col2 + + cor0.col1 ) * - col2 AS col0 FROM tab2 AS cor0
----
-22282
-2889
30362
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 * col2 col1 FROM tab0 cor0
----
1722
21
693
query I rowsort
SELECT ALL - col2 + - 22 FROM tab2
----
-48
-49
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-4439
SELECT - tab1.col0 + col2 DIV col1 FROM tab1
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-4439
SELECT - tab1.col0 + col2 / col1 FROM tab1
----
-1
-59
-73
query I rowsort
SELECT ALL - col1 * col1 + col1 * col2 + - col2 AS col0 FROM tab0 AS cor0
----
-4591
-901
-9313
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4441
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-4441
SELECT ALL cor0.col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 + + col2 * col2 AS col1 FROM tab2 AS cor0
----
1365
598
722
onlyif mysql # use DIV operator for integer division
query I rowsort label-4443
SELECT ALL - col0 * ( - col0 ) + col0 DIV 66 AS col1 FROM tab0
----
1225
576
7922
skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL - col0 * ( - col0 ) + col0 / 66 AS col1 FROM tab0
----
1225
576
7922
onlyif mysql # use DIV operator for integer division
query I rowsort label-4444
SELECT tab2.col0 DIV + 40 FROM tab2
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4444
SELECT tab2.col0 / + 40 FROM tab2
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT DISTINCT + col1 + - 71 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4445
SELECT DISTINCT + col1 + - 71 / col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 * + cor0.col0 + + cor0.col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
query I rowsort
SELECT ALL + - cor0.col2 + 57 * + col2 AS col1 FROM tab2 cor0
----
1456
1512
2128
query I rowsort
SELECT + 76 + cor0.col1 FROM tab0 AS cor0
----
162
167
173
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col1 col2 FROM tab0 cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + 59 FROM tab1, tab1 AS cor0
----
59
query I rowsort
SELECT ALL - 18 AS col2 FROM tab0
----
-18
-18
-18
query I rowsort
SELECT DISTINCT + col0 + 79 * col1 AS col1 FROM tab2 AS cor0
----
1422
2456
4739
query I rowsort
SELECT + 35 * - col1 + col2 FROM tab1 AS cor0
----
-293
-359
-856
onlyif mysql # use DIV operator for integer division
query I rowsort label-4454
SELECT ALL - col1 DIV col1 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL - col1 / col1 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + 47 * col2 - - col2 FROM tab2 AS cor0
----
1248
1296
1824
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4456
SELECT ALL CAST( col2 AS SIGNED ) * + col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL CAST ( col2 AS INTEGER ) * + col0 + col1 AS col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4457
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4457
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col2 FROM tab1 AS cor0
----
76
76
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-4459
SELECT col1 + cor0.col0 DIV + col1 col0 FROM tab2 AS cor0
----
21
31
60
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4459
SELECT col1 + cor0.col0 / + col1 col0 FROM tab2 AS cor0
----
21
31
60
query I rowsort
SELECT col2 * ( + col1 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4461
SELECT DISTINCT + col1 DIV 80 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT + col1 / 80 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4462
SELECT ALL CAST( NULL AS SIGNED ) + + cor0.col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL CAST ( NULL AS INTEGER ) + + cor0.col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 33 + 49 AS col0 FROM tab0 AS cor0
----
16
16
16
query I rowsort
SELECT DISTINCT + 62 AS col0 FROM tab1 AS cor0
----
62
query I rowsort
SELECT ALL col1 * + cor0.col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - - cor0.col2 - - 41 * + col1 FROM tab0 AS cor0
----
3559
3813
3978
query I rowsort
SELECT ALL + 36 + col2 FROM tab2 cor0
----
62
63
74
query I rowsort
SELECT ALL - - cor0.col2 - - col1 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT + col1 * - col0 AS col2 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT + - col1 - + col1 * - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT ALL + + col2 - + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 88 - 20 AS col1 FROM tab1 AS cor0
----
68
68
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 * - col0 col1 FROM tab1 AS cor0
----
-192
-4096
-5120
query I rowsort
SELECT + cor0.col2 + - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + col2 AS col1 FROM tab1 cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT + col0 * 73 + col1 FROM tab2
----
542
5753
5784
query I rowsort
SELECT col1 * + 24 * col1 AS col2 FROM tab1
----
16224
2400
4056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4479
SELECT - CAST( NULL AS SIGNED ) + col0 + col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4479
SELECT - CAST ( NULL AS INTEGER ) + col0 + col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - ( - col1 + + tab1.col2 ) FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1, tab1 AS cor0
----
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4483
SELECT DISTINCT + col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT + col1 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + col1 + + 16 * 97 FROM tab0 AS cor0
----
1638
1643
1649
query I rowsort
SELECT ALL col0 * + cor0.col0 + - 88 AS col0 FROM tab0 AS cor0
----
1137
488
7833
query I rowsort
SELECT DISTINCT + cor0.col1 + col1 * cor0.col1 * col0 FROM tab0 AS cor0
----
177590
329412
737100
query I rowsort
SELECT DISTINCT + + col2 + + col0 * - 94 - col0 AS col2 FROM tab1 AS cor0
----
-231
-6023
-7504
query I rowsort
SELECT ALL + - col2 + 32 AS col0 FROM tab1 AS cor0
----
-22
-25
-64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4489
SELECT - - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4489
SELECT - - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT col1 * ( + 96 ) AS col1 FROM tab0
----
8256
8736
9312
query I rowsort
SELECT DISTINCT - 61 FROM tab2, tab2 AS cor0
----
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4493
SELECT + - CAST( col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4493
SELECT + - CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4494
SELECT + col2 DIV - cor0.col2 - + col2 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-4494
SELECT + col2 / - cor0.col2 - + col2 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT + 16 AS col2 FROM tab1 cor0
----
16
16
16
query I rowsort
SELECT 24 + + col2 FROM tab0 AS cor0
----
106
25
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 17 col2 FROM tab1
----
27
30
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4498
SELECT 26 * col1 DIV - col1 FROM tab0
----
-26
-26
-26
skipif mysql # not compatible
query I rowsort label-4498
SELECT 26 * col1 / - col1 FROM tab0
----
-26
-26
-26
query I rowsort
SELECT DISTINCT - col0 * + 76 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT col2 + ( + 91 ) - col1 * - col0 AS col2 FROM tab1 AS cor0
----
1227
223
788
query I rowsort
SELECT DISTINCT + col0 * + col2 * + 98 FROM tab0 cor0
----
3430
715204
77616
onlyif mysql # use DIV operator for integer division
query I rowsort label-4502
SELECT ALL col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL col2 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + + ( col2 ) col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT 99 * + col2 * + col0 FROM tab1
----
16038
361152
760320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL 1 * col1 * col2 AS col2 FROM tab1
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4507
SELECT DISTINCT 38 DIV - 32 FROM tab0, tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT 38 / - 32 FROM tab0, tab2 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4508
SELECT ALL col1 DIV 87 + + col0 AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL col1 / 87 + + col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT - col1 - 39 AS col1 FROM tab1
----
-49
-52
-65
query I rowsort
SELECT col2 * - col1 + ( + col2 ) FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + col1 + col2 * 35 - + cor0.col2 FROM tab0 AS cor0
----
1208
131
2879
skipif mysql # not compatible
query I rowsort
SELECT col1 + CAST ( - 32 AS REAL ) * + col2 AS col1 FROM tab2 cor0
----
-1199
-773
-833
query I rowsort
SELECT + - col0 * - ( + col1 + - col1 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * + 23 + 53 * col0 - col0 AS col0 FROM tab0 AS cor0
----
3226
4051
6721
query I rowsort
SELECT col2 + + ( col0 ) FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 47 ) col0 FROM tab2
----
-47
-47
-47
query I rowsort
SELECT DISTINCT 49 * cor0.col1 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT ALL - - col2 * col2 - - ( col1 ) * col2 AS col2 FROM tab1 AS cor0
----
10464
3819
4320
query I rowsort
SELECT 81 AS col1 FROM tab1
----
81
81
81
query I rowsort
SELECT + - 44 FROM tab1 cor0
----
-44
-44
-44
query I rowsort
SELECT - - 24 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT DISTINCT 79 FROM tab2 AS cor0
----
79
query I rowsort
SELECT ALL - - 28 AS col0 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT DISTINCT + 78 * - cor0.col1 + ( col2 ) AS col1 FROM tab2 cor0
----
-1288
-2391
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-4525
SELECT ALL + cor0.col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4525
SELECT ALL + cor0.col0 / + col0 AS col0 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - cor0.col1 * - col2 * + ( col1 ) FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT - 43 * col1 AS col0 FROM tab0 cor0
----
-3698
-3913
-4171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col1 * 64 col1 FROM tab2 AS cor0
----
1088
1984
3776
query I rowsort
SELECT + + col2 * 79 + - 72 FROM tab1 cor0
----
4194
4431
7512
query I rowsort
SELECT + col2 - cor0.col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + cor0.col0 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
onlyif mysql # use DIV operator for integer division
query I rowsort label-4532
SELECT DISTINCT col0 + - 73 DIV col1 + + col0 FROM tab2 AS cor0
----
12
154
155
skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT col0 + - 73 / col1 + + col0 FROM tab2 AS cor0
----
12
154
155
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * ( col0 ) col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col1 - col2 * + 40 AS col0 FROM tab1 cor0
----
-2134
-2270
-3827
query I rowsort
SELECT ALL + col1 + ( - 90 ) AS col0 FROM tab1 AS cor0
----
-64
-77
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + 70 * ( + col2 ) col2 FROM tab2 cor0
----
1846
1917
2698
query I rowsort
SELECT DISTINCT + 34 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
34
query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab1 AS cor0
----
7
query I rowsort
SELECT DISTINCT + - col0 * - ( cor0.col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 * + col1 * col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL + + col0 AS col0 FROM tab2 cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4542
SELECT DISTINCT tab0.col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4542
SELECT DISTINCT tab0.col1 * CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col0 AS col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - + ( + col2 ) FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT - ( col2 + col2 ) AS col1 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT - 79 + col0 FROM tab1
----
-15
-76
1
query I rowsort
SELECT DISTINCT col0 * + 1 * - col0 + col0 * - col1 * + col1 + 50 AS col1 FROM tab2
----
-277552
-29022
-6726
query I rowsort
SELECT DISTINCT + col1 + + col2 * ( col1 ) FROM tab2 AS cor0
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4549
SELECT DISTINCT - - col0 - - cor0.col0 DIV col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-4549
SELECT DISTINCT - - col0 - - cor0.col0 / col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT ALL 8 * col1 + 92 * col0 AS col0 FROM tab0 cor0
----
2896
3996
8916
query I rowsort
SELECT + 39 * col2 FROM tab1 AS cor0
----
2106
2223
3744
query I rowsort
SELECT DISTINCT - 49 * col1 + ( + cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-4128
-4368
-4656
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4553
SELECT DISTINCT CAST( NULL AS SIGNED ) * - tab2.col0 + col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - tab2.col0 + col2 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT - - col1 * + 59 - col2 * - col0 FROM tab0 AS cor0
----
12667
5758
5866
query I rowsort
SELECT + col2 * - 85 + col1 FROM tab0 AS cor0
----
-2719
-6879
12
query I rowsort
SELECT - 57 + col2 AS col1 FROM tab0 AS cor0
----
-24
-56
25
query I rowsort
SELECT ALL - + 42 AS col2 FROM tab0 cor0
----
-42
-42
-42
query I rowsort
SELECT ALL - 84 FROM tab2 AS cor0
----
-84
-84
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4559
SELECT ALL CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4559
SELECT ALL CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 78 + - 10 FROM tab1
----
68
68
68
query I rowsort
SELECT DISTINCT + 50 * col1 + tab2.col2 AS col1 FROM tab2
----
1577
2976
888
query I rowsort
SELECT + - 17 + + col2 FROM tab0 AS cor0
----
-16
16
65
query I rowsort
SELECT + + 9 FROM tab1 cor0
----
9
9
9
query I rowsort
SELECT + ( tab1.col2 * col0 ) AS col1 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-4565
SELECT col0 DIV + col1 + col1 * - ( col1 ) AS col2 FROM tab1
----
-163
-676
-94
skipif mysql # not compatible
query I rowsort label-4565
SELECT col0 / + col1 + col1 * - ( col1 ) AS col2 FROM tab1
----
-163
-676
-94
query I rowsort
SELECT ALL + ( - tab0.col2 ) FROM tab0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 + + col0 - - col0 * + 49 col2 FROM tab1 AS cor0
----
249
3299
4099
query I rowsort
SELECT ALL - - col2 * + cor0.col2 AS col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - tab2.col1 * col2 + ( tab2.col1 ) * col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - cor0.col1 * - 10 FROM tab0, tab0 AS cor0
----
9 values hashing to bd64178446955b7a7e2185b2e9f87b8e
query I rowsort
SELECT + - col0 * - ( - 95 ) FROM tab1 AS cor0
----
-285
-6080
-7600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT ALL - col2 * CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-4572
SELECT ALL - col2 * CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL col1 + - cor0.col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - + col1 + col1 * + col2 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 col0 FROM tab2
----
-39
-39
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-4576
SELECT ALL - col2 DIV - col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4576
SELECT ALL - col2 / - col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT tab0.col2 + - col1 AS col1 FROM tab0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4578
SELECT + col1 * col2 DIV 4 AS col0 FROM tab2
----
161
209
383
skipif mysql # not compatible
query I rowsort label-4578
SELECT + col1 * col2 / 4 AS col0 FROM tab2
----
161
209
383
query I rowsort
SELECT col1 * 33 FROM tab1 AS cor0
----
330
429
858
query I rowsort
SELECT col1 * + 47 + col0 FROM tab2 cor0
----
1464
2851
878
query I rowsort
SELECT ALL + col1 * + 42 AS col1 FROM tab2 AS cor0
----
1302
2478
714
query I rowsort
SELECT - col1 + 32 - + cor0.col2 AS col0 FROM tab2 AS cor0
----
-23
-26
-53
query I rowsort
SELECT - + col1 - + col0 FROM tab1 AS cor0
----
-29
-74
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4584
SELECT DISTINCT - - col0 DIV + 66 AS col2 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - - col0 / + 66 AS col2 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT - cor0.col2 * + 70 + + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-2107
-4003
-6422
query I rowsort
SELECT DISTINCT 25 FROM tab2, tab2 AS cor0
----
25
query I rowsort
SELECT tab1.col2 + col0 * col0 * + col2 FROM tab1
----
233529
540
614496
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b
query I rowsort
SELECT DISTINCT - - tab1.col0 FROM tab1, tab2, tab2 AS cor0
----
3
64
80
query I rowsort
SELECT ALL - - col2 * + col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT cor0.col2 * - 99 + + 73 AS col2 FROM tab1 AS cor0
----
-5273
-5570
-9431
onlyif mysql # use DIV operator for integer division
query I rowsort label-4592
SELECT ALL - - 5 * + 95 * cor0.col2 + col2 * col1 DIV col1 + - ( col0 ) FROM tab2 AS cor0
----
12298
12845
18009
skipif mysql # not compatible
query I rowsort label-4592
SELECT ALL - - 5 * + 95 * cor0.col2 + col2 * col1 / col1 + - ( col0 ) FROM tab2 AS cor0
----
12298
12845
18009
query I rowsort
SELECT - - cor0.col2 * 88 + col1 AS col1 FROM tab1 AS cor0
----
4778
5026
8461
query I rowsort
SELECT DISTINCT - + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL 20 AS col2 FROM tab1 AS cor0
----
20
20
20
query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-4597
SELECT ALL col1 + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4597
SELECT ALL col1 + col1 / col2 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT cor0.col2 * col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - ( - 29 ) + col1 - + col1 FROM tab0 AS cor0
----
29
29
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4600
SELECT + col2 - cor0.col1 * + col0 * + CAST( cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
-22793
-271492
-6700
skipif mysql # not compatible
query I rowsort label-4600
SELECT + col2 - cor0.col1 * + col0 * + CAST ( cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
-22793
-271492
-6700
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4601
SELECT - + CAST( col2 AS SIGNED ) - col0 FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-4601
SELECT - + CAST ( col2 AS INTEGER ) - col0 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - 88 * col2 + - col0 FROM tab2 AS cor0
----
-2366
-2383
-3423
query I rowsort
SELECT + 92 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT ALL - 94 - + col2 AS col0 FROM tab1 AS cor0
----
-148
-151
-190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab1 AS cor0
----
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-4606
SELECT ALL - 52 * cor0.col2 + 30 DIV col0 col1 FROM tab1 AS cor0
----
-2798
-2964
-4992
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL - 52 * cor0.col2 + 30 / col0 col1 FROM tab1 AS cor0
----
-2798
-2964
-4992
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4607
SELECT col1 * col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4607
SELECT col1 * col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 + cor0.col0 FROM tab0 AS cor0
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4609
SELECT DISTINCT - + 73 DIV + col2 AS col2 FROM tab0 AS cor0
----
-2
-73
0
skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT - + 73 / + col2 AS col2 FROM tab0 AS cor0
----
-2
-73
0
query I rowsort
SELECT + col1 * col1 * col2 + - col0 FROM tab1 AS cor0
----
16144
36501
5636
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4611
SELECT DISTINCT col2 - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4611
SELECT DISTINCT col2 - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col2 * - col1 + 17 FROM tab0 AS cor0
----
-2821
-7445
-80
query I rowsort
SELECT - 78 + cor0.col0 FROM tab1 cor0
----
-14
-75
2
query I rowsort
SELECT col1 + + col1 * col2 FROM tab1 cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT 37 + + col2 * + ( + col0 ) AS col0 FROM tab0 AS cor0
----
72
7335
829
query I rowsort
SELECT - 22 + - col2 FROM tab0 AS cor0
----
-104
-23
-55
query I rowsort
SELECT ALL 37 + - col1 AS col0 FROM tab0 AS cor0
----
-49
-54
-60
query I rowsort
SELECT + cor1.col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - 4 * - 81 AS col1 FROM tab1, tab0 AS cor0
----
324
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4620
SELECT DISTINCT col1 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT col1 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - + col0 + 37 * col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
1013
363
497
query I rowsort
SELECT 94 AS col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT ALL - - ( cor1.col2 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4624
SELECT ALL - 39 DIV cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4624
SELECT ALL - 39 / cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL - col0 * col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL col1 * - cor0.col2 + + cor0.col1 AS col0 FROM tab2 cor0
----
-1475
-629
-806
query I rowsort
SELECT + + col1 * cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT col2 * tab1.col0 * - col0 AS col1 FROM tab1
----
-233472
-486
-614400
query I rowsort
SELECT ALL - tab1.col0 FROM tab1, tab1 cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT - col1 * col2 + - col0 AS col2 FROM tab2
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab2
----
189
2028
3002
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 IN ( + col0 / + col2 + col1 + col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-4633
SELECT col0 DIV + col2 AS col1 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-4633
SELECT col0 / + col2 AS col1 FROM tab0
----
0
1
35
query I rowsort
SELECT + col1 * - tab2.col0 * col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT - col1 * + tab0.col1 * tab0.col0 FROM tab0
----
-177504
-329315
-737009
query I rowsort
SELECT tab2.col2 AS col0 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query III rowsort
SELECT ALL * FROM tab1 WHERE ( tab1.col2 ) IN ( - col1 + + col0 + col2 * col2 )
----
query I rowsort
SELECT col1 * - col2 + col0 FROM tab1
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * col2 col1 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT col2 - - col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT col0 + - tab2.col0 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4642
SELECT + col2 * col2 DIV col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4642
SELECT + col2 * col2 / col2 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( col2 ) + - cor0.col1 col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT - 43 * - tab2.col2 AS col2 FROM tab2
----
1118
1161
1634
query I rowsort
SELECT col2 * + col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4646
SELECT DISTINCT col0 * col0 DIV col2 FROM tab0
----
1225
17
96
skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT col0 * col0 / col2 FROM tab0
----
1225
17
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4647
SELECT tab2.col0 DIV - col0 AS col2 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4647
SELECT tab2.col0 / - col0 AS col2 FROM tab2
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col1 col1 FROM tab2
----
1534
646
837
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= ( col0 )
----
query I rowsort
SELECT ALL - col0 * tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 * + col2 col1 FROM tab2
----
-1461
-735
-760
query I rowsort
SELECT DISTINCT - col0 * col0 - col1 AS col1 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT col0 + - tab1.col0 AS col2 FROM tab1
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col1 col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT - col2 + col1 * + col1 FROM tab0
----
7363
8199
9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4656
SELECT ALL col1 + col0 DIV col1 AS col0 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-4656
SELECT ALL col1 + col0 / col1 AS col0 FROM tab1
----
16
19
26
query I rowsort
SELECT col0 * col1 * tab2.col0 + - col1 AS col2 FROM tab2
----
106080
1488
358897
query I rowsort
SELECT - col0 * + col1 * col1 AS col0 FROM tab1
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4659
SELECT ALL + col2 DIV + col2 + tab0.col0 * - tab0.col2 FROM tab0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-4659
SELECT ALL + col2 / + col2 + tab0.col0 * - tab0.col2 FROM tab0
----
-34
-7297
-791
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col1 / col1 ) AND NULL
----
query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - tab2.col1 col0 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 - tab1.col0 col2 FROM tab1
----
-165
-3712
-7760
query I rowsort
SELECT DISTINCT - col2 * + col1 + col0 AS col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT col2 * + col2 * col0 + tab2.col2 AS col0 FROM tab2
----
114114
5130
52754
query I rowsort
SELECT ALL ( - col1 ) + cor0.col2 * col1 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT col2 * col1 + + col1 * col0 FROM tab0 AS cor0
----
15561
3492
4902
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 980274175fafec015a83080672486a9a
query I rowsort
SELECT ALL + ( cor0.col0 ) + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - col1 * col2 + - ( col2 ) + col1 FROM tab1 AS cor0
----
-1331
-1432
-617
onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT DISTINCT col0 * + col1 + ( ( + col1 ) ) DIV - col1 col2 FROM tab1 AS cor0
----
1039
639
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT col0 * + col1 + ( ( + col1 ) ) / - col1 col2 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT DISTINCT - - col2 * + col0 + col2 FROM tab0 cor0
----
36
7380
825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 + col0 * ( cor0.col1 ) col0 FROM tab2 AS cor0
----
1287
161
4546
query I rowsort
SELECT ALL + col0 * col0 - - col1 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT + col0 - col1 * col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE ( - cor0.col2 + col0 ) NOT IN ( col2 )
----
0
query I rowsort
SELECT + col2 - - cor0.col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT + col2 * col0 + + col1 + - col2 FROM tab2
----
193
2061
2981
query I rowsort
SELECT DISTINCT col1 * - tab1.col2 * - col0 FROM tab1
----
36480
4212
99840
query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( - col0 - col1 * + col1 * col2 )
----
query I rowsort
SELECT ALL tab1.col2 * - tab1.col2 * col1 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - col2 + - col0 + cor0.col2 FROM tab2 AS cor0
----
-7
-78
-79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 col0 FROM tab1 AS cor0
----
29
74
93
query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 * + col0 ) IN ( + col1 )
----
query I rowsort
SELECT col0 * col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
onlyif mysql # use DIV operator for integer division
query I rowsort label-4687
SELECT DISTINCT col0 DIV - tab0.col0 - + tab0.col2 col2 FROM tab0
----
-2
-34
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4687
SELECT DISTINCT col0 / - tab0.col0 - + tab0.col2 col2 FROM tab0
----
-2
-34
-83
query I rowsort
SELECT + col2 * - col0 * col1 + col2 AS col2 FROM tab2
----
-119626
-50996
-5832
query I rowsort
SELECT - tab2.col2 + col2 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT col2 * col0 + - tab0.col0 * col1 AS col0 FROM tab0
----
-1272
-3360
-801
query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 BETWEEN col1 AND NULL
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT * FROM tab1 WHERE ( - col2 - col1 ) <= + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col2 * - col1 * col1 AS col1 FROM tab0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4694
SELECT ALL col1 DIV col0 AS col2 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-4694
SELECT ALL col1 / col0 AS col2 FROM tab0
----
1
2
3
query I rowsort
SELECT col2 * tab1.col2 AS col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col2 * tab0.col2 * col2 + col0 * col1 AS col0 FROM tab0 WHERE NULL IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col2 * col0 col0 FROM tab0
----
34
7216
759
query I rowsort
SELECT ( col1 ) * ( col0 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL 48 + col0 AS col0 FROM tab1
----
112
128
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-4700
SELECT DISTINCT - + col0 + - col0 DIV + col0 + col0 AS col2 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT - + col0 + - col0 / + col0 + col0 AS col2 FROM tab2 AS cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4701
SELECT DISTINCT cor0.col2 + - col2 - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT cor0.col2 + - col2 - - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + 93 + + col1 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
1627
739
930
query I rowsort
SELECT ALL - + col2 * cor0.col0 + - ( + col0 * - col1 ) AS col2 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT + col1 + + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ( + cor0.col1 ) AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + + col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 * col0 col0 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT DISTINCT + + ( - col1 ) * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + - col0 + + col0 * + ( + col1 * - cor0.col1 + col2 * + col0 ) FROM tab1 cor0
----
-1545
227008
600800
query I rowsort
SELECT - col1 * 88 AS col2 FROM tab0 AS cor0
----
-7568
-8008
-8536
onlyif mysql # use DIV operator for integer division
query I rowsort label-4712
SELECT DISTINCT - + col1 DIV + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT - + col1 / + col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT col1 * 57 + 34 FROM tab1 AS cor0
----
1516
604
775
query I rowsort
SELECT - col1 + - col1 - - 6 FROM tab0 AS cor0
----
-166
-176
-188
query I rowsort
SELECT + col1 * + tab2.col1 AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT - col2 * - col1 + + col0 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - col1 col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4718
SELECT DISTINCT + col2 DIV 57 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3250
9217
skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT + col2 / 57 + + col2 * col2 AS col0 FROM tab1 AS cor0
----
2916
3250
9217
query I rowsort
SELECT ALL ( 92 ) * col2 - - col2 * - ( col0 ) AS col1 FROM tab1 AS cor0
----
1152
1596
4806
query I rowsort
SELECT + + 99 * + 11 FROM tab1 cor0
----
1089
1089
1089
query I rowsort
SELECT - - col1 * - ( col2 ) + + 7 FROM tab2 AS cor0
----
-1527
-639
-830
query I rowsort
SELECT + cor0.col2 * ( col2 ) + col0 AS col0 FROM tab2 cor0
----
1523
736
754
query I rowsort
SELECT + col1 * 37 + col2 AS col2 FROM tab1 AS cor0
----
1016
427
577
query I rowsort
SELECT + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL + ( col1 ) * col2 + - 24 AS col2 FROM tab2 AS cor0
----
1510
622
813
query I rowsort
SELECT ALL + cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT + ( - 9 ) FROM tab0 AS cor0
----
-9
query I rowsort
SELECT 61 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT + col1 - ( + col2 ) * ( + col1 ) AS col0 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab2 cor0
----
-29
query I rowsort
SELECT DISTINCT 36 + - cor0.col2 AS col0 FROM tab2 cor0
----
-2
10
9
query I rowsort
SELECT - col2 + - col1 * - col2 FROM tab0 cor0
----
2805
7380
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col1 FROM tab2
----
72
72
72
query I rowsort
SELECT - col2 + col0 * col0 * + col2 FROM tab2
----
1296
158158
237120
query I rowsort
SELECT 89 * - col0 * 50 AS col2 FROM tab1 AS cor0
----
-13350
-284800
-356000
query I rowsort
SELECT 96 + + col2 * - ( 99 + + col0 ) * - ( + col2 ) FROM tab0 AS cor0
----
1264208
134043
230
query I rowsort
SELECT + 93 + - col2 * + col1 FROM tab1
----
-1155
-1311
-477
query I rowsort
SELECT ALL 29 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to 40739d223aa019bd2dfe2db99d596302
query I rowsort
SELECT - - 93 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT ALL 83 AS col1 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
query I rowsort
SELECT DISTINCT - tab0.col0 FROM tab0, tab1, tab2 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT tab2.col0 DIV + cor0.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d38b0634e14aec1019f26e61932e2843
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4742
SELECT tab2.col0 / + cor0.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d38b0634e14aec1019f26e61932e2843
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT tab2.col2 + + 53 FROM tab2, tab2 cor0
----
9 values hashing to bb09ceb5fc305675d4b1299565bd5a58
query I rowsort
SELECT col2 * + ( col2 ) AS col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + col0 * 61 + - 99 * tab0.col1 AS col2 FROM tab0
----
-3580
-7050
-7468
query I rowsort
SELECT col0 * + ( + col1 * + col1 ) AS col2 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT - 45 + col2 AS col0 FROM tab0 AS cor0
----
-12
-44
37
query I rowsort
SELECT 72 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-3576
-7608
-90
query I rowsort
SELECT - ( col1 ) + col2 AS col2 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col2 + col0 col2 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT ALL + 69 + 32 * + col1 FROM tab0 AS cor0
----
2821
2981
3173
query I rowsort
SELECT ALL + 72 AS col1 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT - ( col1 ) * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4755
SELECT - col2 + + col2 * - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4755
SELECT - col2 + + col2 * - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - 95 * col1 FROM tab0 cor0
----
269610
708890
9215
query I rowsort
SELECT DISTINCT 93 FROM tab2 cor0
----
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4758
SELECT - CAST( NULL AS SIGNED ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4758
SELECT - CAST ( NULL AS INTEGER ) + col1 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 88 * ( - cor0.col2 ) + - ( + col1 ) FROM tab0 cor0
----
-185
-2990
-7307
query I rowsort
SELECT ALL - + 93 * + 81 AS col2 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to a2e4e26ff89ce5b48ab053884acb9f87
query I rowsort
SELECT col2 * tab0.col2 - - col1 AS col1 FROM tab0
----
1175
6815
98
query I rowsort
SELECT + col0 - 12 FROM tab2
----
-5
66
67
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 + + 59 + col1 * + col0 AS col2 FROM tab2 AS cor0
----
1402
276
4661
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 * + col0 AS col1 FROM tab2 cor0
----
-1323
-158184
-237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4766
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 / - col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 / - col0 AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) * col0 + col0 * - col1 AS col1 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT ALL - 86 + + col2 FROM tab2 AS cor0
----
-48
-59
-60
onlyif mysql # use DIV operator for integer division
query I rowsort label-4769
SELECT - - col0 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4769
SELECT - - col0 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + + cor0.col2 * - col0 + + col1 * - 82 AS col2 FROM tab0 AS cor0
----
-14760
-7844
-7989
onlyif mysql # use DIV operator for integer division
query I rowsort label-4771
SELECT - col2 + - col1 DIV col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-4771
SELECT - col2 + - col1 / col1 AS col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 col1 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT - - ( 76 ) * col0 AS col1 FROM tab0 cor0
----
1824
2660
6764
query I rowsort
SELECT ( + 64 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT ALL - + ( col0 ) * col0 * + col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
onlyif mysql # use DIV operator for integer division
query I rowsort label-4776
SELECT - col2 + cor0.col2 DIV - col0 col0 FROM tab2 AS cor0
----
-26
-30
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4776
SELECT - col2 + cor0.col2 / - col0 col0 FROM tab2 AS cor0
----
-26
-30
-38
query I rowsort
SELECT - 99 * + col0 + 77 FROM tab0 AS cor0
----
-2299
-3388
-8734
query I rowsort
SELECT col2 * + col2 + ( + ( + cor0.col1 ) ) FROM tab1 AS cor0
----
2942
3259
9229
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 + col0 col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT 62 * + tab1.col1 FROM tab1, tab1 AS cor0
----
1612
620
806
query I rowsort
SELECT - ( - cor0.col1 ) * - 89 - col1 AS col0 FROM tab1 AS cor0
----
-1170
-2340
-900
query I rowsort
SELECT + col1 + - col2 * - col2 AS col2 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT 47 + - cor0.col2 * + 43 AS col2 FROM tab0 AS cor0
----
-1372
-3479
4
query I rowsort
SELECT DISTINCT + ( - col2 ) + 19 * + col1 FROM tab0
----
1601
1647
1842
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 + - cor0.col0 col0 FROM tab0 AS cor0
----
-50
15
4
query I rowsort
SELECT col1 * cor0.col2 + cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
-70
1326
208
query I rowsort
SELECT + + cor0.col0 + col1 * + col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL col0 + - ( col1 ) AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + cor0.col0 + 86 - + col0 * - col2 FROM tab1 AS cor0
----
251
3798
7846
onlyif mysql # use DIV operator for integer division
query I rowsort label-4790
SELECT col2 DIV 40 + - col0 DIV col1 FROM tab1 AS cor0
----
-4
-5
1
skipif mysql # not compatible
query I rowsort label-4790
SELECT col2 / 40 + - col0 / col1 FROM tab1 AS cor0
----
-4
-5
1
query I rowsort
SELECT DISTINCT col1 + 81 AS col2 FROM tab1 AS cor0
----
107
91
94
query I rowsort
SELECT ALL - + col2 + - 70 * 99 * col2 FROM tab1 cor0
----
-374274
-395067
-665376
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col0 col0 FROM tab0
----
2
62
62
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) FROM tab1 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab1, tab0 AS cor1
----
24
35
89
query I rowsort
SELECT ALL - cor0.col0 + - 14 * col1 AS col0 FROM tab1 AS cor0
----
-204
-262
-367
query I rowsort
SELECT - col2 + + 63 + 89 FROM tab2 AS cor0
----
114
125
126
query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4799
SELECT - col2 * + 38 + 68 DIV - col1 FROM tab1 AS cor0
----
-2054
-2172
-3653
skipif mysql # not compatible
query I rowsort label-4799
SELECT - col2 * + 38 + 68 / - col1 FROM tab1 AS cor0
----
-2054
-2172
-3653
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 - CAST ( 95 AS REAL ) * + col0 FROM tab2 AS cor0
----
-658
-7332
-7426
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4801
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4801
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col0 + cor0.col1 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 + + cor0.col1 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 2d3affa5f7ad6a68b1b2fb72e6d48d98
query IIIIIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4805
SELECT - + CAST( NULL AS SIGNED ) * - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4805
SELECT - + CAST ( NULL AS INTEGER ) * - 51 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 28 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT - 90 AS col2 FROM tab1, tab2 AS cor0, tab1 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to f04b5d496485a3d2a324b5702f6ac4c2
query I rowsort
SELECT cor0.col0 * cor0.col0 - - col2 AS col0 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT cor0.col1 * cor0.col2 + 23 - col1 AS col2 FROM tab2 AS cor0
----
1498
652
829
query I rowsort
SELECT ALL 61 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT ALL 92 + col1 AS col0 FROM tab1
----
102
105
118
query I rowsort
SELECT DISTINCT 24 * - col1 + ( - col0 ) * + col1 AS col1 FROM tab2
----
-1751
-6018
-961
query I rowsort
SELECT DISTINCT + col1 + + col0 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - col0 * + col0 + col1 * col0 AS col2 FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT DISTINCT - col1 * col1 + - 52 AS col2 FROM tab1 AS cor0
----
-152
-221
-728
query I rowsort
SELECT DISTINCT - - 75 + - cor1.col2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
37
48
49
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to cc4f069e61d0cc52f433f9e8c0058808
query I rowsort
SELECT DISTINCT cor0.col1 * 88 AS col1 FROM tab0 AS cor0
----
7568
8008
8536
query I rowsort
SELECT + col1 * ( + 27 ) FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT + - cor0.col2 * + ( 14 ) * col0 AS col1 FROM tab1 cor0
----
-107520
-2268
-51072
query I rowsort
SELECT DISTINCT + col0 * 30 FROM tab2 AS cor0
----
210
2340
2370
query I rowsort
SELECT DISTINCT + 77 * 44 AS col2 FROM tab0, tab0 AS cor0
----
3388
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4823
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT - CAST ( NULL AS REAL ) + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + col2 + 67 * - col0 * + 82 FROM tab0 cor0
----
-131823
-192289
-488884
query I rowsort
SELECT ( - 19 ) FROM tab1 AS cor0
----
-19
-19
-19
query I rowsort
SELECT ALL 39 * - col2 AS col2 FROM tab0
----
-1287
-3198
-39
query I rowsort
SELECT ALL + ( + 75 + + col0 ) * 61 AS col2 FROM tab1
----
4758
8479
9455
query I rowsort
SELECT - 44 AS col1 FROM tab0
----
-44
-44
-44
query I rowsort
SELECT DISTINCT - col0 * - col0 + col0 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4830
SELECT CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-4830
SELECT CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT col0 * col0 + + cor0.col0 AS col1 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT ALL col0 + col2 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL col0 + col2 / - col1 AS col0 FROM tab1 AS cor0
----
1
59
73
query I rowsort
SELECT 76 + col0 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT + 7 + tab1.col0 FROM tab1
----
10
71
87
query I rowsort
SELECT + - 67 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f
query I rowsort
SELECT ALL - + 58 * col0 AS col0 FROM tab2 AS cor0
----
-406
-4524
-4582
query I rowsort
SELECT ALL - cor0.col0 - col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + col2 + - cor0.col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4839
SELECT - - col0 + - CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-20
41
52
skipif mysql # not compatible
query I rowsort label-4839
SELECT - - col0 + - CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4840
SELECT ALL + col2 + CAST( NULL AS SIGNED ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) * + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - 96 AS col2 FROM tab0 AS cor0
----
-120
-131
-185
query I rowsort
SELECT ALL - cor0.col1 + + col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4843
SELECT ALL - + col2 + + col2 * + col1 DIV + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4843
SELECT ALL - + col2 + + col2 * + col1 / + cor0.col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col1 * + col2 AS col0 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col1 * + 61 AS col2 FROM tab1 AS cor0
----
1586
610
793
query I rowsort
SELECT DISTINCT + col0 * col0 + 74 FROM tab0 cor0
----
1299
650
7995
query I rowsort
SELECT - col2 * + col2 + ( + col0 ) FROM tab2
----
-1365
-598
-722
query I rowsort
SELECT - 31 + tab0.col1 AS col0 FROM tab0
----
55
60
66
query I rowsort
SELECT ALL + col1 - col1 * col1 FROM tab2 cor0
----
-272
-3422
-930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4850
SELECT col1 * - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-4850
SELECT col1 * - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT 47 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
onlyif mysql # use DIV operator for integer division
query I rowsort label-4852
SELECT - + col2 * + cor0.col2 + - col1 DIV col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
skipif mysql # not compatible
query I rowsort label-4852
SELECT - + col2 * + cor0.col2 + - col1 / col1 FROM tab1 AS cor0
----
-2917
-3250
-9217
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4853
SELECT - + col1 / col1 + ( col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4853
SELECT - + col1 / col1 + ( col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col0 + col2 * + col0 FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT + ( + col2 ) + col0 AS col2 FROM tab2 AS cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( col2 ) ) col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + col1 * 2 FROM tab1
----
20
26
52
query I rowsort
SELECT ALL - tab2.col0 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT DISTINCT - col0 * - ( - 73 ) FROM tab1
----
-219
-4672
-5840
query I rowsort
SELECT 85 + + col2 * 90 FROM tab0 cor0
----
175
3055
7465
query I rowsort
SELECT + - ( col1 ) + - col1 * + cor0.col0 * col1 FROM tab0 AS cor0
----
-177590
-329412
-737100
query I rowsort
SELECT ALL + - 32 FROM tab0 AS cor0
----
-32
-32
-32
query I rowsort
SELECT + 53 * - col0 + + col2 + col0 * col2 FROM tab0 AS cor0
----
-1819
-447
2663
onlyif mysql # use DIV operator for integer division
query I rowsort label-4864
SELECT col0 DIV col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-4864
SELECT col0 / col1 + cor0.col2 AS col0 FROM tab1 AS cor0
----
102
54
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT + col1 + col0 DIV - tab0.col0 + + 71 * col0 AS col2 FROM tab0
----
1789
2581
6409
skipif mysql # not compatible
query I rowsort label-4865
SELECT + col1 + col0 / - tab0.col0 + + 71 * col0 AS col2 FROM tab0
----
1789
2581
6409
query I rowsort
SELECT DISTINCT tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
26
27
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4867
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 / col0 + ( - 42 ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 / col0 + ( - 42 ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 29 * col2 * col2 + + col0 AS col1 FROM tab2
----
-19526
-21134
-41797
query I rowsort
SELECT + + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
query I rowsort
SELECT ALL tab1.col0 * col1 + + 37 * col2 * + tab1.col2 FROM tab1
----
107970
120853
342032
query I rowsort
SELECT ALL 3 * - col1 * + col2 FROM tab1 cor0
----
-1710
-3744
-4212
query I rowsort
SELECT col1 + col0 * ( col1 ) + col2 * + col0 * - col1 FROM tab0 AS cor0
----
-655928
-65962
97
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT - col0 - + col0 * - col0 AS col0 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL + 11 AS col1 FROM tab1 AS cor0
----
11
11
11
onlyif mysql # use DIV operator for integer division
query I rowsort label-4876
SELECT - 69 * col0 - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
-1655
-2414
-6140
skipif mysql # not compatible
query I rowsort label-4876
SELECT - 69 * col0 - cor0.col0 / - col0 FROM tab0 AS cor0
----
-1655
-2414
-6140
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + + col1 col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL - - col1 * - col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4879
SELECT DISTINCT + col0 + col2 DIV - cor0.col2 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + col0 + col2 / - cor0.col2 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT - col1 + col0 + - 21 * - 10 AS col2 FROM tab1 AS cor0
----
187
264
277
query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab0 AS cor0
----
5
query I rowsort
SELECT ALL + 91 + - col1 AS col1 FROM tab0
----
-6
0
5
query I rowsort
SELECT + 46 - - ( col1 ) * cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
22877
271564
6773
query I rowsort
SELECT - ( col2 ) * cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT - ( + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 8 * - 55 + + col1 * - tab2.col1 AS col1 FROM tab2
----
-1401
-3921
-729
query I rowsort
SELECT DISTINCT 99 + - cor0.col2 - + 58 FROM tab0, tab2 AS cor0
----
14
15
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 col2 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4889
SELECT + 76 DIV - col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4889
SELECT + 76 / - col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * + col0 * cor0.col0 + - col0 * + col1 + 93 FROM tab2 AS cor0
----
1199
153675
235908
query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab1
----
99
query I rowsort
SELECT DISTINCT - 22 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-22
query I rowsort
SELECT 66 * col2 + - col0 + + col1 AS col1 FROM tab0 AS cor0
----
128
2240
5414
query I rowsort
SELECT 72 + col2 FROM tab0 cor0
----
105
154
73
query I rowsort
SELECT DISTINCT - 26 * + col0 AS col2 FROM tab0 AS cor0
----
-2314
-624
-910
onlyif mysql # use DIV operator for integer division
query I rowsort label-4896
SELECT ALL + col2 + col1 DIV - col0 + cor0.col2 FROM tab1 AS cor0
----
100
114
192
skipif mysql # not compatible
query I rowsort label-4896
SELECT ALL + col2 + col1 / - col0 + cor0.col2 FROM tab1 AS cor0
----
100
114
192
query I rowsort
SELECT ALL + - col0 * + col1 + 94 AS col1 FROM tab0 AS cor0
----
-1970
-3301
-8005
query I rowsort
SELECT ALL 41 * - tab0.col0 FROM tab0
----
-1435
-3649
-984
query I rowsort
SELECT ALL + col2 * - col1 + ( + cor0.col1 ) * col1 AS col0 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT ALL + ( cor0.col0 ) + - col0 * - cor0.col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + 33 FROM tab2 cor0
----
33
query I rowsort
SELECT col0 - - col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - - col1 + - 61 AS col2 FROM tab2 AS cor0
----
-2
-30
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-4904
SELECT + col0 DIV 92 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4904
SELECT + col0 / 92 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * + col1 - col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT - col1 * col0 + col1 - tab2.col0 FROM tab2
----
-1405
-193
-4621
query I rowsort
SELECT + + col1 * + 0 * ( col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4908
SELECT + + col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4908
SELECT + + col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4909
SELECT ALL CAST( 8 AS SIGNED ) + + col2 * - col0 FROM tab0 AS cor0
----
-27
-7290
-784
skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL CAST ( 8 AS INTEGER ) + + col2 * - col0 FROM tab0 AS cor0
----
-27
-7290
-784
query I rowsort
SELECT - 34 * - col0 + - col0 AS col1 FROM tab1 AS cor0
----
2112
2640
99
query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
11
query I rowsort
SELECT 79 AS col0 FROM tab0 cor0
----
79
79
79
query I rowsort
SELECT - col1 * ( col1 ) AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab2 AS cor3
----
3645 values hashing to 2c0370ee2d7726affde9c7c0de12a506
query I rowsort
SELECT + col1 * - col1 - col1 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT ALL - + ( col0 ) AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - ( - col2 ) AS col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + ( col2 ) + cor0.col1 * + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + cor0.col2 * - ( col0 ) * ( - 3 ) AS col1 FROM tab0 AS cor0
----
-105
-21894
-2376
query I rowsort
SELECT - col1 - - col1 * cor0.col0 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4921
SELECT + - col2 * + 56 - cor0.col2 * CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4921
SELECT + - col2 * + 56 - cor0.col2 * CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 45 * - col2 FROM tab1 AS cor0
----
-2430
-2565
-4320
onlyif mysql # use DIV operator for integer division
query I rowsort label-4923
SELECT DISTINCT - - ( - ( + col1 DIV col1 ) ) + + 27 * + col2 * - 94 FROM tab1 AS cor0
----
-137053
-144667
-243649
skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT - - ( - ( + col1 / col1 ) ) + + 27 * + col2 * - 94 FROM tab1 AS cor0
----
-137053
-144667
-243649
query I rowsort
SELECT ALL col0 * 60 - col2 FROM tab2 cor0
----
393
4654
4702
query I rowsort
SELECT 86 AS col2 FROM tab0 AS cor0
----
86
86
86
query I rowsort
SELECT DISTINCT + 47 * - col2 FROM tab0 AS cor0
----
-1551
-3854
-47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + + 21 + - col0 * - col1 col2 FROM tab0 AS cor0
----
2125
3456
8160
onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT ALL col0 DIV - col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL col0 / - col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 88 FROM tab1, tab0 AS cor0
----
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT - + col1 DIV - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-46
-57
-96
skipif mysql # not compatible
query I rowsort label-4930
SELECT - + col1 / - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-46
-57
-96
query I rowsort
SELECT + col1 * 21 FROM tab2 cor0
----
1239
357
651
query I rowsort
SELECT ALL + ( - 98 ) FROM tab1 AS cor0
----
-98
-98
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4933
SELECT + col0 + + ( + col0 ) * CAST( - 94 AS SIGNED ) FROM tab0 AS cor0
----
-2232
-3255
-8277
skipif mysql # not compatible
query I rowsort label-4933
SELECT + col0 + + ( + col0 ) * CAST ( - 94 AS INTEGER ) FROM tab0 AS cor0
----
-2232
-3255
-8277
query I rowsort
SELECT DISTINCT - col1 * + col0 FROM tab1 cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT - col1 + + 91 DIV cor0.col0 FROM tab1 AS cor0
----
-12
-9
4
skipif mysql # not compatible
query I rowsort label-4935
SELECT - col1 + + 91 / cor0.col0 FROM tab1 AS cor0
----
-12
-9
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4936
SELECT ALL CAST( - col0 AS SIGNED ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-4936
SELECT ALL CAST ( - col0 AS INTEGER ) * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL 8 FROM tab2, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT DISTINCT 35 + col0 FROM tab0 AS cor0
----
124
59
70
query I rowsort
SELECT ALL - + col2 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT 65 * col2 + - col0 * - 24 + tab1.col2 AS col2 FROM tab1
----
3636
5298
8256
query I rowsort
SELECT cor0.col0 * - cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52
query I rowsort
SELECT ALL - col1 + 46 * col1 FROM tab1
----
1170
450
585
onlyif mysql # use DIV operator for integer division
query I rowsort label-4943
SELECT col0 DIV 74 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4943
SELECT col0 / 74 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT - cor0.col2 * + cor0.col2 * - cor0.col0 AS col1 FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-4945
SELECT DISTINCT 8 DIV col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-4945
SELECT DISTINCT 8 / col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + 18 * - 13 FROM tab2, tab2 cor0, tab2 AS cor1
----
-234
query I rowsort
SELECT DISTINCT - col0 + - ( + col2 ) * col2 FROM tab0 AS cor0
----
-1113
-36
-6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * ( col0 ) col1 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-4949
SELECT + cor0.col1 DIV 31 col0 FROM tab0 AS cor0
----
2
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4949
SELECT + cor0.col1 / 31 col0 FROM tab0 AS cor0
----
2
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4950
SELECT DISTINCT - - col2 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT - - col2 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT tab1.col1 + 84 FROM tab1, tab1 AS cor0
----
9 values hashing to b76dbfc790bfe920a78eb35a0c4f628a
query I rowsort
SELECT + 25 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2c77240b60ac01c717a5ed5d0165f450
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + cor1.col2 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT 43 FROM tab2
----
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * 24 col1 FROM tab0
----
121
2059
878
query I rowsort
SELECT ALL + col2 * tab0.col0 AS col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + col0 * ( col0 + tab1.col1 ) FROM tab1
----
4736
7440
87
query I rowsort
SELECT DISTINCT + col1 - + 79 FROM tab2 AS cor0
----
-20
-48
-62
query I rowsort
SELECT + col0 + col2 * ( col0 ) * col1 FROM tab0 AS cor0
----
3430
664207
68136
query I rowsort
SELECT DISTINCT col0 * - col1 - - col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - col2 + ( 90 ) FROM tab1 AS cor0
----
-6
33
36
query I rowsort
SELECT DISTINCT col0 + + ( 74 ) AS col0 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT ALL - 53 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2876418587c77a182d88db2907b0a51a
query I rowsort
SELECT DISTINCT 54 + col2 AS col2 FROM tab2
----
80
81
92
query I rowsort
SELECT DISTINCT + tab1.col0 + - 34 AS col1 FROM tab1, tab1 AS cor0
----
-31
30
46
query I rowsort
SELECT + cor0.col2 * ( - col0 ) AS col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - col2 + - col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT cor0.col2 + - 36 FROM tab1 AS cor0
----
18
21
60
query I rowsort
SELECT ALL + 3 + col0 * ( col2 ) FROM tab2
----
192
2031
3005
query I rowsort
SELECT + col1 * col2 + 15 AS col1 FROM tab2
----
1549
661
852
query I rowsort
SELECT + 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT + cor0.col0 * + col0 * - cor0.col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT tab2.col2 * col1 DIV - col1 AS col0 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-4973
SELECT tab2.col2 * col1 / - col1 AS col0 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col1 + col1 * - col2 + col1 AS col1 FROM tab2
----
-1534
-646
-837
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 * col0 + col2 * + col2 ) BETWEEN - col1 AND ( NULL )
----
78
59
26
query I rowsort
SELECT col1 * - col0 + tab0.col1 FROM tab0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col1 * col0 + - col2 col2 FROM tab1
----
21
519
864
query I rowsort
SELECT ALL col0 + col2 + col1 * + tab2.col2 FROM tab2
----
1638
763
871
query I rowsort
SELECT tab0.col1 + + tab0.col2 * tab0.col0 AS col0 FROM tab0
----
132
7389
878
query I rowsort
SELECT ALL col1 - + col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT col1 + tab2.col0 * col1 AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT - col1 * col2 * col1 - col1 * - tab0.col2 AS col0 FROM tab0
----
-241230
-671580
-9312
query I rowsort
SELECT col2 * - col2 * - col1 AS col2 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT col0 * - col1 * col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - col0 * tab1.col2 * col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col2 * + col1 * col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT - col0 * tab0.col1 AS col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col0 + + col1 + col2 * col0 FROM tab1
----
185
3594
7613
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( - col0 + col2 - tab1.col2 )
----
query I rowsort
SELECT DISTINCT - col0 * + col1 * tab0.col2 AS col0 FROM tab0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 * - col0 col1 FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT + col1 * + col0 + col2 AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT col0 * - col2 * 5 FROM tab2
----
-10140
-15010
-945
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4994
SELECT ALL + ( col1 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + ( col1 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * tab2.col1 AS col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT + 46 FROM tab0 AS cor0
----
46
query I rowsort
SELECT + col0 * - col2 + + 65 FROM tab1 AS cor0
----
-3583
-7615
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4998
SELECT DISTINCT + - cor0.col0 DIV + col0 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4998
SELECT DISTINCT + - cor0.col0 / + col0 FROM tab1 cor0
----
-1
query I rowsort
SELECT ALL 36 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
onlyif mysql # use DIV operator for integer division
query I rowsort label-5000
SELECT ALL 86 * col1 DIV tab1.col0 AS col1 FROM tab1
----
13
13
745
skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL 86 * col1 / tab1.col0 AS col1 FROM tab1
----
13
13
745
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 84 ) col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT ALL - 58 * - col0 FROM tab1
----
174
3712
4640
query I rowsort
SELECT - col0 * col0 - + col0 * + 70 FROM tab0 AS cor0
----
-14151
-2256
-3675
query I rowsort
SELECT ALL + 1 * - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - col0 + + cor0.col0 AS col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 58 + - col1 AS col0 FROM tab0 AS cor0
----
-28
-33
-39
query I rowsort
SELECT cor0.col1 + cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5484e660e65aa37f29a1eca3fc30f5cc
onlyif mysql # use DIV operator for integer division
query I rowsort label-5008
SELECT cor0.col0 DIV ( col2 ) FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-5008
SELECT cor0.col0 / ( col2 ) FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT - - col2 + cor0.col0 * 14 AS col1 FROM tab1 AS cor0
----
1216
953
96
query I rowsort
SELECT ALL + - 95 FROM tab2, tab0 AS cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT + tab2.col2 * + tab2.col0 * 69 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to d7c93314b5bf25ecc66e875f0d4b35aa
onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT ALL + 12 * + col2 + + col1 DIV - col1 FROM tab2 AS cor0
----
311
323
455
skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL + 12 * + col2 + + col1 / - col1 FROM tab2 AS cor0
----
311
323
455
query I rowsort
SELECT - col2 + col2 * col0 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - 57 * + col0 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT ALL + + col0 * 52 + + col1 FROM tab0 AS cor0
----
1334
1917
4719
query I rowsort
SELECT 77 * - col1 AS col0 FROM tab1 cor0
----
-1001
-2002
-770
query I rowsort
SELECT - 14 + - col1 FROM tab2 AS cor0
----
-31
-45
-73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5018
SELECT ( col0 ) * CAST( - 38 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1330
-3382
-912
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5018
SELECT ( col0 ) * CAST ( - 38 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1330
-3382
-912
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 - + col1 * 12 col1 FROM tab0 cor0
----
-1094
-1094
-1226
query I rowsort
SELECT col0 + - col0 - + col1 * col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ( - col2 * + col0 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT 90 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5023
SELECT ALL - CAST( - col0 + + col2 * col1 AS SIGNED ) AS col2 FROM tab0
----
-2814
-62
-7373
skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - CAST ( - col0 + + col2 * col1 AS INTEGER ) AS col2 FROM tab0
----
-2814
-62
-7373
query I rowsort
SELECT DISTINCT + 7 FROM tab1, tab2 AS cor0
----
7
query I rowsort
SELECT - 13 FROM tab0, tab2 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
query I rowsort
SELECT ALL col0 + col2 * col0 AS col1 FROM tab0 cor0
----
70
7387
816
query I rowsort
SELECT col2 + col1 * col1 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL - - col2 * col1 - - col1 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT ALL + col0 - + col1 * - col0 AS col2 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 + + col2 * col0 FROM tab2 AS cor0
----
-509
1411
1575
query I rowsort
SELECT tab1.col2 + col2 FROM tab1
----
108
114
192
onlyif mysql # use DIV operator for integer division
query I rowsort label-5032
SELECT + col1 - + col1 DIV col0 FROM tab2
----
17
27
59
skipif mysql # not compatible
query I rowsort label-5032
SELECT + col1 - + col1 / col0 FROM tab2
----
17
27
59
query I rowsort
SELECT DISTINCT - col0 * col2 + + col2 AS col1 FROM tab0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5034
SELECT ALL + col0 DIV col0 + col2 * tab0.col2 col2 FROM tab0
----
1090
2
6725
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5034
SELECT ALL + col0 / col0 + col2 * tab0.col2 col2 FROM tab0
----
1090
2
6725
query I rowsort
SELECT DISTINCT - tab1.col1 + col1 * col1 AS col0 FROM tab1
----
156
650
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-5036
SELECT col2 + - col1 DIV - tab2.col0 FROM tab2
----
26
31
38
skipif mysql # not compatible
query I rowsort label-5036
SELECT col2 + - col1 / - tab2.col0 FROM tab2
----
26
31
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5037
SELECT - tab1.col2 * col0 + + col2 + - tab1.col2 DIV col0 AS col1 FROM tab1
----
-126
-3591
-7585
skipif mysql # not compatible
query I rowsort label-5037
SELECT - tab1.col2 * col0 + + col2 + - tab1.col2 / col0 AS col1 FROM tab1
----
-126
-3591
-7585
query I rowsort
SELECT + col1 + + col0 * col1 AS col2 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT - col0 + col1 + col0 * + col1 FROM tab2
----
1281
241
4583
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col0 * - cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT DISTINCT col0 + - col2 DIV col2 AS col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-5042
SELECT DISTINCT col0 + - col2 / col2 AS col1 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT DISTINCT + 62 FROM tab2
----
62
query I rowsort
SELECT - 86 + 47 FROM tab2
----
-39
-39
-39
query I rowsort
SELECT 48 + 0 AS col1 FROM tab1
----
48
48
48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5046
SELECT DISTINCT CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT - tab2.col0 * + col1 AS col2 FROM tab2
----
-1343
-217
-4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-5048
SELECT DISTINCT - col0 DIV col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT - col0 / col0 FROM tab2
----
-1
skipif mysql # not compatible
query I rowsort
SELECT CAST ( - 59 * - col1 AS REAL ) FROM tab0
----
5074
5369
5723
query I rowsort
SELECT - 18 AS col0 FROM tab1
----
-18
-18
-18
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 - ( col1 ) * col1 * + col0 col1 FROM tab0
----
-177501
-329312
-737006
query I rowsort
SELECT 73 AS col1 FROM tab0 AS cor0
----
73
73
73
query I rowsort
SELECT DISTINCT col2 + col2 * + col1 * - col0 AS col1 FROM tab0 cor0
----
-3394
-664036
-68079
query I rowsort
SELECT ALL col2 * + col1 AS col0 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT + - col2 * - col1 + col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT - col2 - - col1 * - col0 AS col2 FROM tab0
----
-2097
-3396
-8181
query I rowsort
SELECT col0 FROM tab1 WHERE NOT - col1 IN ( tab1.col1 / - tab1.col2 + - col2 )
----
3
64
80
query I rowsort
SELECT - col2 + + col2 + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + col1 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----
query I rowsort
SELECT - col0 + - col2 AS col1 FROM tab1
----
-121
-176
-57
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IN ( col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + col2 * tab2.col0 - col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT DISTINCT col2 * + col1 * + cor0.col0 + + col2 FROM tab0 AS cor0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * + col0 * + col1 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT DISTINCT col1 + tab2.col2 AS col0 FROM tab2
----
55
58
85
query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( - col2 * col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col0 * col0 * + tab1.col2 col2 FROM tab1
----
233529
540
614496
query I rowsort
SELECT ALL + col0 * - col1 + + col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT - col2 * - col1 >= NULL
----
query I rowsort
SELECT DISTINCT + tab1.col2 * col0 + col1 * + col0 FROM tab1
----
240
4288
8720
query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NULL IN ( col1 * col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----
query I rowsort
SELECT ALL - col2 - + col1 * - col2 AS col1 FROM tab1
----
1152
1350
513
query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 NOT IN ( + col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) IN ( col0 )
----
query I rowsort
SELECT - col2 - col0 * - tab0.col1 * + col2 AS col2 FROM tab0
----
3394
664036
68079
query I rowsort
SELECT DISTINCT - col0 + + col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN col2 AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - cor0.col1 + + col2 col2 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT col1 * - col0 + col0 + col2 AS col2 FROM tab2 AS cor0
----
-1226
-183
-4498
query I rowsort
SELECT - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL col2 * col1 + - col0 * + col2 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT col1 * - col0 + + col1 * col2 AS col1 FROM tab0 AS cor0
----
-3298
-637
774
query I rowsort
SELECT ALL - + col2 + - col2 AS col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT ALL - - col0 - + col1 AS col1 FROM tab1 cor0
----
-23
54
67
query I rowsort
SELECT + col0 * col0 + + cor0.col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT DISTINCT + col2 + col0 * col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-5089
SELECT ALL + - cor0.col1 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL + - cor0.col1 / cor0.col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT tab2.col1 * + col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 * col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * col2 - + cor0.col2 col0 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * cor0.col2 + col1 * - col0 AS col1 FROM tab2 cor0
----
-3926
101
512
query I rowsort
SELECT DISTINCT + - col2 + - col2 * col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL col1 * + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + col0 + - col1 * col1 * + col2 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT ALL + col1 * col2 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * col2 + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL tab0.col1 * - col0 + col0 AS col1 FROM tab0
----
-2040
-3360
-8010
query I rowsort
SELECT col1 * - col2 * col2 + + tab0.col1 AS col1 FROM tab0
----
-611793
-93568
0
query I rowsort
SELECT - col0 - + ( col2 ) * ( col0 ) FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL ( 97 ) + col1 + - col1 * col2 FROM tab1 AS cor0
----
-1138
-1281
-463
onlyif mysql # use DIV operator for integer division
query I rowsort label-5104
SELECT DISTINCT + col0 DIV - col2 - + col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-5104
SELECT DISTINCT + col0 / - col2 - + col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT ALL col2 * 79 AS col2 FROM tab1 AS cor0
----
4266
4503
7584
query I rowsort
SELECT DISTINCT - + 48 + + col1 * col2 FROM tab2 cor0
----
1486
598
789
onlyif mysql # use DIV operator for integer division
query I rowsort label-5107
SELECT ALL - + col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5107
SELECT ALL - + col2 / col1 AS col1 FROM tab2 AS cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * 34 + + col2 col2 FROM tab2 AS cor0
----
265
2678
2724
query I rowsort
SELECT - 43 + cor0.col0 FROM tab2 AS cor0
----
-36
35
36
query I rowsort
SELECT + 64 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT - + col1 * 41 * + col0 FROM tab2 AS cor0
----
-188682
-55063
-8897
query I rowsort
SELECT - col2 - + ( - col2 ) AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + ( cor0.col1 ) * + col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + col1 - 85 AS col2 FROM tab2 AS cor0
----
-26
-54
-68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5115
SELECT DISTINCT + ( col0 ) * - col2 + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT + ( col0 ) * - col2 + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL - col2 + col2 * - col0 AS col0 FROM tab1 cor0
----
-216
-3705
-7776
query I rowsort
SELECT + 73 + 92 FROM tab2 cor0
----
165
165
165
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * + col2 + ( - col2 * cor0.col1 ) + col2 * - col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - + cor0.col1 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT - 72 * col1 AS col2 FROM tab0 AS cor0
----
-6192
-6552
-6984
query I rowsort
SELECT 23 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 546d49aa433406dd83ea19885588e658
query I rowsort
SELECT DISTINCT ( + tab0.col1 + col0 ) AS col1 FROM tab0
----
110
132
180
query I rowsort
SELECT - 8 FROM tab2, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT DISTINCT + - col2 + + 72 - 45 AS col0 FROM tab2 AS cor0
----
-11
0
1
query I rowsort
SELECT DISTINCT col2 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT + + cor0.col0 * - 76 FROM tab1 AS cor0
----
-228
-4864
-6080
query I rowsort
SELECT ALL - - cor0.col1 - + col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL + col1 + 98 AS col1 FROM tab1 AS cor0
----
108
111
124
query I rowsort
SELECT ALL - - col0 * col2 + col1 * + col0 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT DISTINCT - col2 * + 34 FROM tab1 AS cor0
----
-1836
-1938
-3264
query I rowsort
SELECT DISTINCT - 34 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5132
SELECT + cor0.col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5132
SELECT + cor0.col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col1 * col2 + - col2 col0 FROM tab0
----
3394
664036
68079
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5135
SELECT DISTINCT CAST( NULL AS DECIMAL ) col1 FROM tab2, tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5135
SELECT DISTINCT CAST ( NULL AS REAL ) col1 FROM tab2, tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + tab0.col2 + 53 AS col0 FROM tab0
----
135
54
86
query I rowsort
SELECT ALL 58 FROM tab2, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT ALL + cor0.col1 + - ( - col2 ) * col1 AS col0 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + col2 * 50 + 59 FROM tab1 AS cor0
----
2759
2909
4859
query I rowsort
SELECT - col2 + 88 * - col2 * cor0.col2 FROM tab0 AS cor0
----
-591794
-89
-95865
query I rowsort
SELECT col1 + - tab1.col2 * + col0 * col1 FROM tab1
----
-36470
-4186
-99827
query I rowsort
SELECT - col0 + - tab2.col2 + col1 FROM tab2
----
-100
-3
-45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5143
SELECT CAST( 66 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1716
660
858
skipif mysql # not compatible
query I rowsort label-5143
SELECT CAST ( 66 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1716
660
858
query I rowsort
SELECT ALL + 73 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
query I rowsort
SELECT DISTINCT + 69 - cor1.col2 * + cor2.col1 FROM tab1, tab1 AS cor0, tab0 cor1, tab1 AS cor2
----
9 values hashing to 2d722c1e10edbab65041e3eb610ff2a0
query I rowsort
SELECT + 77 * - col0 FROM tab0 AS cor0
----
-1848
-2695
-6853
query I rowsort
SELECT 47 AS col1 FROM tab1 AS cor0
----
47
47
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-5148
SELECT + col1 DIV col2 col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5148
SELECT + col1 / col2 col2 FROM tab1
----
0
0
0
query I rowsort
SELECT - tab0.col2 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT + 76 DIV 57 AS col2 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5150
SELECT + 76 / 57 AS col2 FROM tab2
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5151
SELECT - CAST( NULL AS SIGNED ) + + col2 * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5151
SELECT - CAST ( NULL AS INTEGER ) + + col2 * cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 2 * col1 - - col0 * col1 AS col0 FROM tab2 AS cor0
----
1309
155
4484
onlyif mysql # use DIV operator for integer division
query I rowsort label-5153
SELECT + col2 * col2 DIV + col0 + ( 65 ) * col2 + col2 FROM tab1 AS cor0
----
3812
4536
6451
skipif mysql # not compatible
query I rowsort label-5153
SELECT + col2 * col2 / + col0 + ( 65 ) * col2 + col2 FROM tab1 AS cor0
----
3812
4536
6451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT - + CAST( - col2 AS DECIMAL ) * + col1 - - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5154
SELECT - + CAST ( - col2 AS REAL ) * + col1 - - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 93 * col1 FROM tab2
----
1581
2883
5487
query I rowsort
SELECT DISTINCT - 19 FROM tab0, tab1 AS cor0, tab2 cor1
----
-19
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - cor0.col1 * CAST ( - 56 AS REAL ) FROM tab1, tab1 cor0
----
1456
560
728
query I rowsort
SELECT 36 * - cor0.col1 FROM tab2 AS cor0
----
-1116
-2124
-612
onlyif mysql # use DIV operator for integer division
query I rowsort label-5159
SELECT col1 DIV 20 FROM tab0 cor0
----
4
4
4
skipif mysql # not compatible
query I rowsort label-5159
SELECT col1 / 20 FROM tab0 cor0
----
4
4
4
query I rowsort
SELECT col1 * - 53 AS col2 FROM tab0 AS cor0
----
-4558
-4823
-5141
query I rowsort
SELECT - col1 * 34 FROM tab2 AS cor0
----
-1054
-2006
-578
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 col1 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col0 FROM tab1 AS cor0
----
72
72
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 * + col1 col2 FROM tab2 AS cor0
----
1457
2773
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5165
SELECT DISTINCT 1 * - col0 + CAST( 35 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
286
375
907
skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT 1 * - col0 + CAST ( 35 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
286
375
907
query I rowsort
SELECT DISTINCT cor1.col1 FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5167
SELECT DISTINCT 35 + col0 DIV - 54 AS col0 FROM tab2 AS cor0
----
34
35
skipif mysql # not compatible
query I rowsort label-5167
SELECT DISTINCT 35 + col0 / - 54 AS col0 FROM tab2 AS cor0
----
34
35
query I rowsort
SELECT + + ( - col2 ) AS col0 FROM tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT + col1 + ( + ( col0 ) * col1 ) FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT col1 * + col2 + - col0 AS col2 FROM tab2 cor0
----
1456
567
830
query I rowsort
SELECT + + col1 * 71 - col1 FROM tab2 AS cor0
----
1190
2170
4130
onlyif mysql # use DIV operator for integer division
query I rowsort label-5172
SELECT ALL - + col0 * - cor0.col1 DIV + col1 FROM tab2 AS cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - + col0 * - cor0.col1 / + col1 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT ALL + 50 * col1 * tab1.col1 FROM tab1
----
33800
5000
8450
query I rowsort
SELECT ALL 44 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5175
SELECT - 64 DIV col0 AS col0 FROM tab0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-5175
SELECT - 64 / col0 AS col0 FROM tab0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col1 * col2 col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT + 9 * + col1 AS col0 FROM tab2 AS cor0
----
153
279
531
query I rowsort
SELECT ALL 36 AS col0 FROM tab1 cor0
----
36
36
36
query I rowsort
SELECT DISTINCT + col1 * ( - col2 * + tab2.col2 ) AS col2 FROM tab2
----
-22599
-24548
-39884
query I rowsort
SELECT - ( - col1 ) + col0 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5181
SELECT col0 DIV 78 + - cor0.col0 DIV col0 col0 FROM tab0 AS cor0
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5181
SELECT col0 / 78 + - cor0.col0 / col0 col0 FROM tab0 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL cor0.col2 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-5183
SELECT ALL col0 DIV - ( - col0 * + col1 ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5183
SELECT ALL col0 / - ( - col0 * + col1 ) AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT DISTINCT tab1.col2 DIV col2 AS col1 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT tab1.col2 / col2 AS col1 FROM tab1
----
1
query I rowsort
SELECT ALL - col0 * 69 AS col1 FROM tab2
----
-483
-5382
-5451
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5186
SELECT CAST( + col1 AS SIGNED ) + col2 AS col0 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-5186
SELECT CAST ( + col1 AS INTEGER ) + col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT + col0 + + 40 AS col0 FROM tab2 AS cor0
----
118
119
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5188
SELECT CAST( NULL AS SIGNED ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5188
SELECT CAST ( NULL AS INTEGER ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5189
SELECT + - 98 DIV + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-5189
SELECT + - 98 / + cor0.col0 FROM tab0 AS cor0
----
-1
-2
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-5190
SELECT col0 DIV + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5190
SELECT col0 / + cor0.col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + col2 * 66 + + col1 * + 28 AS col0 FROM tab2
----
2650
2984
3368
onlyif mysql # use DIV operator for integer division
query I rowsort label-5193
SELECT col0 - + 70 DIV - col2 AS col1 FROM tab1
----
4
65
80
skipif mysql # not compatible
query I rowsort label-5193
SELECT col0 - + 70 / - col2 AS col1 FROM tab1
----
4
65
80
query I rowsort
SELECT DISTINCT 24 * + col1 * col0 + - ( col0 + col2 * 78 ) FROM tab2
----
108342
29189
3095
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5195
SELECT + CAST( + 70 AS SIGNED ) * - col0 * ( - col0 ) AS col0 FROM tab0
----
40320
554470
85750
skipif mysql # not compatible
query I rowsort label-5195
SELECT + CAST ( + 70 AS INTEGER ) * - col0 * ( - col0 ) AS col0 FROM tab0
----
40320
554470
85750
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5197
SELECT ALL - + 86 DIV col1 FROM tab1 cor0
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - + 86 / col1 FROM tab1 cor0
----
-3
-6
-8
query I rowsort
SELECT + ( + col2 * + col2 ) - - ( col0 ) AS col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT + 24 * col1 AS col2 FROM tab1 AS cor0
----
240
312
624
query I rowsort
SELECT DISTINCT 48 + col1 + + col1 AS col0 FROM tab0
----
220
230
242
query I rowsort
SELECT DISTINCT - 57 + col1 AS col1 FROM tab1
----
-31
-44
-47
query I rowsort
SELECT ALL + 84 + col2 FROM tab0
----
117
166
85
query I rowsort
SELECT - 44 + col1 * col1 * - ( + col1 ) AS col2 FROM tab1
----
-1044
-17620
-2241
query I rowsort
SELECT col0 + 30 * + tab0.col2 AS col1 FROM tab0
----
1014
2549
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-5205
SELECT 94 DIV 57 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
skipif mysql # not compatible
query I rowsort label-5205
SELECT 94 / 57 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - + cor0.col1 * col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT - + 65 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-3510
-3705
-6240
query I rowsort
SELECT - - col1 + col0 * col2 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-5210
SELECT ALL - cor0.col1 + + col0 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
-4
-80
-85
skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL - cor0.col1 + + col0 * col0 / col1 AS col1 FROM tab0 AS cor0
----
-4
-80
-85
query I rowsort
SELECT DISTINCT - + cor0.col1 + col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - - 82 + - col2 AS col0 FROM tab0 AS cor0
----
0
49
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5213
SELECT DISTINCT + - col2 + - cor0.col1 * - col0 DIV + col0 AS col2 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-5213
SELECT DISTINCT + - col2 + - cor0.col1 * - col0 / + col0 AS col2 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT 76 AS col2 FROM tab1 AS cor0
----
76
76
76
query I rowsort
SELECT DISTINCT - - 77 * + col2 FROM tab2 AS cor0
----
2002
2079
2926
query I rowsort
SELECT ALL - + col2 * col1 AS col2 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5217
SELECT - 52 * - col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5217
SELECT - 52 * - col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 * - col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 * ( 72 ) FROM tab1
----
216
4608
5760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5220
SELECT - col0 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5220
SELECT - col0 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col2 + - 34 + 96 FROM tab2
----
100
88
89
query I rowsort
SELECT DISTINCT - col2 * - 91 * 73 FROM tab2 AS cor0
----
172718
179361
252434
query I rowsort
SELECT ALL - + col0 + + col1 AS col2 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 - + col1 AS col2 FROM tab0 AS cor0
----
-7482
-8372
-9506
query I rowsort
SELECT DISTINCT - col2 + col2 * 27 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT DISTINCT + - col1 - - col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT - col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL cor0.col0 + + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5229
SELECT - col0 DIV col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5229
SELECT - col0 / col0 col2 FROM tab2 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-5230
SELECT ALL + col1 DIV + 39 AS col1 FROM tab0 AS cor0
----
2
2
2
skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL + col1 / + 39 AS col1 FROM tab0 AS cor0
----
2
2
2
query I rowsort
SELECT DISTINCT + - col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
-45
4039
6304
onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT ALL - ( col1 ) + col1 DIV - col1 FROM tab1 cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL - ( col1 ) + col1 / - col1 FROM tab1 cor0
----
-11
-14
-27
query I rowsort
SELECT ALL + 13 + - 68 * + col1 AS col2 FROM tab1 cor0
----
-1755
-667
-871
query I rowsort
SELECT DISTINCT 80 FROM tab0, tab1 AS cor0
----
80
query I rowsort
SELECT DISTINCT 51 * + col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT ALL cor0.col2 + ( col0 ) FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT - ( - 76 ) FROM tab0 AS cor0
----
76
76
76
query I rowsort
SELECT - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 * col1 + col0 + + tab2.col2 col2 FROM tab2
----
-119548
-50917
-5825
query I rowsort
SELECT ALL + + col2 + col0 * - 99 AS col1 FROM tab1 AS cor0
----
-243
-6279
-7824
query I rowsort
SELECT ALL cor0.col1 * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 5 + - col1 * + col1 FROM tab2 AS cor0
----
-284
-3476
-956
query I rowsort
SELECT ALL col1 * col2 * col1 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT DISTINCT + 40 * - col1 FROM tab0
----
-3440
-3640
-3880
query I rowsort
SELECT - 85 AS col1 FROM tab2
----
-85
-85
-85
query I rowsort
SELECT col1 + col2 * cor0.col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT + col1 * - ( col0 ) * - col1 + 58 - + col1 FROM tab1 AS cor0
----
13565
2060
6448
onlyif mysql # use DIV operator for integer division
query I rowsort label-5248
SELECT DISTINCT - col2 DIV 43 AS col2 FROM tab0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - col2 / 43 AS col2 FROM tab0
----
-1
0
query I rowsort
SELECT + col2 * 15 + col2 - + col2 * - ( 49 ) FROM tab2 AS cor0
----
1690
1755
2470
query I rowsort
SELECT - col0 + ( + cor0.col2 * + col2 ) + col2 FROM tab1 AS cor0
----
2967
3242
9232
query I rowsort
SELECT + + col0 + + 11 * - col0 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT + col1 + - 67 FROM tab1 AS cor0
----
-41
-54
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5253
SELECT + + col0 DIV + cor0.col0 + - col1 * - cor0.col1 * col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
1058
17631
2294
skipif mysql # not compatible
query I rowsort label-5253
SELECT + + col0 / + cor0.col0 + - col1 * - cor0.col1 * col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
1058
17631
2294
query I rowsort
SELECT + - col2 + + ( 42 * col1 ) FROM tab2 AS cor0
----
1275
2452
676
query I rowsort
SELECT - ( + col2 + col2 * ( - col2 ) ) AS col1 FROM tab0
----
0
1056
6642
query I rowsort
SELECT ALL - ( + col1 ) * + col0 + 0 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + - 45 + 88 AS col1 FROM tab0 AS cor0
----
43
query I rowsort
SELECT DISTINCT col0 * + col1 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - + col0 + 39 * - col2 FROM tab1 AS cor0
----
-2109
-2287
-3824
query I rowsort
SELECT DISTINCT - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-5261
SELECT DISTINCT + - ( cor0.col0 ) + col1 DIV - ( + cor0.col2 * + col1 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT + - ( cor0.col0 ) + col1 / - ( + cor0.col2 * + col1 ) AS col2 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL col2 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5263
SELECT DISTINCT + + ( + cor0.col2 ) DIV col1 + 24 FROM tab0 cor0
----
24
skipif mysql # not compatible
query I rowsort label-5263
SELECT DISTINCT + + ( + cor0.col2 ) / col1 + 24 FROM tab0 cor0
----
24
query I rowsort
SELECT DISTINCT + col0 + + 74 FROM tab0 AS cor0
----
109
163
98
query I rowsort
SELECT - - ( - col1 ) * col2 AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col1 + 1 AS col2 FROM tab0 cor0
----
-85
-90
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5267
SELECT ALL + 61 + col1 DIV - col1 FROM tab0 AS cor0
----
60
60
60
skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + 61 + col1 / - col1 FROM tab0 AS cor0
----
60
60
60
query I rowsort
SELECT ALL + 59 * - col1 FROM tab2 AS cor0
----
-1003
-1829
-3481
query I rowsort
SELECT 0 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT - 57 * col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
query I rowsort
SELECT 35 FROM tab1 cor0
----
35
35
35
query I rowsort
SELECT - + 87 FROM tab0 AS cor0
----
-87
-87
-87
query I rowsort
SELECT - ( col0 ) * + col1 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + + col1 * + col2 * col2 AS col0 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - 17 + + col0 AS col0 FROM tab0
----
18
7
72
query I rowsort
SELECT + + col2 + + cor0.col1 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL + - cor0.col0 * col2 + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5279
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5279
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5280
SELECT DISTINCT + col0 DIV - 5 FROM tab1 cor0
----
-12
-16
0
skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT + col0 / - 5 FROM tab1 cor0
----
-12
-16
0
query I rowsort
SELECT ALL + - col2 * + ( + col2 ) + + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT cor0.col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5283
SELECT + CAST( NULL AS SIGNED ) * 75 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5283
SELECT + CAST ( NULL AS INTEGER ) * 75 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - ( col1 ) + col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + cor1.col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT ( col2 ) * + col1 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + + 59 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to e29fef8cdec1ee45a71d213f16d2f1d3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5288
SELECT ALL CAST( 33 AS SIGNED ) FROM tab2
----
33
33
33
skipif mysql # not compatible
query I rowsort label-5288
SELECT ALL CAST ( 33 AS INTEGER ) FROM tab2
----
33
33
33
query I rowsort
SELECT DISTINCT col1 * + col2 + col0 AS col2 FROM tab0
----
132
2862
7551
query I rowsort
SELECT ALL - col2 * + col1 + + 54 FROM tab2
----
-1480
-592
-783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5291
SELECT + + col0 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5291
SELECT + + col0 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + - col2 + col0 * col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT - col1 * + 81 + - col1 AS col0 FROM tab2 AS cor0
----
-1394
-2542
-4838
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5294
SELECT - col0 + CAST( col1 AS SIGNED ) * col1 FROM tab1 AS cor0
----
36
673
89
skipif mysql # not compatible
query I rowsort label-5294
SELECT - col0 + CAST ( col1 AS INTEGER ) * col1 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT col0 * + ( - cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5296
SELECT + CAST( NULL AS SIGNED ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5296
SELECT + CAST ( NULL AS INTEGER ) * cor0.col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - ( col0 ) + col2 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT - + col0 * ( col1 + - col0 ) AS col1 FROM tab2 AS cor0
----
-168
1482
4898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( 94 ) * cor0.col0 col1 FROM tab1 cor0
----
282
6016
7520
query I rowsort
SELECT ALL col1 + 71 + + cor0.col1 FROM tab2 cor0
----
105
133
189
onlyif mysql # use DIV operator for integer division
query I rowsort label-5301
SELECT - 0 DIV cor0.col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5301
SELECT - 0 / cor0.col1 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + 59 FROM tab0, tab1 AS cor0
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc
query I rowsort
SELECT ALL - 43 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
query I rowsort
SELECT ( col2 ) + ( + col0 ) FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + col0 + col0 * col0 AS col1 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL 6 * tab1.col0 + col2 FROM tab1
----
441
576
72
query I rowsort
SELECT ALL 20 + col0 + - tab1.col2 FROM tab1
----
-31
27
4
query I rowsort
SELECT ( - cor0.col1 ) AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL + + col1 + + cor0.col1 FROM tab2 AS cor0
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + - col2 col1 FROM tab0 AS cor0
----
-1122
-2
-6806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5311
SELECT DISTINCT CAST( NULL AS SIGNED ) * - cor0.col2 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - cor0.col2 FROM tab0, tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5312
SELECT DISTINCT + col2 * CAST( 96 * + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
279936
311904
884736
skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT + col2 * CAST ( 96 * + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
279936
311904
884736
query I rowsort
SELECT + col2 * + 71 + + col1 + col1 * col2 FROM tab1 AS cor0
----
4627
5264
8077
query I rowsort
SELECT DISTINCT col0 + col1 + ( col0 ) * + col0 FROM tab0 AS cor0
----
1357
686
8101
query I rowsort
SELECT DISTINCT + cor0.col0 * + 50 + - col1 AS col2 FROM tab1 AS cor0
----
124
3190
3987
query I rowsort
SELECT DISTINCT + col0 + 44 AS col2 FROM tab1 AS cor0
----
108
124
47
query I rowsort
SELECT DISTINCT cor0.col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT + col1 * + 94 AS col2 FROM tab1 cor0
----
1222
2444
940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT + + col1 * + CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5319
SELECT + + col1 * + CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * + ( 99 ) + + col1 col1 FROM tab1 AS cor0
----
-1274
-2548
-980
onlyif mysql # use DIV operator for integer division
query I rowsort label-5321
SELECT ALL - col2 * col2 + - col0 DIV + 53 AS col2 FROM tab2
----
-1445
-677
-729
skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - col2 * col2 + - col0 / + 53 AS col2 FROM tab2
----
-1445
-677
-729
query I rowsort
SELECT DISTINCT - 49 AS col1 FROM tab0
----
-49
query I rowsort
SELECT 41 + + 69 AS col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7e4dd64faed839120b3a86d2966bb533
query I rowsort
SELECT ALL - cor0.col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL - + col2 * cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5327
SELECT ALL col2 + CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-5327
SELECT ALL col2 + CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
-53
-9
-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 - - col0 + + cor0.col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT col1 * + 45 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT DISTINCT - col1 * + col1 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT + 46 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
46
query I rowsort
SELECT DISTINCT - tab0.col2 - + col1 * - col2 FROM tab0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - col0 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT - col2 + ( col0 ) FROM tab0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5336
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5336
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5337
SELECT col0 * - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5337
SELECT col0 * - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - 18 * col1 + tab1.col1 FROM tab1
----
-11510
-1378
-18707
query I rowsort
SELECT DISTINCT col2 * ( col1 ) * col1 AS col1 FROM tab2
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5340
SELECT DISTINCT - col1 DIV + ( - 2 + + col0 ) AS col2 FROM tab2 AS cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - col1 / + ( - 2 + + col0 ) AS col2 FROM tab2 AS cor0
----
-6
0
query I rowsort
SELECT cor1.col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT DISTINCT + tab2.col2 * tab2.col0 + + 56 AS col1 FROM tab2
----
2084
245
3058
query I rowsort
SELECT - 19 * col1 FROM tab0 AS cor0
----
-1634
-1729
-1843
query I rowsort
SELECT + col0 * + col2 - + col2 FROM tab0
----
34
7216
759
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5345
SELECT DISTINCT + - col0 + col1 * + CAST( + ( + cor0.col2 ) AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-11061
-25954
-90584
skipif mysql # not compatible
query I rowsort label-5345
SELECT DISTINCT + - col0 + col1 * + CAST ( + ( + cor0.col2 ) AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-11061
-25954
-90584
query I rowsort
SELECT col0 * + col0 * col0 AS col1 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab2 AS cor0
----
37
query I rowsort
SELECT DISTINCT + - col0 * col0 AS col2 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL + col1 + + col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL 49 * + 11 FROM tab1
----
539
539
539
query I rowsort
SELECT + 14 FROM tab1, tab0 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT ALL + tab2.col1 + col1 AS col2 FROM tab2
----
118
34
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 + - col2 + + col0 col2 FROM tab2
----
-2
59
70
query I rowsort
SELECT DISTINCT ( col0 * tab2.col2 ) + + ( - col1 ) + - col0 FROM tab2
----
151
1891
2906
onlyif mysql # use DIV operator for integer division
query I rowsort label-5355
SELECT - 24 DIV col2 AS col2 FROM tab0
----
-24
0
0
skipif mysql # not compatible
query I rowsort label-5355
SELECT - 24 / col2 AS col2 FROM tab0
----
-24
0
0
query I rowsort
SELECT + + 70 * + col2 FROM tab2 AS cor0
----
1820
1890
2660
query I rowsort
SELECT ALL - + 57 FROM tab0 AS cor0
----
-57
-57
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-5358
SELECT DISTINCT 78 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-5358
SELECT DISTINCT 78 / cor0.col1 AS col0 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT + 43 * + col0 FROM tab0 AS cor0
----
1032
1505
3827
query I rowsort
SELECT ALL + 26 + + col2 FROM tab0 AS cor0
----
108
27
59
query I rowsort
SELECT ALL - col2 + + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT + + col1 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL col2 * - col2 * col1 AS col2 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + 48 FROM tab2 AS cor0
----
48
query I rowsort
SELECT + col2 * col2 * 67 FROM tab0 AS cor0
----
450508
67
72963
query I rowsort
SELECT + - 61 + - col0 * - col0 FROM tab2 cor0
----
-12
6023
6180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5367
SELECT ( + ( + col1 ) ) * CAST( 24 AS SIGNED ) col1 FROM tab0 AS cor0
----
2064
2184
2328
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5367
SELECT ( + ( + col1 ) ) * CAST ( 24 AS INTEGER ) col1 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT col1 + ( 3 ) * tab2.col0 * ( col1 ) FROM tab2
----
13865
4046
682
query I rowsort
SELECT ALL col2 * - ( col2 * tab0.col2 ) AS col2 FROM tab0
----
-1
-35937
-551368
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
17
31
59
query I rowsort
SELECT ( - col1 ) * + col1 * ( col0 ) FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT - ( 54 ) * col1 FROM tab0 AS cor0
----
-4644
-4914
-5238
query I rowsort
SELECT + 40 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3
query I rowsort
SELECT col2 * - tab2.col1 * + 60 + + col0 * col0 FROM tab2
----
-32519
-50171
-85956
query I rowsort
SELECT col0 + col1 * - col0 AS col0 FROM tab2
----
-1264
-210
-4524
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0, tab0 AS cor1
----
3645 values hashing to 862fba9ac85fdf2cec88a0bec0808b7e
query I rowsort
SELECT 85 + + col1 * col1 AS col1 FROM tab2 AS cor0
----
1046
3566
374
query I rowsort
SELECT + + cor0.col1 * - col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5379
SELECT ALL CAST( NULL AS SIGNED ) * 18 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL CAST ( NULL AS INTEGER ) * 18 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col0 + col1 FROM tab2 AS cor0
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 + - col0 * - col0 col2 FROM tab1 AS cor0
----
-17
4086
6387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 58 col2 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT + + 78 * + 86 FROM tab2 AS cor0
----
6708
6708
6708
query I rowsort
SELECT ALL 75 * - col1 + - ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
-6536
-6916
-7372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * 54 * + col2 col1 FROM tab0 cor0
----
153276
403037
5273
query I rowsort
SELECT ALL - ( col0 ) + col2 * + col1 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT + + col1 - + col0 FROM tab0 AS cor0
----
2
62
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5388
SELECT ALL - 48 * col1 DIV - 31 AS col2 FROM tab0 AS cor0
----
133
140
150
skipif mysql # not compatible
query I rowsort label-5388
SELECT ALL - 48 * col1 / - 31 AS col2 FROM tab0 AS cor0
----
133
140
150
onlyif mysql # use DIV operator for integer division
query I rowsort label-5389
SELECT DISTINCT - col0 * col2 + - col1 DIV col2 AS col2 FROM tab0 cor0
----
-132
-7299
-794
skipif mysql # not compatible
query I rowsort label-5389
SELECT DISTINCT - col0 * col2 + - col1 / col2 AS col2 FROM tab0 cor0
----
-132
-7299
-794
query I rowsort
SELECT + 16 AS col1 FROM tab0
----
16
16
16
query I rowsort
SELECT ALL - 57 * col2 + col0 * col0 FROM tab1 AS cor0
----
-3069
847
928
query I rowsort
SELECT DISTINCT - 87 + + col1 AS col0 FROM tab1 AS cor0
----
-61
-74
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5393
SELECT ALL + 86 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL + 86 / cor0.col1 AS col2 FROM tab1 AS cor0
----
3
6
8
query I rowsort
SELECT + col1 * - ( 42 ) FROM tab1 AS cor0
----
-1092
-420
-546
query I rowsort
SELECT DISTINCT col0 * 81 AS col2 FROM tab1 cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT + - col2 * - 22 AS col2 FROM tab2 AS cor0
----
572
594
836
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79
query I rowsort
SELECT ALL + col2 * col1 * col2 FROM tab0 AS cor0
----
611884
93654
97
query I rowsort
SELECT - + cor0.col0 + + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 59 - 82 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5401
SELECT ALL - - cor0.col2 DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL - - cor0.col2 / - col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT col1 + col1 * col0 AS col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-5403
SELECT col2 * col1 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5403
SELECT col2 * col1 / cor0.col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 * + 90 AS col1 FROM tab0
----
7740
8190
8730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5405
SELECT cor0.col0 + CAST( NULL AS SIGNED ) * col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5405
SELECT cor0.col0 + CAST ( NULL AS INTEGER ) * col1 * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + 70 AS col0 FROM tab2 cor0
----
148
149
77
query I rowsort
SELECT - - col1 * - 63 + - col1 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT + col2 + - col2 * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + col0 * - col2 + - col2 * + col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-16816
-3075
-6833
query I rowsort
SELECT + ( + col0 ) + col0 * col0 AS col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT ALL - + 27 + + col1 * col1 + - col0 AS col2 FROM tab1 AS cor0
----
62
646
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col2 FROM tab0, tab0 AS cor0
----
31
query I rowsort
SELECT DISTINCT + + col1 + cor0.col2 * ( + col2 ) FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT 21 + + col2 FROM tab0 AS cor0
----
103
22
54
query I rowsort
SELECT DISTINCT ( - col1 ) + + col1 * col2 * - col0 FROM tab1 AS cor0
----
-36490
-4238
-99853
query I rowsort
SELECT col0 + ( col2 ) FROM tab2
----
104
117
34
query I rowsort
SELECT - + 14 + col0 * + 87 * col2 AS col0 FROM tab2 AS cor0
----
16429
176422
261160
query I rowsort
SELECT - ( col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 95 * col0 FROM tab0
----
-2280
-3325
-8455
query I rowsort
SELECT + col2 + cor0.col1 * col0 AS col2 FROM tab2 AS cor0
----
1381
244
4628
query I rowsort
SELECT + col0 * - col2 AS col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5422
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-5422
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT + col2 * + col2 + + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL col0 * + col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT DISTINCT 4 AS col1 FROM tab0
----
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5426
SELECT CAST( NULL AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5426
SELECT CAST ( NULL AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5427
SELECT - 69 DIV + col0 + + CAST( col1 + col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
6
73
93
skipif mysql # not compatible
query I rowsort label-5427
SELECT - 69 / + col0 + + CAST ( col1 + col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
6
73
93
query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab2 AS cor0
----
-27
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
972 values hashing to caf6adb9936510208f5945a7e5c76f14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5430
SELECT - CAST( NULL AS DECIMAL ) * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5430
SELECT - CAST ( NULL AS REAL ) * col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 21 + col1 + col1 AS col1 FROM tab2
----
13
41
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT DISTINCT + tab0.col2 + - tab0.col0 + col1 DIV - ( col0 ) AS col1 FROM tab0
----
-36
-8
6
skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT + tab0.col2 + - tab0.col0 + col1 / - ( col0 ) AS col1 FROM tab0
----
-36
-8
6
query I rowsort
SELECT - - cor0.col0 + cor0.col1 * + col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + 50 * col2 + 42 AS col0 FROM tab0
----
1692
4142
92
query I rowsort
SELECT - ( + col1 ) FROM tab2 cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5436
SELECT ALL + - col2 + - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL + - col2 + - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col0 * 86 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to e0bc39b0523a34144e0638d72f860e8b
query I rowsort
SELECT ALL - col0 - col1 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT ALL col2 + + ( - col0 ) * col1 - col0 AS col1 FROM tab1
----
-1024
-27
-647
query I rowsort
SELECT ALL + tab0.col0 * col0 - col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT ALL col0 - - 55 * - ( col1 + 27 ) FROM tab0
----
-6191
-6401
-6785
query I rowsort
SELECT col0 + - col0 * + col1 FROM tab1
----
-576
-75
-960
query I rowsort
SELECT ALL + 19 FROM tab2, tab0 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-5444
SELECT tab0.col1 DIV - col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5444
SELECT tab0.col1 / - col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + col2 * ( + 54 * + col2 ) AS col0 FROM tab1
----
157464
175446
497664
query I rowsort
SELECT - + col2 * - 66 AS col1 FROM tab2 AS cor0
----
1716
1782
2508
query I rowsort
SELECT - col1 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT - - col1 + - col2 * col2 * - col2 FROM tab0 AS cor0
----
36023
551459
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5449
SELECT DISTINCT - + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5449
SELECT DISTINCT - + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - cor0.col1 * + cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 82 col0 FROM tab2 AS cor0
----
-82
query I rowsort
SELECT - ( 41 ) - + col0 AS col0 FROM tab2 cor0
----
-119
-120
-48
query I rowsort
SELECT 16 + + col1 FROM tab0 AS cor0
----
102
107
113
query I rowsort
SELECT + col0 + - col2 - + col0 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5455
SELECT ALL + CAST( - col1 AS SIGNED ) + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL + CAST ( - col1 AS INTEGER ) + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT + ( - col2 ) + + col1 + cor0.col1 FROM tab1 AS cor0
----
-2
-37
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5457
SELECT + 8 DIV col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5457
SELECT + 8 / col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + CAST ( col1 AS REAL ) + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 * ( + 79 ) AS col2 FROM tab1 AS cor0
----
1107
2057
854
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5460
SELECT + CAST( + col0 AS SIGNED ) - - col0 * ( + 82 ) col2 FROM tab2 AS cor0
----
581
6474
6557
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5460
SELECT + CAST ( + col0 AS INTEGER ) - - col0 * ( + 82 ) col2 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT ALL - 99 + - 6 + - col0 FROM tab1 cor0
----
-108
-169
-185
onlyif mysql # use DIV operator for integer division
query I rowsort label-5462
SELECT + cor0.col1 + col0 DIV col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-5462
SELECT + cor0.col1 + col0 / col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col0 + - ( tab2.col0 ) FROM tab2
----
0
query I rowsort
SELECT DISTINCT + - col2 * col1 + col1 * 67 FROM tab0 AS cor0
----
-1365
2924
6402
query I rowsort
SELECT DISTINCT + - ( - ( - col2 ) ) * ( - col1 ) + - col2 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5466
SELECT - + CAST( NULL AS DECIMAL ) * col2 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5466
SELECT - + CAST ( NULL AS REAL ) * col2 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - 77 * col1 + + col1 FROM tab1 AS cor0
----
1014
2028
780
query I rowsort
SELECT DISTINCT col0 + + col0 + - col2 AS col0 FROM tab2
----
-13
120
130
query I rowsort
SELECT - 25 FROM tab0, tab2 AS cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
query I rowsort
SELECT + ( 61 ) * col1 FROM tab2 AS cor0
----
1037
1891
3599
query I rowsort
SELECT DISTINCT + 29 + + 32 - + col2 * 72 AS col0 FROM tab2 AS cor0
----
-1811
-1883
-2675
query I rowsort
SELECT + col0 * + 66 FROM tab1 AS cor0
----
198
4224
5280
onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT ALL - col2 * col0 + col0 + - col2 DIV - col1 FROM tab0 cor0
----
-7209
-768
0
skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - col2 * col0 + col0 + - col2 / - col1 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab2, tab0 cor0
----
53
query I rowsort
SELECT ALL cor1.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col0 + col0 * + col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + - ( 57 ) + col2 AS col2 FROM tab0 AS cor0
----
-24
-56
25
query I rowsort
SELECT ( + 68 ) AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 7ff6433dda3248dce73040b2c590f3da
query I rowsort
SELECT - col2 * col2 + 76 FROM tab1 AS cor0
----
-2840
-3173
-9140
query I rowsort
SELECT DISTINCT + + col1 + col0 * - 39 FROM tab0 AS cor0
----
-1268
-3380
-850
query I rowsort
SELECT DISTINCT - - col1 * cor0.col1 AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - + 48 * - cor0.col2 + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
12288
2754
6384
query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT 3 + + col0 - + 57 AS col2 FROM tab0 AS cor0
----
-19
-30
35
query I rowsort
SELECT DISTINCT - - 50 AS col1 FROM tab0 AS cor0
----
50
query I rowsort
SELECT ALL + ( 53 ) * col2 + - col2 * - col2 * - tab1.col1 AS col2 FROM tab1
----
-114720
-29469
-72954
query I rowsort
SELECT ALL ( - col2 ) + - col2 FROM tab0
----
-164
-2
-66
query I rowsort
SELECT ALL - col1 + col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col1 * 31 + + col0 AS col0 FROM tab1
----
374
483
809
query I rowsort
SELECT - 67 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT ALL - - col1 * col2 - 78 AS col2 FROM tab0 AS cor0
----
19
2760
7384
query I rowsort
SELECT ALL col1 * + col1 + + ( + col1 ) + - cor0.col2 * + cor0.col0 * + col2 FROM tab2 AS cor0
----
-113770
-4111
-49188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5493
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / col2 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / col2 - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5494
SELECT DISTINCT - col0 * CAST( + cor0.col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT - col0 * CAST ( + cor0.col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT col2 + 28 FROM tab1 cor0
----
124
82
85
query I rowsort
SELECT DISTINCT - col0 * - 5 * col1 FROM tab0 AS cor0
----
10320
16975
40495
query I rowsort
SELECT ALL - - col0 * cor0.col2 * 15 FROM tab0 AS cor0
----
109470
11880
525
query I rowsort
SELECT DISTINCT col2 * cor0.col0 + + col1 + - col2 * col1 AS col0 FROM tab1 cor0
----
-1216
3088
6445
query I rowsort
SELECT DISTINCT col0 + cor0.col2 AS col2 FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + ( cor0.col2 ) * col2 col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT col0 + - tab0.col1 * tab0.col1 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # use DIV operator for integer division
query I rowsort label-5502
SELECT ( + col2 ) - col0 DIV col1 AS col0 FROM tab1
----
51
54
90
skipif mysql # not compatible
query I rowsort label-5502
SELECT ( + col2 ) - col0 / col1 AS col0 FROM tab1
----
51
54
90
query I rowsort
SELECT ALL - - col0 + + 33 AS col1 FROM tab2 AS cor0
----
111
112
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT col0 * - tab1.col0 FROM tab1
----
-4096
-6400
-9
query I rowsort
SELECT col1 * ( + 17 ) + col1 FROM tab0
----
1548
1638
1746
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 - 67 FROM tab0 AS cor0 CROSS JOIN tab1, tab1 cor1, tab1 AS cor2, tab1 AS cor3
----
243 values hashing to edc6365768311692c0b7f6431e312d5c
query I rowsort
SELECT - tab1.col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
query I rowsort
SELECT - + col2 * 34 FROM tab2 AS cor0
----
-1292
-884
-918
query I rowsort
SELECT DISTINCT - - col0 * - 10 FROM tab2 AS cor0
----
-70
-780
-790
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5512
SELECT DISTINCT - col1 * + CAST( + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-5512
SELECT DISTINCT - col1 * + CAST ( + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to e6082e644debd74dcf1042b918d79199
query I rowsort
SELECT + 75 * + col2 AS col0 FROM tab0 AS cor0
----
2475
6150
75
query I rowsort
SELECT - col0 - - col0 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 * col0 - - col0 AS col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + cor0.col2 col1 FROM tab0 cor0
----
-34
-7
9
query I rowsort
SELECT ALL - 31 * - col1 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT + col0 * col2 - - 84 * - 55 AS col0 FROM tab1 AS cor0
----
-4458
-972
3060
query I rowsort
SELECT - - 46 * + col2 - col2 FROM tab0 cor0
----
1485
3690
45
query I rowsort
SELECT ALL + 82 + - 50 AS col2 FROM tab1
----
32
32
32
query I rowsort
SELECT ALL - 49 + - 39 * col1 FROM tab1
----
-1063
-439
-556
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ( - cor1.col0 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT DISTINCT - 2 * col0 * tab2.col1 AS col2 FROM tab2
----
-2686
-434
-9204
query I rowsort
SELECT DISTINCT + 22 * col1 FROM tab0 AS cor0
----
1892
2002
2134
query I rowsort
SELECT ALL + col1 * + cor0.col0 + - 30 * - col0 AS col1 FROM tab1 AS cor0
----
168
2560
3440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab0 AS cor0
----
-71
-71
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5529
SELECT ALL - col2 - + col1 DIV - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5529
SELECT ALL - col2 - + col1 / - col2 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col2 * - col1 - ( col1 ) AS col1 FROM tab1 cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - cor0.col0 AS col1 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + col2 * col1 * col1 FROM tab0 AS cor0
----
244068
679042
9409
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * + col0 col2 FROM tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT + cor0.col0 * - 72 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to a7850e5ba276288fbd70c3d21a222b10
query I rowsort
SELECT 63 * col2 FROM tab0
----
2079
5166
63
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab2 AS cor0
----
86
91
97
query I rowsort
SELECT - + cor0.col1 - - ( col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL col0 + col2 * + col0 * - col0 FROM tab1 AS cor0
----
-233408
-483
-614320
query I rowsort
SELECT DISTINCT + - col0 * 33 + - cor0.col0 * - col0 AS col0 FROM tab2 cor0
----
-182
3510
3634
query I rowsort
SELECT cor0.col1 + col2 * col2 + cor0.col0 FROM tab0 AS cor0
----
1199
133
6904
query I rowsort
SELECT ALL + - col1 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col2 - col1 * + tab0.col2 AS col1 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT + col0 + tab1.col2 * + col0 - - col2 * - tab1.col2 AS col1 FROM tab1
----
-1456
-2751
463
query I rowsort
SELECT ALL - 90 - + col0 AS col0 FROM tab2
----
-168
-169
-97
query I rowsort
SELECT ALL - 53 AS col2 FROM tab2
----
-53
-53
-53
query I rowsort
SELECT + ( - col0 ) * + 23 * - col0 AS col2 FROM tab2
----
1127
139932
143543
query I rowsort
SELECT col2 + + 77 + + ( col2 ) FROM tab0
----
143
241
79
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5549
SELECT - col0 * CAST( + col0 AS SIGNED ) * + col2 + 42 AS col2 FROM tab0 AS cor0
----
-1183
-18966
-649480
skipif mysql # not compatible
query I rowsort label-5549
SELECT - col0 * CAST ( + col0 AS INTEGER ) * + col2 + 42 AS col2 FROM tab0 AS cor0
----
-1183
-18966
-649480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT + col0 * + 8 + 11 AS col1 FROM tab0 AS cor0
----
203
291
723
query I rowsort
SELECT col1 * 32 + + col2 AS col1 FROM tab1 cor0
----
377
512
886
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2 AS cor2
----
3645 values hashing to 28412d50061391eec23a02d0efcfb3f9
query I rowsort
SELECT ( ( col1 ) ) + ( cor0.col0 ) * col0 AS col1 FROM tab1 AS cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT + ( 72 ) * + col2 AS col0 FROM tab2 AS cor0
----
1872
1944
2736
query I rowsort
SELECT - 34 * + col1 - - ( col1 * + col0 ) AS col0 FROM tab0 cor0
----
-860
5005
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 64 col0 FROM tab2
----
64
64
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 + col0 * - col1 col1 FROM tab2 cor0
----
-1367
-241
-4626
query I rowsort
SELECT cor0.col1 - - col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + col2 * 90 + col1 FROM tab0 AS cor0
----
187
3056
7471
onlyif mysql # use DIV operator for integer division
query I rowsort label-5562
SELECT ALL + ( + col1 ) DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-5562
SELECT ALL + ( + col1 ) / - cor0.col0 AS col2 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT + + 57 * + 74 - col0 * + col2 AS col1 FROM tab2 AS cor0
----
1216
2190
4029
query I rowsort
SELECT DISTINCT 71 FROM tab1 AS cor0
----
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-5565
SELECT DISTINCT + - 79 DIV - ( col1 ) + col0 DIV col1 FROM tab2 AS cor0
----
2
8
skipif mysql # not compatible
query I rowsort label-5565
SELECT DISTINCT + - 79 / - ( col1 ) + col0 / col1 FROM tab2 AS cor0
----
2
8
query I rowsort
SELECT DISTINCT - 64 FROM tab1 AS cor0
----
-64
query I rowsort
SELECT + - 61 + 32 FROM tab1 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT + col0 + - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5569
SELECT ALL - CAST( - col0 AS SIGNED ) - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - CAST ( - col0 AS INTEGER ) - + col0 AS col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5570
SELECT + + CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5570
SELECT + + CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 + col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT - col1 * 64 AS col2 FROM tab0 AS cor0
----
-5504
-5824
-6208
query I rowsort
SELECT ALL col2 * + col2 * col0 + - col2 AS col0 FROM tab2 cor0
----
114038
5076
52702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 * col2 + col2 col1 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT - - 75 * - col1 + cor0.col0 FROM tab0 AS cor0
----
-6426
-6736
-7240
query I rowsort
SELECT ALL 9 * col0 AS col1 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT col2 * + col0 + col2 FROM tab1 AS cor0
----
216
3705
7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - + cor0.col1 col0 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5579
SELECT - 46 * col1 - - col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5579
SELECT - 46 * col1 - - col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5580
SELECT ALL - cor0.col2 DIV - 12 + col0 AS col1 FROM tab1 AS cor0
----
68
7
88
skipif mysql # not compatible
query I rowsort label-5580
SELECT ALL - cor0.col2 / - 12 + col0 AS col1 FROM tab1 AS cor0
----
68
7
88
query I rowsort
SELECT + + ( + col2 ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - 86 + ( col2 + col1 ) AS col0 FROM tab0
----
12
33
87
query I rowsort
SELECT DISTINCT - col1 + + col1 * + col1 FROM tab1 cor0
----
156
650
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col1 + col2 col2 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 82 * + col1 col2 FROM tab2 AS cor0
----
-1394
-2542
-4838
query I rowsort
SELECT DISTINCT ( + col0 ) + col0 * ( + 1 * col2 ) FROM tab0
----
70
7387
816
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 CROSS JOIN tab0, tab1 AS cor1
----
972 values hashing to 5621675b1bd32b061d284d0444c76601
query I rowsort
SELECT + col0 * - ( col1 ) AS col2 FROM tab0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col2 col2 FROM tab0 AS cor0
----
164
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
query I rowsort
SELECT DISTINCT - 44 FROM tab2, tab1 AS cor0
----
-44
query I rowsort
SELECT DISTINCT - + col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT col0 + - col1 * + cor0.col0 + col2 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + 45 + - cor1.col0 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0965a8fe3c8e7b352eb4b9983cf04afb
query I rowsort
SELECT col1 * - 71 * + col1 - col1 AS col2 FROM tab1
----
-12012
-48022
-7110
query I rowsort
SELECT DISTINCT col0 * 83 * - col2 AS col0 FROM tab0
----
-2905
-605734
-65736
query I rowsort
SELECT - col2 * 88 + col2 AS col1 FROM tab0
----
-2871
-7134
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-5599
SELECT DISTINCT - - col1 DIV - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5599
SELECT DISTINCT - - col1 / - cor0.col2 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT - - col0 * - cor0.col0 * 55 FROM tab2 AS cor0
----
-2695
-334620
-343255
query I rowsort
SELECT - col1 * - 98 FROM tab0 AS cor0
----
8428
8918
9506
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455
query I rowsort
SELECT ALL ( tab1.col2 ) FROM tab1, tab0 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT DISTINCT col0 * + 60 FROM tab1
----
180
3840
4800
query I rowsort
SELECT ALL cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT cor0.col2 * + 37 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL - + cor0.col0 AS col2 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + - col2 + ( 63 ) FROM tab0 AS cor0
----
-19
30
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5609
SELECT + cor0.col2 + - col1 DIV - 76 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5609
SELECT + cor0.col2 + - col1 / - 76 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT - col1 + 58 * + tab2.col1 AS col0 FROM tab2
----
1767
3363
969
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5611
SELECT CAST( - ( - col2 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5611
SELECT CAST ( - ( - col2 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL + 79 + + col0 AS col1 FROM tab0 AS cor0
----
103
114
168
query I rowsort
SELECT DISTINCT + 78 - col0 * - col0 AS col0 FROM tab0 AS cor0
----
1303
654
7999
query I rowsort
SELECT DISTINCT + col1 * 13 + col0 - + 27 AS col1 FROM tab1 AS cor0
----
167
222
314
query I rowsort
SELECT DISTINCT + cor0.col1 + - 80 AS col1 FROM tab2 AS cor0
----
-21
-49
-63
query I rowsort
SELECT + + 84 + + 25 * - col1 AS col2 FROM tab2 AS cor0
----
-1391
-341
-691
query I rowsort
SELECT + ( + col2 ) * cor0.col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 90e25bbdedfdeba1119139dab203aeea
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 38 * - col0 * - col1 col0 FROM tab0 AS cor0
----
-129010
-307762
-78432
onlyif mysql # use DIV operator for integer division
query I rowsort label-5620
SELECT DISTINCT - col2 DIV col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-5620
SELECT DISTINCT - col2 / col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT + 70 * - col0 + col2 FROM tab2
----
-463
-5434
-5492
query I rowsort
SELECT 54 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT 96 AS col0 FROM tab2
----
96
96
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) + ( col2 + - col2 ) * ( col0 ) col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL + col1 * cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - + 52 FROM tab0 AS cor0
----
-52
query I rowsort
SELECT DISTINCT - col1 * col1 * col2 AS col2 FROM tab2 cor0
----
-10982
-25947
-90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-5628
SELECT DISTINCT - col0 DIV 23 AS col1 FROM tab1 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-5628
SELECT DISTINCT - col0 / 23 AS col1 FROM tab1 AS cor0
----
-2
-3
0
query I rowsort
SELECT + - col1 * - ( col0 ) AS col0 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5630
SELECT ALL - col2 * - CAST( cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - col2 * - CAST ( cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col2 * ( col0 ) AS col2 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5632
SELECT col0 * - col1 DIV ( + col1 ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-5632
SELECT col0 * - col1 / ( + col1 ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ALL + + col0 * 94 AS col2 FROM tab1 AS cor0
----
282
6016
7520
query I rowsort
SELECT ALL - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT - + col0 * + 10 FROM tab2 AS cor0
----
-70
-780
-790
query I rowsort
SELECT DISTINCT col2 + - 6 + - col2 FROM tab2 AS cor0
----
-6
query I rowsort
SELECT DISTINCT - + col2 * + col1 + 86 + - col2 AS col1 FROM tab0 AS cor0
----
-12
-2785
-7458
onlyif mysql # use DIV operator for integer division
query I rowsort label-5638
SELECT ALL + col0 + + col2 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + col0 + + col2 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT + - col2 * + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-5640
SELECT DISTINCT - ( tab1.col1 ) DIV + col0 + col0 FROM tab1
----
-5
64
80
skipif mysql # not compatible
query I rowsort label-5640
SELECT DISTINCT - ( tab1.col1 ) / + col0 + col0 FROM tab1
----
-5
64
80
query I rowsort
SELECT + cor0.col2 + + col1 * 4 FROM tab1 cor0
----
148
158
97
query I rowsort
SELECT DISTINCT col1 + col2 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT + 80 FROM tab2, tab0 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
query I rowsort
SELECT 8 * ( col2 ) FROM tab0
----
264
656
8
query I rowsort
SELECT + 94 * - col2 AS col2 FROM tab2
----
-2444
-2538
-3572
query I rowsort
SELECT DISTINCT + 5 * col2 AS col1 FROM tab0
----
165
410
5
query I rowsort
SELECT + 78 - - 40 FROM tab0 AS cor0
----
118
118
118
query I rowsort
SELECT 53 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 63949b5362442f48bd29195397a57dad
query I rowsort
SELECT - + 91 AS col1 FROM tab1 AS cor0
----
-91
-91
-91
query I rowsort
SELECT DISTINCT + ( 7 ) * - col1 AS col2 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT + col2 * col0 + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT ( + cor0.col2 ) + 78 * - cor0.col2 FROM tab2 AS cor0
----
-2002
-2079
-2926
query I rowsort
SELECT DISTINCT + 69 FROM tab0, tab2 AS cor0
----
69
query I rowsort
SELECT DISTINCT + 52 FROM tab1
----
52
query I rowsort
SELECT + + col1 * + col0 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5656
SELECT - col0 / + col0 AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + tab0.col2 + + tab0.col2 + - col0 AS col0 FROM tab0
----
-33
42
75
query I rowsort
SELECT DISTINCT + - col0 * + col0 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT + col1 * + 93 FROM tab1 AS cor0
----
1209
2418
930
query I rowsort
SELECT ALL + + col0 - ( 60 + - cor0.col0 ) FROM tab1 AS cor0
----
-54
100
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 * - 17 + ( col0 * - col2 ) col0 FROM tab2 AS cor0
----
-1586
-2356
270
query I rowsort
SELECT + cor0.col2 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + 43 AS col2 FROM tab2
----
43
43
43
query I rowsort
SELECT - cor0.col0 + cor0.col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col0 * + ( cor0.col2 ) * - col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT col2 + + 59 + - 37 AS col2 FROM tab0
----
104
23
55
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5669
SELECT cor0.col2 DIV col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5669
SELECT cor0.col2 / col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL 62 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 4c87430a2010fee8daf6d04acf0ad703
onlyif mysql # use DIV operator for integer division
query I rowsort label-5672
SELECT tab0.col1 DIV - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b8f8df541921aba01e37c4bb08861ad3
skipif mysql # not compatible
query I rowsort label-5672
SELECT tab0.col1 / - cor0.col1 FROM tab0, tab2 AS cor0
----
9 values hashing to b8f8df541921aba01e37c4bb08861ad3
query I rowsort
SELECT + - ( - col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5674
SELECT + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5674
SELECT + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + - 92 + 4 - + col2 AS col0 FROM tab0 AS cor0
----
-121
-170
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5676
SELECT CAST( 3 AS SIGNED ) * col0 + + cor0.col1 FROM tab0 AS cor0
----
158
202
358
skipif mysql # not compatible
query I rowsort label-5676
SELECT CAST ( 3 AS INTEGER ) * col0 + + cor0.col1 FROM tab0 AS cor0
----
158
202
358
query I rowsort
SELECT - ( + 4 ) AS col2 FROM tab0 AS cor0
----
-4
-4
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 * + ( col2 ) col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ( tab1.col2 ) * + cor0.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 24458b87d784ecaf9184f99bd12fb51a
query I rowsort
SELECT DISTINCT - col1 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT ALL - 11 + col1 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1354
-228
-4613
query I rowsort
SELECT + 43 FROM tab1, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT - 50 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to ece34ebef3a06d71156ce9f5c546aa60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5684
SELECT - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5684
SELECT - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * + col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + - ( + col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT 49 AS col2 FROM tab1 cor0
----
49
49
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-5688
SELECT tab0.col2 DIV col0 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5688
SELECT tab0.col2 / col0 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT 78 + 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
169
query I rowsort
SELECT + 17 * + col1 FROM tab1
----
170
221
442
query I rowsort
SELECT - 53 * col1 + col0 AS col1 FROM tab0 AS cor0
----
-4534
-4734
-5106
query I rowsort
SELECT DISTINCT + cor0.col1 * cor0.col1 FROM tab2 cor0
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT col0 DIV - col1 + col1 AS col2 FROM tab2
----
13
31
58
skipif mysql # not compatible
query I rowsort label-5693
SELECT col0 / - col1 + col1 AS col2 FROM tab2
----
13
31
58
query I rowsort
SELECT ALL col0 * + tab0.col0 AS col2 FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 + + 73 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 121b64fd841a20f87520daa7774d37c9
query I rowsort
SELECT + col2 + - 14 AS col0 FROM tab2 AS cor0
----
12
13
24
query I rowsort
SELECT + + 86 * + col0 AS col0 FROM tab2 AS cor0
----
602
6708
6794
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5698
SELECT DISTINCT ( col2 ) + + CAST( - cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-5698
SELECT DISTINCT ( col2 ) + + CAST ( - cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + col1 * - col0 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL + + 36 * cor0.col0 + - col2 FROM tab2 AS cor0
----
225
2782
2806
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 + col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - + 18 * col1 AS col0 FROM tab1 AS cor0
----
-180
-234
-468
onlyif mysql # use DIV operator for integer division
query I rowsort label-5703
SELECT ALL - + col1 DIV + col2 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-5703
SELECT ALL - + col1 / + col2 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT DISTINCT + - col2 * + col1 + - 71 AS col0 FROM tab1 AS cor0
----
-1319
-1475
-641
query I rowsort
SELECT DISTINCT - + col1 + col0 AS col2 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT ALL + col2 * - col1 AS col0 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + col1 + + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + + cor0.col0 * 30 FROM tab2 AS cor0
----
210
2340
2370
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( ( - col2 ) ) col0 FROM tab0 cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5711
SELECT ALL + cor0.col2 * 71 + col0 * CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL + cor0.col2 * 71 + col0 * CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 9 + col0 FROM tab0 AS cor0
----
33
44
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * + col1 col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT cor0.col1 + col1 * + col0 AS col0 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL + - col1 * - 59 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
5107
5451
5724
query I rowsort
SELECT ALL + ( - col0 * + col2 + 66 ) FROM tab2
----
-123
-1962
-2936
query I rowsort
SELECT 14 * + col0 - col2 AS col1 FROM tab1
----
-12
1024
839
query I rowsort
SELECT col2 + - col0 * col0 * - 96 FROM tab1
----
393273
614496
918
query I rowsort
SELECT DISTINCT - col1 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - 58 + cor0.col0 FROM tab2 AS cor0
----
-51
20
21
query I rowsort
SELECT ALL + 34 + + col1 + 62 * col1 FROM tab1 AS cor0
----
1672
664
853
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab2 cor1, tab0 AS cor2
----
972 values hashing to 95de14c88adc44eda4adb5267fe9ebd1
query I rowsort
SELECT + ( col1 ) + col1 AS col0 FROM tab2
----
118
34
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5725
SELECT - - CAST( NULL AS DECIMAL ) + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5725
SELECT - - CAST ( NULL AS REAL ) + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( cor0.col1 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - tab1.col2 * col1 + col1 AS col1 FROM tab1
----
-1235
-1378
-560
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5728
SELECT CAST( NULL AS SIGNED ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5728
SELECT CAST ( NULL AS INTEGER ) FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT - col0 + + 41 AS col2 FROM tab1
----
-23
-39
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5730
SELECT ALL col0 * col1 DIV tab2.col0 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-5730
SELECT ALL col0 * col1 / tab2.col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL ( col1 ) * col0 + col0 AS col0 FROM tab0
----
2088
3430
8188
query I rowsort
SELECT ( - col2 + - col1 ) AS col0 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT 53 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 866ae1b4ab9e5b4043ac1bcfd413aaa6
query I rowsort
SELECT ALL 54 FROM tab1
----
54
54
54
query I rowsort
SELECT DISTINCT + ( - col1 * + ( col0 ) ) FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT ALL + 1 AS col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
query I rowsort
SELECT DISTINCT 88 + - cor0.col0 FROM tab0 AS cor0
----
-1
53
64
query I rowsort
SELECT 62 * + cor0.col0 FROM tab1 AS cor0
----
186
3968
4960
query I rowsort
SELECT col2 * + col0 * ( + cor0.col2 * col1 ) FROM tab1 AS cor0
----
2079360
227448
9584640
query I rowsort
SELECT + tab1.col2 + col0 + col1 FROM tab1
----
131
189
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5741
SELECT DISTINCT col0 + col1 DIV + tab0.col1 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-5741
SELECT DISTINCT col0 + col1 / + tab0.col1 AS col2 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL col1 * + col2 * + 87 + + col0 + - col2 AS col0 FROM tab1 AS cor0
----
108560
122097
49597
query I rowsort
SELECT + col1 + col2 - 0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + + col1 * + col2 + + 94 AS col1 FROM tab2 AS cor0
----
1628
740
931
query I rowsort
SELECT - col1 + 18 FROM tab2
----
-13
-41
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 1 ) col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT ALL + + 54 * col2 FROM tab2 AS cor0
----
1404
1458
2052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 + - col0 col2 FROM tab2 AS cor0
----
5
6
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5749
SELECT DISTINCT - CAST( 2 AS SIGNED ) / + col0 - ( - col1 ) * + col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT - CAST ( 2 AS INTEGER ) / + col0 - ( - col1 ) * + col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - + 27 * col2 AS col0 FROM tab2 AS cor0
----
-1026
-702
-729
query I rowsort
SELECT - 59 + + col1 AS col0 FROM tab2 AS cor0
----
-28
-42
0
query I rowsort
SELECT DISTINCT - col0 + 43 * - col0 AS col1 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT ALL 58 AS col1 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT + - col0 * ( cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - + ( + col1 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT + col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 81 * col1 AS col2 FROM tab2 AS cor0
----
1377
2511
4779
query I rowsort
SELECT + + col1 + ( col1 ) AS col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + 40 * 44 FROM tab0 AS cor0
----
1760
1760
1760
query I rowsort
SELECT DISTINCT + cor0.col1 * + col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5762
SELECT DISTINCT - + CAST( + 13 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
1248
702
741
skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT - + CAST ( + 13 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
1248
702
741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 * - col1 + + col2 col1 FROM tab2 AS cor0
----
-1802
-3455
-965
onlyif mysql # use DIV operator for integer division
query I rowsort label-5764
SELECT ALL 25 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5764
SELECT ALL 25 / - col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( - col2 ) + + col2 * 32 + - 44 * + col0 * ( - ( - col2 ) ) FROM tab2 cor0
----
-130910
-7479
-88426
query I rowsort
SELECT - 50 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT ALL - col2 * + col0 AS col1 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT - 28 * - cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4214f62d23d35a931e32781b39b6311
query I rowsort
SELECT 2 * tab0.col0 FROM tab0, tab2 cor0
----
9 values hashing to b8cf3a0d946da15d11bb8abf87d58a6b
query I rowsort
SELECT col0 * + ( - col2 ) * - col1 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-5771
SELECT + col2 DIV + tab2.col0 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-5771
SELECT + col2 / + tab2.col0 FROM tab2
----
0
0
3
query I rowsort
SELECT col0 * 69 AS col1 FROM tab1
----
207
4416
5520
onlyif mysql # use DIV operator for integer division
query I rowsort label-5773
SELECT DISTINCT tab0.col2 DIV col2 - + 76 FROM tab0
----
-75
skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT tab0.col2 / col2 - + 76 FROM tab0
----
-75
query I rowsort
SELECT col1 * ( - col2 ) FROM tab2
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT col0 * 34 AS col2 FROM tab2
----
238
2652
2686
query I rowsort
SELECT + col1 + 70 * ( col1 + + ( cor0.col1 ) ) * col0 FROM tab0 cor0
----
1133951
289046
475397
query I rowsort
SELECT DISTINCT 80 FROM tab0
----
80
query I rowsort
SELECT + + 93 FROM tab2 AS cor0
----
93
93
93
query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab1 AS cor0
----
97
query I rowsort
SELECT - + 0 * col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - 84 AS col0 FROM tab0
----
-84
query I rowsort
SELECT 79 AS col1 FROM tab0 cor0
----
79
79
79
query I rowsort
SELECT col0 + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT - - col1 * col2 * 88 FROM tab0 AS cor0
----
249744
656656
8536
query I rowsort
SELECT ALL - 57 * tab0.col1 FROM tab0
----
-4902
-5187
-5529
query I rowsort
SELECT - + 21 * - col1 FROM tab0 AS cor0
----
1806
1911
2037
query I rowsort
SELECT DISTINCT 83 * col0 FROM tab2
----
581
6474
6557
query I rowsort
SELECT + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 * col0 + ( - col2 ) * + col1 FROM tab0 AS cor0
----
-2262
1128
459
query I rowsort
SELECT DISTINCT + ( tab1.col2 ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT ( - col2 ) + - col0 * 27 FROM tab1 AS cor0
----
-135
-1785
-2256
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col0 FROM tab2, tab0, tab1 AS cor0
----
38
query I rowsort
SELECT col1 - - col1 AS col2 FROM tab2
----
118
34
62
query I rowsort
SELECT ALL + + col1 + - col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - - col2 + col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL col1 + cor0.col0 * + cor0.col2 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT - col1 * 61 AS col2 FROM tab2 AS cor0
----
-1037
-1891
-3599
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 + - col1 * - ( col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + + col1 * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - - col1 * 77 AS col2 FROM tab1 AS cor0
----
1001
2002
770
query I rowsort
SELECT DISTINCT - col2 * - col1 + - 51 FROM tab0 AS cor0
----
2787
46
7411
query I rowsort
SELECT - col2 * - 62 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT ALL col0 + - 79 AS col1 FROM tab1 AS cor0
----
-15
-76
1
query I rowsort
SELECT cor0.col1 + col0 * col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT cor0.col0 - - cor0.col0 FROM tab2 AS cor0
----
14
156
158
query I rowsort
SELECT + 69 * - 13 + + col0 FROM tab2 AS cor0
----
-818
-819
-890
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5809
SELECT ( + ( col1 ) ) * - CAST( NULL AS DECIMAL ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5809
SELECT ( + ( col1 ) ) * - CAST ( NULL AS REAL ) * col0 + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 90 + col0 AS col1 FROM tab0 AS cor0
----
114
125
179
onlyif mysql # use DIV operator for integer division
query I rowsort label-5811
SELECT tab1.col1 DIV col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-5811
SELECT tab1.col1 / col0 FROM tab1
----
0
0
8
query I rowsort
SELECT - col2 * + col1 AS col1 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col2 + - col0 + - col1 FROM tab1 AS cor0
----
-17
25
3
query I rowsort
SELECT ( 65 ) * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
249
4217
5296
onlyif mysql # use DIV operator for integer division
query I rowsort label-5815
SELECT ALL + col1 DIV col0 + - col1 AS col0 FROM tab0 AS cor0
----
-83
-90
-95
skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL + col1 / col0 + - col1 AS col0 FROM tab0 AS cor0
----
-83
-90
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5816
SELECT ALL col0 * + col1 - col2 * + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5816
SELECT ALL col0 * + col1 - col2 * + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * 96 FROM tab0
----
2304
3360
8544
query I rowsort
SELECT + col0 * col1 + col1 AS col2 FROM tab2 cor0
----
1360
248
4661
query I rowsort
SELECT ALL + 73 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5820
SELECT DISTINCT + + 76 + - col2 * CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT + + 76 + - col2 * CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col1 * - tab0.col1 * + 41 col1 FROM tab0
----
-303260
-339610
-385804
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-5823
SELECT DISTINCT col0 DIV ( + col2 ) + + col2 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-5823
SELECT DISTINCT col0 / ( + col2 ) + + col2 FROM tab1
----
54
58
96
query I rowsort
SELECT DISTINCT - col2 + col2 * col0 * col1 FROM tab1 AS cor0
----
36423
4158
99744
onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT col0 - col0 DIV + tab1.col2 AS col0 FROM tab1
----
3
63
80
skipif mysql # not compatible
query I rowsort label-5825
SELECT col0 - col0 / + tab1.col2 AS col0 FROM tab1
----
3
63
80
query I rowsort
SELECT DISTINCT + tab2.col1 + + col0 * col1 + col2 FROM tab2
----
1398
275
4687
query I rowsort
SELECT ALL col2 + - col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL col2 * + 92 FROM tab0
----
3036
7544
92
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 4c46de5c1773124597e14f3b372fc4ea
onlyif mysql # use DIV operator for integer division
query I rowsort label-5830
SELECT DISTINCT - - ( col1 ) * + col0 * col1 + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
13521
2046
6400
skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT - - ( col1 ) * + col0 * col1 + col2 / col0 AS col2 FROM tab1 AS cor0
----
13521
2046
6400
query I rowsort
SELECT ALL + + col0 * cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 + - 37 col0 FROM tab0 AS cor0
----
-121
query I rowsort
SELECT ALL - cor0.col2 * ( col0 * col0 ) FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT 39 AS col1 FROM tab0 AS cor0
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-5835
SELECT DISTINCT + 88 DIV col1 AS col2 FROM tab1 AS cor0
----
3
6
8
skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT + 88 / col1 AS col2 FROM tab1 AS cor0
----
3
6
8
query I rowsort
SELECT col0 + + col2 * col0 * col0 AS col1 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT cor0.col1 * 0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + 15 FROM tab1 AS cor0
----
15
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5839
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 + - col0 / 78 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 + - col0 / 78 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5840
SELECT ALL - + CAST( ( + col2 ) AS SIGNED ) + + col2 - col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-5840
SELECT ALL - + CAST ( ( + col2 ) AS INTEGER ) + + col2 - col2 * - cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - + col2 * col1 - + col0 * 15 AS col0 FROM tab1 AS cor0
----
-1449
-1530
-2448
query I rowsort
SELECT + 10 AS col0 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT + - 24 FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT DISTINCT 61 + tab2.col0 + 47 AS col0 FROM tab2
----
115
186
187
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + col2 + - 57 * - 81 col2 FROM tab1
----
4674
4738
4793
query I rowsort
SELECT + col2 + col1 - col1 * col0 AS col0 FROM tab0
----
-1945
-3297
-7926
query I rowsort
SELECT col0 + + col2 + 43 FROM tab0
----
100
214
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5848
SELECT + col1 * + col1 + col0 * + col0 + col2 DIV + col1 AS col1 FROM tab0 cor0
----
10634
16202
7972
skipif mysql # not compatible
query I rowsort label-5848
SELECT + col1 * + col1 + col0 * + col0 + col2 / + col1 AS col1 FROM tab0 cor0
----
10634
16202
7972
query I rowsort
SELECT DISTINCT - 40 * + col1 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT + cor0.col2 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - col0 * - col1 + + cor0.col2 * - col0 FROM tab1 AS cor0
----
-3008
-6640
-84
query I rowsort
SELECT DISTINCT - 63 AS col1 FROM tab2 AS cor0
----
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-5853
SELECT - 16 * col2 DIV + cor0.col1 col0 FROM tab2 AS cor0
----
-13
-35
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5853
SELECT - 16 * col2 / + cor0.col1 col0 FROM tab2 AS cor0
----
-13
-35
-7
query I rowsort
SELECT + col1 + col0 - 66 FROM tab0 cor0
----
114
44
66
query I rowsort
SELECT ALL - 38 * col1 FROM tab0 AS cor0
----
-3268
-3458
-3686
query I rowsort
SELECT DISTINCT + + col0 + 11 * + col1 * cor0.col2 FROM tab1 cor0
----
13808
15447
6334
query I rowsort
SELECT + + cor0.col1 * cor0.col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col1 + + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5859
SELECT - col1 DIV - cor0.col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5859
SELECT - col1 / - cor0.col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL - cor0.col0 * + 25 AS col0 FROM tab1 AS cor0
----
-1600
-2000
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-5861
SELECT col0 + - 2 * + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
22
33
87
skipif mysql # not compatible
query I rowsort label-5861
SELECT col0 + - 2 * + col1 / col1 AS col0 FROM tab0 AS cor0
----
22
33
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5862
SELECT ALL + col1 * - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + col1 * - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col1 * - col2 * - 8 AS col1 FROM tab2 AS cor0
----
12272
5168
6696
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 96 col1 FROM tab2 AS cor0
----
672
7488
7584
query I rowsort
SELECT - col0 + - cor0.col2 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-5866
SELECT + col2 + col0 DIV + 86 FROM tab0 cor0
----
1
33
83
skipif mysql # not compatible
query I rowsort label-5866
SELECT + col2 + col0 / + 86 FROM tab0 cor0
----
1
33
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5867
SELECT - cor0.col1 DIV ( col2 ) + - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-5867
SELECT - cor0.col1 / ( col2 ) + - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - col0 * col1 col2 FROM tab0 AS cor0
----
-1272
-3360
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-5869
SELECT DISTINCT - col2 + - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96
skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT - col2 + - col0 / - col2 AS col2 FROM tab1 AS cor0
----
-54
-56
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5870
SELECT + + col0 - - 76 DIV - 37 FROM tab2 AS cor0
----
5
76
77
skipif mysql # not compatible
query I rowsort label-5870
SELECT + + col0 - - 76 / - 37 FROM tab2 AS cor0
----
5
76
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col1 + ( col2 + col0 ) FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT + col1 * 70 * col2 AS col1 FROM tab1 AS cor0
----
39900
87360
98280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + + 33 col2 FROM tab2 AS cor0
----
111
112
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - ( - col1 ) * - col1 col0 FROM tab2 AS cor0
----
-327
-3507
-988
onlyif mysql # use DIV operator for integer division
query I rowsort label-5876
SELECT + + cor0.col2 DIV ( + col0 ) FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5876
SELECT + + cor0.col2 / ( + col0 ) FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT ALL - col2 + 29 AS col0 FROM tab2 AS cor0
----
-9
2
3
query I rowsort
SELECT - + ( 5 ) FROM tab1 AS cor0
----
-5
-5
-5
query I rowsort
SELECT - + 75 * + cor0.col1 FROM tab2 AS cor0
----
-1275
-2325
-4425
query I rowsort
SELECT DISTINCT + cor2.col2 FROM tab0, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
26
27
38
query I rowsort
SELECT + col0 + ( - col2 ) * + col0 * 62 + col1 FROM tab0
----
-2038
-452296
-48994
query I rowsort
SELECT DISTINCT + - 34 * + col1 + 38 AS col2 FROM tab2 AS cor0
----
-1016
-1968
-540
query I rowsort
SELECT ALL col1 * + col1 - + ( 90 ) AS col0 FROM tab1 AS cor0
----
10
586
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5884
SELECT ALL + ( + col2 ) * CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-5884
SELECT ALL + ( + col2 ) * CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT DISTINCT 11 FROM tab0
----
11
query I rowsort
SELECT ALL 62 AS col2 FROM tab1
----
62
62
62
query I rowsort
SELECT - cor0.col1 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-5888
SELECT ALL col0 DIV - tab0.col0 + - col1 FROM tab0
----
-87
-92
-98
skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL col0 / - tab0.col0 + - col1 FROM tab0
----
-87
-92
-98
query I rowsort
SELECT ALL ( - tab1.col0 * col1 ) + - col2 + col0 FROM tab1
----
-1056
-129
-633
query I rowsort
SELECT DISTINCT - 61 + - col1 * tab2.col1 AS col2 FROM tab2
----
-1022
-350
-3542
query I rowsort
SELECT + tab1.col1 + col1 + col1 AS col2 FROM tab1
----
30
39
78
query I rowsort
SELECT ALL col1 + col2 * 85 AS col1 FROM tab2
----
2269
2326
3247
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5893
SELECT col2 + - CAST( + 97 * + col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
skipif mysql # not compatible
query I rowsort label-5893
SELECT col2 + - CAST ( + 97 * + col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2496
-2592
-3648
query I rowsort
SELECT - col0 - - cor0.col1 AS col1 FROM tab0 cor0
----
2
62
62
query I rowsort
SELECT 61 - + col2 FROM tab1 AS cor0
----
-35
4
7
query I rowsort
SELECT DISTINCT + col2 * col0 - - col0 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 - + col1 col0 FROM tab1 AS cor0
----
147
252
704
onlyif mysql # use DIV operator for integer division
query I rowsort label-5898
SELECT col0 * col1 + - col0 + - col2 DIV - tab1.col1 AS col2 FROM tab1
----
581
77
967
skipif mysql # not compatible
query I rowsort label-5898
SELECT col0 * col1 + - col0 + - col2 / - tab1.col1 AS col2 FROM tab1
----
581
77
967
query I rowsort
SELECT - - 93 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 85ef191bf1b307f300b3fd49992fcae7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 col1 FROM tab2 WHERE NOT ( + col2 ) NOT IN ( col1 )
----
query I rowsort
SELECT ALL + col0 * col2 - tab0.col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT col0 - + col1 FROM tab0 WHERE col0 NOT IN ( - tab0.col1 )
----
-2
-62
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT DISTINCT col1 + - col1 DIV + col0 AS col2 FROM tab0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT col1 + - col1 / + col0 AS col2 FROM tab0
----
83
90
95
query I rowsort
SELECT col1 + - col0 AS col2 FROM tab1
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-5905
SELECT DISTINCT col1 DIV col0 + col0 * col2 AS col1 FROM tab0
----
37
7299
795
skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT col1 / col0 + col0 * col2 AS col1 FROM tab0
----
37
7299
795
query I rowsort
SELECT + col2 + col1 * col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + 43 FROM tab1
----
43
43
43
query I rowsort
SELECT ALL - 34 FROM tab1
----
-34
-34
-34
query I rowsort
SELECT ALL col1 * ( + cor0.col0 ) * + col1 - + 29 AS col1 FROM tab1 AS cor0
----
13491
1999
6371
query I rowsort
SELECT ALL 99 AS col2 FROM tab1
----
99
99
99
query I rowsort
SELECT DISTINCT - - col1 * - cor0.col0 + - col2 * + col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT 75 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT - ( - col1 ) * + ( + col0 ) FROM tab1 cor0
----
1040
640
78
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 cor1, tab1, tab1 cor2
----
3645 values hashing to d10b928ceb6690f7c98bfe77a5adfcac
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab0 AS cor2
----
972 values hashing to d522b52b67b20888d3544d25cb98f232
query I rowsort
SELECT ALL col2 * - tab1.col2 * tab1.col0 FROM tab1
----
-207936
-737280
-8748
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT IN ( - col1 + col1 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 col0 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT ALL + col0 - col2 * - col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT - col2 * - col2 + col0 + col1 FROM tab2
----
1540
767
813
query I rowsort
SELECT ALL - col0 * + col1 AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col2 * col0 + tab1.col1 * - col2 AS col0 FROM tab1
----
-1242
3078
6432
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 col0 FROM tab1 WHERE NOT + col2 < NULL
----
query I rowsort
SELECT col0 * - col2 * + col1 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT - tab2.col2 * + col2 + - col1 * col1 AS col2 FROM tab2
----
-1690
-1733
-4157
query I rowsort
SELECT ALL - col0 + col0 * + col1 AS col1 FROM tab2
----
1264
210
4524
query III rowsort
SELECT ALL * FROM tab1 WHERE col1 NOT IN ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT col0 * col0 - tab0.col0 FROM tab0
----
1190
552
7832
query I rowsort
SELECT DISTINCT - col2 - col0 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + col1 + + col2 * + col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT tab1.col0 + col2 AS col2 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT tab1.col2 * - col1 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - tab2.col2 - + tab2.col0 FROM tab2
----
-104
-117
-34
query I rowsort
SELECT - col1 * - col1 * + col2 FROM tab0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5936
SELECT ALL col0 DIV col2 + col2 FROM tab1
----
54
58
96
skipif mysql # not compatible
query I rowsort label-5936
SELECT ALL col0 / col2 + col2 FROM tab1
----
54
58
96
query I rowsort
SELECT tab2.col1 + 35 AS col2 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 688f72d9e506f2fefc86e6515e7ab281
query I rowsort
SELECT + tab0.col0 * + col0 AS col0 FROM tab0
----
1225
576
7921
query I rowsort
SELECT ALL - cor0.col0 AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT 78 AS col0 FROM tab1
----
78
78
78
query I rowsort
SELECT + ( + col2 + - col0 ) FROM tab0
----
-34
-7
9
query I rowsort
SELECT + 93 - cor0.col1 FROM tab2, tab2 cor0
----
9 values hashing to 092b654ede783d39e97b3da1828863d9
query I rowsort
SELECT + 61 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5944
SELECT + col1 + ( - col2 ) * CAST( 79 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-121127
-51017
-66092
skipif mysql # not compatible
query I rowsort label-5944
SELECT + col1 + ( - col2 ) * CAST ( 79 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-121127
-51017
-66092
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5945
SELECT ALL - CAST( NULL AS SIGNED ) / col2 + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5945
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 + col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5946
SELECT DISTINCT + 60 + 70 DIV + col1 + + CAST( - col0 AS SIGNED ) * - tab0.col0 AS col0 FROM tab0
----
1285
636
7981
skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT + 60 + 70 / + col1 + + CAST ( - col0 AS INTEGER ) * - tab0.col0 AS col0 FROM tab0
----
1285
636
7981
query I rowsort
SELECT + col0 * cor0.col2 + col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT - col1 + col2 * - cor0.col1 * + col2 FROM tab2 AS cor0
----
-22630
-24565
-39943
query I rowsort
SELECT + 5 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - + col2 + col1 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT ALL col0 + - col2 * 61 AS col0 FROM tab0 AS cor0
----
-1989
-26
-4913
query I rowsort
SELECT ALL - 7 AS col0 FROM tab0 AS cor0
----
-7
-7
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5954
SELECT col0 + col2 DIV - col1 AS col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-5954
SELECT col0 + col2 / - col1 AS col0 FROM tab2 AS cor0
----
7
77
78
query I rowsort
SELECT + - col0 * cor0.col2 * col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL - - col2 + + col2 * + 87 FROM tab2 AS cor0
----
2288
2376
3344
query I rowsort
SELECT DISTINCT 54 AS col2 FROM tab2 cor0
----
54
query I rowsort
SELECT ALL + + col2 * + col0 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col0 + - 60 AS col0 FROM tab1 AS cor0
----
-124
-140
-63
query I rowsort
SELECT ALL 63 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT + col2 * + ( col0 ) + col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL - 50 FROM tab2, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
onlyif mysql # use DIV operator for integer division
query I rowsort label-5964
SELECT ALL ( col2 ) DIV - col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-5964
SELECT ALL ( col2 ) / - col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab1 AS cor0
----
13
13
13
query I rowsort
SELECT - 6 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 8be8910507908e6353d02a545b748252
query I rowsort
SELECT + 86 + col2 + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-497
-858
62
query I rowsort
SELECT DISTINCT + 75 * + col1 - - col0 * col1 AS col0 FROM tab0 AS cor0
----
10670
14924
8514
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col1 * col1 col0 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # use DIV operator for integer division
query I rowsort label-5970
SELECT ALL + ( col0 ) DIV + col0 + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL + ( col0 ) / + col0 + + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col2 FROM tab1 AS cor0
----
-44
-44
-44
query I rowsort
SELECT ALL - 97 + + col2 + - col2 FROM tab1 AS cor0
----
-97
-97
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 col2 FROM tab0 AS cor0
----
55
55
55
query I rowsort
SELECT ALL - col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT DISTINCT col0 DIV - col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT col0 / - col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT ALL - - 81 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT - - col1 * col1 + col0 + + col2 * col1 FROM tab1 AS cor0
----
1497
2083
734
query I rowsort
SELECT DISTINCT - col0 + + col0 AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5979
SELECT - + col1 DIV col1 + cor0.col0 FROM tab0 cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-5979
SELECT - + col1 / col1 + cor0.col0 FROM tab0 cor0
----
23
34
88
query I rowsort
SELECT DISTINCT - 26 * - col1 FROM tab2 AS cor0
----
1534
442
806
query I rowsort
SELECT ALL + col2 + col2 * col0 AS col1 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL - col0 * tab1.col1 + - col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT ( - col0 ) + - tab2.col0 * tab2.col1 AS col1 FROM tab2
----
-1422
-224
-4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-5984
SELECT ALL col1 DIV - col1 - col2 * - col2 AS col2 FROM tab0
----
0
1088
6723
skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL col1 / - col1 - col2 * - col2 AS col2 FROM tab0
----
0
1088
6723
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT - col2 * + col2 - - col1 AS col2 FROM tab2
----
-1427
-617
-698
query I rowsort
SELECT ALL tab1.col0 * + tab1.col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
query I rowsort
SELECT ALL - col0 * - col0 + - col2 + - col0 AS col0 FROM tab0
----
1189
519
7750
query I rowsort
SELECT ALL 11 * col0 + cor0.col2 - - col1 * - col0 AS col1 FROM tab1 AS cor0
----
-64
121
9
query I rowsort
SELECT - + col0 + - col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + col1 * col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-5992
SELECT DISTINCT + - col0 DIV col1 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-5992
SELECT DISTINCT + - col0 / col1 + col0 AS col1 FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - cor0.col2 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( - cor0.col1 ) * col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col2 * - col1 + - col2 * - col0 * + col1 AS col2 FROM tab0 AS cor0
----
3492
671580
70950
query I rowsort
SELECT col2 + + 2 AS col1 FROM tab0
----
3
35
84
query I rowsort
SELECT ( 61 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT - col0 * - 53 FROM tab2 AS cor0
----
371
4134
4187
query I rowsort
SELECT - + col0 + ( - col2 ) * - col1 FROM tab0 cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-6000
SELECT col0 DIV - 94 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6000
SELECT col0 / - 94 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + + col1 * 24 FROM tab2 AS cor0
----
1338
329
737
query I rowsort
SELECT + col2 * + col0 + col1 AS col2 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT + col2 * + col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 - - col0 * col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT ( col2 ) - + col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + col1 * + 52 - - col0 * col2 * col0 AS col2 FROM tab1 cor0
----
1838
233992
615076
onlyif mysql # use DIV operator for integer division
query I rowsort label-6007
SELECT + ( col1 ) DIV + col2 AS col0 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6007
SELECT + ( col1 ) / + col2 AS col0 FROM tab0
----
1
2
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6008
SELECT DISTINCT tab1.col2 + - col0 DIV col0 AS col1 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT tab1.col2 + - col0 / col0 AS col1 FROM tab1
----
53
56
95
query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + col0 + col1 * - col0 AS col1 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + - 68 AS col1 FROM tab1 AS cor0
----
-68
query I rowsort
SELECT + + ( - col0 ) + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL col2 + col0 + + col1 * - col1 AS col2 FROM tab2
----
-172
-3377
-927
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0 + + col2 )
----
query I rowsort
SELECT DISTINCT col1 + col1 + + col1 FROM tab0
----
258
273
291
query I rowsort
SELECT ALL col2 * col0 + + col1 AS col1 FROM tab2
----
2087
220
3019
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 / - col0 ) AND NULL OR NULL NOT IN ( - cor0.col1 * cor0.col0 + cor0.col0 * + col2 - - col2 * col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6018
SELECT + cor0.col1 + col2 DIV col1 FROM tab2 AS cor0
----
19
31
59
skipif mysql # not compatible
query I rowsort label-6018
SELECT + cor0.col1 + col2 / col1 FROM tab2 AS cor0
----
19
31
59
query I rowsort
SELECT ALL + col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT + + col1 + + col0 * - cor0.col2 * - col1 FROM tab1 AS cor0
----
36490
4238
99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-6021
SELECT - col2 DIV - col1 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-6021
SELECT - col2 / - col1 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT ALL + - col2 * col2 * col1 AS col1 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL - cor0.col2 * cor0.col1 + + col2 + col2 FROM tab2 AS cor0
----
-1482
-570
-783
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * col2 col0 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT col0 + - col1 + - col2 FROM tab2
----
-51
-7
24
query I rowsort
SELECT - col2 * col2 + - tab0.col2 + + col2 AS col1 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - + col0 + col0 AS col0 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6029
SELECT ALL + + col0 + - cor0.col0 DIV - col0 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-6029
SELECT ALL + + col0 + - cor0.col0 / - col0 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL col1 * tab1.col0 + + tab1.col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT - col2 * + col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT - tab0.col0 + col1 AS col0 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL col2 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + col2 + tab2.col1 * + col1 AS col0 FROM tab2
----
327
3507
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-6036
SELECT col2 DIV col0 + col2 AS col2 FROM tab2
----
26
30
38
skipif mysql # not compatible
query I rowsort label-6036
SELECT col2 / col0 + col2 AS col2 FROM tab2
----
26
30
38
query I rowsort
SELECT - 62 FROM tab2, tab2 AS cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c
onlyif mysql # use DIV operator for integer division
query I rowsort label-6038
SELECT DISTINCT col2 + + col2 * col2 DIV col2 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-6038
SELECT DISTINCT col2 + + col2 * col2 / col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - cor0.col0 * - 1 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 + col1 + 49 * - col1 AS col1 FROM tab2 AS cor0
----
-1495
-2910
-895
query I rowsort
SELECT cor0.col2 + - 62 AS col2 FROM tab0 AS cor0
----
-29
-61
20
query I rowsort
SELECT + col2 * + ( cor0.col1 ) * col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6043
SELECT - - col2 * - CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-6043
SELECT - - col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + col1 * + 70 FROM tab0 AS cor0
----
6020
6370
6790
query I rowsort
SELECT 98 * - col0 FROM tab1 AS cor0
----
-294
-6272
-7840
query I rowsort
SELECT - col1 * col2 * - col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - col2 * ( cor0.col0 ) * - col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - col2 * - tab2.col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT + + 64 * cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ae3d56abe7a621bdd86d1268fc3db87b
query I rowsort
SELECT 90 * 97 AS col1 FROM tab1 AS cor0
----
8730
8730
8730
query I rowsort
SELECT DISTINCT - col1 * - col1 + ( + col0 ) * - col2 FROM tab2 AS cor0
----
-2713
1453
772
onlyif mysql # use DIV operator for integer division
query I rowsort label-6053
SELECT + - cor0.col2 DIV col2 - col0 * 48 col0 FROM tab1 AS cor0
----
-145
-3073
-3841
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6053
SELECT + - cor0.col2 / col2 - col0 * 48 col0 FROM tab1 AS cor0
----
-145
-3073
-3841
query I rowsort
SELECT DISTINCT + 85 FROM tab2
----
85
query I rowsort
SELECT - cor0.col0 * ( - ( col2 ) ) + - ( col0 ) * col1 AS col0 FROM tab2 cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT + ( + col2 * + col1 ) FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-6058
SELECT DISTINCT col0 DIV tab1.col0 FROM tab1
----
1
skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT col0 / tab1.col0 FROM tab1
----
1
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col2 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT ALL + + cor0.col1 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL col0 * + 82 AS col2 FROM tab1 cor0
----
246
5248
6560
query I rowsort
SELECT col0 + - ( 19 ) * col0 * - ( + 92 ) AS col0 FROM tab0 AS cor0
----
155661
41976
61215
query I rowsort
SELECT DISTINCT col2 + 49 FROM tab2 AS cor0
----
75
76
87
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 AS cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
onlyif mysql # use DIV operator for integer division
query I rowsort label-6065
SELECT ALL + cor0.col2 + - col2 DIV 84 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-6065
SELECT ALL + cor0.col2 + - col2 / 84 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT + cor0.col1 * - ( + col1 * + col1 ) - - col0 AS col2 FROM tab0 AS cor0
----
-636032
-753482
-912638
query I rowsort
SELECT ALL + col0 * - 9 AS col0 FROM tab1 cor0
----
-27
-576
-720
query I rowsort
SELECT - col1 * col0 * col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6069
SELECT DISTINCT - col1 + - 86 DIV - 87 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-6069
SELECT DISTINCT - col1 + - 86 / - 87 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL col2 * - 45 + col0 * + col1 + + col0 AS col1 FROM tab2
----
-288
-991
3510
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - col2 * col0 col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT cor0.col0 * ( - 55 ) FROM tab2 AS cor0
----
-385
-4290
-4345
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6073
SELECT + col0 - - CAST( + 7 AS SIGNED ) * col0 AS col2 FROM tab1 AS cor0
----
24
512
640
skipif mysql # not compatible
query I rowsort label-6073
SELECT + col0 - - CAST ( + 7 AS INTEGER ) * col0 AS col2 FROM tab1 AS cor0
----
24
512
640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - col1 ) col1 FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab2, tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6075
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab2, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT ( - tab2.col2 ) FROM tab2, tab0, tab1 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - 35 * + tab2.col0 * + col2 FROM tab2
----
-105070
-6615
-70980
query I rowsort
SELECT ALL + 79 + col1 * ( cor0.col1 ) AS col0 FROM tab1 cor0
----
179
248
755
query I rowsort
SELECT - col0 * col0 * - col1 AS col1 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL + ( col1 + + tab0.col2 * + col0 ) AS col1 FROM tab0
----
132
7389
878
query I rowsort
SELECT DISTINCT - col0 * + col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT 62 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 - col0 col1 FROM tab0
----
-110
-121
-175
query I rowsort
SELECT col2 - + col0 * col0 AS col2 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT - col0 - col2 AS col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT 51 * tab0.col1 AS col1 FROM tab0
----
4386
4641
4947
query I rowsort
SELECT DISTINCT - + cor0.col1 * 70 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1190
-2170
-4130
onlyif mysql # use DIV operator for integer division
query I rowsort label-6088
SELECT ALL - + col1 DIV + col0 + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-6088
SELECT ALL - + col1 / + col0 + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT - col0 * + col1 * - 52 FROM tab1 AS cor0
----
33280
4056
54080
query I rowsort
SELECT + + col0 + + col0 * col1 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6091
SELECT DISTINCT - + col1 + cor0.col1 * - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702
skipif mysql # not compatible
query I rowsort label-6091
SELECT DISTINCT - + col1 + cor0.col1 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT - 74 * col0 FROM tab1 AS cor0
----
-222
-4736
-5920
query I rowsort
SELECT col0 + - col2 * ( col2 ) AS col0 FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT col0 * col1 * cor0.col1 AS col1 FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT + col0 - + 26 FROM tab1 AS cor0
----
-23
38
54
query I rowsort
SELECT DISTINCT + 64 * col0 + cor0.col1 + + cor0.col1 FROM tab0 AS cor0
----
1708
2434
5878
query I rowsort
SELECT DISTINCT - - col0 + 74 + - col1 AS col1 FROM tab0 AS cor0
----
12
72
query I rowsort
SELECT 63 - col0 FROM tab0 AS cor0
----
-26
28
39
query I rowsort
SELECT DISTINCT - ( 89 ) FROM tab0 AS cor0
----
-89
query I rowsort
SELECT DISTINCT - 61 + col1 FROM tab2
----
-2
-30
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6101
SELECT CAST( NULL AS SIGNED ) / - 17 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6101
SELECT CAST ( NULL AS INTEGER ) / - 17 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + col2 + - col1 * - col1 AS col2 FROM tab0 AS cor0
----
7515
8454
9507
query I rowsort
SELECT ALL + col2 * + 33 + col0 FROM tab2 AS cor0
----
1333
898
936
query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab0 AS cor0
----
10
query I rowsort
SELECT + 58 * + col2 FROM tab0 cor0
----
1914
4756
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-6106
SELECT ALL + col1 DIV cor0.col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6106
SELECT ALL + col1 / cor0.col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT col0 + + col1 - + col1 FROM tab1 AS cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col0 FROM tab0 AS cor0
----
39
39
39
query I rowsort
SELECT DISTINCT + - ( - 40 ) AS col2 FROM tab2 AS cor0
----
40
query I rowsort
SELECT + - cor0.col0 * + col0 + col0 * + 2 FROM tab0 AS cor0
----
-1155
-528
-7743
query I rowsort
SELECT + - ( col1 ) - + col2 * col1 AS col2 FROM tab1 AS cor0
----
-1261
-1430
-580
onlyif mysql # use DIV operator for integer division
query I rowsort label-6112
SELECT - - col0 + - col0 DIV cor0.col2 FROM tab1 cor0
----
3
63
80
skipif mysql # not compatible
query I rowsort label-6112
SELECT - - col0 + - col0 / cor0.col2 FROM tab1 cor0
----
3
63
80
query I rowsort
SELECT ALL - 52 * col0 AS col2 FROM tab2 AS cor0
----
-364
-4056
-4108
onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT DISTINCT - cor0.col1 + - col2 DIV + col2 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT - cor0.col1 + - col2 / + col2 FROM tab1 AS cor0
----
-11
-14
-27
onlyif mysql # use DIV operator for integer division
query I rowsort label-6115
SELECT col0 DIV + cor0.col0 AS col1 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6115
SELECT col0 / + cor0.col0 AS col1 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT ALL 6 AS col0 FROM tab0 cor0
----
6
6
6
query I rowsort
SELECT DISTINCT - ( + cor0.col0 ) * - col1 AS col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL + col0 + + 84 + + col2 * + col2 FROM tab1
----
3003
3397
9380
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6119
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6119
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab1, tab2 cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6120
SELECT ALL CAST( - col1 AS SIGNED ) + + col1 + col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL CAST ( - col1 AS INTEGER ) + + col1 + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT - col0 * - tab0.col2 + - col0 + - 78 AS col0 FROM tab0
----
-78
690
7131
query I rowsort
SELECT ALL col2 + 96 * col2 FROM tab1
----
5238
5529
9312
query I rowsort
SELECT DISTINCT col1 - col2 * col0 FROM tab0 cor0
----
-706
-7207
62
query I rowsort
SELECT + col1 * 99 + - 59 AS col2 FROM tab2 AS cor0
----
1624
3010
5782
query I rowsort
SELECT ALL - col0 + cor0.col2 * + col2 + col1 AS col2 FROM tab0 AS cor0
----
1151
63
6726
query I rowsort
SELECT ALL - - col0 * + col1 + - 31 FROM tab2 AS cor0
----
1312
186
4571
query I rowsort
SELECT DISTINCT - + col2 + - col0 * - 49 AS col2 FROM tab2 AS cor0
----
316
3796
3833
query I rowsort
SELECT ALL + - col0 + 47 + ( col0 * 85 ) FROM tab0 AS cor0
----
2063
2987
7523
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col0 col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT col1 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
144
72
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col2 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col2 + - col1 * + col0 FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT - col1 * 82 FROM tab2 cor0
----
-1394
-2542
-4838
query I rowsort
SELECT DISTINCT + + col1 * + ( 49 ) FROM tab0 cor0
----
4214
4459
4753
query I rowsort
SELECT ALL - cor0.col1 * col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6137
SELECT col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6137
SELECT col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6138
SELECT ALL + + col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL + + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * - cor0.col0 * - col0 AS col0 FROM tab2 AS cor0
----
343
474552
493039
query I rowsort
SELECT tab2.col2 - + col0 AS col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT + + col2 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-1122
-2
-6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-6142
SELECT ALL col2 * - ( - ( col2 ) ) + cor0.col2 * col2 DIV col1 FROM tab2 cor0
----
1528
687
752
skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL col2 * - ( - ( col2 ) ) + cor0.col2 * col2 / col1 FROM tab2 cor0
----
1528
687
752
query I rowsort
SELECT DISTINCT + cor0.col2 + ( + col2 + - col2 * + col2 ) FROM tab2 AS cor0
----
-1368
-624
-675
query I rowsort
SELECT - 80 + col0 AS col1 FROM tab0 AS cor0
----
-45
-56
9
query I rowsort
SELECT - - cor1.col1 * cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to f8894e3f33962cda5901e1c2ce65d5b0
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2, tab1
----
13122 values hashing to b4b4e789b5891936f0d1957806addc92
query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab2, tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col1 * ( col1 + col2 ) col2 FROM tab0 cor0
----
-10234
-15743
-9506
query I rowsort
SELECT ALL - - col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT col1 * + 47 FROM tab2 cor0
----
1457
2773
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6151
SELECT ALL + + col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6151
SELECT ALL + + col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * 93 FROM tab2
----
2418
2511
3534
query I rowsort
SELECT col0 * col0 + 73 FROM tab0
----
1298
649
7994
query I rowsort
SELECT col2 * col1 + - col1 AS col0 FROM tab2
----
1475
629
806
query I rowsort
SELECT + col0 * 12 FROM tab2 AS cor0
----
84
936
948
query I rowsort
SELECT 82 - cor0.col1 FROM tab1, tab2 cor0, tab1 AS cor1
----
27 values hashing to 39155df57d06581f6aa8ff6f1f065c3c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6157
SELECT ALL CAST( 28 + col1 AS SIGNED ) AS col0 FROM tab2
----
45
59
87
skipif mysql # not compatible
query I rowsort label-6157
SELECT ALL CAST ( 28 + col1 AS INTEGER ) AS col0 FROM tab2
----
45
59
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-6158
SELECT DISTINCT + - ( - col0 ) DIV + col1 + - 4 * + col2 + col1 FROM tab2 AS cor0
----
-131
-44
-77
skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + - ( - col0 ) / + col1 + - 4 * + col2 + col1 FROM tab2 AS cor0
----
-131
-44
-77
query I rowsort
SELECT ALL - - col2 + 99 FROM tab2 AS cor0
----
125
126
137
query I rowsort
SELECT ALL + + ( - col1 ) + - col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL - 4 * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
16384
25600
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-6162
SELECT + ( col2 ) DIV col0 + col1 AS col2 FROM tab2 AS cor0
----
17
34
59
skipif mysql # not compatible
query I rowsort label-6162
SELECT + ( col2 ) / col0 + col1 AS col2 FROM tab2 AS cor0
----
17
34
59
query I rowsort
SELECT ALL - 47 * + cor0.col2 FROM tab0 AS cor0
----
-1551
-3854
-47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6164
SELECT + col2 * col2 + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6164
SELECT + col2 * col2 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 20 AS col1 FROM tab1
----
20
20
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 col0 FROM tab1
----
73
73
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6167
SELECT ALL + col0 DIV - 94 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6167
SELECT ALL + col0 / - 94 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col2 + + 17 AS col1 FROM tab1 AS cor0
----
113
71
74
query I rowsort
SELECT - + col0 * 59 AS col2 FROM tab2 AS cor0
----
-413
-4602
-4661
query I rowsort
SELECT DISTINCT + + col2 * - ( + col1 + cor0.col2 ) * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
-1004544
-217683
-233280
query I rowsort
SELECT - col2 + + 44 AS col1 FROM tab2 AS cor0
----
17
18
6
query I rowsort
SELECT + - col0 + - 0 * col0 AS col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + 67 + cor1.col2 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 0b8c70c7080caf579094b9270fba2121
query I rowsort
SELECT + 30 + 88 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6b4d3df0dcb1d629d28745add31be2b9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6175
SELECT ALL 5 + cor0.col2 * + CAST( + tab0.col1 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 075194008ff54a1624c4759e928c01e0
skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL 5 + cor0.col2 * + CAST ( + tab0.col1 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 075194008ff54a1624c4759e928c01e0
query I rowsort
SELECT DISTINCT - cor0.col0 AS col2 FROM tab0, tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + tab1.col1 * - col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT 21 AS col0 FROM tab0 cor0
----
21
21
21
query I rowsort
SELECT col2 + + col0 * + col2 + - col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6180
SELECT - col1 * col2 + + col1 DIV cor0.col1 AS col2 FROM tab1 AS cor0
----
-1247
-1403
-569
skipif mysql # not compatible
query I rowsort label-6180
SELECT - col1 * col2 + + col1 / cor0.col1 AS col2 FROM tab1 AS cor0
----
-1247
-1403
-569
query I rowsort
SELECT + 30 AS col0 FROM tab0 cor0
----
30
30
30
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT col2 * - col1 + ( + col0 ) + cor0.col2 AS col0 FROM tab1 AS cor0
----
-1072
-1347
-449
query I rowsort
SELECT 35 * - col0 FROM tab1 AS cor0
----
-105
-2240
-2800
query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab1
----
100
169
676
query I rowsort
SELECT ( + tab0.col0 * col1 ) FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6187
SELECT ALL col2 DIV col2 + + 50 DIV + col0 FROM tab1
----
1
1
17
skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL col2 / col2 + + 50 / + col0 FROM tab1
----
1
1
17
query I rowsort
SELECT DISTINCT - 6 FROM tab1, tab2, tab2 AS cor0
----
-6
query I rowsort
SELECT - - col2 + col1 AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL 78 * - col2 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT ALL + + col0 + + 74 * 92 FROM tab2 AS cor0
----
6815
6886
6887
query I rowsort
SELECT ALL - - col2 + + 19 * 16 FROM tab2 cor0
----
330
331
342
onlyif mysql # use DIV operator for integer division
query I rowsort label-6193
SELECT ALL 2 DIV cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL 2 / cor0.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - cor0.col2 * - col1 AS col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6195
SELECT + CAST( - col1 AS SIGNED ) - col2 * - 50 AS col1 FROM tab0 AS cor0
----
-47
1564
4009
skipif mysql # not compatible
query I rowsort label-6195
SELECT + CAST ( - col1 AS INTEGER ) - col2 * - 50 AS col1 FROM tab0 AS cor0
----
-47
1564
4009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * col2 col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 10 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT - ( col0 ) * cor0.col2 + cor0.col1 * - col0 - col2 AS col2 FROM tab0 AS cor0
----
-15479
-2889
-3431
query I rowsort
SELECT DISTINCT - tab1.col2 AS col2 FROM tab1, tab0, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - - col0 - col2 AS col1 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL + 45 - tab2.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 852e151d4bb7232c1193f10d338660c2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6202
SELECT ALL + col2 * - CAST( col1 AS SIGNED ) * - col1 AS col1 FROM tab1
----
16224
36504
5700
skipif mysql # not compatible
query I rowsort label-6202
SELECT ALL + col2 * - CAST ( col1 AS INTEGER ) * - col1 AS col1 FROM tab1
----
16224
36504
5700
query I rowsort
SELECT + + 94 * col1 FROM tab0 AS cor0
----
8084
8554
9118
onlyif mysql # use DIV operator for integer division
query I rowsort label-6204
SELECT col0 + col2 DIV + col1 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-6204
SELECT col0 + col2 / + col1 FROM tab1 AS cor0
----
5
69
87
query I rowsort
SELECT DISTINCT - 43 FROM tab1 AS cor0
----
-43
query I rowsort
SELECT DISTINCT - 39 FROM tab2, tab2 AS cor0
----
-39
query I rowsort
SELECT ALL - + col1 + - ( col0 ) FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + - col2 * 69 + + col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-1709
-1805
-2567
query I rowsort
SELECT DISTINCT - + 21 FROM tab2 AS cor0
----
-21
query I rowsort
SELECT + ( 29 ) * cor0.col2 + col2 * - col1 AS col2 FROM tab2 AS cor0
----
-54
-780
456
query I rowsort
SELECT ALL + cor0.col2 + cor0.col1 + 59 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 8a7351251b18369025dc5ec3226392ef
query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + - ( col0 ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) * col1 AS col0 FROM tab1
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + cor0.col1 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col1 + col1 * + 53 AS col2 FROM tab0 AS cor0
----
4472
4732
5044
query I rowsort
SELECT ALL - cor0.col1 * - col1 + col1 * col0 AS col2 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT ALL + ( + col1 ) + col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL col0 - + col1 * + tab1.col2 FROM tab1
----
-1168
-1401
-506
query I rowsort
SELECT - ( col1 * + col0 ) AS col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 42 FROM tab1, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT ALL 25 * - col0 AS col0 FROM tab2
----
-175
-1950
-1975
query I rowsort
SELECT - ( 19 ) + - col2 FROM tab2
----
-45
-46
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-6224
SELECT + col1 DIV - col1 col2 FROM tab0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6224
SELECT + col1 / - col1 col2 FROM tab0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6225
SELECT ALL - col2 DIV - 38 FROM tab1 cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - col2 / - 38 FROM tab1 cor0
----
1
1
2
query I rowsort
SELECT - cor0.col0 + - col1 * - col2 AS col1 FROM tab2 AS cor0
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - 22 + ( - col2 ) col2 FROM tab1 AS cor0
----
163
190
518
query I rowsort
SELECT col0 * 23 FROM tab2 AS cor0
----
161
1794
1817
query I rowsort
SELECT DISTINCT - - col2 * - 61 AS col1 FROM tab1 AS cor0
----
-3294
-3477
-5856
query I rowsort
SELECT + col1 + 53 FROM tab1 AS cor0
----
63
66
79
skipif mysql # not compatible
query I rowsort
SELECT col1 * CAST ( + col0 AS REAL ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + + col2 + ( + col1 ) AS col0 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL col2 * + col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + col2 * + col2 * - 86 AS col1 FROM tab2 AS cor0
----
-124184
-58136
-62694
query I rowsort
SELECT - col2 + - col1 AS col2 FROM tab0
----
-119
-173
-98
query I rowsort
SELECT + - 92 * col0 AS col2 FROM tab0 cor0
----
-2208
-3220
-8188
query I rowsort
SELECT ALL + - cor0.col2 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - col1 + - col2 * - col0 FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + 57 col1 FROM tab1 AS cor0
----
-111
-114
-153
query I rowsort
SELECT DISTINCT col2 + + 45 FROM tab0 AS cor0
----
127
46
78
query I rowsort
SELECT col0 + ( col0 ) + + cor0.col1 * ( col2 ) AS col0 FROM tab1 cor0
----
1408
1410
698
query I rowsort
SELECT DISTINCT + col1 + ( + ( col0 ) ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col0 * col1 - col2 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6244
SELECT - - col2 DIV - col0 + col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-6244
SELECT - - col2 / - col0 + col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT - ( col0 ) + + 88 FROM tab2
----
10
81
9
query I rowsort
SELECT + col0 + 72 FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT DISTINCT + col0 + + ( - col1 ) * - col0 * + col2 FROM tab1 AS cor0
----
36544
4215
99920
query I rowsort
SELECT DISTINCT col1 + cor0.col0 AS col2 FROM tab0 cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col2 ) col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL - 48 - cor0.col2 FROM tab0 AS cor0
----
-130
-49
-81
query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab1 AS cor0
----
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col2 + col1 + col1 col2 FROM tab2 AS cor0
----
-1416
-612
-775
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 * col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + + ( + col2 ) * cor0.col1 + + 69 FROM tab2 cor0
----
1603
715
906
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col0 + col2 col1 FROM tab0 AS cor0
----
253
37
90
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col0 * - col1 FROM tab2 cor0
----
1305
190
4576
query I rowsort
SELECT - 98 * + 14 AS col0 FROM tab2 cor0
----
-1372
-1372
-1372
query I rowsort
SELECT + - ( + 39 ) * + col1 + cor0.col0 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-1290
-388
4550
query I rowsort
SELECT ALL col1 * 22 + + col1 AS col0 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT DISTINCT - 20 + 17 AS col0 FROM tab0 cor0
----
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6261
SELECT - + col0 DIV + cor0.col1 + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-6261
SELECT - + col0 / + cor0.col1 + + col0 + + col0 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT + col0 * 79 FROM tab2 AS cor0
----
553
6162
6241
query I rowsort
SELECT ALL 44 AS col1 FROM tab2 AS cor0
----
44
44
44
query I rowsort
SELECT ALL 42 + col2 FROM tab0 AS cor0
----
124
43
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-6265
SELECT - - col2 DIV col1 AS col2 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6265
SELECT - - col2 / col1 AS col2 FROM tab2 AS cor0
----
0
0
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6266
SELECT + - CAST( - col2 AS SIGNED ) * + col0 FROM tab2 cor0
----
189
2028
3002
skipif mysql # not compatible
query I rowsort label-6266
SELECT + - CAST ( - col2 AS INTEGER ) * + col0 FROM tab2 cor0
----
189
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + - cor0.col2 * - ( - col2 + - col1 ) col0 FROM tab2 AS cor0
----
-1593
-2128
-2236
query I rowsort
SELECT ALL col0 * col1 + - col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT DISTINCT + 78 * + col0 + + col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT ALL - 67 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT DISTINCT col2 + tab1.col1 + col0 * + 2 AS col2 FROM tab1
----
195
269
86
query I rowsort
SELECT DISTINCT - cor0.col0 * col0 + - col0 AS col2 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - col2 + + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 * ( cor0.col2 ) col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ALL + + col1 * + col0 + - cor0.col1 + 75 AS col2 FROM tab0 cor0
----
2053
3373
8083
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT DISTINCT + + cor0.col1 DIV col1 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-6276
SELECT DISTINCT + + cor0.col1 / col1 + col1 AS col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT ALL 5 AS col1 FROM tab2
----
5
5
5
query I rowsort
SELECT - cor0.col1 * col0 + 92 * col0 AS col1 FROM tab0 cor0
----
-175
144
89
query I rowsort
SELECT ALL - ( + cor0.col0 ) + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-1120
-704
-81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL ( col1 ) * - col1 + - col0 FROM tab2
----
-3559
-368
-968
query I rowsort
SELECT DISTINCT ( col0 ) + - tab1.col0 FROM tab1
----
0
query I rowsort
SELECT + 15 * col1 AS col0 FROM tab1 AS cor0
----
150
195
390
query I rowsort
SELECT 83 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 002a717a3d902d97220759065fb107c3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6285
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + + col1 + - col1 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - col0 + col1 AS col1 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT ALL cor0.col2 + col0 - + ( - cor0.col2 ) FROM tab0 AS cor0
----
253
37
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6289
SELECT - col1 DIV + ( - col1 ) AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6289
SELECT - col1 / + ( - col1 ) AS col2 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6290
SELECT + col2 DIV 95 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6290
SELECT + col2 / 95 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL - 45 * cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to c1844f478612e246edb854acbfaf0756
onlyif mysql # use DIV operator for integer division
query I rowsort label-6292
SELECT col1 + - col1 DIV + 84 AS col2 FROM tab0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-6292
SELECT col1 + - col1 / + 84 AS col2 FROM tab0
----
85
90
96
query I rowsort
SELECT + 70 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT ALL col0 + - col0 * 35 AS col0 FROM tab0
----
-1190
-3026
-816
query I rowsort
SELECT + ( - cor0.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col0 col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT 30 + - tab2.col0 AS col2 FROM tab2
----
-48
-49
23
query I rowsort
SELECT - 96 * - col1 AS col1 FROM tab1
----
1248
2496
960
query I rowsort
SELECT 91 * col2 FROM tab2
----
2366
2457
3458
query I rowsort
SELECT ALL 61 AS col1 FROM tab1
----
61
61
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 + col2 col1 FROM tab2
----
52
54
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6302
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col0 + col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6302
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col0 + col0 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort
SELECT ALL - CAST ( col2 AS REAL ) FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + 48 * 9 - col0 * 71 * col0 AS col1 FROM tab1 AS cor0
----
-207
-290384
-453968
query III rowsort
SELECT * FROM tab0 WHERE NULL <> - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col0 FROM tab1
----
128
160
6
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6309
SELECT DISTINCT tab0.col2 DIV - col0 - + col0 AS col2 FROM tab0
----
-25
-35
-89
skipif mysql # not compatible
query I rowsort label-6309
SELECT DISTINCT tab0.col2 / - col0 - + col0 AS col2 FROM tab0
----
-25
-35
-89
query I rowsort
SELECT DISTINCT col2 * col0 - col1 AS col2 FROM tab1
----
136
3638
7667
query I rowsort
SELECT + tab2.col0 * - col1 * col1 FROM tab2
----
-22831
-271518
-6727
onlyif mysql # use DIV operator for integer division
query I rowsort label-6312
SELECT DISTINCT - col1 + + tab0.col0 DIV - col2 + col1 AS col0 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - col1 + + tab0.col0 / - col2 + col1 AS col0 FROM tab0
----
-1
-35
0
query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col1 < col0 * + col0 * + col1
----
query I rowsort
SELECT + tab1.col0 * col1 + col2 FROM tab1 WHERE NOT + col2 BETWEEN NULL AND + col2 + col1 * col2
----
query I rowsort
SELECT col1 * - col2 * + tab2.col1 FROM tab2 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT ALL tab1.col0 + - col2 AS col0 FROM tab1
----
-16
-51
7
query I rowsort
SELECT col2 * col2 - - col0 FROM tab2
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-6318
SELECT DISTINCT col2 DIV col0 - col2 * + tab1.col0 FROM tab1
----
-144
-3648
-7679
skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT col2 / col0 - col2 * + tab1.col0 FROM tab1
----
-144
-3648
-7679
query I rowsort
SELECT ALL tab2.col0 - col1 AS col0 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6320
SELECT + - col1 + - col2 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6320
SELECT + - col1 + - col2 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col0 * tab0.col0 - col1 * col1 AS col1 FROM tab0
----
-360
-6820
-8184
onlyif mysql # use DIV operator for integer division
query I rowsort label-6322
SELECT ALL col0 DIV col0 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL col0 / col0 FROM tab2
----
1
1
1
query I rowsort
SELECT col0 * + col2 * + col0 AS col1 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT + col1 + col0 + col0 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL - tab2.col1 + + col2 - col1 AS col1 FROM tab2
----
-35
-92
4
query I rowsort
SELECT col1 * col0 * - tab0.col1 FROM tab0
----
-177504
-329315
-737009
onlyif mysql # use DIV operator for integer division
query I rowsort label-6327
SELECT DISTINCT - col0 DIV col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6327
SELECT DISTINCT - col0 / col1 FROM tab0
----
0
query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 + col0 - col2 ) <> ( + col1 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - col2 * + tab2.col2 + + col0 FROM tab2
----
-1365
-598
-722
query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 - col0 ) NOT IN ( - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6331
SELECT ALL col0 * col1 DIV - col1 AS col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-6331
SELECT ALL col0 * col1 / - col1 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( + col1 ) IN ( + col2 )
----
query I rowsort
SELECT ALL + col2 - - col0 AS col2 FROM tab2 cor0
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / + col1 col0 FROM tab1 WHERE NULL BETWEEN NULL AND + col2 + col0
----
query I rowsort
SELECT - tab2.col1 AS col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6336
SELECT tab0.col0 DIV - col2 FROM tab0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6336
SELECT tab0.col0 / - col2 FROM tab0
----
-1
-35
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6337
SELECT DISTINCT col1 - + col1 DIV + col2 FROM tab0
----
0
84
90
skipif mysql # not compatible
query I rowsort label-6337
SELECT DISTINCT col1 - + col1 / + col2 FROM tab0
----
0
84
90
query I rowsort
SELECT + col1 + - col2 * col0 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab0, tab1 AS cor0
----
54
57
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 AS cor0 WHERE NULL = col0 * col0
----
query I rowsort
SELECT col1 * ( cor0.col0 ) + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + - col0 + + col0 * + ( - col0 + - 77 ) * - 22 AS col0 FROM tab1 AS cor0
----
198464
276240
5277
query I rowsort
SELECT + col1 * cor0.col0 + col0 AS col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT cor0.col2 * ( col1 * + col1 ) + - ( + col0 ) * - col1 AS col0 FROM tab1 AS cor0
----
17264
36582
6340
query I rowsort
SELECT ALL + cor0.col2 AS col2 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT - col0 * - ( col2 + col2 ) AS col1 FROM tab2 cor0
----
378
4056
6004
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6347
SELECT DISTINCT CAST( col0 AS SIGNED ) + col0 * - ( cor0.col0 ) AS col0 FROM tab2 cor0
----
-42
-6006
-6162
skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col0 * - ( cor0.col0 ) AS col0 FROM tab2 cor0
----
-42
-6006
-6162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6348
SELECT - + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6348
SELECT - + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 31 AS col1 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT DISTINCT - - cor0.col2 * + 42 - + col2 FROM tab1 AS cor0
----
2214
2337
3936
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab2 cor1, tab2 AS cor2
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-6352
SELECT ALL - - ( col0 ) DIV col1 - ( 44 * + col1 ) FROM tab2 AS cor0
----
-1364
-2595
-744
skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL - - ( col0 ) / col1 - ( 44 * + col1 ) FROM tab2 AS cor0
----
-1364
-2595
-744
query I rowsort
SELECT ALL + - ( + 71 ) AS col2 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT ALL - col0 + col1 * + col2 - + col2 FROM tab2 AS cor0
----
1430
529
803
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6355
SELECT - col0 * + col2 + CAST( NULL AS SIGNED ) + tab0.col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6355
SELECT - col0 * + col2 + CAST ( NULL AS INTEGER ) + tab0.col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + ( col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * - col1 + col1 col0 FROM tab1 cor0
----
-1027
-52
-630
skipif mysql # not compatible
query I rowsort
SELECT ALL - - 78 + col2 * + CAST ( col1 AS REAL ) FROM tab0 AS cor0
----
175
2916
7540
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 col0 FROM tab2 cor0
----
-189
-2028
-3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6360
SELECT 46 DIV - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-46
0
skipif mysql # not compatible
query I rowsort label-6360
SELECT 46 / - cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-46
0
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - cor1.col2 * cor1.col0 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to f3d13ee223d49784ddc477e9dce2d812
query I rowsort
SELECT - - cor0.col0 * col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL col1 * 89 + col2 FROM tab1 AS cor0
----
1253
2368
947
onlyif mysql # use DIV operator for integer division
query I rowsort label-6365
SELECT + col1 + ( col2 ) DIV + col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-6365
SELECT + col1 + ( col2 ) / + col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT ALL - col2 + + 58 FROM tab2 cor0
----
20
31
32
query I rowsort
SELECT DISTINCT col1 * - ( + col2 ) * col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 * col2 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6369
SELECT col0 * 92 DIV 38 AS col0 FROM tab1 AS cor0
----
154
193
7
skipif mysql # not compatible
query I rowsort label-6369
SELECT col0 * 92 / 38 AS col0 FROM tab1 AS cor0
----
154
193
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * ( - 86 ) col1 FROM tab0 AS cor0
----
7396
7826
8342
query I rowsort
SELECT + - cor0.col1 + ( 88 * + col0 ) AS col0 FROM tab0 AS cor0
----
2026
2983
7741
onlyif mysql # use DIV operator for integer division
query I rowsort label-6372
SELECT cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-6372
SELECT cor0.col2 / - col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT + - col0 * - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL col2 * + col1 + ( 80 ) + col2 FROM tab1
----
1424
1538
707
query I rowsort
SELECT + col2 + ( col2 ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + + ( col2 ) AS col0 FROM tab1 cor0
----
54
57
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6377
SELECT col1 + CAST( col2 AS SIGNED ) * col1 AS col2 FROM tab2
----
1593
663
868
skipif mysql # not compatible
query I rowsort label-6377
SELECT col1 + CAST ( col2 AS INTEGER ) * col1 AS col2 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL - ( col1 ) + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + ( col2 ) + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 16 FROM tab0
----
16
16
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6381
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col0 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col0 AS col2 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6382
SELECT DISTINCT CAST( 0 AS SIGNED ) AS col2 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT CAST ( 0 AS INTEGER ) AS col2 FROM tab0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT ALL - 74 DIV - col1 AS col2 FROM tab2 AS cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL - 74 / - col1 AS col2 FROM tab2 AS cor0
----
1
2
4
query I rowsort
SELECT DISTINCT - + col0 * 33 + cor0.col2 FROM tab2 AS cor0
----
-204
-2548
-2569
query I rowsort
SELECT DISTINCT - + col1 + cor0.col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + - ( 71 ) + - col2 AS col2 FROM tab0 cor0
----
-104
-153
-72
query I rowsort
SELECT DISTINCT - + col1 + + col2 * col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT ALL - + ( - col0 ) * - col2 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6389
SELECT DISTINCT + - CAST( col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col0 + - col1 + + col0 AS col2 FROM tab2
----
-17
141
97
query I rowsort
SELECT ALL 76 * col0 + + 33 AS col2 FROM tab2
----
565
5961
6037
query I rowsort
SELECT ALL + col0 + col2 * 10 AS col2 FROM tab0
----
354
45
909
query I rowsort
SELECT + 65 + col0 FROM tab2
----
143
144
72
query I rowsort
SELECT + cor0.col1 AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL - col2 + col2 + + 6 AS col2 FROM tab2
----
6
6
6
query I rowsort
SELECT + col2 - tab0.col0 * + col0 FROM tab0
----
-1224
-543
-7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-6397
SELECT + col2 - tab0.col2 * - col0 DIV col0 FROM tab0
----
164
2
66
skipif mysql # not compatible
query I rowsort label-6397
SELECT + col2 - tab0.col2 * - col0 / col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ALL + tab1.col2 + - col0 * 80 FROM tab1
----
-186
-5063
-6304
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col2 col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT ALL - - col1 + + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL - tab0.col1 + col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * col2 + col0 * tab0.col0 FROM tab0
----
1322
15383
3414
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - cor0.col2 col0 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * 8 col1 FROM tab1 cor0
----
-137
-200
-262
query I rowsort
SELECT col2 * + cor0.col0 + 88 FROM tab2 AS cor0
----
2116
277
3090
query I rowsort
SELECT ALL col2 * 54 FROM tab1 AS cor0
----
2916
3078
5184
query I rowsort
SELECT DISTINCT + 7 FROM tab0, tab1 AS cor0
----
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6408
SELECT ALL col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col2 * col2 + col2 * col0 FROM tab1 AS cor0
----
-1536
-2754
399
query I rowsort
SELECT ALL - col1 + + col1 - + 67 AS col0 FROM tab2 AS cor0
----
-67
-67
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - cor0.col0 * 7 col2 FROM tab2 AS cor0
----
49
546
553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 + - col0 col0 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT - + col2 * ( col2 ) AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT col1 * + 76 + col2 FROM tab2 AS cor0
----
1330
2383
4510
query I rowsort
SELECT DISTINCT col2 + col1 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
1331
1432
617
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT - cor0.col0 + - col1 * + col0 FROM tab2 cor0
----
-1422
-224
-4680
query I rowsort
SELECT + cor0.col1 + ( - col2 ) * col2 AS col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT col2 * ( col2 ) * - col2 + col2 * + col1 FROM tab2 AS cor0
----
-16042
-18846
-54226
query I rowsort
SELECT + col2 * + col1 + - cor0.col1 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6421
SELECT DISTINCT + col1 - + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT + col1 - + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT col2 * col1 * - col0 FROM tab2
----
-119652
-51034
-5859
query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT tab1.col0 * col1 AS col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 * + col1 * col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-6426
SELECT + col1 DIV - col2 - - col2 AS col2 FROM tab0 AS cor0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-6426
SELECT + col1 / - col2 - - col2 AS col2 FROM tab0 AS cor0
----
-96
31
81
query I rowsort
SELECT col0 * cor0.col0 AS col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-6428
SELECT + col0 * col1 * col0 + + col0 DIV col2 AS col2 FROM tab1 AS cor0
----
234
40961
83200
skipif mysql # not compatible
query I rowsort label-6428
SELECT + col0 * col1 * col0 + + col0 / col2 AS col2 FROM tab1 AS cor0
----
234
40961
83200
query I rowsort
SELECT - col0 * col2 * - col0 AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT DISTINCT + col2 + col2 * col1 FROM tab0 WHERE NOT NULL > ( - col0 * - col2 ) AND NULL BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * cor0.col2 col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + cor0.col1 * col2 + col1 AS col0 FROM tab0 cor0
----
194
2924
7553
query I rowsort
SELECT ALL 96 AS col1 FROM tab1 AS cor0
----
96
96
96
query I rowsort
SELECT - + cor0.col0 + - col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL + - cor0.col2 + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # use DIV operator for integer division
query I rowsort label-6436
SELECT DISTINCT + col0 DIV cor0.col1 + + col1 * + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-36474
-4212
-99834
skipif mysql # not compatible
query I rowsort label-6436
SELECT DISTINCT + col0 / cor0.col1 + + col1 * + col2 * - cor0.col0 AS col2 FROM tab1 AS cor0
----
-36474
-4212
-99834
onlyif mysql # use DIV operator for integer division
query I rowsort label-6437
SELECT - col0 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6437
SELECT - col0 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ( col0 ) * - col1 + col2 AS col2 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT - col0 + 43 FROM tab2
----
-35
-36
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * cor0.col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT - col0 + col2 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT + col2 + + col1 * col0 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT DISTINCT - 84 + tab1.col0 FROM tab1
----
-20
-4
-81
query I rowsort
SELECT - 75 * + tab2.col1 FROM tab2
----
-1275
-2325
-4425
onlyif mysql # use DIV operator for integer division
query I rowsort label-6445
SELECT ALL + col0 DIV col0 AS col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL + col0 / col0 AS col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col0 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col0 * - col2 * + col1 AS col0 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT + + col0 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL - col1 + - col1 * - col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + + col2 * 93 col2 FROM tab0 AS cor0
----
3036
7544
92
query I rowsort
SELECT DISTINCT 33 + - col0 AS col2 FROM tab0 AS cor0
----
-2
-56
9
query I rowsort
SELECT + 2 * - 19 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT + + col2 * 82 AS col0 FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 cor2
----
1
33
82
query I rowsort
SELECT DISTINCT - - col0 * + col1 * col2 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - 19 * col0 AS col1 FROM tab2
----
-133
-1482
-1501
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col1 FROM tab0
----
-49
-49
-49
query I rowsort
SELECT DISTINCT - 85 * 89 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-7565
query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
72
query I rowsort
SELECT + 39 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-7259
-753
4
query I rowsort
SELECT 17 + col2 AS col2 FROM tab2 AS cor0
----
43
44
55
query I rowsort
SELECT DISTINCT - - cor1.col0 * + cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab1, tab0 AS cor1
----
2064
3395
8099
query I rowsort
SELECT ALL + ( - 45 * - col0 ) FROM tab2
----
315
3510
3555
query I rowsort
SELECT - - col2 * cor0.col1 + - col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT cor0.col2 * + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 16ae0e1090cb09b93854a4788f17716b
query I rowsort
SELECT ( - 19 ) FROM tab0
----
-19
-19
-19
query I rowsort
SELECT ALL - + 27 * - col2 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT ALL - 36 * - cor1.col1 + cor0.col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a7598c958f5e15ef7476da01dacff350
query I rowsort
SELECT col0 * + col0 + ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col1 col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + 12 + - col1 + col1 * + 2 * col2 AS col1 FROM tab1
----
1142
2495
2794
query I rowsort
SELECT - col0 + + 29 + col1 AS col0 FROM tab0
----
31
91
91
query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab2, tab1 AS cor0
----
54
query I rowsort
SELECT ( + tab1.col0 ) * + col2 - + ( + col1 ) * + col0 FROM tab1
----
3008
6640
84
query I rowsort
SELECT DISTINCT ( + col0 ) + + col0 * col0 AS col2 FROM tab0
----
1260
600
8010
query I rowsort
SELECT ALL 40 FROM tab2, tab0 AS cor0, tab1, tab0 AS cor1
----
81 values hashing to 09624b9180d40f03a4dda4b4c17356c0
query I rowsort
SELECT - - col2 + - col0 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 col1 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT 40 + col1 AS col1 FROM tab2 AS cor0
----
57
71
99
query I rowsort
SELECT + 25 + - col0 FROM tab2 AS cor0
----
-53
-54
18
query I rowsort
SELECT DISTINCT cor0.col0 * + cor0.col2 + - 23 * + col2 AS col2 FROM tab0 AS cor0
----
12
33
5412
query I rowsort
SELECT ( col0 ) * col2 AS col2 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT ALL col0 * + cor0.col0 - + col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT DISTINCT + 79 + - col1 * 22 AS col2 FROM tab2 AS cor0
----
-1219
-295
-603
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 + col0 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL col0 + + col0 * col2 - - col2 FROM tab0
----
71
7469
849
query I rowsort
SELECT - 46 FROM tab2, tab1 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
onlyif mysql # use DIV operator for integer division
query I rowsort label-6489
SELECT ALL - col2 * tab1.col1 + - col1 - col2 DIV + CAST( - col1 AS SIGNED ) AS col2 FROM tab1
----
-1254
-1428
-575
skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL - col2 * tab1.col1 + - col1 - col2 / + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1
----
-1254
-1428
-575
query I rowsort
SELECT + 90 AS col1 FROM tab1, tab0, tab1 AS cor0, tab0 AS cor1
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b
query I rowsort
SELECT + 66 FROM tab1, tab1 AS cor0
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT DISTINCT + col1 - - col1 FROM tab2
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6493
SELECT DISTINCT + col2 DIV + col1 - - col0 FROM tab2
----
7
78
81
skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT + col2 / + col1 - - col0 FROM tab2
----
7
78
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6494
SELECT ALL col1 * + CAST( col0 AS SIGNED ) - + col0 * 19 AS col2 FROM tab0
----
1608
2730
6408
skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL col1 * + CAST ( col0 AS INTEGER ) - + col0 * 19 AS col2 FROM tab0
----
1608
2730
6408
onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT + cor0.col2 * col0 DIV 65 AS col1 FROM tab2 cor0
----
2
31
46
skipif mysql # not compatible
query I rowsort label-6495
SELECT + cor0.col2 * col0 / 65 AS col1 FROM tab2 cor0
----
2
31
46
query I rowsort
SELECT + 2 + - col1 - col2 AS col0 FROM tab1 AS cor0
----
-107
-65
-78
query I rowsort
SELECT - - col0 + - col2 + col1 FROM tab0 AS cor0
----
131
77
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6498
SELECT DISTINCT CAST( + col0 AS SIGNED ) * col1 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT CAST ( + col0 AS INTEGER ) * col1 FROM tab1 AS cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT 32 + ( col1 ) * col1 DIV - col0 + col1 FROM tab1 AS cor0
----
-167
41
43
skipif mysql # not compatible
query I rowsort label-6499
SELECT 32 + ( col1 ) * col1 / - col0 + col1 FROM tab1 AS cor0
----
-167
41
43
query I rowsort
SELECT DISTINCT + + tab2.col2 AS col1 FROM tab2, tab0, tab1 cor0
----
26
27
38
query I rowsort
SELECT ALL 52 AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT ALL - - col1 * 54 + col1 * cor0.col1 FROM tab0 AS cor0
----
12040
13195
14647
query I rowsort
SELECT DISTINCT - - col0 * + col1 - + col1 AS col2 FROM tab1 cor0
----
1027
52
630
query I rowsort
SELECT + 61 + col0 * + cor0.col0 AS col0 FROM tab2 AS cor0
----
110
6145
6302
query I rowsort
SELECT ALL - 84 * + 52 * + col1 FROM tab0 AS cor0
----
-375648
-397488
-423696
onlyif mysql # use DIV operator for integer division
query I rowsort label-6506
SELECT DISTINCT + - col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6506
SELECT DISTINCT + - col0 / + col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - col2 + - 21 * 35 * + col1 FROM tab2 AS cor0
----
-12533
-22812
-43391
query I rowsort
SELECT ALL col2 * col2 + col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT ALL + + cor0.col0 * + 11 FROM tab1 AS cor0
----
33
704
880
query I rowsort
SELECT DISTINCT 86 FROM tab1, tab0 AS cor0
----
86
query I rowsort
SELECT DISTINCT 35 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
35
query I rowsort
SELECT - col2 * + col1 + - 93 * cor0.col1 * + ( + cor0.col1 ) + - col2 FROM tab2 cor0
----
-27561
-325293
-90237
onlyif mysql # use DIV operator for integer division
query I rowsort label-6513
SELECT - col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6513
SELECT - col1 / - col0 AS col0 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL - col1 + ( - col0 ) * col2 * ( + 23 ) AS col2 FROM tab1
----
-176653
-3752
-83914
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6516
SELECT CAST( NULL AS SIGNED ) * 23 + col0 + CAST( NULL AS SIGNED ) * 61 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6516
SELECT CAST ( NULL AS INTEGER ) * 23 + col0 + CAST ( NULL AS INTEGER ) * 61 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 12 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
query I rowsort
SELECT DISTINCT + col2 * col1 + + col2 * col1 FROM tab1 AS cor0
----
1140
2496
2808
query I rowsort
SELECT - col2 * col1 * - ( tab1.col2 ) FROM tab1
----
119808
32490
75816
query I rowsort
SELECT + col2 + 97 FROM tab1
----
151
154
193
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6521
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6521
SELECT ALL CAST ( NULL AS REAL ) FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 79 FROM tab2 cor0
----
79
query I rowsort
SELECT + - col0 * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 59 + col2 * col0 AS col0 FROM tab0
----
-24
7239
733
query I rowsort
SELECT DISTINCT ( col1 * col2 ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + 83 - + col0 AS col2 FROM tab1 AS cor0
----
19
3
80
query I rowsort
SELECT ALL + + col2 * - col1 * + col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT DISTINCT + col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-6529
SELECT + col1 * - col0 + - ( col1 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-86
skipif mysql # not compatible
query I rowsort label-6529
SELECT + col1 * - col0 + - ( col1 ) / col0 AS col1 FROM tab1 AS cor0
----
-1040
-640
-86
query I rowsort
SELECT DISTINCT + 88 + col2 FROM tab0 cor0
----
121
170
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * col2 - - cor0.col2 col1 FROM tab1 AS cor0
----
2970
3306
9312
onlyif mysql # use DIV operator for integer division
query I rowsort label-6532
SELECT - - col1 DIV col1 + CAST( + col0 + col2 AS SIGNED ) FROM tab2 AS cor0
----
105
118
35
skipif mysql # not compatible
query I rowsort label-6532
SELECT - - col1 / col1 + CAST ( + col0 + col2 AS INTEGER ) FROM tab2 AS cor0
----
105
118
35
query I rowsort
SELECT ALL 19 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6534
SELECT + CAST( NULL AS DECIMAL ) + + col2 / col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6534
SELECT + CAST ( NULL AS REAL ) + + col2 / col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 16 + + col1 + - 27 FROM tab0
----
75
80
86
query I rowsort
SELECT ALL - col0 + - col0 AS col0 FROM tab2
----
-14
-156
-158
query I rowsort
SELECT DISTINCT + 23 + col0 AS col1 FROM tab1
----
103
26
87
query I rowsort
SELECT ALL - ( col2 ) + 2 AS col1 FROM tab0 AS cor0
----
-31
-80
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 * + col1 + - 78 col0 FROM tab1 AS cor0
----
130
2
26
query I rowsort
SELECT + + col0 * col1 - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT 71 - + col2 * - col1 AS col2 FROM tab2 AS cor0
----
1605
717
908
query I rowsort
SELECT ALL + - 63 + col1 AS col0 FROM tab2 AS cor0
----
-32
-4
-46
query I rowsort
SELECT + + col1 * cor0.col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL 29 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
2527
2721
2814
query I rowsort
SELECT DISTINCT + + col1 * + col0 * - col1 AS col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT DISTINCT col2 + - col0 + tab2.col0 FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL 63 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + tab1.col1 + + 58 col2 FROM tab1
----
-111
-42
-618
query I rowsort
SELECT 18 AS col2 FROM tab1
----
18
18
18
query I rowsort
SELECT DISTINCT 87 * + col0 AS col1 FROM tab0
----
2088
3045
7743
query I rowsort
SELECT ALL + + 88 AS col2 FROM tab1 AS cor0
----
88
88
88
query I rowsort
SELECT ALL + col2 + - 90 FROM tab2 AS cor0
----
-52
-63
-64
query I rowsort
SELECT DISTINCT col1 + + 76 AS col1 FROM tab2 AS cor0
----
107
135
93
query I rowsort
SELECT - col1 * ( col1 ) * + cor0.col0 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + col0 + col2 * col1 * - col1 FROM tab2 AS cor0
----
-10903
-25940
-90428
skipif mysql # not compatible
query I rowsort
SELECT - col1 - CAST ( col1 AS REAL ) * cor0.col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-13533
-2054
-6410
query I rowsort
SELECT + - col2 + 38 AS col2 FROM tab1 AS cor0
----
-16
-19
-58
query I rowsort
SELECT - col1 + ( - cor0.col1 + - col1 * + col2 ) AS col0 FROM tab2 cor0
----
-1652
-680
-899
query I rowsort
SELECT + + 41 AS col2 FROM tab0 AS cor0
----
41
41
41
query I rowsort
SELECT DISTINCT - tab0.col1 * ( - col1 ) AS col0 FROM tab0
----
7396
8281
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6562
SELECT ALL + CAST( NULL AS SIGNED ) + ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + CAST ( NULL AS INTEGER ) + ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 * - cor0.col0 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + - 13 * + col2 + col2 + - col2 * col1 AS col0 FROM tab0 AS cor0
----
-109
-3234
-8446
query I rowsort
SELECT - - 56 + cor0.col2 FROM tab2 AS cor0
----
82
83
94
query I rowsort
SELECT ALL + + col0 + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab1 AS cor0
----
46
query I rowsort
SELECT + - col2 * - col2 * + col2 FROM tab1 AS cor0
----
157464
185193
884736
query I rowsort
SELECT DISTINCT + + col1 * + 46 AS col1 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT ALL + - col0 * col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT - 89 FROM tab0 AS cor0
----
-89
-89
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6572
SELECT ALL - col1 DIV + col1 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6572
SELECT ALL - col1 / + col1 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col2 * - col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col1 * col2 * col1 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT 43 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT DISTINCT + 39 FROM tab2
----
39
query I rowsort
SELECT - - 61 AS col0 FROM tab0 AS cor0
----
61
61
61
query I rowsort
SELECT - 68 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
query I rowsort
SELECT 73 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT ALL + col0 + ( tab2.col0 ) + col1 FROM tab2
----
175
215
45
query I rowsort
SELECT DISTINCT - col0 * - col1 * col0 + col2 * 19 FROM tab1
----
1260
42043
85024
query I rowsort
SELECT + 78 + - col0 FROM tab2 AS cor0
----
-1
0
71
query I rowsort
SELECT + col2 + 67 * + col0 FROM tab0 cor0
----
1641
2346
6045
query I rowsort
SELECT DISTINCT ( + col0 ) - - col0 * col2 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col2 FROM tab0 AS cor0
----
44
44
44
query I rowsort
SELECT ALL + col0 * col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - - col0 * - col0 + - col1 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT ALL - 39 * cor0.col1 AS col1 FROM tab0 cor0
----
-3354
-3549
-3783
query I rowsort
SELECT - 95 FROM tab0 cor0
----
-95
-95
-95
query I rowsort
SELECT ALL - + ( col1 ) + + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col0 * 1 + + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT - - 23 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-26
-6061
-6218
onlyif mysql # use DIV operator for integer division
query I rowsort label-6594
SELECT ALL col1 DIV - col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6594
SELECT ALL col1 / - col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT - col1 * ( + col2 ) + - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT + col1 + - 56 FROM tab0 AS cor0
----
30
35
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-6597
SELECT - + col2 + + col2 * - col1 - + col1 * col0 DIV col0 AS col0 FROM tab0 AS cor0
----
-195
-2957
-7635
skipif mysql # not compatible
query I rowsort label-6597
SELECT - + col2 + + col2 * - col1 - + col1 * col0 / col0 AS col0 FROM tab0 AS cor0
----
-195
-2957
-7635
onlyif mysql # use DIV operator for integer division
query I rowsort label-6598
SELECT - - col2 * col2 DIV - col2 + ( col2 ) + 38 AS col0 FROM tab1 AS cor0
----
38
38
38
skipif mysql # not compatible
query I rowsort label-6598
SELECT - - col2 * col2 / - col2 + ( col2 ) + 38 AS col0 FROM tab1 AS cor0
----
38
38
38
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6599
SELECT - - col0 * col0 + CAST( col0 AS SIGNED ) - + col1 col1 FROM tab0 AS cor0
----
1163
514
7919
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6599
SELECT - - col0 * col0 + CAST ( col0 AS INTEGER ) - + col1 col1 FROM tab0 AS cor0
----
1163
514
7919
query I rowsort
SELECT DISTINCT 45 * col0 + - tab2.col1 * col2 - - col2 FROM tab2
----
-495
2002
2947
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6601
SELECT - col1 * col0 + CAST( + col2 AS SIGNED ) + - cor0.col2 * col2 * + col1 col2 FROM tab2 AS cor0
----
-22789
-25853
-44460
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6601
SELECT - col1 * col0 + CAST ( + col2 AS INTEGER ) + - cor0.col2 * col2 * + col1 col2 FROM tab2 AS cor0
----
-22789
-25853
-44460
query I rowsort
SELECT + col1 * - col2 * - ( cor0.col2 ) + - col2 * + 81 FROM tab1 cor0
----
112032
27873
71442
query I rowsort
SELECT + 5 + - cor0.col2 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-104
-62
-75
query I rowsort
SELECT col0 + - col0 + - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + cor0.col0 + col2 AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col2 + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 27 - col0 FROM tab1 cor0
----
-37
-53
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * 8 col0 FROM tab0 AS cor0
----
-192
-280
-712
query I rowsort
SELECT - col1 * cor0.col0 + 14 AS col1 FROM tab0 AS cor0
----
-2050
-3381
-8085
onlyif mysql # use DIV operator for integer division
query I rowsort label-6610
SELECT - cor0.col2 * col0 DIV - ( + col2 + + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
19
25
5
skipif mysql # not compatible
query I rowsort label-6610
SELECT - cor0.col2 * col0 / - ( + col2 + + cor0.col0 ) AS col2 FROM tab2 AS cor0
----
19
25
5
query I rowsort
SELECT - - 34 + 43 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT ALL + col0 + + 8 FROM tab1 AS cor0
----
11
72
88
query I rowsort
SELECT cor0.col2 - - col1 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + col2 * + 46 + col0 FROM tab1 AS cor0
----
2487
2686
4496
query I rowsort
SELECT ALL - col1 * 49 * + 39 AS col2 FROM tab1 AS cor0
----
-19110
-24843
-49686
query I rowsort
SELECT ALL + col2 + - ( - cor0.col0 ) * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT + - col1 * + col1 + - col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL + cor0.col0 + - col2 * + cor0.col1 AS col2 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT + 46 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 2f97924b57b73102233df7c9ce8ad602
onlyif mysql # use DIV operator for integer division
query I rowsort label-6620
SELECT + col1 * - 51 + 22 - cor0.col1 DIV col1 AS col1 FROM tab1 cor0
----
-1305
-489
-642
skipif mysql # not compatible
query I rowsort label-6620
SELECT + col1 * - 51 + 22 - cor0.col1 / col1 AS col1 FROM tab1 cor0
----
-1305
-489
-642
query I rowsort
SELECT + 0 + col2 * - col1 - col1 * tab1.col2 FROM tab1
----
-1140
-2496
-2808
query I rowsort
SELECT + tab1.col1 + + col2 + ( col1 ) FROM tab1
----
106
122
77
query I rowsort
SELECT 2 * col1 AS col2 FROM tab1
----
20
26
52
query I rowsort
SELECT DISTINCT - - col0 + cor0.col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
query I rowsort
SELECT - col1 - col1 AS col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT col2 + col0 * + col1 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + col1 col1 FROM tab0 cor0
----
172
182
194
query I rowsort
SELECT DISTINCT + col2 * 90 FROM tab1 AS cor0
----
4860
5130
8640
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
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col2 - col2 col0 FROM tab2
----
17
31
59
query I rowsort
SELECT - 73 + 29 AS col0 FROM tab2 AS cor0
----
-44
-44
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-6632
SELECT + 23 DIV - 15 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6632
SELECT + 23 / - 15 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + cor2.col2 FROM tab0 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT 94 + col2 AS col0 FROM tab1 AS cor0
----
148
151
190
query I rowsort
SELECT ( + col1 ) + col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT + ( - col1 ) - - 72 FROM tab0 AS cor0
----
-14
-19
-25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6637
SELECT DISTINCT - + 0 - + col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6637
SELECT DISTINCT - + 0 - + col0 * CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col2 - + col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + + ( + col1 ) * col1 + - col0 + cor0.col0 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT ALL + ( - tab2.col2 ) FROM tab2
----
-26
-27
-38
query I rowsort
SELECT - tab2.col2 FROM tab0, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT - ( - col1 ) + + ( 77 ) AS col2 FROM tab0
----
163
168
174
query I rowsort
SELECT - 52 + + tab1.col2 FROM tab1
----
2
44
5
query I rowsort
SELECT - 51 AS col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 27bcc31433ce90833ed76619cbd8d6a4
query I rowsort
SELECT 58 * - col0 FROM tab2
----
-406
-4524
-4582
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col2 * 23 col2 FROM tab1
----
-1268
-1321
-2221
query I rowsort
SELECT - col2 * - col1 + + 14 FROM tab0
----
111
2852
7476
query I rowsort
SELECT DISTINCT col0 * + col2 - 85 FROM tab0
----
-50
707
7213
onlyif mysql # use DIV operator for integer division
query I rowsort label-6649
SELECT col0 DIV col2 - + tab1.col0 FROM tab1
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-6649
SELECT col0 / col2 - + tab1.col0 FROM tab1
----
-3
-63
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6650
SELECT DISTINCT + cor0.col1 DIV col0 FROM tab0 cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT + cor0.col1 / col0 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT cor0.col1 * + col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col2 * col0 + + col2 * col2 FROM tab0 AS cor0
----
14111
1905
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 * 26 col2 FROM tab0
----
-2043
-834
9
query I rowsort
SELECT ALL + 10 FROM tab0, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113
query I rowsort
SELECT ALL + col1 + - ( col1 * - col0 + col0 ) AS col2 FROM tab2
----
1281
241
4583
query I rowsort
SELECT - col2 * + 98 FROM tab2 AS cor0
----
-2548
-2646
-3724
query I rowsort
SELECT ALL + 53 AS col0 FROM tab0 AS cor0
----
53
53
53
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6659
SELECT ALL + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - + col0 + + col1 AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - col0 AS REAL ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT 1 FROM tab1, tab2 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT DISTINCT 57 AS col0 FROM tab2 cor0
----
57
query I rowsort
SELECT ALL + col0 * col1 + col1 + - col0 AS col1 FROM tab1 AS cor0
----
101
586
973
query I rowsort
SELECT DISTINCT + + cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + ( - col1 ) - + col0 * col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + 51 * col0 + 76 * - 74 AS col1 FROM tab1 AS cor0
----
-1544
-2360
-5471
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6669
SELECT DISTINCT + CAST( col0 AS SIGNED ) * col2 + + 4 col2 FROM tab1
----
166
3652
7684
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * col2 + + 4 col2 FROM tab1
----
166
3652
7684
query I rowsort
SELECT cor1.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT + col0 * col2 + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT + 13 + + cor0.col1 FROM tab2 AS cor0
----
30
44
72
query I rowsort
SELECT - col2 * - 46 AS col1 FROM tab2 AS cor0
----
1196
1242
1748
query I rowsort
SELECT ALL col1 * + col1 + + col0 * - col2 * ( + col0 * - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
13308004
26920
58982569
query I rowsort
SELECT ALL col2 * - 52 AS col0 FROM tab1
----
-2808
-2964
-4992
query I rowsort
SELECT - - col0 * 5 FROM tab1 AS cor0
----
15
320
400
query I rowsort
SELECT col1 * tab2.col1 + 50 FROM tab2
----
1011
339
3531
query I rowsort
SELECT ALL - - col2 * + ( + col1 * col1 ) + + 83 FROM tab2 AS cor0
----
11065
26030
90589
query I rowsort
SELECT ALL col2 + + 72 AS col0 FROM tab2 AS cor0
----
110
98
99
query I rowsort
SELECT ALL - - col2 * col2 + col0 FROM tab1 AS cor0
----
2919
3313
9296
onlyif mysql # use DIV operator for integer division
query I rowsort label-6681
SELECT DISTINCT + col2 DIV 95 AS col1 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6681
SELECT DISTINCT + col2 / 95 AS col1 FROM tab0
----
0
query I rowsort
SELECT col2 * ( - col0 ) AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL col2 * ( col0 ) AS col1 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6684
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6684
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + 46 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT - - 16 FROM tab1 AS cor0
----
16
16
16
query I rowsort
SELECT - + 51 * cor0.col2 AS col1 FROM tab1 cor0
----
-2754
-2907
-4896
query I rowsort
SELECT ALL - 1 + col1 * - 5 FROM tab2 AS cor0
----
-156
-296
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-6689
SELECT ALL + 7 * + col0 DIV col0 FROM tab2
----
7
7
7
skipif mysql # not compatible
query I rowsort label-6689
SELECT ALL + 7 * + col0 / col0 FROM tab2
----
7
7
7
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( col0 AS REAL ) FROM tab0
----
-24
-35
-89
query I rowsort
SELECT DISTINCT 85 FROM tab2
----
85
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6693
SELECT 24 * - col2 * + col2 + + col1 DIV + tab2.col1 + - CAST( + col1 AS SIGNED ) FROM tab2
----
-16282
-17526
-34672
skipif mysql # not compatible
query I rowsort label-6693
SELECT 24 * - col2 * + col2 + + col1 / + tab2.col1 + - CAST ( + col1 AS INTEGER ) FROM tab2
----
-16282
-17526
-34672
onlyif mysql # use DIV operator for integer division
query I rowsort label-6694
SELECT col2 * col0 DIV 2 + col0 AS col2 FROM tab0 AS cor0
----
3738
420
52
skipif mysql # not compatible
query I rowsort label-6694
SELECT col2 * col0 / 2 + col0 AS col2 FROM tab0 AS cor0
----
3738
420
52
query I rowsort
SELECT ( 90 ) FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( tab2.col0 ) col0 FROM tab2
----
7
78
79
query I rowsort
SELECT col1 * - col0 * 68 AS col2 FROM tab0
----
-140352
-230860
-550732
query I rowsort
SELECT ALL cor0.col0 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT DISTINCT + col1 * 11 - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-5435
-6054
292
query I rowsort
SELECT + col2 + ( + col2 ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + cor0.col1 * - col2 * cor0.col2 AS col0 FROM tab2 cor0
----
-22599
-24548
-39884
query I rowsort
SELECT ALL col0 - ( col0 + + col2 ) * - col2 FROM tab1 AS cor0
----
16976
3081
6961
onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT col2 + col2 DIV + 83 AS col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-6703
SELECT col2 + col2 / + 83 AS col2 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6704
SELECT cor0.col2 * 68 + 87 * + col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6704
SELECT cor0.col2 * 68 + 87 * + col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( + col2 ) + + ( - cor0.col0 ) AS col1 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-6706
SELECT ( + 47 + col1 ) DIV + 62 FROM tab2
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6706
SELECT ( + 47 + col1 ) / + 62 FROM tab2
----
1
1
1
query I rowsort
SELECT col1 * ( + col2 * col2 ) FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT 93 * col1 * + col2 AS col1 FROM tab1
----
116064
130572
53010
query I rowsort
SELECT - 12 AS col1 FROM tab0 AS cor0
----
-12
-12
-12
query I rowsort
SELECT ALL + col2 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT 4 + + col2 AS col1 FROM tab0 AS cor0
----
37
5
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 13 col2 FROM tab0 AS cor0
----
13
13
13
query I rowsort
SELECT DISTINCT cor0.col0 - + col2 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - cor0.col2 * col2 + ( + col0 * col0 ) AS col2 FROM tab2 AS cor0
----
-680
4797
5408
query I rowsort
SELECT DISTINCT - col1 - col0 * - 66 FROM tab2 AS cor0
----
431
5089
5197
query I rowsort
SELECT ALL - col2 + col1 * - 81 FROM tab2 AS cor0
----
-1415
-2538
-4805
query I rowsort
SELECT + 28 + col2 AS col2 FROM tab0 AS cor0
----
110
29
61
query I rowsort
SELECT DISTINCT + 37 - col2 AS col1 FROM tab0
----
-45
36
4
query I rowsort
SELECT ALL 77 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT ALL col0 * - col0 - - tab1.col0 * 7 AS col1 FROM tab1
----
-3648
-5840
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-6721
SELECT DISTINCT ( - col2 ) DIV + tab1.col2 - + col2 AS col1 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT ( - col2 ) / + tab1.col2 - + col2 AS col1 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT ALL + 64 - col1 AS col0 FROM tab2
----
33
47
5
query I rowsort
SELECT + ( 69 ) FROM tab2
----
69
69
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-6724
SELECT ( col2 + tab0.col0 ) DIV 94 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6724
SELECT ( col2 + tab0.col0 ) / 94 FROM tab0
----
0
0
1
query I rowsort
SELECT ALL 73 FROM tab1, tab0 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
onlyif mysql # use DIV operator for integer division
query I rowsort label-6726
SELECT - 42 DIV + ( col1 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6726
SELECT - 42 / + ( col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT - - 19 + + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 348bda14a8758e48cff033e940199a51
query I rowsort
SELECT ALL - 77 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab0 AS cor0
----
11
query I rowsort
SELECT ALL - col0 * - col2 * - col1 + - col1 * cor0.col0 AS col2 FROM tab0 cor0
----
-672217
-6790
-70176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col0 + ( cor0.col1 ) * + col1 * - col1 col0 FROM tab2 AS cor0
----
-207407
-29980
-7915
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6732
SELECT DISTINCT + col1 * CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT + col1 * CAST ( NULL AS REAL ) FROM tab0
----
NULL
query I rowsort
SELECT - 78 FROM tab1, tab1 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab2 cor3
----
3645 values hashing to 6193516da5556fc054f35e0d2f4e5372
query I rowsort
SELECT + + col1 * - col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 + - 42 * - col0 FROM tab2 AS cor0
----
321
3302
3356
query I rowsort
SELECT ALL col2 * 34 AS col2 FROM tab1
----
1836
1938
3264
query I rowsort
SELECT col1 - col2 AS col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6739
SELECT ( - col0 ) * col0 - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-50
-6085
-6242
skipif mysql # not compatible
query I rowsort label-6739
SELECT ( - col0 ) * col0 - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-50
-6085
-6242
query I rowsort
SELECT + - col2 * + col2 - - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1512
-2679
-7968
query I rowsort
SELECT DISTINCT + ( - cor0.col2 ) * + col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT 64 * + col0 AS col0 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT + + col1 * 37 FROM tab1 AS cor0
----
370
481
962
query I rowsort
SELECT - - ( col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort
SELECT ALL - - 3 * ( col2 ) * + CAST ( - 92 AS REAL ) AS col1 FROM tab0 AS cor0
----
-22632
-276
-9108
query I rowsort
SELECT ALL col1 + 45 FROM tab0 AS cor0
----
131
136
142
onlyif mysql # use DIV operator for integer division
query I rowsort label-6747
SELECT DISTINCT + 27 DIV + 67 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-6747
SELECT DISTINCT + 27 / + 67 FROM tab0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6748
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6748
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT + + 53 * col0 AS col0 FROM tab1 cor0
----
159
3392
4240
query I rowsort
SELECT - 96 AS col0 FROM tab0 AS cor0
----
-96
-96
-96
query I rowsort
SELECT DISTINCT + 6 * col2 AS col2 FROM tab1 AS cor0
----
324
342
576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6752
SELECT - 11 + ( col2 ) DIV cor0.col0 FROM tab1 AS cor0
----
-10
-11
7
skipif mysql # not compatible
query I rowsort label-6752
SELECT - 11 + ( col2 ) / cor0.col0 FROM tab1 AS cor0
----
-10
-11
7
query I rowsort
SELECT + 47 AS col2 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT DISTINCT + col1 + - col2 * + col0 AS col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT + 16 AS col1 FROM tab0 cor0
----
16
16
16
query I rowsort
SELECT DISTINCT + - ( + 56 ) FROM tab1 AS cor0
----
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 + - col0 col0 FROM tab2 AS cor0
----
-80
-81
-9
query I rowsort
SELECT ALL + 3 * + 90 FROM tab0 AS cor0
----
270
270
270
onlyif mysql # use DIV operator for integer division
query I rowsort label-6759
SELECT DISTINCT + 2 DIV col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6759
SELECT DISTINCT + 2 / col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + + 81 AS col2 FROM tab2 AS cor0
----
81
81
81
query I rowsort
SELECT + col1 * - col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + ( cor0.col1 ) * col2 - col1 AS col0 FROM tab1 cor0
----
1235
1378
560
query I rowsort
SELECT DISTINCT + 49 * - col1 AS col2 FROM tab0 AS cor0
----
-4214
-4459
-4753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6765
SELECT CAST( + 73 AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
skipif mysql # not compatible
query I rowsort label-6765
SELECT CAST ( + 73 AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT DISTINCT + + 21 AS col1 FROM tab2 AS cor0
----
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6767
SELECT - - col1 * CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6767
SELECT - - col1 * CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + col2 + cor0.col1 * + col0 AS col0 FROM tab0 AS cor0
----
15397
2856
3430
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col1 + col0 col0 FROM tab0 cor0
----
134
167
269
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col1 * col2 col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT - col2 * - cor0.col0 + 62 * col1 + col1 FROM tab0 AS cor0
----
13031
6146
6210
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6772
SELECT + - col1 + - CAST( NULL AS DECIMAL ) * 64 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6772
SELECT + - col1 + - CAST ( NULL AS REAL ) * 64 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 + 17 * - col2 AS col1 FROM tab0 AS cor0
----
-1483
-52
-585
query I rowsort
SELECT col2 + ( - 84 ) FROM tab1
----
-27
-30
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-6775
SELECT 41 DIV 23 col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6775
SELECT 41 / 23 col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT - cor0.col1 * 43 * + col2 FROM tab1 AS cor0
----
-24510
-53664
-60372
query I rowsort
SELECT ALL + 45 FROM tab2 cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-6778
SELECT + cor0.col1 DIV - col2 AS col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6778
SELECT + cor0.col1 / - col2 AS col0 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6779
SELECT DISTINCT + col0 + col0 * cor0.col0 DIV + ( + ( - col2 ) + col0 ) FROM tab0 AS cor0
----
-40
1220
71
skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + col0 + col0 * cor0.col0 / + ( + ( - col2 ) + col0 ) FROM tab0 AS cor0
----
-40
1220
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-6780
SELECT + col2 DIV col0 + col2 AS col2 FROM tab1
----
57
72
97
skipif mysql # not compatible
query I rowsort label-6780
SELECT + col2 / col0 + col2 AS col2 FROM tab1
----
57
72
97
query I rowsort
SELECT DISTINCT - tab1.col1 * - 69 FROM tab1
----
1794
690
897
onlyif mysql # use DIV operator for integer division
query I rowsort label-6782
SELECT col0 DIV ( 24 ) + + col1 AS col1 FROM tab1
----
12
16
26
skipif mysql # not compatible
query I rowsort label-6782
SELECT col0 / ( 24 ) + + col1 AS col1 FROM tab1
----
12
16
26
query I rowsort
SELECT ALL 13 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT - + 89 * - col2 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT ALL - + ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - cor0.col1 * col1 AS col1 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT DISTINCT col0 * col1 - - col0 * 30 FROM tab2 AS cor0
----
3713
427
6942
query I rowsort
SELECT + tab0.col0 + tab0.col2 * col2 * tab0.col0 FROM tab0
----
26160
598525
70
query I rowsort
SELECT col1 * + ( + 85 ) FROM tab0
----
7310
7735
8245
query I rowsort
SELECT DISTINCT + col1 * + ( 31 + - cor0.col0 ) AS col2 FROM tab2 AS cor0
----
-2773
-816
744
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 26 col2 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT + col2 + - 77 * col0 FROM tab2 AS cor0
----
-512
-5980
-6045
query I rowsort
SELECT ALL - col2 * - ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + 26 FROM tab2, tab2 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT - - col0 * + 70 FROM tab0 AS cor0
----
1680
2450
6230
onlyif mysql # use DIV operator for integer division
query I rowsort label-6796
SELECT ALL + + cor0.col2 + + col1 DIV - 54 AS col0 FROM tab2 AS cor0
----
25
27
38
skipif mysql # not compatible
query I rowsort label-6796
SELECT ALL + + cor0.col2 + + col1 / - 54 AS col0 FROM tab2 AS cor0
----
25
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-6797
SELECT DISTINCT + ( ( tab0.col0 ) ) DIV ( col0 + - col2 ) col0 FROM tab0
----
-2
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6797
SELECT DISTINCT + ( ( tab0.col0 ) ) / ( col0 + - col2 ) col0 FROM tab0
----
-2
1
12
query I rowsort
SELECT - 33 * + col1 AS col2 FROM tab2
----
-1023
-1947
-561
query I rowsort
SELECT DISTINCT col1 * + ( - col0 + - col0 ) AS col2 FROM tab2 AS cor0
----
-2686
-434
-9204
query I rowsort
SELECT DISTINCT tab0.col0 * - tab0.col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT 60 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
query I rowsort
SELECT col1 + ( + cor0.col2 ) * - ( col2 ) * col0 AS col2 FROM tab1 cor0
----
-207926
-737267
-8722
query I rowsort
SELECT ALL - cor0.col0 + + col2 * - col1 AS col0 FROM tab2 cor0
----
-1612
-725
-844
query I rowsort
SELECT ALL + col2 + col2 * col2 FROM tab1 AS cor0
----
2970
3306
9312
query I rowsort
SELECT DISTINCT - col2 * - ( col0 ) AS col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - ( - 84 ) AS col0 FROM tab2 cor0
----
84
84
84
query I rowsort
SELECT DISTINCT - + col1 + col1 * 48 FROM tab2 cor0
----
1457
2773
799
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 * 3 FROM tab1 AS cor0
----
132
135
87
query I rowsort
SELECT + col1 + cor0.col1 AS col2 FROM tab0 cor0
----
172
182
194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 * col1 col2 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + + 71 AS col1 FROM tab1 AS cor0
----
71
query I rowsort
SELECT - - 66 AS col2 FROM tab2 AS cor0
----
66
66
66
query I rowsort
SELECT + 57 + col2 FROM tab0 cor0
----
139
58
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-6814
SELECT DISTINCT - col0 DIV col0 FROM tab0 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-6814
SELECT DISTINCT - col0 / col0 FROM tab0 AS cor0
----
-1
query I rowsort
SELECT + + cor0.col0 * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + ( - col0 ) + ( + col0 ) FROM tab2 cor0
----
0
query I rowsort
SELECT ALL + - cor0.col2 + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL col0 * - cor0.col1 AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - + ( - col1 ) * ( col2 ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT - 36 AS col2 FROM tab2
----
-36
-36
-36
query I rowsort
SELECT - 95 - - col2 * col2 FROM tab2
----
1349
581
634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6822
SELECT + CAST( - 28 AS SIGNED ) AS col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
skipif mysql # not compatible
query I rowsort label-6822
SELECT + CAST ( - 28 AS INTEGER ) AS col1 FROM tab1, tab0, tab1 cor0
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
query I rowsort
SELECT - - col2 + col2 * 90 FROM tab2 AS cor0
----
2366
2457
3458
query I rowsort
SELECT ALL - 26 + + col2 FROM tab0
----
-25
56
7
query I rowsort
SELECT + 69 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to dfada1ee7a4e3e5c74a063a1282769f9
query I rowsort
SELECT - col2 * cor0.col1 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT + col2 * 74 FROM tab1 cor0
----
3996
4218
7104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col1 FROM tab1
----
75
75
75
query I rowsort
SELECT - - col2 * 46 * + col1 AS col2 FROM tab2 AS cor0
----
29716
38502
70564
query I rowsort
SELECT + col1 * 78 * - 32 FROM tab2 AS cor0
----
-147264
-42432
-77376
query I rowsort
SELECT DISTINCT ( + col0 * col0 ) FROM tab0
----
1225
576
7921
query I rowsort
SELECT + ( + cor0.col1 ) FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + + cor0.col0 * + col1 + col2 * 57 * 30 AS col2 FROM tab0 AS cor0
----
148319
5105
58494
query I rowsort
SELECT col1 + + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + + ( + col0 ) + - col2 AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL - col2 DIV + col1 + - col1 col2 FROM tab1
----
-15
-20
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL - col2 / + col1 + - col1 col2 FROM tab1
----
-15
-20
-28
query I rowsort
SELECT - 16 * 22 FROM tab0, tab2 AS cor0
----
9 values hashing to 3a0aaea6ea1cb387f1e42efb43cc2297
query I rowsort
SELECT + - 58 * - col2 - col2 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT ALL - col0 + 54 * 69 AS col1 FROM tab1
----
3646
3662
3723
query I rowsort
SELECT col2 * - ( col1 ) FROM tab1
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
onlyif mysql # use DIV operator for integer division
query I rowsort label-6842
SELECT DISTINCT - col0 * + cor0.col1 DIV col1 + ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180
skipif mysql # not compatible
query I rowsort label-6842
SELECT DISTINCT - col0 * + cor0.col1 / col1 + ( - ( col1 ) ) AS col2 FROM tab0 AS cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - col1 * col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - 9 - - col1 AS col1 FROM tab0 AS cor0
----
77
82
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6845
SELECT - + CAST( NULL AS SIGNED ) - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6845
SELECT - + CAST ( NULL AS INTEGER ) - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT ALL 84 DIV 94 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL 84 / 94 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col2 + 71 FROM tab0 AS cor0
----
-11
38
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col2 col1 FROM tab2
----
1560
684
864
query I rowsort
SELECT ALL ( + 7 ) FROM tab0 AS cor0
----
7
7
7
query I rowsort
SELECT + + 57 * 65 AS col0 FROM tab1 AS cor0
----
3705
3705
3705
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6851
SELECT DISTINCT + - ( + 88 ) * cor0.col0 * + CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
56320
6864
91520
skipif mysql # not compatible
query I rowsort label-6851
SELECT DISTINCT + - ( + 88 ) * cor0.col0 * + CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
56320
6864
91520
query I rowsort
SELECT ALL - + col1 + cor0.col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - 50 + col0 + - col1 FROM tab2 AS cor0
----
-31
-74
12
query I rowsort
SELECT ( 15 ) * + col2 AS col2 FROM tab0
----
1230
15
495
query I rowsort
SELECT DISTINCT - - 69 FROM tab0 AS cor0
----
69
query I rowsort
SELECT ALL col1 + cor0.col2 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab2 AS cor0
----
5
query I rowsort
SELECT 93 * - col1 * + col0 + - cor0.col2 - col2 * cor0.col2 FROM tab0 AS cor0
----
-193074
-315737
-760013
query I rowsort
SELECT DISTINCT + 24 AS col0 FROM tab1, tab2, tab1 cor0
----
24
query I rowsort
SELECT col0 * - col2 + - col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT col1 - col1 * - col0 AS col1 FROM tab2
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6862
SELECT CAST( + ( - col0 ) AS SIGNED ) + col0 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6862
SELECT CAST ( + ( - col0 ) AS INTEGER ) + col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT - col2 * - 26 + + col1 + 54 FROM tab0
----
177
2277
998
query I rowsort
SELECT DISTINCT - ( + tab2.col1 ) - - col0 AS col0 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT tab0.col1 - col2 AS col1 FROM tab0
----
53
9
96
query I rowsort
SELECT ALL col1 * 29 - col1 * col2 AS col2 FROM tab2
----
-153
177
62
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * - col2 AS col1 FROM tab0 AS cor0
----
-1113
-36
-6813
query I rowsort
SELECT DISTINCT col0 + ( - col1 + col2 ) FROM tab1 AS cor0
----
111
163
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-6869
SELECT DISTINCT col1 DIV + cor0.col0 + - 1 AS col1 FROM tab1 cor0
----
-1
7
skipif mysql # not compatible
query I rowsort label-6869
SELECT DISTINCT col1 / + cor0.col0 + - 1 AS col1 FROM tab1 cor0
----
-1
7
query I rowsort
SELECT + col2 + - col2 AS col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL - + col0 * + cor0.col0 - col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT + col0 * 52 + col0 FROM tab1 AS cor0
----
159
3392
4240
onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT DISTINCT - + col0 + col0 DIV col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - + col0 + col0 / col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - + col0 * + ( cor0.col0 ) AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + col0 + col0 AS col0 FROM tab2 cor0
----
14
156
158
query I rowsort
SELECT ALL + - col0 + ( - 67 ) FROM tab1 AS cor0
----
-131
-147
-70
query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab0
----
69
query I rowsort
SELECT 39 * col2 * + col1 FROM tab1
----
22230
48672
54756
query I rowsort
SELECT ALL tab0.col1 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT col2 * 34 + col1 FROM tab0
----
1208
131
2879
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + tab1.col1 + - 49 col0 FROM tab1
----
29
591
991
onlyif mysql # use DIV operator for integer division
query I rowsort label-6882
SELECT DISTINCT col0 * col0 + col0 DIV - 20 FROM tab2 AS cor0
----
49
6081
6238
skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT col0 * col0 + col0 / - 20 FROM tab2 AS cor0
----
49
6081
6238
query I rowsort
SELECT col2 + - col0 * col0 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT + + 79 FROM tab2 AS cor0
----
79
79
79
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab2, tab2 AS cor1
----
972 values hashing to f9adf26f20dc8fcc43c2de18a5fd4859
query I rowsort
SELECT ALL + 74 * - col2 AS col2 FROM tab2 AS cor0
----
-1924
-1998
-2812
query I rowsort
SELECT DISTINCT col0 + + col2 + cor0.col0 * 9 FROM tab0 AS cor0
----
273
351
972
query I rowsort
SELECT DISTINCT + 76 - 38 * col1 AS col2 FROM tab0 AS cor0
----
-3192
-3382
-3610
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + cor0.col2 * - 9 col1 FROM tab0 AS cor0
----
-321
-44
-827
query I rowsort
SELECT DISTINCT - col0 + + cor0.col0 * cor0.col2 + 91 FROM tab1 AS cor0
----
250
3675
7691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 92 + + col2 col2 FROM tab2 cor0
----
118
119
130
query I rowsort
SELECT ALL col0 + + col1 AS col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - col2 + ( col1 ) FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col0 + - col0 col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT - - col2 * + col2 * - col2 + col0 AS col0 FROM tab0 AS cor0
----
-35913
-551279
34
query I rowsort
SELECT ALL + + col2 * + 78 - col0 FROM tab0 AS cor0
----
2550
43
6307
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6897
SELECT DISTINCT - + CAST( col1 AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-6897
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT 53 * col1 FROM tab1 AS cor0
----
1378
530
689
query I rowsort
SELECT ALL + + 82 * 42 FROM tab0 AS cor0
----
3444
3444
3444
query I rowsort
SELECT col2 * 60 AS col0 FROM tab1 cor0
----
3240
3420
5760
query I rowsort
SELECT DISTINCT col2 + + col2 * ( 28 ) FROM tab1
----
1566
1653
2784
query I rowsort
SELECT DISTINCT col2 + + col1 * - col0 FROM tab2
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-6903
SELECT + cor0.col1 DIV col0 + - ( + cor0.col1 ) * + col0 FROM tab2 AS cor0
----
-1343
-213
-4602
skipif mysql # not compatible
query I rowsort label-6903
SELECT + cor0.col1 / col0 + - ( + cor0.col1 ) * + col0 FROM tab2 AS cor0
----
-1343
-213
-4602
skipif mysql # not compatible
query I rowsort
SELECT ALL + col0 * col0 * CAST ( col1 AS REAL ) + col2 AS col2 FROM tab0 AS cor0
----
118826
49569
720893
query I rowsort
SELECT DISTINCT - + 67 - col0 FROM tab1 AS cor0
----
-131
-147
-70
query I rowsort
SELECT DISTINCT + + col2 * cor0.col2 AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - + 0 * col2 + + 72 FROM tab0 AS cor0
----
72
72
72
query I rowsort
SELECT ALL - 24 AS col1 FROM tab2 cor0
----
-24
-24
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-6909
SELECT ALL - col0 * col2 DIV ( col1 ) col1 FROM tab0 AS cor0
----
-80
-9
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL - col0 * col2 / ( col1 ) col1 FROM tab0 AS cor0
----
-80
-9
0
query I rowsort
SELECT 88 * col0 + - col2 FROM tab0 AS cor0
----
2079
3079
7750
query I rowsort
SELECT + col0 * cor0.col1 + 11 AS col2 FROM tab2 cor0
----
1354
228
4613
query I rowsort
SELECT DISTINCT 8 AS col0 FROM tab1 cor0
----
8
query I rowsort
SELECT col2 + - cor0.col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * + 9 FROM tab0 AS cor0
----
-216
-315
-801
onlyif mysql # use DIV operator for integer division
query I rowsort label-6915
SELECT DISTINCT + - cor0.col0 DIV cor0.col2 + - 11 DIV - col0 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + - cor0.col0 / cor0.col2 + - 11 / - col0 AS col2 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT + col0 + 64 * - col2 * - col0 FROM tab1 cor0
----
10371
233536
491600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * cor0.col1 col1 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT ALL - col1 * - ( col0 ) + + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT + col2 * - 8 FROM tab0 AS cor0
----
-264
-656
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-6920
SELECT + col2 + - col1 DIV col0 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-6920
SELECT + col2 + - col1 / col0 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT DISTINCT + col0 + 62 FROM tab0 AS cor0
----
151
86
97
query I rowsort
SELECT DISTINCT + - col0 * - 10 + + cor0.col1 AS col1 FROM tab2 cor0
----
101
807
839
query I rowsort
SELECT - + col2 * - ( col0 ) + + col2 AS col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL 8 FROM tab1 AS cor0
----
8
8
8
query I rowsort
SELECT DISTINCT + 76 * col1 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT DISTINCT + col2 * + cor0.col1 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - col0 + cor0.col1 + col1 * - col1 FROM tab2 cor0
----
-3500
-351
-937
query I rowsort
SELECT ALL col2 * + 69 FROM tab2
----
1794
1863
2622
query I rowsort
SELECT ALL - - 99 - - 44 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 12fe048f178ee80b736e04142f2c0eb9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6930
SELECT + CAST( NULL AS SIGNED ) * col2 * col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6930
SELECT + CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 75 FROM tab1
----
75
75
75
query I rowsort
SELECT ALL + ( - 19 + + tab2.col0 ) FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 819cb7b7a7b329fce5aaa150c34cb3bd
query I rowsort
SELECT DISTINCT tab2.col0 * - cor0.col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
9 values hashing to 98035271089455e681d20c65fd337c0a
query I rowsort
SELECT DISTINCT - 76 * col1 FROM tab0
----
-6536
-6916
-7372
query I rowsort
SELECT 23 + + col2 + col2 AS col1 FROM tab1 cor0
----
131
137
215
query I rowsort
SELECT ALL - - 0 * + col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 43 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0 cor2
----
972 values hashing to 8b4fcda7f1ca76bad7c7d728f54a51e0
query I rowsort
SELECT col1 + ( col1 ) + tab1.col0 * col0 * - col1 FROM tab1
----
-182
-40940
-83174
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - tab2.col2 col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT cor0.col1 * 44 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 7f572ecf30074dea33adcafb62fc979b
query I rowsort
SELECT cor0.col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6944
SELECT - CAST( NULL AS SIGNED ) * - 12 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-6944
SELECT - CAST ( NULL AS INTEGER ) * - 12 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + cor0.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - 95 * col0 * col2 FROM tab1 AS cor0
----
-15390
-346560
-729600
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6947
SELECT CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-6947
SELECT CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + - col2 * col2 + - col0 AS col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL + col1 * 61 FROM tab2 cor0
----
1037
1891
3599
query I rowsort
SELECT ALL - col1 + - 76 FROM tab1 AS cor0
----
-102
-86
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT ALL + cor0.col2 DIV - col2 + col0 AS col1 FROM tab0 AS cor0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-6951
SELECT ALL + cor0.col2 / - col2 + col0 AS col1 FROM tab0 AS cor0
----
23
34
88
query I rowsort
SELECT ALL + 77 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622
query I rowsort
SELECT - 92 * col2 AS col0 FROM tab2
----
-2392
-2484
-3496
query I rowsort
SELECT - col2 + + col2 * col1 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT + + cor1.col1 * - 55 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43476a73746cc280354325c126d25dc5
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
3
64
80
query I rowsort
SELECT + cor0.col2 + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL col1 * cor0.col2 + ( - col0 ) * - col0 FROM tab1 AS cor0
----
1413
4666
7648
query I rowsort
SELECT DISTINCT + tab0.col1 FROM tab0, tab1, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + tab1.col0 * ( - col1 * col2 ) FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT + col2 + + col1 * + 25 FROM tab2 AS cor0
----
1501
463
802
query I rowsort
SELECT - col1 + - col0 * + col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 63 col2 FROM tab0 cor0
----
5418
5733
6111
query I rowsort
SELECT - cor0.col1 * 74 FROM tab0 AS cor0
----
-6364
-6734
-7178
query I rowsort
SELECT + + col1 * col2 + col2 + col2 FROM tab2 AS cor0
----
1586
722
891
query I rowsort
SELECT + 97 * + col0 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT + cor0.col0 * 78 - - cor0.col2 FROM tab0 AS cor0
----
1905
2731
7024
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col0 + col0 col1 FROM tab2 AS cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-6969
SELECT + 16 + - ( col1 + + col1 ) DIV ( + col2 ) AS col2 FROM tab0 AS cor0
----
-178
11
14
skipif mysql # not compatible
query I rowsort label-6969
SELECT + 16 + - ( col1 + + col1 ) / ( + col2 ) AS col2 FROM tab0 AS cor0
----
-178
11
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-6970
SELECT 28 DIV 65 + col1 + + col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-6970
SELECT 28 / 65 + col1 + + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6971
SELECT ALL - 83 DIV + tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL - 83 / + tab0.col1 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT tab1.col0 * + tab1.col1 FROM tab1
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * col1 col0 FROM tab2
----
187
341
649
query I rowsort
SELECT DISTINCT - col0 * - col0 * 6 FROM tab1
----
24576
38400
54
query I rowsort
SELECT tab2.col2 + col1 * - col2 * - ( - col1 ) FROM tab2
----
-10944
-25920
-90480
onlyif mysql # use DIV operator for integer division
query I rowsort label-6976
SELECT + col0 + col0 DIV tab2.col1 AS col0 FROM tab2
----
7
79
83
skipif mysql # not compatible
query I rowsort label-6976
SELECT + col0 + col0 / tab2.col1 AS col0 FROM tab2
----
7
79
83
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2, tab2 cor0, tab0 AS cor1
----
972 values hashing to e4c748f267e8d2a0e6d563281e1fb975
query I rowsort
SELECT col2 * col2 - + 82 AS col2 FROM tab2
----
1362
594
647
query I rowsort
SELECT ALL 27 + - col1 * - 30 AS col2 FROM tab2 cor0
----
1797
537
957
query I rowsort
SELECT DISTINCT + cor0.col0 + + col0 AS col0 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT ALL + - col1 * col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - cor0.col1 * - ( + col1 ) FROM tab2 AS cor0
----
289
3481
961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6983
SELECT + cor0.col2 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6983
SELECT + cor0.col2 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 * + 97 FROM tab2 cor0
----
2522
2619
3686
query I rowsort
SELECT DISTINCT col1 + - cor0.col2 * col0 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-6986
SELECT ALL col2 + col2 * col2 DIV + col1 AS col0 FROM tab1 AS cor0
----
166
381
804
skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL col2 + col2 * col2 / + col1 AS col0 FROM tab1 AS cor0
----
166
381
804
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * 84 col2 FROM tab1 AS cor0
----
-1092
-2184
-840
query I rowsort
SELECT DISTINCT col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6989
SELECT ALL - - col2 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6989
SELECT ALL - - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6990
SELECT - col0 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6990
SELECT - col0 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * - ( + col1 ) AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT col0 * 72 FROM tab0 cor0
----
1728
2520
6408
query I rowsort
SELECT ALL - 64 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 100c625e45715c20368551989514ba64
query I rowsort
SELECT ( - col2 ) * - col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * - col1 + - col2 * + col0 * 30 FROM tab1 AS cor0
----
-110010
-231648
-6264
query I rowsort
SELECT DISTINCT + col0 * + col1 * + col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT - 43 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT DISTINCT + - col1 * + col0 * 45 FROM tab1 AS cor0
----
-28800
-3510
-46800
query I rowsort
SELECT DISTINCT + 34 + col0 AS col0 FROM tab1
----
114
37
98
query I rowsort
SELECT 49 AS col2 FROM tab2
----
49
49
49
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - tab1.col1 col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL - 38 * + cor0.col0 - + col0 AS col0 FROM tab0 AS cor0
----
-1365
-3471
-936
query I rowsort
SELECT ALL 92 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT DISTINCT + 60 * - col0 + + 88 FROM tab1 AS cor0
----
-3752
-4712
-92
query I rowsort
SELECT ALL + col2 * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - col2 * + col1 + col1 + col1 FROM tab0 AS cor0
----
-2666
-7280
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT DISTINCT - col0 DIV + col2 + ( 81 ) * col0 AS col1 FROM tab1 AS cor0
----
243
5183
6480
skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT - col0 / + col2 + ( 81 ) * col0 AS col1 FROM tab1 AS cor0
----
243
5183
6480
query I rowsort
SELECT DISTINCT + cor0.col2 * + col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT - col2 * col1 + 35 FROM tab1 AS cor0
----
-1213
-1369
-535
query I rowsort
SELECT ALL - 1 AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - cor0.col0 * col0 + ( cor0.col1 ) FROM tab0 AS cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7012
SELECT DISTINCT - + col0 DIV cor0.col1 + + ( + col0 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
122
154
6
skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT - + col0 / cor0.col1 + + ( + col0 ) + cor0.col0 AS col0 FROM tab1 AS cor0
----
122
154
6
query I rowsort
SELECT ALL ( + col0 ) + col1 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL 49 * + col0 + - tab1.col2 * + col2 FROM tab1
----
-113
-2769
-5296
query I rowsort
SELECT DISTINCT - 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-14
query I rowsort
SELECT ALL 83 + + col0 * + 28 AS col0 FROM tab0 AS cor0
----
1063
2575
755
query I rowsort
SELECT ALL - 67 + col0 FROM tab1 AS cor0
----
-3
-64
13
query I rowsort
SELECT DISTINCT + - cor0.col0 * col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT - + 21 + - col2 FROM tab1 AS cor0
----
-117
-75
-78
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab0, tab0 cor0, tab0 AS cor1
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 * 55 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 0a6d0f460fe2cb2f7eccfbb13ec302e6
query I rowsort
SELECT + + cor0.col1 * + col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + 17 + - cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1
----
-18
-7
-72
query I rowsort
SELECT col0 * + 68 + col2 AS col1 FROM tab0
----
1665
2381
6134
query I rowsort
SELECT col0 * ( - col2 ) AS col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL + - ( col2 ) - - col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT DISTINCT - 83 + + col0 * - col1 FROM tab0 AS cor0
----
-2147
-3478
-8182
onlyif mysql # use DIV operator for integer division
query I rowsort label-7029
SELECT ALL col1 DIV - tab1.col1 + + col1 FROM tab1
----
12
25
9
skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL col1 / - tab1.col1 + + col1 FROM tab1
----
12
25
9
query I rowsort
SELECT DISTINCT - col1 + - col0 * - col0 AS col0 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT - ( 66 ) * col2 FROM tab0 cor0
----
-2178
-5412
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7032
SELECT ALL + ( - col2 ) DIV + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-7032
SELECT ALL + ( - col2 ) / + cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL - 43 + col1 * col1 AS col0 FROM tab2 AS cor0
----
246
3438
918
query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - 16 FROM tab0, tab2 AS cor0
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34
query I rowsort
SELECT + 23 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2
onlyif mysql # use DIV operator for integer division
query I rowsort label-7037
SELECT - col1 + 99 - + col2 DIV col1 FROM tab2 AS cor0
----
40
68
80
skipif mysql # not compatible
query I rowsort label-7037
SELECT - col1 + 99 - + col2 / col1 FROM tab2 AS cor0
----
40
68
80
query I rowsort
SELECT ALL + + cor0.col2 * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 * - ( 49 ) FROM tab2 cor0
----
-343
-3822
-3871
query I rowsort
SELECT DISTINCT - col0 * - ( - col0 ) + + cor0.col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + col1 + - 11 + - cor0.col2 FROM tab2 AS cor0
----
-32
-7
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 91 col0 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT + col1 - - col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col2 * + 92 + - col2 AS col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT + col0 * cor0.col0 + 64 FROM tab2 AS cor0
----
113
6148
6305
query I rowsort
SELECT - col0 + ( ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7047
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7047
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col1 - col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + col1 * + col2 + + col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col1 * cor0.col0 * 71 + col2 * ( + 76 + col0 ) FROM tab2 cor0
----
101243
17648
330746
query I rowsort
SELECT ALL cor0.col1 - cor0.col2 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 5fc5fcec216468c99d1c0eaf371b3149
query I rowsort
SELECT - 66 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-144
-145
-73
query I rowsort
SELECT - ( 64 ) + + col1 * - cor0.col0 FROM tab1 AS cor0
----
-1104
-142
-704
query I rowsort
SELECT cor0.col2 * - col2 * - col1 AS col2 FROM tab0 cor0
----
611884
93654
97
query I rowsort
SELECT ALL col2 * ( col1 ) FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7056
SELECT ALL col1 DIV + tab1.col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL col1 / + tab1.col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + 43 * col0 + 68 FROM tab0 AS cor0
----
1100
1573
3895
query I rowsort
SELECT ALL + 78 + + col2 FROM tab2 cor0
----
104
105
116
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + col1 * - 28 + col0 * 26 col1 FROM tab1 cor0
----
-704
1327
1620
query I rowsort
SELECT DISTINCT + cor0.col1 + - cor0.col1 * col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT - 43 + 36 AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7063
SELECT ALL tab2.col2 * + col0 + + CAST( + col1 AS SIGNED ) AS col0 FROM tab2
----
2087
220
3019
skipif mysql # not compatible
query I rowsort label-7063
SELECT ALL tab2.col2 * + col0 + + CAST ( + col1 AS INTEGER ) AS col0 FROM tab2
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-7064
SELECT ALL 93 DIV + tab2.col1 + + col1 * - col0 AS col0 FROM tab2
----
-1338
-214
-4601
skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL 93 / + tab2.col1 + + col1 * - col0 AS col0 FROM tab2
----
-1338
-214
-4601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col0 col1 FROM tab2
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * - 43 + tab0.col0 col0 FROM tab0
----
-1371
-3348
27
query I rowsort
SELECT DISTINCT tab0.col0 AS col0 FROM tab0, tab0 cor0, tab2 cor1
----
24
35
89
query I rowsort
SELECT - cor0.col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT - col0 * col1 + cor0.col0 * - col2 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT - - 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7071
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7071
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * 2 FROM tab1
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7073
SELECT tab1.col1 DIV - tab1.col2 AS col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7073
SELECT tab1.col1 / - tab1.col2 AS col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7074
SELECT col2 DIV - 57 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7074
SELECT col2 / - 57 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - col0 - 34 AS col2 FROM tab1 AS cor0
----
-114
-37
-98
query I rowsort
SELECT ALL - 16 * tab0.col2 * + col2 FROM tab0
----
-107584
-16
-17424
query I rowsort
SELECT ( col1 * tab0.col2 ) FROM tab0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7078
SELECT CAST( + 51 + + col0 AS SIGNED ) FROM tab1
----
115
131
54
skipif mysql # not compatible
query I rowsort label-7078
SELECT CAST ( + 51 + + col0 AS INTEGER ) FROM tab1
----
115
131
54
query I rowsort
SELECT col0 * col2 + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col2 + col2 * + col1 + - 70 FROM tab0 AS cor0
----
28
2801
7474
query I rowsort
SELECT 95 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3
query I rowsort
SELECT DISTINCT 2 * cor0.col1 FROM tab2, tab0 AS cor0
----
172
182
194
query I rowsort
SELECT + - 92 + - 26 * - col0 AS col2 FROM tab1 AS cor0
----
-14
1572
1988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + + col1 col0 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 * - ( col0 ) col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT + 87 AS col2 FROM tab1 AS cor0
----
87
87
87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 17 * col1 + col2 col0 FROM tab1 AS cor0
----
-113
-125
-388
query I rowsort
SELECT col1 * col2 + - col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT col1 * - col0 * 89 AS col2 FROM tab2 AS cor0
----
-119527
-19313
-409578
query I rowsort
SELECT DISTINCT + ( - 23 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 cor2
----
-23
query I rowsort
SELECT ALL + col2 * col1 + col2 FROM tab0 cor0
----
2871
7544
98
query I rowsort
SELECT DISTINCT - col2 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-7093
SELECT + cor0.col1 DIV col2 + + col2 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-7093
SELECT + cor0.col1 / col2 + + col2 * + ( col2 ) AS col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT col2 * + col1 * - 30 AS col1 FROM tab2
----
-19380
-25110
-46020
query I rowsort
SELECT 12 + col0 FROM tab2
----
19
90
91
query I rowsort
SELECT 34 - col2 * tab1.col0 FROM tab1
----
-128
-3614
-7646
query I rowsort
SELECT 69 AS col1 FROM tab2
----
69
69
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab1
----
15
15
15
query I rowsort
SELECT ALL - 78 + + col0 AS col0 FROM tab0 AS cor0
----
-43
-54
11
query I rowsort
SELECT + col1 * ( - col0 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL - col2 + col0 * col2 * col2 FROM tab0 AS cor0
----
26103
34
598354
query I rowsort
SELECT ALL + + col1 * ( col0 ) AS col2 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-7103
SELECT + cor0.col2 DIV - 24 AS col0 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 8ae2a9a5913869bbbdfb0bd7ffe26b79
skipif mysql # not compatible
query I rowsort label-7103
SELECT + cor0.col2 / - 24 AS col0 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to 8ae2a9a5913869bbbdfb0bd7ffe26b79
query I rowsort
SELECT - ( + 2 ) FROM tab1 AS cor0
----
-2
-2
-2
query I rowsort
SELECT DISTINCT + col0 * col1 * - col1 + col2 FROM tab1 AS cor0
----
-13424
-1974
-6343
query I rowsort
SELECT + 83 + tab1.col0 + + 18 FROM tab1
----
104
165
181
onlyif mysql # use DIV operator for integer division
query I rowsort label-7107
SELECT col2 DIV + tab1.col2 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7107
SELECT col2 / + tab1.col2 AS col2 FROM tab1
----
1
1
1
query I rowsort
SELECT col0 * + tab1.col0 AS col0 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7109
SELECT - col0 DIV - col2 + 47 * 15 - - col0 AS col0 FROM tab1
----
708
770
785
skipif mysql # not compatible
query I rowsort label-7109
SELECT - col0 / - col2 + 47 * 15 - - col0 AS col0 FROM tab1
----
708
770
785
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - col2 col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT col2 * - cor0.col0 - 29 AS col1 FROM tab2 AS cor0
----
-2057
-218
-3031
query I rowsort
SELECT - + 84 * - col2 AS col2 FROM tab1 cor0
----
4536
4788
8064
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7113
SELECT col2 * col1 - CAST( + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
1475
629
806
skipif mysql # not compatible
query I rowsort label-7113
SELECT col2 * col1 - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
1475
629
806
query I rowsort
SELECT + - cor0.col0 + - 31 AS col0 FROM tab1 AS cor0
----
-111
-34
-95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 - - col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7116
SELECT + col0 * - CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7116
SELECT + col0 * - CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + 31 AS col1 FROM tab1 AS cor0
----
111
34
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * cor0.col2 col1 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7119
SELECT col2 + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
108
114
192
skipif mysql # not compatible
query I rowsort label-7119
SELECT col2 + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT 95 * + col1 FROM tab1
----
1235
2470
950
query I rowsort
SELECT ALL - ( - col1 * + col0 ) FROM tab1
----
1040
640
78
query I rowsort
SELECT ALL col1 + - cor0.col1 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * ( col0 ) * - col1 AS col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + - cor0.col0 + + 2 FROM tab2 AS cor0
----
-5
-76
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 + col1 col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + col0 - col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 * - ( col0 ) FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT col1 * - cor0.col0 + + col1 + + col1 AS col1 FROM tab1 AS cor0
----
-1014
-26
-620
query I rowsort
SELECT - 13 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 col2 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - - cor0.col2 * col1 + - col2 AS col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT ALL + col2 + + col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT + cor0.col1 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1261
1430
580
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) * col0 + cor0.col1 col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + - ( + col0 ) * - col2 + col2 * col0 FROM tab1 AS cor0
----
15360
324
7296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7137
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * col2 + col1 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7137
SELECT DISTINCT + - CAST ( NULL AS REAL ) * col2 + col1 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL + col1 * col1 + col1 * + col2 AS col0 FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT ALL + col2 + col1 - - col0 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT DISTINCT - ( col2 ) - + col1 * col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL ( - cor0.col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT + 82 * col0 * col0 FROM tab0 AS cor0
----
100450
47232
649522
query I rowsort
SELECT ALL - col2 - col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + col1 + col2 * + col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT - 8 + - 2 FROM tab0 AS cor0
----
-10
-10
-10
onlyif mysql # use DIV operator for integer division
query I rowsort label-7146
SELECT ALL + tab1.col2 + + 58 DIV + col0 + tab1.col2 FROM tab1
----
114
127
192
skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL + tab1.col2 + + 58 / + col0 + tab1.col2 FROM tab1
----
114
127
192
query I rowsort
SELECT - 93 * cor0.col1 FROM tab1 cor0
----
-1209
-2418
-930
query I rowsort
SELECT DISTINCT + col0 * col1 + ( - col0 + col0 ) * + 65 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT 63 AS col0 FROM tab1 AS cor0
----
63
63
63
query I rowsort
SELECT ALL + - col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 47 * - col2 FROM tab2 AS cor0
----
-1222
-1269
-1786
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) * ( 35 ) col0 FROM tab2 AS cor0
----
-245
-2730
-2765
query I rowsort
SELECT ALL + ( - cor0.col1 ) + - col1 AS col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT col2 - tab2.col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL - + 73 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-16
-19
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7157
SELECT ALL ( - col2 ) DIV cor0.col1 + + col0 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL ( - col2 ) / cor0.col1 + + col0 FROM tab2 AS cor0
----
7
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT DISTINCT - col2 * + col0 - + col0 DIV - col1 FROM tab0 cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-7158
SELECT DISTINCT - col2 * + col0 - + col0 / - col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ( + ( - col1 ) ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT ALL 22 * + col2 * + col0 AS col1 FROM tab1
----
168960
3564
80256
query I rowsort
SELECT DISTINCT - - 68 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
68
query I rowsort
SELECT ALL cor1.col2 + + cor0.col0 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fdd2f547b28e02db29f913671a199b7b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT 76 * + cor0.col1 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT + col0 + - col2 * ( - col2 ) FROM tab2 AS cor0
----
1523
736
754
onlyif mysql # use DIV operator for integer division
query I rowsort label-7166
SELECT ALL col1 DIV - col0 col0 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL col1 / - col0 col0 FROM tab2
----
-4
0
0
query I rowsort
SELECT DISTINCT + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
3
64
80
query I rowsort
SELECT ALL ( + col2 * + col1 ) + - 12 * - col1 * tab1.col2 AS col2 FROM tab1
----
16224
18252
7410
onlyif mysql # use DIV operator for integer division
query I rowsort label-7169
SELECT + col0 * col0 DIV col1 FROM tab0
----
12
6
87
skipif mysql # not compatible
query I rowsort label-7169
SELECT + col0 * col0 / col1 FROM tab0
----
12
6
87
query I rowsort
SELECT DISTINCT + cor0.col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
1
33
82
query I rowsort
SELECT DISTINCT + 54 + - tab1.col1 AS col2 FROM tab1
----
28
41
44
query I rowsort
SELECT DISTINCT 57 FROM tab2, tab2 AS cor0
----
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col1 FROM tab1
----
63
63
63
query I rowsort
SELECT DISTINCT - - col0 + - col1 * col0 * + col0 AS col0 FROM tab2 AS cor0
----
-106018
-1512
-358878
query I rowsort
SELECT ALL - 0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab0
----
40
query I rowsort
SELECT cor0.col0 + - col0 * - ( 53 ) AS col1 FROM tab0 AS cor0
----
1296
1890
4806
query I rowsort
SELECT - cor0.col0 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT col2 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * + col2 * + col1 - + col1 col0 FROM tab0 AS cor0
----
3298
664027
68026
onlyif mysql # use DIV operator for integer division
query I rowsort label-7181
SELECT + - col0 - + cor0.col0 * 74 DIV cor0.col1 AS col2 FROM tab2 cor0
----
-175
-23
-422
skipif mysql # not compatible
query I rowsort label-7181
SELECT + - col0 - + cor0.col0 * 74 / cor0.col1 AS col2 FROM tab2 cor0
----
-175
-23
-422
query I rowsort
SELECT ( - cor0.col0 ) + 60 * - col0 * cor0.col1 FROM tab0 AS cor0
----
-123864
-203735
-486029
query I rowsort
SELECT 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT ALL - col0 * - 63 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT cor0.col0 * 90 AS col2 FROM tab2 AS cor0
----
630
7020
7110
onlyif mysql # use DIV operator for integer division
query I rowsort label-7186
SELECT DISTINCT col0 DIV 63 AS col0 FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-7186
SELECT DISTINCT col0 / 63 AS col0 FROM tab0 AS cor0
----
0
1
query I rowsort
SELECT 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 col0 * cor0.col0 col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - - col1 + - ( 83 ) FROM tab2 AS cor0
----
-24
-52
-66
query I rowsort
SELECT + - col2 + 66 AS col1 FROM tab1 AS cor0
----
-30
12
9
query I rowsort
SELECT cor0.col2 * + 49 * + 16 AS col1 FROM tab2 AS cor0
----
20384
21168
29792
query I rowsort
SELECT DISTINCT - col0 * + 62 FROM tab1 AS cor0
----
-186
-3968
-4960
onlyif mysql # use DIV operator for integer division
query I rowsort label-7193
SELECT + cor0.col1 DIV - 49 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7193
SELECT + cor0.col1 / - 49 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 * - 3 AS col0 FROM tab0 AS cor0
----
-105
-267
-72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7195
SELECT CAST( - col2 AS SIGNED ) * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-7195
SELECT CAST ( - col2 AS INTEGER ) * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - 36 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + + col1 * 82 FROM tab1 AS cor0
----
1066
2132
820
query I rowsort
SELECT - col1 * 69 FROM tab0 AS cor0
----
-5934
-6279
-6693
onlyif mysql # use DIV operator for integer division
query I rowsort label-7200
SELECT DISTINCT col2 * + col2 + col0 * - ( + ( - col1 ) ) DIV + col1 FROM tab1 AS cor0
----
2919
3313
9296
skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT col2 * + col2 + col0 * - ( + ( - col1 ) ) / + col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL - - col0 * + ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) * cor0.col1 col0 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7203
SELECT ALL + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 14 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT ALL ( ( col2 ) ) + + col0 * + col2 FROM tab2 AS cor0
----
2054
216
3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-7206
SELECT - col1 DIV col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-7206
SELECT - col1 / col0 AS col2 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT + col0 + ( - col1 ) * + ( + col1 ) FROM tab1 AS cor0
----
-36
-673
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-7208
SELECT - + col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7208
SELECT - + col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL + cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab0 AS cor0
----
48
query I rowsort
SELECT tab0.col0 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
3645 values hashing to 9d97dc3cb0a2d1eacd2afa977bf02f33
query I rowsort
SELECT - - col0 + col1 AS col1 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT ALL - col2 + + ( 60 ) * col1 + col2 AS col0 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT + col2 * + col0 + col0 + col0 AS col2 FROM tab0 AS cor0
----
105
7476
840
query I rowsort
SELECT tab2.col1 - 25 FROM tab2, tab2 AS cor0
----
9 values hashing to 5f3cd3b4fc296e5cf236d34ac80d51fd
query I rowsort
SELECT + col0 * + 89 AS col0 FROM tab0
----
2136
3115
7921
query I rowsort
SELECT DISTINCT 28 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7219
SELECT ALL + col2 DIV - col0 + 28 AS col1 FROM tab2
----
25
28
28
skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + col2 / - col0 + 28 AS col1 FROM tab2
----
25
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7220
SELECT DISTINCT col0 * + col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT col0 * + col0 / - col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col0 + col0 * - col2 AS col2 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT ALL + col0 + + col2 - - col0 AS col1 FROM tab2
----
182
196
41
query I rowsort
SELECT + col1 + tab1.col0 - col0 AS col1 FROM tab1
----
10
13
26
query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab1 WHERE + col1 <= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7225
SELECT - col1 + col1 * + col2 + - col2 DIV col2 FROM tab1
----
1234
1377
559
skipif mysql # not compatible
query I rowsort label-7225
SELECT - col1 + col1 * + col2 + - col2 / col2 FROM tab1
----
1234
1377
559
onlyif mysql # use DIV operator for integer division
query I rowsort label-7226
SELECT + col2 DIV - tab2.col1 col0 FROM tab2
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7226
SELECT + col2 / - tab2.col1 col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT col1 * tab1.col2 + tab1.col2 AS col1 FROM tab1
----
1344
1458
627
query I rowsort
SELECT + col1 * tab0.col0 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7229
SELECT col2 * col0 DIV col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7229
SELECT col2 * col0 / col2 FROM tab1
----
3
64
80
query I rowsort
SELECT tab0.col0 * tab0.col2 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT col1 * + col1 * col2 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT DISTINCT - tab1.col1 * - col1 - col0 * tab1.col1 FROM tab1
----
-540
-871
598
query I rowsort
SELECT + col0 - col1 * col2 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - col0 / col1 FROM tab0 WHERE NULL NOT IN ( - col1 * col1 )
----
query I rowsort
SELECT col2 + + col2 * col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL col0 * + tab1.col1 - col2 AS col2 FROM tab1
----
24
583
944
query I rowsort
SELECT DISTINCT col2 * tab2.col1 * - col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL col0 * - col2 + cor0.col1 * + cor0.col1 + - col2 FROM tab1 AS cor0
----
-3605
-7607
460
query I rowsort
SELECT col1 * + col1 - + col2 FROM tab0
----
7363
8199
9408
query I rowsort
SELECT - col1 * + col0 + col0 - + col2 FROM tab1
----
-1056
-129
-633
onlyif mysql # use DIV operator for integer division
query I rowsort label-7241
SELECT DISTINCT + col2 DIV col0 - - tab2.col0 col2 FROM tab2
----
10
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7241
SELECT DISTINCT + col2 / col0 - - tab2.col0 col2 FROM tab2
----
10
78
79
query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT col0 * col1 + + col0 + tab1.col1 AS col1 FROM tab1
----
107
1133
714
query I rowsort
SELECT DISTINCT col2 * + col0 * col0 + + cor0.col0 + - cor0.col1 FROM tab2 AS cor0
----
1299
158203
237220
query I rowsort
SELECT ALL - col2 + + cor0.col0 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL cor0.col0 * cor0.col1 + - col1 + - col1 FROM tab0 AS cor0
----
1892
3201
7917
query I rowsort
SELECT DISTINCT - col1 * + cor0.col2 + - col0 AS col1 FROM tab1 cor0
----
-1328
-1407
-634
query I rowsort
SELECT col2 * col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + cor0.col0 * + col2 AS col2 FROM tab0 AS cor0 WHERE NULL >= + cor0.col0 OR NULL > col2
----
query I rowsort
SELECT ALL + + col2 * - col0 - + col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT + tab1.col1 + + tab1.col1 AS col1 FROM tab1
----
20
26
52
query I rowsort
SELECT 14 * col1 + - ( ( tab2.col1 ) * - col2 ) FROM tab2
----
1271
2360
884
query I rowsort
SELECT DISTINCT + + col2 + col1 - 41 AS col1 FROM tab1 cor0
----
26
39
68
query I rowsort
SELECT ALL + - col0 + + col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 - 46 * + col1 * col2 FROM tab1 cor0
----
-26284
-57488
-64587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7256
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) * 80 / col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7256
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) * 80 / col2 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + + col0 + col0 * col1 * cor0.col1 FROM tab1 AS cor0
----
13600
2031
6464
query I rowsort
SELECT ALL + col1 - - col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT cor0.col1 * col2 + col2 FROM tab1 AS cor0
----
1344
1458
627
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 - CAST ( - col1 AS REAL ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT col2 * 23 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT DISTINCT + col0 * + col0 + col1 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT - - col2 + - col2 * - col0 AS col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL + col0 * - ( + cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL - col1 * + cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab0
----
-62
query I rowsort
SELECT + + col1 * + ( + cor0.col1 ) AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - col0 * 26 + - col2 * - col2 + col2 FROM tab1 AS cor0
----
1642
2892
7232
onlyif mysql # use DIV operator for integer division
query I rowsort label-7269
SELECT + cor0.col0 DIV col1 - + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7269
SELECT + cor0.col0 / col1 - + col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT col0 * 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + tab1.col0 FROM tab1
----
29
74
93
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * + col2 NOT BETWEEN NULL AND - col1
----
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <> NULL
----
query I rowsort
SELECT ALL + col1 + tab2.col0 AS col1 FROM tab2
----
137
38
96
query I rowsort
SELECT DISTINCT - col0 + - tab2.col1 * + col2 FROM tab2
----
-1612
-725
-844
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 < - col2
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT + col2 * tab0.col0 + col0 FROM tab0 WHERE - col1 BETWEEN ( + col2 ) AND ( + col1 + col2 )
----
query I rowsort
SELECT DISTINCT + col1 / col1 - - tab1.col1 * col2 * col2 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN + col1 * - col2 AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7279
SELECT DISTINCT + col0 * col1 - + col0 DIV col0 FROM tab2
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT + col0 * col1 - + col0 / col0 FROM tab2
----
1342
216
4601
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL - col0 * + col1 - - col1 FROM tab2
----
-1326
-186
-4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-7282
SELECT col2 + col2 * - col0 DIV col0 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7282
SELECT col2 + col2 * - col0 / col0 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT DISTINCT - col1 DIV col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - col1 / col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT ALL 80 + col0 AS col2 FROM tab2 AS cor0
----
158
159
87
query I rowsort
SELECT 61 * + col2 * + col0 AS col1 FROM tab0 AS cor0
----
2135
445178
48312
query I rowsort
SELECT col0 + + tab1.col0 * col2 AS col2 FROM tab1
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col1 + - col0 * - col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT ALL tab1.col0 * col0 * col2 + col2 FROM tab1
----
233529
540
614496
query I rowsort
SELECT - + col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT 17 * col0 FROM tab1
----
1088
1360
51
query I rowsort
SELECT + 56 AS col1 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
onlyif mysql # use DIV operator for integer division
query I rowsort label-7293
SELECT ALL - 38 DIV col0 AS col2 FROM tab1
----
-12
0
0
skipif mysql # not compatible
query I rowsort label-7293
SELECT ALL - 38 / col0 AS col2 FROM tab1
----
-12
0
0
query I rowsort
SELECT + + col0 + col2 * - 61 FROM tab1 AS cor0
----
-3291
-3413
-5776
query I rowsort
SELECT DISTINCT - - cor0.col2 + col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT 21 * + col0 + + col2 FROM tab2
----
1664
1697
174
onlyif mysql # use DIV operator for integer division
query I rowsort label-7297
SELECT ALL + + CAST( col2 AS SIGNED ) + + col2 DIV 6 - + cor0.col2 AS col0 FROM tab1 cor0
----
16
9
9
skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL + + CAST ( col2 AS INTEGER ) + + col2 / 6 - + cor0.col2 AS col0 FROM tab1 cor0
----
16
9
9
query I rowsort
SELECT DISTINCT ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - - 49 + col0 FROM tab2 AS cor0
----
127
128
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7300
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col0 AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7300
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col0 AS col2 FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT 21 * col0 AS col2 FROM tab1 AS cor0
----
1344
1680
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-7302
SELECT ALL col2 DIV - col0 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL col2 / - col0 FROM tab1 cor0
----
-1
-18
0
query I rowsort
SELECT + ( + 76 ) FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
onlyif mysql # use DIV operator for integer division
query I rowsort label-7304
SELECT ALL - col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL - col1 / + col0 AS col1 FROM tab0 AS cor0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col0 ) col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT col0 + + cor0.col2 * ( - col2 ) FROM tab1 AS cor0
----
-2913
-3185
-9136
query I rowsort
SELECT ALL - 28 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to eac00a95d734c7071360ed392c3f39bc
query I rowsort
SELECT ALL 32 + - col0 AS col2 FROM tab2
----
-46
-47
25
query I rowsort
SELECT + cor0.col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # use DIV operator for integer division
query I rowsort label-7310
SELECT + col1 DIV - col1 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-36
-7299
-793
skipif mysql # not compatible
query I rowsort label-7310
SELECT + col1 / - col1 + - col0 * + col2 AS col0 FROM tab0 AS cor0
----
-36
-7299
-793
onlyif mysql # use DIV operator for integer division
query I rowsort label-7311
SELECT cor0.col1 DIV col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-7311
SELECT cor0.col1 / col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT 62 + - col0 AS col0 FROM tab1 AS cor0
----
-18
-2
59
query I rowsort
SELECT - col2 + col0 * + cor0.col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT - col2 * col1 + - col2 AS col1 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT - 69 * - cor0.col2 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
166
2363
5749
onlyif mysql # use DIV operator for integer division
query I rowsort label-7316
SELECT 80 + col0 * col2 DIV cor0.col0 FROM tab1 cor0
----
134
137
176
skipif mysql # not compatible
query I rowsort label-7316
SELECT 80 + col0 * col2 / cor0.col0 FROM tab1 cor0
----
134
137
176
query I rowsort
SELECT + - col1 * cor0.col1 * + col0 + col0 AS col2 FROM tab1 AS cor0
----
-13440
-2025
-6336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT col2 * cor0.col0 AS col2 FROM tab0 cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7320
SELECT + CAST( NULL AS SIGNED ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7320
SELECT + CAST ( NULL AS INTEGER ) + col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + - col1 - + col1 AS col0 FROM tab2
----
-35
-92
4
query I rowsort
SELECT - cor0.col0 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT 90 + + col2 AS col0 FROM tab1 AS cor0
----
144
147
186
query I rowsort
SELECT + + ( col2 ) + - col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7325
SELECT col1 DIV 75 + + col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7325
SELECT col1 / 75 + + col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL + 9 * col2 AS col1 FROM tab1
----
486
513
864
query I rowsort
SELECT - - col1 * + col0 AS col2 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - 73 + + cor0.col1 * - col1 FROM tab0 AS cor0
----
-7469
-8354
-9482
query I rowsort
SELECT ALL 67 FROM tab0 cor0
----
67
67
67
query I rowsort
SELECT DISTINCT + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL + 76 * - 99 FROM tab1
----
-7524
-7524
-7524
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7332
SELECT CAST( NULL AS SIGNED ) * 56 * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7332
SELECT CAST ( NULL AS INTEGER ) * 56 * + col2 AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 74 AS col1 FROM tab1
----
-74
query I rowsort
SELECT - 52 AS col0 FROM tab1
----
-52
-52
-52
query I rowsort
SELECT DISTINCT 65 * + col0 FROM tab2
----
455
5070
5135
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7336
SELECT ALL - CAST( NULL AS SIGNED ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7336
SELECT ALL - CAST ( NULL AS INTEGER ) / col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT DISTINCT + col1 * - 87 AS col1 FROM tab1 AS cor0
----
-1131
-2262
-870
query I rowsort
SELECT - col1 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - - 15 + 62 AS col0 FROM tab1 AS cor0
----
77
77
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-7341
SELECT ALL + col1 * 67 * + col2 + + 61 DIV cor0.col0 FROM tab0 AS cor0
----
190148
499954
6500
skipif mysql # not compatible
query I rowsort label-7341
SELECT ALL + col1 * 67 * + col2 + + 61 / cor0.col0 FROM tab0 AS cor0
----
190148
499954
6500
query I rowsort
SELECT 50 + col2 * col2 FROM tab1 AS cor0
----
2966
3299
9266
onlyif mysql # use DIV operator for integer division
query I rowsort label-7343
SELECT DISTINCT + 99 DIV + col1 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-7343
SELECT DISTINCT + 99 / + col1 FROM tab2 AS cor0
----
1
3
5
query I rowsort
SELECT + + ( + col2 ) * - col1 * ( 56 ) FROM tab0 AS cor0
----
-158928
-417872
-5432
query I rowsort
SELECT - - 52 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-1352
-1404
-1976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - + cor0.col0 * col0 * - col1 + ( + col1 + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
106152
1577
359041
query I rowsort
SELECT DISTINCT col2 + col0 + ( + cor0.col2 + - cor0.col1 ) FROM tab1 AS cor0
----
168
259
85
query I rowsort
SELECT col2 + + col1 * - col2 * 69 AS col1 FROM tab2 AS cor0
----
-105820
-44536
-57726
query I rowsort
SELECT - 64 * + col0 - - col2 * + 95 AS col2 FROM tab2 AS cor0
----
-1446
-2522
2117
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * col1 - 12 col2 FROM tab2 AS cor0
----
277
3469
949
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 * 42 col2 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT + 89 + + col0 FROM tab1 AS cor0
----
153
169
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 col2 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to c0722b1d77ac0ed13c0f2691a5751c59
query I rowsort
SELECT - col0 * + ( - col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ( + cor0.col1 ) AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT - cor0.col1 * - 50 AS col2 FROM tab1 AS cor0
----
1300
500
650
query I rowsort
SELECT - cor0.col2 + + col0 * - 43 AS col2 FROM tab2 AS cor0
----
-328
-3380
-3435
query I rowsort
SELECT - col2 + - 1 * - col2 * col1 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + cor1.col0 AS col0 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT DISTINCT col0 + - 39 FROM tab1 AS cor0
----
-36
25
41
query I rowsort
SELECT - 4 * tab0.col1 * + col0 FROM tab0
----
-13580
-32396
-8256
query I rowsort
SELECT ALL col2 * ( + 61 ) + cor0.col2 AS col0 FROM tab2 AS cor0
----
1612
1674
2356
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7364
SELECT DISTINCT + CAST( cor0.col1 AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT + CAST ( cor0.col1 AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col1 * + ( col0 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT 18 * + col1 * col1 FROM tab0 AS cor0
----
133128
149058
169362
query I rowsort
SELECT DISTINCT - + 96 - - ( col0 ) AS col0 FROM tab1 AS cor0
----
-16
-32
-93
query I rowsort
SELECT ALL ( col1 ) + - col2 * + 16 FROM tab2 AS cor0
----
-357
-401
-591
query I rowsort
SELECT 82 * col2 FROM tab1 AS cor0
----
4428
4674
7872
query I rowsort
SELECT DISTINCT 86 FROM tab1, tab1 AS cor0
----
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-7371
SELECT - 96 DIV 49 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
skipif mysql # not compatible
query I rowsort label-7371
SELECT - 96 / 49 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7372
SELECT - CAST( + col0 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif mysql # not compatible
query I rowsort label-7372
SELECT - CAST ( + col0 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL col1 + - col0 * + cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT + 6 + col0 * col1 FROM tab0 AS cor0
----
2070
3401
8105
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7375
SELECT + - CAST( col1 AS SIGNED ) * col2 FROM tab2 cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7375
SELECT + - CAST ( col1 AS INTEGER ) * col2 FROM tab2 cor0
----
-1534
-646
-837
query I rowsort
SELECT - ( + col0 + col1 ) FROM tab1
----
-29
-74
-93
query I rowsort
SELECT - 31 + - ( + col2 ) FROM tab1
----
-127
-85
-88
onlyif mysql # use DIV operator for integer division
query I rowsort label-7378
SELECT + col1 DIV col1 + col0 AS col2 FROM tab0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7378
SELECT + col1 / col1 + col0 AS col2 FROM tab0
----
25
36
90
query I rowsort
SELECT ALL - 22 * - col0 AS col2 FROM tab0
----
1958
528
770
query I rowsort
SELECT DISTINCT - - cor0.col0 + col1 * col1 * - ( - col0 + - col1 ) FROM tab2 AS cor0
----
27823
36525
476975
query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT ALL + + cor0.col2 * + col2 + cor0.col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7383
SELECT - cor0.col1 + - CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7383
SELECT - cor0.col1 + - CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - tab2.col1 + + tab2.col0 * col1 AS col2 FROM tab2
----
1326
186
4543
query I rowsort
SELECT + - ( + col2 ) - col1 * col1 AS col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT - 74 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130
query I rowsort
SELECT - tab2.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT ALL col0 + col1 DIV 62 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL col0 + col1 / 62 FROM tab2
----
7
78
79
query I rowsort
SELECT + cor0.col1 + - ( cor0.col2 ) FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + cor0.col1 col0 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT - cor0.col2 * - 78 + ( col1 * 38 ) FROM tab0 AS cor0
----
3764
5842
9854
query I rowsort
SELECT ALL + + col0 - - 62 FROM tab2 AS cor0
----
140
141
69
query I rowsort
SELECT DISTINCT col0 + + 7 FROM tab2 cor0
----
14
85
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7394
SELECT DISTINCT - col0 + CAST( - 25 AS SIGNED ) FROM tab2 AS cor0
----
-103
-104
-32
skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT - col0 + CAST ( - 25 AS INTEGER ) FROM tab2 AS cor0
----
-103
-104
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-7395
SELECT - col1 DIV + 95 + - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-7395
SELECT - col1 / + 95 + - col0 AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - col1 + 44 FROM tab0 AS cor0
----
-42
-47
-53
onlyif mysql # use DIV operator for integer division
query I rowsort label-7397
SELECT ALL + col0 * 4 + - cor0.col1 DIV col0 FROM tab2 AS cor0
----
24
312
316
skipif mysql # not compatible
query I rowsort label-7397
SELECT ALL + col0 * 4 + - cor0.col1 / col0 FROM tab2 AS cor0
----
24
312
316
query I rowsort
SELECT DISTINCT - col1 - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + col0 + 55 FROM tab0 AS cor0
----
144
79
90
query I rowsort
SELECT - col0 + + col2 * - col2 FROM tab1 AS cor0
----
-2919
-3313
-9296
query I rowsort
SELECT ALL - cor0.col0 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL 86 * + cor1.col2 AS col2 FROM tab1, tab0 cor0, tab2 cor1
----
27 values hashing to bb3503b5a000edf5bf7db0d3489b5d2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7403
SELECT + - col1 DIV col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7403
SELECT + - col1 / col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 + col1 * + col2 AS col0 FROM tab2 AS cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7405
SELECT + col1 DIV col2 AS col1 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7405
SELECT + col1 / col2 AS col1 FROM tab1 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT + - col2 + col2 DIV 83 FROM tab0 AS cor0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-7406
SELECT + - col2 + col2 / 83 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - ( + tab2.col0 + + col1 ) AS col1 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - 15 FROM tab1
----
-15
query I rowsort
SELECT ALL 33 * - col1 AS col0 FROM tab1
----
-330
-429
-858
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) col0 FROM tab1
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7411
SELECT + 18 + + col2 DIV + col1 AS col1 FROM tab2
----
18
18
20
skipif mysql # not compatible
query I rowsort label-7411
SELECT + 18 + + col2 / + col1 AS col1 FROM tab2
----
18
18
20
query I rowsort
SELECT ALL col1 * col2 * col2 AS col0 FROM tab1
----
119808
32490
75816
query I rowsort
SELECT col1 + + cor0.col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-7414
SELECT + + col2 DIV 12 FROM tab2 cor0
----
2
2
3
skipif mysql # not compatible
query I rowsort label-7414
SELECT + + col2 / 12 FROM tab2 cor0
----
2
2
3
query I rowsort
SELECT - 14 + + 55 FROM tab1 AS cor0
----
41
41
41
query I rowsort
SELECT - col2 * + col2 + + cor0.col0 - - 18 FROM tab0 AS cor0
----
-1047
-6617
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7417
SELECT - CAST( - col0 AS SIGNED ) * + col0 + + 0 * + ( - col0 ) AS col0 FROM tab2 cor0
----
49
6084
6241
skipif mysql # not compatible
query I rowsort label-7417
SELECT - CAST ( - col0 AS INTEGER ) * + col0 + + 0 * + ( - col0 ) AS col0 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7418
SELECT - CAST( NULL AS DECIMAL ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7418
SELECT - CAST ( NULL AS REAL ) / col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + - col1 FROM tab2
----
-24
19
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-7420
SELECT ALL - tab0.col2 DIV - 19 + + col2 * col2 AS col1 FROM tab0
----
1
1090
6728
skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL - tab0.col2 / - 19 + + col2 * col2 AS col1 FROM tab0
----
1
1090
6728
query I rowsort
SELECT ALL + tab1.col1 + tab1.col2 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT - col1 + col0 * tab0.col2 FROM tab0
----
-62
706
7207
query I rowsort
SELECT ALL - 29 * col2 FROM tab1
----
-1566
-1653
-2784
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 * col2 col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT - - col2 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
1482
702
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7426
SELECT ALL + 60 * - col0 * + col0 + col2 DIV - col1 FROM tab1 AS cor0
----
-245765
-384007
-542
skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL + 60 * - col0 * + col0 + col2 / - col1 FROM tab1 AS cor0
----
-245765
-384007
-542
query I rowsort
SELECT - + cor0.col1 * + col2 + cor0.col2 AS col1 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 col2 FROM tab1 cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7429
SELECT DISTINCT col2 DIV + col1 AS col1 FROM tab2
----
0
2
skipif mysql # not compatible
query I rowsort label-7429
SELECT DISTINCT col2 / + col1 AS col1 FROM tab2
----
0
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 * - col1 col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-7431
SELECT ALL + - col2 DIV col2 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL + - col2 / col2 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - + 86 FROM tab0 AS cor0
----
-86
query I rowsort
SELECT + col0 * - col1 + 96 FROM tab0 AS cor0
----
-1968
-3299
-8003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 + + col1 col2 FROM tab0 AS cor0
----
15
20
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-7435
SELECT DISTINCT - col1 DIV + col1 + 21 FROM tab0 AS cor0
----
20
skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT - col1 / + col1 + 21 FROM tab0 AS cor0
----
20
query I rowsort
SELECT ALL + + 46 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT - col1 * - cor0.col2 + + ( 1 ) FROM tab2 AS cor0
----
1535
647
838
query I rowsort
SELECT col2 * - 10 FROM tab0
----
-10
-330
-820
query I rowsort
SELECT DISTINCT 91 - - col2 * col0 FROM tab0
----
126
7389
883
query I rowsort
SELECT DISTINCT + 90 AS col0 FROM tab2
----
90
query I rowsort
SELECT ( 23 * + col0 ) AS col2 FROM tab0
----
2047
552
805
query I rowsort
SELECT - 42 * tab1.col1 AS col1 FROM tab1
----
-1092
-420
-546
query I rowsort
SELECT + ( 39 ) FROM tab0
----
39
39
39
query I rowsort
SELECT - ( - cor0.col2 ) * - col2 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col0 + cor0.col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT + 0 + + col0 * cor0.col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 9 + - col1 col0 FROM tab2 AS cor0
----
-22
-50
-8
query I rowsort
SELECT + col1 + - cor0.col0 * - 65 * - 32 FROM tab0 AS cor0
----
-185029
-49834
-72703
query I rowsort
SELECT - - 54 FROM tab1 AS cor0
----
54
54
54
query I rowsort
SELECT - 97 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT 96 FROM tab1, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL - cor1.col1 * - cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b2e5b025b1c725661248b0f29aaef908
query I rowsort
SELECT + - cor0.col0 * - 94 FROM tab1 cor0
----
282
6016
7520
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7454
SELECT - col0 + CAST( + col2 AS SIGNED ) * - col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
skipif mysql # not compatible
query I rowsort label-7454
SELECT - col0 + CAST ( + col2 AS INTEGER ) * - col2 AS col0 FROM tab1 AS cor0
----
-2919
-3313
-9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT - col0 * - 34 - col1 * + 59 FROM tab2 AS cor0
----
-1591
-829
1683
query I rowsort
SELECT + ( + col2 ) * cor0.col2 * - 83 - cor0.col1 * - col2 AS col0 FROM tab0 AS cor0
----
-550630
-87549
14
query I rowsort
SELECT ALL + - 11 * col0 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT DISTINCT + ( cor0.col2 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1
33
82
query I rowsort
SELECT col1 * - col2 * 7 AS col0 FROM tab1 AS cor0
----
-3990
-8736
-9828
query I rowsort
SELECT cor0.col2 * - col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT + ( col1 ) + ( col2 ) AS col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + 92 + + col2 AS col1 FROM tab1 cor0
----
146
149
188
query I rowsort
SELECT + + cor0.col2 * - col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - - col1 + + col2 - - col1 * + col2 FROM tab1 AS cor0
----
1357
1484
637
onlyif mysql # use DIV operator for integer division
query I rowsort label-7466
SELECT ALL col2 DIV - col0 + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
21
skipif mysql # not compatible
query I rowsort label-7466
SELECT ALL col2 / - col0 + - col0 + + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
21
query I rowsort
SELECT DISTINCT - col1 - 35 AS col2 FROM tab2 AS cor0
----
-52
-66
-94
query I rowsort
SELECT ALL - col2 + col2 + - col1 AS col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT ALL + + cor0.col2 * + cor0.col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT ALL - - 86 + 37 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29e9d8131952d56946bc643c97a760bb
query I rowsort
SELECT DISTINCT - - col1 + + 36 * cor0.col2 AS col2 FROM tab1 AS cor0
----
1970
2062
3469
query I rowsort
SELECT - + col0 + - col2 * + col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + + col0 * 70 AS col0 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT cor1.col1 - + 9 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 160432616a4d88444a0c2be1ac8e0a0f
query I rowsort
SELECT col0 + ( - col2 ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - + ( - 9 ) FROM tab0 cor0
----
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7477
SELECT DISTINCT + col0 + col1 * - col0 * CAST( 78 AS SIGNED ) FROM tab0 AS cor0
----
-160968
-264775
-631633
skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT + col0 + col1 * - col0 * CAST ( 78 AS INTEGER ) FROM tab0 AS cor0
----
-160968
-264775
-631633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col1 ) col0 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - col1 + + ( - col1 ) * - col1 AS col1 FROM tab0 cor0
----
7310
8190
9312
query I rowsort
SELECT - 65 FROM tab1 cor0
----
-65
-65
-65
query I rowsort
SELECT ALL - + col1 * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ( + cor0.col2 ) AS col0 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + - cor0.col1 + + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 52 + - col1 * cor0.col1 FROM tab1 cor0
----
-117
-48
-624
query I rowsort
SELECT DISTINCT - - 23 FROM tab0 AS cor0
----
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7486
SELECT - col1 DIV col0 + + col0 * + 19 AS col1 FROM tab2 AS cor0
----
129
1482
1501
skipif mysql # not compatible
query I rowsort label-7486
SELECT - col1 / col0 + + col0 * + 19 AS col1 FROM tab2 AS cor0
----
129
1482
1501
query I rowsort
SELECT ALL - ( - col0 ) * 68 + col2 FROM tab2 AS cor0
----
503
5330
5410
query I rowsort
SELECT ALL + 50 + - cor0.col2 * ( + col1 * col2 ) AS col1 FROM tab0 AS cor0
----
-47
-611834
-93604
query I rowsort
SELECT ALL - + col2 - - col2 * + cor0.col0 FROM tab1 AS cor0
----
108
3591
7584
query I rowsort
SELECT - - 57 * - col0 * col2 FROM tab1 AS cor0
----
-207936
-437760
-9234
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 - col2 col2 FROM tab2
----
26
37
38
query I rowsort
SELECT col1 * + tab1.col1 AS col1 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT - - col0 * col1 AS col0 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL 85 * - col2 + 71 AS col2 FROM tab2 AS cor0
----
-2139
-2224
-3159
query I rowsort
SELECT DISTINCT col1 + - col0 * + 91 FROM tab0 cor0
----
-2098
-3088
-8008
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7497
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7497
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab0 cor0
----
0
query I rowsort
SELECT cor0.col0 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7500
SELECT - col0 * col0 DIV + 16 FROM tab0 AS cor0
----
-36
-495
-76
skipif mysql # not compatible
query I rowsort label-7500
SELECT - col0 * col0 / + 16 FROM tab0 AS cor0
----
-36
-495
-76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT + 45 + cor0.col2 AS col1 FROM tab2 cor0
----
71
72
83
query I rowsort
SELECT 99 + + col2 FROM tab2
----
125
126
137
query I rowsort
SELECT + - col2 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - tab1.col1 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
query I rowsort
SELECT ALL 77 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT tab1.col0 * - col0 * col1 + col2 AS col0 FROM tab1
----
-180
-40903
-83104
onlyif mysql # use DIV operator for integer division
query I rowsort label-7508
SELECT + col1 + col2 DIV - col0 col0 FROM tab1
----
10
12
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7508
SELECT + col1 + col2 / - col0 col0 FROM tab1
----
10
12
8
query I rowsort
SELECT ALL + ( + col0 ) * + col0 * cor0.col1 FROM tab1 AS cor0
----
234
40960
83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col0 FROM tab2 AS cor0
----
-63
-63
-63
query I rowsort
SELECT col0 * - col0 - - cor0.col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT DISTINCT - col1 - col1 FROM tab0
----
-172
-182
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + cor0.col1 + 86 col1 FROM tab0 AS cor0
----
-11
-5
0
query I rowsort
SELECT ALL - col2 + col2 + + col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + + ( + col2 ) AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - + 36 FROM tab2 AS cor0
----
-36
query I rowsort
SELECT - 21 + col2 AS col2 FROM tab2 AS cor0
----
17
5
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7518
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7518
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7519
SELECT CAST( NULL AS SIGNED ) * cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7519
SELECT CAST ( NULL AS INTEGER ) * cor0.col0 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - col1 + - col2 AS col0 FROM tab0
----
-119
-173
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7521
SELECT - CAST( 65 + + tab0.col0 AS SIGNED ) DIV + 35 AS col0 FROM tab0
----
-2
-2
-4
skipif mysql # not compatible
query I rowsort label-7521
SELECT - CAST ( 65 + + tab0.col0 AS INTEGER ) / + 35 AS col0 FROM tab0
----
-2
-2
-4
query I rowsort
SELECT DISTINCT + col0 + col0 * - tab1.col1 + - col2 FROM tab1
----
-1056
-129
-633
query I rowsort
SELECT - col1 - - col2 * col1 AS col2 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7524
SELECT ALL CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 25 + - col0 - col1 AS col0 FROM tab0 AS cor0
----
-107
-155
-85
query I rowsort
SELECT DISTINCT - col2 + - 23 AS col1 FROM tab0 AS cor0
----
-105
-24
-56
query I rowsort
SELECT + 14 + 8 AS col0 FROM tab2 cor0
----
22
22
22
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 * col1 - col2 * col2 col0 FROM tab2 AS cor0
----
118976
49590
5130
query I rowsort
SELECT DISTINCT - 71 * col1 * col1 + - col0 FROM tab1 cor0
----
-12079
-47999
-7164
query I rowsort
SELECT - + ( col0 ) + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT DISTINCT - + col2 * - 7 + col0 FROM tab1 AS cor0
----
381
463
752
query I rowsort
SELECT ALL 88 * 75 - col0 FROM tab2 AS cor0
----
6521
6522
6593
onlyif mysql # use DIV operator for integer division
query I rowsort label-7533
SELECT DISTINCT 52 DIV - 14 FROM tab1, tab0 AS cor0
----
-3
skipif mysql # not compatible
query I rowsort label-7533
SELECT DISTINCT 52 / - 14 FROM tab1, tab0 AS cor0
----
-3
query I rowsort
SELECT + col0 * + ( + cor0.col2 ) + col1 AS col0 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT col2 * - tab0.col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 + - col2 - + col1 FROM tab1 cor0
----
-10
-13
-26
query I rowsort
SELECT + + col2 + + ( cor0.col1 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col1 * col1 + col2 * 85 FROM tab2 AS cor0
----
-1271
1334
2941
onlyif mysql # use DIV operator for integer division
query I rowsort label-7539
SELECT + 60 + - col2 DIV col2 AS col2 FROM tab1 AS cor0
----
59
59
59
skipif mysql # not compatible
query I rowsort label-7539
SELECT + 60 + - col2 / col2 AS col2 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT - 28 * - col0 FROM tab1 AS cor0
----
1792
2240
84
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + col2 AS REAL ) * col2 + 31 AS col0 FROM tab1 AS cor0
----
2947
3280
9247
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7542
SELECT + CAST( NULL AS SIGNED ) - 78 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7542
SELECT + CAST ( NULL AS INTEGER ) - 78 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7543
SELECT CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-7543
SELECT CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT + - 41 AS col2 FROM tab0 AS cor0
----
-41
-41
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 + col2 * col0 col1 FROM tab2 AS cor0
----
2069
230
3043
query I rowsort
SELECT cor0.col2 + col0 * col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7547
SELECT ALL - + col1 * + col1 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL - + col1 * + col1 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7548
SELECT - col2 DIV + cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7548
SELECT - col2 / + cor0.col2 col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + ( cor1.col0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7550
SELECT + col0 * col1 - + CAST( ( - cor0.col1 ) AS SIGNED ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1209
740
754
skipif mysql # not compatible
query I rowsort label-7550
SELECT + col0 * col1 - + CAST ( ( - cor0.col1 ) AS INTEGER ) * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT DISTINCT - col0 * col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + + 14 AS col1 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT - + 77 FROM tab0 AS cor0
----
-77
-77
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-7554
SELECT - 46 + - col2 DIV + 31 AS col2 FROM tab0 AS cor0
----
-46
-47
-48
skipif mysql # not compatible
query I rowsort label-7554
SELECT - 46 + - col2 / + 31 AS col2 FROM tab0 AS cor0
----
-46
-47
-48
query I rowsort
SELECT 40 + col0 * col0 FROM tab1 AS cor0
----
4136
49
6440
onlyif mysql # use DIV operator for integer division
query I rowsort label-7556
SELECT DISTINCT - tab0.col1 DIV + col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT - tab0.col1 / + col1 FROM tab0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7557
SELECT + 88 DIV col2 AS col1 FROM tab1
----
0
1
1
skipif mysql # not compatible
query I rowsort label-7557
SELECT + 88 / col2 AS col1 FROM tab1
----
0
1
1
query I rowsort
SELECT DISTINCT + col2 * col2 + + 94 FROM tab1
----
3010
3343
9310
query I rowsort
SELECT col0 * + col2 * + 66 FROM tab1
----
10692
240768
506880
query I rowsort
SELECT ALL - + col1 * + ( - cor0.col0 ) FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col1 * + 93 + col2 FROM tab2 AS cor0
----
1619
2910
5513
query I rowsort
SELECT ALL col2 * 72 + 45 FROM tab2 AS cor0
----
1917
1989
2781
onlyif mysql # use DIV operator for integer division
query I rowsort label-7563
SELECT DISTINCT - col2 DIV 24 FROM tab0 AS cor0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-7563
SELECT DISTINCT - col2 / 24 FROM tab0 AS cor0
----
-1
-3
0
query I rowsort
SELECT ALL - col0 + col0 * 78 * - col2 FROM tab0 AS cor0
----
-2765
-569333
-61800
onlyif mysql # use DIV operator for integer division
query I rowsort label-7565
SELECT - col1 DIV - col1 + + 21 FROM tab0 AS cor0
----
22
22
22
skipif mysql # not compatible
query I rowsort label-7565
SELECT - col1 / - col1 + + 21 FROM tab0 AS cor0
----
22
22
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7566
SELECT + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7566
SELECT + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7567
SELECT DISTINCT - + cor0.col1 DIV - 52 + cor0.col0 FROM tab2 AS cor0
----
7
79
skipif mysql # not compatible
query I rowsort label-7567
SELECT DISTINCT - + cor0.col1 / - 52 + cor0.col0 FROM tab2 AS cor0
----
7
79
query I rowsort
SELECT DISTINCT col1 * cor0.col1 * - 94 AS col1 FROM tab0 AS cor0
----
-695224
-778414
-884446
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 * col1 col0 FROM tab0 AS cor0
----
-1462
-1547
-1649
query I rowsort
SELECT + col2 * - ( + col1 + - col0 ) FROM tab2
----
-648
2356
494
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab2, tab2 AS cor2
----
3645 values hashing to f8426cd4d01ba96a72d7348574fbbc8e
query I rowsort
SELECT ALL col2 * col1 - - 10 AS col0 FROM tab1
----
1258
1414
580
query I rowsort
SELECT + col0 * col2 + + 33 + + col2 FROM tab2 AS cor0
----
2087
249
3073
query I rowsort
SELECT ALL tab0.col0 + col1 * 20 - col1 AS col0 FROM tab0
----
1658
1818
1878
query I rowsort
SELECT ALL col0 + + col1 * + cor0.col1 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT + 6 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab2, tab2 AS cor1
----
3645 values hashing to 42d854e4c33cb5afd5528228bff9250d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 col1 FROM tab2
----
41
41
41
query I rowsort
SELECT DISTINCT + tab1.col0 AS col2 FROM tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + cor0.col1 + - 62 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to da26656843b35a056a6125fe5ba4f326
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7581
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7581
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + 19 FROM tab1
----
19
19
19
query I rowsort
SELECT - 87 + + col2 FROM tab2
----
-49
-60
-61
query I rowsort
SELECT ALL 75 FROM tab1
----
75
75
75
query I rowsort
SELECT ALL + col1 * - tab0.col2 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 * 77 col1 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to 75c138e406951550b31317f7963989da
query I rowsort
SELECT + 46 AS col2 FROM tab0 AS cor0
----
46
46
46
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - col2 + - cor0.col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - - cor0.col0 * col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT ALL + - col0 + col2 * col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT + col0 + cor0.col1 * col2 * - col1 FROM tab1 AS cor0
----
-16144
-36501
-5636
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col1 * col1 + + col2 col2 FROM tab1 cor0
----
167
278
756
onlyif mysql # use DIV operator for integer division
query I rowsort label-7594
SELECT cor0.col1 DIV + col2 + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-7594
SELECT cor0.col1 / + col2 + + col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * - cor0.col2 + + cor0.col1 + cor0.col0 FROM tab0 AS cor0
----
-6544
-979
131
query I rowsort
SELECT ALL + col0 + + col2 * + col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 * + col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col2 * + col0 col1 FROM tab2 cor0
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-7599
SELECT ALL + col2 DIV col1 + + col1 AS col2 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-7599
SELECT ALL + col2 / col1 + + col1 AS col2 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL col1 + - tab1.col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col2 + + col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL - col2 + + col2 + col0 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 + + col1 + col0 FROM tab2
----
134
163
65
query I rowsort
SELECT + - col2 * col1 + col0 AS col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT tab1.col0 - col1 * col1 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT + col1 + - col2 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT tab0.col1 / tab0.col2 AS col0 FROM tab0 WHERE NULL < NULL
----
query I rowsort
SELECT ALL - col1 + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL ( col0 ) - col1 * tab0.col0 FROM tab0
----
-2040
-3360
-8010
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
query I rowsort
SELECT ALL col0 + + cor0.col1 * col2 * cor0.col2 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT + col0 + - col2 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
-16144
-36501
-5636
query I rowsort
SELECT ALL + ( col2 ) * + col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT 11 + + col2 FROM tab2
----
37
38
49
query I rowsort
SELECT - col1 + col2 AS col2 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT - ( + col2 ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT col2 * + col0 + + col2 * - col0 + col0 AS col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * col2 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - + col1 + col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT - col0 * col1 - - col1 AS col2 FROM tab1 cor0
----
-1027
-52
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-7621
SELECT DISTINCT - col2 * col2 DIV col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - col2 * col2 / col2 + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + col0 + - col0 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - col2 + + col1 + + col0 * + col2 AS col0 FROM tab2
----
193
2061
2981
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col0 * - cor0.col2 FROM tab0, tab2 cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - - cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col2 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col2 * + col0 - col2 AS col0 FROM tab0 WHERE col1 + col1 <= NULL
----
query I rowsort
SELECT ALL + col0 * - col0 + col0 AS col1 FROM tab0
----
-1190
-552
-7832
query I rowsort
SELECT DISTINCT + col2 - - tab0.col2 FROM tab0
----
164
2
66
query I rowsort
SELECT + col0 + + col0 AS col0 FROM tab2 WHERE NULL NOT IN ( col2 + - tab2.col2 / + col2 )
----
query I rowsort
SELECT DISTINCT - col0 * - tab0.col0 + - tab0.col2 FROM tab0
----
1224
543
7839
query I rowsort
SELECT DISTINCT tab2.col2 * + col1 AS col1 FROM tab2
----
1534
646
837
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + tab2.col2 ) AND - col1
----
query I rowsort
SELECT DISTINCT col0 + - col0 AS col1 FROM tab0
----
0
query I rowsort
SELECT - col0 * + col0 + - col0 AS col2 FROM tab0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT col2 - + col2 AS col1 FROM tab2
----
0
query I rowsort
SELECT DISTINCT - col0 + - col2 AS col2 FROM tab0
----
-171
-36
-57
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7640
SELECT ALL col0 DIV + col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL col0 / + col1 - col1 AS col0 FROM tab0
----
-86
-91
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7641
SELECT + col0 * col0 * + col2 + col1 DIV - col0 AS col0 FROM tab1
----
233472
478
614400
skipif mysql # not compatible
query I rowsort label-7641
SELECT + col0 * col0 * + col2 + col1 / - col0 AS col0 FROM tab1
----
233472
478
614400
query I rowsort
SELECT + col2 * - cor0.col0 * - col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT - tab0.col2 * - col0 * 3 AS col2 FROM tab0
----
105
21894
2376
query I rowsort
SELECT - tab0.col2 * + col2 AS col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL - col1 * + col1 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-7420
-8370
-9444
query I rowsort
SELECT DISTINCT + col0 * - col0 + + ( + col1 ) AS col0 FROM tab0 cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - - col2 * col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT col2 + col1 + + col1 * - col2 AS col0 FROM tab1
----
-1139
-1324
-503
query I rowsort
SELECT DISTINCT col0 + + col0 + col1 FROM tab1
----
138
173
32
query I rowsort
SELECT ALL + col0 + - col0 + - tab0.col2 AS col0 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + + ( cor0.col0 ) FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7652
SELECT cor0.col2 + + col0 DIV - 37 AS col0 FROM tab0 AS cor0
----
1
33
80
skipif mysql # not compatible
query I rowsort label-7652
SELECT cor0.col2 + + col0 / - 37 AS col0 FROM tab0 AS cor0
----
1
33
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7653
SELECT col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7653
SELECT col0 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - col2 * + col0 * cor0.col2 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT ALL - col1 * + col1 * col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
onlyif mysql # use DIV operator for integer division
query I rowsort label-7656
SELECT tab0.col0 DIV + col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7656
SELECT tab0.col0 / + col2 FROM tab0
----
0
1
35
query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE NOT NULL IN ( - col0 - + col2 )
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col0 + - col1 * col2 )
----
query I rowsort
SELECT tab2.col1 * + tab2.col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col1 + col2 * - col2 + tab0.col1 FROM tab0
----
-6542
-917
193
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + col1
----
query I rowsort
SELECT DISTINCT col2 - + col1 AS col0 FROM tab2
----
-33
-4
21
query I rowsort
SELECT ALL tab0.col2 - - col2 FROM tab0
----
164
2
66
query I rowsort
SELECT col0 - col2 * tab1.col2 * col2 FROM tab1
----
-157461
-185129
-884656
query I rowsort
SELECT ALL col1 + + col2 * + col2 * - col1 FROM tab1 WHERE NOT ( NULL ) IN ( col2 + - col1 )
----
query I rowsort
SELECT ALL + + 78 FROM tab2 cor0
----
78
78
78
query I rowsort
SELECT + cor0.col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT 18 * + 93 FROM tab1
----
1674
1674
1674
query I rowsort
SELECT + ( col0 + + col1 ) * - 33 FROM tab1
----
-2442
-3069
-957
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col2 - + 44 col2 FROM tab0
----
-42
120
22
query I rowsort
SELECT DISTINCT 77 * tab1.col2 AS col1 FROM tab1
----
4158
4389
7392
query I rowsort
SELECT - + 81 FROM tab0 cor0
----
-81
-81
-81
query I rowsort
SELECT + ( col2 ) - + col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT 20 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
query I rowsort
SELECT col0 + 40 FROM tab2
----
118
119
47
query I rowsort
SELECT DISTINCT + - col1 * + col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT 52 * + 20 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to fa4bb5c43029fb656521b983c5c0e6b8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7678
SELECT + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-7678
SELECT + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7679
SELECT ALL + ( - 38 ) DIV cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
skipif mysql # not compatible
query I rowsort label-7679
SELECT ALL + ( - 38 ) / cor0.col0 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to b2e225572af74ba853e10fb5414ea67f
query I rowsort
SELECT + - 40 FROM tab0 AS cor0
----
-40
-40
-40
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7681
SELECT CAST( col1 AS SIGNED ) - - col0 AS col1 FROM tab2
----
137
38
96
skipif mysql # not compatible
query I rowsort label-7681
SELECT CAST ( col1 AS INTEGER ) - - col0 AS col1 FROM tab2
----
137
38
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col1 col0 FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT ( + ( + col2 ) ) * col0 + + col0 DIV - col0 FROM tab2
----
188
2027
3001
skipif mysql # not compatible
query I rowsort label-7683
SELECT ( + ( + col2 ) ) * col0 + + col0 / - col0 FROM tab2
----
188
2027
3001
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + col1 col2 FROM tab1
----
109
67
80
query I rowsort
SELECT col2 * col1 * col1 + col2 FROM tab0
----
244101
679124
9410
query I rowsort
SELECT ALL + 99 * col2 FROM tab2 cor0
----
2574
2673
3762
onlyif mysql # use DIV operator for integer division
query I rowsort label-7687
SELECT ALL col2 DIV cor0.col1 AS col0 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL col2 / cor0.col1 AS col0 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT DISTINCT - col1 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - 80 * 41 AS col2 FROM tab0 AS cor0
----
-3280
-3280
-3280
query I rowsort
SELECT + + ( + col1 ) * + col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + - cor0.col2 + - col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - cor0.col2 * col1 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
-1139
-1324
-503
query I rowsort
SELECT ALL 65 + - col1 FROM tab0 AS cor0
----
-21
-26
-32
query I rowsort
SELECT ALL 5 + - col0 * + col2 FROM tab0 AS cor0
----
-30
-7293
-787
onlyif mysql # use DIV operator for integer division
query I rowsort label-7695
SELECT DISTINCT col1 DIV + col0 + + col2 * - col2 - + col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-752
skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT col1 / + col0 + + col2 * - col2 - + col2 AS col0 FROM tab2 AS cor0
----
-1482
-702
-752
query I rowsort
SELECT DISTINCT + - 42 + col0 AS col2 FROM tab2 AS cor0
----
-35
36
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7697
SELECT ALL + + cor0.col1 DIV col1 + col1 DIV - col0 FROM tab1 AS cor0
----
-7
1
1
skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL + + cor0.col1 / col1 + col1 / - col0 FROM tab1 AS cor0
----
-7
1
1
query I rowsort
SELECT ALL 66 AS col2 FROM tab2 AS cor0
----
66
66
66
query I rowsort
SELECT + 10 * cor0.col0 FROM tab1 AS cor0
----
30
640
800
query I rowsort
SELECT ALL - + 92 + + col1 * col2 * col1 + - col0 FROM tab0 AS cor0
----
243952
678861
9282
query I rowsort
SELECT ALL - 16 * col1 AS col1 FROM tab0
----
-1376
-1456
-1552
query I rowsort
SELECT col0 * + col1 - + col2 FROM tab2
----
1305
190
4576
query I rowsort
SELECT ALL col1 * + col0 * col2 + + cor0.col1 AS col0 FROM tab0 AS cor0
----
3492
664209
68198
query I rowsort
SELECT DISTINCT - col2 * - col2 + col0 * col0 FROM tab0 AS cor0
----
1226
14645
1665
query I rowsort
SELECT ALL + 49 * col0 AS col0 FROM tab0
----
1176
1715
4361
query I rowsort
SELECT - col0 * - 15 AS col1 FROM tab2 AS cor0
----
105
1170
1185
onlyif mysql # use DIV operator for integer division
query I rowsort label-7707
SELECT + col0 + col0 DIV 63 AS col0 FROM tab1 cor0
----
3
65
81
skipif mysql # not compatible
query I rowsort label-7707
SELECT + col0 + col0 / 63 AS col0 FROM tab1 cor0
----
3
65
81
query I rowsort
SELECT col2 + + ( - cor0.col2 ) * cor0.col2 * col2 FROM tab2 AS cor0
----
-17550
-19656
-54834
query I rowsort
SELECT col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 + - col1 * 18 FROM tab2 AS cor0
----
-1036
-268
-531
query I rowsort
SELECT + col0 + col0 * 95 * col2 AS col1 FROM tab2 AS cor0
----
17962
192738
285269
query I rowsort
SELECT col1 * col2 * - col2 FROM tab1 AS cor0
----
-119808
-32490
-75816
query I rowsort
SELECT ALL - - col2 * + 29 FROM tab2 AS cor0
----
1102
754
783
onlyif mysql # use DIV operator for integer division
query I rowsort label-7714
SELECT - col2 + ( col1 + col2 ) DIV col0 FROM tab2 AS cor0
----
-19
-25
-38
skipif mysql # not compatible
query I rowsort label-7714
SELECT - col2 + ( col1 + col2 ) / col0 FROM tab2 AS cor0
----
-19
-25
-38
query I rowsort
SELECT DISTINCT - cor0.col0 * 52 FROM tab2 AS cor0
----
-364
-4056
-4108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT col0 + ( + cor0.col2 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT 94 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL + - 10 - - col0 AS col0 FROM tab1 AS cor0
----
-7
54
70
query I rowsort
SELECT ALL + 74 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31
query I rowsort
SELECT DISTINCT - col2 + tab0.col1 AS col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT + col1 * col2 * cor0.col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col2 + + 0 - - 13 * col2 FROM tab1 AS cor0
----
1344
756
798
onlyif mysql # use DIV operator for integer division
query I rowsort label-7724
SELECT DISTINCT - - col1 DIV 79 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7724
SELECT DISTINCT - - col1 / 79 FROM tab1 AS cor0
----
0
query I rowsort
SELECT col2 + - col1 - + col0 * col1 FROM tab0 AS cor0
----
-2117
-3491
-8108
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7727
SELECT col2 DIV - ( - col1 ) + cor0.col1 * + cor0.col1 * - col2 + col1 FROM tab1 cor0
----
-16204
-36476
-5685
skipif mysql # not compatible
query I rowsort label-7727
SELECT col2 / - ( - col1 ) + cor0.col1 * + cor0.col1 * - col2 + col1 FROM tab1 cor0
----
-16204
-36476
-5685
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 36 col2 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT col0 * ( col0 ) + + col2 AS col1 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-7730
SELECT ALL cor0.col2 DIV 16 FROM tab2 AS cor0
----
1
1
2
skipif mysql # not compatible
query I rowsort label-7730
SELECT ALL cor0.col2 / 16 FROM tab2 AS cor0
----
1
1
2
query I rowsort
SELECT ALL col2 * + ( cor0.col1 ) FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col2 + - ( col2 ) * + col1 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT DISTINCT col2 - col1 * col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT 45 + col0 * + ( col2 ) FROM tab0
----
7343
80
837
query I rowsort
SELECT col0 * + col1 + 93 * col0 * + col0 + col2 AS col0 FROM tab1
----
381625
596336
969
query I rowsort
SELECT DISTINCT - col1 + - ( + 22 ) * col1 AS col2 FROM tab1 AS cor0
----
-230
-299
-598
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 44 col0 FROM tab1 AS cor0
----
132
2816
3520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 + col0 col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - ( 31 ) col0 FROM tab1 AS cor0
----
-1674
-1767
-2976
query I rowsort
SELECT + - col0 * - col2 AS col2 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 * + 75 AS col1 FROM tab0
----
1800
2625
6675
onlyif mysql # use DIV operator for integer division
query I rowsort label-7742
SELECT ALL - tab0.col2 + tab0.col0 + + col2 DIV - col1 FROM tab0
----
-9
34
7
skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL - tab0.col2 + tab0.col0 + + col2 / - col1 FROM tab0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col1 + tab2.col2 + col2 col1 FROM tab2
----
1419
271
4654
query I rowsort
SELECT DISTINCT + - col2 * + col2 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col1 + + 82 * cor0.col2 col0 FROM tab0 AS cor0
----
-1557
-4690
-9327
query I rowsort
SELECT + 85 - col0 FROM tab0
----
-4
50
61
query I rowsort
SELECT + + cor0.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7748
SELECT DISTINCT - ( + ( col0 ) + - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7748
SELECT DISTINCT - ( + ( col0 ) + - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7749
SELECT 42 * + col0 + ( col2 + col2 ) DIV 8 AS col2 FROM tab2
----
300
3282
3327
skipif mysql # not compatible
query I rowsort label-7749
SELECT 42 * + col0 + ( col2 + col2 ) / 8 AS col2 FROM tab2
----
300
3282
3327
query I rowsort
SELECT DISTINCT col2 * col1 - - col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT 81 + + tab1.col0 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to ea42afdc887557ff2686f65be4fdfcf1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7752
SELECT 35 DIV + tab1.col0 col0 FROM tab1
----
0
0
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7752
SELECT 35 / + tab1.col0 col0 FROM tab1
----
0
0
11
query I rowsort
SELECT ALL + 25 * - cor0.col0 + - 83 + col2 * - col0 AS col1 FROM tab1 AS cor0
----
-320
-5331
-9763
query I rowsort
SELECT ALL + col2 * - col0 + + ( + 13 ) AS col1 FROM tab0 AS cor0
----
-22
-7285
-779
query I rowsort
SELECT col1 * + 85 AS col2 FROM tab0 AS cor0
----
7310
7735
8245
query I rowsort
SELECT - 68 + 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT DISTINCT - 42 FROM tab2 cor0
----
-42
query I rowsort
SELECT ALL + ( - cor0.col2 ) FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT - - col2 * col1 - - col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - col2 * 87 FROM tab0 AS cor0
----
-2871
-7134
-87
query I rowsort
SELECT DISTINCT - - cor0.col0 * 14 + - col2 FROM tab1 AS cor0
----
-12
1024
839
query I rowsort
SELECT DISTINCT - col2 + 64 + + cor0.col1 AS col2 FROM tab0 cor0
----
117
160
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 88 col2 FROM tab2 AS cor0
----
-166
-167
-95
skipif mysql # not compatible
query I rowsort
SELECT tab2.col0 * CAST ( - col2 AS REAL ) FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT - col2 - + col1 AS col2 FROM tab1 cor0
----
-109
-67
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7766
SELECT DISTINCT cor0.col2 DIV + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT cor0.col2 / + cor0.col0 + + col1 AS col0 FROM tab0 AS cor0
----
87
91
97
query I rowsort
SELECT + 25 * + tab1.col2 + + col2 AS col1 FROM tab1
----
1404
1482
2496
query I rowsort
SELECT - col0 * - tab2.col2 AS col0 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-7769
SELECT - col0 * col0 DIV + col1 FROM tab1 AS cor0
----
-409
-492
0
skipif mysql # not compatible
query I rowsort label-7769
SELECT - col0 * col0 / + col1 FROM tab1 AS cor0
----
-409
-492
0
query I rowsort
SELECT ALL 77 AS col2 FROM tab1 AS cor0
----
77
77
77
query I rowsort
SELECT DISTINCT + col0 * col0 + - col2 FROM tab2 cor0
----
22
6058
6203
query I rowsort
SELECT + col2 + 71 AS col1 FROM tab1 AS cor0
----
125
128
167
onlyif mysql # use DIV operator for integer division
query I rowsort label-7773
SELECT DISTINCT + col2 DIV - 99 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7773
SELECT DISTINCT + col2 / - 99 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL + - 44 FROM tab0 AS cor0
----
-44
-44
-44
query I rowsort
SELECT + 28 * col0 + ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
2574
705
981
query I rowsort
SELECT ALL + col0 + + col1 * ( - col0 ) AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-7777
SELECT DISTINCT - col0 - - col1 DIV ( - ( col1 ) ) FROM tab2 cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-7777
SELECT DISTINCT - col0 - - col1 / ( - ( col1 ) ) FROM tab2 cor0
----
-79
-8
-80
query I rowsort
SELECT DISTINCT + 14 FROM tab2 AS cor0
----
14
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7779
SELECT ALL + + col2 * col1 + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7779
SELECT ALL + + col2 * col1 + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + col2 * 79 FROM tab0 AS cor0
----
2574
6396
78
query I rowsort
SELECT + - 50 + - cor0.col2 FROM tab2 AS cor0
----
-76
-77
-88
query I rowsort
SELECT ALL + col2 * + col0 + + 97 FROM tab0 cor0
----
132
7395
889
query I rowsort
SELECT DISTINCT + - col0 * + col1 * 59 FROM tab2 AS cor0
----
-12803
-271518
-79237
query I rowsort
SELECT 84 AS col1 FROM tab0 AS cor0
----
84
84
84
query I rowsort
SELECT ALL col0 * + col2 + - cor0.col1 + + col2 FROM tab2 AS cor0
----
185
1995
3023
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7786
SELECT CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-7786
SELECT CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT 99 AS col1 FROM tab0, tab2 AS cor0
----
99
query I rowsort
SELECT - 90 * + col0 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT - col0 * + col1 AS col2 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - col0 * col1 * 55 FROM tab2 AS cor0
----
-11935
-253110
-73865
query I rowsort
SELECT cor0.col1 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # use DIV operator for integer division
query I rowsort label-7792
SELECT 63 DIV cor1.col2 FROM tab2, tab1 cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 7e163dee6790fbe5456b394cd2ca048d
skipif mysql # not compatible
query I rowsort label-7792
SELECT 63 / cor1.col2 FROM tab2, tab1 cor0, tab1 cor1, tab2 AS cor2
----
81 values hashing to 7e163dee6790fbe5456b394cd2ca048d
query I rowsort
SELECT ALL - ( + cor0.col0 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 3000337dd3f11e9cfd5a312b01ef3f8b
query I rowsort
SELECT DISTINCT 49 FROM tab2, tab1 AS cor0
----
49
query I rowsort
SELECT + 46 * col0 AS col0 FROM tab1 AS cor0
----
138
2944
3680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7796
SELECT DISTINCT - cor0.col0 DIV + col2 col2 FROM tab1 AS cor0
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - cor0.col0 / + col2 col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT DISTINCT ( + col2 ) * col2 AS col1 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL + ( col0 ) + 48 FROM tab2 AS cor0
----
126
127
55
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7799
SELECT + CAST( cor0.col0 AS SIGNED ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif mysql # not compatible
query I rowsort label-7799
SELECT + CAST ( cor0.col0 AS INTEGER ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - 93 + col2 FROM tab1
----
-36
-39
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + cor0.col1 AS REAL ) col2 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - tab0.col1 + tab0.col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + - col0 + ( - col1 ) * + col0 + + col0 * - cor0.col1 * - col1 FROM tab0 AS cor0
----
175416
325885
728821
query I rowsort
SELECT ALL + ( + tab0.col2 ) AS col0 FROM tab0
----
1
33
82
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + 68 FROM tab2, tab2 AS cor0, tab0 cor1
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
onlyif mysql # use DIV operator for integer division
query I rowsort label-7807
SELECT ALL - 30 DIV cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cbfa8de8feb212fe31a1528b9e5261db
skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL - 30 / cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cbfa8de8feb212fe31a1528b9e5261db
query I rowsort
SELECT 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT col1 * 87 + + 8 AS col1 FROM tab1 AS cor0
----
1139
2270
878
query I rowsort
SELECT ALL + + col0 + 81 FROM tab0 AS cor0
----
105
116
170
query I rowsort
SELECT ALL + tab0.col2 + + col1 AS col2 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL col2 + + ( col1 ) AS col1 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL - col1 + - ( - ( + col2 ) + col2 ) * col1 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - tab2.col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7816
SELECT DISTINCT - CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7817
SELECT + CAST( NULL AS SIGNED ) * + 45 + - col0 * ( 46 * - col1 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7817
SELECT + CAST ( NULL AS INTEGER ) * + 45 + - col0 * ( 46 * - col1 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 13 * + col1 + + col0 FROM tab2 AS cor0
----
300
410
845
query I rowsort
SELECT - + col2 + cor0.col1 * - col1 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT ALL + col1 + ( col0 ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - col0 - - col1 * col2 AS col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT - - col1 - - 57 AS col0 FROM tab1 cor0
----
67
70
83
query I rowsort
SELECT DISTINCT + - 75 * + col1 AS col1 FROM tab2 AS cor0
----
-1275
-2325
-4425
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT ALL - - 79 * - col0 + col1 FROM tab2 cor0
----
-522
-6103
-6224
query I rowsort
SELECT DISTINCT + 29 + + 92 AS col1 FROM tab0 AS cor0
----
121
query I rowsort
SELECT + 2 + + col2 AS col2 FROM tab2 AS cor0
----
28
29
40
query I rowsort
SELECT + + 29 AS col1 FROM tab0 AS cor0
----
29
29
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7829
SELECT ALL - - CAST( NULL AS DECIMAL ) * col2 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7829
SELECT ALL - - CAST ( NULL AS REAL ) * col2 - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 87 * col2 AS col0 FROM tab2 AS cor0
----
2262
2349
3306
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 * col1 col0 FROM tab0 AS cor0
----
-3010
-3185
-3395
query I rowsort
SELECT DISTINCT + + ( 4 ) * - col0 * - col0 + col2 AS col1 FROM tab0 AS cor0
----
2337
31766
4901
query I rowsort
SELECT + 36 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT + cor0.col2 * col2 - 29 FROM tab2 AS cor0
----
1415
647
700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) - col0 col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + - 19 + col0 + 83 * + cor0.col0 FROM tab0 AS cor0
----
1997
2921
7457
query I rowsort
SELECT col2 * - col0 + + col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT 65 * - col1 AS col1 FROM tab2 AS cor0
----
-1105
-2015
-3835
query I rowsort
SELECT - + col2 * 69 + + col0 * col1 AS col1 FROM tab2 AS cor0
----
-1279
-1646
2808
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col2 * ( + col2 ) + col2 col0 FROM tab0 AS cor0
----
-1056
-6642
0
query I rowsort
SELECT DISTINCT - + col1 * col2 * col0 + col1 * col0 FROM tab2 AS cor0
----
-115050
-49691
-5642
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 92 col2 FROM tab0 AS cor0
----
-10
-59
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT ALL - cor0.col2 + - 74 DIV - col2 FROM tab0 AS cor0
----
-31
-82
73
skipif mysql # not compatible
query I rowsort label-7843
SELECT ALL - cor0.col2 + - 74 / - col2 FROM tab0 AS cor0
----
-31
-82
73
query I rowsort
SELECT DISTINCT + - col1 * - 74 + col0 FROM tab2 cor0
----
1337
2301
4444
query I rowsort
SELECT - 7 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7846
SELECT DISTINCT col1 * - col1 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-7846
SELECT DISTINCT col1 * - col1 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT ALL + 84 AS col0 FROM tab1, tab0, tab0 AS cor0, tab2
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9
query I rowsort
SELECT tab1.col1 + + col2 * col1 * - ( + 29 * + col2 ) FROM tab1
----
-2198638
-3474419
-942200
onlyif mysql # use DIV operator for integer division
query I rowsort label-7849
SELECT DISTINCT + 30 DIV + tab1.col1 FROM tab1, tab1 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + 30 / + tab1.col1 FROM tab1, tab1 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col2 ) col0 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - - col0 * col1 - - col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT - - 0 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 - col2 col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - 28 + col0 AS col2 FROM tab1 AS cor0
----
108
31
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7855
SELECT + col1 + col2 DIV + 32 FROM tab2 AS cor0
----
18
31
59
skipif mysql # not compatible
query I rowsort label-7855
SELECT + col1 + col2 / + 32 FROM tab2 AS cor0
----
18
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col1 * 3 col0 FROM tab1 cor0
----
119
81
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT ( col2 ) + + ( col1 ) DIV col0 FROM tab0 cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-7857
SELECT ( col2 ) + + ( col1 ) / col0 FROM tab0 cor0
----
3
36
83
query I rowsort
SELECT + + col1 - col2 AS col2 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT cor0.col0 * cor0.col1 + col0 FROM tab2 AS cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7860
SELECT DISTINCT - 1 DIV + col2 AS col1 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-7860
SELECT DISTINCT - 1 / + col2 AS col1 FROM tab0 AS cor0
----
-1
0
query I rowsort
SELECT cor0.col2 * col2 - 13 AS col0 FROM tab1 AS cor0
----
2903
3236
9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7862
SELECT DISTINCT + - 18 DIV - col0 AS col2 FROM tab1 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT + - 18 / - col0 AS col2 FROM tab1 AS cor0
----
0
6
query I rowsort
SELECT DISTINCT - ( col0 ) AS col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT col2 * col2 + + col1 FROM tab1 AS cor0
----
2942
3259
9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7865
SELECT - col0 / - col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7865
SELECT - col0 / - col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 24 FROM tab2, tab2 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT - + col0 * - col2 - - ( col1 ) * col1 FROM tab1 AS cor0
----
3748
7849
838
query I rowsort
SELECT - 43 - - col0 FROM tab0 cor0
----
-19
-8
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col0 + - ( + 76 ) col1 FROM tab2 AS cor0
----
-69
2
3
query I rowsort
SELECT DISTINCT + col0 + + 98 FROM tab2 AS cor0
----
105
176
177
query I rowsort
SELECT DISTINCT - col1 - 83 AS col1 FROM tab0 AS cor0
----
-169
-174
-180
query I rowsort
SELECT col0 + + 73 AS col0 FROM tab1 AS cor0
----
137
153
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-7873
SELECT ALL + col1 + ( + col0 ) + - col1 DIV 78 FROM tab0 AS cor0
----
109
131
179
skipif mysql # not compatible
query I rowsort label-7873
SELECT ALL + col1 + ( + col0 ) + - col1 / 78 FROM tab0 AS cor0
----
109
131
179
query I rowsort
SELECT ALL - 88 FROM tab0, tab1 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT - cor0.col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT DISTINCT - + col2 * - col0 * col2 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + col0 * 24 AS col1 FROM tab2 cor0
----
168
1872
1896
query I rowsort
SELECT + col2 * - 40 FROM tab1 AS cor0
----
-2160
-2280
-3840
query I rowsort
SELECT ALL - col0 * + 11 * + col1 FROM tab1 cor0
----
-11440
-7040
-858
query I rowsort
SELECT DISTINCT + col1 * ( - 19 * - col0 ) AS col1 FROM tab2 AS cor0
----
25517
4123
87438
query I rowsort
SELECT ALL col2 * - ( 7 ) AS col1 FROM tab2 AS cor0
----
-182
-189
-266
query I rowsort
SELECT ALL - - cor0.col0 AS col0 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7883
SELECT - col2 + col2 DIV 65 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-7883
SELECT - col2 + col2 / 65 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT - + ( ( - col1 ) ) + + col0 AS col2 FROM tab0 AS cor0
----
110
132
180
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col2 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - ( col1 ) + col1 * ( col2 * + col1 ) AS col1 FROM tab2 AS cor0
----
10965
25916
90447
query I rowsort
SELECT ALL col1 + + col1 * - col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 32e6d0f63bf719b0a999c75379e75eca
query I rowsort
SELECT ALL - + ( col2 ) * + col0 + + ( col1 * - col0 ) + + 28 AS col1 FROM tab2 AS cor0
----
-378
-4317
-6602
query I rowsort
SELECT + 26 * + col2 FROM tab2 AS cor0
----
676
702
988
query I rowsort
SELECT 63 + col1 * col2 FROM tab1 AS cor0
----
1311
1467
633
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT col2 + 23 FROM tab0 AS cor0
----
105
24
56
query I rowsort
SELECT - 89 + - col2 * - col1 FROM tab2 cor0
----
1445
557
748
query I rowsort
SELECT ALL - - 20 * - cor0.col2 FROM tab1 AS cor0
----
-1080
-1140
-1920
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + - 97 * ( col2 ) + - col0 AS col2 FROM tab2 AS cor0
----
-2600
-2626
-3765
query I rowsort
SELECT ALL - ( cor0.col2 ) * 54 AS col2 FROM tab2, tab2 AS cor0, tab2 cor1
----
27 values hashing to b7361c3a622f5e8b1022897e36c779d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7899
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7899
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * col1 + + col2 + - col2 * ( + ( + col0 ) * cor0.col0 ) FROM tab2 AS cor0
----
-156624
-236474
-459
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 94 col1 FROM tab2
----
1598
2914
5546
query I rowsort
SELECT tab1.col0 + ( col1 * col2 ) AS col2 FROM tab1
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-7903
SELECT DISTINCT - col0 DIV 9 FROM tab2 AS cor0
----
-8
0
skipif mysql # not compatible
query I rowsort label-7903
SELECT DISTINCT - col0 / 9 FROM tab2 AS cor0
----
-8
0
query I rowsort
SELECT DISTINCT + col1 * - 9 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT DISTINCT + 80 + + col1 FROM tab2
----
111
139
97
query I rowsort
SELECT ALL 24 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 + col0 col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort
SELECT - ( col1 ) * CAST ( - col1 + - cor0.col2 AS REAL ) FROM tab0 AS cor0
----
10234
15743
9506
query I rowsort
SELECT col0 * + col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - - cor0.col1 + cor0.col1 * + col0 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT + + col1 + col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - col1 * col2 + 74 AS col2 FROM tab1 AS cor0
----
-1174
-1330
-496
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab2 cor2
----
3645 values hashing to 944e54872ec2718f5c1c2710e1806e36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
query I rowsort
SELECT ALL + 43 FROM tab0
----
43
43
43
query I rowsort
SELECT ALL + + cor0.col0 + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-7918
SELECT DISTINCT col0 * - 28 + - cor0.col0 DIV + col2 AS col2 FROM tab1 AS cor0
----
-1793
-2240
-84
skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT col0 * - 28 + - cor0.col0 / + col2 AS col2 FROM tab1 AS cor0
----
-1793
-2240
-84
query I rowsort
SELECT ALL + + col1 * 92 FROM tab1 cor0
----
1196
2392
920
query I rowsort
SELECT ALL col1 * ( + col0 ) + - cor0.col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL col2 - + col1 AS col2 FROM tab2
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + col2 + + col2 col0 FROM tab0 AS cor0
----
-41
121
23
query I rowsort
SELECT + 27 + - 62 * col2 AS col2 FROM tab2 AS cor0
----
-1585
-1647
-2329
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col0 FROM tab1, tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 * col1 + - tab2.col0 FROM tab2
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7926
SELECT + col0 DIV - col1 + + col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-7926
SELECT + col0 / - col1 + + col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - ( col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT - col1 * + col0 - - ( - col2 ) * - col1 * 92 FROM tab0 AS cor0
----
259032
5529
678405
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col0 * col0 ) col1 FROM tab1
----
4096
6400
9
query I rowsort
SELECT cor0.col0 + col2 * - col1 AS col0 FROM tab2 cor0
----
-1456
-567
-830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7931
SELECT + + 49 + + col1 DIV + col2 AS col1 FROM tab0 AS cor0
----
146
50
51
skipif mysql # not compatible
query I rowsort label-7931
SELECT + + 49 + + col1 / + col2 AS col1 FROM tab0 AS cor0
----
146
50
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7932
SELECT CAST( 24 AS SIGNED ) * col2 AS col1 FROM tab2
----
624
648
912
skipif mysql # not compatible
query I rowsort label-7932
SELECT CAST ( 24 AS INTEGER ) * col2 AS col1 FROM tab2
----
624
648
912
query I rowsort
SELECT DISTINCT - ( col2 ) * col1 * 85 FROM tab2
----
-130390
-54910
-71145
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT ALL 10 * col2 AS col0 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT + cor0.col1 * col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab2 AS cor0
----
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + col2 col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col2 + + col1 * col2 - col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col1 + + col1 * + col1 FROM tab2 AS cor0
----
272
3422
930
query I rowsort
SELECT + tab0.col1 + - col1 * - 67 FROM tab0
----
5848
6188
6596
query I rowsort
SELECT ALL tab2.col2 + + tab2.col1 * - 12 FROM tab2
----
-166
-345
-682
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col1 FROM tab2
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7944
SELECT - 76 * + col0 + - CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7944
SELECT - 76 * + col0 + - CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col0 + + col0 + col0 * ( col2 ) * ( col2 + col1 ) AS col2 FROM tab0
----
1262554
3430
94248
query I rowsort
SELECT - 77 * - col1 FROM tab2 cor0
----
1309
2387
4543
query I rowsort
SELECT ALL - + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT DISTINCT 72 + - cor0.col1 FROM tab1 cor0
----
46
59
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col0 col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL - + col0 + + cor0.col1 * col1 * - 54 FROM tab2 AS cor0
----
-15685
-188052
-51901
query I rowsort
SELECT DISTINCT - col1 + col2 * col0 + + col0 FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT col1 - - ( col2 ) * - col1 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT + 4 FROM tab0, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) + + col1 * col0 * 88 - + col0 col2 FROM tab1 AS cor0
----
56199
6807
91344
query I rowsort
SELECT col0 + col0 + + col1 AS col2 FROM tab0
----
134
167
269
query I rowsort
SELECT ALL col2 * col2 + - col2 * col2 + 32 FROM tab2 AS cor0
----
32
32
32
query I rowsort
SELECT DISTINCT 31 * cor0.col2 FROM tab2 AS cor0
----
1178
806
837
query I rowsort
SELECT DISTINCT - - 81 * col2 * col2 FROM tab1 cor0
----
236196
263169
746496
query I rowsort
SELECT + col2 * ( - cor0.col1 ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 * - col1 + + cor0.col2 + col0 col0 FROM tab1 AS cor0
----
-21
-519
-864
query I rowsort
SELECT ALL + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7962
SELECT + + cor0.col1 * - col0 + - col1 * CAST( col2 AS SIGNED ) + col2 AS col2 FROM tab0 cor0
----
-15479
-3491
-4869
skipif mysql # not compatible
query I rowsort label-7962
SELECT + + cor0.col1 * - col0 + - col1 * CAST ( col2 AS INTEGER ) + col2 AS col2 FROM tab0 cor0
----
-15479
-3491
-4869
query I rowsort
SELECT - + ( col1 ) + col0 - col1 FROM tab2 AS cor0
----
-40
-55
45
query I rowsort
SELECT 23 + - cor0.col1 * - col2 AS col0 FROM tab1 AS cor0
----
1271
1427
593
query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab1 cor0
----
-27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7966
SELECT ALL + CAST( NULL AS SIGNED ) + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL + CAST ( NULL AS INTEGER ) + + cor0.col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 76 FROM tab2 cor0
----
-76
-76
-76
query I rowsort
SELECT - 78 + col0 FROM tab0
----
-43
-54
11
query I rowsort
SELECT ALL col2 + + col1 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-7970
SELECT DISTINCT - col1 + - 65 DIV col0 FROM tab0 AS cor0
----
-88
-91
-98
skipif mysql # not compatible
query I rowsort label-7970
SELECT DISTINCT - col1 + - 65 / col0 FROM tab0 AS cor0
----
-88
-91
-98
query I rowsort
SELECT cor0.col2 + + 31 * col1 FROM tab2 AS cor0
----
1855
565
988
query I rowsort
SELECT + - 85 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
query I rowsort
SELECT + 70 + col0 * 46 FROM tab0
----
1174
1680
4164
query I rowsort
SELECT ALL - col1 * 44 AS col1 FROM tab1
----
-1144
-440
-572
query I rowsort
SELECT ALL - col0 + - col0 * col1 AS col1 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT + - cor0.col2 FROM tab1 cor0
----
-54
-57
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7977
SELECT DISTINCT - - col1 * + CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT - - col1 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + - col2 + - 60 AS col2 FROM tab1 AS cor0
----
-114
-117
-156
query I rowsort
SELECT DISTINCT + col1 * - col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7981
SELECT ALL col0 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-7981
SELECT ALL col0 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + 73 col1 FROM tab1 AS cor0
----
127
130
169
onlyif mysql # use DIV operator for integer division
query I rowsort label-7983
SELECT DISTINCT + + cor0.col2 * col0 DIV + ( + col0 ) + + col1 FROM tab1 AS cor0
----
109
67
80
skipif mysql # not compatible
query I rowsort label-7983
SELECT DISTINCT + + cor0.col2 * col0 / + ( + col0 ) + + col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col1 * 70 - col2 FROM tab2 AS cor0
----
1152
2143
4104
onlyif mysql # use DIV operator for integer division
query I rowsort label-7985
SELECT col2 DIV + 42 col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7985
SELECT col2 / + 42 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - col0 * 46 FROM tab1 AS cor0
----
-138
-2944
-3680
query I rowsort
SELECT ALL col0 + + ( - col1 + + col2 ) * - cor0.col0 AS col2 FROM tab1 cor0
----
-2944
-6560
-81
query I rowsort
SELECT - - cor0.col2 * - col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7989
SELECT DISTINCT + + cor0.col0 + CAST( - cor0.col1 AS SIGNED ) * + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + + cor0.col0 + CAST ( - cor0.col1 AS INTEGER ) * + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - col1 * 80 + cor0.col0 AS col2 FROM tab1 AS cor0
----
-2077
-736
-960
query I rowsort
SELECT DISTINCT - col0 * + col0 AS col0 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT + ( col2 ) + + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT DISTINCT - 82 + + col0 AS col2 FROM tab2
----
-3
-4
-75
onlyif mysql # use DIV operator for integer division
query I rowsort label-7994
SELECT - col1 * 40 + - col0 DIV cor0.col0 AS col2 FROM tab0 AS cor0
----
-3441
-3641
-3881
skipif mysql # not compatible
query I rowsort label-7994
SELECT - col1 * 40 + - col0 / cor0.col0 AS col2 FROM tab0 AS cor0
----
-3441
-3641
-3881
query I rowsort
SELECT - + 50 * - 71 AS col2 FROM tab0 AS cor0
----
3550
3550
3550
query I rowsort
SELECT DISTINCT col1 + - ( col0 ) * 61 FROM tab2 AS cor0
----
-396
-4699
-4802
query I rowsort
SELECT + ( + col2 ) * + col0 - ( - cor0.col0 ) * + col1 FROM tab2 AS cor0
----
406
4345
6630
query I rowsort
SELECT ALL + 3 * 71 FROM tab0 AS cor0
----
213
213
213
query I rowsort
SELECT DISTINCT + 7 + - cor0.col0 AS col0 FROM tab2 AS cor0
----
-71
-72
0
query I rowsort
SELECT + 5 + - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-4
12
39
query I rowsort
SELECT + - col0 + col1 * col2 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL 76 - 12 * + col1 FROM tab2 AS cor0
----
-128
-296
-632
query I rowsort
SELECT DISTINCT + ( + col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
-2
-62
query I rowsort
SELECT + 10 * col0 + cor0.col0 * 27 FROM tab0 AS cor0
----
1295
3293
888
query I rowsort
SELECT ALL cor0.col2 + + col0 * col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT DISTINCT col0 * col0 + - col2 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT - cor1.col1 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 * 35 + + 91 AS col2 FROM tab1 AS cor0
----
102151
113806
322651
query I rowsort
SELECT DISTINCT 6 + col0 * col2 FROM tab0 AS cor0
----
41
7304
798
query I rowsort
SELECT + 79 * col1 + ( - col2 ) FROM tab1 AS cor0
----
2000
733
931
query I rowsort
SELECT DISTINCT tab1.col0 FROM tab1, tab2 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-8012
SELECT 28 DIV tab0.col0 + tab0.col2 AS col2 FROM tab0
----
1
34
82
skipif mysql # not compatible
query I rowsort label-8012
SELECT 28 / tab0.col0 + tab0.col2 AS col2 FROM tab0
----
1
34
82
query I rowsort
SELECT ALL + 64 * - col2 + cor0.col0 FROM tab1 AS cor0
----
-3453
-3584
-6064
query I rowsort
SELECT - col2 * + col2 + ( ( + col1 ) ) AS col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT DISTINCT + + 19 - col1 FROM tab2 AS cor0
----
-12
-40
2
query I rowsort
SELECT ALL - - cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 43 + col1 AS col1 FROM tab2 cor0
----
102
60
74
query I rowsort
SELECT + cor0.col1 * - col0 + + col0 * col2 AS col0 FROM tab0 AS cor0
----
-1272
-3360
-801
query I rowsort
SELECT col2 + col2 * + ( + col0 ) - col0 FROM tab2 AS cor0
----
1976
209
2961
query I rowsort
SELECT - cor0.col0 + - col0 * + 14 + + 64 * cor0.col0 * - col2 FROM tab1 AS cor0
----
-10413
-234432
-492720
query I rowsort
SELECT - 28 + + col1 FROM tab2 AS cor0
----
-11
3
31
query I rowsort
SELECT + - col2 * 71 + col2 FROM tab0 cor0
----
-2310
-5740
-70
query I rowsort
SELECT + - col1 * col0 + 32 * col1 FROM tab2 AS cor0
----
-2714
-799
775
query I rowsort
SELECT + cor0.col2 * + 91 + col2 FROM tab0 cor0
----
3036
7544
92
query I rowsort
SELECT - - 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT DISTINCT - ( - 71 ) FROM tab2, tab2 AS cor0, tab2 AS cor1
----
71
query I rowsort
SELECT - 29 * + col0 FROM tab2
----
-203
-2262
-2291
query I rowsort
SELECT + - ( col1 ) - + col0 AS col1 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - 1 * - cor0.col1 - - col2 * + 7 AS col2 FROM tab0 AS cor0
----
104
317
665
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 col2 FROM tab2 AS cor0
----
49
6084
6241
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to b803f2d602a28da5cf35ddc7c7fa2eeb
query I rowsort
SELECT ALL 57 * col0 + - col2 FROM tab2
----
372
4420
4465
query I rowsort
SELECT ALL + tab2.col2 + ( - col0 ) * + col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT + ( col0 ) + col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL 38 + - tab2.col0 FROM tab2
----
-40
-41
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8036
SELECT CAST( NULL AS SIGNED ) + ( + col2 + col2 ) * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8036
SELECT CAST ( NULL AS INTEGER ) + ( + col2 + col2 ) * - col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * col0 + col1 - + col0 FROM tab1 AS cor0
----
-139
-3702
-7747
query I rowsort
SELECT ALL + cor0.col2 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT 17 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 AS cor2
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT col0 * - col1 * + tab1.col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT ALL 76 AS col2 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to a8a6c4c5005303c62d4e50b6c96b584f
query I rowsort
SELECT - col0 * + ( + col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8044
SELECT - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8044
SELECT - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL - col2 + + tab2.col2 * + col0 + col1 FROM tab2
----
193
2061
2981
query I rowsort
SELECT + + ( - 54 ) + + col2 FROM tab0 AS cor0
----
-21
-53
28
query I rowsort
SELECT - 25 + + col1 * - col2 FROM tab1 AS cor0
----
-1273
-1429
-595
onlyif mysql # use DIV operator for integer division
query I rowsort label-8048
SELECT DISTINCT - 46 DIV - col0 + col0 AS col1 FROM tab2 AS cor0
----
13
78
79
skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT - 46 / - col0 + col0 AS col1 FROM tab2 AS cor0
----
13
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 30 col0 FROM tab1 AS cor0
----
-30
-30
-30
query I rowsort
SELECT DISTINCT - 43 * - cor0.col2 + - col0 FROM tab2 AS cor0
----
1040
1154
1555
query I rowsort
SELECT + 5 AS col2 FROM tab0
----
5
5
5
query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT + cor0.col0 * col0 * + col1 FROM tab0 cor0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col2 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
-23
query I rowsort
SELECT - col0 * + 4 + col2 FROM tab1 AS cor0
----
-199
-224
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col1 * cor0.col2 col2 FROM tab0 cor0
----
2814
62
7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 55 col1 FROM tab0 AS cor0
----
4730
5005
5335
query I rowsort
SELECT + cor0.col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT col0 + + ( + col0 ) * cor0.col1 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + col0 * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT 91 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
onlyif mysql # use DIV operator for integer division
query I rowsort label-8062
SELECT tab1.col1 DIV + col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-8062
SELECT tab1.col1 / + col0 FROM tab1
----
0
0
8
query I rowsort
SELECT - col2 + + 58 FROM tab2
----
20
31
32
query I rowsort
SELECT + col0 + ( - col2 ) + col0 * - col1 FROM tab0
----
-2073
-3361
-8092
query I rowsort
SELECT + cor0.col0 * - col0 - col1 AS col2 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT + ( cor0.col1 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT + 0 * 69 AS col2 FROM tab0, tab0 cor0
----
0
query I rowsort
SELECT ALL + + col2 + col1 * col1 FROM tab1 cor0
----
157
265
730
query I rowsort
SELECT DISTINCT - + col1 + + 15 * + col1 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT - + cor0.col0 * - 13 * col2 FROM tab2 AS cor0
----
2457
26364
39026
query I rowsort
SELECT DISTINCT + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + - col2 * col1 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 + - col0 * - col2 FROM tab0 AS cor0
----
1225
1344
15130
query I rowsort
SELECT - + cor0.col0 * + col1 + col0 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT ( 69 ) FROM tab1, tab2 AS cor0
----
69
query I rowsort
SELECT ALL + - 82 * - col2 + - col1 FROM tab2 AS cor0
----
2073
2183
3099
query I rowsort
SELECT ALL 17 * 74 FROM tab0 AS cor0
----
1258
1258
1258
query I rowsort
SELECT ALL ( 8 ) + col1 + 78 * col1 FROM tab2 cor0
----
1351
2457
4669
onlyif mysql # use DIV operator for integer division
query I rowsort label-8080
SELECT + + col2 DIV + ( - col1 ) - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-8080
SELECT + + col2 / + ( - col1 ) - cor0.col0 FROM tab2 AS cor0
----
-7
-78
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-8081
SELECT ALL ( - col2 ) * cor0.col0 + 62 DIV + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7298
-791
27
skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL ( - col2 ) * cor0.col0 + 62 / + cor0.col2 AS col0 FROM tab0 AS cor0
----
-7298
-791
27
query I rowsort
SELECT DISTINCT - col1 + col2 - + col0 FROM tab1
----
-17
25
3
query I rowsort
SELECT col1 + ( 23 ) - tab0.col0 FROM tab0
----
25
85
85
query I rowsort
SELECT + tab1.col0 - - col2 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab2, tab0 AS cor0
----
44
query I rowsort
SELECT DISTINCT - col0 - - col2 FROM tab1
----
-7
16
51
query I rowsort
SELECT DISTINCT col1 * col2 - 55 AS col1 FROM tab1
----
1193
1349
515
query I rowsort
SELECT - cor0.col2 * + cor0.col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - + 39 FROM tab0 AS cor0
----
-39
query I rowsort
SELECT DISTINCT col1 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL + col1 * cor0.col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + 25 * + col1 FROM tab2 AS cor0
----
1475
425
775
query I rowsort
SELECT - - 81 * - col2 AS col2 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT 67 * col1 AS col1 FROM tab1 AS cor0
----
1742
670
871
query I rowsort
SELECT ALL col0 + + col1 * col2 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - 71 FROM tab1 AS cor0
----
-71
-71
-71
query I rowsort
SELECT cor0.col1 + col0 * col1 FROM tab2 AS cor0
----
1360
248
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8098
SELECT ALL - CAST( 35 + col0 * - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL - CAST ( 35 + col0 * - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT DISTINCT ( + 51 ) * col2 AS col1 FROM tab1
----
2754
2907
4896
query I rowsort
SELECT DISTINCT col0 * 54 AS col0 FROM tab2
----
378
4212
4266
query I rowsort
SELECT DISTINCT tab0.col2 * - 86 FROM tab0
----
-2838
-7052
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-8103
SELECT ALL + col1 DIV 66 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + col1 / 66 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab2, tab0 AS cor0
----
61
query I rowsort
SELECT col1 + + col2 * + col0 AS col0 FROM tab0 cor0
----
132
7389
878
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8106
SELECT col0 * col0 / CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8106
SELECT col0 * col0 / CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + 10 * + col0 AS col0 FROM tab1 AS cor0
----
-30
-640
-800
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8109
SELECT ALL - col0 DIV - cor0.col0 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4095
-6399
-8
skipif mysql # not compatible
query I rowsort label-8109
SELECT ALL - col0 / - cor0.col0 + col0 * - col0 AS col0 FROM tab1 AS cor0
----
-4095
-6399
-8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * col1 + + ( + 62 ) col1 FROM tab1 cor0
----
1310
1466
632
query I rowsort
SELECT - 78 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c4f3c63f98c3c08f2848f46850a476d4
onlyif mysql # use DIV operator for integer division
query I rowsort label-8112
SELECT ALL + 73 DIV col2 AS col0 FROM tab0 AS cor0
----
0
2
73
skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL + 73 / col2 AS col0 FROM tab0 AS cor0
----
0
2
73
query I rowsort
SELECT - - 23 * col1 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT DISTINCT + 83 * col1 * col1 FROM tab0 cor0
----
613868
687323
780947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) * 16 col2 FROM tab2 AS cor0
----
112
1248
1264
query I rowsort
SELECT ALL - col0 * 60 + col2 + 48 * 33 FROM tab0
----
-3674
-515
177
query I rowsort
SELECT + col2 + - col1 AS col1 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-8118
SELECT + col2 DIV - cor0.col1 + - 57 * + col0 col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8118
SELECT + col2 / - cor0.col1 + - 57 * + col0 col0 FROM tab0 AS cor0
----
-1368
-1995
-5073
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8119
SELECT + col1 * + CAST( NULL AS SIGNED ) + + 74 * + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8119
SELECT + col1 * + CAST ( NULL AS INTEGER ) + + 74 * + col1 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + tab0.col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - col1 * tab2.col1 FROM tab2
----
-289
-3481
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col2 col1 FROM tab2
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8123
SELECT DISTINCT + cor0.col0 DIV + cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8123
SELECT DISTINCT + cor0.col0 / + cor0.col2 FROM tab0, tab2, tab1 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8124
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
NULL
query I rowsort
SELECT 22 + col1 AS col1 FROM tab1
----
32
35
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8126
SELECT - tab2.col1 DIV 43 + + 31 FROM tab2, tab1 cor0
----
9 values hashing to 3cdd657e0e71bdead23d5da788aaaea8
skipif mysql # not compatible
query I rowsort label-8126
SELECT - tab2.col1 / 43 + + 31 FROM tab2, tab1 cor0
----
9 values hashing to 3cdd657e0e71bdead23d5da788aaaea8
query I rowsort
SELECT + - col1 + col0 - col0 AS col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + 91 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT ALL tab2.col1 - + 70 FROM tab2
----
-11
-39
-53
query I rowsort
SELECT ALL + 0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + + 91 * col0 - col1 * + col0 AS col2 FROM tab2 AS cor0
----
2470
393
5808
query I rowsort
SELECT ALL col0 * col2 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT 11 + + col0 AS col1 FROM tab2 AS cor0
----
18
89
90
query I rowsort
SELECT ( + col0 ) - + col2 * col0 * cor0.col2 FROM tab2 AS cor0
----
-113997
-5096
-52650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * 65 + col2 * cor0.col2 col1 FROM tab0 AS cor0
----
-259
6464
829
query I rowsort
SELECT tab0.col0 * - ( + col0 ) * col0 + - 92 * col0 AS col2 FROM tab0
----
-16032
-46095
-713157
query I rowsort
SELECT ALL + col2 - col1 * - col2 * col2 FROM tab0
----
611966
93687
98
query I rowsort
SELECT DISTINCT col0 + + tab1.col2 - ( col0 ) * - col2 * - col0 FROM tab1
----
-233351
-429
-614224
query I rowsort
SELECT - col2 + col1 * - col0 AS col1 FROM tab1
----
-1136
-132
-697
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT + col2 DIV ( tab2.col1 ) FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8140
SELECT + col2 / ( tab2.col1 ) FROM tab2
----
0
0
2
query I rowsort
SELECT col1 * ( col1 ) AS col1 FROM tab0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT - ( + col2 ) * col1 + col0 * - col2 FROM tab1
----
-1566
-4218
-8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-8143
SELECT - ( tab2.col0 + - col1 ) DIV col1 AS col0 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-8143
SELECT - ( tab2.col0 + - col1 ) / col1 AS col0 FROM tab2
----
-3
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8144
SELECT col0 DIV tab2.col1 AS col2 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8144
SELECT col0 / tab2.col1 AS col2 FROM tab2
----
0
1
4
query I rowsort
SELECT + + col1 * col1 * + col2 + ( 38 + + col0 ) * + col1 FROM tab2 AS cor0
----
12971
27342
97350
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8146
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 75 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8146
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 75 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT 13 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
104
110
99
query I rowsort
SELECT DISTINCT + col2 * 99 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
2548
2646
3724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8149
SELECT - CAST( NULL AS SIGNED ) / + col2 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8149
SELECT - CAST ( NULL AS INTEGER ) / + col2 + - cor0.col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8150
SELECT + - CAST( NULL AS SIGNED ) * - cor0.col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8150
SELECT + - CAST ( NULL AS INTEGER ) * - cor0.col1 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 32 + col1 AS col0 FROM tab2 AS cor0
----
49
63
91
query I rowsort
SELECT DISTINCT + ( + 88 ) FROM tab0 AS cor0
----
88
query I rowsort
SELECT ALL + 74 * 28 * - col1 AS col0 FROM tab0 cor0
----
-178192
-188552
-200984
query I rowsort
SELECT DISTINCT + + col0 + - col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT tab0.col1 * cor0.col2 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to e5422173e1caaeeb02bbae09b3f4e2fd
query I rowsort
SELECT + + cor0.col1 - col1 * col2 AS col1 FROM tab1 cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - ( - col0 ) + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL + 9 + col2 FROM tab1 cor0
----
105
63
66
query I rowsort
SELECT + cor0.col2 FROM tab2, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT cor0.col1 * col1 * col1 AS col2 FROM tab2 AS cor0
----
205379
29791
4913
query I rowsort
SELECT col2 + col2 * - 59 AS col1 FROM tab2 AS cor0
----
-1508
-1566
-2204
query I rowsort
SELECT - 95 - + col1 * col1 AS col1 FROM tab1 AS cor0
----
-195
-264
-771
onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT col1 + + cor0.col0 DIV - 71 AS col0 FROM tab2 cor0
----
16
31
58
skipif mysql # not compatible
query I rowsort label-8163
SELECT col1 + + cor0.col0 / - 71 AS col0 FROM tab2 cor0
----
16
31
58
query I rowsort
SELECT DISTINCT + + col2 * col0 + cor0.col0 FROM tab0 AS cor0
----
70
7387
816
skipif mysql # not compatible
query I rowsort
SELECT + + col0 + CAST ( + col2 AS REAL ) * col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8166
SELECT DISTINCT - cor0.col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8166
SELECT DISTINCT - cor0.col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT col1 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - cor0.col0 * 32 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT DISTINCT - col1 * col1 + + col1 + col0 * col0 FROM tab0 AS cor0
----
-269
-6734
-8087
query I rowsort
SELECT ALL + + col1 * + 29 - - cor0.col2 * col2 FROM tab1 AS cor0
----
3539
3670
9593
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8171
SELECT ALL col2 * CAST( 55 + col2 AS SIGNED ) FROM tab1 AS cor0
----
14496
5886
6384
skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL col2 * CAST ( 55 + col2 AS INTEGER ) FROM tab1 AS cor0
----
14496
5886
6384
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8172
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8172
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 55 ) + col1 col1 FROM tab2 AS cor0
----
114
72
86
query I rowsort
SELECT DISTINCT + cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
10
13
26
query I rowsort
SELECT DISTINCT + cor0.col1 * - cor0.col1 FROM tab0, tab0 cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8176
SELECT - CAST( ( + col0 ) AS SIGNED ) + 11 * + 35 FROM tab0 AS cor0
----
296
350
361
skipif mysql # not compatible
query I rowsort label-8176
SELECT - CAST ( ( + col0 ) AS INTEGER ) + 11 * + 35 FROM tab0 AS cor0
----
296
350
361
query I rowsort
SELECT - ( + 11 ) FROM tab2 AS cor0
----
-11
-11
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + 5 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
query I rowsort
SELECT + cor1.col1 FROM tab1, tab2 AS cor0, tab2 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8180
SELECT - col2 * - CAST( NULL AS SIGNED ) - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8180
SELECT - col2 * - CAST ( NULL AS INTEGER ) - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 - col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + cor0.col1 + col2 + + cor0.col2 * + col1 FROM tab0 AS cor0
----
195
2957
7635
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - cor0.col2 col0 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + cor0.col0 col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL cor0.col1 * ( + cor0.col0 ) + - cor0.col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + col1 * col1 * col2 + col2 + - col1 FROM tab0 AS cor0
----
244015
679033
9313
query I rowsort
SELECT - - col2 * + col0 - 9 FROM tab1 AS cor0
----
153
3639
7671
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8188
SELECT - + col2 * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8188
SELECT - + col2 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8189
SELECT - col0 * ( col1 ) + col0 * + CAST( + col0 AS SIGNED ) + - col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8189
SELECT - col0 * ( col1 ) + col0 * + CAST ( + col0 AS INTEGER ) + - col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + ( ( col1 ) ) + - 30 FROM tab1 AS cor0
----
-113
-58
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8191
SELECT ALL col0 DIV + tab0.col0 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL col0 / + tab0.col0 FROM tab0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col1 col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT - col0 * - 73 AS col0 FROM tab1 AS cor0
----
219
4672
5840
query I rowsort
SELECT DISTINCT 45 AS col0 FROM tab2, tab0 AS cor0
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 col1 FROM tab1
----
100
169
676
query I rowsort
SELECT DISTINCT 85 + - 74 AS col2 FROM tab0, tab1 AS cor0
----
11
query I rowsort
SELECT DISTINCT + ( + ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + ( + 80 ) + col0 FROM tab0 AS cor0
----
104
115
169
query I rowsort
SELECT ALL + col1 + - 9 AS col0 FROM tab1 AS cor0
----
1
17
4
query I rowsort
SELECT + col0 + 71 + - col2 AS col2 FROM tab2
----
112
123
51
query I rowsort
SELECT ALL + tab1.col0 - col0 AS col0 FROM tab1
----
0
0
0
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1, tab0 AS cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
onlyif mysql # use DIV operator for integer division
query I rowsort label-8203
SELECT col1 DIV - 4 FROM tab0
----
-21
-22
-24
skipif mysql # not compatible
query I rowsort label-8203
SELECT col1 / - 4 FROM tab0
----
-21
-22
-24
onlyif mysql # use DIV operator for integer division
query I rowsort label-8204
SELECT ALL col2 + + col2 DIV + col1 FROM tab2
----
26
27
40
skipif mysql # not compatible
query I rowsort label-8204
SELECT ALL col2 + + col2 / + col1 FROM tab2
----
26
27
40
query I rowsort
SELECT ALL cor0.col2 * col1 * 75 + + col0 FROM tab2 cor0
----
115128
48529
62782
query I rowsort
SELECT + tab2.col2 + col0 * + col0 AS col0 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col2 * col2 * col0 + + col1 * col1 AS col1 FROM tab1
----
208036
737449
9424
query I rowsort
SELECT ALL - col2 * - col2 - + col1 * col2 FROM tab2
----
-108
-858
798
query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 ) IN ( - col0 * - col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + tab0.col2 + col1 * + col1 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( NULL ) <= ( col0 * col2 )
----
query I rowsort
SELECT DISTINCT col2 * col0 + + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT DISTINCT col0 * - col2 AS col2 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT + col1 - col0 * - tab2.col0 AS col1 FROM tab2 WHERE NULL <= NULL
----
query I rowsort
SELECT tab0.col0 + + col2 AS col0 FROM tab0
----
171
36
57
query III rowsort
SELECT * FROM tab0 WHERE - col0 BETWEEN + col1 AND ( NULL )
----
query I rowsort
SELECT ALL - col2 * - col0 - + tab2.col2 * - tab2.col0 FROM tab2
----
378
4056
6004
onlyif mysql # use DIV operator for integer division
query I rowsort label-8218
SELECT ALL 39 DIV + col2 AS col0 FROM tab0
----
0
1
39
skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL 39 / + col2 AS col0 FROM tab0
----
0
1
39
query I rowsort
SELECT - + col2 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT - col0 + - col0 * - 35 * - col1 FROM tab2
----
-161148
-47084
-7602
query I rowsort
SELECT DISTINCT col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT - col2 * + col0 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT ALL + col1 + - 22 FROM tab1 AS cor0
----
-12
-9
4
query I rowsort
SELECT ALL + col1 + + col1 * ( cor0.col0 + col2 ) AS col1 FROM tab1 AS cor0
----
1220
1508
2301
query I rowsort
SELECT 13 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT + col1 * - col2 + ( - col2 ) FROM tab1
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-8227
SELECT + col1 DIV + 73 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8227
SELECT + col1 / + 73 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - + col0 * + 41 + ( + col0 ) AS col1 FROM tab0 cor0
----
-1400
-3560
-960
query I rowsort
SELECT DISTINCT - 48 * col0 + - col2 * + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-11734
-1777
-3990
query I rowsort
SELECT ALL + ( 94 ) FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT ALL ( + col1 ) * - col0 FROM tab0 cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT DISTINCT + 54 + col0 DIV cor0.col2 AS col1 FROM tab0 AS cor0
----
54
55
89
skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT + 54 + col0 / cor0.col2 AS col1 FROM tab0 AS cor0
----
54
55
89
query I rowsort
SELECT + 51 + 54 FROM tab1 cor0
----
105
105
105
query I rowsort
SELECT DISTINCT ( - col1 ) * + col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab1 AS cor2
----
3645 values hashing to 59bb9dc93b6f10de841a7db8eb3857e9
query I rowsort
SELECT ALL - 58 + - col0 FROM tab1 AS cor0
----
-122
-138
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8237
SELECT - CAST( + 25 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-25
-25
-25
skipif mysql # not compatible
query I rowsort label-8237
SELECT - CAST ( + 25 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-25
-25
-25
query I rowsort
SELECT - col2 * col2 + col2 FROM tab2 AS cor0
----
-1406
-650
-702
query I rowsort
SELECT ALL + 61 + col1 AS col1 FROM tab1 cor0
----
71
74
87
query I rowsort
SELECT DISTINCT col0 * col2 + - 87 * - col0 FROM tab1 AS cor0
----
14640
423
9216
query I rowsort
SELECT DISTINCT + 60 * col1 FROM tab1 AS cor0
----
1560
600
780
query I rowsort
SELECT - 9 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT ALL + col1 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT DISTINCT + col0 * - col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + + 13 * col0 + - cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-2526
-6305
358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 col1 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 + col2 * col2 col2 FROM tab1 AS cor0
----
2914
3247
9214
query I rowsort
SELECT DISTINCT + col1 - col2 * ( col1 ) AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-8249
SELECT DISTINCT + - col2 + col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
-25
-27
-34
skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + - col2 + col0 / + col1 AS col1 FROM tab2 AS cor0
----
-25
-27
-34
query I rowsort
SELECT ( col0 * + col2 ) - col0 AS col1 FROM tab1
----
159
3584
7600
query I rowsort
SELECT ALL + 79 + - 33 AS col0 FROM tab1
----
46
46
46
query I rowsort
SELECT + ( - ( col0 ) ) AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL 53 + col0 FROM tab0
----
142
77
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8254
SELECT DISTINCT + CAST( 65 * col0 AS SIGNED ) + - col1 FROM tab0
----
1474
2178
5694
skipif mysql # not compatible
query I rowsort label-8254
SELECT DISTINCT + CAST ( 65 * col0 AS INTEGER ) + - col1 FROM tab0
----
1474
2178
5694
query I rowsort
SELECT 62 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 4911b1417a3797d23dd8f38b6ed05c1b
query I rowsort
SELECT ALL + col0 * cor0.col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col0 * + 52 * col1 AS col0 FROM tab2
----
11284
239304
69836
query I rowsort
SELECT - col0 + - col0 * 93 + col2 FROM tab2 AS cor0
----
-631
-7306
-7388
query I rowsort
SELECT ALL col0 * col1 - 99 FROM tab1 AS cor0
----
-21
541
941
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + + col1 + + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL 42 FROM tab1, tab0 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
query I rowsort
SELECT - col1 + ( cor0.col1 + col1 ) * + ( col1 ) * + 50 FROM tab1 AS cor0
----
16887
67574
9990
onlyif mysql # use DIV operator for integer division
query I rowsort label-8264
SELECT col1 * - col1 + col1 DIV - ( - col2 * col1 + 13 ) FROM tab0 cor0
----
-7396
-8281
-9408
skipif mysql # not compatible
query I rowsort label-8264
SELECT col1 * - col1 + col1 / - ( - col2 * col1 + 13 ) FROM tab0 cor0
----
-7396
-8281
-9408
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8265
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8265
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8266
SELECT - col0 + - 1 DIV + col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-8266
SELECT - col0 + - 1 / + col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + ( - col1 ) AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8268
SELECT DISTINCT - col1 + 20 DIV - 85 FROM tab0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT - col1 + 20 / - 85 FROM tab0
----
-86
-91
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 * + col0 col1 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT - 35 - tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 553e80a948704f0418aa78aa2e7cf616
query I rowsort
SELECT DISTINCT col0 * + col2 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - col1 - + col0 AS col2 FROM tab1 cor0
----
-29
-74
-93
query I rowsort
SELECT DISTINCT - + 22 FROM tab0 AS cor0
----
-22
query I rowsort
SELECT - + 72 FROM tab0 AS cor0
----
-72
-72
-72
query I rowsort
SELECT ALL + 50 AS col0 FROM tab2 AS cor0
----
50
50
50
query I rowsort
SELECT ALL + 72 * cor0.col0 AS col1 FROM tab0 cor0
----
1728
2520
6408
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT DISTINCT - 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 ALL 61 + col0 col2 FROM tab0 AS cor0
----
150
85
96
query I rowsort
SELECT ALL + - col1 * col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT col0 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 + + cor0.col1 + - col2 AS col0 FROM tab0 AS cor0
----
131
77
98
query I rowsort
SELECT + col1 * cor0.col0 + col0 AS col0 FROM tab2 cor0
----
1422
224
4680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8284
SELECT ALL - col2 DIV + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - col2 / + col2 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 92 + col0 * + ( col1 ) FROM tab2
----
125
1251
4510
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 71 col1 FROM tab2 AS cor0
----
-1846
-1917
-2698
query I rowsort
SELECT 24 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT - 93 AS col1 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ea79c61f7a02d25805171f5e85229fba
onlyif mysql # use DIV operator for integer division
query I rowsort label-8289
SELECT + tab0.col2 * - col2 DIV col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8289
SELECT + tab0.col2 * - col2 / col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - col2 * - col1 * + col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + col2 + col0 + col1 FROM tab1
----
131
189
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * - ( 10 + cor0.col2 ) * - col1 col2 FROM tab1 AS cor0
----
132288
38190
89856
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 97 col0 FROM tab1
----
-1261
-2522
-970
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - ( - col2 ) * col0 col1 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8295
SELECT ALL col2 * CAST( - 87 AS SIGNED ) FROM tab2 AS cor0
----
-2262
-2349
-3306
skipif mysql # not compatible
query I rowsort label-8295
SELECT ALL col2 * CAST ( - 87 AS INTEGER ) FROM tab2 AS cor0
----
-2262
-2349
-3306
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2, tab2 cor1
----
972 values hashing to 163d7732097d78f1cda7f65c2cea5a08
query I rowsort
SELECT - 94 + col2 AS col0 FROM tab2
----
-56
-67
-68
query I rowsort
SELECT ALL 9 + - col0 FROM tab1 AS cor0
----
-55
-71
6
query I rowsort
SELECT - - col0 + col1 * + col0 * col2 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT ALL col0 * 39 FROM tab2 AS cor0
----
273
3042
3081
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 DISTINCT + 9 - - col2 AS col2 FROM tab1 AS cor0
----
105
63
66
query I rowsort
SELECT + + 59 + + col0 FROM tab0 AS cor0
----
148
83
94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8304
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 8 + ( + col2 + ( + ( col1 ) ) ) * 99 FROM tab1 AS cor0
----
10799
6641
7928
query I rowsort
SELECT ALL - ( + col0 ) + ( col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - cor1.col2 FROM tab2, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT - 25 + col1 * - 2 FROM tab1 AS cor0
----
-45
-51
-77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8309
SELECT + + CAST( NULL AS SIGNED ) * cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8309
SELECT + + CAST ( NULL AS INTEGER ) * cor0.col0 + - col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + 70 * col1 AS col1 FROM tab0 AS cor0
----
5996
6281
6755
query I rowsort
SELECT DISTINCT - ( 57 + col2 ) * - col1 AS col1 FROM tab2
----
1615
2604
4897
query I rowsort
SELECT DISTINCT + + col1 * col0 * col2 AS col2 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + col1 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT + 45 FROM tab1 AS cor0
----
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8315
SELECT DISTINCT + + CAST( + col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + + CAST ( + col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col1 * col1 * col2 AS col2 FROM tab2 AS cor0
----
10982
25947
90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + col0 + 63 * col1 col1 FROM tab0 AS cor0
----
5466
5911
6181
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT col2 * col0 AS col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - + ( col0 ) * ( col2 + - col1 ) FROM tab1 AS cor0
----
-3008
-6640
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-8321
SELECT DISTINCT col1 DIV col0 col2 FROM tab0 cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8321
SELECT DISTINCT col1 / col0 col2 FROM tab0 cor0
----
1
2
3
query I rowsort
SELECT + col0 + + col1 * 28 FROM tab1 AS cor0
----
344
444
731
query I rowsort
SELECT ALL + col0 * ( 88 ) AS col1 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT DISTINCT 79 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8325
SELECT DISTINCT CAST( + 92 AS SIGNED ) DIV + cor0.col1 + - tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2bead7063d5678c59fa8eeebf37e2569
skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT CAST ( + 92 AS INTEGER ) / + cor0.col1 + - tab0.col2 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 2bead7063d5678c59fa8eeebf37e2569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * tab0.col2 col1 FROM tab0
----
1
1089
6724
query I rowsort
SELECT + 25 FROM tab0, tab2 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 cor0 WHERE NOT ( cor0.col1 ) BETWEEN ( NULL ) AND NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8329
SELECT + col0 DIV + col1 AS col2 FROM tab2 cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-8329
SELECT + col0 / + col1 AS col2 FROM tab2 cor0
----
0
1
4
query I rowsort
SELECT + col1 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col0 + + col1 + col1 AS col0 FROM tab1
----
-44
-54
49
query I rowsort
SELECT DISTINCT cor0.col2 + ( + cor0.col2 ) + - col1 FROM tab1 AS cor0
----
104
179
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8333
SELECT ALL 94 * col1 + - col1 * CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL 94 * col1 + - col1 * CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8334
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8334
SELECT CAST ( NULL AS REAL ) col0 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT 46 + cor0.col0 * cor0.col2 * col2 + 19 FROM tab0 AS cor0
----
100
26201
598501
query I rowsort
SELECT DISTINCT + col2 + - col1 AS col1 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT col1 - + col0 * - col1 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8338
SELECT DISTINCT - tab0.col0 + + CAST( - col1 AS SIGNED ) DIV tab0.col1 FROM tab0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT - tab0.col0 + + CAST ( - col1 AS INTEGER ) / tab0.col1 FROM tab0
----
-25
-36
-90
query I rowsort
SELECT - ( + 79 ) * + tab2.col0 + + 69 FROM tab2
----
-484
-6093
-6172
query I rowsort
SELECT ALL - ( col2 ) * col1 AS col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ( 71 ) + + col0 AS col0 FROM tab2
----
149
150
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col2 col1 FROM tab2
----
104
117
34
query I rowsort
SELECT 28 * 71 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 411723646dc0df36c9ae7c096fbe9612
query I rowsort
SELECT DISTINCT 19 + + col0 * cor0.col2 * col2 FROM tab2 AS cor0
----
114095
5122
52747
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab2 AS cor0
----
-27
-27
-27
query I rowsort
SELECT ALL + - col0 * 33 AS col2 FROM tab1 AS cor0
----
-2112
-2640
-99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 + + 70 * - col0 * col0 col0 FROM tab2 AS cor0
----
-3368
-425818
-436808
query I rowsort
SELECT DISTINCT col2 * col0 * - col0 + - col1 * + col0 AS col1 FROM tab1 AS cor0
----
-234112
-564
-615440
query I rowsort
SELECT ALL + - col0 * cor0.col2 * col1 AS col2 FROM tab1 cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL + cor1.col2 * + 42 * cor0.col2 AS col0 FROM tab0, tab1 cor0, tab1 cor1
----
27 values hashing to 01e4626e16b6aa2f112e4d10370f6ece
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8351
SELECT ALL - CAST( col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col2 + - col2 - col1 * - 48 FROM tab2
----
1488
2832
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8353
SELECT - col1 DIV - col2 + col0 AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8353
SELECT - col1 / - col2 + col0 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT - col0 * + col2 - col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT + - col1 - col0 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT col1 + + cor0.col2 + - 75 * + col0 AS col2 FROM tab0 AS cor0
----
-1681
-2527
-6502
query I rowsort
SELECT DISTINCT + col0 * - ( cor0.col2 ) + + col0 * 18 FROM tab1 AS cor0
----
-108
-2496
-6240
query I rowsort
SELECT ALL cor0.col0 + + col0 FROM tab2 AS cor0
----
14
156
158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col0 * col2 FROM tab1 cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-8361
SELECT DISTINCT col1 DIV cor0.col2 col0 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT col1 / cor0.col2 col0 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8362
SELECT ALL + col1 + + CAST( NULL AS DECIMAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL + col1 + + CAST ( NULL AS REAL ) * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + - ( + col2 + - col2 ) FROM tab0
----
86
91
97
query I rowsort
SELECT - col2 * 8 AS col0 FROM tab1 AS cor0
----
-432
-456
-768
query I rowsort
SELECT + col1 * col1 + - col1 * - col0 * - col1 AS col1 FROM tab2 cor0
----
-22542
-268037
-5766
query I rowsort
SELECT ALL + col1 * ( - 47 ) FROM tab1 AS cor0
----
-1222
-470
-611
query I rowsort
SELECT - 26 AS col0 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 4e49eac022daeae6f88f610644ba3754
query I rowsort
SELECT DISTINCT + cor0.col2 + ( col2 + col2 ) * 97 AS col0 FROM tab0 AS cor0
----
15990
195
6435
query I rowsort
SELECT DISTINCT + cor0.col1 + 50 FROM tab2 AS cor0
----
109
67
81
query I rowsort
SELECT - col1 * + col1 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT ALL col2 + - 77 FROM tab1 cor0
----
-20
-23
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8372
SELECT + col1 + CAST( NULL AS SIGNED ) * - 96 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8372
SELECT + col1 + CAST ( NULL AS INTEGER ) * - 96 * col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + - cor0.col0 * col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - 79 * - col0 FROM tab1 AS cor0
----
237
5056
6320
query I rowsort
SELECT DISTINCT col2 * col1 + col2 * ( - 3 * col1 ) FROM tab2 AS cor0
----
-1292
-1674
-3068
query I rowsort
SELECT DISTINCT - - 99 + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1633
745
936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8377
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8377
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - ( col2 ) * - col2 AS col1 FROM tab2
----
1444
676
729
query I rowsort
SELECT ALL + ( col2 ) * - 1 * tab0.col2 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT + col0 + + col0 * col1 AS col2 FROM tab1 cor0
----
1120
704
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8381
SELECT 44 * - col2 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8381
SELECT 44 * - col2 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 41 * - col0 FROM tab0 AS cor0
----
-1435
-3649
-984
onlyif mysql # use DIV operator for integer division
query I rowsort label-8383
SELECT DISTINCT - tab0.col0 DIV col0 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - tab0.col0 / col0 FROM tab0
----
-1
query I rowsort
SELECT 24 * col2 FROM tab1 AS cor0
----
1296
1368
2304
onlyif mysql # use DIV operator for integer division
query I rowsort label-8385
SELECT 30 DIV - col2 + + 92 - + col0 col1 FROM tab0 AS cor0
----
27
3
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8385
SELECT 30 / - col2 + + 92 - + col0 col1 FROM tab0 AS cor0
----
27
3
68
query I rowsort
SELECT DISTINCT - col1 * - 46 AS col1 FROM tab0
----
3956
4186
4462
query I rowsort
SELECT col2 + 88 * - col0 AS col1 FROM tab2
----
-589
-6838
-6914
query I rowsort
SELECT + 55 FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT ALL - + col1 + - cor0.col0 * - col1 AS col2 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT DISTINCT + col2 + col1 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
11020
25974
90532
query I rowsort
SELECT - + col1 * col2 + cor0.col1 * - col0 FROM tab2 AS cor0
----
-1054
-1989
-6136
query I rowsort
SELECT DISTINCT - col0 + col2 * + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT - col1 * + 64 AS col0 FROM tab1 AS cor0
----
-1664
-640
-832
query I rowsort
SELECT ALL + col0 * col0 + col1 AS col0 FROM tab2 cor0
----
6143
6258
80
query I rowsort
SELECT ALL 93 * col1 FROM tab0 AS cor0
----
7998
8463
9021
query I rowsort
SELECT DISTINCT - + 40 * + ( col0 ) + - col2 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
1098
4493
68
query I rowsort
SELECT ( - col0 ) + + col1 AS col1 FROM tab0 cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8398
SELECT ALL + + col0 - + col2 * - col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL + + col0 - + col2 * - col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 3 * col2 AS col0 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT DISTINCT + - 27 * - col1 + col2 * 45 AS col0 FROM tab1 AS cor0
----
2835
3132
4671
query I rowsort
SELECT - 97 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
679
7566
7663
query I rowsort
SELECT - 13 AS col2 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL + col0 - 52 FROM tab2 AS cor0
----
-45
26
27
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8404
SELECT - + CAST( col2 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8404
SELECT - + CAST ( col2 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8405
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + ( - col1 ) * - CAST( + ( - col1 ) AS SIGNED ) FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - CAST ( NULL AS REAL ) + + ( - col1 ) * - CAST ( + ( - col1 ) AS INTEGER ) FROM tab1 cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col2 * cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT 82 FROM tab2 AS cor0
----
82
82
82
query I rowsort
SELECT 32 + - col2 * col2 FROM tab1 AS cor0
----
-2884
-3217
-9184
query I rowsort
SELECT ALL + tab0.col0 FROM tab0, tab0 cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - - cor0.col2 + 68 AS col0 FROM tab0 AS cor0
----
101
150
69
query I rowsort
SELECT ( - 54 ) AS col0 FROM tab1 AS cor0
----
-54
-54
-54
query I rowsort
SELECT + 38 + cor0.col0 * - 73 FROM tab0 cor0
----
-1714
-2517
-6459
query I rowsort
SELECT ALL - + col0 * - col1 + + 84 AS col2 FROM tab2 AS cor0
----
1427
301
4686
query I rowsort
SELECT DISTINCT + ( col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + col0 * cor0.col1 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT + 13 AS col2 FROM tab1
----
13
13
13
query I rowsort
SELECT col1 * ( - 15 ) + - cor0.col0 FROM tab0 AS cor0
----
-1314
-1454
-1490
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8418
SELECT - cor0.col0 + - CAST( - col1 + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-8418
SELECT - cor0.col0 + - CAST ( - col1 + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 63 col2 FROM tab2 AS cor0
----
101
89
90
query I rowsort
SELECT - + col2 * col2 + - cor0.col2 + col2 * - 62 AS col0 FROM tab1 cor0
----
-15264
-6318
-6840
query I rowsort
SELECT + + col0 + cor0.col0 * + col1 * cor0.col1 FROM tab2 AS cor0
----
22910
271596
6734
query I rowsort
SELECT ALL ( col2 ) + col0 AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT - 22 * - col0 FROM tab1
----
1408
1760
66
query I rowsort
SELECT ALL col2 + tab0.col1 FROM tab0
----
119
173
98
query I rowsort
SELECT ALL + col0 * - col2 + - col1 + tab0.col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - + col2 + ( - 70 * col0 + col0 ) FROM tab0 AS cor0
----
-1689
-2416
-6223
query I rowsort
SELECT + 81 * - col0 FROM tab0
----
-1944
-2835
-7209
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab1.col0 col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
3
64
80
query I rowsort
SELECT - col0 + - col1 * - 63 + col1 FROM tab0
----
5480
5735
6173
query I rowsort
SELECT DISTINCT + col0 * ( - cor0.col0 ) FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT col0 * + col0 * - col1 FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL - - cor0.col1 + 27 FROM tab0 AS cor0
----
113
118
124
query I rowsort
SELECT - cor0.col1 + - col2 * - cor0.col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab2
----
17
31
59
query I rowsort
SELECT ( col1 ) * + 95 FROM tab2
----
1615
2945
5605
query I rowsort
SELECT + 54 AS col0 FROM tab0
----
54
54
54
query I rowsort
SELECT - 74 * - col2 AS col0 FROM tab0
----
2442
6068
74
query I rowsort
SELECT - col1 * + col1 + + col0 FROM tab1 cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * - col2 + 28 * 24 + col0 col0 FROM tab2
----
1462
1504
1853
query I rowsort
SELECT - + col1 * - 67 FROM tab2 cor0
----
1139
2077
3953
query I rowsort
SELECT ALL + cor0.col2 + ( + cor0.col2 ) FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT - col1 + - col1 AS col0 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT - + cor0.col1 + col1 + - 98 FROM tab2 AS cor0
----
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - col1 * - col0 + col1 col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-8445
SELECT + - col0 DIV - col2 AS col1 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8445
SELECT + - col0 / - col2 AS col1 FROM tab1 cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8446
SELECT DISTINCT + col1 DIV + col1 + col0 + + col0 FROM tab0 AS cor0
----
179
49
71
skipif mysql # not compatible
query I rowsort label-8446
SELECT DISTINCT + col1 / + col1 + col0 + + col0 FROM tab0 AS cor0
----
179
49
71
onlyif mysql # use DIV operator for integer division
query I rowsort label-8447
SELECT DISTINCT + col0 + col1 DIV 5 FROM tab2 AS cor0
----
13
82
89
skipif mysql # not compatible
query I rowsort label-8447
SELECT DISTINCT + col0 + col1 / 5 FROM tab2 AS cor0
----
13
82
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8448
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + - col0 * 45 AS col0 FROM tab2 AS cor0
----
-315
-3510
-3555
onlyif mysql # use DIV operator for integer division
query I rowsort label-8450
SELECT + col2 DIV + 31 FROM tab1 AS cor0
----
1
1
3
skipif mysql # not compatible
query I rowsort label-8450
SELECT + col2 / + 31 FROM tab1 AS cor0
----
1
1
3
query I rowsort
SELECT + - col0 - ( col2 ) * 75 AS col0 FROM tab2 AS cor0
----
-2028
-2032
-2929
query I rowsort
SELECT - + 68 AS col0 FROM tab2 AS cor0
----
-68
-68
-68
query I rowsort
SELECT - col2 * + col2 + col1 AS col2 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT col0 - + col2 AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + - ( 80 ) + + col1 FROM tab1 AS cor0
----
-54
-67
-70
query I rowsort
SELECT ALL + col0 - - 55 FROM tab0 AS cor0
----
144
79
90
query I rowsort
SELECT + + ( cor0.col2 ) + cor0.col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - + 83 * 58 AS col2 FROM tab1 AS cor0
----
-4814
-4814
-4814
query I rowsort
SELECT cor0.col0 * cor0.col0 + col1 * - 0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + - cor0.col2 - + col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT ALL + 86 * - col0 * col2 + col1 + col0 FROM tab2 AS cor0
----
-16216
-174271
-258076
query I rowsort
SELECT DISTINCT - cor0.col1 * col1 AS col2 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT col1 * - col2 + cor0.col1 * col1 + + col2 AS col0 FROM tab0 AS cor0
----
4591
901
9313
query I rowsort
SELECT ALL + col0 + col0 * - col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-113959
-5069
-52624
query I rowsort
SELECT DISTINCT ( - col1 ) * - cor0.col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col0 FROM tab2, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 97 * - col2 FROM tab2 AS cor0
----
-2522
-2619
-3686
query I rowsort
SELECT DISTINCT - cor0.col0 + + col0 * ( + col2 ) FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT 15 FROM tab1, tab2 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT ALL ( col0 ) * ( - col1 * col0 ) FROM tab1 AS cor0
----
-234
-40960
-83200
query I rowsort
SELECT ALL + 14 * col0 * 56 FROM tab1 cor0
----
2352
50176
62720
query I rowsort
SELECT - + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT - - col2 + + cor0.col1 * + col2 * col0 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT DISTINCT + cor0.col2 * col0 + + 5 * - col1 * + col1 FROM tab2 AS cor0
----
-15377
-4616
1557
query I rowsort
SELECT ALL - col0 * + col0 * cor0.col1 + - col1 - - col2 FROM tab2 AS cor0
----
-106076
-1523
-358989
query I rowsort
SELECT 67 + + cor0.col1 * + col0 * col1 AS col0 FROM tab1 cor0
----
13587
2095
6467
query I rowsort
SELECT ALL - cor0.col2 + cor0.col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + - col2 * col1 + + cor0.col2 * + col0 FROM tab2 AS cor0
----
-648
2356
494
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT 28 FROM tab0 cor0
----
28
query I rowsort
SELECT + + col0 + + col2 AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - ( col1 ) * 98 FROM tab0 AS cor0
----
-8428
-8918
-9506
query I rowsort
SELECT - col2 * cor0.col1 + - 54 FROM tab1 cor0
----
-1302
-1458
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-8484
SELECT ALL + col1 * cor0.col0 DIV + col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8484
SELECT ALL + col1 * cor0.col0 / + col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + - col2 - + col1 FROM tab1 cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT - 28 + + cor0.col2 AS col0 FROM tab1 AS cor0
----
26
29
68
query I rowsort
SELECT ALL cor0.col0 * - col0 - col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT DISTINCT + col1 + col2 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - tab1.col2 * col2 * - 68 FROM tab1
----
198288
220932
626688
query I rowsort
SELECT ALL + + cor0.col2 * + 83 + - col1 AS col1 FROM tab1 AS cor0
----
4456
4721
7955
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8491
SELECT DISTINCT + col0 * - CAST( col0 AS SIGNED ) - + col2 FROM tab1 AS cor0
----
-4153
-63
-6496
skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT + col0 * - CAST ( col0 AS INTEGER ) - + col2 FROM tab1 AS cor0
----
-4153
-63
-6496
query I rowsort
SELECT + col0 + + ( 51 ) FROM tab0 AS cor0
----
140
75
86
query I rowsort
SELECT DISTINCT 38 + + tab0.col1 * - col1 FROM tab0
----
-7358
-8243
-9371
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0, tab1, tab2 AS cor1
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT ALL + 64 + col1 FROM tab1
----
74
77
90
query I rowsort
SELECT DISTINCT + + 38 + + 89 FROM tab0 AS cor0
----
127
onlyif mysql # use DIV operator for integer division
query I rowsort label-8497
SELECT DISTINCT 72 * cor0.col1 DIV + col1 + - 41 FROM tab0 AS cor0
----
31
skipif mysql # not compatible
query I rowsort label-8497
SELECT DISTINCT 72 * cor0.col1 / + col1 + - 41 FROM tab0 AS cor0
----
31
query I rowsort
SELECT ALL 12 * - col0 AS col0 FROM tab0 cor0
----
-1068
-288
-420
query I rowsort
SELECT ALL 15 + col0 FROM tab1 AS cor0
----
18
79
95
query I rowsort
SELECT ALL + ( - ( - cor0.col0 ) ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 + - ( - 93 + col0 ) * 39 FROM tab0
----
2359
247
2777
onlyif mysql # use DIV operator for integer division
query I rowsort label-8502
SELECT - col2 DIV + 48 AS col1 FROM tab1
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-8502
SELECT - col2 / + 48 AS col1 FROM tab1
----
-1
-1
-2
query I rowsort
SELECT - ( - 35 + tab0.col0 ) * - 20 * col2 AS col2 FROM tab0
----
-7260
0
88560
query I rowsort
SELECT - 65 + col1 AS col1 FROM tab2
----
-34
-48
-6
query I rowsort
SELECT DISTINCT + col2 + + col2 * col0 AS col0 FROM tab0
----
36
7380
825
query I rowsort
SELECT ALL 14 + + col2 AS col0 FROM tab2
----
40
41
52
query I rowsort
SELECT DISTINCT + 43 + col1 AS col2 FROM tab2
----
102
60
74
query I rowsort
SELECT - col1 * + col1 + col0 FROM tab1
----
-36
-673
-89
query I rowsort
SELECT DISTINCT + col1 * + tab2.col1 - col2 AS col1 FROM tab2
----
251
3455
934
onlyif mysql # use DIV operator for integer division
query I rowsort label-8510
SELECT col2 DIV 98 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8510
SELECT col2 / 98 FROM tab0
----
0
0
0
query I rowsort
SELECT + 9 * + col0 FROM tab1 AS cor0
----
27
576
720
query I rowsort
SELECT ALL + ( - 21 ) + cor0.col1 AS col1 FROM tab0 cor0
----
65
70
76
query I rowsort
SELECT DISTINCT - col1 + 47 FROM tab0 AS cor0
----
-39
-44
-50
query I rowsort
SELECT DISTINCT - + ( col2 ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + 30 * col1 AS col0 FROM tab0 AS cor0
----
2580
2730
2910
query I rowsort
SELECT ALL col2 + - 80 AS col1 FROM tab0
----
-47
-79
2
query I rowsort
SELECT DISTINCT + col1 * - col2 * - col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT col1 * + col1 AS col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT - - col1 * col1 * col2 AS col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL col2 * col1 * - col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT - tab1.col0 + - col1 * - col2 FROM tab1
----
1168
1401
506
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col2 AS REAL ) + col2 AS col1 FROM tab2
----
52
54
76
query I rowsort
SELECT ALL + 68 + col1 FROM tab1
----
78
81
94
query I rowsort
SELECT col1 + 68 AS col1 FROM tab2
----
127
85
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT DISTINCT col1 DIV + tab1.col2 + + tab1.col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT col1 / + tab1.col2 + + tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - ( col0 ) - + tab0.col1 * col0 * col2 AS col1 FROM tab0
----
-3430
-664207
-68136
query I rowsort
SELECT ALL + 97 - + cor0.col0 * col2 FROM tab1 AS cor0
----
-3551
-65
-7583
query I rowsort
SELECT DISTINCT - + cor0.col1 * - cor0.col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + 81 + + col2 AS col1 FROM tab0
----
114
163
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 + col1 col0 FROM tab2
----
101
59
73
query I rowsort
SELECT ALL col0 + - cor0.col1 * + col0 * - col2 FROM tab2 cor0
----
119730
51113
5866
query I rowsort
SELECT DISTINCT + + 47 * + col0 FROM tab2 AS cor0
----
329
3666
3713
onlyif mysql # use DIV operator for integer division
query I rowsort label-8533
SELECT ALL - ( col0 ) + col0 DIV col1 FROM tab2 AS cor0
----
-7
-75
-77
skipif mysql # not compatible
query I rowsort label-8533
SELECT ALL - ( col0 ) + col0 / col1 FROM tab2 AS cor0
----
-7
-75
-77
query I rowsort
SELECT ALL + col0 + col2 FROM tab0 cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 8 + col1 * - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-118817
-49528
-720803
query I rowsort
SELECT ALL + + 57 * col0 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT + cor0.col1 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + + 23 * + cor0.col0 FROM tab0 AS cor0
----
2047
552
805
query I rowsort
SELECT DISTINCT + - cor0.col2 * - col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL + cor0.col1 * col2 AS col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL + 32 AS col1 FROM tab2 AS cor0
----
32
32
32
query I rowsort
SELECT ALL 31 FROM tab2 AS cor0
----
31
31
31
query I rowsort
SELECT DISTINCT tab0.col2 FROM tab0 WHERE ( NULL ) < - col0
----
query I rowsort
SELECT col0 * + col1 * col2 - col2 AS col1 FROM tab0
----
3394
664036
68079
query I rowsort
SELECT col1 * col2 * + col0 + col0 * + col1 FROM tab2
----
124254
52377
6076
query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL BETWEEN + col0 AND NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) >= NULL
----
query I rowsort
SELECT DISTINCT col2 - col0 * col2 AS col2 FROM tab0
----
-34
-7216
-759
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col0 ) IN ( - col1 / col1 )
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + col2 * col2
----
query I rowsort
SELECT col0 * col0 + - col2 AS col1 FROM tab1 AS cor0
----
-45
4039
6304
query I rowsort
SELECT - col2 FROM tab0 WHERE NULL BETWEEN NULL AND ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * col1 * - col0 col1 FROM tab2
----
106097
1519
358956
onlyif mysql # use DIV operator for integer division
query I rowsort label-8555
SELECT + col1 DIV col2 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8555
SELECT + col1 / col2 AS col2 FROM tab1
----
0
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= ( NULL )
----
query I rowsort
SELECT + col2 * + tab0.col1 + col1 AS col1 FROM tab0
----
194
2924
7553
query I rowsort
SELECT col0 FROM tab2 WHERE + col2 + col0 NOT IN ( - col0 )
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8559
SELECT tab1.col1 DIV - col0 AS col2 FROM tab1 WHERE NOT col2 * - col2 IN ( - col2 * + col0 DIV col1 )
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-8559
SELECT tab1.col1 / - col0 AS col2 FROM tab1 WHERE NOT col2 * - col2 IN ( - col2 * + col0 / col1 )
----
-8
0
0
query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + col2 + col1 + + col2 FROM tab1
----
124
134
205
query I rowsort
SELECT ALL col0 * col0 + col0 * + col2 * + col0 AS col2 FROM tab1
----
237568
495
620800
query I rowsort
SELECT col0 + col0 + + col0 AS col0 FROM tab1 WHERE NOT NULL IN ( col0 )
----
query I rowsort
SELECT ALL tab1.col1 * - tab1.col1 - col1 AS col2 FROM tab1
----
-110
-182
-702
query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT + col0 * col2 + col2 AS col1 FROM tab2 WHERE NOT col0 IN ( col2 )
----
2054
216
3040
query I rowsort
SELECT DISTINCT col2 + - tab0.col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + col2 * col2 + + col1 AS col2 FROM tab0 AS cor0
----
1175
6815
98
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col1 + + col0 * col0 ) = - col2 * col0
----
query I rowsort
SELECT ALL - - col1 + - col1 * - col0 AS col2 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT + col1 + + col1 * - col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT col0 * - col1 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
119574
50955
5852
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col1 + - col0 col0 FROM tab0
----
63
84
95
query I rowsort
SELECT col0 * - col0 + + col2 AS col0 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab2
----
1343
217
4602
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) IN ( col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT + col0 * col2 + - tab2.col0 * col1 AS col1 FROM tab2
----
-2574
-28
1659
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( - col0 / col0 )
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 + - col1 AND NULL
----
query I rowsort
SELECT cor0.col2 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL ( + col1 ) AS col0 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + - 0 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) * + cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
9 values hashing to 5ac8aba7baafe9bd6ceb7b5654f2c0b7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 12 ) col2 FROM tab1, tab0 AS cor0
----
12
onlyif mysql # use DIV operator for integer division
query I rowsort label-8585
SELECT + + cor0.col0 DIV + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-8585
SELECT + + cor0.col0 / + cor0.col2 AS col1 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT DISTINCT - - col0 + 92 FROM tab1 AS cor0
----
156
172
95
query I rowsort
SELECT DISTINCT + 13 * col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
705
805
query I rowsort
SELECT + col0 * - col1 AS col2 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT - col0 + - col0 * - col2 - - col0 * + 12 AS col1 FROM tab1
----
195
4352
8560
query I rowsort
SELECT + col0 * col2 + ( col2 ) AS col1 FROM tab0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8591
SELECT col2 + CAST( - ( + col1 ) AS SIGNED ) * - 60 * + col0 + col0 AS col1 FROM tab2
----
13054
276224
80697
skipif mysql # not compatible
query I rowsort label-8591
SELECT col2 + CAST ( - ( + col1 ) AS INTEGER ) * - 60 * + col0 + col0 AS col1 FROM tab2
----
13054
276224
80697
query I rowsort
SELECT ALL tab2.col1 * + 60 - col2 FROM tab2
----
1833
3514
982
query I rowsort
SELECT - tab2.col2 * col2 AS col1 FROM tab2
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8594
SELECT - ( - col1 ) / + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8594
SELECT - ( - col1 ) / + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8595
SELECT - col0 * - cor0.col1 + cor0.col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
1039
639
77
skipif mysql # not compatible
query I rowsort label-8595
SELECT - col0 * - cor0.col1 + cor0.col2 / - col2 AS col1 FROM tab1 AS cor0
----
1039
639
77
query I rowsort
SELECT ALL 84 + 51 FROM tab2 AS cor0
----
135
135
135
query I rowsort
SELECT ALL + 24 * col2 AS col0 FROM tab1 AS cor0
----
1296
1368
2304
query I rowsort
SELECT DISTINCT - 25 * col1 AS col2 FROM tab2 AS cor0
----
-1475
-425
-775
query I rowsort
SELECT DISTINCT + col0 * ( - col1 ) AS col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 34 * col2 AS col1 FROM tab0 cor0
----
1122
2788
34
query I rowsort
SELECT + col1 * col2 + col2 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-8602
SELECT - + 22 DIV 2 + col0 DIV - 32 AS col0 FROM tab1 AS cor0
----
-11
-13
-13
skipif mysql # not compatible
query I rowsort label-8602
SELECT - + 22 / 2 + col0 / - 32 AS col0 FROM tab1 AS cor0
----
-11
-13
-13
query I rowsort
SELECT - + ( - col0 ) + + cor0.col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT - ( tab1.col1 * col0 ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT - 65 * col0 AS col1 FROM tab2 AS cor0
----
-455
-5070
-5135
query I rowsort
SELECT - - 93 FROM tab1 cor0
----
93
93
93
query I rowsort
SELECT - + 13 AS col2 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT - 94 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 7eeab220fc6bbc2fb3fa4aef8600159f
onlyif mysql # use DIV operator for integer division
query I rowsort label-8609
SELECT col0 DIV + 1 AS col1 FROM tab2 cor0
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8609
SELECT col0 / + 1 AS col1 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - + col0 + col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT col0 + + tab2.col1 - + tab2.col0 AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT - cor0.col0 + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + cor0.col1 - + cor0.col1 * - 98 FROM tab0 AS cor0
----
8514
9009
9603
query I rowsort
SELECT + col0 * 2 + - col0 * col2 FROM tab2 AS cor0
----
-175
-1872
-2844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + + cor0.col1 - ( col1 ) col2 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 col0 FROM tab0
----
178
48
70
query I rowsort
SELECT col0 * 68 FROM tab1 AS cor0
----
204
4352
5440
query I rowsort
SELECT ALL - col2 + 16 FROM tab1 AS cor0
----
-38
-41
-80
query I rowsort
SELECT + col2 * col1 + tab0.col2 + - col1 FROM tab0
----
1
2785
7453
query I rowsort
SELECT DISTINCT - col1 + + 22 * col0 FROM tab0 cor0
----
1867
442
673
query I rowsort
SELECT DISTINCT col0 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
onlyif mysql # use DIV operator for integer division
query I rowsort label-8622
SELECT ALL + cor0.col0 * col0 DIV col2 - col0 FROM tab1 AS cor0
----
-14
-3
7
skipif mysql # not compatible
query I rowsort label-8622
SELECT ALL + cor0.col0 * col0 / col2 - col0 FROM tab1 AS cor0
----
-14
-3
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + ( - 53 ) col0 FROM tab2 cor0
----
-79
-80
-91
query I rowsort
SELECT ALL + + col2 + + col1 - - col2 * col2 AS col0 FROM tab0 AS cor0
----
1208
6897
99
query I rowsort
SELECT DISTINCT + + col1 + ( - cor0.col0 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col0 * - ( - col0 ) AS col0 FROM tab1 cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col0 - col2 col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 AS col0 FROM tab1 cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + 86 col0 FROM tab2 cor0
----
27
55
69
query I rowsort
SELECT ALL + cor0.col2 + - col0 * + col1 + + col2 * cor0.col0 FROM tab1 AS cor0
----
138
3065
6736
query I rowsort
SELECT + 33 FROM tab2 AS cor0
----
33
33
33
query I rowsort
SELECT + - col0 * + 9 + col2 * + col1 FROM tab2 cor0
----
-65
774
832
query I rowsort
SELECT col0 * - col2 * + col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT + 65 * col0 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT DISTINCT - + col0 * ( cor0.col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + ( + col1 ) AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8637
SELECT - 22 * 2 - + col2 * - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-101
-140
-98
skipif mysql # not compatible
query I rowsort label-8637
SELECT - 22 * 2 - + col2 * - col2 / - col2 AS col1 FROM tab1 AS cor0
----
-101
-140
-98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - col2 - cor0.col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT 21 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8641
SELECT - 16 + + cor0.col2 * col0 DIV col1 AS col1 FROM tab2 AS cor0
----
-10
160
18
skipif mysql # not compatible
query I rowsort label-8641
SELECT - 16 + + cor0.col2 * col0 / col1 AS col1 FROM tab2 AS cor0
----
-10
160
18
query I rowsort
SELECT ALL - - col0 * col2 + + col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT ( - 91 ) FROM tab2, tab1 AS cor0, tab2 AS cor1
----
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8644
SELECT - - col0 + col2 * + CAST( NULL AS DECIMAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8644
SELECT - - col0 + col2 * + CAST ( NULL AS REAL ) col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - col2 * 25 col0 FROM tab1 AS cor0
----
-1324
-1415
-2387
query I rowsort
SELECT DISTINCT 68 FROM tab0 cor0
----
68
query I rowsort
SELECT ALL - + 8 AS col2 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT + 43 FROM tab0, tab0 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT DISTINCT 19 AS col1 FROM tab0 AS cor0
----
19
query I rowsort
SELECT 31 * + col1 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT DISTINCT + - col0 * cor0.col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col0 FROM tab2
----
93
93
93
query I rowsort
SELECT col0 + + 70 * - col1 AS col0 FROM tab2 AS cor0
----
-1111
-2163
-4052
query I rowsort
SELECT ALL + col0 * ( col0 ) * + col2 AS col2 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT + + col1 * - col0 AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL + 83 FROM tab1
----
83
83
83
query I rowsort
SELECT - col1 * cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT + 12 + col0 FROM tab1 AS cor0
----
15
76
92
query I rowsort
SELECT ALL - ( col2 ) + - col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8660
SELECT cor0.col0 * + col0 + - ( col0 ) DIV - col1 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-8660
SELECT cor0.col0 * + col0 + - ( col0 ) / - col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - ( col0 ) * col1 + + 26 AS col0 FROM tab0 AS cor0
----
-2038
-3369
-8073
query I rowsort
SELECT - 43 * + col1 FROM tab1 AS cor0
----
-1118
-430
-559
query I rowsort
SELECT - cor0.col1 * + 19 AS col1 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab0
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8665
SELECT DISTINCT tab2.col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8665
SELECT DISTINCT tab2.col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
NULL
query I rowsort
SELECT 18 - - col0 * + col2 AS col2 FROM tab1 AS cor0
----
180
3666
7698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8667
SELECT + + CAST( NULL AS SIGNED ) * + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8667
SELECT + + CAST ( NULL AS INTEGER ) * + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 44 * + 76 FROM tab2 AS cor0
----
-3344
-3344
-3344
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8669
SELECT ALL + CAST( 45 AS SIGNED ) AS col2 FROM tab1 cor0
----
45
45
45
skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + CAST ( 45 AS INTEGER ) AS col2 FROM tab1 cor0
----
45
45
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 * cor0.col2 col2 FROM tab0 AS cor0
----
1254
3116
38
query I rowsort
SELECT ALL - 14 AS col1 FROM tab1 cor0
----
-14
-14
-14
onlyif mysql # use DIV operator for integer division
query I rowsort label-8672
SELECT 20 + - cor1.col0 DIV - 22 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fe69948b47067ff05c4b4428d96094f
skipif mysql # not compatible
query I rowsort label-8672
SELECT 20 + - cor1.col0 / - 22 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fe69948b47067ff05c4b4428d96094f
query I rowsort
SELECT col1 * 30 AS col2 FROM tab1 cor0
----
300
390
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-8674
SELECT + ( cor0.col2 ) * - cor0.col2 + + 32 DIV 33 col1 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8674
SELECT + ( cor0.col2 ) * - cor0.col2 + + 32 / 33 col1 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8675
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 + + col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8675
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 + + col2 FROM tab1
----
NULL
query I rowsort
SELECT + col2 + + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col1 + - col1 + + col0 FROM tab2
----
-40
-55
45
query I rowsort
SELECT - 82 - + 25 FROM tab0 AS cor0
----
-107
-107
-107
query I rowsort
SELECT DISTINCT - - 67 FROM tab2 cor0
----
67
query I rowsort
SELECT ALL col0 * col2 + col0 AS col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT - + 57 FROM tab0 AS cor0
----
-57
query I rowsort
SELECT - - cor0.col0 * - col0 + - col2 + - col0 FROM tab0 AS cor0
----
-1261
-633
-8092
query I rowsort
SELECT ALL - 21 * + col2 + - col0 * - ( + tab2.col2 ) FROM tab2
----
-378
1482
2204
onlyif mysql # use DIV operator for integer division
query I rowsort label-8684
SELECT ( col2 ) DIV col1 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8684
SELECT ( col2 ) / col1 FROM tab1
----
2
5
7
query I rowsort
SELECT + col0 * - col2 AS col1 FROM tab2
----
-189
-2028
-3002
query I rowsort
SELECT 45 * + col1 * col0 FROM tab1
----
28800
3510
46800
onlyif mysql # use DIV operator for integer division
query I rowsort label-8687
SELECT + col1 * col0 DIV - 61 + - col2 FROM tab2
----
-101
-30
-60
skipif mysql # not compatible
query I rowsort label-8687
SELECT + col1 * col0 / - 61 + - col2 FROM tab2
----
-101
-30
-60
query I rowsort
SELECT + col2 * - col0 + - col0 - ( + col2 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-14849
-167
-3654
query I rowsort
SELECT ALL col1 - + tab0.col2 FROM tab0
----
53
9
96
query I rowsort
SELECT DISTINCT - col1 - - col2 * - 34 FROM tab0
----
-1208
-131
-2879
query I rowsort
SELECT + 15 + col0 - col2 FROM tab1
----
-1
-36
22
query I rowsort
SELECT + col0 * ( col1 ) + - col0 AS col2 FROM tab2
----
1264
210
4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-8693
SELECT DISTINCT + + col1 DIV col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + + col1 / col0 AS col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8694
SELECT - + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-8694
SELECT - + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 + - ( + col0 ) col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT - col0 * 32 AS col2 FROM tab0 AS cor0
----
-1120
-2848
-768
query I rowsort
SELECT 81 + col2 AS col2 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT ( col0 ) * + col1 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + + 2 + - col1 * - cor0.col0 FROM tab0 cor0
----
2066
3397
8101
query I rowsort
SELECT + ( 8 ) * + cor0.col0 FROM tab2 AS cor0
----
56
624
632
query I rowsort
SELECT - - col1 * ( + col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col0 - ( - ( + col0 ) + - 20 ) FROM tab0 AS cor0
----
198
68
90
query I rowsort
SELECT DISTINCT + col1 + ( col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT col0 * - col1 FROM tab2 cor0
----
-1343
-217
-4602
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8705
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8705
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
query I rowsort
SELECT 35 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT DISTINCT - + col1 + col1 FROM tab2 cor0
----
0
query I rowsort
SELECT ALL col2 * - 53 AS col1 FROM tab0 AS cor0
----
-1749
-4346
-53
query I rowsort
SELECT DISTINCT + + col2 * - ( - col1 * - col0 ) FROM tab2 AS cor0
----
-119652
-51034
-5859
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8710
SELECT DISTINCT col2 * + col1 * - col2 + col1 * + CAST( NULL AS SIGNED ) - 81 / col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT col2 * + col1 * - col2 + col1 * + CAST ( NULL AS INTEGER ) - 81 / col1 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - col0 col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8712
SELECT ALL - CAST( 34 AS SIGNED ) * + col1 - col2 AS col0 FROM tab1 cor0
----
-397
-538
-938
skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL - CAST ( 34 AS INTEGER ) * + col1 - col2 AS col0 FROM tab1 cor0
----
-397
-538
-938
query I rowsort
SELECT DISTINCT + col1 * 87 FROM tab1
----
1131
2262
870
query I rowsort
SELECT DISTINCT - + ( - col1 ) * - col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + 39 * col1 + - col1 FROM tab2 cor0
----
1178
2242
646
query I rowsort
SELECT + ( ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 + - 57 * col1 * - 43 AS col1 FROM tab1 AS cor0
----
24574
31943
63729
query I rowsort
SELECT DISTINCT col2 * 79 AS col2 FROM tab0 AS cor0
----
2607
6478
79
query I rowsort
SELECT DISTINCT - + col1 * ( - col1 ) + col0 + - ( - col1 ) FROM tab0 AS cor0
----
7506
8461
9541
query I rowsort
SELECT ALL + - ( ( col0 ) ) - - col2 * cor0.col2 AS col1 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT col1 + + ( + ( - col1 ) ) AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT tab1.col2 - + ( - col0 ) * tab1.col2 AS col1 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + col1 + + ( + tab2.col2 ) AS col2 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col1 * 96 + - ( col2 ) * - col1 FROM tab0
----
11094
16198
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8725
SELECT DISTINCT - col1 - - CAST( + col1 + + col0 AS SIGNED ) AS col1 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8725
SELECT DISTINCT - col1 - - CAST ( + col1 + + col0 AS INTEGER ) AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL tab0.col2 - col2 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 * + ( col2 ) * tab2.col1 AS col1 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT col1 - + ( 33 + col0 ) AS col2 FROM tab1
----
-10
-100
-87
query I rowsort
SELECT + - 79 + + col0 AS col0 FROM tab1 AS cor0
----
-15
-76
1
query I rowsort
SELECT col0 + col0 * - 45 AS col0 FROM tab1 AS cor0
----
-132
-2816
-3520
query I rowsort
SELECT ALL col1 + col0 * ( col0 ) AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT - + ( col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL - - col2 * cor0.col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT DISTINCT + 22 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1298
374
682
onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT col2 DIV col0 AS col2 FROM tab2 cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8735
SELECT col2 / col0 AS col2 FROM tab2 cor0
----
0
0
3
query I rowsort
SELECT ALL - - 90 * + col0 * + col0 AS col0 FROM tab1 AS cor0
----
368640
576000
810
query I rowsort
SELECT ALL cor1.col0 - 76 FROM tab2, tab2 cor0, tab2 cor1
----
27 values hashing to 649cf1996b954783adf168b3c6a72978
query I rowsort
SELECT + col1 + + col1 * - tab2.col2 AS col1 FROM tab2
----
-1475
-629
-806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8739
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8739
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab2
----
-17
-31
-59
query I rowsort
SELECT 84 * - col0 FROM tab2
----
-588
-6552
-6636
query I rowsort
SELECT ALL 92 AS col0 FROM tab1
----
92
92
92
query I rowsort
SELECT 57 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT ( col1 * - col1 ) - - col0 FROM tab2
----
-210
-3403
-954
onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT ALL + 33 DIV + col1 FROM tab1
----
1
2
3
skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL + 33 / + col1 FROM tab1
----
1
2
3
query I rowsort
SELECT + 54 FROM tab0
----
54
54
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT 33 DIV + col1 + + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8746
SELECT 33 / + col1 + + col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8747
SELECT ALL - col0 DIV col1 col1 FROM tab2
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL - col0 / col1 col1 FROM tab2
----
-1
-4
0
query I rowsort
SELECT DISTINCT + cor0.col2 * - 13 FROM tab1 AS cor0
----
-1248
-702
-741
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col0 + + ( col0 ) * col1 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT + col0 * - col0 FROM tab0 cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col2 * 81 AS col1 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT + col2 * - 64 AS col1 FROM tab1 cor0
----
-3456
-3648
-6144
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( - 2 * col0 ) col2 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT ALL + + col1 + + 84 * col1 FROM tab2 cor0
----
1445
2635
5015
query I rowsort
SELECT - col0 * - col1 * + 33 FROM tab0 AS cor0
----
112035
267267
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + ( - col0 ) * - col0 col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT + + col2 * + ( + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * col1 col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8761
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 57 FROM tab2, tab0 AS cor0
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a
query I rowsort
SELECT DISTINCT col2 + 9 * col1 * 10 FROM tab1
----
1266
2394
957
query I rowsort
SELECT DISTINCT + + cor0.col2 * col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ALL + col2 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL ( col1 ) * + col2 FROM tab1 cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-8767
SELECT cor0.col2 + + 23 DIV col0 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8767
SELECT cor0.col2 + + 23 / col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - col2 + 65 + col0 FROM tab2 AS cor0
----
106
117
45
query I rowsort
SELECT col1 * + col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT + 25 + 1 AS col1 FROM tab1 AS cor0
----
26
26
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col0 FROM tab0 AS cor0
----
29
29
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-8772
SELECT ALL ( + 84 ) DIV - col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0
skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL ( + 84 ) / - col0 AS col0 FROM tab0 AS cor0
----
-2
-3
0
query I rowsort
SELECT + cor0.col2 * - col2 AS col0 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-8774
SELECT DISTINCT - - 5 DIV cor0.col0 + col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8774
SELECT DISTINCT - - 5 / cor0.col0 + col2 * - col2 col1 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT - cor0.col2 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL ( + col1 ) FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - 77 * + col1 + col2 AS col0 FROM tab2 AS cor0
----
-1271
-2360
-4517
query I rowsort
SELECT DISTINCT 29 * 19 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
551
query I rowsort
SELECT ALL + - 30 + col2 + col0 AS col0 FROM tab1 AS cor0
----
146
27
91
query I rowsort
SELECT ALL - ( col2 ) * - col1 FROM tab2 cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8781
SELECT DISTINCT col2 DIV 35 FROM tab1
----
1
2
skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT col2 / 35 FROM tab1
----
1
2
query I rowsort
SELECT - tab2.col1 + + col1 * + col0 + - col1 AS col2 FROM tab2
----
1309
155
4484
query I rowsort
SELECT DISTINCT - col2 + - ( col0 + tab2.col0 ) FROM tab2
----
-182
-196
-41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8784
SELECT DISTINCT - col0 DIV + col1 + + col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT - col0 / + col1 + + col2 * + col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT + + col1 + - ( - col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT col1 * + 12 + 59 FROM tab2 AS cor0
----
263
431
767
query I rowsort
SELECT DISTINCT + col2 * 49 + - col2 AS col0 FROM tab0 AS cor0
----
1584
3936
48
query I rowsort
SELECT cor0.col0 - 41 * + col2 AS col0 FROM tab2 AS cor0
----
-1100
-1479
-988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8789
SELECT + col1 * CAST( NULL AS SIGNED ) + ( + cor0.col2 ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8789
SELECT + col1 * CAST ( NULL AS INTEGER ) + ( + cor0.col2 ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 * + cor0.col0 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - - col1 * - 16 - col2 * col1 * ( col2 + col0 ) AS col0 FROM tab1 AS cor0
----
-219856
-69130
-80444
query I rowsort
SELECT DISTINCT 16 FROM tab0, tab2 cor0
----
16
query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col2 FROM tab2 cor0
----
0
query I rowsort
SELECT 0 * + col2 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - col0 + + 65 FROM tab2 AS cor0
----
-13
-14
58
query I rowsort
SELECT + col1 * cor0.col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) * - cor0.col1 col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-33
query I rowsort
SELECT DISTINCT - + cor0.col0 + col1 AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - ( col0 + + col1 ) AS col2 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT cor0.col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0, tab0 AS cor1
----
972 values hashing to 86dbd337f00ab84c613ad03d6fc06e28
query I rowsort
SELECT + 61 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 * + col1 * ( + col0 ) col2 FROM tab2 AS cor0
----
-106059
-1492
-358930
query I rowsort
SELECT DISTINCT + col1 + + cor0.col0 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT - cor0.col0 * + col1 + - col2 + cor0.col1 * + col1 FROM tab0 cor0
----
100
5299
6013
query I rowsort
SELECT - ( col1 ) + 78 * col2 FROM tab2 AS cor0
----
1969
2075
2947
query I rowsort
SELECT col1 + + ( cor0.col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT - col1 + col2 * + col2 AS col2 FROM tab2
----
1427
617
698
query I rowsort
SELECT DISTINCT + 73 FROM tab0
----
73
query I rowsort
SELECT - col1 * 46 * - col2 FROM tab0 AS cor0
----
130548
343252
4462
query I rowsort
SELECT + col2 * 10 FROM tab1 AS cor0
----
540
570
960
query I rowsort
SELECT + col0 * - ( 51 ) FROM tab1 AS cor0
----
-153
-3264
-4080
query I rowsort
SELECT + cor0.col0 * col0 * - col2 AS col1 FROM tab1 cor0
----
-233472
-486
-614400
query I rowsort
SELECT - - cor0.col0 * 14 AS col0 FROM tab2 AS cor0
----
1092
1106
98
query I rowsort
SELECT - col2 * - col2 + cor0.col0 AS col1 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - 24 + col2 AS col0 FROM tab2 AS cor0
----
14
2
3
query I rowsort
SELECT ALL col1 + - ( - col2 ) * + col2 AS col0 FROM tab2
----
1461
735
760
onlyif mysql # use DIV operator for integer division
query I rowsort label-8819
SELECT + col2 DIV + col1 FROM tab2
----
0
0
2
skipif mysql # not compatible
query I rowsort label-8819
SELECT + col2 / + col1 FROM tab2
----
0
0
2
query I rowsort
SELECT col1 * tab1.col0 - col2 FROM tab1
----
24
583
944
query I rowsort
SELECT + col0 + 85 * 9 AS col0 FROM tab0
----
789
800
854
query I rowsort
SELECT + + ( + col2 ) + col2 * 5 FROM tab0 cor0
----
198
492
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * col0 col2 FROM tab1
----
1792
2240
84
query I rowsort
SELECT ALL + 70 + - tab2.col2 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 77f784dc30f2ad5690182dc7e6063d44
query I rowsort
SELECT DISTINCT + ( 73 ) * + col1 * ( + col1 ) FROM tab1
----
12337
49348
7300
query I rowsort
SELECT 12 * col2 AS col1 FROM tab2
----
312
324
456
query I rowsort
SELECT DISTINCT - ( tab2.col1 ) * col0 * - tab2.col0 AS col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT + col0 * + col2 + cor0.col1 + + col1 FROM tab0 AS cor0
----
229
7480
964
query I rowsort
SELECT 49 * + col1 AS col1 FROM tab1 AS cor0
----
1274
490
637
query I rowsort
SELECT + - 16 FROM tab1 cor0
----
-16
-16
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-8831
SELECT + + col2 DIV - col1 + cor0.col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-8831
SELECT + + col2 / - col1 + cor0.col0 / - col2 AS col2 FROM tab0 AS cor0
----
-1
-35
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8832
SELECT + ( cor0.col1 ) * CAST( + 44 + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-3458
4171
946
skipif mysql # not compatible
query I rowsort label-8832
SELECT + ( cor0.col1 ) * CAST ( + 44 + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-3458
4171
946
query I rowsort
SELECT DISTINCT - 80 * col2 FROM tab0
----
-2640
-6560
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8834
SELECT ALL CAST( col1 + - tab0.col2 AS SIGNED ) FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-8834
SELECT ALL CAST ( col1 + - tab0.col2 AS INTEGER ) FROM tab0
----
53
9
96
query I rowsort
SELECT ALL 47 FROM tab2, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT ALL - - col2 + - col1 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8837
SELECT ALL - 65 * + cor0.col1 + + col0 DIV + col1 FROM tab2 AS cor0
----
-1101
-2015
-3834
skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - 65 * + cor0.col1 + + col0 / + col1 FROM tab2 AS cor0
----
-1101
-2015
-3834
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( + col2 AS REAL ) * - col1 + cor0.col0 AS col2 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + + ( col1 ) - + col2 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - - cor0.col2 + col2 AS col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0, tab1 AS cor2
----
243 values hashing to 3dcd863493ac16ce594c62d4ac8b0412
query I rowsort
SELECT - - ( - col0 ) AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT - ( cor0.col1 ) + - 35 + 7 FROM tab2 AS cor0
----
-45
-59
-87
query I rowsort
SELECT DISTINCT + - col1 + + col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col2 - - col1 * - ( col2 ) AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL - cor0.col2 * col1 + col2 * + cor0.col0 + col2 FROM tab0 AS cor0
----
-2013
-61
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8847
SELECT DISTINCT + 93 + + col2 * - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
1627
739
930
skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT + 93 + + col2 * - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
1627
739
930
query I rowsort
SELECT DISTINCT + 1 + col2 - - 38 * col1 FROM tab0 AS cor0
----
3302
3541
3688
onlyif mysql # use DIV operator for integer division
query I rowsort label-8849
SELECT DISTINCT + col0 DIV col2 + - 15 AS col1 FROM tab0 AS cor0
----
-14
-15
20
skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT + col0 / col2 + - 15 AS col1 FROM tab0 AS cor0
----
-14
-15
20
query I rowsort
SELECT ALL 19 AS col2 FROM tab2
----
19
19
19
query I rowsort
SELECT ALL - - cor0.col0 + col2 AS col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + 84 AS col2 FROM tab0 AS cor0
----
84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8853
SELECT + col2 * + cor0.col1 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8853
SELECT + col2 * + cor0.col1 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT + + 12 DIV + col0 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-8854
SELECT + + 12 / + col0 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT + 98 + + col2 + + 95 FROM tab0 AS cor0
----
194
226
275
query I rowsort
SELECT - col0 * 95 AS col1 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT + col2 + ( + col2 + - col0 ) AS col2 FROM tab1 cor0
----
105
112
50
query I rowsort
SELECT - col1 * col1 * - 48 + cor0.col2 FROM tab1 AS cor0
----
32502
4857
8208
onlyif mysql # use DIV operator for integer division
query I rowsort label-8859
SELECT DISTINCT + + col1 DIV cor0.col0 FROM tab2 AS cor0
----
0
4
skipif mysql # not compatible
query I rowsort label-8859
SELECT DISTINCT + + col1 / cor0.col0 FROM tab2 AS cor0
----
0
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + col2 * col1 * + col2 col2 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT ALL 68 AS col0 FROM tab2
----
68
68
68
query I rowsort
SELECT tab1.col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT + 41 AS col0 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT DISTINCT - col2 * 25 + col2 * col0 * 91 AS col1 FROM tab1 AS cor0
----
13392
330543
696480
onlyif mysql # use DIV operator for integer division
query I rowsort label-8865
SELECT ALL col0 DIV - 32 FROM tab1 AS cor0
----
-2
-2
0
skipif mysql # not compatible
query I rowsort label-8865
SELECT ALL col0 / - 32 FROM tab1 AS cor0
----
-2
-2
0
query I rowsort
SELECT + col1 * col2 + cor0.col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8867
SELECT ALL - col2 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL - col2 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8868
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + - col1 * - col1 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-3548
-7511
514
onlyif mysql # use DIV operator for integer division
query I rowsort label-8870
SELECT ALL - col2 DIV + col1 - + 99 FROM tab1 AS cor0
----
-101
-104
-106
skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL - col2 / + col1 - + 99 FROM tab1 AS cor0
----
-101
-104
-106
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 61 + - col2 col0 FROM tab2 AS cor0
----
-87
-88
-99
query I rowsort
SELECT + - 58 AS col2 FROM tab0 cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT 20 - + 61 FROM tab1 AS cor0
----
-41
query I rowsort
SELECT ALL - ( col1 ) * col0 - ( col1 + col0 ) AS col2 FROM tab2 AS cor0
----
-1439
-255
-4739
query I rowsort
SELECT - col2 * 61 AS col0 FROM tab0 cor0
----
-2013
-5002
-61
onlyif mysql # use DIV operator for integer division
query I rowsort label-8876
SELECT DISTINCT col2 + 74 DIV - ( col1 ) AS col1 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8876
SELECT DISTINCT col2 + 74 / - ( col1 ) AS col1 FROM tab0
----
1
33
82
query I rowsort
SELECT ALL 19 FROM tab2, tab2 AS cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8878
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + 5 * col1 AS col2 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - CAST ( NULL AS REAL ) + 5 * col1 AS col2 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8879
SELECT - - col2 DIV col0 FROM tab2 AS cor0
----
0
0
3
skipif mysql # not compatible
query I rowsort label-8879
SELECT - - col2 / col0 FROM tab2 AS cor0
----
0
0
3
query I rowsort
SELECT - - ( - 65 ) AS col0 FROM tab1 AS cor0
----
-65
-65
-65
query I rowsort
SELECT + col1 * + col0 + + col0 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + + 82 * col2 FROM tab2 AS cor0
----
2132
2214
3116
query I rowsort
SELECT ALL - 30 * - 92 + - col1 * col2 AS col0 FROM tab1 AS cor0
----
1356
1512
2190
query I rowsort
SELECT + ( col2 ) + + col1 * col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - - 86 + + col1 * col2 FROM tab1 AS cor0
----
1334
1490
656
query I rowsort
SELECT ALL - + 77 * + ( + cor0.col1 ) FROM tab0 AS cor0
----
-6622
-7007
-7469
query I rowsort
SELECT ALL 47 * 56 FROM tab1 cor0
----
2632
2632
2632
query I rowsort
SELECT col1 * + col0 + + col0 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT ALL + 4 AS col2 FROM tab1 AS cor0
----
4
4
4
query I rowsort
SELECT DISTINCT - 64 FROM tab0, tab2 cor0
----
-64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + ( + 2 ) + col1 col2 FROM tab2
----
120
36
64
query I rowsort
SELECT + col0 - - ( col2 ) AS col2 FROM tab0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * 39 col1 FROM tab1
----
-117
-2496
-3120
query I rowsort
SELECT DISTINCT - + cor0.col2 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-54
-57
-96
query I rowsort
SELECT 51 + ( col0 ) FROM tab1
----
115
131
54
query I rowsort
SELECT DISTINCT + ( + 38 ) * + col2 AS col1 FROM tab1 AS cor0
----
2052
2166
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8897
SELECT CAST( + 60 AS SIGNED ) + - col0 * - col0 FROM tab0 AS cor0
----
1285
636
7981
skipif mysql # not compatible
query I rowsort label-8897
SELECT CAST ( + 60 AS INTEGER ) + - col0 * - col0 FROM tab0 AS cor0
----
1285
636
7981
query I rowsort
SELECT ALL - - 6 FROM tab2 AS cor0
----
6
6
6
query I rowsort
SELECT DISTINCT - col1 + col0 * col0 FROM tab2 cor0
----
18
6025
6224
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8900
SELECT ALL - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + col0 * ( - col1 ) - col1 * - tab0.col0 * 78 AS col0 FROM tab0
----
159014
261512
623714
query I rowsort
SELECT ALL - col1 * 72 FROM tab0 AS cor0
----
-6192
-6552
-6984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * + ( 69 ) col0 FROM tab1
----
3729
3997
6704
query I rowsort
SELECT - col1 - cor0.col1 FROM tab0 AS cor0
----
-172
-182
-194
query I rowsort
SELECT 51 FROM tab0 AS cor0
----
51
51
51
query I rowsort
SELECT tab2.col1 * - col1 * 72 FROM tab2
----
-20808
-250632
-69192
query I rowsort
SELECT + col1 + - ( col0 ) + + col2 FROM tab0
----
63
84
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + cor0.col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT ALL + col1 + + col2 * + col0 + - col1 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col1 + ( + col1 * - col2 ) + col1 FROM tab0
----
-2666
-7280
97
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT DISTINCT + col1 * - 45 FROM tab0 AS cor0
----
-3870
-4095
-4365
onlyif mysql # use DIV operator for integer division
query I rowsort label-8913
SELECT col2 + - 26 DIV - 50 AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-8913
SELECT col2 + - 26 / - 50 AS col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8914
SELECT DISTINCT + - col2 * + CAST( + col2 * col0 + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-11664
-211185
-746496
skipif mysql # not compatible
query I rowsort label-8914
SELECT DISTINCT + - col2 * + CAST ( + col2 * col0 + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-11664
-211185
-746496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8915
SELECT ALL - + col0 * - CAST( col1 + - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1488
178
2170
skipif mysql # not compatible
query I rowsort label-8915
SELECT ALL - + col0 * - CAST ( col1 + - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1488
178
2170
query I rowsort
SELECT - + col1 + 55 AS col0 FROM tab0 AS cor0
----
-31
-36
-42
query I rowsort
SELECT - - ( col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + 56 + tab1.col0 FROM tab1
----
120
136
59
query I rowsort
SELECT + cor0.col1 * col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT DISTINCT col1 * - 70 FROM tab0
----
-6020
-6370
-6790
query I rowsort
SELECT ( - col0 + + col1 ) AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ( - 99 ) FROM tab1
----
-99
-99
-99
query I rowsort
SELECT - tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT + 26 * - tab0.col0 AS col0 FROM tab0
----
-2314
-624
-910
query I rowsort
SELECT col1 * col1 + col2 AS col0 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT - - 1 * + col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col1 + col1 * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT - col0 + + ( col1 + col2 ) * col1 AS col1 FROM tab2
----
1791
4937
856
query I rowsort
SELECT ALL - cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT col0 + ( + 21 * - col0 ) FROM tab1
----
-1280
-1600
-60
query I rowsort
SELECT ALL + col0 + - 62 FROM tab1 AS cor0
----
-59
18
2
query I rowsort
SELECT + col1 * + 54 AS col2 FROM tab2 cor0
----
1674
3186
918
query I rowsort
SELECT ALL - cor0.col2 * - col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT + col2 * + col2 + ( - col0 ) * + col2 FROM tab0 AS cor0
----
-34
-574
297
query I rowsort
SELECT DISTINCT col0 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT col0 * 65 AS col0 FROM tab1 AS cor0
----
195
4160
5200
query I rowsort
SELECT col1 * - 94 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT ALL + 73 FROM tab0, tab2 AS cor0
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8939
SELECT CAST( NULL AS SIGNED ) * + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8939
SELECT CAST ( NULL AS INTEGER ) * + col0 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8940
SELECT CAST( NULL AS SIGNED ) + - col1 + col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8940
SELECT CAST ( NULL AS INTEGER ) + - col1 + col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 + col2 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT - tab1.col1 + + col0 * - tab1.col0 AS col1 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT DISTINCT + col1 + - col0 AS col2 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - col2 + tab0.col0 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT + cor0.col1 - - cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 71bdffb602517a95c6721e05f7b4b3dd
query III rowsort
SELECT * FROM tab0 WHERE + col1 * col2 NOT BETWEEN ( NULL ) AND col1 + col1
----
24
86
33
89
91
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8948
SELECT + col0 + col1 DIV + col2 FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-8948
SELECT + col0 + col1 / + col2 FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT ALL cor0.col2 + col2 * - col1 * col2 AS col2 FROM tab1 AS cor0
----
-119712
-32433
-75762
query I rowsort
SELECT DISTINCT cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
10
13
26
query I rowsort
SELECT + tab1.col0 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query III rowsort
SELECT * FROM tab0 WHERE ( col1 / - col0 ) <= ( NULL )
----
query I rowsort
SELECT ALL - col0 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + col2 - + col1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT - 47 * col0 * col2 AS col1 FROM tab2
----
-141094
-8883
-95316
query I rowsort
SELECT - + col1 + - col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 + col1 col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - + cor0.col1 * + col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + tab2.col2 col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 - col0 col2 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT + col2 * ( - col2 ) FROM tab1 AS cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - col0 + 57 AS col0 FROM tab1 AS cor0
----
-23
-7
54
query I rowsort
SELECT ALL - + col1 * col2 * - col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT - col0 + - col1 * - 76 FROM tab1
----
1973
696
908
query I rowsort
SELECT + 8 FROM tab0
----
8
8
8
query I rowsort
SELECT col1 + - ( col1 ) * col1 AS col1 FROM tab2
----
-272
-3422
-930
onlyif mysql # use DIV operator for integer division
query I rowsort label-8967
SELECT tab2.col1 + col2 DIV col0 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-8967
SELECT tab2.col1 + col2 / col0 FROM tab2
----
17
34
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8968
SELECT + col0 + + 30 DIV 41 AS col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8968
SELECT + col0 + + 30 / 41 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT cor0.col2 + 2 FROM tab2 AS cor0
----
28
29
40
query I rowsort
SELECT col2 * 65 * + col1 FROM tab1 AS cor0
----
37050
81120
91260
query I rowsort
SELECT col1 * 25 AS col1 FROM tab2 cor0
----
1475
425
775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8972
SELECT DISTINCT - col2 * - CAST( col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
1248
1404
570
skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT - col2 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + cor0.col0 * - 54 FROM tab0 AS cor0
----
-1296
-1890
-4806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( col2 ) col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - + col1 * col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col0 - - col1 FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT + ( + tab1.col2 ) FROM tab1
----
54
57
96
query I rowsort
SELECT DISTINCT ( col1 ) - - col1 * + col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT - col2 + + col2 * + col2 - - 16 FROM tab0
----
1072
16
6658
query I rowsort
SELECT + ( col1 + tab1.col2 ) * - col1 FROM tab1
----
-1417
-2080
-670
query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab2, tab1 cor0
----
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8982
SELECT - col2 DIV col0 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-8982
SELECT - col2 / col0 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT ALL + 49 + col2 AS col0 FROM tab1 AS cor0
----
103
106
145
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 21 col0 FROM tab1
----
1344
1680
63
query I rowsort
SELECT DISTINCT - - cor0.col2 AS col0 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 + cor0.col1 * - ( - 73 ) col2 FROM tab0 AS cor0
----
6302
6732
7116
query I rowsort
SELECT - + 2 * col2 + 24 AS col0 FROM tab0 AS cor0
----
-140
-42
22
query I rowsort
SELECT DISTINCT + 93 + + cor0.col0 AS col2 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT DISTINCT + col0 * - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 74 + col1 * col1 col0 FROM tab2 AS cor0
----
1035
3555
363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * col1 col1 FROM tab0 AS cor0
----
636056
753571
912673
query I rowsort
SELECT + 50 + + col0 FROM tab1 AS cor0
----
114
130
53
query I rowsort
SELECT DISTINCT - col1 * - cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - cor0.col2 AS col2 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL - cor0.col2 * col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col2 * tab1.col2 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT cor0.col0 * tab0.col1 * - 1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec78515ecc610830fe02f4a5c8d4e4d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-8998
SELECT ALL + 0 + + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL + 0 + + col2 / col0 AS col1 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT - 77 + col0 FROM tab2 AS cor0
----
-70
1
2
query I rowsort
SELECT ALL col2 * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col0 * col1 * col0 + cor0.col2 FROM tab1 AS cor0
----
288
41017
83296
onlyif mysql # use DIV operator for integer division
query I rowsort label-9002
SELECT + 3 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9002
SELECT + 3 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL 64 AS col1 FROM tab0
----
64
64
64
query I rowsort
SELECT - col0 * - col1 + 68 * 13 + col1 * + col0 AS col1 FROM tab1
----
1040
2164
2964
query I rowsort
SELECT ALL col1 + col1 * - col1 * 28 AS col1 FROM tab1
----
-18902
-2790
-4719
query I rowsort
SELECT ALL - + col2 * col0 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT 84 * - col2 + - 66 AS col0 FROM tab0 AS cor0
----
-150
-2838
-6954
query I rowsort
SELECT 70 - col0 FROM tab0 AS cor0
----
-19
35
46
query I rowsort
SELECT ALL + col1 * - col2 AS col2 FROM tab2 cor0
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT ALL col0 DIV cor0.col0 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL col0 / cor0.col0 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9012
SELECT - - col1 + - CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
2
62
62
skipif mysql # not compatible
query I rowsort label-9012
SELECT - - col1 + - CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
2
62
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9013
SELECT col2 * CAST( NULL AS SIGNED ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9013
SELECT col2 * CAST ( NULL AS INTEGER ) + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col2 + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
query I rowsort
SELECT DISTINCT + + col0 * col2 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT DISTINCT + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - 70 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f
query I rowsort
SELECT DISTINCT + tab2.col2 + + col0 * col0 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT tab1.col0 * + tab1.col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT - col2 + + 9 FROM tab0 AS cor0
----
-24
-73
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9021
SELECT DISTINCT - col2 DIV - col0 + ( 11 ) FROM tab2
----
11
14
skipif mysql # not compatible
query I rowsort label-9021
SELECT DISTINCT - col2 / - col0 + ( 11 ) FROM tab2
----
11
14
query I rowsort
SELECT DISTINCT 77 + col1 * 49 + ( + col2 ) AS col1 FROM tab0
----
4324
4618
4831
query I rowsort
SELECT + col1 * tab1.col0 + - col2 * - 60 * tab1.col0 AS col2 FROM tab1
----
219520
461840
9798
query I rowsort
SELECT - - 30 FROM tab0 AS cor0
----
30
30
30
query I rowsort
SELECT DISTINCT + ( + cor0.col1 ) + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT - - col2 + + 94 * cor0.col2 FROM tab1 AS cor0
----
5130
5415
9120
query I rowsort
SELECT ( col1 ) + - col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col1 col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - + ( + 47 ) * col1 AS col1 FROM tab2 AS cor0
----
-1457
-2773
-799
query I rowsort
SELECT 5 * 51 AS col2 FROM tab0 AS cor0
----
255
255
255
query I rowsort
SELECT DISTINCT 69 FROM tab2 AS cor0
----
69
query I rowsort
SELECT DISTINCT ( - 32 ) * - col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT ALL + col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col0 * 62 AS col1 FROM tab2 AS cor0
----
-434
-4836
-4898
query I rowsort
SELECT ALL - col1 * - col0 - col1 FROM tab0 cor0
----
1978
3298
8008
query I rowsort
SELECT ALL - - ( - ( - cor0.col2 ) ) * 70 + - col2 AS col1 FROM tab0 AS cor0
----
2277
5658
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9037
SELECT + + CAST( col1 AS SIGNED ) * col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409
skipif mysql # not compatible
query I rowsort label-9037
SELECT + + CAST ( col1 AS INTEGER ) * col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL 32 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to cf4f01ac97eb83445b1721f3ae28961a
query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab1, tab1 AS cor0
----
52
query I rowsort
SELECT ALL + col0 * + col1 * col1 AS col2 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT + 66 * - cor0.col2 AS col2 FROM tab2 AS cor0
----
-1716
-1782
-2508
query I rowsort
SELECT - col2 * col2 * - col2 AS col2 FROM tab2 AS cor0
----
17576
19683
54872
query I rowsort
SELECT DISTINCT - 40 * + ( col1 ) FROM tab0 AS cor0
----
-3440
-3640
-3880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9044
SELECT DISTINCT - + ( 87 ) * col1 - CAST( - 55 + col0 * col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-11779
-15961
-9491
skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT - + ( 87 ) * col1 - CAST ( - 55 + col0 * col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-11779
-15961
-9491
query I rowsort
SELECT + - col0 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT 91 * col0 FROM tab1
----
273
5824
7280
query I rowsort
SELECT ALL col1 - + 87 * tab0.col2 AS col1 FROM tab0
----
-2785
-7043
10
query I rowsort
SELECT - - col1 * - col0 + + col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT + 14 + + 41 AS col0 FROM tab2 AS cor0
----
55
55
55
query I rowsort
SELECT ALL - - 93 * col2 - col1 AS col0 FROM tab0 cor0
----
-4
2983
7535
query I rowsort
SELECT - 45 * + col1 FROM tab2 cor0
----
-1395
-2655
-765
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9052
SELECT + CAST( + ( - col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-9052
SELECT + CAST ( + ( - col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT - col1 * cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9054
SELECT ALL - col1 * + ( - col2 ) + CAST( + ( col2 ) AS SIGNED ) col1 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL - col1 * + ( - col2 ) + CAST ( + ( col2 ) AS INTEGER ) col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL - - cor0.col0 + - 45 - col1 * - ( col1 ) AS col1 FROM tab1 cor0
----
119
204
634
query I rowsort
SELECT col2 * - 40 FROM tab0 AS cor0
----
-1320
-3280
-40
query I rowsort
SELECT 87 * 66 FROM tab1 AS cor0
----
5742
5742
5742
query I rowsort
SELECT ALL + tab2.col1 * 63 AS col0 FROM tab2
----
1071
1953
3717
query I rowsort
SELECT - 61 * col2 + + cor0.col0 FROM tab0 cor0
----
-1989
-26
-4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 col0 FROM tab2
----
39
query I rowsort
SELECT + col0 * col1 + + col2 * + col1 AS col2 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT + 45 AS col2 FROM tab1 AS cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT col1 + cor0.col0 DIV 67 FROM tab1 AS cor0
----
10
14
26
skipif mysql # not compatible
query I rowsort label-9063
SELECT col1 + cor0.col0 / 67 FROM tab1 AS cor0
----
10
14
26
query I rowsort
SELECT 22 * tab0.col2 FROM tab0
----
1804
22
726
query I rowsort
SELECT - - ( 9 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 col0 FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT ALL + tab2.col1 * 82 FROM tab2
----
1394
2542
4838
onlyif mysql # use DIV operator for integer division
query I rowsort label-9068
SELECT DISTINCT tab0.col0 DIV tab0.col2 col0 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT tab0.col0 / tab0.col2 col0 FROM tab0
----
0
1
35
query I rowsort
SELECT DISTINCT col1 * - ( col0 + - col0 * + 27 ) AS col0 FROM tab1
----
16640
2028
27040
query I rowsort
SELECT DISTINCT - 90 * + 88 FROM tab0, tab2 cor0
----
-7920
query I rowsort
SELECT cor0.col2 AS col1 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9072
SELECT + col0 * CAST( col1 AS SIGNED ) + + col0 AS col1 FROM tab1
----
1120
704
81
skipif mysql # not compatible
query I rowsort label-9072
SELECT + col0 * CAST ( col1 AS INTEGER ) + + col0 AS col1 FROM tab1
----
1120
704
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col0 col2 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT - + col2 * 88 * - col2 FROM tab2 AS cor0
----
127072
59488
64152
query I rowsort
SELECT ALL - cor0.col0 * 36 AS col2 FROM tab1 AS cor0
----
-108
-2304
-2880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 37 * - col1 col1 FROM tab1 AS cor0
----
-313
-385
-908
query I rowsort
SELECT ( 8 ) AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9078
SELECT - + col0 DIV 46 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9078
SELECT - + col0 / 46 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT - 97 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT ALL col0 + ( - col1 ) * + col1 - col0 AS col1 FROM tab0
----
-7396
-8281
-9409
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab0, tab0 AS cor2
----
3645 values hashing to 8a7905bab027a06731ba57659d83981d
query I rowsort
SELECT col2 - col0 * - tab2.col2 * + 60 FROM tab2
----
11367
121706
180158
query I rowsort
SELECT 61 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 07149905a72bd87553381f34d19ed290
query I rowsort
SELECT ALL 50 + col2 + + col0 AS col0 FROM tab1
----
107
171
226
query I rowsort
SELECT - - col1 + - cor0.col0 * - col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT + - 36 + cor0.col1 + col1 FROM tab1 AS cor0
----
-10
-16
16
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9087
SELECT DISTINCT - CAST( NULL AS SIGNED ) * ( cor0.col0 ) / 97 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9087
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * ( cor0.col0 ) / 97 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT cor0.col0 * col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT cor0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
query I rowsort
SELECT - col2 - col1 * - col2 * col0 FROM tab1 AS cor0
----
36423
4158
99744
onlyif mysql # use DIV operator for integer division
query I rowsort label-9092
SELECT cor0.col2 - col2 DIV 79 AS col1 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-9092
SELECT cor0.col2 - col2 / 79 AS col1 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT + col2 * + col2 + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT col0 * + col0 FROM tab0 cor0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 82 - 44 col1 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to e8ee68f0c70acc4c1cda7bc3bdfab847
query I rowsort
SELECT ALL + 74 FROM tab2
----
74
74
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-9097
SELECT ( + col0 ) DIV + 40 FROM tab1
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9097
SELECT ( + col0 ) / + 40 FROM tab1
----
0
1
2
query I rowsort
SELECT - 99 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 761f5f1a166a00db99360141565a85da
query I rowsort
SELECT - - col1 * col1 * + 44 - - col2 AS col0 FROM tab0 AS cor0
----
325457
364446
413997
query I rowsort
SELECT - col2 + + 94 * col0 - + col0 AS col2 FROM tab2 AS cor0
----
624
7228
7309
query I rowsort
SELECT DISTINCT col0 + - ( + 16 ) * col0 FROM tab0 AS cor0
----
-1335
-360
-525
query I rowsort
SELECT ALL - col0 * cor0.col1 * - 64 AS col2 FROM tab0 AS cor0
----
132096
217280
518336
query I rowsort
SELECT - + ( + col2 ) * + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT col2 + - col2 * col1 AS col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT DISTINCT + + 39 FROM tab1 AS cor0
----
39
query I rowsort
SELECT ALL - + col0 * cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL + 35 * col0 FROM tab2 AS cor0
----
245
2730
2765
query I rowsort
SELECT 94 + + cor0.col1 AS col2 FROM tab0 AS cor0
----
180
185
191
query I rowsort
SELECT - 78 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to afa1a417c354fab37e0e421ec67035c7
query I rowsort
SELECT DISTINCT - - 8 FROM tab1 AS cor0
----
8
query I rowsort
SELECT ALL + col0 + + col0 + col2 FROM tab0
----
260
71
81
query I rowsort
SELECT ALL - col1 + + tab2.col0 * - col2 * + col1 + col2 FROM tab2
----
-119685
-51013
-5863
query I rowsort
SELECT - tab1.col2 * + col0 + col2 AS col0 FROM tab1
----
-108
-3591
-7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-9114
SELECT ALL tab0.col0 DIV col2 col2 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL tab0.col0 / col2 col2 FROM tab0
----
0
1
35
query I rowsort
SELECT col0 * - col0 + - col2 AS col2 FROM tab0
----
-1226
-609
-8003
onlyif mysql # use DIV operator for integer division
query I rowsort label-9116
SELECT - tab0.col1 DIV + col1 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9116
SELECT - tab0.col1 / + col1 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT + col0 + col2 AS col0 FROM tab2 WHERE + col1 + + col0 - col2 / col2 <= NULL
----
query I rowsort
SELECT DISTINCT - col1 * col0 + col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT + col0 * tab1.col1 * col2 + + col0 * col2 FROM tab1
----
107520
40128
4374
query I rowsort
SELECT DISTINCT tab2.col2 + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + - col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT 18 * col1 * col1 + 95 AS col2 FROM tab0
----
133223
149153
169457
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + tab1.col2 col1 FROM tab1
----
109
67
80
query I rowsort
SELECT DISTINCT cor0.col2 * 66 AS col0 FROM tab2, tab0 AS cor0
----
2178
5412
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col2 FROM tab0 AS cor0
----
164
2
66
query I rowsort
SELECT tab1.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * col2 + + col1 col0 FROM tab0
----
194
2924
7553
query I rowsort
SELECT DISTINCT + col2 - col0 AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT + col1 + col1 * col0 AS col0 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-9130
SELECT col2 + tab0.col0 DIV col2 FROM tab0
----
33
36
83
skipif mysql # not compatible
query I rowsort label-9130
SELECT col2 + tab0.col0 / col2 FROM tab0
----
33
36
83
query I rowsort
SELECT - tab2.col0 FROM tab2 WHERE col1 * col1 BETWEEN NULL AND + col0
----
query I rowsort
SELECT col2 - col2 * col0 * - col1 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( - col1 - + col2 * - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-9135
SELECT col1 DIV tab1.col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9135
SELECT col1 / tab1.col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT col1 + col1 * + col1 - col2 FROM tab0
----
7449
8290
9505
onlyif mysql # use DIV operator for integer division
query I rowsort label-9137
SELECT col1 DIV + col0 - col2 * col0 FROM tab0
----
-33
-7297
-789
skipif mysql # not compatible
query I rowsort label-9137
SELECT col1 / + col0 - col2 * col0 FROM tab0
----
-33
-7297
-789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL col1 + col1 + + col1 FROM tab1
----
30
39
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9140
SELECT DISTINCT col0 DIV + col0 AS col2 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9140
SELECT DISTINCT col0 / + col0 AS col2 FROM tab0
----
1
query I rowsort
SELECT - col0 + + col2 + col1 FROM tab0
----
63
84
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-9142
SELECT ALL + col0 + col2 * - col1 + col0 DIV col0 FROM tab1
----
-1167
-1400
-505
skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL + col0 + col2 * - col1 + col0 / col0 FROM tab1
----
-1167
-1400
-505
onlyif mysql # use DIV operator for integer division
query I rowsort label-9143
SELECT - col0 * col1 DIV col2 FROM tab0
----
-3395
-62
-98
skipif mysql # not compatible
query I rowsort label-9143
SELECT - col0 * col1 / col2 FROM tab0
----
-3395
-62
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-9144
SELECT col1 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9144
SELECT col1 / - col1 AS col1 FROM tab2
----
-1
-1
-1
query I rowsort
SELECT DISTINCT tab2.col2 + tab2.col2 + - tab2.col2 * - col1 AS col0 FROM tab2
----
1586
722
891
query I rowsort
SELECT ALL col1 * col1 * + col2 FROM tab1
----
16224
36504
5700
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) >= ( col2 )
----
query I rowsort
SELECT ALL tab0.col0 * tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col2 + tab0.col1 * - col1 AS col1 FROM tab0
----
-7363
-8199
-9408
query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT ( + 94 ) + col1 * + col2 FROM tab2
----
1628
740
931
query I rowsort
SELECT DISTINCT 48 - col0 * col1 FROM tab2
----
-1295
-169
-4554
query I rowsort
SELECT - ( tab1.col2 ) + - col0 FROM tab1
----
-121
-176
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9154
SELECT col0 DIV - ( - col2 ) FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9154
SELECT col0 / - ( - col2 ) FROM tab0
----
0
1
35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9155
SELECT CAST( 38 AS SIGNED ) AS col2 FROM tab2
----
38
38
38
skipif mysql # not compatible
query I rowsort label-9155
SELECT CAST ( 38 AS INTEGER ) AS col2 FROM tab2
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9156
SELECT + CAST( + 39 AS SIGNED ) * col2 + + 46 DIV - col2 AS col1 FROM tab1
----
2106
2223
3744
skipif mysql # not compatible
query I rowsort label-9156
SELECT + CAST ( + 39 AS INTEGER ) * col2 + + 46 / - col2 AS col1 FROM tab1
----
2106
2223
3744
onlyif mysql # use DIV operator for integer division
query I rowsort label-9157
SELECT ALL - ( col1 ) DIV + col2 + + col2 DIV 5 + + col2 * 47 FROM tab0 AS cor0
----
-50
1555
3869
skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL - ( col1 ) / + col2 + + col2 / 5 + + col2 * 47 FROM tab0 AS cor0
----
-50
1555
3869
query I rowsort
SELECT - 36 + - col0 FROM tab0 AS cor0
----
-125
-60
-71
onlyif mysql # use DIV operator for integer division
query I rowsort label-9159
SELECT ALL ( col2 ) DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-9159
SELECT ALL ( col2 ) / cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + + cor0.col0 * 18 + + col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT DISTINCT - - 22 AS col0 FROM tab0 AS cor0
----
22
query I rowsort
SELECT DISTINCT 0 AS col0 FROM tab2
----
0
query I rowsort
SELECT ALL ( - 99 ) * - tab0.col1 * - ( tab0.col1 + - tab0.col0 ) AS col2 FROM tab0
----
-18018
-527868
-595386
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col2 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT + - col1 + - col0 + col0 FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - 58 AS col1 FROM tab2 AS cor0
----
-58
-58
-58
query I rowsort
SELECT - col2 + - col1 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + col0 * col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL col1 * + col2 + ( col1 + - col0 ) AS col1 FROM tab1 AS cor0
----
1181
1427
516
query I rowsort
SELECT ALL - tab0.col2 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
query I rowsort
SELECT + 60 + col1 AS col1 FROM tab1 AS cor0
----
70
73
86
query I rowsort
SELECT ALL + cor0.col0 * cor0.col1 FROM tab2 AS cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-9173
SELECT - col0 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9173
SELECT - col0 / - col2 AS col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - 98 * col2 FROM tab0 AS cor0
----
-3234
-8036
-98
query I rowsort
SELECT - col2 + + col2 * col1 FROM tab1
----
1152
1350
513
query I rowsort
SELECT + col1 + col2 * 31 * 88 AS col1 FROM tab1 AS cor0
----
147338
155506
261901
query I rowsort
SELECT DISTINCT col0 * 1 + col0 * + cor0.col2 * - 35 FROM tab1 AS cor0
----
-127616
-268720
-5667
query I rowsort
SELECT col0 + + 99 * ( - col2 + + col0 * col2 ) AS col0 FROM tab0 AS cor0
----
3401
714473
75165
query I rowsort
SELECT ALL + cor2.col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab0 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col0 col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT ALL + cor0.col2 * 47 * + 21 + col1 FROM tab1 cor0
----
53324
56269
94765
query I rowsort
SELECT DISTINCT + - col1 * + 69 FROM tab0 AS cor0
----
-5934
-6279
-6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + ( ( col1 ) * + ( col2 ) ) col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + cor0.col2 * 38 + col1 * - col2 AS col2 FROM tab1 AS cor0
----
1596
2400
648
onlyif mysql # use DIV operator for integer division
query I rowsort label-9185
SELECT ALL + col2 DIV + 84 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + col2 / + 84 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + col1 AS col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT col2 + + 57 AS col0 FROM tab1 AS cor0
----
111
114
153
query I rowsort
SELECT ALL + col0 + + col1 AS col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT ALL - + col2 + 0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - 98 + - 96 FROM tab0 AS cor0
----
-194
-194
-194
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 col0 FROM tab1, tab2 cor0
----
26
27
38
query I rowsort
SELECT + + col0 + - 3 AS col2 FROM tab2 cor0
----
4
75
76
query I rowsort
SELECT DISTINCT - ( + col1 ) + col1 AS col1 FROM tab1 cor0
----
0
query I rowsort
SELECT ALL + 70 - col0 AS col0 FROM tab2 AS cor0
----
-8
-9
63
query IIIIIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0, tab2 AS cor1
----
243 values hashing to ce53c0e8839c969b0513568da6eb2c4b
query I rowsort
SELECT DISTINCT col2 * col2 * + 75 AS col1 FROM tab0
----
504300
75
81675
query I rowsort
SELECT - 23 * col0 * + 17 AS col2 FROM tab0
----
-13685
-34799
-9384
query I rowsort
SELECT ALL 16 AS col0 FROM tab1
----
16
16
16
query I rowsort
SELECT ALL 84 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to e8cd683fe8cea77b4326d9b80f21c74a
query I rowsort
SELECT 84 AS col1 FROM tab1, tab2 cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8
onlyif mysql # use DIV operator for integer division
query I rowsort label-9201
SELECT ( col0 ) + 1 DIV ( - col1 + + col0 ) FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-9201
SELECT ( col0 ) + 1 / ( - col1 + + col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL - - 26 + tab1.col0 AS col2 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 17194cb49bd07f2251848dc94845ba24
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0, tab1 AS cor1, tab0 AS cor2
----
972 values hashing to 95920403df268a272c4e933cd0bbe0be
query I rowsort
SELECT + + ( + col0 ) * col2 * + col0 AS col1 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT + col0 DIV - ( cor0.col1 ) + col2 + col1 FROM tab1 AS cor0
----
103
61
80
skipif mysql # not compatible
query I rowsort label-9205
SELECT + col0 / - ( cor0.col1 ) + col2 + col1 FROM tab1 AS cor0
----
103
61
80
query I rowsort
SELECT - col0 + 76 FROM tab2 AS cor0
----
-2
-3
69
query I rowsort
SELECT + col1 + ( 30 ) FROM tab1 AS cor0
----
40
43
56
query I rowsort
SELECT DISTINCT col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - col1 * col0 + - col2 * + col2 + - 14 FROM tab2 AS cor0
----
-115
-526
3912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9210
SELECT - col0 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9210
SELECT - col0 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 * + col2 + col0 AS col0 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT DISTINCT + - col1 + 13 * cor0.col1 AS col1 FROM tab2 AS cor0
----
204
372
708
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9213
SELECT + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9213
SELECT + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - col2 + + col0 * 43 AS col0 FROM tab0 AS cor0
----
-3471
1470
240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9215
SELECT + CAST( - col0 AS SIGNED ) - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-9215
SELECT + CAST ( - col0 AS INTEGER ) - col1 AS col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT DISTINCT + col2 * col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT + 24 * 40 - + col2 * 1 AS col2 FROM tab2 cor0
----
922
933
934
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9218
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 * col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9218
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 * col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9219
SELECT DISTINCT - col2 DIV - col1 - + cor0.col0 * - col1 FROM tab1 AS cor0
----
1047
645
80
skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT - col2 / - col1 - + cor0.col0 * - col1 FROM tab1 AS cor0
----
1047
645
80
query I rowsort
SELECT + + col0 + - 77 AS col0 FROM tab1 AS cor0
----
-13
-74
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col2 FROM tab0 AS cor0
----
96
96
96
skipif mysql # not compatible
query I rowsort
SELECT col0 + - CAST ( - ( - col1 ) * - ( col2 ) AS REAL ) AS col1 FROM tab1
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + + 81 col2 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT cor0.col1 + col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + 65 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
65
query I rowsort
SELECT ALL + - col1 * cor0.col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL 51 * col2 AS col1 FROM tab2 AS cor0
----
1326
1377
1938
query I rowsort
SELECT + - 11 * + col1 - col2 * - 81 FROM tab0 AS cor0
----
-986
1727
5641
query I rowsort
SELECT 11 + col0 * col1 FROM tab2 AS cor0
----
1354
228
4613
query I rowsort
SELECT col1 + - col2 * ( cor0.col2 ) AS col0 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT + ( - col1 ) * ( - 35 ) FROM tab0 AS cor0
----
3010
3185
3395
query I rowsort
SELECT - col1 - + cor0.col0 * + ( + 70 * + col0 ) FROM tab0 AS cor0
----
-40406
-554561
-85847
onlyif mysql # use DIV operator for integer division
query I rowsort label-9233
SELECT DISTINCT + col1 * - cor0.col1 - + ( - col0 ) DIV - col1 FROM tab2 AS cor0
----
-293
-3482
-961
skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT + col1 * - cor0.col1 - + ( - col0 ) / - col1 FROM tab2 AS cor0
----
-293
-3482
-961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col2 FROM tab1 AS cor0
----
-86
query I rowsort
SELECT ALL + + ( - col2 ) + - 81 AS col0 FROM tab2 AS cor0
----
-107
-108
-119
query I rowsort
SELECT 46 * col2 AS col0 FROM tab1
----
2484
2622
4416
query I rowsort
SELECT ( col2 ) * + ( - col1 ) + + col0 * - 94 - - col0 AS col0 FROM tab1
----
-1683
-6522
-8688
query I rowsort
SELECT DISTINCT - + col2 + 85 AS col0 FROM tab1 AS cor0
----
-11
28
31
query I rowsort
SELECT col2 * 82 + col0 AS col0 FROM tab0 AS cor0
----
117
2730
6813
query I rowsort
SELECT DISTINCT - cor0.col1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-10
-13
-26
query I rowsort
SELECT ALL - ( + ( col2 ) ) * - col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9242
SELECT ALL + - col1 DIV col2 col1 FROM tab0 cor0
----
-1
-2
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9242
SELECT ALL + - col1 / col2 col1 FROM tab0 cor0
----
-1
-2
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9243
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * col1 col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - ( col0 ) * col1 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT - 88 * 56 FROM tab0 cor0
----
-4928
query I rowsort
SELECT - col2 * - col2 * col2 FROM tab2 AS cor0
----
17576
19683
54872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 82 ) + cor0.col1 col1 FROM tab0 AS cor0
----
15
4
9
query I rowsort
SELECT col1 * + col1 + + col2 AS col1 FROM tab2 cor0
----
327
3507
988
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab2 AS cor2, tab0 AS cor3
----
3645 values hashing to ca4c79a162f92454e0544707b897521a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 col1 FROM tab1
----
-109
-67
-80
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0, tab1 AS cor1, tab1 AS cor2, tab2 AS cor3
----
3645 values hashing to b6efe6f7ec1a3daa3cc6ea9dd7d13455
query I rowsort
SELECT ALL col2 * + 97 FROM tab1 AS cor0
----
5238
5529
9312
query I rowsort
SELECT ALL - - col1 * 64 + cor0.col2 * col2 * col1 + col2 AS col1 FROM tab1 AS cor0
----
120736
33187
77534
onlyif mysql # use DIV operator for integer division
query I rowsort label-9254
SELECT DISTINCT col0 + col2 + 55 DIV col0 FROM tab1
----
121
176
75
skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT col0 + col2 + 55 / col0 FROM tab1
----
121
176
75
query I rowsort
SELECT ALL - 79 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT ALL - 93 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b
query I rowsort
SELECT ALL col2 * col1 * 33 + col0 * col0 + 13 FROM tab2 AS cor0
----
27572
27683
56719
query I rowsort
SELECT + col0 * - ( + cor0.col0 ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL col0 * 63 AS col2 FROM tab1 AS cor0
----
189
4032
5040
query I rowsort
SELECT ALL + col1 + col2 + - col1 AS col1 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL - cor0.col2 * 65 + ( col2 + + col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
-1349
1875
4940
query I rowsort
SELECT DISTINCT col2 + - col1 * 98 FROM tab0 AS cor0
----
-8395
-8836
-9505
query I rowsort
SELECT - col0 * cor0.col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT col0 * 69 FROM tab0 AS cor0
----
1656
2415
6141
onlyif mysql # use DIV operator for integer division
query I rowsort label-9266
SELECT ALL + col1 * 19 + + col2 * - cor0.col2 DIV - col2 FROM tab1 AS cor0
----
247
343
548
skipif mysql # not compatible
query I rowsort label-9266
SELECT ALL + col1 * 19 + + col2 * - cor0.col2 / - col2 FROM tab1 AS cor0
----
247
343
548
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab1 cor0
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9268
SELECT cor0.col2 * CAST( - col2 + + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-540
1352
1558
skipif mysql # not compatible
query I rowsort label-9268
SELECT cor0.col2 * CAST ( - col2 + + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-540
1352
1558
query I rowsort
SELECT DISTINCT - + 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-9270
SELECT col0 * ( col1 ) * + CAST( col2 AS SIGNED ) + - cor0.col1 * - col1 * + 86 AS col2 FROM tab0 AS cor0
----
1376284
704168
812569
skipif mysql # not compatible
query I rowsort label-9270
SELECT col0 * ( col1 ) * + CAST ( col2 AS INTEGER ) + - cor0.col1 * - col1 * + 86 AS col2 FROM tab0 AS cor0
----
1376284
704168
812569
query I rowsort
SELECT ALL + + ( + 34 ) * + col2 AS col1 FROM tab2 AS cor0
----
1292
884
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-9272
SELECT ( - 26 ) DIV col0 col0 FROM tab1 AS cor0
----
-8
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9272
SELECT ( - 26 ) / col0 col0 FROM tab1 AS cor0
----
-8
0
0
query I rowsort
SELECT cor1.col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT - - 76 * - 90 FROM tab0 AS cor0
----
-6840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9275
SELECT + ( col1 ) DIV + col0 AS col0 FROM tab1 cor0
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9275
SELECT + ( col1 ) / + col0 AS col0 FROM tab1 cor0
----
0
0
8
query I rowsort
SELECT ALL cor0.col0 * + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
27 values hashing to 55963bf0362c7e00773b409d4454ed69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 col0 FROM tab1, tab0 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-9279
SELECT DISTINCT + col0 DIV + col1 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9279
SELECT DISTINCT + col0 / + col1 - + cor0.col1 AS col2 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - - 24 + - cor0.col1 * cor0.col1 + - 61 FROM tab0 AS cor0
----
-7433
-8318
-9446
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9281
SELECT DISTINCT + - col2 + col2 * + CAST( NULL AS DECIMAL ) + col2 * col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT + - col2 + col2 * + CAST ( NULL AS REAL ) + col2 * col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + - col2 * col0 - + col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT ALL + col0 * - col1 - 82 FROM tab0 AS cor0
----
-2146
-3477
-8181
query I rowsort
SELECT ALL cor0.col1 * col0 + + col1 * col2 AS col1 FROM tab0 cor0
----
15561
3492
4902
query I rowsort
SELECT ALL + - col0 + + col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - col0 + col2 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT ALL - cor0.col2 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 col2 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT cor0.col1 + + cor0.col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL + cor0.col0 + col2 * + col2 * col1 FROM tab0 AS cor0
----
132
611973
93678
query I rowsort
SELECT DISTINCT + - 43 + col1 FROM tab0 AS cor0
----
43
48
54
query I rowsort
SELECT ALL + 75 FROM tab1
----
75
75
75
query I rowsort
SELECT DISTINCT + - col2 + - 91 + - 46 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
-2629
-2770
-4603
query I rowsort
SELECT DISTINCT + col1 + - 53 AS col2 FROM tab1 AS cor0
----
-27
-40
-43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col0 + - col0 * col1 + ( - cor0.col0 ) * col0 col2 FROM tab0 AS cor0
----
-1848
-4585
-8722
query I rowsort
SELECT + cor0.col2 + ( + col0 ) * col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL col0 * col2 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL col0 * col2 * col2 FROM tab0
----
26136
35
598436
query I rowsort
SELECT col1 * 20 FROM tab0 AS cor0
----
1720
1820
1940
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 * - col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT 41 AS col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
41
query I rowsort
SELECT + + cor0.col2 + col1 * 88 FROM tab0 AS cor0
----
7601
8090
8537
query I rowsort
SELECT 56 FROM tab1, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-68
query I rowsort
SELECT 38 * - col2 + + col1 FROM tab0
----
-1168
-3025
59
query I rowsort
SELECT - col0 * 21 + ( - tab0.col0 + - 8 ) * col1 AS col2 FROM tab0
----
-10696
-3256
-4906
query I rowsort
SELECT - col1 + + 27 AS col0 FROM tab0
----
-59
-64
-70
query I rowsort
SELECT ( 0 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9309
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT col1 + 21 * col0 FROM tab0 AS cor0
----
1960
590
832
query I rowsort
SELECT DISTINCT - cor0.col1 + col2 * - col1 FROM tab2 AS cor0
----
-1593
-663
-868
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9312
SELECT ALL + + col2 + + CAST( NULL AS DECIMAL ) - - 15 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL + + col2 + + CAST ( NULL AS REAL ) - - 15 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
7
78
79
query I rowsort
SELECT DISTINCT - col1 * col1 + 76 FROM tab0 AS cor0
----
-7320
-8205
-9333
query I rowsort
SELECT DISTINCT ( + tab1.col0 ) + - tab1.col1 FROM tab1
----
-23
54
67
query I rowsort
SELECT ALL col1 + 31 AS col1 FROM tab2
----
48
62
90
query I rowsort
SELECT tab2.col1 + 83 FROM tab2
----
100
114
142
query I rowsort
SELECT DISTINCT + col1 * + col1 + - col0 FROM tab1
----
36
673
89
query I rowsort
SELECT + col0 * tab2.col0 FROM tab2
----
49
6084
6241
query I rowsort
SELECT DISTINCT ( + col2 ) * - col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT - - col2 + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-4039
-6304
45
query I rowsort
SELECT ALL col0 * col1 * col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT + col0 + col2 AS col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-9324
SELECT ALL 53 + + col1 DIV - col1 FROM tab2
----
52
52
52
skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL 53 + + col1 / - col1 FROM tab2
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-9325
SELECT ALL col1 + col1 DIV col1 col1 FROM tab1
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL col1 + col1 / col1 col1 FROM tab1
----
11
14
27
query I rowsort
SELECT 81 + + col0 FROM tab0 AS cor0
----
105
116
170
onlyif mysql # use DIV operator for integer division
query I rowsort label-9327
SELECT - col2 + - col0 DIV - 2 col0 FROM tab2 AS cor0
----
-24
1
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9327
SELECT - col2 + - col0 / - 2 col0 FROM tab2 AS cor0
----
-24
1
13
query I rowsort
SELECT ALL + + col0 * - cor0.col2 FROM tab0 AS cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + cor0.col1 * - col1 col1 FROM tab1 AS cor0
----
-157
-265
-730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 * col2 col1 FROM tab0 AS cor0
----
1148
14
462
query I rowsort
SELECT + col2 * col0 + col1 FROM tab2 cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-9332
SELECT 52 + - col0 DIV col1 AS col2 FROM tab2 AS cor0
----
48
51
52
skipif mysql # not compatible
query I rowsort label-9332
SELECT 52 + - col0 / col1 AS col2 FROM tab2 AS cor0
----
48
51
52
query I rowsort
SELECT ALL + + 59 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT + 3 * col1 FROM tab1 AS cor0
----
30
39
78
query I rowsort
SELECT DISTINCT col2 - cor0.col0 AS col2 FROM tab1 cor0
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9336
SELECT DISTINCT col0 DIV col0 col2 FROM tab1 AS cor0
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT col0 / col0 col2 FROM tab1 AS cor0
----
1
query I rowsort
SELECT - - col1 + + col2 * - 29 AS col1 FROM tab0 AS cor0
----
-2287
-871
68
query I rowsort
SELECT DISTINCT + 71 AS col2 FROM tab2 AS cor0
----
71
query I rowsort
SELECT DISTINCT col1 + - 18 * 85 FROM tab0
----
-1433
-1439
-1444
query I rowsort
SELECT + col1 + + col1 * + col2 AS col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT col2 * 74 AS col0 FROM tab1
----
3996
4218
7104
query I rowsort
SELECT 85 FROM tab1, tab2 AS cor0
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b
query I rowsort
SELECT ALL + tab2.col1 * col1 * col2 FROM tab2
----
10982
25947
90506
query I rowsort
SELECT ALL - col1 * - 30 AS col0 FROM tab2 AS cor0
----
1770
510
930
query I rowsort
SELECT DISTINCT - cor1.col0 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
-24
-35
-89
query I rowsort
SELECT DISTINCT ( + tab0.col1 ) FROM tab0, tab0 AS cor0, tab1 AS cor1
----
86
91
97
query I rowsort
SELECT ALL - cor1.col0 AS col2 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT + col1 + cor0.col1 AS col2 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT + + 60 + + ( + col0 ) AS col0 FROM tab2 AS cor0
----
138
139
67
query I rowsort
SELECT - + ( + col0 ) AS col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT ( - cor0.col2 ) + + col1 - + ( + col0 ) * col1 FROM tab0 AS cor0
----
-2011
-3299
-8090
onlyif mysql # use DIV operator for integer division
query I rowsort label-9352
SELECT + 67 * col0 DIV col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
68
85
skipif mysql # not compatible
query I rowsort label-9352
SELECT + 67 * col0 / col2 + + cor0.col1 AS col0 FROM tab1 AS cor0
----
29
68
85
query I rowsort
SELECT ( - ( + col0 ) ) + - col2 * - cor0.col1 AS col1 FROM tab2 cor0
----
1456
567
830
onlyif mysql # use DIV operator for integer division
query I rowsort label-9354
SELECT ALL + + 28 + - col1 DIV col2 + + 41 AS col0 FROM tab1 AS cor0
----
69
69
69
skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + + 28 + - col1 / col2 + + 41 AS col0 FROM tab1 AS cor0
----
69
69
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9355
SELECT ALL col1 - col2 * CAST( + 7 AS SIGNED ) FROM tab1 AS cor0
----
-352
-389
-659
skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL col1 - col2 * CAST ( + 7 AS INTEGER ) FROM tab1 AS cor0
----
-352
-389
-659
query I rowsort
SELECT DISTINCT - 11 FROM tab2
----
-11
query I rowsort
SELECT - + ( col2 ) + col1 AS col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT DISTINCT - + 55 AS col1 FROM tab1 AS cor0
----
-55
query I rowsort
SELECT - - col2 + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT + 53 AS col2 FROM tab1 AS cor0
----
53
query I rowsort
SELECT ALL - 72 + col0 AS col2 FROM tab2 AS cor0
----
-65
6
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9362
SELECT + col0 DIV - col1 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-9362
SELECT + col0 / - col1 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT - col2 * col1 + + cor0.col0 - col0 * col1 FROM tab0 AS cor0
----
-15472
-3457
-4878
query I rowsort
SELECT ALL + - 66 FROM tab0, tab2 AS cor0
----
9 values hashing to a408108d423d7784b7d610cb779e515a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9365
SELECT - + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9365
SELECT - + col1 / col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL ( + col0 + - 28 ) * + col1 AS col1 FROM tab1
----
-650
360
676
query I rowsort
SELECT - - col0 * 46 FROM tab0 AS cor0
----
1104
1610
4094
query I rowsort
SELECT - - col0 * + 89 AS col2 FROM tab0 AS cor0
----
2136
3115
7921
query I rowsort
SELECT ALL - cor0.col1 * cor0.col2 + + col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + - cor0.col2 + 24 * col2 FROM tab2 AS cor0
----
598
621
874
query I rowsort
SELECT ALL + - col1 * + col0 + 84 AS col1 FROM tab0 AS cor0
----
-1980
-3311
-8015
query I rowsort
SELECT ALL col0 + ( col2 * col0 ) AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT - col2 + col1 * col2 AS col0 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT + col2 * col0 + - 8 AS col2 FROM tab0 cor0
----
27
7290
784
query I rowsort
SELECT + ( - col2 * + ( - col1 ) ) AS col0 FROM tab0
----
2838
7462
97
query I rowsort
SELECT DISTINCT - col0 + ( - col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL + - cor0.col1 * ( - 79 ) + col1 * col2 FROM tab2 AS cor0
----
1989
3286
6195
query I rowsort
SELECT + + cor0.col0 * + 48 AS col0 FROM tab0 AS cor0
----
1152
1680
4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-9379
SELECT ALL 63 DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-9379
SELECT ALL 63 / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9380
SELECT ALL - CAST( ( + col1 ) AS SIGNED ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort label-9380
SELECT ALL - CAST ( ( + col1 ) AS INTEGER ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-100
-169
-676
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 028fd38910121a0fa7c5b9a24c207cf0
query I rowsort
SELECT - ( 61 ) + + cor0.col0 FROM tab0 AS cor0
----
-26
-37
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-9383
SELECT - 98 DIV - col1 + 17 AS col1 FROM tab2 cor0
----
18
20
22
skipif mysql # not compatible
query I rowsort label-9383
SELECT - 98 / - col1 + 17 AS col1 FROM tab2 cor0
----
18
20
22
query I rowsort
SELECT + ( + col0 * col0 ) FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9385
SELECT DISTINCT cor0.col0 DIV + cor0.col2 FROM tab2, tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT cor0.col0 / + cor0.col2 FROM tab2, tab1 cor0
----
0
1
query I rowsort
SELECT + col0 + cor0.col2 * - 34 AS col0 FROM tab2 AS cor0
----
-1213
-806
-911
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col1 FROM tab1
----
1040
640
78
query I rowsort
SELECT 78 - 0 FROM tab1
----
78
78
78
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1
----
972 values hashing to 9364ef7545b07c67767dceb70f02c643
query I rowsort
SELECT ALL 24 FROM tab1
----
24
24
24
query I rowsort
SELECT DISTINCT - col2 * tab2.col1 * - col2 FROM tab2
----
22599
24548
39884
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9392
SELECT + CAST( col2 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-9392
SELECT + CAST ( col2 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + 51 * col0 AS col2 FROM tab2 AS cor0
----
357
3978
4029
query I rowsort
SELECT ALL - 51 * col2 AS col1 FROM tab1 AS cor0
----
-2754
-2907
-4896
query I rowsort
SELECT + + 2 * col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL col2 * + col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + + 0 * col1 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9398
SELECT ALL col0 * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL col0 * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + col0 col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 63 AS col0 FROM tab2
----
63
63
63
query I rowsort
SELECT DISTINCT - tab0.col1 FROM tab0, tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - 98 * - col1 FROM tab1
----
1274
2548
980
query I rowsort
SELECT ALL + ( - col1 ) * col1 AS col2 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT DISTINCT - 42 * col0 * col0 FROM tab1 cor0
----
-172032
-268800
-378
query I rowsort
SELECT 82 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab1, tab1 cor2
----
243 values hashing to f31a8ab881ea414a64db3cbb3dee97bc
query I rowsort
SELECT DISTINCT + ( + col2 ) * - col2 + 23 FROM tab2 AS cor0
----
-1421
-653
-706
query I rowsort
SELECT + + 7 * - cor0.col1 FROM tab1 AS cor0
----
-182
-70
-91
query I rowsort
SELECT ALL tab0.col2 * - 68 * col1 + + col2 FROM tab0
----
-192951
-507334
-6595
query I rowsort
SELECT ALL - col1 + 69 AS col1 FROM tab0 AS cor0
----
-17
-22
-28
query I rowsort
SELECT DISTINCT + - col1 + col1 + col0 AS col0 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT + - col2 * 84 + col1 FROM tab1 AS cor0
----
-4510
-4778
-8051
query I rowsort
SELECT ALL + - col2 * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9413
SELECT DISTINCT 25 DIV - col2 AS col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT 25 / - col2 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9414
SELECT DISTINCT - CAST( - 99 AS SIGNED ) + cor0.col0 AS col1 FROM tab0 cor0
----
123
134
188
skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT - CAST ( - 99 AS INTEGER ) + cor0.col0 AS col1 FROM tab0 cor0
----
123
134
188
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - - 48 FROM tab1 cor0
----
48
48
48
query I rowsort
SELECT - - ( + 24 ) + - col0 * + ( - 95 ) FROM tab2 AS cor0
----
689
7434
7529
query I rowsort
SELECT DISTINCT - + col0 * - 78 + - cor0.col1 FROM tab2 AS cor0
----
515
6025
6145
query I rowsort
SELECT - 46 AS col0 FROM tab0 AS cor0
----
-46
-46
-46
query I rowsort
SELECT ALL + col2 + col2 * cor0.col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT col0 * - col0 + + col0 FROM tab1
----
-4032
-6
-6320
query I rowsort
SELECT + col1 * - col1 + + col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT - + 91 - col0 * col2 * + col1 FROM tab1 AS cor0
----
-36571
-4303
-99931
query I rowsort
SELECT + col2 * - 91 FROM tab2
----
-2366
-2457
-3458
query I rowsort
SELECT DISTINCT - col0 + - tab1.col0 AS col2 FROM tab1
----
-128
-160
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col2 - ( + col0 + - 73 ) * - 67 col1 FROM tab0 AS cor0
----
-2547
-3316
990
query I rowsort
SELECT DISTINCT + + 33 + + col0 AS col1 FROM tab0 cor0
----
122
57
68
query I rowsort
SELECT - + ( - 52 ) * + col0 FROM tab0 AS cor0
----
1248
1820
4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 + + col1 col2 FROM tab1 AS cor0
----
70
73
86
query I rowsort
SELECT DISTINCT - col0 + + col1 FROM tab0 cor0
----
2
62
query I rowsort
SELECT DISTINCT + + 67 * ( col2 ) FROM tab1 AS cor0
----
3618
3819
6432
query I rowsort
SELECT col0 * col0 * col2 + + col1 AS col2 FROM tab0
----
1322
19094
649613
query I rowsort
SELECT 31 + col1 AS col0 FROM tab0 AS cor0
----
117
122
128
query I rowsort
SELECT DISTINCT - cor0.col0 * 31 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
-1085
-2759
-744
query I rowsort
SELECT ALL 92 * col1 FROM tab2
----
1564
2852
5428
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9437
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col1 ) AS col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ( + col2 + - col0 ) * + col1 AS col0 FROM tab2
----
-3068
-697
620
query I rowsort
SELECT - 58 * + col1 AS col2 FROM tab0
----
-4988
-5278
-5626
query I rowsort
SELECT DISTINCT + 83 FROM tab1
----
83
query I rowsort
SELECT ALL + 50 AS col1 FROM tab1, tab2, tab1 AS cor0, tab0
----
81 values hashing to 6932c991110d256d3f92f3e9538f8040
query I rowsort
SELECT ALL 12 FROM tab0, tab0 AS cor0
----
9 values hashing to d4f5a8e032294c3b9342821617800972
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT - 34 DIV + col0 FROM tab1
----
-11
0
0
skipif mysql # not compatible
query I rowsort label-9444
SELECT - 34 / + col0 FROM tab1
----
-11
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9445
SELECT col0 DIV col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9445
SELECT col0 / col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
18
32
60
query I rowsort
SELECT ALL + + col1 + 89 AS col0 FROM tab0 AS cor0
----
175
180
186
onlyif mysql # use DIV operator for integer division
query I rowsort label-9447
SELECT ALL + col2 + + ( col1 ) DIV cor0.col1 col2 FROM tab2 AS cor0
----
27
28
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL + col2 + + ( col1 ) / cor0.col1 col2 FROM tab2 AS cor0
----
27
28
39
query I rowsort
SELECT - + col0 * 37 + - col2 AS col2 FROM tab2 AS cor0
----
-286
-2912
-2961
query I rowsort
SELECT DISTINCT + col2 + + col2 AS col0 FROM tab1
----
108
114
192
query I rowsort
SELECT - col2 * - tab2.col0 + tab2.col2 + tab2.col2 * + col0 * - tab2.col0 FROM tab2
----
-1107
-156130
-234118
query I rowsort
SELECT DISTINCT + col0 * col1 AS col1 FROM tab1
----
1040
640
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9452
SELECT col2 + + col1 + CAST( 96 * col0 AS SIGNED ) FROM tab2
----
730
7573
7639
skipif mysql # not compatible
query I rowsort label-9452
SELECT col2 + + col1 + CAST ( 96 * col0 AS INTEGER ) FROM tab2
----
730
7573
7639
query I rowsort
SELECT ALL + col0 - + col1 * - 38 FROM tab0
----
3292
3547
3721
query I rowsort
SELECT 54 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9455
SELECT DISTINCT col2 + col2 DIV ( col2 * + col0 ) - col0 AS col2 FROM tab1
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT col2 + col2 / ( col2 * + col0 ) - col0 AS col2 FROM tab1
----
-7
16
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-9456
SELECT col0 * col0 DIV + CAST( col2 * col0 AS SIGNED ) AS col2 FROM tab0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9456
SELECT col0 * col0 / + CAST ( col2 * col0 AS INTEGER ) AS col2 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab0.col2 + + col1 * col2 col2 FROM tab0
----
2904
7626
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-9458
SELECT ALL col0 * + ( - col0 * + cor0.col2 ) + col2 DIV - col1 FROM tab2 AS cor0
----
-1323
-158184
-237160
skipif mysql # not compatible
query I rowsort label-9458
SELECT ALL col0 * + ( - col0 * + cor0.col2 ) + col2 / - col1 FROM tab2 AS cor0
----
-1323
-158184
-237160
query I rowsort
SELECT ALL - col0 * - 88 + cor0.col1 AS col1 FROM tab2 AS cor0
----
647
6923
6969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 col1 FROM tab2 cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + + col1 * CAST ( + col1 AS REAL ) * cor0.col1 + col1 - - col1 AS col0 FROM tab0 AS cor0
----
636228
753753
912867
query I rowsort
SELECT + col0 + + 15 FROM tab2 AS cor0
----
22
93
94
query I rowsort
SELECT - cor0.col1 * + col0 - + 43 AS col2 FROM tab0 AS cor0
----
-2107
-3438
-8142
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + col0 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT + + cor0.col1 + - cor0.col1 AS col0 FROM tab2 cor0
----
0
query I rowsort
SELECT - col0 + 20 FROM tab0 AS cor0
----
-15
-4
-69
query I rowsort
SELECT ALL + col0 * - col1 + col1 * col0 - col1 AS col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT ALL - col1 * + col1 + + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT + col2 - 17 * + col2 AS col0 FROM tab0 AS cor0
----
-1312
-16
-528
query I rowsort
SELECT + cor0.col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT + col2 + + ( - cor0.col1 ) FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT cor2.col1 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
query I rowsort
SELECT ALL - + col0 + + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT - - col1 * col2 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - col0 + - col0 FROM tab2 cor0
----
-14
-156
-158
query I rowsort
SELECT - 7 + - col0 FROM tab1 AS cor0
----
-10
-71
-87
query I rowsort
SELECT + tab1.col2 - col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT col0 + ( + 9 + - tab0.col0 ) AS col2 FROM tab0
----
9
9
9
query I rowsort
SELECT ( cor0.col0 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT col0 * + 48 FROM tab2
----
336
3744
3792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9483
SELECT CAST( + col1 + + col0 * 9 AS SIGNED ) AS col2 FROM tab2
----
728
761
94
skipif mysql # not compatible
query I rowsort label-9483
SELECT CAST ( + col1 + + col0 * 9 AS INTEGER ) AS col2 FROM tab2
----
728
761
94
query I rowsort
SELECT 44 AS col1 FROM tab0, tab2 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT DISTINCT - 82 FROM tab1
----
-82
query I rowsort
SELECT DISTINCT + ( - 6 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-6
query I rowsort
SELECT - + 72 FROM tab1 cor0
----
-72
-72
-72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 col1 FROM tab0 AS cor0
----
-86
-86
-86
query I rowsort
SELECT DISTINCT + ( col0 ) + col1 + col1 FROM tab2
----
113
196
69
query I rowsort
SELECT 69 * cor0.col0 AS col2 FROM tab2 AS cor0
----
483
5382
5451
query I rowsort
SELECT + cor0.col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL cor0.col2 + 6 AS col2 FROM tab1 AS cor0
----
102
60
63
query I rowsort
SELECT + col2 * - 9 AS col1 FROM tab1 AS cor0
----
-486
-513
-864
query I rowsort
SELECT DISTINCT col0 * 35 AS col0 FROM tab2
----
245
2730
2765
query I rowsort
SELECT - col0 * - ( - col0 ) * + col0 AS col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT col1 + col0 - col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + col1 + - col2 FROM tab0 cor0
----
53
9
96
query I rowsort
SELECT - + col0 + 7 * - ( + col2 ) AS col1 FROM tab0 AS cor0
----
-255
-42
-663
query I rowsort
SELECT ALL - + col1 + col1 * + 72 FROM tab0 AS cor0
----
6106
6461
6887
query I rowsort
SELECT ALL cor0.col0 + col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 + - col2 AS col1 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT - + 25 * - 38 - col2 * + 83 FROM tab2 AS cor0
----
-1208
-1291
-2204
query I rowsort
SELECT 48 FROM tab1, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
onlyif mysql # use DIV operator for integer division
query I rowsort label-9506
SELECT - ( col1 ) * col1 + col2 DIV - col1 AS col2 FROM tab2 AS cor0
----
-291
-3481
-961
skipif mysql # not compatible
query I rowsort label-9506
SELECT - ( col1 ) * col1 + col2 / - col1 AS col2 FROM tab2 AS cor0
----
-291
-3481
-961
query I rowsort
SELECT ALL + col1 * - col0 + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 + ( + col0 + ( - col1 ) ) * + col2 col0 FROM tab1 AS cor0
----
-1233
3087
6441
query I rowsort
SELECT - 81 + col1 AS col0 FROM tab2 AS cor0
----
-22
-50
-64
onlyif mysql # use DIV operator for integer division
query I rowsort label-9510
SELECT - + 2 + + cor0.col2 DIV + col0 FROM tab1 AS cor0
----
-1
-2
16
skipif mysql # not compatible
query I rowsort label-9510
SELECT - + 2 + + cor0.col2 / + col0 FROM tab1 AS cor0
----
-1
-2
16
query I rowsort
SELECT + 66 * col2 + col2 * - 20 AS col0 FROM tab1 AS cor0
----
2484
2622
4416
onlyif mysql # use DIV operator for integer division
query I rowsort label-9512
SELECT ALL + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9512
SELECT ALL + col2 / + col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * - col0 * 80 + - col0 AS col0 FROM tab2 cor0
----
3913
486642
499201
query I rowsort
SELECT col0 * col2 + + col0 * + col2 * - cor0.col2 AS col1 FROM tab1 cor0
----
-204288
-729600
-8586
query I rowsort
SELECT col2 * - cor0.col0 + + 98 FROM tab2 AS cor0
----
-1930
-2904
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 56 * - cor0.col1 col1 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT DISTINCT - + 89 * col0 + cor0.col0 * - 47 FROM tab1 AS cor0
----
-10880
-408
-8704
query I rowsort
SELECT ALL col1 + col2 * ( - 55 ) FROM tab2 AS cor0
----
-1371
-1454
-2073
query I rowsort
SELECT DISTINCT + + 85 * col0 + ( col2 ) + + col0 FROM tab2 cor0
----
629
6734
6832
query I rowsort
SELECT ( - col0 ) * - col1 AS col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 19 AS col2 FROM tab2
----
19
query I rowsort
SELECT col0 * tab2.col0 * col0 + - col2 FROM tab2
----
316
474526
493001
query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col1 = NULL
----
query I rowsort
SELECT ALL - tab0.col0 * + col0 * col1 + col1 AS col2 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT - col2 * + tab0.col0 + col2 AS col1 FROM tab0
----
-34
-7216
-759
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 <> col1
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + tab0.col0 + + col2 AS col0 FROM tab0
----
171
36
57
query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT DISTINCT col1 * - tab0.col1 - + col1 FROM tab0
----
-7482
-8372
-9506
query I rowsort
SELECT - col1 + + tab2.col1 * tab2.col1 AS col2 FROM tab2
----
272
3422
930
query I rowsort
SELECT DISTINCT + tab1.col2 * + col2 AS col0 FROM tab1
----
2916
3249
9216
query I rowsort
SELECT ALL col2 * tab1.col2 * col2 FROM tab1
----
157464
185193
884736
query I rowsort
SELECT ALL - col0 FROM tab2 WHERE ( NULL ) BETWEEN ( col1 / col2 ) AND ( + col1 + tab2.col1 )
----
query I rowsort
SELECT DISTINCT + col0 * col1 - col0 FROM tab1
----
576
75
960
query I rowsort
SELECT ALL - col0 * col1 * - col1 + + col0 FROM tab2
----
22910
271596
6734
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NULL >= NULL
----
query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT - col2 <> NULL
----
query I rowsort
SELECT + col2 + - col1 * col1 FROM tab2
----
-251
-3455
-934
query I rowsort
SELECT + tab2.col0 + + col2 FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
query I rowsort
SELECT - col0 - - col2 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT tab2.col2 * col2 + + tab2.col2 * - col1 AS col0 FROM tab2
----
-108
-858
798
query I rowsort
SELECT ALL + col1 + col1 * col2 AS col1 FROM tab2
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col0 + - tab0.col0 col1 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT - col2 * col0 - - col2 FROM tab2
----
-162
-2002
-2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9546
SELECT ALL + col2 + col2 - col1 DIV + col0 AS col0 FROM tab2
----
50
52
76
skipif mysql # not compatible
query I rowsort label-9546
SELECT ALL + col2 + col2 - col1 / + col0 AS col0 FROM tab2
----
50
52
76
query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( cor0.col1 * + cor0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9548
SELECT DISTINCT col1 DIV col1 - - col1 AS col1 FROM tab2
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9548
SELECT DISTINCT col1 / col1 - - col1 AS col1 FROM tab2
----
18
32
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-9549
SELECT ALL col0 DIV col0 + tab0.col1 * col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-9549
SELECT ALL col0 / col0 + tab0.col1 * col0 FROM tab0
----
2065
3396
8100
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 + col1 * + col1 col2 FROM tab2
----
3618
385
999
query I rowsort
SELECT ALL - col2 + col1 * + col2 + col0 * col1 AS col2 FROM tab0
----
15479
3491
4869
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col0 FROM tab2
----
104
117
34
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( tab1.col0 / + col2 - col0 )
----
query I rowsort
SELECT col1 * col2 * + col0 + col2 AS col1 FROM tab2
----
119678
51072
5886
query I rowsort
SELECT DISTINCT col2 * col2 + - col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT DISTINCT tab1.col0 * col0 AS col2 FROM tab1
----
4096
6400
9
query I rowsort
SELECT ALL + col2 + - col0 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
118826
49569
720893
query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9559
SELECT DISTINCT col2 DIV - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9559
SELECT DISTINCT col2 / - col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-9560
SELECT + col0 DIV - 86 col0 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9560
SELECT + col0 / - 86 col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL + cor0.col2 * - 79 AS col2 FROM tab2 cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to d70bd9f6e20da79f8c1d7747e8af98fd
onlyif mysql # use DIV operator for integer division
query I rowsort label-9562
SELECT ALL + col0 DIV - col0 + col1 + col0 FROM tab1
----
28
73
92
skipif mysql # not compatible
query I rowsort label-9562
SELECT ALL + col0 / - col0 + col1 + col0 FROM tab1
----
28
73
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + col1 + + col1 * col0 col0 FROM tab0
----
2117
3491
8108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9564
SELECT ALL CAST( - 43 AS SIGNED ) FROM tab0, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL CAST ( - 43 AS INTEGER ) FROM tab0, tab2 AS cor0
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a
onlyif mysql # use DIV operator for integer division
query I rowsort label-9565
SELECT ALL col1 DIV ( ( - col1 ) * 76 ) AS col0 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9565
SELECT ALL col1 / ( ( - col1 ) * 76 ) AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + col0 * col0 + + 52 AS col0 FROM tab1 AS cor0
----
4148
61
6452
query I rowsort
SELECT DISTINCT + + col2 * 99 AS col2 FROM tab2 AS cor0
----
2574
2673
3762
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( - col2 AS REAL ) FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT - + cor0.col2 DIV - 71 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9569
SELECT - + cor0.col2 / - 71 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT + 43 + - col2 AS col1 FROM tab0 AS cor0
----
-39
10
42
query I rowsort
SELECT - 14 * col1 + - col0 * + col2 * + cor0.col2 FROM tab2 AS cor0
----
-114314
-53554
-5537
query I rowsort
SELECT + cor0.col1 / cor0.col2 AS col0 FROM tab2, tab1 AS cor0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT + cor0.col1 + col2 * col1 FROM tab0 AS cor0
----
194
2924
7553
query IIIIIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2, tab1 cor2, tab0
----
13122 values hashing to 0dce7b35715021d26b9dbd7688500eca
query I rowsort
SELECT 34 FROM tab0 cor0
----
34
34
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-9576
SELECT DISTINCT col1 * - cor0.col0 + + col2 + 56 DIV col1 AS col2 FROM tab2 AS cor0
----
-1302
-189
-4576
skipif mysql # not compatible
query I rowsort label-9576
SELECT DISTINCT col1 * - cor0.col0 + + col2 + 56 / col1 AS col2 FROM tab2 AS cor0
----
-1302
-189
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-9577
SELECT DISTINCT - - col2 * cor0.col2 + + col1 DIV col0 AS col2 FROM tab1 AS cor0
----
2924
3249
9216
skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT - - col2 * cor0.col2 + + col1 / col0 AS col2 FROM tab1 AS cor0
----
2924
3249
9216
query I rowsort
SELECT 2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 6d1be3904d6870ba21bc766b979d1110
query I rowsort
SELECT ALL - col2 + cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT 42 * cor0.col0 * ( 89 * col1 ) FROM tab2 cor0
----
17202276
5020134
811146
query I rowsort
SELECT ALL + - col1 - + col1 * + cor0.col0 * 5 AS col1 FROM tab1 AS cor0
----
-3210
-416
-5213
query I rowsort
SELECT 99 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL - - col0 * - col0 + - col0 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT col0 * ( - col2 ) + + col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT col0 * - 69 + col0 - col2 AS col1 FROM tab0 AS cor0
----
-1665
-2381
-6134
query I rowsort
SELECT + cor0.col2 * - cor0.col1 + - ( - col1 ) - + col0 FROM tab2 AS cor0
----
-1553
-708
-813
query I rowsort
SELECT 0 + col1 FROM tab2
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-9588
SELECT 21 DIV col1 + col1 * - 26 FROM tab2
----
-1534
-441
-806
skipif mysql # not compatible
query I rowsort label-9588
SELECT 21 / col1 + col1 * - 26 FROM tab2
----
-1534
-441
-806
query I rowsort
SELECT - 4 AS col1 FROM tab2
----
-4
-4
-4
query I rowsort
SELECT DISTINCT + 55 FROM tab1
----
55
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab2
----
60
query I rowsort
SELECT DISTINCT - 19 AS col1 FROM tab0
----
-19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 61 col0 FROM tab0
----
61
query I rowsort
SELECT ALL - 28 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115
query I rowsort
SELECT - + col1 * col2 * col2 + 41 * col0 AS col2 FROM tab1 AS cor0
----
-116528
-29866
-75693
query I rowsort
SELECT + + ( + col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT 0 * col0 + - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL - - 58 + col2 FROM tab2 cor0
----
84
85
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9599
SELECT ALL - col1 + - col0 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9599
SELECT ALL - col1 + - col0 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col1 * + col0 * col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-9601
SELECT - + 2 + + col1 DIV col0 col0 FROM tab0 AS cor0
----
-1
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9601
SELECT - + 2 + + col1 / col0 col0 FROM tab0 AS cor0
----
-1
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9602
SELECT DISTINCT - 68 DIV - col2 FROM tab0
----
0
2
68
skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT - 68 / - col2 FROM tab0
----
0
2
68
query I rowsort
SELECT + ( col1 * col1 ) FROM tab0
----
7396
8281
9409
query I rowsort
SELECT + cor0.col2 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
132
2862
7551
query I rowsort
SELECT - - col2 * 60 + col1 AS col1 FROM tab1 cor0
----
3266
3430
5773
query I rowsort
SELECT DISTINCT + col0 + - col1 * - 21 * + col2 FROM tab1
----
12034
26288
29487
query I rowsort
SELECT DISTINCT col2 + col1 * col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT + cor0.col0 + - col0 - cor0.col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT + cor0.col2 + + 81 FROM tab1 AS cor0
----
135
138
177
query I rowsort
SELECT + 89 * - col1 FROM tab1
----
-1157
-2314
-890
query I rowsort
SELECT DISTINCT - tab2.col0 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT ALL - ( tab0.col0 ) AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT 21 * cor1.col2 - 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-17
1684
655
query I rowsort
SELECT DISTINCT - - col1 + - 91 * + col0 FROM tab1 AS cor0
----
-247
-5814
-7267
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2, tab2 AS cor0, tab2 cor1
----
7
78
79
query I rowsort
SELECT col0 + - col0 * 32 * col0 AS col1 FROM tab1
----
-131008
-204720
-285
query I rowsort
SELECT + - col1 * ( cor0.col2 ) + - cor0.col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab1 AS cor2, tab1 cor3
----
3645 values hashing to 655f6fd9cf6e184579b05940dc91f4cb
query I rowsort
SELECT ALL - 93 + - col0 FROM tab2 AS cor0
----
-100
-171
-172
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9620
SELECT - CAST( NULL AS SIGNED ) + col0 * - cor0.col2 / + 19 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9620
SELECT - CAST ( NULL AS INTEGER ) + col0 * - cor0.col2 / + 19 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + cor0.col2 * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT 71 * - col1 FROM tab1 cor0
----
-1846
-710
-923
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT - 59 * col2 + col0 * - 9 FROM tab2 cor0
----
-1656
-2236
-2953
onlyif mysql # use DIV operator for integer division
query I rowsort label-9625
SELECT ALL + col2 DIV + col2 col1 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + col2 / + col2 col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + tab0.col2 + - col1 + - col1 * col0 AS col2 FROM tab0
----
-2117
-3491
-8108
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9627
SELECT DISTINCT - col0 * - CAST( col1 AS SIGNED ) FROM tab1
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT - col0 * - CAST ( col1 AS INTEGER ) FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT - col1 - - 99 DIV col2 AS col2 FROM tab0
----
-83
-90
2
skipif mysql # not compatible
query I rowsort label-9628
SELECT - col1 - - 99 / col2 AS col2 FROM tab0
----
-83
-90
2
query I rowsort
SELECT col0 * col0 * - tab0.col0 + col1 * col2 FROM tab0
----
-10986
-42778
-697507
query I rowsort
SELECT DISTINCT ( + tab0.col1 ) AS col0 FROM tab0, tab0 cor0
----
86
91
97
query I rowsort
SELECT col2 - + 13 FROM tab0
----
-12
20
69
query I rowsort
SELECT ALL col0 + - 16 AS col0 FROM tab1
----
-13
48
64
query I rowsort
SELECT + cor0.col1 + + col2 * + col0 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - col0 - + cor0.col0 AS col0 FROM tab0 AS cor0
----
-178
-48
-70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9635
SELECT ALL + CAST( cor0.col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL + CAST ( cor0.col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ( 90 ) FROM tab0 AS cor0
----
90
90
90
query I rowsort
SELECT ALL col0 - + 13 FROM tab1 AS cor0
----
-10
51
67
query I rowsort
SELECT ALL - - cor0.col0 + + col0 * col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT + cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + - cor0.col2 * col0 FROM tab2 AS cor0
----
-189
-2028
-3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9641
SELECT - - ( col1 ) + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
118
34
62
skipif mysql # not compatible
query I rowsort label-9641
SELECT - - ( col1 ) + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + 96 FROM tab2
----
96
96
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9643
SELECT - col2 * col0 DIV tab2.col0 AS col2 FROM tab2
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9643
SELECT - col2 * col0 / tab2.col0 AS col2 FROM tab2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - 46 - 79 col0 FROM tab2 AS cor0
----
-118
-46
-47
query I rowsort
SELECT DISTINCT + + col0 * - ( - 66 ) FROM tab0 AS cor0
----
1584
2310
5874
query I rowsort
SELECT + - col0 + + 31 - + cor0.col2 AS col1 FROM tab0 AS cor0
----
-140
-26
-5
query I rowsort
SELECT ALL + col0 * 63 AS col0 FROM tab0 AS cor0
----
1512
2205
5607
query I rowsort
SELECT ALL + + col2 * cor0.col2 + - col0 + 22 AS col0 FROM tab0 AS cor0
----
-12
1087
6657
query I rowsort
SELECT ALL - 22 + col1 FROM tab2 cor0
----
-5
37
9
query I rowsort
SELECT DISTINCT + - col1 * + col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 AS col1 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT ALL col1 * col0 + col0 * col2 * + col1 AS col2 FROM tab0 AS cor0
----
672217
6790
70176
onlyif mysql # use DIV operator for integer division
query I rowsort label-9653
SELECT - 11 DIV 42 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9653
SELECT - 11 / 42 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL col0 + col2 * - col2 FROM tab0 AS cor0
----
-1065
-6635
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9655
SELECT DISTINCT col0 * - cor0.col2 + CAST( + col0 AS SIGNED ) * + cor0.col0 FROM tab1 AS cor0
----
-1280
-153
448
skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT col0 * - cor0.col2 + CAST ( + col0 AS INTEGER ) * + cor0.col0 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT DISTINCT + - col0 * - col1 + + col2 * - col1 AS col2 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT 41 * col1 - - 82 AS col1 FROM tab2 AS cor0
----
1353
2501
779
query I rowsort
SELECT ALL - + 59 AS col1 FROM tab1 AS cor0
----
-59
-59
-59
query I rowsort
SELECT + ( + col1 ) + + 28 FROM tab1 AS cor0
----
38
41
54
query I rowsort
SELECT DISTINCT 66 - col1 FROM tab2
----
35
49
7
query I rowsort
SELECT 4 - - cor0.col0 * ( col0 ) FROM tab0 AS cor0
----
1229
580
7925
query I rowsort
SELECT DISTINCT cor0.col2 * col0 + + col1 + - 22 * col2 FROM tab1 AS cor0
----
-1000
2404
5581
onlyif mysql # use DIV operator for integer division
query I rowsort label-9663
SELECT DISTINCT col0 * col1 - cor0.col0 DIV 40 FROM tab1 AS cor0
----
1038
639
78
skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT col0 * col1 - cor0.col0 / 40 FROM tab1 AS cor0
----
1038
639
78
query I rowsort
SELECT ALL + col2 - col2 AS col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + col1 + col2 * ( col0 ) AS col1 FROM tab1 AS cor0
----
-514
3548
7511
query I rowsort
SELECT + tab0.col1 * + tab0.col0 AS col0 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9667
SELECT DISTINCT col2 * + ( col1 ) + col2 + col1 DIV + 67 col2 FROM tab0 AS cor0
----
2872
7545
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9667
SELECT DISTINCT col2 * + ( col1 ) + col2 + col1 / + 67 col2 FROM tab0 AS cor0
----
2872
7545
99
query I rowsort
SELECT + + cor0.col2 * - 66 AS col2 FROM tab2 cor0
----
-1716
-1782
-2508
query I rowsort
SELECT DISTINCT + + cor0.col2 * - ( col0 + cor0.col0 ) FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT ( - col1 + + 11 ) * - col1 FROM tab1
----
-10
26
390
query I rowsort
SELECT DISTINCT + 2 + - col2 AS col0 FROM tab0
----
-31
-80
1
query I rowsort
SELECT - - col2 * - ( + col0 ) * 21 FROM tab0 AS cor0
----
-153258
-16632
-735
query I rowsort
SELECT DISTINCT col2 + + col1 * - col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT 34 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039
query I rowsort
SELECT ALL - 97 * - 52 FROM tab0 cor0
----
5044
5044
5044
query I rowsort
SELECT + + col2 * - ( col0 ) FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9677
SELECT DISTINCT + col1 DIV - ( - col0 ) AS col1 FROM tab1 AS cor0
----
0
8
skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT + col1 / - ( - col0 ) AS col1 FROM tab1 AS cor0
----
0
8
query I rowsort
SELECT ALL - + col1 * cor0.col1 - - col2 * + cor0.col1 FROM tab0 cor0
----
-4558
-819
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + col2 col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - 27 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT col2 + ( - 47 ) * tab1.col0 FROM tab1
----
-2951
-3664
-87
query I rowsort
SELECT - 75 FROM tab2, tab1 cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547
query I rowsort
SELECT tab1.col0 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL col2 * + col2 * tab2.col1 + - ( col2 ) AS col1 FROM tab2
----
22572
24510
39858
query I rowsort
SELECT col2 * col0 + + col2 * - ( 87 ) FROM tab1
----
-1311
-4536
-672
query I rowsort
SELECT ALL + tab1.col2 - + col2 * col2 FROM tab1
----
-2862
-3192
-9120
query I rowsort
SELECT col0 * + col0 + + tab0.col1 * - col1 * - col0 FROM tab0
----
178080
330540
744930
query I rowsort
SELECT + 79 * + 6 - col1 FROM tab0 AS cor0
----
377
383
388
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - + ( + col2 ) * col2 - CAST ( col2 AS REAL ) FROM tab1 AS cor0
----
-2970
-3306
-9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 75 + col0 col1 FROM tab0 AS cor0
----
-40
-51
14
query I rowsort
SELECT ( - col0 ) - cor0.col1 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT - 95 FROM tab0 AS cor0
----
-95
-95
-95
query I rowsort
SELECT ALL - ( 36 ) AS col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 3bcd07d22b62d2042b499253b1c13d9e
query I rowsort
SELECT + col2 * - ( tab1.col0 ) * 5 FROM tab1
----
-18240
-38400
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9695
SELECT CAST( NULL AS DECIMAL ) / tab1.col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9695
SELECT CAST ( NULL AS REAL ) / tab1.col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab2.col2 + - col2 AS col0 FROM tab2
----
0
query I rowsort
SELECT ALL - 80 FROM tab0
----
-80
-80
-80
query I rowsort
SELECT ( col1 ) * - col1 AS col0 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + ( + 1 ) * - col0 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT tab0.col2 + - 53 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 489aaec3eca4faa1805756c853c4f643
query I rowsort
SELECT ALL 45 * col0 AS col0 FROM tab0
----
1080
1575
4005
query I rowsort
SELECT cor1.col2 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL 34 AS col2 FROM tab0
----
34
34
34
query I rowsort
SELECT ALL ( tab1.col1 ) * - ( tab1.col1 ) * + col1 FROM tab1
----
-1000
-17576
-2197
query I rowsort
SELECT + - 85 FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT + col0 - cor0.col1 * col2 AS col1 FROM tab1 AS cor0
----
-1168
-1401
-506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 * col1 - 64 col1 FROM tab0 cor0
----
4752
5032
5368
query I rowsort
SELECT - col1 * ( + col0 * + col1 ) + col2 * + col1 * tab2.col2 AS col2 FROM tab2
----
-231634
15872
1717
query I rowsort
SELECT - 36 FROM tab2, tab2 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-9711
SELECT DISTINCT tab0.col2 DIV - tab0.col1 AS col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort label-9711
SELECT DISTINCT tab0.col2 / - tab0.col1 AS col0 FROM tab0
----
0
query I rowsort
SELECT + cor0.col1 * + col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT ALL - ( + 94 ) FROM tab0, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT cor0.col2 + + col0 + + col0 * col2 FROM tab1 AS cor0
----
219
3769
7856
query I rowsort
SELECT DISTINCT - + cor0.col2 * col0 + + cor0.col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT 97 * - col0 AS col2 FROM tab0 AS cor0
----
-2328
-3395
-8633
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 31 * cor0.col2 col2 FROM tab0 AS cor0
----
1056
2624
32
query I rowsort
SELECT cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT + - ( + col1 ) * cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9720
SELECT + CAST( NULL AS SIGNED ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9720
SELECT + CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col1 ) * cor0.col1 * + ( col0 ) FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT ALL - + col1 + col1 * - col0 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT DISTINCT - 39 * + col0 + col2 FROM tab2 AS cor0
----
-246
-3016
-3043
onlyif mysql # use DIV operator for integer division
query I rowsort label-9724
SELECT col0 DIV + 92 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9724
SELECT col0 / + 92 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * + 50 + + cor0.col1 FROM tab1 AS cor0
----
-1274
-490
-637
query I rowsort
SELECT ALL col0 + col0 AS col1 FROM tab2 AS cor0
----
14
156
158
onlyif mysql # use DIV operator for integer division
query I rowsort label-9727
SELECT DISTINCT - - col0 DIV - col1 - col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
skipif mysql # not compatible
query I rowsort label-9727
SELECT DISTINCT - - col0 / - col1 - col1 * + col2 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT 84 * + col1 FROM tab1
----
1092
2184
840
query I rowsort
SELECT ALL - ( - col2 ) * + col1 + - col2 + tab1.col1 * 83 FROM tab1
----
1343
2231
3508
query I rowsort
SELECT 80 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col2 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9732
SELECT - col2 * + CAST( 44 + + col1 * - col0 AS SIGNED ) FROM tab0 AS cor0
----
3351
660510
66660
skipif mysql # not compatible
query I rowsort label-9732
SELECT - col2 * + CAST ( 44 + + col1 * - col0 AS INTEGER ) FROM tab0 AS cor0
----
3351
660510
66660
query I rowsort
SELECT ALL + tab0.col1 * - 61 + 10 AS col1 FROM tab0
----
-5236
-5541
-5907
onlyif mysql # use DIV operator for integer division
query I rowsort label-9734
SELECT ALL col0 * tab0.col1 DIV + col0 + - tab0.col2 AS col2 FROM tab0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-9734
SELECT ALL col0 * tab0.col1 / + col0 + - tab0.col2 AS col2 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9735
SELECT ALL col2 - + 42 DIV - ( - col1 ) FROM tab1 AS cor0
----
53
53
93
skipif mysql # not compatible
query I rowsort label-9735
SELECT ALL col2 - + 42 / - ( - col1 ) FROM tab1 AS cor0
----
53
53
93
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 cor0, tab2 cor1, tab1, tab0 AS cor2
----
3645 values hashing to 95cc5fe1844e2fb00b447bbee94ccc5e
query I rowsort
SELECT - + col0 * + col2 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 * 40 FROM tab2 AS cor0
----
280
3120
3160
skipif mysql # not compatible
query I rowsort
SELECT col0 * CAST ( + ( + col1 ) AS REAL ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT - 88 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2
query I rowsort
SELECT + 33 * col0 AS col1 FROM tab1
----
2112
2640
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 0 col2 FROM tab2, tab1, tab2 cor0
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9743
SELECT - + CAST( + 47 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
1128
1645
4183
skipif mysql # not compatible
query I rowsort label-9743
SELECT - + CAST ( + 47 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
1128
1645
4183
onlyif mysql # use DIV operator for integer division
query I rowsort label-9744
SELECT + col2 * col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9744
SELECT + col2 * col1 / - col1 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + cor0.col0 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 10977325261681ddca962e0a5d2b348b
query I rowsort
SELECT - + cor0.col1 * col2 + 21 - + col1 FROM tab0 cor0
----
-173
-2903
-7532
query I rowsort
SELECT + col1 * col2 + 9 AS col1 FROM tab2 AS cor0
----
1543
655
846
onlyif mysql # use DIV operator for integer division
query I rowsort label-9748
SELECT DISTINCT + 98 * cor0.col1 DIV 99 AS col0 FROM tab2 AS cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + 98 * cor0.col1 / 99 AS col0 FROM tab2 AS cor0
----
16
30
58
query I rowsort
SELECT cor0.col0 - - col1 FROM tab1 cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 56 col0 FROM tab1 AS cor0
----
-56
-56
-56
query I rowsort
SELECT + - ( col2 ) * col0 * col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + col2 col0 FROM tab0 cor0
----
111
30
62
query I rowsort
SELECT ALL - col2 * + tab0.col1 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL - ( col0 ) + + col1 AS col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT - + col1 + col2 - + col0 FROM tab0 AS cor0
----
-131
-77
-98
query I rowsort
SELECT 36 AS col1 FROM tab1
----
36
36
36
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9757
SELECT DISTINCT col1 * col2 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT col1 * col2 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - - 64 * col1 + + col1 FROM tab2 AS cor0
----
1105
2015
3835
query I rowsort
SELECT DISTINCT col1 * + col2 + ( 14 * + col1 ) + 20 AS col1 FROM tab0
----
1475
4062
8756
query I rowsort
SELECT + cor0.col2 - col0 * 70 * 98 FROM tab0 cor0
----
-164607
-240099
-610458
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9761
SELECT ALL col0 * col1 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1264
210
4524
skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL col0 * col1 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT col2 + + col0 * - 55 FROM tab2 AS cor0
----
-358
-4264
-4307
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 + col1 col0 FROM tab2 AS cor0
----
33
47
75
query I rowsort
SELECT DISTINCT ( - 7 ) FROM tab0
----
-7
query I rowsort
SELECT DISTINCT + col0 + + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + col2 * col1 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT ALL + + col2 - col0 AS col1 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT DISTINCT - 29 * - col1 AS col2 FROM tab2 cor0
----
1711
493
899
query I rowsort
SELECT DISTINCT + col1 * + col0 * - col2 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col1 * 21 FROM tab1 cor0
----
210
273
546
query I rowsort
SELECT col2 + + ( ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT + col2 * + 73 AS col2 FROM tab1 cor0
----
3942
4161
7008
query I rowsort
SELECT DISTINCT col1 - col2 FROM tab0
----
53
9
96
query I rowsort
SELECT col0 + - tab2.col1 AS col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + 19 + tab1.col2 FROM tab1
----
115
73
76
query I rowsort
SELECT - col2 * - col2 + col0 AS col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT cor1.col2 AS col2 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
1
33
82
query I rowsort
SELECT 11 + col2 + - 68 FROM tab2
----
-19
-30
-31
query I rowsort
SELECT ALL col1 * col1 - ( 67 ) FROM tab0
----
7329
8214
9342
query I rowsort
SELECT col2 + tab0.col2 - 57 * - col1 FROM tab0
----
4968
5351
5531
query I rowsort
SELECT DISTINCT col1 - tab0.col0 FROM tab0
----
2
62
query I rowsort
SELECT DISTINCT - + col0 * 7 + - col0 FROM tab2 AS cor0
----
-56
-624
-632
query I rowsort
SELECT DISTINCT - + ( + 19 ) + col1 * + cor0.col1 + 11 * col2 AS col1 FROM tab1 AS cor0
----
1206
1251
708
query I rowsort
SELECT ALL - ( + 33 ) * col2 FROM tab2 AS cor0
----
-1254
-858
-891
query I rowsort
SELECT + 71 * cor0.col1 * col0 AS col2 FROM tab1 AS cor0
----
45440
5538
73840
query I rowsort
SELECT ALL ( + cor0.col2 ) + - col2 * - col1 + col0 AS col1 FROM tab2 AS cor0
----
1638
763
871
query I rowsort
SELECT ALL + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT 26 * - 26 + - col1 * + col0 FROM tab1 AS cor0
----
-1316
-1716
-754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9789
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9789
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col2 * ( - col2 ) * col2 AS col1 FROM tab2
----
-17576
-19683
-54872
query I rowsort
SELECT DISTINCT 89 FROM tab2, tab0 AS cor0
----
89
query I rowsort
SELECT - ( col1 + + col2 ) FROM tab2
----
-55
-58
-85
query I rowsort
SELECT col2 * col0 * tab1.col1 + 70 FROM tab1
----
36550
4282
99910
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 49 * ( col2 * - col1 ) col2 FROM tab0
----
-139029
-365556
-4752
query I rowsort
SELECT - 17 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
query I rowsort
SELECT DISTINCT 30 FROM tab0, tab1 cor0
----
30
query I rowsort
SELECT DISTINCT - col2 + col2 AS col2 FROM tab2
----
0
query I rowsort
SELECT - col1 + - 11 + col1 FROM tab0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-9799
SELECT col2 DIV + 5 FROM tab0
----
0
16
6
skipif mysql # not compatible
query I rowsort label-9799
SELECT col2 / + 5 FROM tab0
----
0
16
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT DISTINCT - tab2.col1 DIV col0 AS col0 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-9800
SELECT DISTINCT - tab2.col1 / col0 AS col0 FROM tab2
----
-4
0
query I rowsort
SELECT DISTINCT col2 * 91 AS col2 FROM tab2
----
2366
2457
3458
query I rowsort
SELECT ALL tab0.col2 * 24 FROM tab0
----
1968
24
792
query I rowsort
SELECT DISTINCT col1 * - col2 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + 54 FROM tab0 AS cor0
----
54
54
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-9805
SELECT ALL ( cor0.col0 ) DIV col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-9805
SELECT ALL ( cor0.col0 ) / col1 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ( col2 ) + cor0.col2 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT DISTINCT - ( - 13 ) FROM tab2 AS cor0
----
13
query I rowsort
SELECT + 85 FROM tab1 AS cor0
----
85
85
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-9809
SELECT ALL + + ( cor0.col2 ) DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + + ( cor0.col2 ) / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT - col1 + col1 * - col0 * ( col1 ) AS col2 FROM tab1 cor0
----
-13533
-2054
-6410
query I rowsort
SELECT ALL + col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT + - col1 * + cor0.col2 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT - col2 + col2 + + col0 * + col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL col1 * - 72 - tab0.col2 FROM tab0
----
-6225
-6634
-6985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col2 + col0 + col1 col1 FROM tab1
----
1341
1433
644
query I rowsort
SELECT ALL + 34 FROM tab1 AS cor0
----
34
34
34
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 col0 * col0 - col2 FROM tab0 AS cor0
----
1224
543
7839
query I rowsort
SELECT DISTINCT 96 AS col1 FROM tab0 AS cor0
----
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-9820
SELECT - 82 + + col2 DIV col0 AS col1 FROM tab2 AS cor0
----
-79
-82
-82
skipif mysql # not compatible
query I rowsort label-9820
SELECT - 82 + + col2 / col0 AS col1 FROM tab2 AS cor0
----
-79
-82
-82
query I rowsort
SELECT DISTINCT + col0 * + col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT - 30 * + col0 AS col0 FROM tab0 AS cor0
----
-1050
-2670
-720
onlyif mysql # use DIV operator for integer division
query I rowsort label-9823
SELECT ALL + - cor0.col1 DIV + col2 + - col0 FROM tab0 AS cor0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-9823
SELECT ALL + - cor0.col1 / + col2 + - col0 FROM tab0 AS cor0
----
-132
-26
-90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9824
SELECT DISTINCT - col0 * col1 DIV - 20 AS col2 FROM tab1 AS cor0
----
3
32
52
skipif mysql # not compatible
query I rowsort label-9824
SELECT DISTINCT - col0 * col1 / - 20 AS col2 FROM tab1 AS cor0
----
3
32
52
query I rowsort
SELECT ALL ( col1 ) AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col0 + + cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-9827
SELECT ALL - - 7 * col1 - col1 DIV col0 FROM tab0 cor0
----
599
636
677
skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - - 7 * col1 - col1 / col0 FROM tab0 cor0
----
599
636
677
query I rowsort
SELECT DISTINCT + + col2 * + col2 + ( - 37 * - cor0.col1 ) FROM tab0 AS cor0
----
10091
3590
4271
query I rowsort
SELECT 82 * cor0.col1 FROM tab2 AS cor0
----
1394
2542
4838
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 + + 71 col2 FROM tab2 AS cor0
----
133
47
90
query I rowsort
SELECT - + 62 * + col0 + ( + col1 ) AS col0 FROM tab0 AS cor0
----
-1402
-2073
-5427
query I rowsort
SELECT 90 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9833
SELECT ALL CAST( NULL AS DECIMAL ) + 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL CAST ( NULL AS REAL ) + 73 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - - 87 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
87
query I rowsort
SELECT ALL + col2 * 50 AS col2 FROM tab2 cor0
----
1300
1350
1900
query I rowsort
SELECT - - col1 * 29 FROM tab1 AS cor0
----
290
377
754
query I rowsort
SELECT + col1 + ( col1 ) AS col1 FROM tab1 AS cor0
----
20
26
52
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 25b043ae64f25e8f205735b09d2d3d6a
query I rowsort
SELECT DISTINCT 93 AS col0 FROM tab2, tab2 AS cor0
----
93
query I rowsort
SELECT col2 * col1 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT 35 + + col0 * col2 + + ( - col0 * col0 + - col0 ) FROM tab1
----
-477
1235
185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 65 ) col1 FROM tab1
----
65
65
65
query I rowsort
SELECT + 42 * + col1 FROM tab1
----
1092
420
546
query I rowsort
SELECT + 45 + col1 * col1 FROM tab2
----
1006
334
3526
query I rowsort
SELECT ALL + 96 + + col1 AS col2 FROM tab1 AS cor0
----
106
109
122
query I rowsort
SELECT ALL ( - col0 ) * ( col2 ) * col1 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT DISTINCT + col2 + cor0.col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT DISTINCT - col0 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT ALL col0 + col2 * - col2 FROM tab1 AS cor0
----
-2913
-3185
-9136
onlyif mysql # use DIV operator for integer division
query I rowsort label-9850
SELECT + - col2 DIV col2 + col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-9850
SELECT + - col2 / col2 + col2 FROM tab0 AS cor0
----
0
32
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9851
SELECT col0 DIV + ( - tab1.col1 + col1 * + col0 ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9851
SELECT col0 / + ( - tab1.col1 + col1 * + col0 ) FROM tab1
----
0
0
0
query I rowsort
SELECT col1 * - col1 * col0 FROM tab1
----
-13520
-2028
-6400
query I rowsort
SELECT - 64 + + col0 FROM tab1
----
-61
0
16
query I rowsort
SELECT 53 * - ( - col1 + + col2 ) * col2 AS col2 FROM tab2
----
-42294
45474
5724
query I rowsort
SELECT DISTINCT - tab0.col0 + 4 FROM tab0
----
-20
-31
-85
query I rowsort
SELECT DISTINCT 56 + col0 * + col0 FROM tab0
----
1281
632
7977
query I rowsort
SELECT - 49 * - tab1.col1 FROM tab1
----
1274
490
637
query I rowsort
SELECT DISTINCT - ( - 45 ) AS col0 FROM tab2
----
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 col1 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL 94 AS col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT + 84 FROM tab2
----
84
84
84
query I rowsort
SELECT + ( col2 + + col2 ) AS col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - col1 * - col1 * + col2 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT - - col1 * + col0 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - col2 * + 50 AS col1 FROM tab0 AS cor0
----
-1650
-4100
-50
onlyif mysql # use DIV operator for integer division
query I rowsort label-9866
SELECT ALL tab0.col1 DIV tab0.col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL tab0.col1 / tab0.col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT - col0 * col0 + col2 * col0 AS col2 FROM tab1 AS cor0
----
-448
1280
153
query I rowsort
SELECT + col0 + cor0.col2 * col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT ALL + - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT - - col2 * + cor0.col2 FROM tab0 cor0
----
1
1089
6724
query I rowsort
SELECT + col1 * col2 + + col2 - + col2 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL + + col2 * col1 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col1 - - col1 * col0 FROM tab0 cor0
----
2150
3492
8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col2 * col2 + + col1 col2 FROM tab1 AS cor0
----
-2836
-3182
-9107
query I rowsort
SELECT col2 * - col2 - col1 * col0 AS col0 FROM tab1
----
-10256
-2994
-3889
query I rowsort
SELECT DISTINCT - tab2.col2 * + col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * tab1.col0 * - col0 col1 FROM tab1
----
-262144
-27
-512000
query I rowsort
SELECT DISTINCT col2 * col0 + col1 AS col1 FROM tab1 AS cor0
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col2 * - col0 col2 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT - 98 AS col0 FROM tab2 AS cor0
----
-98
-98
-98
query I rowsort
SELECT ALL - 37 FROM tab1 AS cor0
----
-37
-37
-37
query I rowsort
SELECT - 38 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
-124
-129
-135
query I rowsort
SELECT ALL + 40 * + cor0.col2 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1917
2166
2574
onlyif mysql # use DIV operator for integer division
query I rowsort label-9885
SELECT DISTINCT - + cor0.col1 DIV col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9885
SELECT DISTINCT - + cor0.col1 / col1 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT DISTINCT - 19 * col1 AS col2 FROM tab1 AS cor0
----
-190
-247
-494
query I rowsort
SELECT ALL 94 + + col2 AS col1 FROM tab2 cor0
----
120
121
132
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + col1 - + col0 FROM tab2 AS cor0
----
1281
241
4583
query I rowsort
SELECT - cor0.col2 * - col2 + col1 * col1 FROM tab2 AS cor0
----
1690
1733
4157
onlyif mysql # use DIV operator for integer division
query I rowsort label-9890
SELECT DISTINCT + - col0 * col2 + + col2 DIV col1 FROM tab1 cor0
----
-160
-3643
-7673
skipif mysql # not compatible
query I rowsort label-9890
SELECT DISTINCT + - col0 * col2 + + col2 / col1 FROM tab1 cor0
----
-160
-3643
-7673
query I rowsort
SELECT ALL + 24 * - col1 AS col2 FROM tab1 AS cor0
----
-240
-312
-624
onlyif mysql # use DIV operator for integer division
query I rowsort label-9892
SELECT col2 * col1 + - col1 DIV + col1 AS col0 FROM tab1
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-9892
SELECT col2 * col1 + - col1 / + col1 AS col0 FROM tab1
----
1247
1403
569
query I rowsort
SELECT DISTINCT + col2 + col1 * - col1 FROM tab1
----
-43
-622
-73
query I rowsort
SELECT - cor1.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT DISTINCT 39 + col2 FROM tab0
----
121
40
72
query I rowsort
SELECT + 88 - col2 AS col2 FROM tab2
----
50
61
62
query I rowsort
SELECT + - 49 AS col1 FROM tab1 AS cor0
----
-49
-49
-49
onlyif mysql # use DIV operator for integer division
query I rowsort label-9898
SELECT ALL - col1 DIV - col0 AS col0 FROM tab1
----
0
0
8
skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - col1 / - col0 AS col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT 6 * + col0 AS col1 FROM tab1
----
18
384
480
query I rowsort
SELECT DISTINCT - col2 + col2 FROM tab1 cor0
----
0
query I rowsort
SELECT - + 1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 13 + + col2 FROM tab0 AS cor0
----
14
46
95
query I rowsort
SELECT DISTINCT - - 24 + col1 AS col2 FROM tab2 AS cor0
----
41
55
83
query I rowsort
SELECT ALL + 91 * - col1 AS col0 FROM tab0 AS cor0
----
-7826
-8281
-8827
query I rowsort
SELECT + 97 AS col0 FROM tab0 cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9906
SELECT ALL + 93 DIV + col2 FROM tab1 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + 93 / + col2 FROM tab1 AS cor0
----
0
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab0 AS cor0
----
98
query I rowsort
SELECT + - col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + 57 + - cor0.col1 FROM tab1 AS cor0
----
31
44
47
query I rowsort
SELECT 7 - 30 FROM tab1, tab2 cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d
query I rowsort
SELECT - col2 * col2 + 85 FROM tab1
----
-2831
-3164
-9131
query I rowsort
SELECT - 27 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a
query I rowsort
SELECT ALL - col2 + ( 64 ) * col2 AS col2 FROM tab1 cor0
----
3402
3591
6048
onlyif mysql # use DIV operator for integer division
query I rowsort label-9914
SELECT ALL + + col1 DIV 97 + - 66 * col1 FROM tab2 AS cor0
----
-1122
-2046
-3894
skipif mysql # not compatible
query I rowsort label-9914
SELECT ALL + + col1 / 97 + - 66 * col1 FROM tab2 AS cor0
----
-1122
-2046
-3894
query I rowsort
SELECT - col2 + + 14 AS col0 FROM tab0 AS cor0
----
-19
-68
13
query I rowsort
SELECT cor0.col0 + 22 * col1 FROM tab1 AS cor0
----
284
366
575
query I rowsort
SELECT ALL + col1 + + col0 * - 46 FROM tab0 AS cor0
----
-1018
-1513
-4003
onlyif mysql # use DIV operator for integer division
query I rowsort label-9918
SELECT DISTINCT - + cor0.col0 DIV ( - col0 * - col0 ) FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT - + cor0.col0 / ( - col0 * - col0 ) FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT + col1 + 51 FROM tab1 cor0
----
61
64
77
query I rowsort
SELECT ALL - col2 * col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 col0 FROM tab1 AS cor0
----
-109
-67
-80
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab1 AS cor0, tab0 cor1, tab2, tab0 AS cor2
----
3645 values hashing to 93ed44f621cc970f32b0cc9543b45262
query I rowsort
SELECT ALL - ( col0 ) * col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT + + ( 61 ) * col0 AS col0 FROM tab0 AS cor0
----
1464
2135
5429
query I rowsort
SELECT + - ( + col1 ) * col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col1 * - 90 + cor0.col0 * col2 AS col2 FROM tab1 AS cor0
----
2502
4548
8850
query I rowsort
SELECT DISTINCT - - col0 * + col2 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL - - 12 * + col0 FROM tab1 AS cor0
----
36
768
960
query I rowsort
SELECT + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to ee5108f6248be48c54e069545f81c5d9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9930
SELECT + CAST( NULL AS DECIMAL ) * + 60 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9930
SELECT + CAST ( NULL AS REAL ) * + 60 FROM tab1, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 62 * col2 FROM tab1 AS cor0
----
3348
3534
5952
onlyif mysql # use DIV operator for integer division
query I rowsort label-9932
SELECT - 64 DIV col2 FROM tab0 AS cor0
----
-1
-64
0
skipif mysql # not compatible
query I rowsort label-9932
SELECT - 64 / col2 FROM tab0 AS cor0
----
-1
-64
0
query I rowsort
SELECT ALL + ( + col1 ) + col2 * - col0 FROM tab0 AS cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9934
SELECT DISTINCT + 47 * - col0 + - cor0.col2 DIV + col1 col0 FROM tab1 AS cor0
----
-143
-3013
-3767
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9934
SELECT DISTINCT + 47 * - col0 + - cor0.col2 / + col1 col0 FROM tab1 AS cor0
----
-143
-3013
-3767
query I rowsort
SELECT DISTINCT - - 85 FROM tab0 AS cor0
----
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9936
SELECT DISTINCT col2 / + 50 + - col1 * + CAST( NULL AS SIGNED ) + 16 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT col2 / + 50 + - col1 * + CAST ( NULL AS INTEGER ) + 16 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - 31 + 44 AS col1 FROM tab2 AS cor0
----
13
13
13
query I rowsort
SELECT + - ( 75 ) * col1 + ( + col1 + col0 ) * col2 FROM tab0 AS cor0
----
-2820
-7143
7935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 + 78 * col0 + ( cor0.col1 ) col1 FROM tab2 AS cor0
----
6227
6263
661
query I rowsort
SELECT cor0.col2 + ( - col0 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - 81 * cor0.col1 + col2 + col1 FROM tab2 AS cor0
----
-1322
-2453
-4694
query I rowsort
SELECT ( + col1 ) + - col2 + + 97 * - col2 AS col1 FROM tab0 AS cor0
----
-1
-3148
-7945
query I rowsort
SELECT - col2 * + col1 * - col1 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT + + col0 + + ( col1 ) + col1 AS col1 FROM tab2 AS cor0
----
113
196
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9945
SELECT ( + col1 ) + + col0 * 86 DIV - col0 FROM tab2 AS cor0
----
-27
-55
-69
skipif mysql # not compatible
query I rowsort label-9945
SELECT ( + col1 ) + + col0 * 86 / - col0 FROM tab2 AS cor0
----
-27
-55
-69
query I rowsort
SELECT + ( + col0 ) * - col0 FROM tab2 AS cor0
----
-49
-6084
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9947
SELECT col1 DIV - col2 + col2 * col1 + col2 FROM tab0 cor0
----
1
2869
7543
skipif mysql # not compatible
query I rowsort label-9947
SELECT col1 / - col2 + col2 * col1 + col2 FROM tab0 cor0
----
1
2869
7543
query I rowsort
SELECT - 60 + col1 AS col2 FROM tab1 AS cor0
----
-34
-47
-50
query I rowsort
SELECT col1 - + col2 * - col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT ALL + cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT - cor0.col0 + + 25 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 041054200942dbd3fbf422d04855b3a0
query I rowsort
SELECT DISTINCT - col1 + 21 AS col2 FROM tab0
----
-65
-70
-76
query I rowsort
SELECT DISTINCT col0 * - ( 55 ) + tab0.col1 AS col0 FROM tab0
----
-1234
-1828
-4804
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 + tab2.col2 col1 FROM tab2
----
55
58
85
query I rowsort
SELECT col0 + ( + 8 ) + + col0 FROM tab0
----
186
56
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9956
SELECT ALL - + col1 * CAST( 80 AS SIGNED ) + - col1 * 20 col0 FROM tab1 AS cor0
----
-1000
-1300
-2600
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9956
SELECT ALL - + col1 * CAST ( 80 AS INTEGER ) + - col1 * 20 col0 FROM tab1 AS cor0
----
-1000
-1300
-2600
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + cor0.col1 * CAST ( 82 AS REAL ) / + col1 col2 FROM tab1 AS cor0
----
82
82
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9958
SELECT cor0.col2 DIV col0 AS col0 FROM tab0 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-9958
SELECT cor0.col2 / col0 AS col0 FROM tab0 cor0
----
0
0
1
query I rowsort
SELECT + col2 * 91 AS col2 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT DISTINCT col2 * ( 73 ) FROM tab2
----
1898
1971
2774
query I rowsort
SELECT - + cor0.col1 + - 75 * cor0.col1 FROM tab1 AS cor0
----
-1976
-760
-988
query I rowsort
SELECT DISTINCT + - col0 + + col0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + - col0 * + col0 FROM tab0 cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - - col0 + 37 FROM tab1 AS cor0
----
101
117
40
query I rowsort
SELECT ALL - - cor0.col1 + col0 * col1 AS col0 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + - 98 * + col0 + col2 col0 FROM tab1 AS cor0
----
-186
-6158
-7648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab0, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
81 values hashing to 639c30ad80f8147eddb1a5f768a0a5ec
onlyif mysql # use DIV operator for integer division
query I rowsort label-9968
SELECT DISTINCT - col1 DIV + col1 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - col1 / + col1 FROM tab1 cor0
----
-1
query I rowsort
SELECT ALL + 13 * - col0 FROM tab1 AS cor0
----
-1040
-39
-832
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9970
SELECT col2 * CAST( NULL AS SIGNED ) - tab0.col0 * - col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9970
SELECT col2 * CAST ( NULL AS INTEGER ) - tab0.col0 * - col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9971
SELECT - col0 DIV - ( 15 * - col1 ) + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9971
SELECT - col0 / - ( 15 * - col1 ) + col1 FROM tab0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9972
SELECT DISTINCT - col2 * col1 DIV - 26 FROM tab1
----
21
48
54
skipif mysql # not compatible
query I rowsort label-9972
SELECT DISTINCT - col2 * col1 / - 26 FROM tab1
----
21
48
54
query I rowsort
SELECT ALL - col1 + + col2 AS col0 FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT ALL - col0 * + col0 * + col0 - - col0 FROM tab1 AS cor0
----
-24
-262080
-511920
query I rowsort
SELECT + - 84 AS col1 FROM tab1 AS cor0
----
-84
-84
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-9976
SELECT ALL + + col2 * - col0 + ( + 54 ) DIV - cor0.col0 AS col2 FROM tab1 cor0
----
-180
-3648
-7680
skipif mysql # not compatible
query I rowsort label-9976
SELECT ALL + + col2 * - col0 + ( + 54 ) / - cor0.col0 AS col2 FROM tab1 cor0
----
-180
-3648
-7680
query I rowsort
SELECT ALL - cor0.col0 * cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 75a608bf2ba236d24f146ac4aff9ec52
query I rowsort
SELECT + col0 * tab0.col1 * col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT ALL + tab2.col0 + + 6 FROM tab2, tab1 cor0, tab1 cor1
----
27 values hashing to abc4c53e8ad267c69e9e29833405cad8
query I rowsort
SELECT col1 - - col1 * - col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT + 97 - tab2.col2 AS col1 FROM tab2
----
59
70
71
query I rowsort
SELECT col0 - tab0.col1 * + ( - 99 ) AS col1 FROM tab0
----
8538
9098
9638
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9983
SELECT - - col0 / CAST( NULL AS DECIMAL ) + ( col0 + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9983
SELECT - - col0 / CAST ( NULL AS REAL ) + ( col0 + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9984
SELECT col2 DIV - col1 + + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-9984
SELECT col2 / - col1 + + col1 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9985
SELECT DISTINCT + + col0 * cor0.col1 - 43 DIV + col0 FROM tab2 AS cor0
----
1343
211
4602
skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + + col0 * cor0.col1 - 43 / + col0 FROM tab2 AS cor0
----
1343
211
4602
query I rowsort
SELECT col1 * + ( + 98 ) + col2 AS col1 FROM tab2 AS cor0
----
1704
3065
5808
query I rowsort
SELECT DISTINCT - col0 * - col1 * col1 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT DISTINCT - - col0 * - ( col2 + + col1 ) AS col2 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT 94 * - col0 + col0 AS col1 FROM tab1
----
-279
-5952
-7440
onlyif mysql # use DIV operator for integer division
query I rowsort label-9990
SELECT ALL + cor0.col2 DIV - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL + cor0.col2 / - cor0.col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - col0 * - col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9993
SELECT ALL + col0 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + - ( col2 ) * + col1 + col2 * - col1 FROM tab1 AS cor0
----
-1197
-2592
-2862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col1 FROM tab2 cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-9996
SELECT DISTINCT + + col2 DIV - 18 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1341
216
4601
skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + + col2 / - 18 + col0 * + col1 AS col1 FROM tab2 AS cor0
----
1341
216
4601
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - 40 - col1 col0 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT + 54 * 42 FROM tab2
----
2268
2268
2268
query I rowsort
SELECT - ( col1 ) * + col0 + + col0 + col0 * - col1 AS col1 FROM tab1
----
-1216
-153
-2000