hash-threshold 8
statement ok
CREATE TABLE tab0(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab1(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
CREATE TABLE tab2(col0 INTEGER, col1 INTEGER, col2 INTEGER)
statement ok
INSERT INTO tab0 VALUES(89,91,82)
statement ok
INSERT INTO tab0 VALUES(35,97,1)
statement ok
INSERT INTO tab0 VALUES(24,86,33)
statement ok
INSERT INTO tab1 VALUES(64,10,57)
statement ok
INSERT INTO tab1 VALUES(3,26,54)
statement ok
INSERT INTO tab1 VALUES(80,13,96)
statement ok
INSERT INTO tab2 VALUES(7,31,27)
statement ok
INSERT INTO tab2 VALUES(79,17,38)
statement ok
INSERT INTO tab2 VALUES(78,59,26)
query I rowsort
SELECT - cor0.col1 + - col0 * + col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT DISTINCT - - col1 * col0 * - col1 FROM tab2 AS cor0
----
-22831
-271518
-6727
query I rowsort
SELECT + + col1 + - cor0.col2 - + col2 FROM tab0 AS cor0
----
-73
20
95
onlyif mysql # use DIV operator for integer division
query I rowsort label-3
SELECT ALL - + cor0.col0 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3
SELECT ALL - + cor0.col0 / col2 AS col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + cor0.col1 * col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT cor0.col1 + col2 * col0 - + cor0.col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 + - col1 * + col0 AS col2 FROM tab1
----
-24
-583
-944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col2 col2 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT - 49 * - col0 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
101136
166355
396851
query I rowsort
SELECT ALL + col1 * col0 + + cor0.col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT ALL - col2 * col1 + cor0.col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT 25 + col2 FROM tab1 cor0
----
121
79
82
query I rowsort
SELECT - 98 * cor0.col2 FROM tab0 AS cor0
----
-3234
-8036
-98
query I rowsort
SELECT 45 + - col0 AS col1 FROM tab0 AS cor0
----
-44
10
21
query I rowsort
SELECT ALL - + col0 - - col2 AS col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT col1 - col0 * col0 * - col0 AS col0 FROM tab2
----
374
474611
493056
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - col0
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-18
SELECT DISTINCT col2 DIV - col0 + col0 AS col1 FROM tab0
----
23
35
89
skipif mysql # not compatible
query I rowsort label-18
SELECT DISTINCT col2 / - col0 + col0 AS col1 FROM tab0
----
23
35
89
query I rowsort
SELECT DISTINCT col0 * + tab0.col2 + col1 * - col1 AS col0 FROM tab0
----
-6604
-9374
-983
query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 * col2 + - col2 ) = ( NULL )
----
query I rowsort
SELECT ALL col0 * + col1 * + col2 FROM tab0
----
3395
664118
68112
query I rowsort
SELECT col1 + col1 * col2 + + col0 AS col2 FROM tab1
----
1341
1433
644
query I rowsort
SELECT + col2 + + col2 * col0 * col0 FROM tab2
----
1350
158210
237196
query I rowsort
SELECT + col2 + + col0 * col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT DISTINCT + col0 * col1 FROM tab1 WHERE ( col1 ) >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-26
SELECT ALL + col0 DIV col1 - - tab0.col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-26
SELECT ALL + col0 / col1 - - tab0.col2 FROM tab0
----
1
33
82
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + tab0.col1 )
----
query I rowsort
SELECT + col1 + + col2 * col2 + - col1 AS col1 FROM tab2
----
1444
676
729
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > - col0
----
query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE col1 NOT IN ( col1 )
----
query I rowsort
SELECT - col2 + + tab2.col1 AS col1 FROM tab2
----
-21
33
4
query I rowsort
SELECT DISTINCT col2 * + col1 * - cor0.col1 AS col1 FROM tab1 cor0
----
-16224
-36504
-5700
query I rowsort
SELECT - col2 + col2 * - col0 FROM tab0 cor0
----
-36
-7380
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-34
SELECT col2 * col2 DIV col0 AS col0 FROM tab2
----
104
18
8
skipif mysql # not compatible
query I rowsort label-34
SELECT col2 * col2 / col0 AS col0 FROM tab2
----
104
18
8
query I rowsort
SELECT ALL col0 * cor0.col2 * + col1 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT ALL - col1 + col0 * - col0 FROM tab0
----
-1322
-662
-8012
onlyif mysql # use DIV operator for integer division
query I rowsort label-37
SELECT DISTINCT - col1 DIV - col1 - col2 AS col0 FROM tab2
----
-25
-26
-37
skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - col1 / - col1 - col2 AS col0 FROM tab2
----
-25
-26
-37
query I rowsort
SELECT - col2 + - col1 * col2 - - tab0.col1 AS col0 FROM tab0
----
-1
-2785
-7453
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab0.col1 col1 FROM tab0
----
-7396
-8281
-9409
query III rowsort
SELECT * FROM tab1 WHERE NULL <= ( - col0 * col1 + col2 )
----
query I rowsort
SELECT - col0 + + col1 * tab2.col1 FROM tab2
----
210
3403
954
query I rowsort
SELECT ALL - col2 + col2 * - tab0.col1 AS col2 FROM tab0
----
-2871
-7544
-98
query III rowsort
SELECT ALL * FROM tab0 WHERE tab0.col1 * - col0 + - col0 > - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-44
SELECT + col0 * - col2 + + col0 DIV cor0.col0 FROM tab0 AS cor0
----
-34
-7297
-791
skipif mysql # not compatible
query I rowsort label-44
SELECT + col0 * - col2 + + col0 / cor0.col0 FROM tab0 AS cor0
----
-34
-7297
-791
query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 col1 FROM tab2, tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col1 * - col1 * + col2 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT - col2 + + 45 AS col1 FROM tab1
----
-12
-51
-9
query I rowsort
SELECT + ( col2 ) * + col1 * - 0 + - cor0.col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + + col0 * ( + cor0.col2 ) AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL cor0.col2 + - col2 * col1 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-52
SELECT ALL - CAST( + 4 AS SIGNED ) FROM tab2 AS cor0
----
-4
-4
-4
skipif mysql # not compatible
query I rowsort label-52
SELECT ALL - CAST ( + 4 AS INTEGER ) FROM tab2 AS cor0
----
-4
-4
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-53
SELECT ( 58 ) DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-53
SELECT ( 58 ) / + col1 AS col2 FROM tab2 AS cor0
----
0
1
3
query I rowsort
SELECT ALL - - col2 * col1 + col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT - 9 + col2 FROM tab1 AS cor0
----
45
48
87
query I rowsort
SELECT cor0.col1 + cor0.col1 * + col2 * col1 AS col1 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT - + 82 AS col0 FROM tab2 AS cor0
----
-82
-82
-82
query I rowsort
SELECT DISTINCT + 78 FROM tab0, tab1 cor0
----
78
query I rowsort
SELECT DISTINCT + 53 AS col1 FROM tab0
----
53
query I rowsort
SELECT - 15 FROM tab0, tab2 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to af17c026b0658d7a3496b8b16be82ec5
onlyif mysql # use DIV operator for integer division
query I rowsort label-61
SELECT col2 DIV col0 AS col1 FROM tab1 cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-61
SELECT col2 / col0 AS col1 FROM tab1 cor0
----
0
1
18
query I rowsort
SELECT ALL + + col2 * 4 AS col1 FROM tab0 AS cor0
----
132
328
4
query I rowsort
SELECT + - col1 + ( 18 ) AS col0 FROM tab1 AS cor0
----
-8
5
8
query I rowsort
SELECT - cor0.col0 * - 25 + 88 AS col1 FROM tab0 AS cor0
----
2313
688
963
onlyif mysql # use DIV operator for integer division
query I rowsort label-65
SELECT DISTINCT + - col0 DIV + col1 + + col1 FROM tab1 cor0
----
26
4
7
skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT + - col0 / + col1 + + col1 FROM tab1 cor0
----
26
4
7
query I rowsort
SELECT col0 * + col2 * 38 + col2 + col1 AS col1 FROM tab1
----
138691
291949
6236
query I rowsort
SELECT col0 * + col0 * 95 + cor0.col1 AS col0 FROM tab1 AS cor0
----
389130
608013
881
query I rowsort
SELECT DISTINCT col2 + + tab2.col1 * col1 FROM tab2
----
327
3507
988
query I rowsort
SELECT col0 + col1 * col0 * col2 AS col0 FROM tab2
----
119730
51113
5866
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-70
SELECT + CAST( NULL AS SIGNED ) * col0 + col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-70
SELECT + CAST ( NULL AS INTEGER ) * col0 + col2 FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-71
SELECT ALL col1 * CAST( NULL AS SIGNED ) + col2 / - col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-71
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + col2 / - col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 + 53 * - col1 AS col1 FROM tab2
----
-1636
-3049
-822
query I rowsort
SELECT ALL - col1 * col1 + - 7 AS col1 FROM tab0
----
-7403
-8288
-9416
query I rowsort
SELECT col2 * 98 + - col1 * + col1 FROM tab2 AS cor0
----
-933
1685
3435
query I rowsort
SELECT + 50 + + col0 FROM tab0 cor0
----
139
74
85
query I rowsort
SELECT + col2 * col2 + col1 FROM tab0 cor0
----
1175
6815
98
query I rowsort
SELECT + 36 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752
query I rowsort
SELECT + col0 * + col0 + - col1 AS col2 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT - 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-80
SELECT CAST( - tab0.col0 * + col2 AS SIGNED ) FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-80
SELECT CAST ( - tab0.col0 * + col2 AS INTEGER ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT 25 - col1 FROM tab1 AS cor0
----
-1
12
15
query I rowsort
SELECT ALL + ( - col1 ) + col0 AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT + 69 + + col0 * col0 AS col1 FROM tab2
----
118
6153
6310
query I rowsort
SELECT + col1 * - 46 * col0 FROM tab1
----
-29440
-3588
-47840
query I rowsort
SELECT - col0 - + ( col2 ) AS col1 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL 58 AS col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 9ee363c6ac19cfdb8a50c7dfd5cc2b8a
query I rowsort
SELECT - - col2 * 7 AS col0 FROM tab0 cor0
----
231
574
7
query I rowsort
SELECT col0 + ( col0 ) + - col0 * col0 FROM tab0 AS cor0
----
-1155
-528
-7743
query I rowsort
SELECT 79 AS col2 FROM tab1, tab1 cor0, tab0 cor1
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
query I rowsort
SELECT col2 * 39 + + 98 FROM tab1 AS cor0
----
2204
2321
3842
query I rowsort
SELECT - cor0.col2 + ( + col2 * - col0 + + cor0.col2 ) FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT col0 * col2 - + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-93
SELECT - col0 DIV col1 + col2 * - col2 * + col0 col0 FROM tab1 AS cor0
----
-207942
-737286
-8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-93
SELECT - col0 / col1 + col2 * - col2 * + col0 col0 FROM tab1 AS cor0
----
-207942
-737286
-8748
query I rowsort
SELECT - - col1 + + col2 AS col1 FROM tab0 AS cor0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 53 * col0 col1 FROM tab2 AS cor0
----
340
4075
4170
query I rowsort
SELECT + col1 + ( col1 ) * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT DISTINCT - col0 * + col2 + - col0 * col0 FROM tab1 AS cor0
----
-14080
-171
-7744
query I rowsort
SELECT ALL - cor0.col1 * + col0 - col1 FROM tab1 AS cor0
----
-104
-1053
-650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT ALL col1 * - col0 * col1 AS col1 FROM tab0
----
-177504
-329315
-737009
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab1.col1 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT + + col0 + 1 + + col2 FROM tab1 AS cor0
----
122
177
58
query I rowsort
SELECT 66 AS col0 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT DISTINCT - col0 * tab2.col1 + - col2 * ( - col1 ) + col2 FROM tab2
----
-3042
-659
647
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * + col2 col0 FROM tab1 AS cor0
----
1674
1767
2976
onlyif mysql # use DIV operator for integer division
query I rowsort label-106
SELECT DISTINCT + ( - 28 ) DIV col1 + col1 FROM tab0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-106
SELECT DISTINCT + ( - 28 ) / col1 + col1 FROM tab0
----
86
91
97
query I rowsort
SELECT 25 + - col0 AS col0 FROM tab0
----
-10
-64
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 18 ) + - col1 col1 FROM tab0 AS cor0
----
-68
-73
-79
query I rowsort
SELECT ALL ( - col0 ) + - col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT - col0 + col1 * + col2 - col1 AS col1 FROM tab2
----
1397
550
799
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-111
SELECT CAST( col0 + + col0 AS SIGNED ) FROM tab0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-111
SELECT CAST ( col0 + + col0 AS INTEGER ) FROM tab0
----
178
48
70
query I rowsort
SELECT DISTINCT + ( col0 + + 87 ) * + col0 * col0 FROM tab0
----
1394096
149450
63936
query I rowsort
SELECT + 91 FROM tab2 cor0
----
91
91
91
query I rowsort
SELECT - + col0 * col2 + + 53 * - col2 FROM tab1 AS cor0
----
-12768
-3024
-6669
query I rowsort
SELECT ALL col0 + + col0 + ( col2 ) * col0 AS col1 FROM tab0 AS cor0
----
105
7476
840
query I rowsort
SELECT + - cor0.col0 + col0 * - col0 + - 73 AS col0 FROM tab0 cor0
----
-1333
-673
-8083
query I rowsort
SELECT - + 85 + col1 AS col2 FROM tab1 AS cor0
----
-59
-72
-75
query I rowsort
SELECT - ( - cor0.col2 ) * col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL 82 * cor0.col1 AS col0 FROM tab1 AS cor0
----
1066
2132
820
onlyif mysql # use DIV operator for integer division
query I rowsort label-120
SELECT + col2 DIV + col2 + col1 + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
133
7390
879
skipif mysql # not compatible
query I rowsort label-120
SELECT + col2 / + col2 + col1 + col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
133
7390
879
onlyif mysql # use DIV operator for integer division
query I rowsort label-121
SELECT 43 DIV - col0 FROM tab1 AS cor0
----
-14
0
0
skipif mysql # not compatible
query I rowsort label-121
SELECT 43 / - col0 FROM tab1 AS cor0
----
-14
0
0
query I rowsort
SELECT ALL - col1 * - col2 * 41 FROM tab0 AS cor0
----
116358
305942
3977
query I rowsort
SELECT ALL cor0.col2 * - cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-124
SELECT DISTINCT col2 * + col0 - - 82 * col1 DIV col0 AS col0 FROM tab2 AS cor0
----
2090
3019
552
skipif mysql # not compatible
query I rowsort label-124
SELECT DISTINCT col2 * + col0 - - 82 * col1 / col0 AS col0 FROM tab2 AS cor0
----
2090
3019
552
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-125
SELECT col2 + col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-125
SELECT col2 + col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col1 * + ( col1 ) + col1 * col1 FROM tab0 cor0
----
14706
16471
18721
query I rowsort
SELECT ALL - 6 * + col1 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT + col2 + - col2 * + col1 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT DISTINCT + - col0 * - ( + 18 ) FROM tab0 AS cor0
----
1602
432
630
query I rowsort
SELECT ALL col2 * - col2 + + col1 * col0 AS col2 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT - - col1 + - ( col2 ) FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - col2 + ( 68 ) * col0 * + 14 FROM tab0 AS cor0
----
22815
33319
84646
query I rowsort
SELECT ALL - col2 * 46 AS col0 FROM tab0
----
-1518
-3772
-46
query I rowsort
SELECT + col2 * - 92 * col1 AS col1 FROM tab1 AS cor0
----
-114816
-129168
-52440
query I rowsort
SELECT ALL - cor0.col2 + ( col1 ) * cor0.col0 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT + col2 + - col0 * 45 AS col2 FROM tab1
----
-2823
-3504
-81
query I rowsort
SELECT DISTINCT 60 + - col2 * 98 FROM tab1
----
-5232
-5526
-9348
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + tab2.col1 + + 57 col1 FROM tab2
----
153
194
95
query I rowsort
SELECT col1 * + col0 + + 65 AS col1 FROM tab2
----
1408
282
4667
query I rowsort
SELECT col1 + tab2.col1 + col2 FROM tab2
----
144
72
89
query I rowsort
SELECT DISTINCT + col2 * - col0 + - 28 FROM tab1
----
-190
-3676
-7708
query I rowsort
SELECT + + col2 + - ( col0 * + col2 ) FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + cor0.col1 + + cor0.col2 + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-3581
-7571
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-144
SELECT DISTINCT - col2 * col2 DIV + col0 FROM tab0 AS cor0
----
-45
-75
0
skipif mysql # not compatible
query I rowsort label-144
SELECT DISTINCT - col2 * col2 / + col0 FROM tab0 AS cor0
----
-45
-75
0
query I rowsort
SELECT - 83 - col2 * cor0.col2 * - col0 FROM tab2 cor0
----
113993
5020
52645
query I rowsort
SELECT ALL + 7 + col0 FROM tab1 AS cor0
----
10
71
87
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT DISTINCT + cor0.col0 + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT - - cor0.col1 + 77 AS col0 FROM tab0 AS cor0
----
163
168
174
query I rowsort
SELECT DISTINCT + ( cor0.col0 ) + cor0.col2 AS col1 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 84 + - col1 col2 FROM tab2 AS cor0
----
557
6493
6619
query I rowsort
SELECT ALL + col1 * col1 * - col2 AS col1 FROM tab2 AS cor0
----
-10982
-25947
-90506
query I rowsort
SELECT DISTINCT + 78 + 45 FROM tab0 AS cor0
----
123
query I rowsort
SELECT ALL + 81 FROM tab0, tab2 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-155
SELECT ALL CAST( NULL AS SIGNED ) + - col1 / cor0.col2 - col0 * - 20 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-155
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 / cor0.col2 - col0 * - 20 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-156
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 14 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 14 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col2 + + ( + col1 * ( + col2 ) ) AS col0 FROM tab2 cor0
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-158
SELECT ALL - CAST( NULL AS SIGNED ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - CAST ( NULL AS INTEGER ) - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-159
SELECT ALL col2 DIV 72 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-159
SELECT ALL col2 / 72 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-160
SELECT DISTINCT - CAST( cor0.col1 AS SIGNED ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
skipif mysql # not compatible
query I rowsort label-160
SELECT DISTINCT - CAST ( cor0.col1 AS INTEGER ) * col1 FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + ( - 27 ) AS col1 FROM tab0 AS cor0
----
-27
-27
-27
query I rowsort
SELECT 81 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-1262
-136
-4521
query I rowsort
SELECT DISTINCT 59 * col0 FROM tab0 AS cor0
----
1416
2065
5251
onlyif mysql # use DIV operator for integer division
query I rowsort label-164
SELECT DISTINCT - - col0 DIV - col1 + col2 AS col1 FROM tab0 cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - - col0 / - col1 + col2 AS col1 FROM tab0 cor0
----
1
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * 94 col0 FROM tab0 AS cor0
----
8170
8645
9215
query I rowsort
SELECT 7 FROM tab1, tab2 cor0 CROSS JOIN tab0
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
onlyif mysql # use DIV operator for integer division
query I rowsort label-167
SELECT DISTINCT + col2 DIV col0 + col1 + - col1 DIV + col2 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT + col2 / col0 + col1 + - col1 / + col2 FROM tab1
----
10
14
44
query I rowsort
SELECT - 10 + + 60 AS col0 FROM tab2 AS cor0
----
50
50
50
onlyif mysql # use DIV operator for integer division
query I rowsort label-169
SELECT DISTINCT - col0 DIV ( - 2 ) + col2 + - tab0.col2 FROM tab0
----
12
17
44
skipif mysql # not compatible
query I rowsort label-169
SELECT DISTINCT - col0 / ( - 2 ) + col2 + - tab0.col2 FROM tab0
----
12
17
44
query I rowsort
SELECT DISTINCT - 72 + cor1.col0 * 67 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
397
5154
5221
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-171
SELECT cor0.col1 + + col0 * col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-171
SELECT cor0.col1 + + col0 * col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 * 56 * col0 FROM tab1 AS cor0
----
204288
430080
9072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 14 col0 FROM tab0 AS cor0
----
100
105
111
query I rowsort
SELECT ( 65 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT col0 * 90 AS col1 FROM tab1
----
270
5760
7200
query I rowsort
SELECT ALL - 56 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT 28 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT ALL + 83 AS col0 FROM tab0
----
83
83
83
query I rowsort
SELECT - 23 * + 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 219e0b64f965c6090711f413332a801e
query I rowsort
SELECT DISTINCT + col0 + tab1.col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT - - 54 * col2 FROM tab1 AS cor0
----
2916
3078
5184
query I rowsort
SELECT DISTINCT - - 59 FROM tab0 AS cor0
----
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * - col1 col2 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT - cor0.col1 + 41 AS col0 FROM tab1 AS cor0
----
15
28
31
onlyif mysql # use DIV operator for integer division
query I rowsort label-185
SELECT col1 DIV col0 + col2 col1 FROM tab0 AS cor0
----
3
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-185
SELECT col1 / col0 + col2 col1 FROM tab0 AS cor0
----
3
36
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-186
SELECT - col2 * col2 DIV + tab2.col1 AS col0 FROM tab2
----
-11
-23
-84
skipif mysql # not compatible
query I rowsort label-186
SELECT - col2 * col2 / + tab2.col1 AS col0 FROM tab2
----
-11
-23
-84
query I rowsort
SELECT col1 + cor0.col1 * + col2 AS col0 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - col2 + cor0.col2 * - col2 FROM tab1 cor0
----
-2970
-3306
-9312
query I rowsort
SELECT - - 85 + cor0.col0 FROM tab0 AS cor0
----
109
120
174
query I rowsort
SELECT - col0 + col2 * col2 FROM tab2 cor0
----
1365
598
722
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 * + 88 col0 FROM tab0 AS cor0
----
-3432
-3432
-3432
query I rowsort
SELECT DISTINCT col0 * cor0.col2 + col2 AS col2 FROM tab0 cor0
----
36
7380
825
query I rowsort
SELECT + - 91 + 4 AS col1 FROM tab0 AS cor0
----
-87
-87
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-194
SELECT - 96 DIV + col1 FROM tab1 AS cor0
----
-3
-7
-9
skipif mysql # not compatible
query I rowsort label-194
SELECT - 96 / + col1 FROM tab1 AS cor0
----
-3
-7
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-195
SELECT + CAST( NULL AS SIGNED ) / col2 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-195
SELECT + CAST ( NULL AS INTEGER ) / col2 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-196
SELECT + - col2 DIV col2 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-196
SELECT + - col2 / col2 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - 44 + col0 FROM tab0 cor0
----
-20
-9
45
query I rowsort
SELECT 69 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT + 22 AS col2 FROM tab2 cor0
----
22
22
22
query I rowsort
SELECT ALL - cor0.col0 * col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ALL + + col0 * - col2 + col2 + + col0 FROM tab1 AS cor0
----
-105
-3527
-7504
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 col0 FROM tab0
----
6
6
6
query I rowsort
SELECT DISTINCT - tab0.col0 * + col2 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-204
SELECT DISTINCT col0 * col0 DIV col2 FROM tab1
----
0
66
71
skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT col0 * col0 / col2 FROM tab1
----
0
66
71
query I rowsort
SELECT + ( col0 ) + + col2 * + col1 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + col2 + - 23 FROM tab0 AS cor0
----
-22
10
59
query I rowsort
SELECT DISTINCT col2 * - ( col2 ) + 84 AS col2 FROM tab0 AS cor0
----
-1005
-6640
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-208
SELECT ALL - cor0.col0 * + 62 - - col1 * + CAST( 24 AS SIGNED ) FROM tab1 AS cor0
----
-3728
-4648
438
skipif mysql # not compatible
query I rowsort label-208
SELECT ALL - cor0.col0 * + 62 - - col1 * + CAST ( 24 AS INTEGER ) FROM tab1 AS cor0
----
-3728
-4648
438
query I rowsort
SELECT tab0.col0 + - tab0.col1 FROM tab0
----
-2
-62
-62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col2 col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ( col2 ) * + col1 + col2 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT ALL - + 56 + col1 FROM tab1 cor0
----
-30
-43
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-213
SELECT ALL + + 97 + + col2 DIV + col1 FROM tab1 AS cor0
----
102
104
99
skipif mysql # not compatible
query I rowsort label-213
SELECT ALL + + 97 + + col2 / + col1 FROM tab1 AS cor0
----
102
104
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 12 col1 FROM tab1 AS cor0
----
22
25
38
query I rowsort
SELECT ALL + ( - cor0.col2 ) * cor0.col2 + + col0 AS col0 FROM tab1 cor0
----
-2913
-3185
-9136
query I rowsort
SELECT + ( 4 ) FROM tab1
----
4
4
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-217
SELECT CAST( NULL AS SIGNED ) * col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-217
SELECT CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT 91 * cor0.col2 AS col0 FROM tab1 AS cor0
----
4914
5187
8736
query I rowsort
SELECT DISTINCT + ( + col1 ) + ( - col2 ) * col0 * - col0 AS col1 FROM tab1 AS cor0
----
233482
512
614413
onlyif mysql # use DIV operator for integer division
query I rowsort label-220
SELECT ALL - col2 * + col2 + col0 DIV tab1.col2 FROM tab1
----
-2916
-3248
-9216
skipif mysql # not compatible
query I rowsort label-220
SELECT ALL - col2 * + col2 + col0 / tab1.col2 FROM tab1
----
-2916
-3248
-9216
query I rowsort
SELECT DISTINCT ( + col0 ) + col1 AS col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 + 27 col2 FROM tab0
----
109
28
60
query I rowsort
SELECT DISTINCT 8 + - tab0.col0 * col0 AS col1 FROM tab0
----
-1217
-568
-7913
query I rowsort
SELECT ( - tab1.col2 ) - col1 FROM tab1
----
-109
-67
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-225
SELECT CAST( NULL AS DECIMAL ) - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-225
SELECT CAST ( NULL AS REAL ) - col0 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + 23 - + col2 AS col0 FROM tab0 AS cor0
----
-150
-75
-96
query I rowsort
SELECT + - col1 + cor0.col1 * ( - col1 ) AS col0 FROM tab1 AS cor0
----
-110
-182
-702
onlyif mysql # use DIV operator for integer division
query I rowsort label-228
SELECT ALL + 98 DIV - col0 FROM tab0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-228
SELECT ALL + 98 / - col0 FROM tab0
----
-1
-2
-4
query I rowsort
SELECT ALL cor0.col0 * 89 + + col2 AS col1 FROM tab0 AS cor0
----
2169
3116
8003
query I rowsort
SELECT + col2 * 85 + - 80 - + cor0.col0 FROM tab0 cor0
----
-30
2701
6801
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * - 92 col0 FROM tab0 AS cor0
----
3036
7544
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col2 FROM tab2
----
-22
-22
-22
query I rowsort
SELECT ALL - cor0.col0 + - 67 FROM tab2, tab0 cor0
----
9 values hashing to 5931921232e0ec38226b0a521103e1b1
query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab2, tab0 AS cor0, tab2 cor1
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-235
SELECT ALL + tab0.col2 - 19 DIV col0 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-235
SELECT ALL + tab0.col2 - 19 / col0 FROM tab0
----
1
33
82
query I rowsort
SELECT - - col2 + - 84 AS col1 FROM tab2 cor0
----
-46
-57
-58
query I rowsort
SELECT + col0 + ( col0 ) * tab2.col1 + + col0 FROM tab2
----
1501
231
4758
query I rowsort
SELECT - tab0.col2 + + 36 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to e39cc3381b2c1955067ded21489f579e
query I rowsort
SELECT ALL tab1.col2 + col2 + 75 AS col2 FROM tab1
----
183
189
267
onlyif mysql # use DIV operator for integer division
query I rowsort label-240
SELECT col2 * + ( + col1 ) + col1 DIV ( col1 ) - col2 * + col0 FROM tab0 AS cor0
----
165
2047
63
skipif mysql # not compatible
query I rowsort label-240
SELECT col2 * + ( + col1 ) + col1 / ( col1 ) - col2 * + col0 FROM tab0 AS cor0
----
165
2047
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-241
SELECT + col2 DIV + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-241
SELECT + col2 / + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col1 - col1 * ( col1 + col0 ) AS col0 FROM tab2
----
-1147
-1615
-8024
query I rowsort
SELECT - 32 FROM tab1, tab1 cor0
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6
query I rowsort
SELECT + col2 * - 15 AS col0 FROM tab0
----
-1230
-15
-495
query I rowsort
SELECT DISTINCT 80 FROM tab2, tab2 cor0, tab1 AS cor1
----
80
query I rowsort
SELECT - col0 * - 0 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 + 19 FROM tab2
----
36
50
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-248
SELECT col2 * 34 DIV + col1 FROM tab2
----
14
29
76
skipif mysql # not compatible
query I rowsort label-248
SELECT col2 * 34 / + col1 FROM tab2
----
14
29
76
query I rowsort
SELECT ALL col1 * ( + col0 ) + col2 * 82 + tab0.col0 FROM tab0
----
14912
3512
4794
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col1 * ( + col0 ) * 69 + + col1 * + tab1.col2 col0 FROM tab1
----
44794
6789
73088
query I rowsort
SELECT DISTINCT - col0 + tab1.col0 * + tab1.col2 * - tab1.col1 AS col2 FROM tab1
----
-36544
-4215
-99920
query I rowsort
SELECT 28 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT + 6 * col0 + col0 AS col1 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT ALL + col2 + - 40 AS col2 FROM tab1 AS cor0
----
14
17
56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-255
SELECT DISTINCT + CAST( + 67 AS SIGNED ) + col1 * col2 AS col1 FROM tab1 AS cor0
----
1315
1471
637
skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT + CAST ( + 67 AS INTEGER ) + col1 * col2 AS col1 FROM tab1 AS cor0
----
1315
1471
637
query I rowsort
SELECT ALL - + 27 AS col0 FROM tab2, tab2 AS cor0, tab0, tab1 AS cor1
----
81 values hashing to 96d69a44243853624f324b296563e205
query I rowsort
SELECT DISTINCT col0 * + 70 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT 93 * 63 + + col2 FROM tab2 AS cor0
----
5885
5886
5897
query I rowsort
SELECT DISTINCT + 42 + 13 AS col2 FROM tab0 AS cor0
----
55
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 + - col2 col1 FROM tab1 AS cor0
----
-100
-103
-142
query I rowsort
SELECT + + 53 * + col0 + col1 FROM tab1 AS cor0
----
185
3402
4253
query I rowsort
SELECT DISTINCT - col2 - cor0.col0 FROM tab0 AS cor0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-263
SELECT - 12 DIV - col1 - + col1 AS col2 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-263
SELECT - 12 / - col1 - + col1 AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - ( cor0.col1 ) + col2 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-265
SELECT - 29 DIV + 79 + - col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif mysql # not compatible
query I rowsort label-265
SELECT - 29 / + 79 + - col0 * + col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + 39 + + col1 AS col0 FROM tab1 AS cor0
----
49
52
65
query I rowsort
SELECT ALL + col1 * - 66 FROM tab1 cor0
----
-1716
-660
-858
onlyif mysql # use DIV operator for integer division
query I rowsort label-268
SELECT + cor0.col0 + col2 DIV cor0.col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-268
SELECT + cor0.col0 + col2 / cor0.col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ( + col0 ) + - tab0.col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT + 35 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29
query I rowsort
SELECT + col2 * - col0 - - col1 FROM tab2
----
-158
-1969
-2985
onlyif mysql # use DIV operator for integer division
query I rowsort label-272
SELECT - 81 DIV col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-272
SELECT - 81 / col1 AS col0 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-273
SELECT DISTINCT - 3 DIV - cor0.col0 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-273
SELECT DISTINCT - 3 / - cor0.col0 FROM tab1 AS cor0
----
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-274
SELECT ALL col0 * + cor0.col2 * - CAST( - 91 AS SIGNED ) + + col0 * 40 AS col1 FROM tab0 AS cor0
----
4585
667678
73032
skipif mysql # not compatible
query I rowsort label-274
SELECT ALL col0 * + cor0.col2 * - CAST ( - 91 AS INTEGER ) + + col0 * 40 AS col1 FROM tab0 AS cor0
----
4585
667678
73032
query I rowsort
SELECT ALL - - 61 + + col2 AS col1 FROM tab0 AS cor0
----
143
62
94
query I rowsort
SELECT DISTINCT - cor0.col1 * col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 + col2 * - 41 FROM tab0 AS cor0
----
-1267
-3271
56
query I rowsort
SELECT DISTINCT - col1 * + col1 + col2 AS col1 FROM tab2 AS cor0
----
-251
-3455
-934
query I rowsort
SELECT DISTINCT ( col2 ) * 83 * col1 FROM tab0
----
235554
619346
8051
query I rowsort
SELECT DISTINCT - + col0 * + ( col0 ) FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - ( 61 ) * - col0 col0 FROM tab2 AS cor0
----
420
4680
4740
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * col0 * col1 col1 FROM tab2 cor0
----
22831
271518
6727
query I rowsort
SELECT ALL + col0 * col0 + cor0.col2 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT 98 + + col0 AS col1 FROM tab1 AS cor0
----
101
162
178
query I rowsort
SELECT DISTINCT + cor0.col0 + - col0 * - ( col0 * + col0 ) AS col2 FROM tab2 AS cor0
----
350
474630
493118
query I rowsort
SELECT - cor0.col0 * col2 + 32 * 19 * col1 FROM tab2 cor0
----
18659
33844
7334
query I rowsort
SELECT col2 * col2 * + ( + col0 * col2 ) + + 51 FROM tab1 AS cor0
----
11852403
472443
70778931
onlyif mysql # use DIV operator for integer division
query I rowsort label-288
SELECT + + col0 DIV col1 - + ( + col2 ) FROM tab1 AS cor0
----
-51
-54
-90
skipif mysql # not compatible
query I rowsort label-288
SELECT + + col0 / col1 - + ( + col2 ) FROM tab1 AS cor0
----
-51
-54
-90
query I rowsort
SELECT cor0.col2 * - ( - col2 ) * col2 + + ( ( - col2 ) * - col2 ) FROM tab0 AS cor0
----
2
37026
558092
onlyif mysql # use DIV operator for integer division
query I rowsort label-290
SELECT - col0 DIV 47 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1039
639
78
skipif mysql # not compatible
query I rowsort label-290
SELECT - col0 / 47 + - col0 * - col1 AS col0 FROM tab1 AS cor0
----
1039
639
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-291
SELECT DISTINCT + + 13 DIV col2 - ( + col0 ) col1 FROM tab1 cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT + + 13 / col2 - ( + col0 ) col1 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT col0 * col0 + 68 * col1 AS col2 FROM tab2 AS cor0
----
10096
2157
7397
query I rowsort
SELECT - tab1.col0 + 67 FROM tab1, tab0 AS cor0
----
9 values hashing to 5869443958835ec2055fba403d2c5040
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT 97 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to c73fa6978df8525c99d6bc792bb27123
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-296
SELECT DISTINCT CAST( NULL AS SIGNED ) * 52 AS col0 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 52 AS col0 FROM tab2
----
NULL
query I rowsort
SELECT - 54 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT ALL 58 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ef6e63aeed2581a168f07646d258f666
query I rowsort
SELECT + 21 + + col2 AS col0 FROM tab1 cor0
----
117
75
78
query I rowsort
SELECT + 60 * col0 * col1 FROM tab1 AS cor0
----
38400
4680
62400
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL + col1 * - cor0.col0 - col2 * + ( col2 ) FROM tab1 cor0
----
-10256
-2994
-3889
query I rowsort
SELECT 49 * col2 FROM tab0 AS cor0
----
1617
4018
49
query I rowsort
SELECT + 4 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + - col1 col0 FROM tab0 AS cor0
----
7310
8190
9312
query I rowsort
SELECT - 64 * - col0 AS col1 FROM tab2 AS cor0
----
448
4992
5056
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 col2 FROM tab2
----
-89
-89
-89
query I rowsort
SELECT + 88 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 663c36cf4bc51cf4ea19f7275ac6d30e
query I rowsort
SELECT ALL 57 AS col1 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT ALL + col2 * - tab0.col1 * col2 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT + - 11 FROM tab1, tab2, tab0 AS cor0
----
-11
query I rowsort
SELECT - col0 + col2 * 85 FROM tab0 AS cor0
----
2781
50
6881
query I rowsort
SELECT DISTINCT - - cor0.col1 * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + cor0.col2 + col0 * 32 AS col0 FROM tab1 AS cor0
----
150
2105
2656
query I rowsort
SELECT DISTINCT tab1.col1 + + 89 FROM tab1
----
102
115
99
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT + 45 AS col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
45
query I rowsort
SELECT + + col1 + 50 AS col2 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT col1 * - col0 + 65 FROM tab0 AS cor0
----
-1999
-3330
-8034
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-320
SELECT + CAST( - col1 AS SIGNED ) * col1 + - CAST( - 81 AS SIGNED ) AS col0 FROM tab2 cor0
----
-208
-3400
-880
skipif mysql # not compatible
query I rowsort label-320
SELECT + CAST ( - col1 AS INTEGER ) * col1 + - CAST ( - 81 AS INTEGER ) AS col0 FROM tab2 cor0
----
-208
-3400
-880
query I rowsort
SELECT DISTINCT - 40 * + col1 AS col2 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT + + col1 * - 5 + + col2 + + 62 * + col1 AS col0 FROM tab2 AS cor0
----
1007
1794
3389
query I rowsort
SELECT ALL tab2.col2 * 92 AS col2 FROM tab2
----
2392
2484
3496
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-324
SELECT CAST( NULL AS SIGNED ) - 17 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-324
SELECT CAST ( NULL AS INTEGER ) - 17 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 * - col2 + col1 + col0 col0 FROM tab1
----
-3049
-3175
-5379
query I rowsort
SELECT DISTINCT - col0 + col2 * col0 * col1 - + col1 AS col2 FROM tab2
----
119515
50938
5821
query I rowsort
SELECT - - 41 + cor0.col2 AS col0 FROM tab1 cor0
----
137
95
98
query I rowsort
SELECT ALL 33 * + cor0.col2 + - col1 AS col1 FROM tab1 AS cor0
----
1756
1871
3155
query I rowsort
SELECT ALL 90 * col2 + col1 FROM tab1 AS cor0
----
4886
5140
8653
query I rowsort
SELECT ALL 56 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-2782
-41
-7406
onlyif mysql # use DIV operator for integer division
query I rowsort label-331
SELECT - - col1 DIV col1 + + cor0.col0 FROM tab1 cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-331
SELECT - - col1 / col1 + + cor0.col0 FROM tab1 cor0
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-332
SELECT ALL col2 DIV + col0 + tab1.col1 * col1 AS col0 FROM tab1
----
100
170
694
skipif mysql # not compatible
query I rowsort label-332
SELECT ALL col2 / + col0 + tab1.col1 * col1 AS col0 FROM tab1
----
100
170
694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 col2 FROM tab1 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT cor0.col0 + - col1 * col2 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT 82 + + col2 * + tab2.col0 - - col0 AS col1 FROM tab2
----
2188
278
3163
onlyif mysql # use DIV operator for integer division
query I rowsort label-336
SELECT + col1 DIV col0 + - col2 * - col1 FROM tab1 AS cor0
----
1248
1412
570
skipif mysql # not compatible
query I rowsort label-336
SELECT + col1 / col0 + - col2 * - col1 FROM tab1 AS cor0
----
1248
1412
570
query I rowsort
SELECT ALL - - col1 + + cor0.col0 * col1 FROM tab1 AS cor0
----
104
1053
650
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-338
SELECT ALL CAST( + col0 AS SIGNED ) AS col0 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-338
SELECT ALL CAST ( + col0 AS INTEGER ) AS col0 FROM tab2
----
7
78
79
query I rowsort
SELECT 18 + col2 FROM tab0
----
100
19
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * 47 col2 FROM tab1 cor0
----
2444
2444
2444
query I rowsort
SELECT ALL + col2 * 51 * col2 + col1 + + col2 FROM tab2 AS cor0
----
34561
37237
73699
query I rowsort
SELECT + col0 * 75 FROM tab2 AS cor0
----
525
5850
5925
query I rowsort
SELECT ALL + 9 - cor0.col0 AS col2 FROM tab1 AS cor0
----
-55
-71
6
query I rowsort
SELECT + - col0 * col1 + cor0.col0 - col1 FROM tab1 AS cor0
----
-101
-586
-973
onlyif mysql # use DIV operator for integer division
query I rowsort label-345
SELECT + + 60 DIV - cor0.col0 FROM tab1 AS cor0
----
-20
0
0
skipif mysql # not compatible
query I rowsort label-345
SELECT + + 60 / - cor0.col0 FROM tab1 AS cor0
----
-20
0
0
query I rowsort
SELECT DISTINCT cor0.col0 + cor0.col1 + col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT DISTINCT + - col1 * + cor0.col0 + + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT col1 - cor0.col0 * - col2 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ( 47 * + col1 ) FROM tab1
----
1222
470
611
query I rowsort
SELECT ALL - col2 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-351
SELECT DISTINCT - ( - cor0.col0 ) + col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT - ( - cor0.col0 ) + col0 / - col1 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT + + col2 + col2 - - col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT ALL - col0 * + 32 AS col1 FROM tab2
----
-224
-2496
-2528
onlyif mysql # use DIV operator for integer division
query I rowsort label-354
SELECT ALL ( 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-354
SELECT ALL ( col1 ) / col1 col2 FROM tab0
----
1
1
1
query I rowsort
SELECT - col1 - - 15 AS col2 FROM tab0
----
-71
-76
-82
query I rowsort
SELECT DISTINCT - col1 + cor0.col2 - - col1 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT ALL col0 * + col0 + + col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT cor0.col2 + col0 + col2 FROM tab1 AS cor0 WHERE cor0.col2 IN ( col0 )
----
query I rowsort
SELECT DISTINCT + col0 - + col1 * cor0.col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL + col0 FROM tab1 WHERE ( + col2 * + col2 + col2 ) NOT IN ( + col1 + tab1.col1 )
----
3
64
80
query I rowsort
SELECT DISTINCT col0 * col0 + - col1 + col1 AS col1 FROM tab2
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col2 col1 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL tab0.col2 + col1 * - col1 + - col2 AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT col1 + + tab2.col1 + col2 AS col2 FROM tab2
----
144
72
89
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col2 * col1 )
----
query I rowsort
SELECT - col2 * - col2 + - col2 + + col1 * - col2 FROM tab0
----
-1782
-820
-97
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL NOT IN ( + col2 )
----
query I rowsort
SELECT tab2.col2 * - col0 * + col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT ALL + col1 * col2 + + tab1.col2 AS col1 FROM tab1
----
1344
1458
627
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < col1 / col0 - col2
----
query I rowsort
SELECT DISTINCT - tab1.col0 * col1 + col0 AS col0 FROM tab1
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 * col0 * tab2.col2 col1 FROM tab2
----
114076
5103
52728
onlyif mysql # use DIV operator for integer division
query I rowsort label-373
SELECT DISTINCT col1 DIV - col2 + + col2 FROM tab0
----
-96
31
81
skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT col1 / - col2 + + col2 FROM tab0
----
-96
31
81
query I rowsort
SELECT DISTINCT + col2 + col1 + - tab2.col0 FROM tab2
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-375
SELECT ALL - - col0 DIV cor0.col1 - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1440
-675
-729
skipif mysql # not compatible
query I rowsort label-375
SELECT ALL - - col0 / cor0.col1 - cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
-1440
-675
-729
query I rowsort
SELECT ALL + col0 * + col1 + col2 AS col2 FROM tab2
----
1381
244
4628
onlyif mysql # use DIV operator for integer division
query I rowsort label-377
SELECT DISTINCT + col0 * - col0 DIV col0 + col2 FROM tab0
----
-34
-7
9
skipif mysql # not compatible
query I rowsort label-377
SELECT DISTINCT + col0 * - col0 / col0 + col2 FROM tab0
----
-34
-7
9
query I rowsort
SELECT ALL cor0.col1 FROM tab0, tab2, tab1 cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col0 FROM tab2
----
104
117
34
query I rowsort
SELECT DISTINCT + tab2.col2 + - col0 + col0 * col2 FROM tab2
----
1976
209
2961
onlyif mysql # use DIV operator for integer division
query I rowsort label-381
SELECT + col2 DIV - col2 + col0 AS col2 FROM tab0
----
23
34
88
skipif mysql # not compatible
query I rowsort label-381
SELECT + col2 / - col2 + col0 AS col2 FROM tab0
----
23
34
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-382
SELECT - tab1.col2 * + col1 * - col0 + col0 DIV col1 FROM tab1
----
36486
4212
99846
skipif mysql # not compatible
query I rowsort label-382
SELECT - tab1.col2 * + col1 * - col0 + col0 / col1 FROM tab1
----
36486
4212
99846
query I rowsort
SELECT DISTINCT - - cor0.col2 + col0 AS col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - cor0.col2 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-100
-3
-45
query I rowsort
SELECT ALL - - col2 - - col1 * col2 * col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT - - col2 + + cor0.col1 * col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT DISTINCT col2 * col0 * - col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT 5 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-389
SELECT DISTINCT + col2 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT + col2 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-390
SELECT DISTINCT - col2 DIV 6 AS col1 FROM tab2
----
-4
-6
skipif mysql # not compatible
query I rowsort label-390
SELECT DISTINCT - col2 / 6 AS col1 FROM tab2
----
-4
-6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col0 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
64
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 cor0, tab2 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7
query I rowsort
SELECT 42 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
294
3276
3318
onlyif mysql # use DIV operator for integer division
query I rowsort label-394
SELECT - 11 + - col2 DIV + col1 AS col1 FROM tab1 cor0
----
-13
-16
-18
skipif mysql # not compatible
query I rowsort label-394
SELECT - 11 + - col2 / + col1 AS col1 FROM tab1 cor0
----
-13
-16
-18
query I rowsort
SELECT cor0.col2 - col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT 90 * - col0 + col0 * col2 - col1 FROM tab1 cor0
----
-134
-2122
467
query I rowsort
SELECT + ( - col2 ) * + col0 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + 87 + 57 * + col0 AS col0 FROM tab2 AS cor0
----
4533
4590
486
query I rowsort
SELECT ( + 96 ) AS col0 FROM tab1 cor0
----
96
96
96
query I rowsort
SELECT ALL + 23 * col2 + col2 * col1 * - col2 + - col0 AS col0 FROM tab2 AS cor0
----
-21985
-23753
-39364
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-401
SELECT + - CAST( - ( - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-401
SELECT + - CAST ( - ( - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT ALL - - col0 * - 1 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-403
SELECT + + 26 + + cor0.col0 DIV + 69 FROM tab0 AS cor0
----
26
26
27
skipif mysql # not compatible
query I rowsort label-403
SELECT + + 26 + + cor0.col0 / + 69 FROM tab0 AS cor0
----
26
26
27
query I rowsort
SELECT + + 0 + - cor0.col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL + 1 FROM tab0, tab2 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
query I rowsort
SELECT - ( - col0 ) * + col1 * 76 + col1 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
149468
248611
607243
onlyif mysql # use DIV operator for integer division
query I rowsort label-407
SELECT DISTINCT + 66 * cor0.col1 DIV cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
11
12
15
17
30
31
6
8
skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + 66 * cor0.col1 / cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
11
12
15
17
30
31
6
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-408
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-408
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL + - cor1.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT + col1 * - 48 FROM tab1 AS cor0
----
-1248
-480
-624
query I rowsort
SELECT - + 25 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-412
SELECT DISTINCT col1 - - CAST( NULL AS DECIMAL ) / + col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-412
SELECT DISTINCT col1 - - CAST ( NULL AS REAL ) / + col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 + col2 * - col0 * - col1 FROM tab2 cor0
----
119593
51017
5828
query I rowsort
SELECT DISTINCT - + cor0.col0 + - col1 * col1 FROM tab0 AS cor0
----
-7420
-8370
-9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-415
SELECT ALL + col0 DIV + col0 - 75 FROM tab2 cor0
----
-74
-74
-74
skipif mysql # not compatible
query I rowsort label-415
SELECT ALL + col0 / + col0 - 75 FROM tab2 cor0
----
-74
-74
-74
query I rowsort
SELECT col0 * col2 + cor0.col0 AS col2 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-417
SELECT DISTINCT + col1 + 29 DIV + col1 FROM tab2 AS cor0
----
18
31
59
skipif mysql # not compatible
query I rowsort label-417
SELECT DISTINCT + col1 + 29 / + col1 FROM tab2 AS cor0
----
18
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-418
SELECT col0 * - CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-418
SELECT col0 * - CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT + col2 + + 77 FROM tab0 AS cor0
----
110
159
78
query I rowsort
SELECT + col1 * + 78 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT - col0 * + 12 + - cor0.col1 FROM tab2 AS cor0
----
-115
-965
-995
query I rowsort
SELECT ALL - tab2.col0 AS col1 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c82df1de3cb666224690a83f3d790d79
query I rowsort
SELECT ALL - cor0.col0 + col2 * col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT - - col2 * + 80 AS col1 FROM tab0 AS cor0
----
2640
6560
80
query I rowsort
SELECT ALL - - col2 + + col1 - + col1 * 98 FROM tab2 AS cor0
----
-1611
-2980
-5697
query I rowsort
SELECT DISTINCT ( + ( + col0 ) ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT - col1 * - col1 + - ( - 89 ) FROM tab0
----
7485
8370
9498
query I rowsort
SELECT ALL col1 + + col1 * col1 + ( col2 ) FROM tab2
----
1019
344
3566
onlyif mysql # use DIV operator for integer division
query I rowsort label-429
SELECT tab1.col1 DIV col0 + 19 FROM tab1
----
19
19
27
skipif mysql # not compatible
query I rowsort label-429
SELECT tab1.col1 / col0 + 19 FROM tab1
----
19
19
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * + col2 * + ( col1 ) + col0 + tab2.col0 * col0 col2 FROM tab2
----
-37608
-56860
-98150
query I rowsort
SELECT - cor0.col0 * + col0 + + 35 FROM tab1 AS cor0
----
-4061
-6365
26
query I rowsort
SELECT + col1 * col1 + + 14 AS col1 FROM tab1 AS cor0
----
114
183
690
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 col2 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT - 39 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-1287
-3198
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 47 col1 FROM tab2 AS cor0
----
47
47
47
query I rowsort
SELECT DISTINCT + tab2.col2 * + 65 AS col0 FROM tab2
----
1690
1755
2470
query I rowsort
SELECT 69 + - tab2.col2 FROM tab2
----
31
42
43
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 33 * - col0 col0 FROM tab1
----
102
2176
2720
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 + + cor0.col0 * col0 * 54 col1 FROM tab1 AS cor0
----
221168
345584
470
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col1 + col1 col1 FROM tab0
----
172
182
194
query I rowsort
SELECT col2 + col1 * 67 + - tab2.col2 * + col2 FROM tab2
----
-267
1375
3303
query I rowsort
SELECT col0 * + tab1.col2 + + col0 + - col2 * col0 AS col1 FROM tab1
----
3
64
80
query I rowsort
SELECT + + cor0.col0 + col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL col0 * + cor0.col2 * + 48 AS col2 FROM tab1 AS cor0
----
175104
368640
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-445
SELECT ALL - 29 * - cor0.col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-445
SELECT ALL - 29 * - 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-446
SELECT - col2 + - col0 DIV + 49 FROM tab0
----
-1
-33
-83
skipif mysql # not compatible
query I rowsort label-446
SELECT - col2 + - col0 / + 49 FROM tab0
----
-1
-33
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col2 * 37 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cdb0f9d0ea5da1d07affc20c839dce2a
query I rowsort
SELECT - col1 - + col1 AS col1 FROM tab1
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( + 39 ) + - col2 * - col1 * 16 + + col2 col1 FROM tab2
----
13455
13692
27612
onlyif mysql # use DIV operator for integer division
query I rowsort label-450
SELECT + + col1 + col2 + + col1 DIV col0 AS col0 FROM tab2 AS cor0
----
55
62
85
skipif mysql # not compatible
query I rowsort label-450
SELECT + + col1 + col2 + + col1 / col0 AS col0 FROM tab2 AS cor0
----
55
62
85
query I rowsort
SELECT DISTINCT - cor0.col1 + cor0.col2 AS col1 FROM tab2, tab1 AS cor0
----
28
47
83
query I rowsort
SELECT col2 + - 69 * col1 * col2 FROM tab0 AS cor0
----
-195789
-514796
-6692
query I rowsort
SELECT cor1.col0 * cor1.col0 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 368b2268fa85c1d99bbd086f4591b02b
query I rowsort
SELECT DISTINCT + ( 93 ) AS col0 FROM tab1 AS cor0
----
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-455
SELECT + cor0.col2 DIV + col2 col2 FROM tab0 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-455
SELECT + cor0.col2 / + col2 col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 43 + - 86 AS col2 FROM tab1 AS cor0
----
-43
query I rowsort
SELECT DISTINCT col1 * - col0 * col0 AS col2 FROM tab1 AS cor0
----
-234
-40960
-83200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-458
SELECT + - CAST( - ( col2 ) AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
52
54
76
skipif mysql # not compatible
query I rowsort label-458
SELECT + - CAST ( - ( col2 ) AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
52
54
76
query I rowsort
SELECT ALL - col1 * - 46 FROM tab0 AS cor0
----
3956
4186
4462
query I rowsort
SELECT - col2 * 0 + col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 * + col1 * + col2 AS col1 FROM tab2 AS cor0
----
22599
24548
39884
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 + col1 col2 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT + + 79 * col1 FROM tab0 AS cor0
----
6794
7189
7663
query I rowsort
SELECT DISTINCT + ( - col0 ) * - col0 + ( - col2 ) * - col2 AS col2 FROM tab1 AS cor0
----
15616
2925
7345
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-465
SELECT - CAST( col2 AS SIGNED ) + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-465
SELECT - CAST ( col2 AS INTEGER ) + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT ( + 54 ) AS col2 FROM tab1
----
54
query I rowsort
SELECT DISTINCT - - col2 + col2 AS col0 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT - - col2 + + 52 AS col1 FROM tab2 cor0
----
78
79
90
query I rowsort
SELECT - 51 FROM tab0, tab2 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 006d860fc40bbb38cbb649ba917d74a9
query I rowsort
SELECT ALL - - cor0.col2 + ( col0 * - 61 ) FROM tab0 AS cor0
----
-1431
-2134
-5347
query I rowsort
SELECT ALL cor1.col2 AS col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-472
SELECT CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-472
SELECT CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
-17
-31
-59
query I rowsort
SELECT col0 * 0 + + col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT DISTINCT - - col1 * + col2 - + col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT ALL - col1 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - ( - 14 + - col2 ) AS col1 FROM tab0
----
15
47
96
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * + col0 AS col0 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL - cor0.col1 * cor0.col0 * - 88 + - cor0.col2 - col0 FROM tab2 AS cor0
----
118067
19062
404872
query I rowsort
SELECT + + col1 * + cor0.col1 + + col1 FROM tab0 AS cor0
----
7482
8372
9506
query I rowsort
SELECT ALL - col0 * - 52 + col0 FROM tab1 AS cor0
----
159
3392
4240
query I rowsort
SELECT DISTINCT + col2 * - col0 - cor0.col0 * - col1 FROM tab0 AS cor0
----
1272
3360
801
query I rowsort
SELECT - - col0 + + col2 * + 26 AS col0 FROM tab2 AS cor0
----
1067
709
754
query I rowsort
SELECT DISTINCT cor0.col1 * col1 + + 0 * + col0 AS col1 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT ALL - - cor0.col2 + - col1 AS col0 FROM tab2 AS cor0
----
-33
-4
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 14 col1 FROM tab2 AS cor0
----
40
41
52
query I rowsort
SELECT + col1 * - cor0.col1 + col2 FROM tab2 AS cor0
----
-251
-3455
-934
skipif mysql # not compatible
query I rowsort
SELECT - col1 * - CAST ( 63 AS REAL ) + col2 FROM tab2 AS cor0
----
1109
1980
3743
query I rowsort
SELECT DISTINCT - 62 - tab2.col1 FROM tab2
----
-121
-79
-93
query I rowsort
SELECT + col2 + + col1 * 4 FROM tab0
----
377
389
446
query I rowsort
SELECT + 20 * + col2 * + col0 AS col0 FROM tab2
----
3780
40560
60040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col1 col0 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT cor0.col0 * - col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - 9 AS col1 FROM tab0, tab2, tab1 AS cor0
----
9
query I rowsort
SELECT ALL 21 - col1 FROM tab1
----
-5
11
8
query I rowsort
SELECT ALL + 70 - + col2 AS col1 FROM tab1
----
-26
13
16
query I rowsort
SELECT + 28 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT + 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # use DIV operator for integer division
query I rowsort label-498
SELECT DISTINCT - - cor0.col1 DIV 67 FROM tab0 cor0
----
1
skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - - cor0.col1 / 67 FROM tab0 cor0
----
1
query I rowsort
SELECT ALL + + col0 * - col0 + 44 AS col0 FROM tab0 AS cor0
----
-1181
-532
-7877
query I rowsort
SELECT + - col0 * - col2 + + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-501
SELECT ALL + tab0.col2 DIV - tab0.col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-501
SELECT ALL + tab0.col2 / - tab0.col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT ALL - col2 * + col2 * 91 FROM tab2
----
-131404
-61516
-66339
query I rowsort
SELECT ALL + ( cor0.col0 ) FROM tab2, tab0 cor0, tab0 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT - col2 + - col1 + col2 * - ( col0 ) AS col1 FROM tab1 cor0
----
-242
-3715
-7789
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col0 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * cor0.col1 col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT 16 + - col2 FROM tab1 AS cor0
----
-38
-41
-80
query I rowsort
SELECT + 72 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT - 89 * + tab1.col0 FROM tab1
----
-267
-5696
-7120
query I rowsort
SELECT col0 * 74 FROM tab0 AS cor0
----
1776
2590
6586
onlyif mysql # use DIV operator for integer division
query I rowsort label-511
SELECT - col0 DIV - col0 AS col2 FROM tab1 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-511
SELECT - col0 / - col0 AS col2 FROM tab1 cor0
----
1
1
1
query I rowsort
SELECT col2 * 93 AS col1 FROM tab2 AS cor0
----
2418
2511
3534
query I rowsort
SELECT + col0 * + col2 * + col0 AS col0 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-514
SELECT - col2 DIV - 91 AS col2 FROM tab1 cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-514
SELECT - col2 / - 91 AS col2 FROM tab1 cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 12 col2 FROM tab2 AS cor0
----
84
936
948
onlyif mysql # use DIV operator for integer division
query I rowsort label-516
SELECT col1 DIV + col0 + + col1 AS col0 FROM tab2
----
17
35
59
skipif mysql # not compatible
query I rowsort label-516
SELECT col1 / + col0 + + col1 AS col0 FROM tab2
----
17
35
59
query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) >= NULL
----
query I rowsort
SELECT + tab2.col1 - col2 AS col2 FROM tab2
----
-21
33
4
query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 * col1 + col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * col1 col0 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND ( NULL )
----
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2 * + col1 )
----
query I rowsort
SELECT - col0 + col0 + col0 AS col0 FROM tab2
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-523
SELECT ALL col2 * + col2 DIV + col2 AS col2 FROM tab0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-523
SELECT ALL col2 * + col2 / + col2 AS col2 FROM tab0
----
1
33
82
query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----
query I rowsort
SELECT ALL + col0 * + tab0.col2 + col0 * + col2 FROM tab0 WHERE NOT - tab0.col2 - - col2 * col2 IN ( col1 * tab0.col0 - col1 )
----
14596
1584
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-526
SELECT ALL + col2 DIV - col2 + - col1 AS col0 FROM tab1 WHERE NOT + col1 * + col0 - col2 * + col1 BETWEEN NULL AND + col0
----
-11
skipif mysql # not compatible
query I rowsort label-526
SELECT ALL + col2 / - col2 + - col1 AS col0 FROM tab1 WHERE NOT + col1 * + col0 - col2 * + col1 BETWEEN NULL AND + col0
----
-11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab1.col2 + + col0 + col2 * col1 col1 FROM tab1
----
1424
1461
691
onlyif mysql # use DIV operator for integer division
query I rowsort label-528
SELECT col0 DIV - col0 + - col1 * col2 * col1 AS col1 FROM tab1
----
-16225
-36505
-5701
skipif mysql # not compatible
query I rowsort label-528
SELECT col0 / - col0 + - col1 * col2 * col1 AS col1 FROM tab1
----
-16225
-36505
-5701
query I rowsort
SELECT col2 * + col0 + + col0 * tab2.col1 AS col2 FROM tab2
----
406
4345
6630
query I rowsort
SELECT col2 + col1 * col2 + col2 * col0 * col0 AS col2 FROM tab2
----
159744
2187
237842
query I rowsort
SELECT + - 63 * + col2 FROM tab1 AS cor0
----
-3402
-3591
-6048
query I rowsort
SELECT col0 * col1 * + col0 AS col2 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT col0 + - col0 AS col0 FROM tab1 WHERE NOT - tab1.col1 + + col0 + + col0 < + col1 + col2
----
0
0
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN ( NULL ) AND col0 + col1
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col1 IN ( col0 * tab2.col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT - col1 * tab0.col2 AS col0 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 col0 FROM tab2
----
289
3481
961
query I rowsort
SELECT - col0 + col1 * ( col1 ) FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT - col2 + - tab1.col1 + col0 FROM tab1
----
-29
-3
-77
query I rowsort
SELECT DISTINCT col1 * col1 - col2 AS col0 FROM tab2
----
251
3455
934
query I rowsort
SELECT DISTINCT + tab1.col0 - col0 * col0 * + col1 AS col1 FROM tab1
----
-231
-40896
-83120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-542
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-542
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 + - col0 col2 FROM tab0 AS cor0
----
-122
-57
-68
query I rowsort
SELECT ALL - + col0 * - col1 + ( 21 ) AS col0 FROM tab2 AS cor0
----
1364
238
4623
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - cor0.col0 * col0 * 11 col0 FROM tab2 AS cor0
----
-532
-66846
-68572
onlyif mysql # use DIV operator for integer division
query I rowsort label-546
SELECT - ( col2 ) DIV col0 AS col1 FROM tab2
----
-3
0
0
skipif mysql # not compatible
query I rowsort label-546
SELECT - ( col2 ) / col0 AS col1 FROM tab2
----
-3
0
0
query I rowsort
SELECT + ( col1 ) + - 1 * col2 FROM tab1 cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * + col1 + 33 col1 FROM tab0 cor0
----
130
2871
7495
query I rowsort
SELECT DISTINCT - col2 * col1 - cor0.col2 * - col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - - cor0.col2 * col0 - - col1 AS col0 FROM tab2 AS cor0
----
2087
220
3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-551
SELECT + - col0 * - col0 DIV col0 + - col0 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-551
SELECT + - col0 * - col0 / col0 + - col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + col0 * - col0 - col0 AS col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - col2 + ( cor0.col2 + + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-554
SELECT - CAST( + cor1.col1 AS SIGNED ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-554
SELECT - CAST ( + cor1.col1 AS INTEGER ) col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 * ( col1 + col2 ) col2 FROM tab1 AS cor0
----
-1407
-1680
-2289
query I rowsort
SELECT DISTINCT - - col2 * 3 AS col0 FROM tab1 AS cor0
----
162
171
288
query I rowsort
SELECT - 91 * 76 FROM tab0 AS cor0
----
-6916
-6916
-6916
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( col2 ) col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT + ( col2 ) * + cor0.col2 + col1 FROM tab2 cor0
----
1461
735
760
query I rowsort
SELECT - 30 * cor0.col2 FROM tab1 AS cor0
----
-1620
-1710
-2880
query I rowsort
SELECT ALL - col2 * col1 - - col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - col2 * + ( - col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ALL - + col1 * + 66 - - cor0.col2 AS col1 FROM tab0 AS cor0
----
-5643
-5924
-6401
query I rowsort
SELECT DISTINCT - col2 + + col1 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT - col1 + - ( col1 ) * col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT - + cor0.col2 * ( 14 ) FROM tab0 AS cor0
----
-1148
-14
-462
query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 FROM tab1
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * ( cor0.col0 ) col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT + cor0.col1 * + col1 + col1 + - col0 AS col0 FROM tab0 AS cor0
----
7458
8283
9471
query I rowsort
SELECT + col0 * 64 + 0 FROM tab0 AS cor0
----
1536
2240
5696
query I rowsort
SELECT ALL + + cor0.col2 - + cor0.col1 * col0 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - col2 * - 51 AS col0 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT - col2 * col2 + + 88 * col0 AS col1 FROM tab2 AS cor0
----
-113
5508
6188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 - - col0 col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ALL 17 - + col0 FROM tab2 AS cor0
----
-61
-62
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-576
SELECT ALL - - 69 * - cor0.col0 + + CAST( col1 AS SIGNED ) FROM tab2 AS cor0
----
-452
-5323
-5434
skipif mysql # not compatible
query I rowsort label-576
SELECT ALL - - 69 * - cor0.col0 + + CAST ( col1 AS INTEGER ) FROM tab2 AS cor0
----
-452
-5323
-5434
onlyif mysql # use DIV operator for integer division
query I rowsort label-577
SELECT + col1 DIV col2 + 29 * 2 AS col2 FROM tab0 cor0
----
155
59
60
skipif mysql # not compatible
query I rowsort label-577
SELECT + col1 / col2 + 29 * 2 AS col2 FROM tab0 cor0
----
155
59
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-578
SELECT col2 * + col0 + + CAST( - 92 AS SIGNED ) DIV col1 FROM tab0 cor0
----
35
7297
791
skipif mysql # not compatible
query I rowsort label-578
SELECT col2 * + col0 + + CAST ( - 92 AS INTEGER ) / col1 FROM tab0 cor0
----
35
7297
791
query I rowsort
SELECT DISTINCT 2 + 8 AS col2 FROM tab2
----
10
query I rowsort
SELECT DISTINCT 61 - - 73 FROM tab1
----
134
query I rowsort
SELECT - 55 * 73 AS col1 FROM tab0, tab1 cor0 CROSS JOIN tab1
----
27 values hashing to fae2ef9f22bd092f4a859b6749d3e24b
query I rowsort
SELECT DISTINCT 15 + + col1 AS col1 FROM tab1
----
25
28
41
query I rowsort
SELECT DISTINCT 74 + col2 FROM tab2
----
100
101
112
query I rowsort
SELECT - tab1.col0 * + col1 + col1 * 96 FROM tab1
----
208
2418
320
query I rowsort
SELECT + 69 - + col2 FROM tab1
----
-27
12
15
query I rowsort
SELECT 25 * col1 + + 73 * col2 FROM tab2 AS cor0
----
2746
3199
3373
query I rowsort
SELECT ALL - ( - col0 ) + cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-588
SELECT ALL 8 * - tab1.col0 + col2 DIV + ( tab1.col0 ) AS col1 FROM tab1
----
-512
-6
-639
skipif mysql # not compatible
query I rowsort label-588
SELECT ALL 8 * - tab1.col0 + col2 / + ( tab1.col0 ) AS col1 FROM tab1
----
-512
-6
-639
query I rowsort
SELECT ALL - col2 + - col0 * - cor0.col1 * col0 FROM tab2 AS cor0
----
106059
1492
358930
onlyif mysql # use DIV operator for integer division
query I rowsort label-590
SELECT ALL - - ( col2 ) + col0 DIV 60 AS col2 FROM tab2 cor0
----
27
27
39
skipif mysql # not compatible
query I rowsort label-590
SELECT ALL - - ( col2 ) + col0 / 60 AS col2 FROM tab2 cor0
----
27
27
39
query I rowsort
SELECT ALL - 53 * - col2 FROM tab0
----
1749
4346
53
query I rowsort
SELECT - cor0.col0 * - ( - col0 * - col0 ) FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT - col0 + col2 + + col1 FROM tab2
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-594
SELECT CAST( + 29 AS SIGNED ) * tab1.col0 DIV tab1.col0 AS col0 FROM tab1
----
29
29
29
skipif mysql # not compatible
query I rowsort label-594
SELECT CAST ( + 29 AS INTEGER ) * tab1.col0 / tab1.col0 AS col0 FROM tab1
----
29
29
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-595
SELECT DISTINCT + 66 DIV + col1 FROM tab1
----
2
5
6
skipif mysql # not compatible
query I rowsort label-595
SELECT DISTINCT + 66 / + col1 FROM tab1
----
2
5
6
query I rowsort
SELECT col2 + + col2 + + col1 AS col2 FROM tab0
----
152
255
99
query I rowsort
SELECT - 24 + + col0 FROM tab0
----
0
11
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col0 col0 FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT ( col2 ) + col2 FROM tab0
----
164
2
66
query I rowsort
SELECT - 95 FROM tab1, tab1 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
query I rowsort
SELECT 64 FROM tab0, tab0 AS cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e
query I rowsort
SELECT col0 * + 88 AS col0 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT ALL - col2 + ( col0 ) * 11 AS col1 FROM tab1 AS cor0
----
-21
647
784
query I rowsort
SELECT ALL + col2 * 47 + col2 * - ( col2 ) FROM tab0 AS cor0
----
-2870
46
462
query I rowsort
SELECT DISTINCT + ( col0 ) * col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT DISTINCT cor0.col1 + + 86 FROM tab1, tab0 AS cor0
----
172
177
183
query I rowsort
SELECT + 49 * + col0 + ( col0 ) FROM tab2 AS cor0
----
350
3900
3950
query I rowsort
SELECT col1 * col0 + col2 * + cor0.col0 - col1 AS col1 FROM tab2 AS cor0
----
375
4328
6571
query I rowsort
SELECT ( col1 ) + col0 AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + 68 * - col2 * + 62 AS col2 FROM tab2 AS cor0
----
-109616
-113832
-160208
query I rowsort
SELECT col1 - - col0 * col1 FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT ALL + - 19 * - col1 * + col0 AS col1 FROM tab1 AS cor0
----
12160
1482
19760
onlyif mysql # use DIV operator for integer division
query I rowsort label-613
SELECT 84 DIV + ( col1 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-613
SELECT 84 / + ( col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT ALL tab0.col1 + 6 * col1 FROM tab0
----
602
637
679
query I rowsort
SELECT ALL + cor0.col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-616
SELECT col0 * 50 DIV - col2 - 17 FROM tab1 AS cor0
----
-19
-58
-73
skipif mysql # not compatible
query I rowsort label-616
SELECT col0 * 50 / - col2 - 17 FROM tab1 AS cor0
----
-19
-58
-73
query I rowsort
SELECT col0 * col2 * col0 + + 63 AS col1 FROM tab1 AS cor0
----
233535
549
614463
onlyif mysql # use DIV operator for integer division
query I rowsort label-618
SELECT + + col2 * 71 + col2 DIV - col2 FROM tab0 AS cor0
----
2342
5821
70
skipif mysql # not compatible
query I rowsort label-618
SELECT + + col2 * 71 + col2 / - col2 FROM tab0 AS cor0
----
2342
5821
70
query I rowsort
SELECT ALL + col1 * 89 + col2 + 4 AS col0 FROM tab1 cor0
----
1257
2372
951
query I rowsort
SELECT - col0 * cor0.col1 + - col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT col1 * col1 - col0 AS col2 FROM tab1
----
36
673
89
query I rowsort
SELECT ALL col2 + - 35 AS col1 FROM tab1
----
19
22
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col1 * + col2 + col0 col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT DISTINCT - + tab2.col1 FROM tab2, tab1, tab1 AS cor0, tab0
----
-17
-31
-59
query I rowsort
SELECT col1 * tab2.col0 + - col2 FROM tab2
----
1305
190
4576
query I rowsort
SELECT + + col0 + + col0 * - col0 FROM tab0 AS cor0
----
-1190
-552
-7832
query I rowsort
SELECT + + tab2.col0 FROM tab2, tab0, tab0 AS cor0, tab1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT DISTINCT - ( col1 ) * col2 FROM tab1
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT - 93 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-630
SELECT tab0.col0 * CAST( NULL AS DECIMAL ) + + col1 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-630
SELECT tab0.col0 * CAST ( NULL AS REAL ) + + col1 * col0 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col2 + 52 AS col1 FROM tab1 AS cor0
----
106
109
148
query I rowsort
SELECT + - cor0.col2 + 43 AS col1 FROM tab2 AS cor0
----
16
17
5
query I rowsort
SELECT - - col2 - col2 * col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - col2 * - col0 + col2 + col2 AS col0 FROM tab2 cor0
----
2080
243
3078
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-635
SELECT + - col2 * - CAST( col2 AS SIGNED ) + + col1 FROM tab0 AS cor0
----
1175
6815
98
skipif mysql # not compatible
query I rowsort label-635
SELECT + - col2 * - CAST ( col2 AS INTEGER ) + + col1 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT col0 * + col2 - + 24 AS col1 FROM tab1 AS cor0
----
138
3624
7656
query I rowsort
SELECT ALL col0 * - col0 * + ( - tab1.col0 ) AS col1 FROM tab1
----
262144
27
512000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-638
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab1, tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-638
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 * + 22 * - col0 - - col1 AS col2 FROM tab2
----
101303
29563
4805
query I rowsort
SELECT ALL col0 * + col0 * - col0 FROM tab2
----
-343
-474552
-493039
query I rowsort
SELECT ALL - 6 AS col2 FROM tab0 AS cor0
----
-6
-6
-6
query I rowsort
SELECT col0 + col1 * + tab1.col0 AS col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT + col2 * 91 + col1 FROM tab2 AS cor0
----
2425
2488
3475
query I rowsort
SELECT DISTINCT + + 25 * 35 FROM tab0 AS cor0
----
875
query I rowsort
SELECT DISTINCT - ( - cor0.col0 ) * - col2 + ( - col2 ) * col0 FROM tab2 AS cor0
----
-378
-4056
-6004
query I rowsort
SELECT col0 + - col2 + + col0 FROM tab1 AS cor0
----
-48
64
71
query I rowsort
SELECT ALL + ( col0 ) + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT col2 * + col1 * col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + - col0 * 14 + - col1 FROM tab2 cor0
----
-1123
-1151
-129
onlyif mysql # use DIV operator for integer division
query I rowsort label-650
SELECT col1 * 83 DIV 22 col2 FROM tab2
----
116
222
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-650
SELECT col1 * 83 / 22 col2 FROM tab2
----
116
222
64
query I rowsort
SELECT DISTINCT - col0 * 17 AS col2 FROM tab2 AS cor0
----
-119
-1326
-1343
query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT ALL + + 93 * col0 AS col1 FROM tab0 AS cor0
----
2232
3255
8277
query I rowsort
SELECT - ( + 24 ) AS col2 FROM tab2 AS cor0
----
-24
-24
-24
query I rowsort
SELECT - + col0 * col0 + - col1 - - 97 FROM tab1 AS cor0
----
-4009
-6316
62
query I rowsort
SELECT + col1 + col1 * cor0.col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT 11 * col0 AS col2 FROM tab2
----
77
858
869
query I rowsort
SELECT ALL + 86 AS col1 FROM tab1 cor0
----
86
86
86
query I rowsort
SELECT - 27 FROM tab2 cor0
----
-27
-27
-27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 + - ( - 11 ) col0 FROM tab2 AS cor0
----
60
6095
6252
query I rowsort
SELECT ALL - + 84 * col2 AS col0 FROM tab1 AS cor0
----
-4536
-4788
-8064
onlyif mysql # use DIV operator for integer division
query I rowsort label-662
SELECT - col2 + col1 DIV ( - col1 ) + + col2 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
1151
1349
512
skipif mysql # not compatible
query I rowsort label-662
SELECT - col2 + col1 / ( - col1 ) + + col2 * ( + col1 ) AS col0 FROM tab1 AS cor0
----
1151
1349
512
query I rowsort
SELECT col1 * - col2 + 74 * - col0 AS col2 FROM tab2 AS cor0
----
-1355
-6492
-7306
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-664
SELECT + + ( - cor0.col2 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-664
SELECT + + ( - cor0.col2 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-665
SELECT - cor0.col2 + 87 DIV - 11 col1 FROM tab0 AS cor0
----
-40
-8
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-665
SELECT - cor0.col2 + 87 / - 11 col1 FROM tab0 AS cor0
----
-40
-8
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-666
SELECT + + col1 DIV col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-666
SELECT + + col1 / col1 AS col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + col0 * + col0 AS col1 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT DISTINCT + + col1 + - cor0.col2 * - cor0.col0 * - col0 FROM tab1 AS cor0
----
-233462
-460
-614387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-669
SELECT ALL - CAST( NULL AS DECIMAL ) * + ( col1 + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-669
SELECT ALL - CAST ( NULL AS REAL ) * + ( col1 + col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + col2 * - col1 * cor0.col1 FROM tab0 AS cor0
----
-244092
-679131
-9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-671
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 + + col2 * + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-671
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 + + col2 * + ( cor0.col2 ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 67 * col0 AS col1 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT + + col0 - + col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-674
SELECT DISTINCT - - col0 * 44 DIV col0 + + ( 90 ) FROM tab1 AS cor0
----
134
skipif mysql # not compatible
query I rowsort label-674
SELECT DISTINCT - - col0 * 44 / col0 + + ( 90 ) FROM tab1 AS cor0
----
134
query I rowsort
SELECT - col0 * col1 + col1 * - 84 + col2 * col1 FROM tab0 AS cor0
----
-11446
-6450
-8281
query I rowsort
SELECT DISTINCT - - col1 + + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT + + cor0.col1 * col0 + - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - col0 + ( - col2 ) FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-679
SELECT DISTINCT + - 47 * - 98 + - col0 DIV + col2 col1 FROM tab0 AS cor0
----
4571
4605
4606
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT + - 47 * - 98 + - col0 / + col2 col1 FROM tab0 AS cor0
----
4571
4605
4606
onlyif mysql # use DIV operator for integer division
query I rowsort label-680
SELECT - 10 * col1 + + col2 DIV 89 col1 FROM tab1 AS cor0
----
-100
-129
-260
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-680
SELECT - 10 * col1 + + col2 / 89 col1 FROM tab1 AS cor0
----
-100
-129
-260
query I rowsort
SELECT DISTINCT cor0.col2 + col0 + + col2 FROM tab1 AS cor0
----
111
178
272
query I rowsort
SELECT ALL + + col1 + - 96 FROM tab1 cor0
----
-70
-83
-86
query I rowsort
SELECT col1 + 38 * col2 * - col0 FROM tab0 AS cor0
----
-1233
-277233
-30010
query I rowsort
SELECT ALL + + col2 * - col1 AS col0 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 * - cor0.col0 + 26 * col0 * col1 + - 95 col0 FROM tab1 AS cor0
----
14433
1834
24305
query I rowsort
SELECT + cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT DISTINCT + cor0.col0 + - 17 FROM tab2, tab2 AS cor0
----
-10
61
62
query I rowsort
SELECT DISTINCT - col1 * - col1 + col2 + col0 FROM tab2 AS cor0
----
3585
406
995
query I rowsort
SELECT - col0 + col2 * + cor0.col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT col1 * 45 AS col0 FROM tab1 AS cor0
----
1170
450
585
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col2 + + tab0.col1 ) * col2 col2 FROM tab0
----
14186
3927
98
query I rowsort
SELECT ALL col0 + - col1 * col1 + + cor0.col0 FROM tab0 AS cor0
----
-7348
-8103
-9339
query I rowsort
SELECT DISTINCT + col2 + - 37 FROM tab1
----
17
20
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-694
SELECT col2 * ( col0 * - col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-694
SELECT col2 * ( col0 * - col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * col0 + ( - 50 * + col2 + col0 * + col1 ) col0 FROM tab1 AS cor0
----
-2457
1502
4000
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-696
SELECT DISTINCT CAST( - 51 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
-1224
-1785
-4539
skipif mysql # not compatible
query I rowsort label-696
SELECT DISTINCT CAST ( - 51 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
-1224
-1785
-4539
query I rowsort
SELECT ALL + + ( col0 ) * - cor0.col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT ALL col0 * 81 FROM tab1 AS cor0
----
243
5184
6480
query I rowsort
SELECT DISTINCT - 16 AS col2 FROM tab0, tab0 AS cor0
----
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-700
SELECT DISTINCT col2 + + 62 * col0 DIV col0 FROM tab2
----
100
88
89
skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT col2 + + 62 * col0 / col0 FROM tab2
----
100
88
89
query I rowsort
SELECT DISTINCT tab0.col2 * col1 + col2 * - col2 AS col2 FROM tab0
----
1749
738
96
query I rowsort
SELECT ALL tab1.col1 * - col0 + - 48 AS col1 FROM tab1
----
-1088
-126
-688
query I rowsort
SELECT 2 * + col1 + + col2 * col2 AS col0 FROM tab1 cor0
----
2968
3269
9242
query I rowsort
SELECT - - ( 20 ) FROM tab2 AS cor0
----
20
20
20
query I rowsort
SELECT col1 + - col1 + - ( - col0 ) AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT - ( 10 ) + col0 AS col0 FROM tab2 AS cor0
----
-3
68
69
query I rowsort
SELECT - cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
query I rowsort
SELECT DISTINCT col1 + - 75 + tab0.col0 * + col2 FROM tab0
----
57
7314
803
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab0 cor1, tab0, tab2 cor2
----
3645 values hashing to 71180f9f3efadf0ee3a7fec9678208ad
onlyif mysql # use DIV operator for integer division
query I rowsort label-710
SELECT DISTINCT - tab1.col0 DIV col2 + 60 FROM tab1
----
59
60
skipif mysql # not compatible
query I rowsort label-710
SELECT DISTINCT - tab1.col0 / col2 + 60 FROM tab1
----
59
60
query I rowsort
SELECT DISTINCT + ( - ( col2 ) ) AS col2 FROM tab1
----
-54
-57
-96
query I rowsort
SELECT 16 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3
query I rowsort
SELECT - ( - 84 * col2 ) FROM tab0
----
2772
6888
84
query I rowsort
SELECT ( col0 ) + - col0 * col1 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT + 44 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d
query I rowsort
SELECT ALL cor0.col1 * - 67 + col2 * col1 * - col1 FROM tab0 AS cor0
----
-15908
-249830
-685139
query I rowsort
SELECT ALL + + 29 FROM tab1, tab2, tab0 cor0
----
27 values hashing to 4c56285992bcb76e1aac22e6d23d1318
query I rowsort
SELECT DISTINCT + cor0.col0 - - tab2.col2 AS col1 FROM tab2, tab1, tab2 AS cor0
----
104
105
106
116
117
33
34
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 * - tab2.col2 col1 FROM tab2
----
-2132
-2214
-3116
onlyif mysql # use DIV operator for integer division
query I rowsort label-720
SELECT ALL - tab0.col0 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-720
SELECT ALL - tab0.col0 / - col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL + 2 AS col1 FROM tab2
----
2
2
2
query I rowsort
SELECT + 16 * col0 AS col2 FROM tab1 cor0
----
1024
1280
48
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT ALL - + cor0.col1 + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
-20
-26
-52
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * ( - col1 * col0 ) + + tab0.col1 col0 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT - col1 + - 90 * col2 FROM tab2 AS cor0
----
-2399
-2461
-3437
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-727
SELECT - col1 * + CAST( + col1 AS SIGNED ) * + col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif mysql # not compatible
query I rowsort label-727
SELECT - col1 * + CAST ( + col1 AS INTEGER ) * + col2 AS col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT ALL + - col1 + + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col0 * + cor0.col1 * - col1 FROM tab1 AS cor0
----
-13520
-2028
-6400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( cor1.col1 ) ) col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT - col2 * + col1 + col0 * + 76 AS col2 FROM tab0 AS cor0
----
-1014
-698
2563
query I rowsort
SELECT + - col2 * - col2 + - 27 FROM tab1 AS cor0
----
2889
3222
9189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 69 col0 FROM tab1 AS cor0
----
207
4416
5520
query I rowsort
SELECT DISTINCT - + col1 + 32 FROM tab0 cor0
----
-54
-59
-65
query I rowsort
SELECT + 31 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * - col0 col1 FROM tab0
----
-1944
-2835
-7209
query I rowsort
SELECT + col1 + + 66 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT - ( - col1 ) + col2 * - 45 FROM tab0 AS cor0
----
-1399
-3599
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-739
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-739
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( col1 ) * col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL + - col1 * col1 - - col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL 35 - col1 AS col0 FROM tab1 AS cor0
----
22
25
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-743
SELECT DISTINCT - cor0.col2 + cor0.col0 DIV - col0 FROM tab2 AS cor0
----
-27
-28
-39
skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT - cor0.col2 + cor0.col0 / - col0 FROM tab2 AS cor0
----
-27
-28
-39
query I rowsort
SELECT DISTINCT + col0 + - col0 * cor0.col1 AS col0 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - 57 * + col2 - col2 AS col2 FROM tab0
----
-1914
-4756
-58
query I rowsort
SELECT 30 AS col1 FROM tab1, tab2, tab2 cor0
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col1 * + col1 col2 FROM tab1
----
157
265
730
onlyif mysql # use DIV operator for integer division
query I rowsort label-748
SELECT - col1 DIV col1 + col0 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-748
SELECT - col1 / col1 + col0 FROM tab2
----
6
77
78
query I rowsort
SELECT DISTINCT - ( col0 ) * 77 * - 44 FROM tab1
----
10164
216832
271040
onlyif mysql # use DIV operator for integer division
query I rowsort label-750
SELECT 21 + - col1 DIV col0 AS col1 FROM tab1 AS cor0
----
13
21
21
skipif mysql # not compatible
query I rowsort label-750
SELECT 21 + - col1 / col0 AS col1 FROM tab1 AS cor0
----
13
21
21
query I rowsort
SELECT DISTINCT + 23 + col0 AS col1 FROM tab2 AS cor0
----
101
102
30
query I rowsort
SELECT + 79 + cor0.col1 * + col2 AS col1 FROM tab2 AS cor0
----
1613
725
916
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col1 col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT cor0.col1 * - ( col2 ) AS col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-755
SELECT col0 / CAST( - col2 AS SIGNED ) + + cor0.col0 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-755
SELECT col0 / CAST ( - col2 AS INTEGER ) + + cor0.col0 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-756
SELECT + col1 * CAST( NULL AS SIGNED ) + - col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-756
SELECT + col1 * CAST ( NULL AS INTEGER ) + - col0 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 + col1 + + col0 FROM tab2 AS cor0
----
113
196
69
query I rowsort
SELECT ( + cor0.col1 ) AS col0 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT 14 * 24 FROM tab2 AS cor0
----
336
336
336
query I rowsort
SELECT ALL + ( 18 ) + col0 * cor0.col1 AS col2 FROM tab1 cor0
----
1058
658
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 11 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00
query I rowsort
SELECT - + ( + cor0.col2 ) + col1 + + ( + col2 + - col0 ) AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT 26 * cor0.col0 * ( cor0.col1 ) AS col2 FROM tab0, tab1 AS cor0
----
16640
2028
27040
query I rowsort
SELECT ALL 27 * cor0.col0 + col0 FROM tab1 cor0
----
1792
2240
84
query I rowsort
SELECT col1 + + cor0.col0 * col2 + col2 FROM tab0 AS cor0
----
133
7471
911
onlyif mysql # use DIV operator for integer division
query I rowsort label-766
SELECT DISTINCT + cor2.col1 DIV 81 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-766
SELECT DISTINCT + cor2.col1 / 81 col2 FROM tab1, tab2 AS cor0, tab2 AS cor1, tab0 cor2
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col1 + col2 * col0 * col0 col1 FROM tab2
----
1292
158125
237141
query I rowsort
SELECT + col2 + - 40 + col2 AS col0 FROM tab0
----
-38
124
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-769
SELECT col1 - - 55 DIV col2 FROM tab1 AS cor0
----
10
13
27
skipif mysql # not compatible
query I rowsort label-769
SELECT col1 - - 55 / col2 FROM tab1 AS cor0
----
10
13
27
query I rowsort
SELECT + ( - col0 ) * col2 + col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT + + col1 * - col1 + + col2 AS col1 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT DISTINCT 33 + 14 FROM tab1, tab2 AS cor0
----
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * col0 col1 FROM tab2
----
22831
271518
6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-774
SELECT col0 + - CAST( 16 AS SIGNED ) + - col1 AS col1 FROM tab2
----
-40
3
46
skipif mysql # not compatible
query I rowsort label-774
SELECT col0 + - CAST ( 16 AS INTEGER ) + - col1 AS col1 FROM tab2
----
-40
3
46
query I rowsort
SELECT + 90 FROM tab1, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT - ( 77 ) FROM tab0, tab2 AS cor0
----
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-777
SELECT + col0 + - col1 DIV col2 FROM tab0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-777
SELECT + col0 + - col1 / col2 FROM tab0
----
-62
22
88
query I rowsort
SELECT DISTINCT + 42 * 78 + + col2 * + col0 AS col0 FROM tab0 AS cor0
----
10574
3311
4068
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-779
SELECT + + CAST( + col1 AS SIGNED ) * col1 + - ( + col0 * - col1 ) FROM tab1 AS cor0
----
1209
740
754
skipif mysql # not compatible
query I rowsort label-779
SELECT + + CAST ( + col1 AS INTEGER ) * col1 + - ( + col0 * - col1 ) FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT ALL - - col2 * 29 - col1 * + cor0.col0 FROM tab1 AS cor0
----
1013
1488
1744
query I rowsort
SELECT - 59 * - col1 + col0 FROM tab0 AS cor0
----
5098
5458
5758
query I rowsort
SELECT ALL + - 26 * cor0.col2 * col2 AS col1 FROM tab2 AS cor0
----
-17576
-18954
-37544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 * + col0 col1 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # use DIV operator for integer division
query I rowsort label-784
SELECT col0 * - col2 + + col1 + - col2 DIV 57 FROM tab2 cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-784
SELECT col0 * - col2 + + col1 + - col2 / 57 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT ALL - col1 + col2 - col0 * - cor0.col0 FROM tab2 AS cor0
----
45
6051
6262
onlyif mysql # use DIV operator for integer division
query I rowsort label-786
SELECT DISTINCT - 39 DIV + ( - col0 ) FROM tab0 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT - 39 / + ( - col0 ) FROM tab0 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-787
SELECT ALL + - col2 DIV 17 + - col2 * ( col1 ) * - col2 FROM tab0 AS cor0
----
611880
93653
97
skipif mysql # not compatible
query I rowsort label-787
SELECT ALL + - col2 / 17 + - col2 * ( col1 ) * - col2 FROM tab0 AS cor0
----
611880
93653
97
query I rowsort
SELECT + ( 68 ) AS col1 FROM tab2 AS cor0
----
68
68
68
query I rowsort
SELECT DISTINCT - ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-790
SELECT DISTINCT + col0 * cor0.col0 + ( 78 ) DIV - col0 AS col1 FROM tab2 AS cor0
----
38
6083
6241
skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT + col0 * cor0.col0 + ( 78 ) / - col0 AS col1 FROM tab2 AS cor0
----
38
6083
6241
query I rowsort
SELECT ALL + col1 + col0 * - 45 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-25834
-356354
-55028
query I rowsort
SELECT DISTINCT - + 64 AS col0 FROM tab2 AS cor0
----
-64
query I rowsort
SELECT DISTINCT - col1 * + col1 + + col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + col2 + col0 * cor0.col1 AS col1 FROM tab2 cor0
----
1381
244
4628
query I rowsort
SELECT + - col1 * + col2 * + col1 AS col2 FROM tab1 AS cor0
----
-16224
-36504
-5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col0 col0 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col0 * 47 col2 FROM tab0 AS cor0
----
-1128
-1645
-4183
query I rowsort
SELECT ALL + + col1 + col1 * col1 AS col2 FROM tab1 cor0
----
110
182
702
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-799
SELECT DISTINCT - col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-799
SELECT DISTINCT - col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT DISTINCT - cor0.col2 + 81 * + col2 FROM tab0 AS cor0
----
2640
6560
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-801
SELECT + + col2 DIV ( + col1 * col0 ) FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-801
SELECT + + col2 / ( + col1 * col0 ) FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT + 88 + + col0 AS col1 FROM tab2 AS cor0
----
166
167
95
query I rowsort
SELECT + 76 + - 65 + + cor0.col2 AS col2 FROM tab1 AS cor0
----
107
65
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col0 + - col0 col2 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT - 14 + + col1 FROM tab0 AS cor0
----
72
77
83
query I rowsort
SELECT - + ( col0 ) + - cor0.col2 + col2 * + col0 FROM tab0 AS cor0
----
-1
7127
735
query I rowsort
SELECT col2 + col0 * + col0 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT - ( - col0 ) * 38 + + 56 * - col1 FROM tab0 AS cor0
----
-1714
-3904
-4102
query I rowsort
SELECT cor0.col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - col0 + 72 * + col0 AS col2 FROM tab0
----
1704
2485
6319
query I rowsort
SELECT - 76 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to d90b4aa5f03b4a149aa925c4a88acca0
query I rowsort
SELECT ALL + 21 * + cor0.col1 AS col1 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 4db3ba91bcf641f14477b6f9ef89f20f
query I rowsort
SELECT DISTINCT + cor0.col2 * col2 - - cor0.col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT + 27 AS col1 FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE + col1 * - col1 > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-816
SELECT DISTINCT - col1 + col1 * col0 DIV col2 AS col1 FROM tab0 WHERE NOT col0 < col0 - col2
----
-24
3298
7
skipif mysql # not compatible
query I rowsort label-816
SELECT DISTINCT - col1 + col1 * col0 / col2 AS col1 FROM tab0 WHERE NOT col0 < col0 - col2
----
-24
3298
7
query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col1 NOT BETWEEN ( NULL ) AND + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-818
SELECT + tab1.col0 + - col0 * col0 DIV - col0 FROM tab1
----
128
160
6
skipif mysql # not compatible
query I rowsort label-818
SELECT + tab1.col0 + - col0 * col0 / - col0 FROM tab1
----
128
160
6
query I rowsort
SELECT + col2 * + col2 * col1 + - col0 + col1 * + col0 FROM tab1
----
120768
33066
75891
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( col2 - + col1 )
----
query I rowsort
SELECT tab1.col2 + col1 * col2 FROM tab1
----
1344
1458
627
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 BETWEEN + col2 AND NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( + col1 - - col1 * + col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - col0 col1 FROM tab0
----
0
query I rowsort
SELECT ALL - - 34 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-238
-2652
-2686
onlyif mysql # use DIV operator for integer division
query I rowsort label-826
SELECT - cor0.col0 DIV col0 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-826
SELECT - cor0.col0 / col0 AS col0 FROM tab1 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-827
SELECT DISTINCT + col0 DIV - col2 AS col2 FROM tab0 cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-827
SELECT DISTINCT + col0 / - col2 AS col2 FROM tab0 cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT cor0.col2 * cor0.col0 AS col2 FROM tab0, tab1 AS cor0
----
162
3648
7680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col2 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + col2 + + col2 * tab1.col2 * col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND col1 + - col0 + col2
----
query I rowsort
SELECT col1 * tab1.col2 + + col0 AS col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT ALL col0 + - col1 + col2 * col0 AS col0 FROM tab2
----
165
2047
3064
query I rowsort
SELECT col1 + tab2.col2 FROM tab2 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN col2 AND ( NULL )
----
query I rowsort
SELECT + col1 * - col0 + col2 + + col0 FROM tab2 AS cor0
----
-1226
-183
-4498
onlyif mysql # use DIV operator for integer division
query I rowsort label-836
SELECT col0 * col2 + + col2 DIV + col2 AS col1 FROM tab1
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-836
SELECT col0 * col2 + + col2 / + col2 AS col1 FROM tab1
----
163
3649
7681
query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) >= + col1 * + col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-838
SELECT ALL col0 DIV col1 + + col2 * + tab1.col0 FROM tab1
----
162
3654
7686
skipif mysql # not compatible
query I rowsort label-838
SELECT ALL col0 / col1 + + col2 * + tab1.col0 FROM tab1
----
162
3654
7686
query I rowsort
SELECT DISTINCT - col0 * col2 + + col1 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col1 + + col2 * - col1 AS col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT col2 * + col2 - col0 FROM tab2
----
1365
598
722
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( col1 * + col1 )
----
query I rowsort
SELECT DISTINCT + ( + 67 ) * col0 * - 81 AS col2 FROM tab2 AS cor0
----
-37989
-423306
-428733
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-844
SELECT ALL - col1 * + cor0.col0 * + col2 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-844
SELECT ALL - col1 * + cor0.col0 * + col2 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col1 ) + col1 * - ( 83 ) FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT DISTINCT 15 AS col1 FROM tab2, tab0 AS cor0
----
15
query I rowsort
SELECT ALL col0 * - 55 AS col1 FROM tab2
----
-385
-4290
-4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-848
SELECT col0 * col1 + - col0 * + col2 + + col1 DIV + col2 FROM tab0 cor0
----
1274
3457
802
skipif mysql # not compatible
query I rowsort label-848
SELECT col0 * col1 + - col0 * + col2 + + col1 / + col2 FROM tab0 cor0
----
1274
3457
802
query I rowsort
SELECT ALL + ( + 13 ) FROM tab1 cor0
----
13
13
13
query I rowsort
SELECT DISTINCT + 98 * + 26 + + col2 + - cor0.col1 FROM tab2 AS cor0
----
2515
2544
2569
query I rowsort
SELECT DISTINCT - col2 * + 87 * + col0 AS col0 FROM tab0
----
-3045
-634926
-68904
query I rowsort
SELECT DISTINCT cor0.col2 + + 38 * - col1 AS col2 FROM tab2 AS cor0
----
-1151
-2216
-608
query I rowsort
SELECT + 53 * - col2 + + col2 FROM tab1 AS cor0
----
-2808
-2964
-4992
query I rowsort
SELECT DISTINCT 42 + col1 * + col0 FROM tab1 AS cor0
----
1082
120
682
query I rowsort
SELECT ALL - 71 * + col2 AS col1 FROM tab1 cor0
----
-3834
-4047
-6816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col2 col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + 57 * + cor0.col2 * 0 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - 68 + col1 AS col0 FROM tab2 cor0
----
-37
-51
-9
query I rowsort
SELECT + + 18 + col1 AS col0 FROM tab1 AS cor0
----
28
31
44
query I rowsort
SELECT ( - 40 ) * + col2 FROM tab2
----
-1040
-1080
-1520
onlyif mysql # use DIV operator for integer division
query I rowsort label-861
SELECT + col2 - + col1 * col0 DIV - 55 col0 FROM tab1
----
114
55
68
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-861
SELECT + col2 - + col1 * col0 / - 55 col0 FROM tab1
----
114
55
68
query I rowsort
SELECT + tab1.col2 - 23 * + col2 FROM tab1
----
-1188
-1254
-2112
query I rowsort
SELECT + col2 * 87 + col2 FROM tab2
----
2288
2376
3344
onlyif mysql # use DIV operator for integer division
query I rowsort label-864
SELECT ALL - col0 DIV - col2 + col1 * + col1 col0 FROM tab1 AS cor0
----
101
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-864
SELECT ALL - col0 / - col2 + col1 * + col1 col0 FROM tab1 AS cor0
----
101
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 25 col2 FROM tab0 AS cor0
----
2225
600
875
onlyif mysql # use DIV operator for integer division
query I rowsort label-866
SELECT ALL - + col2 * + col1 + col0 DIV cor0.col1 + - col0 FROM tab2 AS cor0
----
-1611
-721
-844
skipif mysql # not compatible
query I rowsort label-866
SELECT ALL - + col2 * + col1 + col0 / cor0.col1 + - col0 FROM tab2 AS cor0
----
-1611
-721
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-867
SELECT ALL - cor0.col0 * + CAST( NULL AS SIGNED ) - 62 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-867
SELECT ALL - cor0.col0 * + CAST ( NULL AS INTEGER ) - 62 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 * + 41 + col1 * + cor0.col1 AS col0 FROM tab1 AS cor0
----
2437
2890
4105
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-869
SELECT - col0 - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-7
16
51
skipif mysql # not compatible
query I rowsort label-869
SELECT - col0 - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-870
SELECT ALL - + col1 * CAST( - 56 AS SIGNED ) * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-31856
-69808
-78621
skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - + col1 * CAST ( - 56 AS INTEGER ) * - col2 + + col0 AS col2 FROM tab1 AS cor0
----
-31856
-69808
-78621
query I rowsort
SELECT cor0.col0 + 79 * - 7 * col0 FROM tab0 cor0
----
-13248
-19320
-49128
query I rowsort
SELECT ALL + col0 * - 45 FROM tab1 cor0
----
-135
-2880
-3600
query I rowsort
SELECT 70 + - col2 + + col0 FROM tab1
----
19
54
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-874
SELECT 84 + - col1 - - 49 DIV + col0 FROM tab1
----
71
74
74
skipif mysql # not compatible
query I rowsort label-874
SELECT 84 + - col1 - - 49 / + col0 FROM tab1
----
71
74
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-875
SELECT ( col2 ) DIV + tab0.col0 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-875
SELECT ( col2 ) / + tab0.col0 FROM tab0
----
0
0
1
query I rowsort
SELECT + col2 + - 87 * - 60 * + col0 FROM tab1 AS cor0
----
15714
334137
417696
query I rowsort
SELECT - col2 + ( col2 + + col1 ) * + 94 AS col1 FROM tab1 cor0
----
10150
6241
7466
query I rowsort
SELECT ALL + - col2 * col2 - 82 AS col1 FROM tab0 AS cor0
----
-1171
-6806
-83
query I rowsort
SELECT + + cor0.col1 + + col2 FROM tab1 AS cor0
----
109
67
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col2 FROM tab0 AS cor0
----
81
81
81
query I rowsort
SELECT + - 83 + - col0 AS col0 FROM tab0 cor0
----
-107
-118
-172
onlyif mysql # use DIV operator for integer division
query I rowsort label-882
SELECT DISTINCT + col0 DIV + col1 + - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-882
SELECT DISTINCT + col0 / + col1 + - col2 * - col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-883
SELECT ALL + - col1 * col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-883
SELECT ALL + - col1 * col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 17 AS col2 FROM tab1 cor0
----
-17
query I rowsort
SELECT ALL - cor0.col2 * col0 + ( - 5 ) * cor0.col0 AS col2 FROM tab1 AS cor0
----
-177
-3968
-8080
query I rowsort
SELECT ALL 93 * ( - col1 ) * - col0 FROM tab1
----
59520
7254
96720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-887
SELECT - CAST( + col1 * col2 + ( + col0 ) AS SIGNED ) FROM tab0
----
-132
-2862
-7551
skipif mysql # not compatible
query I rowsort label-887
SELECT - CAST ( + col1 * col2 + ( + col0 ) AS INTEGER ) FROM tab0
----
-132
-2862
-7551
query I rowsort
SELECT + col2 * col1 + + 30 AS col1 FROM tab2
----
1564
676
867
query I rowsort
SELECT DISTINCT 61 + - col2 FROM tab2
----
23
34
35
query I rowsort
SELECT DISTINCT + 73 * - col0 + col0 * col0 * col0 FROM tab1 AS cor0
----
-192
257472
506160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * col2 col2 FROM tab0 AS cor0
----
2046
5084
62
query I rowsort
SELECT ALL col1 + - ( col0 ) AS col1 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-893
SELECT DISTINCT - 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-893
SELECT DISTINCT - CAST ( col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT col2 * col1 * col1 FROM tab2 cor0
----
10982
25947
90506
query I rowsort
SELECT ALL + col0 - - cor0.col0 AS col2 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + + col2 * - col0 + cor0.col1 AS col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT cor0.col0 + 10 FROM tab1 AS cor0
----
13
74
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-898
SELECT DISTINCT - + col0 DIV CAST( 78 * col0 AS SIGNED ) + + 25 * - cor0.col2 + col1 FROM tab0 AS cor0
----
-1959
-739
72
skipif mysql # not compatible
query I rowsort label-898
SELECT DISTINCT - + col0 / CAST ( 78 * col0 AS INTEGER ) + + 25 * - cor0.col2 + col1 FROM tab0 AS cor0
----
-1959
-739
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-899
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) * - ( col1 ) FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-899
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) * - ( col1 ) FROM tab1
----
NULL
query I rowsort
SELECT col1 + + ( - col0 ) * col2 FROM tab2
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-901
SELECT ALL - col0 + - 89 * + col1 - + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1630
-2793
-5355
skipif mysql # not compatible
query I rowsort label-901
SELECT ALL - col0 + - 89 * + col1 - + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1630
-2793
-5355
query I rowsort
SELECT ALL - 56 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT ALL - col2 * col0 * + col2 AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + 31 FROM tab2, tab1 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT DISTINCT - + col0 * + col0 AS col1 FROM tab2 AS cor0
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 * ( cor0.col1 ) col1 FROM tab2, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 85d801111b0911372f22698924c4b5ce
query I rowsort
SELECT cor0.col2 + + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL cor0.col2 * + col2 + - col2 FROM tab2 AS cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 39 col2 FROM tab2 AS cor0
----
1209
2301
663
query I rowsort
SELECT - + col0 + - col1 * cor0.col0 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT cor0.col2 * - 66 + + col2 * - 23 FROM tab0 cor0
----
-2937
-7298
-89
query I rowsort
SELECT + col1 + 93 FROM tab2 AS cor0
----
110
124
152
query I rowsort
SELECT DISTINCT - col0 + col0 * col0 FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-914
SELECT + + cor0.col1 + 40 DIV - col1 AS col1 FROM tab1 AS cor0
----
10
25
6
skipif mysql # not compatible
query I rowsort label-914
SELECT + + cor0.col1 + 40 / - col1 AS col1 FROM tab1 AS cor0
----
10
25
6
query I rowsort
SELECT DISTINCT + col2 * col1 * + col0 FROM tab2 cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-916
SELECT DISTINCT col1 DIV + col2 + col0 * ( + col0 ) + col0 col2 FROM tab0 cor0
----
1357
602
8011
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-916
SELECT DISTINCT col1 / + col2 + col0 * ( + col0 ) + col0 col2 FROM tab0 cor0
----
1357
602
8011
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-917
SELECT ( - col2 ) * + col2 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-917
SELECT ( - col2 ) * + col2 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + - col1 * - ( 58 ) AS col1 FROM tab0 AS cor0
----
4955
5196
5625
query I rowsort
SELECT + 90 * - cor0.col2 FROM tab2 AS cor0
----
-2340
-2430
-3420
query I rowsort
SELECT DISTINCT col0 - - col0 * 23 AS col1 FROM tab0 AS cor0
----
2136
576
840
query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 - + ( + col0 ) FROM tab2 AS cor0
----
-1612
-725
-844
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-922
SELECT + 69 * col1 * - CAST( cor0.col2 AS SIGNED ) FROM tab2 AS cor0
----
-105846
-44574
-57753
skipif mysql # not compatible
query I rowsort label-922
SELECT + 69 * col1 * - CAST ( cor0.col2 AS INTEGER ) FROM tab2 AS cor0
----
-105846
-44574
-57753
query I rowsort
SELECT DISTINCT cor0.col2 + + col2 * + col0 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT ALL - - col0 * cor0.col0 AS col0 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT col0 * 95 * tab2.col1 FROM tab2
----
127585
20615
437190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-926
SELECT ALL + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-926
SELECT ALL + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col0 + - col1 + col0 * col0 FROM tab0 AS cor0
----
1163
514
7919
query I rowsort
SELECT - 1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT + 60 AS col0 FROM tab0 cor0
----
60
60
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-930
SELECT - - col0 + ( + col1 ) DIV col1 + - 84 FROM tab1 AS cor0
----
-19
-3
-80
skipif mysql # not compatible
query I rowsort label-930
SELECT - - col0 + ( + col1 ) / col1 + - 84 FROM tab1 AS cor0
----
-19
-3
-80
query I rowsort
SELECT 83 * col2 FROM tab0 AS cor0
----
2739
6806
83
query I rowsort
SELECT col1 * - col2 * - 89 FROM tab1
----
111072
124956
50730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-933
SELECT - col2 * - CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-933
SELECT - col2 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + 44 FROM tab1
----
54
57
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab2.col1 * - ( + tab2.col0 ) + - tab2.col0 col1 FROM tab2
----
1264
210
4524
query I rowsort
SELECT DISTINCT - col1 - ( + cor0.col2 * col2 ) AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT ( - col2 * ( ( - tab0.col1 ) ) ) FROM tab0
----
2838
7462
97
query I rowsort
SELECT - col0 + - 43 AS col1 FROM tab0
----
-132
-67
-78
query I rowsort
SELECT + - col2 * + 37 + + cor0.col2 FROM tab0 AS cor0
----
-1188
-2952
-36
query I rowsort
SELECT 37 + + cor0.col1 AS col0 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c839c4c181f1e90070c5b9efd085606d
query I rowsort
SELECT col2 * + 81 AS col1 FROM tab1 AS cor0
----
4374
4617
7776
query I rowsort
SELECT 33 * col2 FROM tab0
----
1089
2706
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-943
SELECT cor0.col0 DIV col1 + col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-943
SELECT cor0.col0 / col1 + col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-944
SELECT + 31 + - col2 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-1217
-1373
-539
skipif mysql # not compatible
query I rowsort label-944
SELECT + 31 + - col2 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-1217
-1373
-539
query I rowsort
SELECT - - 71 * - col2 AS col0 FROM tab0 AS cor0
----
-2343
-5822
-71
query I rowsort
SELECT + - 13 * col2 + 62 AS col2 FROM tab0 AS cor0
----
-1004
-367
49
onlyif mysql # use DIV operator for integer division
query I rowsort label-947
SELECT - 32 DIV - col0 col2 FROM tab0 AS cor0
----
0
0
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-947
SELECT - 32 / - col0 col2 FROM tab0 AS cor0
----
0
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-948
SELECT col0 DIV + tab2.col1 + tab2.col1 FROM tab2
----
21
31
60
skipif mysql # not compatible
query I rowsort label-948
SELECT col0 / + tab2.col1 + tab2.col1 FROM tab2
----
21
31
60
query I rowsort
SELECT + col2 * - col0 + + col1 + col2 * col2 FROM tab2 AS cor0
----
-1293
-1541
571
onlyif mysql # use DIV operator for integer division
query I rowsort label-950
SELECT - 99 DIV + tab0.col0 + - col1 FROM tab0
----
-90
-92
-99
skipif mysql # not compatible
query I rowsort label-950
SELECT - 99 / + tab0.col0 + - col1 FROM tab0
----
-90
-92
-99
query I rowsort
SELECT 20 * - tab2.col0 FROM tab2
----
-140
-1560
-1580
onlyif mysql # use DIV operator for integer division
query I rowsort label-952
SELECT DISTINCT 89 DIV - col2 AS col2 FROM tab0
----
-1
-2
-89
skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT 89 / - col2 AS col2 FROM tab0
----
-1
-2
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-953
SELECT + col1 DIV - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-953
SELECT + col1 / - cor0.col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - 28 * + col2 FROM tab2
----
-1064
-728
-756
onlyif mysql # use DIV operator for integer division
query I rowsort label-955
SELECT cor0.col2 DIV 75 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-955
SELECT cor0.col2 / 75 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - 78 + tab2.col2 + - col1 AS col2 FROM tab2
----
-111
-57
-82
query I rowsort
SELECT DISTINCT 75 * col1 + 63 * col0 FROM tab1
----
2139
4782
6015
onlyif mysql # use DIV operator for integer division
query I rowsort label-958
SELECT - - col2 + col0 * col1 DIV col1 FROM tab1 AS cor0
----
121
176
57
skipif mysql # not compatible
query I rowsort label-958
SELECT - - col2 + col0 * col1 / col1 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT DISTINCT + cor0.col2 * cor0.col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT - + 45 + col2 * 89 FROM tab1 AS cor0
----
4761
5028
8499
query I rowsort
SELECT ALL - cor0.col0 * cor0.col2 + 94 * + col2 FROM tab2 AS cor0
----
2349
416
570
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 ALL - col1 + + ( + 77 ) * - col2 FROM tab2 AS cor0
----
-2061
-2110
-2943
query I rowsort
SELECT ALL col2 * - ( - col0 ) AS col0 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-965
SELECT DISTINCT + col0 DIV 5 AS col0 FROM tab0 AS cor0
----
17
4
7
skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT + col0 / 5 AS col0 FROM tab0 AS cor0
----
17
4
7
query I rowsort
SELECT ALL - col0 + - ( + 26 ) FROM tab2 cor0
----
-104
-105
-33
query I rowsort
SELECT - cor0.col0 * col0 * - col1 AS col0 FROM tab0 AS cor0
----
118825
49536
720811
query I rowsort
SELECT ALL - cor0.col1 + + ( col1 ) * col2 FROM tab2 AS cor0
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-969
SELECT ALL - - col0 DIV - cor0.col1 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-969
SELECT ALL - - col0 / - cor0.col1 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT + col1 + col2 * 12 FROM tab0 AS cor0
----
1075
109
482
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-971
SELECT DISTINCT - + col1 + - CAST( - 57 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1798
-3422
-986
skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - + col1 + - CAST ( - 57 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1798
-3422
-986
onlyif mysql # use DIV operator for integer division
query I rowsort label-972
SELECT ALL - + col2 DIV col0 AS col2 FROM tab1 cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-972
SELECT ALL - + col2 / col0 AS col2 FROM tab1 cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-973
SELECT - + col0 DIV - cor0.col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-973
SELECT - + col0 / - cor0.col1 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-974
SELECT + col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-974
SELECT + col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - - tab2.col0 AS col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col0 + + 96 AS col1 FROM tab1 AS cor0
----
160
176
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * + col0 + - col0 col1 FROM tab1 cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL col0 * col2 - col0 AS col0 FROM tab2 AS cor0
----
182
1950
2923
query I rowsort
SELECT ALL + 64 * col1 FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT + ( - col1 ) * + cor0.col1 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-982
SELECT - ( - col0 ) DIV + col1 AS col0 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-982
SELECT - ( - col0 ) / + col1 AS col0 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT - + col1 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT 41 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
1066
410
533
onlyif mysql # use DIV operator for integer division
query I rowsort label-985
SELECT DISTINCT - + 19 + + col1 DIV col2 + + col1 * - col2 AS col1 FROM tab1 cor0
----
-1267
-1423
-589
skipif mysql # not compatible
query I rowsort label-985
SELECT DISTINCT - + 19 + + col1 / col2 + + col1 * - col2 AS col1 FROM tab1 cor0
----
-1267
-1423
-589
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-986
SELECT + CAST( NULL AS SIGNED ) + cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-986
SELECT + CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab2 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * 29 col2 FROM tab2 cor0
----
1334
1334
1334
query I rowsort
SELECT ALL - col0 * 74 - col1 AS col2 FROM tab1 AS cor0
----
-248
-4746
-5933
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-989
SELECT ALL + CAST( NULL AS SIGNED ) / + col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-989
SELECT ALL + CAST ( NULL AS INTEGER ) / + col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( - tab0.col2 * col0 ) AS col1 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 67 + col2 AS col2 FROM tab0 AS cor0
----
100
149
68
query I rowsort
SELECT - + cor1.col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b5a4102107e5ebd26e341538f4fede1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-993
SELECT ALL CAST( NULL AS DECIMAL ) * 35 - - col2 * + ( col2 ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-993
SELECT ALL CAST ( NULL AS REAL ) * 35 - - col2 * + ( col2 ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 96 + 77 * col1 FROM tab0
----
6718
7103
7565
query I rowsort
SELECT + - cor0.col2 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7b5938124253798426fbf09c18e1fd75
query I rowsort
SELECT DISTINCT - col1 * 38 FROM tab0
----
-3268
-3458
-3686
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0, tab0 cor1, tab1 cor2
----
972 values hashing to 0a9194f200a4220e419d35c461f9fcfe
query I rowsort
SELECT ALL + col0 * 6 AS col2 FROM tab2 AS cor0
----
42
468
474
query I rowsort
SELECT ALL - col1 * + 5 FROM tab0
----
-430
-455
-485
query I rowsort
SELECT + col0 + 66 * + col0 AS col2 FROM tab1 cor0
----
201
4288
5360
query I rowsort
SELECT col1 + col2 + - 87 AS col0 FROM tab0 AS cor0
----
11
32
86
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1002
SELECT DISTINCT + col0 * CAST( + 36 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-165672
-48348
-7812
skipif mysql # not compatible
query I rowsort label-1002
SELECT DISTINCT + col0 * CAST ( + 36 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-165672
-48348
-7812
query I rowsort
SELECT DISTINCT col1 + - col0 * + col0 + col1 FROM tab0 cor0
----
-1031
-404
-7739
query I rowsort
SELECT col0 + 19 FROM tab2 cor0
----
26
97
98
query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab1 cor0
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-1006
SELECT - cor0.col2 DIV - col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1006
SELECT - cor0.col2 / - col2 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT - - col0 + + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-1008
SELECT ALL - 33 + col0 * 66 DIV col2 AS col2 FROM tab0 cor0
----
15
2277
38
skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL - 33 + col0 * 66 / col2 AS col2 FROM tab0 cor0
----
15
2277
38
query I rowsort
SELECT ALL col2 * col1 + + col0 * + col0 FROM tab2 AS cor0
----
6887
7618
886
query I rowsort
SELECT DISTINCT 61 + col2 AS col2 FROM tab2 AS cor0
----
87
88
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + - col1 col0 FROM tab0 cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + col1 - - cor0.col2 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL - cor0.col2 + + col1 * - cor0.col0 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT + col2 + col1 + - ( - col0 ) * col2 FROM tab2 AS cor0
----
2113
247
3057
query I rowsort
SELECT DISTINCT ( + 73 ) FROM tab1, tab2, tab1 AS cor0
----
73
query I rowsort
SELECT col2 * col2 + + col2 AS col2 FROM tab2
----
1482
702
756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 35 col1 FROM tab2 AS cor0
----
35
35
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col0 * col2 col2 FROM tab2 AS cor0
----
158
1969
2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor1.col0 col2 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL - - 74 + col0 AS col1 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT - cor0.col1 + 21 FROM tab1 AS cor0
----
-5
11
8
query I rowsort
SELECT + tab1.col0 - - 45 FROM tab1, tab0, tab1 AS cor0, tab2
----
81 values hashing to 416e1ec77d027ba3cbcd76da665be1c0
query I rowsort
SELECT DISTINCT + 36 AS col1 FROM tab2
----
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1024
SELECT + tab1.col1 DIV tab1.col0 + + col2 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-1024
SELECT + tab1.col1 / tab1.col0 + + col2 FROM tab1
----
57
62
96
query I rowsort
SELECT 25 * col1 AS col0 FROM tab1
----
250
325
650
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 83 col2 FROM tab2 AS cor0
----
45
56
57
query I rowsort
SELECT col0 + 26 AS col2 FROM tab1 cor0
----
106
29
90
query I rowsort
SELECT - - col2 + - 33 AS col2 FROM tab2 AS cor0
----
-6
-7
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1029
SELECT DISTINCT + CAST( - col1 AS SIGNED ) + col1 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-1029
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) + col1 FROM tab2
----
0
query I rowsort
SELECT - 1 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
query I rowsort
SELECT ALL 47 * cor0.col0 FROM tab0 cor0
----
1128
1645
4183
onlyif mysql # use DIV operator for integer division
query I rowsort label-1032
SELECT - + 57 DIV + col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5
skipif mysql # not compatible
query I rowsort label-1032
SELECT - + 57 / + col1 AS col1 FROM tab1 AS cor0
----
-2
-4
-5
query I rowsort
SELECT + 52 + col1 FROM tab1 AS cor0
----
62
65
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab1
----
2
2
2
query I rowsort
SELECT col0 + col2 - + col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + 8 + + col2 + col1 AS col0 FROM tab2 AS cor0
----
63
66
93
query I rowsort
SELECT + 22 * col0 + ( - col0 ) FROM tab1 AS cor0
----
1344
1680
63
query I rowsort
SELECT col2 * + col2 + cor0.col0 * col2 AS col1 FROM tab0 AS cor0
----
14022
1881
36
query I rowsort
SELECT col1 + + col1 * col1 FROM tab2 cor0
----
306
3540
992
query I rowsort
SELECT DISTINCT - col1 * + col2 + - col1 AS col0 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT ALL + + 6 + + ( + col1 ) * - 63 FROM tab2 cor0
----
-1065
-1947
-3711
onlyif mysql # use DIV operator for integer division
query I rowsort label-1042
SELECT DISTINCT + col2 DIV + 43 AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT + col2 / + 43 AS col2 FROM tab2 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1043
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 85 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 85 + - cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 27 * cor0.col0 AS col2 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT + + ( 46 ) * + cor0.col0 FROM tab2 AS cor0
----
322
3588
3634
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1046
SELECT ALL 34 + - col0 * - col0 * + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL 34 + - col0 * - col0 * + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 99 + col1 FROM tab2 AS cor0
----
-40
-68
-82
query I rowsort
SELECT DISTINCT - + 7 * + col0 FROM tab2 AS cor0
----
-49
-546
-553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * 85 col2 FROM tab2
----
2210
2295
3230
query I rowsort
SELECT col0 + 16 * - col1 FROM tab2 AS cor0
----
-193
-489
-866
onlyif mysql # use DIV operator for integer division
query I rowsort label-1051
SELECT DISTINCT - col1 + + col2 DIV - col0 FROM tab2 AS cor0
----
-17
-34
-59
skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT - col1 + + col2 / - col0 FROM tab2 AS cor0
----
-17
-34
-59
query I rowsort
SELECT - cor0.col2 * 45 + - col0 + col1 * cor0.col0 * col0 AS col0 FROM tab0 AS cor0
----
118745
48027
717032
query I rowsort
SELECT ALL - - 70 * + col1 AS col0 FROM tab0 AS cor0
----
6020
6370
6790
query I rowsort
SELECT ALL 4 + col2 * col2 * - ( - cor0.col2 ) FROM tab0 AS cor0
----
35941
5
551372
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - cor0.col0 col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1056
SELECT DISTINCT + col1 * + cor0.col2 + + CAST( 70 + - cor0.col0 AS DECIMAL ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + col1 * + cor0.col2 + + CAST ( 70 + - cor0.col0 AS REAL ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 94 AS col1 FROM tab2 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT 45 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
45
query I rowsort
SELECT DISTINCT ( + tab2.col1 ) + col2 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT col2 + - 91 * - col2 FROM tab0
----
3036
7544
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-1061
SELECT ALL - col1 * - col1 + - col0 DIV col0 FROM tab0 AS cor0
----
7395
8280
9408
skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL - col1 * - col1 + - col0 / col0 FROM tab0 AS cor0
----
7395
8280
9408
query I rowsort
SELECT ALL - 35 + - 92 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 79c908460abee25181b50da08dd87a21
onlyif mysql # use DIV operator for integer division
query I rowsort label-1063
SELECT ALL col2 DIV ( 97 ) col1 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1063
SELECT ALL col2 / ( 97 ) col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * tab1.col1 - + tab1.col1 FROM tab1
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col0 * 98 * + col0 col2 FROM tab2
----
-4775
-596206
-611580
onlyif mysql # use DIV operator for integer division
query I rowsort label-1066
SELECT 53 DIV + 4 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
skipif mysql # not compatible
query I rowsort label-1066
SELECT 53 / + 4 FROM tab1, tab2 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT ALL - 8 AS col1 FROM tab2 cor0
----
-8
-8
-8
query I rowsort
SELECT - 52 * col1 + col1 * 71 AS col0 FROM tab1 AS cor0
----
190
247
494
onlyif mysql # use DIV operator for integer division
query I rowsort label-1069
SELECT DISTINCT 7 DIV col0 FROM tab1 cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT 7 / col0 FROM tab1 cor0
----
0
2
query I rowsort
SELECT col0 * ( + cor0.col0 ) + 19 FROM tab2 cor0
----
6103
6260
68
onlyif mysql # use DIV operator for integer division
query I rowsort label-1071
SELECT - tab1.col0 + + 72 DIV - col2 FROM tab1
----
-4
-65
-80
skipif mysql # not compatible
query I rowsort label-1071
SELECT - tab1.col0 + + 72 / - col2 FROM tab1
----
-4
-65
-80
query I rowsort
SELECT col1 * - 1 + col1 + 77 AS col2 FROM tab2
----
77
77
77
query I rowsort
SELECT ALL - col2 * 72 + col0 AS col2 FROM tab1
----
-3885
-4040
-6832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col1 ) + - col2 * - col1 col0 FROM tab0
----
194
2924
7553
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( - col2 AS REAL ) + col1 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + 51 + col2 * col1 AS col1 FROM tab0
----
148
2889
7513
query I rowsort
SELECT - 89 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c36e597b7bc5727536f5bb580e6cebbc
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1078
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1079
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 37 AS col0 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1079
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 37 AS col0 FROM tab1 cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1080
SELECT ( col2 ) * col0 + + col2 * ( - cor0.col2 + 24 ) DIV col0 FROM tab1 AS cor0
----
-378
3619
7594
skipif mysql # not compatible
query I rowsort label-1080
SELECT ( col2 ) * col0 + + col2 * ( - cor0.col2 + 24 ) / col0 FROM tab1 AS cor0
----
-378
3619
7594
query I rowsort
SELECT ALL + ( 79 ) FROM tab2 cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - - ( cor0.col2 ) + - cor0.col1 + 45 FROM tab0 AS cor0
----
-51
-8
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-1083
SELECT - col0 * + col0 + - col1 DIV - col1 FROM tab0
----
-1224
-575
-7920
skipif mysql # not compatible
query I rowsort label-1083
SELECT - col0 * + col0 + - col1 / - col1 FROM tab0
----
-1224
-575
-7920
query I rowsort
SELECT 48 * + col0 * + col1 FROM tab1
----
30720
3744
49920
query I rowsort
SELECT 14 * col2 * - ( - col1 ) - col2 FROM tab0
----
104386
1357
39699
query I rowsort
SELECT col0 - tab1.col2 AS col2 FROM tab1
----
-16
-51
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
query I rowsort
SELECT + col1 * - col0 * - 26 FROM tab1
----
16640
2028
27040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * cor0.col0 * col0 col0 FROM tab0 AS cor0
----
13824
42875
704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 * col2 col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT ALL col2 * + 97 + col2 * col2 * + col1 AS col1 FROM tab0 AS cor0
----
194
619838
96855
query I rowsort
SELECT - col0 * + 97 AS col0 FROM tab0 AS cor0
----
-2328
-3395
-8633
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1093
SELECT DISTINCT - col0 * - CAST( 19 AS SIGNED ) AS col0 FROM tab1 cor0
----
1216
1520
57
skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT - col0 * - CAST ( 19 AS INTEGER ) AS col0 FROM tab1 cor0
----
1216
1520
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col0 - col0 * col1 col1 FROM tab0 cor0
----
-1488
-178
-2170
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * - ( - 27 ) col0 FROM tab2 AS cor0
----
-1026
-702
-729
query I rowsort
SELECT DISTINCT col2 + - col1 * - 72 FROM tab1 AS cor0
----
1032
1926
777
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 - - col0 col1 FROM tab1 AS cor0
----
-36
-673
-89
query I rowsort
SELECT + col2 * col2 * 75 FROM tab0 AS cor0
----
504300
75
81675
query I rowsort
SELECT ( 32 ) FROM tab0
----
32
32
32
query I rowsort
SELECT ALL - ( - col0 ) * - col1 AS col2 FROM tab2
----
-1343
-217
-4602
query I rowsort
SELECT + 86 * 91 + + col0 * col2 * col0 FROM tab1
----
241298
622226
8312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 95 col1 FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT + 74 + - col2 + col2 FROM tab0
----
74
74
74
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1104
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col1 FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1105
SELECT DISTINCT CAST( NULL AS SIGNED ) * 44 AS col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 44 AS col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT cor0.col0 FROM tab1, tab0 cor0, tab2 AS cor1
----
27 values hashing to 9fc1dcd76feaf43e5c5dc060a02014cd
query I rowsort
SELECT ALL - 73 * + col1 FROM tab0
----
-6278
-6643
-7081
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 col0 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - col2 + col0 - col2 AS col2 FROM tab0 AS cor0
----
-42
-75
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + col2 * - cor0.col2 col2 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-1111
SELECT col0 * + col1 + - col0 DIV col1 FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-1111
SELECT col0 * + col1 + - col0 / col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL col0 + col0 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT ALL + 9 * col1 - - cor0.col0 AS col1 FROM tab0 AS cor0
----
798
908
908
query I rowsort
SELECT DISTINCT - tab2.col0 + ( + col2 ) AS col1 FROM tab2
----
-41
-52
20
query I rowsort
SELECT DISTINCT 42 + col2 FROM tab1
----
138
96
99
query I rowsort
SELECT + col2 * col2 * - col1 AS col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT - 82 * - col0 AS col0 FROM tab2 cor0
----
574
6396
6478
onlyif mysql # use DIV operator for integer division
query I rowsort label-1119
SELECT - col1 DIV col0 + - cor0.col2 - col2 AS col0 FROM tab0 AS cor0
----
-165
-4
-69
skipif mysql # not compatible
query I rowsort label-1119
SELECT - col1 / col0 + - cor0.col2 - col2 AS col0 FROM tab0 AS cor0
----
-165
-4
-69
query I rowsort
SELECT - col0 * + 78 + - 10 AS col1 FROM tab2 cor0
----
-556
-6094
-6172
query I rowsort
SELECT DISTINCT - - col1 + ( col2 ) AS col0 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT col2 + - col0 + + 0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-1123
SELECT ALL col0 DIV 42 AS col2 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1123
SELECT ALL col0 / 42 AS col2 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT ALL - col1 + ( + 8 + - tab2.col0 ) * - col2 FROM tab2
----
-58
1761
2681
query I rowsort
SELECT ALL - + cor0.col0 * 83 + - cor0.col0 * + col0 FROM tab2 AS cor0
----
-12558
-12798
-630
onlyif mysql # use DIV operator for integer division
query I rowsort label-1126
SELECT ALL col0 + - ( + col1 ) * - col0 DIV + col0 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL col0 + - ( + col1 ) * - col0 / + col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT cor0.col0 + 7 FROM tab0 AS cor0
----
31
42
96
query I rowsort
SELECT DISTINCT + col0 + + 12 * col0 AS col0 FROM tab1 AS cor0
----
1040
39
832
query I rowsort
SELECT ALL - col2 * 28 + - ( cor0.col2 ) FROM tab2 AS cor0
----
-1102
-754
-783
query I rowsort
SELECT ALL - cor0.col1 + - col0 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT - col0 + + col1 * - col2 AS col0 FROM tab0 AS cor0
----
-132
-2862
-7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1132
SELECT DISTINCT - col1 / CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - col1 / CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + col1 col0 FROM tab0 AS cor0
----
-1978
-3298
-8008
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col2 + - col2 col1 FROM tab2 cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col2 FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT ALL col1 + + ( - col1 ) AS col0 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT + col1 * cor0.col0 - col0 AS col2 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT ALL + col2 * - col2 + + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-6760
-7685
-778
query I rowsort
SELECT - col2 + - col1 + col0 AS col2 FROM tab1 AS cor0
----
-29
-3
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-1140
SELECT col2 DIV + col1 AS col2 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-1140
SELECT col2 / + col1 AS col2 FROM tab2 cor0
----
0
0
2
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 cor0 WHERE NOT NULL >= NULL
----
query I rowsort
SELECT - + col1 * col0 + - col1 FROM tab1 AS cor0
----
-104
-1053
-650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1143
SELECT - col0 DIV + col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-1143
SELECT - col0 / + col2 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-34
33
81
query I rowsort
SELECT col2 FROM tab0 WHERE NULL NOT IN ( + col0 )
----
query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NULL <= ( col0 )
----
query I rowsort
SELECT tab1.col1 AS col1 FROM tab2, tab0 cor0 CROSS JOIN tab1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE - col2 IN ( + col0 - + col2 )
----
query I rowsort
SELECT DISTINCT col1 * cor0.col2 - - col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 AS col0 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE - col1 * + col1 * + col1 IN ( col1 )
----
query I rowsort
SELECT - col0 + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT DISTINCT col1 - + col2 AS col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL col2 + col2 * cor0.col1 FROM tab1 cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-1155
SELECT - + col1 DIV col1 + + col2 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-1155
SELECT - + col1 / col1 + + col2 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT DISTINCT ( cor1.col1 ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
query I rowsort
SELECT col1 + - 52 * ( + col2 + + col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
103445
319131
54839
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1158
SELECT DISTINCT + col0 * CAST( + 78 AS SIGNED ) FROM tab2 AS cor0
----
546
6084
6162
skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT + col0 * CAST ( + 78 AS INTEGER ) FROM tab2 AS cor0
----
546
6084
6162
query I rowsort
SELECT + col0 + - 0 * - col0 AS col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT DISTINCT + - cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1161
SELECT ALL - CAST( NULL AS SIGNED ) + - 50 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1161
SELECT ALL - CAST ( NULL AS INTEGER ) + - 50 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - + col0 * + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT ( 4 ) FROM tab0 AS cor0
----
4
4
4
query I rowsort
SELECT + col0 * col1 + col2 FROM tab1 cor0
----
1136
132
697
query I rowsort
SELECT + ( - 86 ) + col0 AS col1 FROM tab2 cor0
----
-7
-79
-8
query I rowsort
SELECT - 12 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT DISTINCT - 28 * - cor0.col0 FROM tab0, tab2 AS cor0
----
196
2184
2212
query I rowsort
SELECT ALL + 93 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT + ( tab2.col1 ) AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 * col0 AS REAL ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col0 * col1 - col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT ALL - col1 + col2 * 53 AS col1 FROM tab2 AS cor0
----
1319
1400
1997
query I rowsort
SELECT - + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - ( col2 ) + 58 AS col1 FROM tab2 AS cor0
----
20
31
32
query I rowsort
SELECT ALL - ( 86 ) FROM tab1
----
-86
-86
-86
onlyif mysql # use DIV operator for integer division
query I rowsort label-1176
SELECT DISTINCT col2 * col1 DIV col0 FROM tab1
----
15
468
8
skipif mysql # not compatible
query I rowsort label-1176
SELECT DISTINCT col2 * col1 / col0 FROM tab1
----
15
468
8
query I rowsort
SELECT ALL - 5 AS col2 FROM tab1
----
-5
-5
-5
onlyif mysql # use DIV operator for integer division
query I rowsort label-1178
SELECT col0 DIV tab2.col1 + + tab2.col2 * - tab2.col0 AS col1 FROM tab2
----
-189
-2027
-2998
skipif mysql # not compatible
query I rowsort label-1178
SELECT col0 / tab2.col1 + + tab2.col2 * - tab2.col0 AS col1 FROM tab2
----
-189
-2027
-2998
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 + + col0 * + ( col0 ) * + col2 - - cor0.col0 col0 FROM tab2 AS cor0
----
1336
158268
237243
query I rowsort
SELECT ALL - - col0 * - cor0.col1 + - 31 + - col0 FROM tab1 AS cor0
----
-112
-1151
-735
query I rowsort
SELECT + - cor0.col0 + + col2 * col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT ALL - 95 FROM tab2
----
-95
-95
-95
query I rowsort
SELECT ALL tab0.col0 + tab0.col2 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT ALL - col2 + - ( + col2 ) * - col2 FROM tab1
----
2862
3192
9120
query I rowsort
SELECT ALL - - col1 + - cor0.col1 * col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + 65 * + col1 * + cor0.col2 + cor0.col0 AS col2 FROM tab1 cor0
----
37114
81200
91263
query I rowsort
SELECT - - col0 + + 10 AS col2 FROM tab1 AS cor0
----
13
74
90
query I rowsort
SELECT ALL - tab2.col0 * - 85 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 0da078821e50a7125af78a6823b284c4
query I rowsort
SELECT DISTINCT col1 * col2 * col1 + - col0 AS col0 FROM tab1
----
16144
36501
5636
onlyif mysql # use DIV operator for integer division
query I rowsort label-1190
SELECT DISTINCT + col2 DIV col0 + + col1 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-1190
SELECT DISTINCT + col2 / col0 + + col1 FROM tab2
----
17
34
59
query I rowsort
SELECT + - col2 + + col2 * - col0 AS col2 FROM tab1 cor0
----
-216
-3705
-7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1192
SELECT col2 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1192
SELECT col2 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 24 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef
query I rowsort
SELECT 31 + + cor0.col2 AS col2 FROM tab2 AS cor0
----
57
58
69
query I rowsort
SELECT col1 * 94 * + cor0.col2 FROM tab0 AS cor0
----
266772
701428
9118
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 AS cor2
----
3645 values hashing to 8d4d13f65f86e1b26b6004a6bdc662b3
query I rowsort
SELECT + ( col0 ) + col2 FROM tab1
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + col2 col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + + 61 * - col0 FROM tab1 AS cor0
----
-183
-3904
-4880
onlyif mysql # use DIV operator for integer division
query I rowsort label-1200
SELECT ALL - + col1 DIV - 67 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL - + col1 / - 67 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT + 15 * + 46 AS col1 FROM tab1 cor0
----
690
690
690
query I rowsort
SELECT DISTINCT + - 88 + col0 FROM tab0 AS cor0
----
-53
-64
1
query I rowsort
SELECT - 65 + + col2 * + col2 FROM tab0 AS cor0
----
-64
1024
6659
query I rowsort
SELECT ALL - col2 * 37 - col0 FROM tab0 AS cor0
----
-1245
-3123
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-1205
SELECT DISTINCT - - col0 + col1 DIV - cor0.col1 AS col1 FROM tab1 cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - - col0 + col1 / - cor0.col1 AS col1 FROM tab1 cor0
----
2
63
79
query I rowsort
SELECT ALL + col0 * - col2 - - cor0.col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col2 * 2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT 99 + + col2 FROM tab1 AS cor0
----
153
156
195
query I rowsort
SELECT ALL col1 * - 27 AS col0 FROM tab0 cor0
----
-2322
-2457
-2619
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col1 FROM tab0, tab0 AS cor0
----
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1211
SELECT DISTINCT + col2 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-1211
SELECT DISTINCT + col2 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT col1 + ( + col0 ) * col0 + - ( col2 ) AS col0 FROM tab0
----
1321
629
7930
query I rowsort
SELECT tab0.col2 + tab0.col1 AS col0 FROM tab0
----
119
173
98
query I rowsort
SELECT + cor0.col1 * 70 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to be00591f9886d7eb84584586c1406373
query I rowsort
SELECT DISTINCT + + 76 * col1 * - col1 + - 75 AS col2 FROM tab2 cor0
----
-22039
-264631
-73111
query I rowsort
SELECT ALL + - 48 + cor0.col2 * col0 FROM tab2 AS cor0
----
141
1980
2954
query I rowsort
SELECT + cor0.col2 * col2 + + col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT ALL + col1 + - col2 * ( + col0 ) FROM tab2 AS cor0
----
-158
-1969
-2985
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - 11 col0 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT ALL - cor0.col0 + 28 FROM tab1 AS cor0
----
-36
-52
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-1221
SELECT DISTINCT col1 DIV 84 FROM tab0 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT col1 / 84 FROM tab0 AS cor0
----
1
query I rowsort
SELECT ALL - col1 * - 91 + - 12 FROM tab2 cor0
----
1535
2809
5357
query I rowsort
SELECT ALL col1 * + 68 AS col0 FROM tab1
----
1768
680
884
query I rowsort
SELECT col1 + + 37 FROM tab2 AS cor0
----
54
68
96
query I rowsort
SELECT - col2 * cor0.col0 + col2 FROM tab2 AS cor0
----
-162
-2002
-2964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 - + 41 FROM tab2 AS cor0
----
-34
37
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1228
SELECT ALL cor0.col1 + + col2 DIV + 56 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL cor0.col1 + + col2 / + 56 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT tab2.col2 * - 59 AS col0 FROM tab2
----
-1534
-1593
-2242
onlyif mysql # use DIV operator for integer division
query I rowsort label-1230
SELECT col1 DIV 61 AS col1 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1230
SELECT col1 / 61 AS col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT + col1 * ( + 38 ) AS col1 FROM tab0 AS cor0
----
3268
3458
3686
query I rowsort
SELECT + 82 + col1 AS col1 FROM tab1 AS cor0
----
108
92
95
query I rowsort
SELECT - - ( cor0.col0 ) + + col0 * col0 + col1 * col2 FROM tab2 AS cor0
----
6966
7696
893
query I rowsort
SELECT - ( 47 ) + cor0.col2 + - col2 FROM tab1 AS cor0
----
-47
-47
-47
query I rowsort
SELECT + col2 * col0 * - col1 + 91 AS col2 FROM tab1 AS cor0
----
-36389
-4121
-99749
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 / CAST ( col0 AS REAL ) FROM tab1
----
-1
-1
-1
query I rowsort
SELECT - col0 * - 4 FROM tab1 cor0
----
12
256
320
query I rowsort
SELECT - - ( + col2 ) * col2 AS col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT - 85 + col0 + + cor0.col0 FROM tab2 AS cor0
----
-71
71
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-1240
SELECT ALL - 18 + col0 DIV 31 + col0 FROM tab1 cor0
----
-15
48
64
skipif mysql # not compatible
query I rowsort label-1240
SELECT ALL - 18 + col0 / 31 + col0 FROM tab1 cor0
----
-15
48
64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col0 * + col2 col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT - 97 * + col1 AS col1 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT - tab0.col1 * 67 * tab0.col0 FROM tab0
----
-138288
-227465
-542633
query I rowsort
SELECT ALL - 77 + - col1 FROM tab1
----
-103
-87
-90
query I rowsort
SELECT + + col0 * - col2 + col2 + - col1 FROM tab0 AS cor0
----
-131
-7307
-845
query I rowsort
SELECT - + 48 + - col1 + - col2 FROM tab2 AS cor0
----
-103
-106
-133
query I rowsort
SELECT - 49 + - col0 FROM tab0 cor0
----
-138
-73
-84
query I rowsort
SELECT DISTINCT - 24 + + 53 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
29
query I rowsort
SELECT ALL + cor0.col0 * + col2 * - col0 + col1 AS col0 FROM tab2 AS cor0
----
-1292
-158125
-237141
query I rowsort
SELECT ALL + col1 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
7420
8370
9444
query I rowsort
SELECT ALL + + col0 * cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 * - col1 * col1 col1 FROM tab1 AS cor0
----
-15210
-60840
-9000
onlyif mysql # use DIV operator for integer division
query I rowsort label-1253
SELECT + col2 + - 9 DIV col1 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-1253
SELECT + col2 + - 9 / col1 FROM tab1
----
54
57
96
query I rowsort
SELECT col1 * col0 + + tab2.col1 AS col0 FROM tab2
----
1360
248
4661
query I rowsort
SELECT ALL + ( + 90 ) FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 5d25a546acf3ae171e731e50adc0112e
query I rowsort
SELECT - col0 + + col0 * col0 + col1 * + tab0.col1 FROM tab0
----
10599
16113
7948
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1257
SELECT ALL 54 * + col0 * CAST( NULL AS SIGNED ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1257
SELECT ALL 54 * + col0 * CAST ( NULL AS INTEGER ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col2 - col2 * col0 FROM tab2 cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL + - 23 FROM tab1 AS cor0
----
-23
-23
-23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 col2 FROM tab0 AS cor0
----
59
59
59
query I rowsort
SELECT DISTINCT - col0 + col1 - col1 AS col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # use DIV operator for integer division
query I rowsort label-1262
SELECT ALL + col2 * tab0.col2 DIV col1 + col2 FROM tab0
----
1
155
45
skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL + col2 * tab0.col2 / col1 + col2 FROM tab0
----
1
155
45
query I rowsort
SELECT + + col1 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-1264
SELECT - - col0 * col1 + + col2 DIV cor0.col2 AS col0 FROM tab1 AS cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-1264
SELECT - - col0 * col1 + + col2 / cor0.col2 AS col0 FROM tab1 AS cor0
----
1041
641
79
query I rowsort
SELECT col2 + - col0 * - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-36423
-4158
-99744
query I rowsort
SELECT + col2 + 56 AS col0 FROM tab2 AS cor0
----
82
83
94
query I rowsort
SELECT ( 71 ) * col1 + - col1 AS col1 FROM tab2 AS cor0
----
1190
2170
4130
query I rowsort
SELECT - cor0.col1 * 95 FROM tab1 AS cor0
----
-1235
-2470
-950
query I rowsort
SELECT - - 80 FROM tab1 cor0
----
80
80
80
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( - 48 AS REAL ) * col1 FROM tab0 AS cor0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL - cor2.col1 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab1 cor2
----
81 values hashing to 96e9ef2950805bca93a295eeea43ef5b
query I rowsort
SELECT + col1 + - col0 * - col0 * 86 AS col1 FROM tab2 AS cor0
----
4245
523283
536743
query I rowsort
SELECT ALL - 93 * col1 - col1 FROM tab2 AS cor0
----
-1598
-2914
-5546
query I rowsort
SELECT DISTINCT col0 * 27 FROM tab2
----
189
2106
2133
query I rowsort
SELECT + col1 * - col2 + col0 AS col2 FROM tab1
----
-1168
-1401
-506
onlyif mysql # use DIV operator for integer division
query I rowsort label-1276
SELECT ALL + + 71 * 77 DIV + col1 AS col0 FROM tab1 AS cor0
----
210
420
546
skipif mysql # not compatible
query I rowsort label-1276
SELECT ALL + + 71 * 77 / + col1 AS col0 FROM tab1 AS cor0
----
210
420
546
query I rowsort
SELECT ALL 86 + + 63 AS col2 FROM tab1 AS cor0
----
149
149
149
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) + cor0.col0 col2 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col2 * - 7 AS col0 FROM tab0 AS cor0
----
-231
-574
-7
query I rowsort
SELECT + col2 * ( col0 ) AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + + ( col1 ) + col1 * col0 AS col0 FROM tab0 AS cor0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1282
SELECT ALL col0 DIV ( - col2 * + col2 + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL col0 / ( - col2 * + col2 + col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - 82 * col0 AS col0 FROM tab0 cor0
----
-1968
-2870
-7298
onlyif mysql # use DIV operator for integer division
query I rowsort label-1284
SELECT - col1 DIV + col0 + col2 AS col1 FROM tab2 AS cor0
----
23
26
38
skipif mysql # not compatible
query I rowsort label-1284
SELECT - col1 / + col0 + col2 AS col1 FROM tab2 AS cor0
----
23
26
38
query I rowsort
SELECT ALL - col2 * - 34 FROM tab0 AS cor0
----
1122
2788
34
query I rowsort
SELECT ALL + col0 * ( col2 ) FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT ( col0 ) * - cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-1288
SELECT DISTINCT + col0 DIV + col2 AS col2 FROM tab0 cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT + col0 / + col2 AS col2 FROM tab0 cor0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 0 col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col2 + + 1 + col1 FROM tab2 AS cor0
----
56
59
86
query I rowsort
SELECT ALL ( - 92 ) * + col1 * + col0 AS col0 FROM tab2 AS cor0
----
-123556
-19964
-423384
query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab1 AS cor0
----
14
query I rowsort
SELECT - col1 * col2 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ALL - 5 * - col1 FROM tab1 cor0
----
130
50
65
query I rowsort
SELECT DISTINCT 30 * col0 AS col1 FROM tab0 AS cor0
----
1050
2670
720
onlyif mysql # use DIV operator for integer division
query I rowsort label-1296
SELECT + col1 * col2 DIV + 41 FROM tab2 AS cor0
----
15
20
37
skipif mysql # not compatible
query I rowsort label-1296
SELECT + col1 * col2 / + 41 FROM tab2 AS cor0
----
15
20
37
query I rowsort
SELECT tab1.col0 - + col1 * - col0 AS col0 FROM tab1
----
1120
704
81
query I rowsort
SELECT - 95 * col1 + + col1 AS col0 FROM tab0
----
-8084
-8554
-9118
query I rowsort
SELECT - + 49 FROM tab1 cor0
----
-49
-49
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1300
SELECT - - col0 * CAST( col0 AS SIGNED ) + - col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162
skipif mysql # not compatible
query I rowsort label-1300
SELECT - - col0 * CAST ( col0 AS INTEGER ) + - col0 AS col2 FROM tab2 AS cor0
----
42
6006
6162
query I rowsort
SELECT ALL - - col1 * - 48 FROM tab0 cor0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL col1 + 28 AS col0 FROM tab0 AS cor0
----
114
119
125
onlyif mysql # use DIV operator for integer division
query I rowsort label-1303
SELECT ALL + + col2 + + 48 DIV ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
2
35
82
skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL + + col2 + + 48 / ( + cor0.col0 ) AS col1 FROM tab0 AS cor0
----
2
35
82
query I rowsort
SELECT DISTINCT col2 * - tab1.col1 - + 52 FROM tab1
----
-1300
-1456
-622
query I rowsort
SELECT ALL - col0 * - cor0.col0 FROM tab2 cor0
----
49
6084
6241
query I rowsort
SELECT + col1 * 30 + - col1 AS col0 FROM tab0 AS cor0
----
2494
2639
2813
query I rowsort
SELECT DISTINCT - col0 + 69 FROM tab2
----
-10
-9
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 52 col2 FROM tab0
----
134
53
85
query I rowsort
SELECT ALL col0 * col0 + + ( + col2 ) FROM tab0
----
1226
609
8003
query I rowsort
SELECT ALL + - 67 AS col2 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT ALL - 76 + - cor0.col0 * + col0 FROM tab0 AS cor0
----
-1301
-652
-7997
query I rowsort
SELECT ALL + 79 * + col1 FROM tab1 AS cor0
----
1027
2054
790
onlyif mysql # use DIV operator for integer division
query I rowsort label-1313
SELECT DISTINCT + + col0 DIV + col1 + - col0 FROM tab1 AS cor0
----
-3
-58
-74
skipif mysql # not compatible
query I rowsort label-1313
SELECT DISTINCT + + col0 / + col1 + - col0 FROM tab1 AS cor0
----
-3
-58
-74
query I rowsort
SELECT + 45 * 76 + + col2 * col0 AS col0 FROM tab0 AS cor0
----
10718
3455
4212
query I rowsort
SELECT - col2 * 75 FROM tab1
----
-4050
-4275
-7200
query I rowsort
SELECT DISTINCT col2 * col0 + + col2 * + tab1.col0 FROM tab1
----
15360
324
7296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1317
SELECT ALL col1 + + CAST( NULL AS SIGNED ) * col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1317
SELECT ALL col1 + + CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 + 98 AS col2 FROM tab1
----
101
162
178
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( col1 ) + - col0 col1 FROM tab1
----
36
673
89
query I rowsort
SELECT DISTINCT + col2 + 91 + + tab2.col1 FROM tab2
----
146
149
176
query I rowsort
SELECT DISTINCT - 92 * col2 + + 50 FROM tab0 AS cor0
----
-2986
-42
-7494
query I rowsort
SELECT ALL - 37 * col0 FROM tab2 AS cor0
----
-259
-2886
-2923
query I rowsort
SELECT + 30 + - col0 FROM tab2 AS cor0
----
-48
-49
23
query I rowsort
SELECT DISTINCT + 90 * - col0 - 0 FROM tab0 AS cor0
----
-2160
-3150
-8010
query I rowsort
SELECT DISTINCT - - 24 * - col1 + col1 FROM tab2 AS cor0
----
-1357
-391
-713
onlyif mysql # use DIV operator for integer division
query I rowsort label-1326
SELECT ALL + 43 * - col2 + col0 DIV - 90 + + col1 FROM tab1
----
-2296
-2441
-4115
skipif mysql # not compatible
query I rowsort label-1326
SELECT ALL + 43 * - col2 + col0 / - 90 + + col1 FROM tab1
----
-2296
-2441
-4115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
97
query I rowsort
SELECT col1 - + ( col2 ) FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT - cor0.col1 * + col0 - + 81 * - cor0.col1 FROM tab1 cor0
----
13
170
2028
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1330
SELECT ALL CAST( NULL AS SIGNED ) * - 86 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL CAST ( NULL AS INTEGER ) * - 86 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-1331
SELECT - ( - col2 ) DIV + 2 AS col2 FROM tab0
----
0
16
41
skipif mysql # not compatible
query I rowsort label-1331
SELECT - ( - col2 ) / + 2 AS col2 FROM tab0
----
0
16
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col2 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 AS col1 FROM tab0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + ( + col2 ) + col0 * - 65 FROM tab1
----
-141
-4103
-5104
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 / - col1 + - CAST ( 55 AS REAL ) FROM tab2
----
-55
-56
-59
query I rowsort
SELECT DISTINCT + 47 + 93 * col2 AS col1 FROM tab2 AS cor0
----
2465
2558
3581
onlyif mysql # use DIV operator for integer division
query I rowsort label-1337
SELECT ALL col1 - ( + col1 ) DIV 91 AS col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL col1 - ( + col1 ) / 91 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col2 * cor0.col2 + - col0 AS col1 FROM tab2 AS cor0
----
1365
598
722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1339
SELECT + CAST( 53 AS SIGNED ) AS col1 FROM tab2 cor0
----
53
53
53
skipif mysql # not compatible
query I rowsort label-1339
SELECT + CAST ( 53 AS INTEGER ) AS col1 FROM tab2 cor0
----
53
53
53
query I rowsort
SELECT ( tab1.col1 ) * cor0.col1 * 33 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 31387b0c4901e8805d4b4340c14cb290
query I rowsort
SELECT col2 * + col0 + + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT + tab0.col2 + + tab0.col2 AS col0 FROM tab0
----
164
2
66
query I rowsort
SELECT ( tab2.col0 ) + - col2 AS col2 FROM tab2
----
-20
41
52
query I rowsort
SELECT ALL - cor1.col2 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1345
SELECT DISTINCT + CAST( 46 AS SIGNED ) FROM tab1 AS cor0
----
46
skipif mysql # not compatible
query I rowsort label-1345
SELECT DISTINCT + CAST ( 46 AS INTEGER ) FROM tab1 AS cor0
----
46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 * col0 col1 FROM tab0 AS cor0
----
1225
19008
649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 * - col2 + - col2 * ( col2 * + col1 ) col0 FROM tab2 AS cor0
----
-24327
-26980
-41548
query I rowsort
SELECT DISTINCT - col2 - + col1 * col0 * - cor0.col0 FROM tab2 cor0
----
106059
1492
358930
query I rowsort
SELECT + cor0.col1 + + 50 FROM tab2 AS cor0
----
109
67
81
query I rowsort
SELECT ALL 30 + col1 + col0 * 91 AS col0 FROM tab1 AS cor0
----
329
5864
7323
query I rowsort
SELECT ALL - 81 * col0 + + col0 * + 2 AS col0 FROM tab1 AS cor0
----
-237
-5056
-6320
query I rowsort
SELECT - - ( - 1 ) FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 31 + col1 FROM tab1 AS cor0
----
41
44
57
query I rowsort
SELECT ALL - - col2 + + col1 * + col0 + + ( 74 * col2 ) AS col2 FROM tab2 AS cor0
----
2242
4193
6552
query I rowsort
SELECT ALL + col0 * col2 * 88 FROM tab1 AS cor0
----
14256
321024
675840
query I rowsort
SELECT ALL - + 29 FROM tab1 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT - col0 * - 33 * - col1 AS col0 FROM tab2
----
-151866
-44319
-7161
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( + col1 * + col1 AS REAL ) AS col2 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 + + 27 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-46
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT + - 13 AS col0 FROM tab1 cor0
----
-13
-13
-13
query I rowsort
SELECT - col1 * ( - cor0.col2 * col2 ) + col2 AS col2 FROM tab0 AS cor0
----
611966
93687
98
query I rowsort
SELECT DISTINCT - cor0.col1 * - 48 AS col1 FROM tab1 AS cor0
----
1248
480
624
query I rowsort
SELECT col0 + + 28 * + col1 - + col2 FROM tab0 AS cor0
----
2399
2555
2750
onlyif mysql # use DIV operator for integer division
query I rowsort label-1365
SELECT - - col2 - + col0 DIV 87 AS col2 FROM tab0 AS cor0
----
1
33
81
skipif mysql # not compatible
query I rowsort label-1365
SELECT - - col2 - + col0 / 87 AS col2 FROM tab0 AS cor0
----
1
33
81
query I rowsort
SELECT ALL col1 * col0 * col0 FROM tab0 AS cor0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-1367
SELECT col2 DIV ( 13 ) + - col1 FROM tab1 cor0
----
-22
-6
-6
skipif mysql # not compatible
query I rowsort label-1367
SELECT col2 / ( 13 ) + - col1 FROM tab1 cor0
----
-22
-6
-6
query I rowsort
SELECT ALL - col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1369
SELECT - cor0.col1 + cor0.col2 DIV - 39 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-1369
SELECT - cor0.col1 + cor0.col2 / - 39 FROM tab2 AS cor0
----
-17
-31
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col0 + col1 col0 FROM tab1 cor0
----
104
1053
650
onlyif mysql # use DIV operator for integer division
query I rowsort label-1371
SELECT + + col0 * ( col1 ) + ( - ( - col0 ) ) DIV col2 FROM tab1 AS cor0
----
1040
641
78
skipif mysql # not compatible
query I rowsort label-1371
SELECT + + col0 * ( col1 ) + ( - ( - col0 ) ) / col2 FROM tab1 AS cor0
----
1040
641
78
query I rowsort
SELECT - cor0.col0 * + 26 + col0 AS col0 FROM tab2 AS cor0
----
-175
-1950
-1975
query I rowsort
SELECT ALL - col0 * 74 + + 40 + - col2 AS col0 FROM tab2 AS cor0
----
-505
-5758
-5844
query I rowsort
SELECT DISTINCT col1 + 34 FROM tab2 AS cor0
----
51
65
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1375
SELECT DISTINCT + - col1 * CAST( - col1 AS SIGNED ) + - col1 AS col2 FROM tab0 cor0
----
7310
8190
9312
skipif mysql # not compatible
query I rowsort label-1375
SELECT DISTINCT + - col1 * CAST ( - col1 AS INTEGER ) + - col1 AS col2 FROM tab0 cor0
----
7310
8190
9312
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1376
SELECT ALL + col0 * CAST( - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL + col0 * CAST ( - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
90
query I rowsort
SELECT DISTINCT + col0 * 93 FROM tab2 AS cor0
----
651
7254
7347
query I rowsort
SELECT + cor0.col2 + ( 33 ) FROM tab0 AS cor0
----
115
34
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-1380
SELECT DISTINCT - - col0 DIV - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT - - col0 / - ( col2 ) AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT ALL 93 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT ALL - col1 * 58 AS col2 FROM tab0
----
-4988
-5278
-5626
query I rowsort
SELECT ALL + 89 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 860d55eb6785972467218a9c3badb5ad
query I rowsort
SELECT ALL + - cor0.col1 + col2 * 83 FROM tab2 AS cor0
----
2099
2210
3137
query I rowsort
SELECT DISTINCT + 31 - - col1 AS col1 FROM tab0
----
117
122
128
onlyif mysql # use DIV operator for integer division
query I rowsort label-1386
SELECT ( + col0 ) * + col2 + CAST( + col2 AS SIGNED ) DIV - col2 + - col2 col0 FROM tab1 AS cor0
----
107
3590
7583
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1386
SELECT ( + col0 ) * + col2 + CAST ( + col2 AS INTEGER ) / - col2 + - col2 col0 FROM tab1 AS cor0
----
107
3590
7583
onlyif mysql # use DIV operator for integer division
query I rowsort label-1387
SELECT DISTINCT col1 + col2 DIV + col2 AS col0 FROM tab1
----
11
14
27
skipif mysql # not compatible
query I rowsort label-1387
SELECT DISTINCT col1 + col2 / + col2 AS col0 FROM tab1
----
11
14
27
query I rowsort
SELECT cor0.col2 - 79 FROM tab0, tab2 AS cor0
----
9 values hashing to 6d6928e24629ae4b0510fa7d085786ab
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1389
SELECT col0 * tab1.col2 + CAST( NULL AS SIGNED ) + col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1389
SELECT col0 * tab1.col2 + CAST ( NULL AS INTEGER ) + col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 * col1 + + cor0.col1 * - col2 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT DISTINCT col1 + col2 * + ( + col2 + + col1 * + col2 ) FROM tab1 AS cor0
----
129037
35749
78758
query I rowsort
SELECT + + 86 * - col1 + + col0 AS col0 FROM tab2 AS cor0
----
-1383
-2659
-4996
query I rowsort
SELECT - + 73 * - col2 + ( col2 ) * + col0 FROM tab2 AS cor0
----
2160
3926
5776
query I rowsort
SELECT DISTINCT - 21 * + 19 AS col2 FROM tab1, tab0 cor0
----
-399
onlyif mysql # use DIV operator for integer division
query I rowsort label-1395
SELECT DISTINCT - tab0.col1 + + col2 DIV ( - 52 + + col1 ) AS col2 FROM tab0
----
-86
-89
-97
skipif mysql # not compatible
query I rowsort label-1395
SELECT DISTINCT - tab0.col1 + + col2 / ( - 52 + + col1 ) AS col2 FROM tab0
----
-86
-89
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-1396
SELECT ( - col0 ) DIV - col1 + + tab1.col1 AS col2 FROM tab1
----
16
19
26
skipif mysql # not compatible
query I rowsort label-1396
SELECT ( - col0 ) / - col1 + + tab1.col1 AS col2 FROM tab1
----
16
19
26
query I rowsort
SELECT ALL + 97 * col1 FROM tab1 AS cor0
----
1261
2522
970
query I rowsort
SELECT + col1 + col1 - + col2 FROM tab0 AS cor0
----
100
139
193
query I rowsort
SELECT ALL col0 * - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-234
-40960
-83200
skipif mysql # not compatible
query I rowsort
SELECT ( col2 ) + + CAST ( ( - col2 ) AS REAL ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + tab2.col0 + - col0 AS col0 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + col1 + col2 * + 71 AS col2 FROM tab2 AS cor0
----
1905
1948
2715
query I rowsort
SELECT DISTINCT - + col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + cor0.col2 + - 29 AS col1 FROM tab2 AS cor0
----
-2
-3
9
query I rowsort
SELECT + + col0 * 69 + col2 FROM tab1 AS cor0
----
261
4473
5616
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1406
SELECT DISTINCT + + col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1406
SELECT DISTINCT + + col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col0 * 97 AS col1 FROM tab0 AS cor0
----
2328
3395
8633
query I rowsort
SELECT ALL + tab1.col1 + col1 + - col1 FROM tab1
----
10
13
26
query I rowsort
SELECT DISTINCT + 17 FROM tab0, tab0 cor0, tab1 AS cor1
----
17
query I rowsort
SELECT DISTINCT - + col0 * col1 + cor0.col1 * col0 AS col1 FROM tab1 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 48 + - col1 col2 FROM tab0 cor0
----
-134
-139
-145
query I rowsort
SELECT ( 10 ) * tab0.col0 + + col2 AS col0 FROM tab0
----
273
351
972
query I rowsort
SELECT ALL + col0 * 98 AS col2 FROM tab0
----
2352
3430
8722
query I rowsort
SELECT + col2 * - 47 AS col2 FROM tab0 AS cor0
----
-1551
-3854
-47
query I rowsort
SELECT 82 FROM tab2, tab2 AS cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c
query I rowsort
SELECT + - col2 + col1 * - col0 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 * cor0.col0 + 57 col2 FROM tab1 cor0
----
219
3705
7737
query I rowsort
SELECT ( - col1 ) + 72 - col0 AS col2 FROM tab1 AS cor0
----
-2
-21
43
query I rowsort
SELECT ALL 31 + + col0 * - 66 AS col2 FROM tab1 AS cor0
----
-167
-4193
-5249
query I rowsort
SELECT DISTINCT + 3 * - col2 AS col0 FROM tab1 AS cor0
----
-162
-171
-288
query I rowsort
SELECT 54 + - col0 + cor0.col2 FROM tab0 AS cor0
----
20
47
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1422
SELECT + + col1 + - cor0.col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1422
SELECT + + col1 + - cor0.col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col1 - + col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT col2 * col0 - + col2 FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL - 40 * 2 * tab1.col2 AS col1 FROM tab1
----
-4320
-4560
-7680
query I rowsort
SELECT 99 + col0 FROM tab0
----
123
134
188
query I rowsort
SELECT DISTINCT tab2.col0 * col2 * tab2.col2 - - 84 * col1 FROM tab2
----
115504
57684
7707
onlyif mysql # use DIV operator for integer division
query I rowsort label-1428
SELECT - ( - 40 ) DIV col0 + - col0 + col0 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-1428
SELECT - ( - 40 ) / col0 + - col0 + col0 FROM tab0
----
0
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-1429
SELECT ALL + col0 DIV + 29 AS col1 FROM tab2
----
0
2
2
skipif mysql # not compatible
query I rowsort label-1429
SELECT ALL + col0 / + 29 AS col1 FROM tab2
----
0
2
2
query I rowsort
SELECT ALL cor0.col0 * + ( ( - col1 ) + + col0 * cor0.col1 ) FROM tab2 AS cor0
----
104754
1302
354354
query I rowsort
SELECT + col0 * col2 * + col2 AS col0 FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT - - col1 + + ( - 5 ) * col0 FROM tab1 AS cor0
----
-310
-387
11
query I rowsort
SELECT DISTINCT + col2 + - col0 * 43 FROM tab0 AS cor0
----
-1504
-3745
-999
query I rowsort
SELECT ALL + cor0.col1 * 29 * col0 FROM tab1 AS cor0
----
18560
2262
30160
skipif mysql # not compatible
query I rowsort
SELECT + col0 * - CAST ( + col0 AS REAL ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + ( + 96 ) * - col2 FROM tab0 AS cor0
----
-3168
-7872
-96
query I rowsort
SELECT + - 91 + - col0 * col2 FROM tab2 cor0
----
-2119
-280
-3093
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - cor0.col0 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 815fccd4c3d372b28d3f3fb103025775
query I rowsort
SELECT - cor1.col0 * cor0.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to ca26a9c75ff44c670c3875e166f12126
query I rowsort
SELECT 75 * cor0.col1 * 17 FROM tab2 AS cor0
----
21675
39525
75225
query I rowsort
SELECT DISTINCT - 28 + col2 FROM tab2 AS cor0
----
-1
-2
10
query I rowsort
SELECT ALL + + 57 * col0 AS col1 FROM tab1 cor0
----
171
3648
4560
query I rowsort
SELECT - 3 AS col1 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT + cor0.col1 + col1 * + col1 FROM tab0 cor0
----
7482
8372
9506
query I rowsort
SELECT + - col2 + 12 * cor0.col0 AS col1 FROM tab2 cor0
----
57
910
910
query I rowsort
SELECT + - col2 * col2 + + 59 AS col1 FROM tab2 AS cor0
----
-1385
-617
-670
query I rowsort
SELECT - cor0.col2 * + col1 + col0 AS col1 FROM tab2 cor0
----
-1456
-567
-830
query I rowsort
SELECT - - col0 + + col0 + + col1 FROM tab2 cor0
----
175
215
45
query I rowsort
SELECT DISTINCT + 56 * - col0 FROM tab2
----
-392
-4368
-4424
query I rowsort
SELECT DISTINCT - 8 FROM tab2, tab1, tab1 AS cor0
----
-8
query I rowsort
SELECT + col1 + col1 * col2 * tab1.col0 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT DISTINCT ( - col2 ) * - 98 FROM tab0
----
3234
8036
98
query I rowsort
SELECT + col2 * + col0 * col0 FROM tab2
----
1323
158184
237158
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 * col1 col2 FROM tab1
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 58ed467a9a332e4d7bfaa9abdbbd063f
onlyif mysql # use DIV operator for integer division
query I rowsort label-1456
SELECT DISTINCT - + col2 DIV - col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1456
SELECT DISTINCT - + col2 / - col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1457
SELECT - - col0 DIV col0 + - col0 * - col2 + + cor0.col1 FROM tab1 AS cor0
----
189
3659
7694
skipif mysql # not compatible
query I rowsort label-1457
SELECT - - col0 / col0 + - col0 * - col2 + + cor0.col1 FROM tab1 AS cor0
----
189
3659
7694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col1 col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT DISTINCT cor0.col0 + + col1 AS col0 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-1460
SELECT - cor0.col1 * cor0.col0 DIV - cor0.col1 FROM tab0 cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-1460
SELECT - cor0.col1 * cor0.col0 / - cor0.col1 FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT + col0 + col1 - tab0.col2 AS col1 FROM tab0
----
131
77
98
query I rowsort
SELECT - col0 + - col1 * + col0 AS col2 FROM tab1
----
-1120
-704
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-1463
SELECT ALL tab0.col2 DIV - col0 + - tab0.col1 + col2 FROM tab0
----
-54
-9
-96
skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL tab0.col2 / - col0 + - tab0.col1 + col2 FROM tab0
----
-54
-9
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-1464
SELECT ALL + tab1.col2 DIV col1 AS col0 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-1464
SELECT ALL + tab1.col2 / col1 AS col0 FROM tab1
----
2
5
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1465
SELECT - 24 DIV - col2 - col1 FROM tab0 AS cor0
----
-73
-86
-91
skipif mysql # not compatible
query I rowsort label-1465
SELECT - 24 / - col2 - col1 FROM tab0 AS cor0
----
-73
-86
-91
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 97 col0 FROM tab0 cor0
----
-97
-97
-97
query I rowsort
SELECT + - cor0.col0 - - col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + ( ( col1 ) ) AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT col0 * + col0 - - col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT cor0.col0 - + col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - col2 * col2 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-2816
-2907
847
query I rowsort
SELECT - + col1 - cor0.col0 * col1 FROM tab0 cor0
----
-2150
-3492
-8190
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + + col0 col2 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT + + cor0.col0 + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1475
SELECT DISTINCT 97 DIV + cor0.col0 AS col1 FROM tab0 cor0
----
1
2
4
skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT 97 / + cor0.col0 AS col1 FROM tab0 cor0
----
1
2
4
query I rowsort
SELECT + ( + col2 ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT - col2 * - col2 + + cor0.col2 FROM tab2 cor0
----
1482
702
756
query I rowsort
SELECT ALL + 12 + col1 * 67 + col1 AS col1 FROM tab0 AS cor0
----
5860
6200
6608
query I rowsort
SELECT 85 + col2 FROM tab1 AS cor0
----
139
142
181
query I rowsort
SELECT DISTINCT ( col2 ) + - col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + + 8 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-1032
-632
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-1482
SELECT ALL - 61 - col1 DIV - cor0.col0 AS col0 FROM tab2 AS cor0
----
-57
-61
-61
skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL - 61 - col1 / - cor0.col0 AS col0 FROM tab2 AS cor0
----
-57
-61
-61
query I rowsort
SELECT - ( - col1 ) * col1 * - col2 + col2 AS col1 FROM tab0 cor0
----
-244035
-678960
-9408
query I rowsort
SELECT - col1 * - col0 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT - col2 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * 89 FROM tab0 cor0
----
124
2961
7387
query I rowsort
SELECT + 8 FROM tab0, tab1, tab1 cor0, tab2
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01
onlyif mysql # use DIV operator for integer division
query I rowsort label-1488
SELECT ALL - col0 DIV tab1.col2 + col1 AS col0 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-1488
SELECT ALL - col0 / tab1.col2 + col1 AS col0 FROM tab1
----
13
26
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * + tab2.col1 col2 FROM tab2
----
3559
368
968
query I rowsort
SELECT DISTINCT + 64 AS col2 FROM tab0 AS cor0
----
64
query I rowsort
SELECT DISTINCT + col0 * col2 * - ( col0 ) + col2 AS col1 FROM tab0 AS cor0
----
-1224
-18975
-649440
query I rowsort
SELECT 14 + col0 * col2 AS col2 FROM tab2 AS cor0
----
203
2042
3016
onlyif mysql # use DIV operator for integer division
query I rowsort label-1493
SELECT DISTINCT - 27 + + cor0.col1 DIV + col0 + + cor0.col1 FROM tab2 AS cor0
----
-10
32
8
skipif mysql # not compatible
query I rowsort label-1493
SELECT DISTINCT - 27 + + cor0.col1 / + col0 + + cor0.col1 FROM tab2 AS cor0
----
-10
32
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-1494
SELECT ALL 60 * - col1 - + 53 DIV + col1 FROM tab2 AS cor0
----
-1023
-1861
-3540
skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL 60 * - col1 - + 53 / + col1 FROM tab2 AS cor0
----
-1023
-1861
-3540
query I rowsort
SELECT + ( col0 ) * + col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT col2 + - ( 51 ) * cor0.col2 FROM tab1 AS cor0
----
-2700
-2850
-4800
query I rowsort
SELECT col0 * - 50 AS col1 FROM tab1 AS cor0
----
-150
-3200
-4000
onlyif mysql # use DIV operator for integer division
query I rowsort label-1498
SELECT ALL - + cor0.col2 DIV 37 AS col2 FROM tab1 cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL - + cor0.col2 / 37 AS col2 FROM tab1 cor0
----
-1
-1
-2
query I rowsort
SELECT 79 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 4857f2e1b1dbd184de4827f145dd02a1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1500
SELECT ALL - cor0.col1 * - CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1500
SELECT ALL - cor0.col1 * - CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col0 * + col2 * + 91 AS col2 FROM tab0 AS cor0
----
3185
664118
72072
query I rowsort
SELECT - - col2 + + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT col2 + - 6 * - 73 AS col1 FROM tab0 AS cor0
----
439
471
520
query I rowsort
SELECT - 14 + col2 FROM tab2 AS cor0
----
12
13
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1505
SELECT + ( + col2 ) * + col0 + + CAST( NULL AS SIGNED ) * + 79 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1505
SELECT + ( + col2 ) * + col0 + + CAST ( NULL AS INTEGER ) * + 79 - + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 51 + - ( + col0 ) + col1 FROM tab2 AS cor0
----
-11
32
75
query I rowsort
SELECT - + col2 + + ( col1 ) * + col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1508
SELECT DISTINCT + CAST( col1 AS SIGNED ) * - col2 + 13 AS col2 FROM tab1 cor0
----
-1235
-1391
-557
skipif mysql # not compatible
query I rowsort label-1508
SELECT DISTINCT + CAST ( col1 AS INTEGER ) * - col2 + 13 AS col2 FROM tab1 cor0
----
-1235
-1391
-557
query I rowsort
SELECT col2 + + 17 * - 65 AS col2 FROM tab0
----
-1023
-1072
-1104
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab2 AS cor2
----
3645 values hashing to 81a27955147133c47c9e8e63dacc5c37
onlyif mysql # use DIV operator for integer division
query I rowsort label-1511
SELECT ALL + col0 - - 34 DIV col0 FROM tab1
----
14
64
80
skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL + col0 - - 34 / col0 FROM tab1
----
14
64
80
query I rowsort
SELECT - - 72 * + col2 * col1 FROM tab0 AS cor0
----
204336
537264
6984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1513
SELECT + CAST( col2 AS SIGNED ) + cor0.col2 * - 54 * - cor0.col2 FROM tab1 AS cor0
----
157518
175503
497760
skipif mysql # not compatible
query I rowsort label-1513
SELECT + CAST ( col2 AS INTEGER ) + cor0.col2 * - 54 * - cor0.col2 FROM tab1 AS cor0
----
157518
175503
497760
onlyif mysql # use DIV operator for integer division
query I rowsort label-1514
SELECT - cor0.col0 DIV 62 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-1514
SELECT - cor0.col0 / 62 FROM tab1 AS cor0
----
-1
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1515
SELECT DISTINCT - - col0 DIV + cor0.col0 - - col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-1515
SELECT DISTINCT - - col0 / + cor0.col0 - - col1 FROM tab0 AS cor0
----
87
92
98
query I rowsort
SELECT cor0.col2 * col0 + - cor0.col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL ( - 24 ) AS col1 FROM tab0 AS cor0
----
-24
-24
-24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) col0 FROM tab0 cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 66 + cor0.col1 AS col1 FROM tab2 AS cor0
----
125
83
97
query I rowsort
SELECT DISTINCT - col2 * col2 + - col1 AS col2 FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - + 3 - - 28 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT + 51 + + col0 FROM tab1 AS cor0
----
115
131
54
query I rowsort
SELECT col2 + + ( - col2 ) * + col2 FROM tab1
----
-2862
-3192
-9120
onlyif mysql # use DIV operator for integer division
query I rowsort label-1524
SELECT - tab2.col1 + col1 DIV - col1 FROM tab2
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-1524
SELECT - tab2.col1 + col1 / - col1 FROM tab2
----
-18
-32
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + ( col0 ) + - 96 col2 FROM tab0
----
-39
-60
75
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 31 col1 FROM tab2 cor0
----
-31
-31
-31
query I rowsort
SELECT ALL + + col2 + - 56 FROM tab1 AS cor0
----
-2
1
40
query I rowsort
SELECT DISTINCT + 32 AS col1 FROM tab1 cor0
----
32
query I rowsort
SELECT ALL col0 + + 14 FROM tab2 AS cor0
----
21
92
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1530
SELECT - - CAST( NULL AS SIGNED ) * - 1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1530
SELECT - - CAST ( NULL AS INTEGER ) * - 1 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 * col2 col1 FROM tab0 AS cor0
----
-1089
-2706
-33
query I rowsort
SELECT - cor0.col2 - 54 FROM tab0 AS cor0
----
-136
-55
-87
onlyif mysql # use DIV operator for integer division
query I rowsort label-1533
SELECT ALL col0 DIV col2 + + col2 * col1 AS col2 FROM tab1
----
1248
1404
571
skipif mysql # not compatible
query I rowsort label-1533
SELECT ALL col0 / col2 + + col2 * col1 AS col2 FROM tab1
----
1248
1404
571
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) + + col0 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT 61 + 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0
query I rowsort
SELECT DISTINCT + - 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * 50 * - col2 col0 FROM tab0
----
-141900
-373100
-4850
query I rowsort
SELECT ALL - - cor0.col1 + col1 * + col2 AS col1 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT DISTINCT col1 * col1 + - col2 * + cor0.col0 AS col2 FROM tab2 AS cor0
----
-2713
1453
772
query I rowsort
SELECT ALL - cor0.col1 + - 74 FROM tab0 AS cor0
----
-160
-165
-171
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 40 col2 FROM tab2, tab1 AS cor0
----
40
query I rowsort
SELECT DISTINCT col1 * - 48 AS col0 FROM tab0 AS cor0
----
-4128
-4368
-4656
query I rowsort
SELECT ALL + col2 * + cor0.col2 + - col2 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT + col1 * col1 + + 28 AS col1 FROM tab0 AS cor0
----
7424
8309
9437
query I rowsort
SELECT ALL + - cor0.col2 AS col0 FROM tab0, tab0 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 87af467938ef355540b8de24db1bf3b8
query I rowsort
SELECT - ( col2 * ( col0 ) ) AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT + 86 + col1 AS col2 FROM tab2 AS cor0
----
103
117
145
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1548
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-1548
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL 15 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1550
SELECT DISTINCT - + col2 + col0 DIV - col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - + col2 + col0 / - col0 FROM tab1 AS cor0
----
-55
-58
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
onlyif mysql # use DIV operator for integer division
query I rowsort label-1552
SELECT + tab0.col1 DIV - 41 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
skipif mysql # not compatible
query I rowsort label-1552
SELECT + tab0.col1 / - 41 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT + col1 * 15 + col1 * + col2 FROM tab2 AS cor0
----
1302
2419
901
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col2 + + 65 col0 FROM tab1
----
119
122
161
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 + + col2 * + col2 col1 FROM tab1 AS cor0
----
2916
3249
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 + - col1 col2 FROM tab1 AS cor0
----
-72
-75
-88
query I rowsort
SELECT + col0 * cor0.col0 + - col1 AS col1 FROM tab0 AS cor0
----
1128
490
7830
query I rowsort
SELECT ALL 54 AS col0 FROM tab2 cor0
----
54
54
54
onlyif mysql # use DIV operator for integer division
query I rowsort label-1560
SELECT col2 * col1 + col1 DIV 70 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-1560
SELECT col2 * col1 + col1 / 70 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-1561
SELECT - col1 * col1 + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-7396
-8280
-9374
skipif mysql # not compatible
query I rowsort label-1561
SELECT - col1 * col1 + col0 / + col2 AS col1 FROM tab0 AS cor0
----
-7396
-8280
-9374
query I rowsort
SELECT col1 * col1 + 43 AS col2 FROM tab2 AS cor0
----
1004
332
3524
query I rowsort
SELECT + 87 * + col0 + ( 24 ) AS col1 FROM tab1 AS cor0
----
285
5592
6984
query I rowsort
SELECT ALL + - ( cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT ALL - - col1 * + col2 * ( 99 ) AS col1 FROM tab1 AS cor0
----
123552
138996
56430
query I rowsort
SELECT ALL + - 97 * col2 AS col0 FROM tab0 AS cor0
----
-3201
-7954
-97
query I rowsort
SELECT ALL col0 + - col2 AS col0 FROM tab0
----
-9
34
7
query I rowsort
SELECT + ( + col1 ) * col2 * col2 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT + col0 * - col2 * col2 FROM tab1
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-1570
SELECT ALL - col1 DIV tab1.col2 - + tab1.col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-1570
SELECT ALL - col1 / tab1.col2 - + tab1.col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT + col0 + col0 - col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT ALL + ( - cor0.col1 ) * + col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + col2 - col2 * - col1 FROM tab1 AS cor0
----
1344
1458
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-1574
SELECT ALL + col1 + - col1 DIV + col1 FROM tab2 cor0
----
16
30
58
skipif mysql # not compatible
query I rowsort label-1574
SELECT ALL + col1 + - col1 / + col1 FROM tab2 cor0
----
16
30
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-1575
SELECT DISTINCT + - col2 DIV cor0.col0 - col1 * cor0.col2 FROM tab1 AS cor0
----
-1249
-1422
-570
skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT + - col2 / cor0.col0 - col1 * cor0.col2 FROM tab1 AS cor0
----
-1249
-1422
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-1576
SELECT DISTINCT col2 DIV - ( + col1 * col1 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT col2 / - ( + col1 * col1 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + col1 + + ( col0 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - + col0 * col0 + + col0 FROM tab1 AS cor0
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1579
SELECT ALL 95 * + col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL 95 * + col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-1580
SELECT DISTINCT - tab2.col1 * - col0 DIV col0 AS col1 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT - tab2.col1 * - col0 / col0 AS col1 FROM tab2
----
17
31
59
query I rowsort
SELECT DISTINCT + tab2.col1 FROM tab2, tab2 cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-1582
SELECT 88 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1582
SELECT 88 / + col1 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT ALL + 46 * col0 * col1 FROM tab2
----
211692
61778
9982
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col1 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-1585
SELECT ALL col1 * col1 DIV - tab0.col0 AS col0 FROM tab0
----
-268
-308
-93
skipif mysql # not compatible
query I rowsort label-1585
SELECT ALL col1 * col1 / - tab0.col0 AS col0 FROM tab0
----
-268
-308
-93
query I rowsort
SELECT col1 * - col2 + + tab1.col0 + col0 * col2 FROM tab1
----
-1239
3142
6512
query I rowsort
SELECT col2 + col2 * - col0 AS col1 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT - tab0.col1 + col2 * - col1 AS col2 FROM tab0
----
-194
-2924
-7553
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * col1 BETWEEN + col2 - col2 AND col1
----
query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col0 BETWEEN + col2 + col1 AND ( + col0 + cor0.col0 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT + col1 * - tab0.col0 * col2 + col1 FROM tab0 WHERE col0 - col0 * + col0 < NULL
----
query I rowsort
SELECT DISTINCT - col1 + + col1 * - col0 FROM tab0
----
-2150
-3492
-8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-1593
SELECT ALL col0 DIV - col2 + + col2 AS col2 FROM tab1
----
54
56
96
skipif mysql # not compatible
query I rowsort label-1593
SELECT ALL col0 / - col2 + + col2 AS col2 FROM tab1
----
54
56
96
query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( col2 + + col2 * - col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT + col2 + col0 NOT BETWEEN ( + col0 ) AND ( NULL )
----
query I rowsort
SELECT ALL - col1 * + tab2.col2 * - col0 AS col2 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL col0 - - col2 * col2 FROM tab1
----
2919
3313
9296
query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NULL < ( - col0 )
----
query I rowsort
SELECT DISTINCT + col1 * col0 * col1 FROM tab2
----
22831
271518
6727
query I rowsort
SELECT - col2 * + tab1.col2 * + tab1.col0 + + tab1.col0 * col0 FROM tab1
----
-203840
-730880
-8739
onlyif mysql # use DIV operator for integer division
query I rowsort label-1601
SELECT DISTINCT col1 DIV col0 + col1 col0 FROM tab1
----
10
13
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT col1 / col0 + col1 col0 FROM tab1
----
10
13
34
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN col1 AND col0 / col1 + + col0
----
64
10
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-1603
SELECT col0 DIV - col2 + + col1 FROM tab1
----
13
26
9
skipif mysql # not compatible
query I rowsort label-1603
SELECT col0 / - col2 + + col1 FROM tab1
----
13
26
9
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col0 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + col1 col1 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL + col0 * - cor0.col0 * col0 + col0 + - col1 FROM tab2 AS cor0
----
-367
-474533
-492977
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col0 * + cor0.col0 * - col2 col0 FROM tab0 AS cor0
----
1226
19041
649604
query I rowsort
SELECT - col1 * + col0 + col2 * col1 + col0 * - col1 FROM tab0 AS cor0
----
-1290
-6693
-8736
query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT + col0 * + col1 * - col2 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT DISTINCT + col1 * - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE NOT - col0 BETWEEN NULL AND col2
----
query I rowsort
SELECT DISTINCT + col0 * - cor0.col2 AS col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT col0 * - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL col2 * + cor0.col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT - col2 * + col2 * col2 FROM tab1 AS cor0
----
-157464
-185193
-884736
query I rowsort
SELECT ALL - col2 - - col2 AS col1 FROM tab0 WHERE col2 > - col0 + col1 * + col1
----
query I rowsort
SELECT ALL col0 + 40 AS col2 FROM tab1 AS cor0
----
104
120
43
query I rowsort
SELECT - col2 * + 48 FROM tab0 AS cor0
----
-1584
-3936
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-1620
SELECT + cor0.col2 DIV - 52 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-1620
SELECT + cor0.col2 / - 52 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col2 + col1 * + 25 FROM tab0 cor0
----
2183
2357
2426
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 AS col2 FROM tab0 cor0
----
1225
576
7921
query I rowsort
SELECT - - cor0.col1 * cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - cor0.col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT col1 + - ( - col1 * col0 ) FROM tab1 cor0
----
104
1053
650
query I rowsort
SELECT - - col1 + - 29 FROM tab1 AS cor0
----
-16
-19
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1627
SELECT ALL - col2 * - CAST( + col0 AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
skipif mysql # not compatible
query I rowsort label-1627
SELECT ALL - col2 * - CAST ( + col0 AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col1 + col2 * - cor0.col1 col0 FROM tab1 AS cor0
----
-1326
-208
70
query I rowsort
SELECT col1 - + tab1.col2 * col0 FROM tab1
----
-136
-3638
-7667
query I rowsort
SELECT - 18 + col1 FROM tab0
----
68
73
79
query I rowsort
SELECT 62 + + col2 AS col2 FROM tab2
----
100
88
89
query I rowsort
SELECT DISTINCT - col0 + - 20 * col2 AS col1 FROM tab0 AS cor0
----
-1729
-55
-684
query I rowsort
SELECT DISTINCT + col2 + - 55 AS col1 FROM tab0 AS cor0
----
-22
-54
27
query I rowsort
SELECT + cor0.col1 * 2 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT col2 * + 49 FROM tab0 cor0
----
1617
4018
49
query I rowsort
SELECT ALL + col1 + - 43 AS col0 FROM tab1 AS cor0
----
-17
-30
-33
query I rowsort
SELECT - + cor0.col1 * 24 FROM tab1 AS cor0
----
-240
-312
-624
query I rowsort
SELECT DISTINCT - cor0.col2 * - 50 * + 15 FROM tab2 cor0
----
19500
20250
28500
query I rowsort
SELECT col1 * - ( + col1 + col2 ) AS col0 FROM tab1 AS cor0
----
-1417
-2080
-670
query I rowsort
SELECT ALL + - 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT ALL - - col0 * col2 + 37 + - ( + col2 ) * ( col2 ) AS col2 FROM tab0 AS cor0
----
-260
611
71
query I rowsort
SELECT DISTINCT col2 - + col1 FROM tab2 WHERE NULL = + col2 * col0
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col2 > NULL
----
query I rowsort
SELECT - col0 + col0 * col1 AS col1 FROM tab2
----
1264
210
4524
query I rowsort
SELECT + cor0.col2 + + col1 * 87 FROM tab1 AS cor0
----
1227
2316
927
query I rowsort
SELECT ALL + 38 - col1 AS col0 FROM tab0 AS cor0
----
-48
-53
-59
query I rowsort
SELECT - cor0.col1 * + col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col0 * + col0 * - col1 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT + col1 * col1 * tab1.col0 + col1 - - col1 * col0 AS col2 FROM tab1 WHERE NOT NULL IN ( col1 * col2 )
----
query I rowsort
SELECT - col1 + col2 + - col1 AS col2 FROM tab1
----
2
37
70
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( col2 + - tab1.col2 )
----
query I rowsort
SELECT + col1 * + col1 + col2 + col2 * - col0 FROM tab0
----
1065
6637
9375
query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 AS col1 FROM tab2
----
1343
217
4602
query I rowsort
SELECT + tab0.col1 * col1 + + col0 FROM tab0
----
7420
8370
9444
onlyif mysql # use DIV operator for integer division
query I rowsort label-1655
SELECT DISTINCT + ( + col1 + col2 ) DIV + 64 AS col2 FROM tab2
----
0
1
skipif mysql # not compatible
query I rowsort label-1655
SELECT DISTINCT + ( + col1 + col2 ) / + 64 AS col2 FROM tab2
----
0
1
query I rowsort
SELECT 7 - + tab0.col1 * col0 AS col2 FROM tab0
----
-2057
-3388
-8092
onlyif mysql # use DIV operator for integer division
query I rowsort label-1657
SELECT - col2 DIV + col1 + col1 DIV - 58 FROM tab1
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1657
SELECT - col2 / + col1 + col1 / - 58 FROM tab1
----
-2
-5
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1658
SELECT ALL + col2 * + col2 + + CAST( col2 AS SIGNED ) * col1 DIV col1 + col1 FROM tab2 AS cor0
----
1499
761
787
skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL + col2 * + col2 + + CAST ( col2 AS INTEGER ) * col1 / col1 + col1 FROM tab2 AS cor0
----
1499
761
787
query I rowsort
SELECT ALL 63 * col1 AS col2 FROM tab0 AS cor0
----
5418
5733
6111
query I rowsort
SELECT + - 56 - - col0 * - col1 AS col1 FROM tab1 cor0
----
-1096
-134
-696
query I rowsort
SELECT col1 + + 12 FROM tab0 AS cor0
----
103
109
98
query I rowsort
SELECT + 53 + col1 FROM tab1 AS cor0
----
63
66
79
query I rowsort
SELECT col2 + - 86 AS col2 FROM tab2 cor0
----
-48
-59
-60
query I rowsort
SELECT cor0.col0 + ( - col2 ) - col2 * + cor0.col0 FROM tab2 AS cor0
----
-1976
-209
-2961
query I rowsort
SELECT + ( + col2 ) + cor0.col1 * + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
16320
36558
5757
query I rowsort
SELECT ALL + col1 + ( 45 ) AS col0 FROM tab0
----
131
136
142
query I rowsort
SELECT - ( + 86 ) * + col2 + col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-208
-2133
-266
query I rowsort
SELECT ALL - 40 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1669
SELECT - + col1 + - col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1669
SELECT - + col1 + - col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 53 * - 34 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b7abc1f3990a48f7c97e0984e88e5f4d
query I rowsort
SELECT ( - col0 ) + + ( col1 + col2 ) FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT DISTINCT + + ( cor0.col0 ) AS col1 FROM tab0 cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1673
SELECT cor0.col0 + col0 - + col1 DIV col1 FROM tab2 AS cor0
----
13
155
157
skipif mysql # not compatible
query I rowsort label-1673
SELECT cor0.col0 + col0 - + col1 / col1 FROM tab2 AS cor0
----
13
155
157
query I rowsort
SELECT ALL + - 25 * - 84 AS col2 FROM tab1 cor0
----
2100
2100
2100
query I rowsort
SELECT ALL + 38 * + col1 AS col2 FROM tab1 AS cor0
----
380
494
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 + - ( col2 ) col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - 69 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9
query I rowsort
SELECT + col2 + col2 * + col0 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT ALL - cor0.col0 + col1 * cor0.col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT ALL + + col1 + 81 + col2 FROM tab0 AS cor0
----
179
200
254
query I rowsort
SELECT ( cor0.col0 ) AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - 46 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d
query I rowsort
SELECT ALL - 96 + - col0 AS col1 FROM tab1 cor0
----
-160
-176
-99
query I rowsort
SELECT + + col1 * + 72 FROM tab0 AS cor0
----
6192
6552
6984
onlyif mysql # use DIV operator for integer division
query I rowsort label-1685
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / - cor0.col2 AS col1 FROM tab0 AS cor0
----
-1
-35
0
query I rowsort
SELECT DISTINCT - ( - ( + col1 ) ) + - col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + ( - 12 ) * col1 + 75 AS col1 FROM tab1 AS cor0
----
-237
-45
-81
query I rowsort
SELECT DISTINCT - ( col2 ) * + col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT + - 84 * col1 AS col2 FROM tab2 AS cor0
----
-1428
-2604
-4956
query I rowsort
SELECT col2 + col2 * - 10 FROM tab0 AS cor0
----
-297
-738
-9
query I rowsort
SELECT + - col0 * - 10 * - col1 FROM tab1 AS cor0
----
-10400
-6400
-780
query I rowsort
SELECT ALL col2 * - ( col2 * + col1 ) FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT DISTINCT + - col0 * col0 + + 54 + cor0.col1 FROM tab1 cor0
----
-4032
-6333
71
query I rowsort
SELECT DISTINCT - col0 * + col2 * col1 - col0 * 87 FROM tab0 AS cor0
----
-6440
-671861
-70200
query I rowsort
SELECT + col0 + 72 AS col2 FROM tab1 AS cor0
----
136
152
75
query I rowsort
SELECT - col0 * col2 * col0 AS col2 FROM tab2 AS cor0
----
-1323
-158184
-237158
query I rowsort
SELECT + + col2 * + ( - 63 * - col0 ) FROM tab1 AS cor0
----
10206
229824
483840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( - col2 ) col2 FROM tab0 AS cor0
----
-9
34
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col2 FROM tab0
----
15
15
15
query I rowsort
SELECT DISTINCT col2 * + cor0.col1 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + ( + col1 ) * - 57 FROM tab2 AS cor0
----
-1767
-3363
-969
query I rowsort
SELECT ALL 47 * col2 AS col0 FROM tab2 AS cor0
----
1222
1269
1786
onlyif mysql # use DIV operator for integer division
query I rowsort label-1703
SELECT DISTINCT - + ( col0 ) DIV - ( col0 * + col1 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1703
SELECT DISTINCT - + ( col0 ) / - ( col0 * + col1 ) FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-1704
SELECT - col0 DIV cor0.col1 col2 FROM tab2 cor0
----
-1
-4
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1704
SELECT - col0 / cor0.col1 col2 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT DISTINCT 57 + - col0 * - col2 AS col2 FROM tab1 cor0
----
219
3705
7737
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1706
SELECT col2 * col2 * CAST( NULL AS SIGNED ) + - 55 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1706
SELECT col2 * col2 * CAST ( NULL AS INTEGER ) + - 55 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + ( - 4 ) FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 39ed23475412c3cbba02ecdd2d7018e6
query I rowsort
SELECT 15 + col0 FROM tab1 AS cor0
----
18
79
95
query I rowsort
SELECT - 96 AS col1 FROM tab2 cor0
----
-96
-96
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 * col1 + - col0 * - cor0.col1 col2 FROM tab2 AS cor0
----
-620
3068
697
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 85 ) col1 FROM tab2 AS cor0
----
85
85
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1712
SELECT ALL CAST( cor0.col2 AS SIGNED ) DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL CAST ( cor0.col2 AS INTEGER ) / + cor0.col2 AS col0 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT + 98 + cor0.col2 * cor0.col2 AS col0 FROM tab1 AS cor0
----
3014
3347
9314
query I rowsort
SELECT DISTINCT 30 AS col1 FROM tab0 cor0
----
30
query I rowsort
SELECT DISTINCT - 1 + cor0.col1 AS col2 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT ALL + col1 * col2 + - 42 * + col2 AS col1 FROM tab0
----
1452
4018
55
query I rowsort
SELECT DISTINCT 87 FROM tab0, tab0 cor0, tab1, tab1 AS cor1
----
87
query I rowsort
SELECT col0 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + + ( col0 ) + - cor0.col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-1720
SELECT DISTINCT + + col2 * + cor0.col2 + + cor0.col1 DIV col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT + + col2 * + cor0.col2 + + cor0.col1 / col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1721
SELECT + CAST( + 29 AS SIGNED ) + cor0.col1 AS col1 FROM tab2 cor0
----
46
60
88
skipif mysql # not compatible
query I rowsort label-1721
SELECT + CAST ( + 29 AS INTEGER ) + cor0.col1 AS col1 FROM tab2 cor0
----
46
60
88
query I rowsort
SELECT + col1 + col1 * + col2 * col2 FROM tab1 AS cor0
----
119821
32500
75842
query I rowsort
SELECT DISTINCT + 97 + + col1 FROM tab1 AS cor0
----
107
110
123
query I rowsort
SELECT DISTINCT - ( - col1 ) + col0 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-1725
SELECT ALL - 71 + - col2 DIV cor0.col2 + cor0.col2 * col2 FROM tab1 cor0
----
2844
3177
9144
skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - 71 + - col2 / cor0.col2 + cor0.col2 * col2 FROM tab1 cor0
----
2844
3177
9144
onlyif mysql # use DIV operator for integer division
query I rowsort label-1726
SELECT - - 55 + - 40 DIV - cor0.col0 AS col2 FROM tab1 AS cor0
----
55
55
68
skipif mysql # not compatible
query I rowsort label-1726
SELECT - - 55 + - 40 / - cor0.col0 AS col2 FROM tab1 AS cor0
----
55
55
68
query I rowsort
SELECT ALL + 82 + col1 * col1 AS col1 FROM tab0 AS cor0
----
7478
8363
9491
onlyif mysql # use DIV operator for integer division
query I rowsort label-1728
SELECT ALL + col1 + + col0 DIV + col2 col1 FROM tab1 AS cor0
----
11
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-1728
SELECT ALL + col1 + + col0 / + col2 col1 FROM tab1 AS cor0
----
11
13
26
query I rowsort
SELECT DISTINCT + ( + col1 ) + col1 * - col0 * - col2 FROM tab1 AS cor0
----
36490
4238
99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-1730
SELECT DISTINCT + col1 DIV - ( + col0 * - col0 ) AS col2 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1730
SELECT DISTINCT + col1 / - ( + col0 * - col0 ) AS col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ( 77 ) + col1 AS col0 FROM tab1
----
103
87
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 col2 FROM tab2, tab2 cor0
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342
query I rowsort
SELECT ALL - + col1 * + col2 + + col0 * + 70 FROM tab0 AS cor0
----
-1158
-1232
2353
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1734
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col2 + + col0 * - col2 FROM tab2 AS cor0
----
-1352
-1558
540
skipif mysql # not compatible
query I rowsort label-1734
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col2 + + col0 * - col2 FROM tab2 AS cor0
----
-1352
-1558
540
query I rowsort
SELECT col0 + + ( col0 ) * ( col2 ) FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1736
SELECT DISTINCT - CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT - CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
-7
-78
-79
query I rowsort
SELECT ( - 42 ) FROM tab0
----
-42
-42
-42
query I rowsort
SELECT ALL + col1 * - ( cor0.col0 ) * col2 + - col0 FROM tab0 AS cor0
----
-3430
-664207
-68136
query I rowsort
SELECT DISTINCT cor0.col2 * col2 * cor0.col2 + + col0 AS col2 FROM tab0 cor0
----
35961
36
551457
query I rowsort
SELECT ALL + col2 * col1 - - 76 FROM tab0 AS cor0
----
173
2914
7538
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * col1 col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col2 * ( + col2 ) + col2 col0 FROM tab0 AS cor0
----
-95
1036
6715
query I rowsort
SELECT + col1 + - col2 * 94 AS col2 FROM tab0 AS cor0
----
-3016
-7617
3
query I rowsort
SELECT DISTINCT - tab2.col1 * col2 + - col2 AS col2 FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT + + col2 + + ( - cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - col0 * col1 + col0 AS col1 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT - + col1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - col2 * + col2 + 30 * - col0 FROM tab2 AS cor0
----
-3016
-3814
-939
query I rowsort
SELECT ALL + col1 + 72 * + col0 FROM tab0
----
1814
2617
6499
query I rowsort
SELECT col0 + col0 - - 82 AS col1 FROM tab2 AS cor0
----
238
240
96
query I rowsort
SELECT - col2 + col1 * col1 AS col2 FROM tab2 AS cor0
----
251
3455
934
query I rowsort
SELECT DISTINCT - - col0 * col0 * - 84 FROM tab2 AS cor0
----
-4116
-511056
-524244
query I rowsort
SELECT + col2 * + col1 * + col2 + - col1 - 66 * 0 AS col0 FROM tab1 AS cor0
----
119795
32480
75790
query I rowsort
SELECT cor0.col0 + - col1 - + col0 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT + - col1 * 44 + col1 FROM tab1 AS cor0
----
-1118
-430
-559
query I rowsort
SELECT ALL + col2 * + ( - col2 * + col0 ) FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT cor0.col2 * col0 + - col2 AS col0 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT + 69 * - col1 AS col1 FROM tab0 AS cor0
----
-5934
-6279
-6693
query I rowsort
SELECT + ( + ( + col0 ) ) AS col0 FROM tab2 cor0
----
7
78
79
query I rowsort
SELECT - ( col1 ) + - cor0.col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + col1 * 51 FROM tab2 AS cor0
----
1581
3009
867
query I rowsort
SELECT ALL 42 AS col0 FROM tab2 AS cor0
----
42
42
42
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * col2 + - cor0.col2 col1 FROM tab1 AS cor0
----
-2916
-3078
-5184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * - col0 + + 81 col2 FROM tab2 AS cor0
----
1424
298
4683
query I rowsort
SELECT DISTINCT + col1 * col0 + ( - col2 ) + col0 AS col0 FROM tab2 AS cor0
----
1384
197
4654
query I rowsort
SELECT col0 + + col1 * - 77 AS col2 FROM tab1 AS cor0
----
-1999
-706
-921
onlyif mysql # use DIV operator for integer division
query I rowsort label-1767
SELECT + - cor0.col2 DIV col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-1767
SELECT + - cor0.col2 / col1 AS col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT - ( - col1 ) * + ( col1 ) FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT - 32 * + col2 FROM tab1 AS cor0
----
-1728
-1824
-3072
query I rowsort
SELECT + + cor0.col1 + ( cor0.col0 + col1 ) FROM tab2 AS cor0
----
113
196
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-1771
SELECT + col2 * + col1 + + col0 DIV cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-1771
SELECT + col2 * + col1 + + col0 / cor0.col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT - col0 + - 18 FROM tab2 cor0
----
-25
-96
-97
query I rowsort
SELECT - + 14 * + cor0.col1 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 0dbc7fa35f58dcd884d0d48d75ba2937
onlyif mysql # use DIV operator for integer division
query I rowsort label-1774
SELECT + col2 DIV col0 + - 0 AS col0 FROM tab0 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-1774
SELECT + col2 / col0 + - 0 AS col0 FROM tab0 AS cor0
----
0
0
1
query I rowsort
SELECT DISTINCT - 30 + col2 FROM tab0
----
-29
3
52
query I rowsort
SELECT - cor0.col2 + + 77 FROM tab1 cor0
----
-19
20
23
query I rowsort
SELECT ALL + + 81 + col1 AS col2 FROM tab0 AS cor0
----
167
172
178
query I rowsort
SELECT ALL - col1 + 78 * cor0.col2 FROM tab0 AS cor0
----
-19
2488
6305
query I rowsort
SELECT - + 22 * + 74 + col1 * 14 FROM tab1 AS cor0
----
-1264
-1446
-1488
onlyif mysql # use DIV operator for integer division
query I rowsort label-1780
SELECT - - cor0.col0 + col0 + col0 DIV 20 FROM tab2 AS cor0
----
14
159
161
skipif mysql # not compatible
query I rowsort label-1780
SELECT - - cor0.col0 + col0 + col0 / 20 FROM tab2 AS cor0
----
14
159
161
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1781
SELECT ALL + CAST( NULL AS SIGNED ) * + ( tab1.col0 + 70 ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL + CAST ( NULL AS INTEGER ) * + ( tab1.col0 + 70 ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + ( tab2.col2 ) + 5 * cor0.col1 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to ce6774d44db32b7523dd246ca24d1d80
query I rowsort
SELECT col1 + 73 FROM tab2
----
104
132
90
query I rowsort
SELECT + col2 * tab1.col2 * col1 + col1 FROM tab1
----
119821
32500
75842
query I rowsort
SELECT ( - col0 * col0 ) FROM tab1
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col1 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-1787
SELECT ALL - tab1.col2 DIV - col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-1787
SELECT ALL - tab1.col2 / - col2 FROM tab1
----
1
1
1
query I rowsort
SELECT cor0.col0 * col2 + ( - 72 ) AS col1 FROM tab0 AS cor0
----
-37
720
7226
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1789
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1789
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + tab1.col0 + - cor0.col0 FROM tab1, tab2 AS cor0, tab2, tab0 cor1
----
9 values hashing to 082e660fdb43b4559ee4c78f197723a3
query I rowsort
SELECT ALL - col2 * - col2 - ( 79 ) FROM tab1 AS cor0
----
2837
3170
9137
query I rowsort
SELECT ALL + col1 * col2 - - 23 AS col2 FROM tab0 AS cor0
----
120
2861
7485
onlyif mysql # use DIV operator for integer division
query I rowsort label-1793
SELECT DISTINCT - col2 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-1793
SELECT DISTINCT - col2 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 57 * col1 AS col1 FROM tab2
----
1767
3363
969
query I rowsort
SELECT + ( + col0 ) - - ( col1 ) AS col2 FROM tab1
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 * tab0.col1 col0 FROM tab0
----
-2064
-3395
-8099
query I rowsort
SELECT col0 * ( 17 ) AS col2 FROM tab2
----
119
1326
1343
query I rowsort
SELECT col0 * + col0 + col1 FROM tab1 AS cor0
----
35
4106
6413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT ( - col0 ) * + col1 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT - ( col2 ) + cor0.col0 AS col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT - cor0.col2 * - 13 * col2 + - cor0.col0 FROM tab0 cor0
----
-22
14133
87323
query I rowsort
SELECT DISTINCT - - 35 + col0 * - col2 AS col2 FROM tab2 AS cor0
----
-154
-1993
-2967
query I rowsort
SELECT DISTINCT + col2 + col1 - col2 * + ( col0 ) FROM tab1 cor0
----
-3581
-7571
-82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1805
SELECT + CAST( - 6 AS SIGNED ) * col2 AS col2 FROM tab0 cor0
----
-198
-492
-6
skipif mysql # not compatible
query I rowsort label-1805
SELECT + CAST ( - 6 AS INTEGER ) * col2 AS col2 FROM tab0 cor0
----
-198
-492
-6
query I rowsort
SELECT - + col2 + - 26 AS col2 FROM tab1 AS cor0
----
-122
-80
-83
query I rowsort
SELECT DISTINCT - cor0.col1 * ( + 29 ) + + cor0.col1 + 37 AS col1 FROM tab1 cor0
----
-243
-327
-691
query I rowsort
SELECT - col2 * + col0 * - 43 + col0 AS col0 FROM tab2
----
129165
8134
87282
query I rowsort
SELECT col1 * - col2 + + 91 * - col2 AS col2 FROM tab1
----
-5757
-6318
-9984
onlyif mysql # use DIV operator for integer division
query I rowsort label-1810
SELECT + col2 + - cor0.col0 DIV 84 AS col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-1810
SELECT + col2 + - cor0.col0 / 84 AS col2 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT DISTINCT col1 + + cor0.col2 + col1 FROM tab2 AS cor0
----
144
72
89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1812
SELECT ALL + col0 * CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + col0 * CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT ALL - - col0 + col1 * + cor0.col1 * - col0 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT DISTINCT + col2 * - 93 FROM tab2 AS cor0
----
-2418
-2511
-3534
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1815
SELECT - - col2 * + CAST( NULL AS SIGNED ) + - col0 + col0 * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1815
SELECT - - col2 * + CAST ( NULL AS INTEGER ) + - col0 + col0 * col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 * 27 FROM tab1 cor0
----
270
351
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col0 ) col1 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT col1 + - col0 * + col1 FROM tab2 AS cor0
----
-1326
-186
-4543
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 * 57 col1 FROM tab1 AS cor0
----
3078
3249
5472
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 52 ) col0 FROM tab2 AS cor0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT - col0 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT ALL - ( ( - col2 ) ) AS col1 FROM tab0 cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-1823
SELECT + ( cor0.col1 ) DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-1823
SELECT + ( cor0.col1 ) / cor0.col0 AS col1 FROM tab0 AS cor0
----
1
2
3
query I rowsort
SELECT ALL - - ( col1 ) * col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT + col1 * 29 FROM tab0
----
2494
2639
2813
query I rowsort
SELECT col2 * + col2 + tab2.col1 AS col1 FROM tab2
----
1461
735
760
query I rowsort
SELECT - 95 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT col0 * tab1.col1 - + col2 AS col1 FROM tab1
----
24
583
944
onlyif mysql # use DIV operator for integer division
query I rowsort label-1829
SELECT + + col2 DIV + cor0.col1 + 90 AS col2 FROM tab1 AS cor0
----
92
95
97
skipif mysql # not compatible
query I rowsort label-1829
SELECT + + col2 / + cor0.col1 + 90 AS col2 FROM tab1 AS cor0
----
92
95
97
query I rowsort
SELECT ( + col2 ) * + col1 - col1 * col0 FROM tab1 AS cor0
----
-70
1326
208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT ALL + - 3 * - col1 AS col2 FROM tab2 AS cor0
----
177
51
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 col2 FROM tab0 AS cor0
----
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col2 col2 FROM tab0 cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1835
SELECT ALL + - ( col2 ) + + CAST( ( col0 ) AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
-25
-3
17
skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL + - ( col2 ) + + CAST ( ( col0 ) AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
-25
-3
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-1836
SELECT DISTINCT - - col1 DIV col1 + col0 * - 20 AS col1 FROM tab1 AS cor0
----
-1279
-1599
-59
skipif mysql # not compatible
query I rowsort label-1836
SELECT DISTINCT - - col1 / col1 + col0 * - 20 AS col1 FROM tab1 AS cor0
----
-1279
-1599
-59
query I rowsort
SELECT + 51 + + col2 * 77 FROM tab1 AS cor0
----
4209
4440
7443
query I rowsort
SELECT - tab0.col0 + col1 + col1 * col2 AS col2 FROM tab0
----
159
2900
7464
onlyif mysql # use DIV operator for integer division
query I rowsort label-1839
SELECT col2 + 42 DIV col2 FROM tab0
----
34
43
82
skipif mysql # not compatible
query I rowsort label-1839
SELECT col2 + 42 / col2 FROM tab0
----
34
43
82
query I rowsort
SELECT ALL + col0 - + 84 AS col0 FROM tab2
----
-5
-6
-77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col0 * col1 col1 FROM tab0
----
156170
372554
94944
query I rowsort
SELECT DISTINCT + col1 + + col0 * 54 FROM tab2
----
409
4271
4283
onlyif mysql # use DIV operator for integer division
query I rowsort label-1843
SELECT + col1 * - col0 + CAST( + col0 AS SIGNED ) DIV + col1 + cor0.col0 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-1843
SELECT + col1 * - col0 + CAST ( + col0 AS INTEGER ) / + col1 + cor0.col0 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-2063
-3394
-8098
query I rowsort
SELECT ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1845
SELECT - 64 + + cor0.col2 DIV 61 + - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
106
36
612
skipif mysql # not compatible
query I rowsort label-1845
SELECT - 64 + + cor0.col2 / 61 + - col1 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
106
36
612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1846
SELECT ALL - tab0.col2 + col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL - tab0.col2 + col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * - col0 + + col0 AS col0 FROM tab2
----
-42
-6006
-6162
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1848
SELECT + + col0 + CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-1848
SELECT + + col0 + CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT 99 + col1 AS col1 FROM tab0
----
185
190
196
query I rowsort
SELECT - col2 + - col1 * + 17 + + col1 AS col2 FROM tab2
----
-310
-523
-970
query I rowsort
SELECT ALL - col2 + col1 * + col1 * 25 FROM tab1
----
16846
2443
4129
query I rowsort
SELECT ALL - col1 * ( + col2 ) AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + col2 * + col1 + col1 * col0 * ( col1 * col0 ) + col2 FROM tab0 AS cor0
----
11526123
4262967
65601345
query I rowsort
SELECT DISTINCT - col1 * 77 + col1 FROM tab0 AS cor0
----
-6536
-6916
-7372
query I rowsort
SELECT col1 + - ( col2 * + cor0.col2 ) FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT + - cor0.col1 * col2 * 69 + - col2 FROM tab0 cor0
----
-195855
-514960
-6694
query I rowsort
SELECT DISTINCT - - col0 + 93 FROM tab0 AS cor0
----
117
128
182
query I rowsort
SELECT + col1 * col0 + + cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
-620
3068
697
query I rowsort
SELECT - col2 + cor0.col2 * ( col0 ) FROM tab0 cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-1860
SELECT DISTINCT - + col0 DIV - col1 + + col1 AS col2 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-1860
SELECT DISTINCT - + col0 / - col1 + + col1 AS col2 FROM tab1 AS cor0
----
16
19
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-1861
SELECT DISTINCT col1 DIV - 27 FROM tab0
----
-3
skipif mysql # not compatible
query I rowsort label-1861
SELECT DISTINCT col1 / - 27 FROM tab0
----
-3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1862
SELECT CAST( NULL AS SIGNED ) + + col0 * + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1862
SELECT CAST ( NULL AS INTEGER ) + + col0 * + col2 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1863
SELECT - CAST( 68 AS SIGNED ) FROM tab0 AS cor0
----
-68
-68
-68
skipif mysql # not compatible
query I rowsort label-1863
SELECT - CAST ( 68 AS INTEGER ) FROM tab0 AS cor0
----
-68
-68
-68
query I rowsort
SELECT ALL ( col1 ) * col0 * ( cor0.col1 ) FROM tab2 AS cor0
----
22831
271518
6727
query I rowsort
SELECT ALL - ( ( - col1 ) ) + col1 * + 58 AS col2 FROM tab0 AS cor0
----
5074
5369
5723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 10 col0 FROM tab2 AS cor0
----
17
88
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-1867
SELECT ALL 79 DIV - col2 FROM tab0 AS cor0
----
-2
-79
0
skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL 79 / - col2 FROM tab0 AS cor0
----
-2
-79
0
query I rowsort
SELECT DISTINCT - 65 + 30 AS col2 FROM tab2 AS cor0
----
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-1869
SELECT ALL + ( - 35 ) + col1 DIV - col0 AS col0 FROM tab2 cor0
----
-35
-35
-39
skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + ( - 35 ) + col1 / - col0 AS col0 FROM tab2 cor0
----
-35
-35
-39
query I rowsort
SELECT + 33 * col0 AS col2 FROM tab0 AS cor0
----
1155
2937
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-1871
SELECT ALL - CAST( + col2 AS SIGNED ) + - cor0.col1 DIV ( - col0 + - col0 * + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-1871
SELECT ALL - CAST ( + col2 AS INTEGER ) + - cor0.col1 / ( - col0 + - col0 * + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - 36 + 34 - col0 * cor0.col2 FROM tab2 AS cor0
----
-191
-2030
-3004
query I rowsort
SELECT DISTINCT 18 + - col2 FROM tab0 AS cor0
----
-15
-64
17
query I rowsort
SELECT + - 69 AS col1 FROM tab2 AS cor0
----
-69
-69
-69
query I rowsort
SELECT ALL - 7 * ( col1 ) + + col2 FROM tab0 AS cor0
----
-555
-569
-678
query I rowsort
SELECT DISTINCT + ( col0 ) + col2 AS col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 * col2 col2 FROM tab0 AS cor0
----
1914
4756
58
query I rowsort
SELECT col1 + col1 * 24 AS col2 FROM tab0 AS cor0
----
2150
2275
2425
query I rowsort
SELECT + col2 + cor0.col2 * - 83 AS col2 FROM tab1 AS cor0
----
-4428
-4674
-7872
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1880
SELECT CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-1880
SELECT CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT ALL - 82 AS col1 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to ce62f59690969f4492d78eb57c3181f0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * cor0.col1 col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1883
SELECT ALL - CAST( NULL AS DECIMAL ) + + 95 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL - CAST ( NULL AS REAL ) + + 95 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT cor0.col1 + 87 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 2c9d8cba61202bbb0b5d84fa59bf1a4c
query I rowsort
SELECT DISTINCT + - 42 + col2 FROM tab2 AS cor0
----
-15
-16
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + cor0.col0 col2 FROM tab1 cor0
----
-16
-51
7
query I rowsort
SELECT + 54 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 81150d59d6c3fc48b4ef5a4a5495bc7a
query I rowsort
SELECT + 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT ( col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 col1 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT - 76 + 34 AS col2 FROM tab0, tab0 AS cor0
----
-42
query I rowsort
SELECT + col1 - - 70 AS col0 FROM tab2 cor0
----
101
129
87
query I rowsort
SELECT - col0 + - ( - 14 + col2 ) AS col2 FROM tab2 cor0
----
-103
-20
-90
query I rowsort
SELECT DISTINCT + col0 + ( - cor0.col2 ) AS col2 FROM tab2 AS cor0
----
-20
41
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-1895
SELECT ALL - - cor0.col0 * col0 DIV - col2 FROM tab0 AS cor0
----
-1225
-17
-96
skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - - cor0.col0 * col0 / - col2 FROM tab0 AS cor0
----
-1225
-17
-96
query I rowsort
SELECT + + cor0.col0 * + col0 + 46 AS col1 FROM tab0 AS cor0
----
1271
622
7967
query I rowsort
SELECT + col0 + 38 AS col0 FROM tab1 AS cor0
----
102
118
41
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1898
SELECT - col0 * CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1898
SELECT - col0 * CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT NULL >= cor0.col1
----
query I rowsort
SELECT - cor0.col0 + + 83 * col0 FROM tab0 AS cor0
----
1968
2870
7298
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-1902
SELECT + - col1 DIV 48 AS col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-1902
SELECT + - col1 / 48 AS col1 FROM tab2 AS cor0
----
-1
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1903
SELECT CAST( NULL AS SIGNED ) * ( cor0.col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1903
SELECT CAST ( NULL AS INTEGER ) * ( cor0.col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 80 + col2 col0 FROM tab0 AS cor0
----
-1887
-2799
-7038
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1905
SELECT ( col2 ) + col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1905
SELECT ( col2 ) + col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1906
SELECT DISTINCT - - CAST( + 74 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
74
skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT - - CAST ( + 74 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
74
query I rowsort
SELECT ALL + ( 42 ) AS col2 FROM tab2 AS cor0
----
42
42
42
query I rowsort
SELECT + 3 + - col0 FROM tab2 AS cor0
----
-4
-75
-76
onlyif mysql # use DIV operator for integer division
query I rowsort label-1909
SELECT + col0 DIV cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-1909
SELECT + col0 / cor0.col1 + cor0.col2 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT + ( - 79 ) * - col1 FROM tab2 cor0
----
1343
2449
4661
query I rowsort
SELECT 88 * col0 AS col1 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT DISTINCT - col1 * 44 FROM tab0 cor0
----
-3784
-4004
-4268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 90 ) * col1 col2 FROM tab2 cor0
----
-1530
-2790
-5310
query I rowsort
SELECT ALL + ( - col2 ) AS col0 FROM tab0 cor0
----
-1
-33
-82
query I rowsort
SELECT ALL + 75 FROM tab1, tab1 AS cor0, tab2 cor1
----
27 values hashing to e61b59795204c348103a58c0a8e4ce16
onlyif mysql # use DIV operator for integer division
query I rowsort label-1916
SELECT DISTINCT + 33 * + col1 DIV - col1 FROM tab1 AS cor0
----
-33
skipif mysql # not compatible
query I rowsort label-1916
SELECT DISTINCT + 33 * + col1 / - col1 FROM tab1 AS cor0
----
-33
onlyif mysql # use DIV operator for integer division
query I rowsort label-1917
SELECT - + col2 + + cor0.col1 DIV + col2 + - 99 * + col0 FROM tab0 AS cor0
----
-2407
-3369
-8892
skipif mysql # not compatible
query I rowsort label-1917
SELECT - + col2 + + cor0.col1 / + col2 + - 99 * + col0 FROM tab0 AS cor0
----
-2407
-3369
-8892
query I rowsort
SELECT ALL - col0 + - col2 * 7 FROM tab0 cor0
----
-255
-42
-663
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-1919
SELECT - + cor0.col2 / col1 + - CAST( NULL AS SIGNED ) * col1 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-1919
SELECT - + cor0.col2 / col1 + - CAST ( NULL AS INTEGER ) * col1 * - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab1 cor1, tab0, tab0 cor2
----
3645 values hashing to 8db0cc6df185b737ff75d2626a6d198b
skipif mysql # not compatible
query I rowsort
SELECT CAST ( 99 AS REAL ) AS col0 FROM tab2
----
99
99
99
query I rowsort
SELECT - 93 AS col0 FROM tab1, tab1 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to 373608b5054d92c1128be0c71db4d4ed
query I rowsort
SELECT ALL + - col2 * col1 + + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT + 48 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b
query I rowsort
SELECT DISTINCT - col2 * ( + col2 * + col1 ) AS col0 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT + col0 * col1 - - 86 * tab0.col1 AS col1 FROM tab0
----
11737
15925
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-1927
SELECT - col1 + ( col0 ) DIV - col0 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
skipif mysql # not compatible
query I rowsort label-1927
SELECT - col1 + ( col0 ) / - col0 AS col1 FROM tab1 AS cor0
----
-11
-14
-27
query I rowsort
SELECT ALL col2 - col1 AS col2 FROM tab1
----
28
47
83
query I rowsort
SELECT DISTINCT - col1 - + ( col2 ) * col2 AS col1 FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - col1 * + col2 - col2 FROM tab2
----
-1560
-684
-864
onlyif mysql # use DIV operator for integer division
query I rowsort label-1931
SELECT col0 + col1 DIV + col1 - - col1 AS col0 FROM tab1
----
30
75
94
skipif mysql # not compatible
query I rowsort label-1931
SELECT col0 + col1 / + col1 - - col1 AS col0 FROM tab1
----
30
75
94
query I rowsort
SELECT ALL col0 + + col2 * col0 * + col1 AS col0 FROM tab2 AS cor0
----
119730
51113
5866
query I rowsort
SELECT - - col2 * + col1 - col2 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # use DIV operator for integer division
query I rowsort label-1934
SELECT ALL + + col2 - col0 DIV + col0 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-1934
SELECT ALL + + col2 - col0 / + col0 FROM tab1 AS cor0
----
53
56
95
query I rowsort
SELECT - col1 * cor0.col0 * cor0.col0 + col1 FROM tab0 AS cor0
----
-118728
-49450
-720720
query I rowsort
SELECT DISTINCT + + col0 + - cor0.col2 + col2 FROM tab0 AS cor0
----
24
35
89
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL < NULL
----
query I rowsort
SELECT + - cor0.col2 + + col0 AS col1 FROM tab0 AS cor0
----
-9
34
7
query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + cor0.col1
----
query I rowsort
SELECT DISTINCT - col1 - - cor0.col2 FROM tab1 AS cor0
----
28
47
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col1 * - col0 + col1 col0 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + tab0.col1 - - tab0.col1 FROM tab0
----
172
182
194
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 NOT IN ( col0 )
----
query I rowsort
SELECT col1 + - col0 * col1 * - cor0.col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT ALL col0 * + col1 + cor0.col2 * col2 * - col2 AS col2 FROM tab1 AS cor0
----
-157386
-184553
-883696
query I rowsort
SELECT - tab2.col1 + + col2 * tab2.col1 FROM tab2
----
1475
629
806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1947
SELECT tab1.col1 + tab1.col2 DIV + col0 AS col2 FROM tab1
----
10
14
44
skipif mysql # not compatible
query I rowsort label-1947
SELECT tab1.col1 + tab1.col2 / + col0 AS col2 FROM tab1
----
10
14
44
query I rowsort
SELECT DISTINCT - - cor0.col2 * + col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + + col0 + col1 * col0 AS col1 FROM tab1 cor0
----
1120
704
81
query I rowsort
SELECT - col2 + col1 + + cor0.col2 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - + col1 - + col0 * - col0 AS col2 FROM tab1 AS cor0
----
-17
4086
6387
query I rowsort
SELECT DISTINCT + col0 * - cor0.col1 + col1 * col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IN ( - col2 ) OR NOT col2 * + col0 >= ( col1 + + col1 * col1 * + col2 + col1 )
----
-1054
-1121
744
query I rowsort
SELECT DISTINCT + col0 + cor0.col2 * col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - + col1 - col2 * cor0.col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - col0 + tab0.col0 + + col0 FROM tab0
----
24
35
89
query I rowsort
SELECT col1 * - col0 + + col1 + col0 AS col1 FROM tab1
----
-49
-566
-947
query I rowsort
SELECT + col0 + col0 - col2 * tab0.col0 FROM tab0
----
-7120
-744
35
query I rowsort
SELECT col1 * + col1 + + col0 AS col0 FROM tab1
----
164
249
679
query I rowsort
SELECT - - col0 + col2 * - 21 AS col2 FROM tab0 AS cor0
----
-1633
-669
14
query I rowsort
SELECT ( col0 ) * ( ( col1 ) ) AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT ALL tab1.col1 FROM tab1 WHERE - col1 * col2 * + col0 NOT IN ( col0 )
----
10
13
26
query I rowsort
SELECT - 95 AS col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to cf302b83f15b730fe35c19bdd9363c13
query I rowsort
SELECT ALL 34 + col0 AS col2 FROM tab0
----
123
58
69
query I rowsort
SELECT - 59 * + col2 * - 36 FROM tab2
----
55224
57348
80712
query I rowsort
SELECT col2 + 84 AS col2 FROM tab0 AS cor0
----
117
166
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-1966
SELECT + cor0.col0 * - 36 + 8 DIV col0 AS col2 FROM tab2 AS cor0
----
-251
-2808
-2844
skipif mysql # not compatible
query I rowsort label-1966
SELECT + cor0.col0 * - 36 + 8 / col0 AS col2 FROM tab2 AS cor0
----
-251
-2808
-2844
query I rowsort
SELECT DISTINCT - 29 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
-29
query I rowsort
SELECT ALL + tab2.col2 * col1 + ( 56 ) FROM tab2
----
1590
702
893
query I rowsort
SELECT ALL col2 * - col2 - col2 FROM tab0
----
-1122
-2
-6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-1970
SELECT ALL + tab2.col0 * + col1 + - tab2.col1 DIV + col1 AS col0 FROM tab2
----
1342
216
4601
skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL + tab2.col0 * + col1 + - tab2.col1 / + col1 AS col0 FROM tab2
----
1342
216
4601
query I rowsort
SELECT DISTINCT - col0 * col0 * col1 AS col2 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT - tab2.col0 * tab2.col0 FROM tab2
----
-49
-6084
-6241
query III rowsort
SELECT * FROM tab1 WHERE - col0 > ( col1 )
----
query I rowsort
SELECT DISTINCT - tab1.col2 * + col0 + col1 FROM tab1
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab2 WHERE col0 NOT BETWEEN - col0 AND - col0
----
7
78
79
query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND - col2
----
query I rowsort
SELECT + col2 + - col0 * + tab1.col0 FROM tab1
----
-4039
-6304
45
query I rowsort
SELECT ALL - col0 * - col2 - - col1 * col2 FROM tab0
----
132
14760
3630
query III rowsort
SELECT * FROM tab1 WHERE col2 / - col1 IN ( col2 * col2 + - col1 )
----
query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + col1 * - col1 + col1
----
query III rowsort
SELECT * FROM tab0 WHERE - col0 * col1 IN ( col0 )
----
query I rowsort
SELECT - + cor0.col0 * - cor0.col2 + col2 AS col0 FROM tab1 cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-1983
SELECT DISTINCT col1 * col0 DIV 38 FROM tab2
----
121
35
5
skipif mysql # not compatible
query I rowsort label-1983
SELECT DISTINCT col1 * col0 / 38 FROM tab2
----
121
35
5
query I rowsort
SELECT + col2 + + col1 AS col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT - col2 * col0 * + ( tab1.col0 * col2 ) FROM tab1
----
-13307904
-26244
-58982400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 15 ) col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2
query I rowsort
SELECT 28 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97
query I rowsort
SELECT - + col2 + col0 + - ( - cor0.col0 + 84 ) FROM tab1 AS cor0
----
-13
-132
-20
query I rowsort
SELECT - - col2 * - 48 + + col0 * col2 * + ( 72 ) + - col0 AS col1 FROM tab2 AS cor0
----
12305
144690
214241
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 cor0 CROSS JOIN tab2 cor1
----
243 values hashing to 60bd71ee2159222231bb3b5819bc5dca
query I rowsort
SELECT DISTINCT + 33 + - col0 * col0 AS col2 FROM tab0
----
-1192
-543
-7888
query I rowsort
SELECT DISTINCT + 37 * + col2 + col0 FROM tab0 cor0
----
1245
3123
72
query I rowsort
SELECT + ( + cor0.col2 ) AS col1 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL - ( col1 ) - + cor0.col1 * col2 AS col0 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT ALL - ( col1 ) * cor0.col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL col0 - 56 * col0 AS col0 FROM tab2 AS cor0
----
-385
-4290
-4345
onlyif mysql # use DIV operator for integer division
query I rowsort label-1997
SELECT ALL - col0 + - col2 DIV col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL - col0 + - col2 / col1 AS col1 FROM tab2 AS cor0
----
-7
-78
-81
query I rowsort
SELECT + 21 + - col2 AS col1 FROM tab0 AS cor0
----
-12
-61
20
query I rowsort
SELECT ALL + 52 AS col0 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 76100d10f51995d20efdeb657e444d3c
query I rowsort
SELECT DISTINCT tab1.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
54
57
96
query I rowsort
SELECT col0 * col1 * + col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - cor0.col1 * col1 + + col2 AS col1 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT 64 - col0 FROM tab1
----
-16
0
61
query I rowsort
SELECT + 72 + - col1 FROM tab2
----
13
41
55
query I rowsort
SELECT ALL + - 10 AS col1 FROM tab0 AS cor0
----
-10
-10
-10
query I rowsort
SELECT DISTINCT col2 + - col2 * - ( + col1 + - cor0.col2 ) FROM tab0 cor0
----
1782
820
97
query I rowsort
SELECT + ( - col2 ) * + 83 - col2 FROM tab1 AS cor0
----
-4536
-4788
-8064
onlyif mysql # use DIV operator for integer division
query I rowsort label-2008
SELECT col2 DIV col2 - - col2 col1 FROM tab0 cor0
----
2
34
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2008
SELECT col2 / col2 - - col2 col1 FROM tab0 cor0
----
2
34
83
query I rowsort
SELECT ALL + col1 * - col2 * - col1 AS col0 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT col1 + + 2 + col0 FROM tab1 AS cor0
----
31
76
95
query I rowsort
SELECT DISTINCT - - cor0.col0 * + cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2012
SELECT ALL - cor0.col0 * col1 * ( + col0 ) + CAST( col0 AS SIGNED ) * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1425780
-161700
-63360
skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - cor0.col0 * col1 * ( + col0 ) + CAST ( col0 AS INTEGER ) * col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1425780
-161700
-63360
query I rowsort
SELECT ALL - col0 * col1 + + 83 * + col2 AS col1 FROM tab1 AS cor0
----
4091
4404
6928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2014
SELECT CAST( NULL AS DECIMAL ) * + col2 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-2014
SELECT CAST ( NULL AS REAL ) * + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( cor0.col1 ) col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2016
SELECT CAST( + ( col0 ) AS SIGNED ) * + ( col0 ) + - col1 AS col1 FROM tab0
----
1128
490
7830
skipif mysql # not compatible
query I rowsort label-2016
SELECT CAST ( + ( col0 ) AS INTEGER ) * + ( col0 ) + - col1 AS col1 FROM tab0
----
1128
490
7830
query I rowsort
SELECT - 84 * + 40 AS col0 FROM tab0 AS cor0
----
-3360
-3360
-3360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + - 66 col0 FROM tab2 AS cor0
----
-59
12
13
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2019
SELECT CAST( NULL AS SIGNED ) * col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2019
SELECT CAST ( NULL AS INTEGER ) * col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col2 + col2 * - 16 AS col1 FROM tab2 AS cor0
----
-390
-405
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL 70 * + col0 AS col2 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT DISTINCT + 57 * col1 AS col0 FROM tab2 AS cor0
----
1767
3363
969
query I rowsort
SELECT DISTINCT - + col1 * + cor0.col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT col1 - + tab2.col1 * + col1 AS col2 FROM tab2
----
-272
-3422
-930
query I rowsort
SELECT ALL + 41 AS col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to f6a440b478f0d00f8326a8c51fe094b8
query I rowsort
SELECT ALL cor0.col2 * - cor0.col1 AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 86c8e75d83d283b29460c020ab5988af
query I rowsort
SELECT + 11 - - 14 * col0 FROM tab1 cor0
----
1131
53
907
query I rowsort
SELECT ALL + ( - col0 ) * col0 * - ( + col0 ) + - col2 FROM tab2 AS cor0
----
316
474526
493001
query I rowsort
SELECT DISTINCT 26 + col2 AS col0 FROM tab1 AS cor0
----
122
80
83
query I rowsort
SELECT + col0 + col2 * - col0 AS col2 FROM tab0
----
-7209
-768
0
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab1 cor2
----
3645 values hashing to 51e2051aff75c58a5edaa314f1412983
query I rowsort
SELECT DISTINCT 9 * 44 + col1 * - tab0.col1 AS col0 FROM tab0
----
-7000
-7885
-9013
query I rowsort
SELECT 39 + col1 AS col2 FROM tab2
----
56
70
98
query I rowsort
SELECT 62 + 92 * + col1 AS col1 FROM tab2
----
1626
2914
5490
query I rowsort
SELECT - + col2 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT DISTINCT + + col2 * cor0.col0 * col2 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT cor1.col0 - ( 13 ) FROM tab0, tab1 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
-6
65
66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2039
SELECT - - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2039
SELECT - - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + 85 AS col1 FROM tab2 AS cor0
----
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2041
SELECT + cor1.col0 DIV 71 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
skipif mysql # not compatible
query I rowsort label-2041
SELECT + cor1.col0 / 71 FROM tab2, tab1 cor0, tab0 AS cor1
----
27 values hashing to 953562d3ce2a62a1679a1ae0451294c6
query I rowsort
SELECT ALL ( - 47 ) + + col0 FROM tab1 AS cor0
----
-44
17
33
query I rowsort
SELECT ALL - ( + col1 ) AS col0 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2044
SELECT ALL CAST( + 48 AS SIGNED ) + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7250
-744
13
skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL CAST ( + 48 AS INTEGER ) + col2 * - col0 AS col1 FROM tab0 AS cor0
----
-7250
-744
13
query I rowsort
SELECT + col1 + - 21 FROM tab2 cor0
----
-4
10
38
query I rowsort
SELECT ALL + + 89 * + col0 FROM tab1 AS cor0
----
267
5696
7120
onlyif mysql # use DIV operator for integer division
query I rowsort label-2047
SELECT - ( col2 ) DIV - col0 FROM tab1 AS cor0
----
0
1
18
skipif mysql # not compatible
query I rowsort label-2047
SELECT - ( col2 ) / - col0 FROM tab1 AS cor0
----
0
1
18
query I rowsort
SELECT DISTINCT cor0.col1 AS col2 FROM tab0, tab2, tab2 cor0
----
17
31
59
query I rowsort
SELECT + 28 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 8a39580587f2831072e93c319ff94bbf
query I rowsort
SELECT DISTINCT 91 * col0 AS col1 FROM tab1
----
273
5824
7280
query I rowsort
SELECT ALL - 66 * col1 * 87 - ( + col1 ) FROM tab1 AS cor0
----
-149318
-57430
-74659
query I rowsort
SELECT DISTINCT col1 + 21 AS col0 FROM tab1 AS cor0
----
31
34
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2053
SELECT ALL - cor0.col1 * CAST( - cor0.col0 AS SIGNED ) FROM tab0 AS cor0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL - cor0.col1 * CAST ( - cor0.col0 AS INTEGER ) FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - 56 col0 FROM tab1 AS cor0
----
1456
560
728
query I rowsort
SELECT - col0 + - ( - col0 ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col1 * ( col0 ) * - col0 FROM tab0 AS cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT - col0 + ( cor0.col1 + + col2 ) AS col2 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT + - col2 + ( col0 ) FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-2060
SELECT DISTINCT col0 + - 48 * col2 - - col1 DIV 57 FROM tab1 AS cor0
----
-2589
-2672
-4528
skipif mysql # not compatible
query I rowsort label-2060
SELECT DISTINCT col0 + - 48 * col2 - - col1 / 57 FROM tab1 AS cor0
----
-2589
-2672
-4528
query I rowsort
SELECT DISTINCT + + col0 + + cor0.col2 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL col0 * 88 - + ( col0 * - cor0.col0 ) FROM tab0 AS cor0
----
15753
2688
4305
query I rowsort
SELECT + + col1 * 16 FROM tab1 cor0
----
160
208
416
query I rowsort
SELECT - col0 * col2 + - ( col1 ) FROM tab1 cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - col2 + 43 * col2 * col2 FROM tab0 AS cor0
----
289050
42
46794
onlyif mysql # use DIV operator for integer division
query I rowsort label-2066
SELECT ALL - col2 * col2 DIV + 22 AS col2 FROM tab1 AS cor0
----
-132
-147
-418
skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL - col2 * col2 / + 22 AS col2 FROM tab1 AS cor0
----
-132
-147
-418
query I rowsort
SELECT + - col0 * + col1 + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL + col1 + - col0 AS col0 FROM tab1 cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT + tab1.col2 FROM tab2, tab0, tab0 cor0, tab1
----
54
57
96
query I rowsort
SELECT col2 + ( - col2 ) * col0 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT DISTINCT + col1 * col1 - col0 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT DISTINCT + col1 + + ( col1 ) - col1 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - ( + 93 ) AS col0 FROM tab1 AS cor0
----
-93
-93
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 * - col1 col0 FROM tab2 cor0
----
1508
608
810
query I rowsort
SELECT ALL col0 * col2 - - col1 AS col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-2076
SELECT DISTINCT + + 44 DIV - 61 FROM tab0 cor0
----
0
skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT + + 44 / - 61 FROM tab0 cor0
----
0
query I rowsort
SELECT + col0 * 17 FROM tab2 cor0
----
119
1326
1343
query I rowsort
SELECT DISTINCT col1 * col2 * col2 AS col2 FROM tab2
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + tab2.col0 FROM tab2, tab1, tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 33 ) col2 FROM tab0, tab1 AS cor0
----
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab0 AS cor0
----
8
8
8
query I rowsort
SELECT ALL 6 FROM tab1, tab2 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2083
SELECT + tab2.col1 * - CAST( - ( + col2 ) AS SIGNED ) + col2 * col2 FROM tab2
----
1566
2090
2210
skipif mysql # not compatible
query I rowsort label-2083
SELECT + tab2.col1 * - CAST ( - ( + col2 ) AS INTEGER ) + col2 * col2 FROM tab2
----
1566
2090
2210
query I rowsort
SELECT + - cor0.col0 + col1 * - col2 FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT DISTINCT - - col1 + - col0 * - col0 * + col1 FROM tab1 AS cor0
----
260
40970
83213
onlyif mysql # use DIV operator for integer division
query I rowsort label-2086
SELECT + 14 + col2 DIV 34 FROM tab0 AS cor0
----
14
14
16
skipif mysql # not compatible
query I rowsort label-2086
SELECT + 14 + col2 / 34 FROM tab0 AS cor0
----
14
14
16
query I rowsort
SELECT ALL col0 + cor0.col1 * col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT ALL + - cor0.col0 * - col2 + col0 * - cor0.col1 AS col2 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT + - 77 * - col2 AS col0 FROM tab1 AS cor0
----
4158
4389
7392
query I rowsort
SELECT ALL - 29 * - col2 FROM tab0 AS cor0
----
2378
29
957
onlyif mysql # use DIV operator for integer division
query I rowsort label-2091
SELECT ALL + - col1 * col1 DIV - col2 col1 FROM tab1 AS cor0
----
1
1
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2091
SELECT ALL + - col1 * col1 / - col2 col1 FROM tab1 AS cor0
----
1
1
12
query I rowsort
SELECT + + 82 + col2 FROM tab0 AS cor0
----
115
164
83
skipif mysql # not compatible
query I rowsort
SELECT + col1 * cor0.col0 * CAST ( col1 AS REAL ) AS col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT DISTINCT cor0.col2 * - col0 + cor0.col1 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT - 34 + 75 AS col1 FROM tab2
----
41
41
41
query I rowsort
SELECT ALL + 85 + 45 * + col2 AS col1 FROM tab1
----
2515
2650
4405
query I rowsort
SELECT - ( - col2 ) + - col1 * + col1 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT - - 48 + col2 AS col1 FROM tab0 AS cor0
----
130
49
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 + + 31 col1 FROM tab0 AS cor0
----
-2
-51
30
query I rowsort
SELECT DISTINCT + 39 FROM tab2, tab2 cor0
----
39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2101
SELECT + + col1 + cor0.col0 * CAST( NULL AS SIGNED ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2101
SELECT + + col1 + cor0.col0 * CAST ( NULL AS INTEGER ) * col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - cor0.col1 * + cor0.col1 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT tab2.col1 + col0 + + col0 * - col1 AS col1 FROM tab2
----
-1247
-179
-4465
query I rowsort
SELECT + ( col1 ) + col0 FROM tab1
----
29
74
93
query I rowsort
SELECT ALL ( tab1.col1 ) - + col0 AS col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT - col0 - - 17 FROM tab1 AS cor0
----
-47
-63
14
onlyif mysql # use DIV operator for integer division
query I rowsort label-2107
SELECT - + ( - 32 ) * + col2 + 12 * cor0.col1 DIV - col1 - + 9 FROM tab0 AS cor0
----
1035
11
2603
skipif mysql # not compatible
query I rowsort label-2107
SELECT - + ( - 32 ) * + col2 + 12 * cor0.col1 / - col1 - + 9 FROM tab0 AS cor0
----
1035
11
2603
query I rowsort
SELECT DISTINCT - ( - 83 ) + - col2 FROM tab1 AS cor0
----
-13
26
29
query I rowsort
SELECT + col2 + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 82 col1 FROM tab0 AS cor0
----
82
query I rowsort
SELECT ALL 74 * col2 * col2 AS col0 FROM tab2 cor0
----
106856
50024
53946
query I rowsort
SELECT 34 * + col2 AS col2 FROM tab1
----
1836
1938
3264
query I rowsort
SELECT + 68 + col2 * - col1 AS col0 FROM tab1 AS cor0
----
-1180
-1336
-502
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2114
SELECT DISTINCT - 18 + cor0.col2 * CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1230
1386
552
skipif mysql # not compatible
query I rowsort label-2114
SELECT DISTINCT - 18 + cor0.col2 * CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1230
1386
552
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + cor0.col0 col2 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2116
SELECT - CAST( 48 AS SIGNED ) * col2 AS col2 FROM tab0
----
-1584
-3936
-48
skipif mysql # not compatible
query I rowsort label-2116
SELECT - CAST ( 48 AS INTEGER ) * col2 AS col2 FROM tab0
----
-1584
-3936
-48
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2117
SELECT + CAST( NULL AS SIGNED ) * tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2117
SELECT + CAST ( NULL AS INTEGER ) * tab1.col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 38 * cor0.col1 + - 20 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 11ec6bdee36ff277b27dbfa52d96e77e
query I rowsort
SELECT - 94 * - col2 * col2 AS col1 FROM tab0
----
102366
632056
94
onlyif mysql # use DIV operator for integer division
query I rowsort label-2120
SELECT - - col2 + + 88 DIV - col0 AS col1 FROM tab0 cor0
----
-1
30
82
skipif mysql # not compatible
query I rowsort label-2120
SELECT - - col2 + + 88 / - col0 AS col1 FROM tab0 cor0
----
-1
30
82
query I rowsort
SELECT - col0 + col0 * 94 FROM tab2 AS cor0
----
651
7254
7347
onlyif mysql # use DIV operator for integer division
query I rowsort label-2122
SELECT - col2 * - col2 DIV - col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2122
SELECT - col2 * - col2 / - col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + tab0.col1 * tab0.col1 + col0 FROM tab0
----
7420
8370
9444
query I rowsort
SELECT DISTINCT + 74 * col1 FROM tab1
----
1924
740
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 47 ) + - col1 * col0 col2 FROM tab2 AS cor0
----
-1296
-170
-4555
onlyif mysql # use DIV operator for integer division
query I rowsort label-2126
SELECT + ( + 11 ) DIV col2 FROM tab0 AS cor0
----
0
0
11
skipif mysql # not compatible
query I rowsort label-2126
SELECT + ( + 11 ) / col2 FROM tab0 AS cor0
----
0
0
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - col1 ) * - col1 + - ( 28 ) col1 FROM tab1 AS cor0
----
-128
-197
-704
query I rowsort
SELECT ( col1 ) * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2129
SELECT CAST( - 9 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-9
-9
-9
skipif mysql # not compatible
query I rowsort label-2129
SELECT CAST ( - 9 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-9
-9
-9
query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 FROM tab2 AS cor0
----
189
2028
3002
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2131
SELECT ALL - ( col0 ) + col0 * col2 * + col1 + + col2 * CAST( - col1 AS SIGNED ) FROM tab2 cor0
----
118040
5015
50309
skipif mysql # not compatible
query I rowsort label-2131
SELECT ALL - ( col0 ) + col0 * col2 * + col1 + + col2 * CAST ( - col1 AS INTEGER ) FROM tab2 cor0
----
118040
5015
50309
onlyif mysql # use DIV operator for integer division
query I rowsort label-2132
SELECT DISTINCT col0 DIV 30 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-2132
SELECT DISTINCT col0 / 30 FROM tab0
----
0
1
2
query I rowsort
SELECT DISTINCT + ( 99 ) FROM tab2, tab0 AS cor0
----
99
query I rowsort
SELECT col0 - ( + tab0.col2 + col2 ) AS col2 FROM tab0
----
-42
-75
33
query I rowsort
SELECT + 24 * 8 + + col0 * col2 + col1 FROM tab0
----
1070
324
7581
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 col0 FROM tab0 AS cor0
----
75
75
75
query I rowsort
SELECT - - col2 + col0 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL - 54 + - 99 * - col1 AS col2 FROM tab2 AS cor0
----
1629
3015
5787
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col1 col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ALL + + 56 AS col1 FROM tab1 AS cor0
----
56
56
56
query I rowsort
SELECT - ( + cor0.col0 ) * - col0 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT ALL - 12 AS col0 FROM tab2
----
-12
-12
-12
query I rowsort
SELECT ( 66 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
onlyif mysql # use DIV operator for integer division
query I rowsort label-2144
SELECT + 37 + cor0.col0 DIV 28 AS col1 FROM tab1 AS cor0
----
37
39
39
skipif mysql # not compatible
query I rowsort label-2144
SELECT + 37 + cor0.col0 / 28 AS col1 FROM tab1 AS cor0
----
37
39
39
query I rowsort
SELECT + col0 * col1 * - 45 + col0 FROM tab2 AS cor0
----
-207012
-60356
-9758
query I rowsort
SELECT + + 65 * col0 + col0 FROM tab1 AS cor0
----
198
4224
5280
query I rowsort
SELECT col1 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL - - col2 - - ( - cor0.col2 * + col0 ) FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT cor0.col1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT col1 * - 13 + + ( - col1 ) * + col0 * col1 FROM tab1 cor0
----
-13689
-2366
-6530
query I rowsort
SELECT - col0 + + col2 * + col0 AS col1 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT tab0.col2 - cor1.col1 AS col0 FROM tab0, tab0 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 94fb7570cceebbd3529a5385b86c9fb3
query I rowsort
SELECT - col1 * ( - cor0.col0 ) + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT - cor0.col0 * + 72 FROM tab0 AS cor0
----
-1728
-2520
-6408
onlyif mysql # use DIV operator for integer division
query I rowsort label-2155
SELECT ALL + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + col2 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT col2 + col1 * 74 FROM tab1 cor0
----
1058
1978
797
query I rowsort
SELECT + 98 + col0 * 90 AS col1 FROM tab0 AS cor0
----
2258
3248
8108
query I rowsort
SELECT ALL - col1 * - cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col2 * + col1 * + cor0.col0 AS col2 FROM tab0 cor0
----
3395
664118
68112
query I rowsort
SELECT ALL 38 * col2 AS col2 FROM tab1
----
2052
2166
3648
query I rowsort
SELECT 72 + 85 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to e82f5eabd63a750c55c098fa7763bb43
query I rowsort
SELECT ALL + + ( - col0 ) * - col1 + + col1 + - col1 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - + col0 * + col2 * col2 + - col0 * col0 FROM tab0 AS cor0
----
-1260
-26712
-606357
query I rowsort
SELECT DISTINCT + 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2165
SELECT ALL - - CAST( - 97 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL - - CAST ( - 97 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b
query I rowsort
SELECT + 41 * 86 * col2 + - 53 FROM tab2 AS cor0
----
133935
91623
95149
query I rowsort
SELECT - col1 + + 5 * col2 * col2 FROM tab2
----
3321
3614
7203
query I rowsort
SELECT ALL + 68 FROM tab2 cor0
----
68
68
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2169
SELECT ALL - - CAST( NULL AS SIGNED ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2169
SELECT ALL - - CAST ( NULL AS INTEGER ) * cor0.col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + cor0.col1 * + col1 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col0 + col2 + col1 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT DISTINCT + col1 + - 47 FROM tab0
----
39
44
50
query I rowsort
SELECT 79 + + col0 AS col2 FROM tab0
----
103
114
168
query I rowsort
SELECT col2 + 57 + col1 AS col2 FROM tab0 AS cor0
----
155
176
230
query I rowsort
SELECT + ( cor0.col0 * 70 ) FROM tab1, tab1 AS cor0
----
9 values hashing to 45057eabdfc9c276a006bcd1599c917f
query I rowsort
SELECT ALL 87 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT + 95 * cor0.col1 + col1 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
1183
5332
9118
onlyif mysql # use DIV operator for integer division
query I rowsort label-2178
SELECT DISTINCT + col0 + + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + col0 + + col0 / col0 AS col1 FROM tab2 AS cor0
----
79
8
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2179
SELECT ALL cor0.col2 * cor0.col0 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL cor0.col2 * cor0.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-2180
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
NULL
query I rowsort
SELECT - col0 + - col2 + - cor0.col0 * - 58 AS col0 FROM tab2 AS cor0
----
372
4420
4465
query I rowsort
SELECT 56 + col0 * - col1 AS col0 FROM tab0 AS cor0
----
-2008
-3339
-8043
query I rowsort
SELECT 60 + + col2 AS col0 FROM tab0 AS cor0
----
142
61
93
query I rowsort
SELECT - 30 * col2 AS col0 FROM tab2 AS cor0
----
-1140
-780
-810
query I rowsort
SELECT ALL col2 + col0 * 35 * - col1 FROM tab2
----
-161044
-46967
-7568
query I rowsort
SELECT DISTINCT - col1 * col2 + tab0.col2 * col2 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT col1 * ( - col2 ) + col1 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT ALL + - col1 * - 75 * - col1 FROM tab1 AS cor0
----
-12675
-50700
-7500
query I rowsort
SELECT DISTINCT + col0 - ( + col0 ) AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL cor0.col1 * col1 + + col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
10634
16202
7972
query I rowsort
SELECT + col2 * - col0 + col0 FROM tab0 AS cor0
----
-7209
-768
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor0.col2 ) + + col1 col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT + col2 * col1 - + col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT 27 * + 68 + col2 * - col1 FROM tab0 AS cor0
----
-1002
-5626
1739
query I rowsort
SELECT ALL + + 87 * - col0 + - col0 * - 1 FROM tab1 AS cor0
----
-258
-5504
-6880
query I rowsort
SELECT col0 + - 80 FROM tab2 AS cor0
----
-1
-2
-73
query I rowsort
SELECT ALL - col2 + 98 FROM tab2 cor0
----
60
71
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-2198
SELECT ALL - 34 DIV cor0.col0 + col1 - - cor0.col1 DIV col0 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-2198
SELECT ALL - 34 / cor0.col0 + col1 - - cor0.col1 / col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT DISTINCT + 20 + + col1 * col0 AS col2 FROM tab0 AS cor0
----
2084
3415
8119
query I rowsort
SELECT ALL + col1 * + ( + col0 * - col2 ) + 31 AS col1 FROM tab1
----
-36449
-4181
-99809
query I rowsort
SELECT + - col1 * - col2 + + col0 FROM tab2 AS cor0
----
1612
725
844
onlyif mysql # use DIV operator for integer division
query I rowsort label-2202
SELECT + 45 DIV - col1 + col1 FROM tab2 AS cor0
----
15
30
59
skipif mysql # not compatible
query I rowsort label-2202
SELECT + 45 / - col1 + col1 FROM tab2 AS cor0
----
15
30
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-2203
SELECT + ( 81 ) * + cor0.col1 * CAST( + 5 AS SIGNED ) - + cor0.col2 DIV - col0 AS col1 FROM tab2 AS cor0
----
12558
23895
6885
skipif mysql # not compatible
query I rowsort label-2203
SELECT + ( 81 ) * + cor0.col1 * CAST ( + 5 AS INTEGER ) - + cor0.col2 / - col0 AS col1 FROM tab2 AS cor0
----
12558
23895
6885
query I rowsort
SELECT ALL col2 * + col2 + ( - col1 * + 62 + 74 ) FROM tab1
----
1378
2703
8484
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to d7b027bca5d37c67e29013904def8125
query I rowsort
SELECT - 14 + - col0 * - col2 FROM tab1 AS cor0
----
148
3634
7666
query I rowsort
SELECT + + col1 + cor0.col0 * 41 AS col1 FROM tab2 AS cor0
----
318
3256
3257
query I rowsort
SELECT + col0 - - col2 * - col0 AS col0 FROM tab2 AS cor0
----
-182
-1950
-2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - col1 col2 FROM tab1 cor0
----
-20
-26
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2210
SELECT - col1 * + 74 + + col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-1924
-746
-968
skipif mysql # not compatible
query I rowsort label-2210
SELECT - col1 * + 74 + + col0 / - col1 AS col2 FROM tab1 AS cor0
----
-1924
-746
-968
onlyif mysql # use DIV operator for integer division
query I rowsort label-2211
SELECT ALL + - col0 + col1 DIV + cor0.col1 FROM tab2 AS cor0
----
-6
-77
-78
skipif mysql # not compatible
query I rowsort label-2211
SELECT ALL + - col0 + col1 / + cor0.col1 FROM tab2 AS cor0
----
-6
-77
-78
query I rowsort
SELECT DISTINCT col2 * col2 + 18 AS col0 FROM tab2 AS cor0
----
1462
694
747
query I rowsort
SELECT DISTINCT - col1 * + cor0.col1 + col2 AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - col0 * - 86 AS col0 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT + cor0.col0 * cor0.col1 + 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0f4e68da379d74a7913307e22e1f37eb
query I rowsort
SELECT DISTINCT - ( ( col2 ) ) FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col0 + + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-27
-38
87
query I rowsort
SELECT + 96 + - col2 AS col1 FROM tab1 AS cor0
----
0
39
42
query I rowsort
SELECT + 83 * - 84 AS col2 FROM tab0 AS cor0
----
-6972
-6972
-6972
query I rowsort
SELECT - col1 * + ( 3 ) FROM tab2
----
-177
-51
-93
query I rowsort
SELECT - col1 + + 47 * - col2 FROM tab0 AS cor0
----
-144
-1637
-3945
query I rowsort
SELECT + + col0 * - 18 FROM tab2 cor0
----
-126
-1404
-1422
query I rowsort
SELECT - 67 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-3618
-3819
-6432
query I rowsort
SELECT ALL ( 13 ) * col1 FROM tab2
----
221
403
767
onlyif mysql # use DIV operator for integer division
query I rowsort label-2225
SELECT - 4 + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-3
-3
-3
skipif mysql # not compatible
query I rowsort label-2225
SELECT - 4 + col0 / col0 AS col1 FROM tab1 AS cor0
----
-3
-3
-3
onlyif mysql # use DIV operator for integer division
query I rowsort label-2226
SELECT DISTINCT 75 DIV col2 + col0 + - col0 FROM tab0 AS cor0
----
0
2
75
skipif mysql # not compatible
query I rowsort label-2226
SELECT DISTINCT 75 / col2 + col0 + - col0 FROM tab0 AS cor0
----
0
2
75
query I rowsort
SELECT - + 82 + - col0 * + col2 FROM tab1 AS cor0
----
-244
-3730
-7762
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col0 + - col2 * col0 col1 FROM tab2 AS cor0
----
-406
-4345
-6630
query I rowsort
SELECT DISTINCT col1 + cor0.col1 + - col2 AS col2 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT DISTINCT + - 9 FROM tab2 AS cor0
----
-9
query I rowsort
SELECT - 20 + - col1 * + col1 + col1 FROM tab1 AS cor0
----
-110
-176
-670
query I rowsort
SELECT ALL - 83 AS col1 FROM tab1 AS cor0
----
-83
-83
-83
query I rowsort
SELECT - ( col0 * + col0 + - tab2.col1 ) AS col1 FROM tab2
----
-18
-6025
-6224
query I rowsort
SELECT ALL - col2 * 31 FROM tab2
----
-1178
-806
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-2235
SELECT tab1.col0 DIV + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-2235
SELECT tab1.col0 / + tab1.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f
query I rowsort
SELECT ALL + 92 * tab2.col2 AS col0 FROM tab2
----
2392
2484
3496
query I rowsort
SELECT DISTINCT 51 * + tab2.col2 FROM tab2
----
1326
1377
1938
query I rowsort
SELECT DISTINCT + ( + col1 ) * - col1 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL ( + 81 ) * + col2 + + col1 FROM tab2 AS cor0
----
2165
2218
3095
query I rowsort
SELECT 15 AS col1 FROM tab2, tab2 cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
query I rowsort
SELECT DISTINCT col0 * + col0 - + 74 AS col1 FROM tab0
----
1151
502
7847
query I rowsort
SELECT DISTINCT + tab2.col0 * - col2 - - col2 FROM tab2
----
-162
-2002
-2964
query I rowsort
SELECT ALL col0 + + 0 * col2 AS col0 FROM tab1
----
3
64
80
query I rowsort
SELECT - 83 * ( col1 ) FROM tab2
----
-1411
-2573
-4897
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2246
SELECT DISTINCT - CAST( + col2 AS SIGNED ) + tab2.col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) + tab2.col2 FROM tab2
----
0
query I rowsort
SELECT ALL + col1 + 90 AS col0 FROM tab0
----
176
181
187
query I rowsort
SELECT DISTINCT col2 * - col1 + col1 AS col0 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT ALL - 40 + - tab1.col0 + - col1 * - col2 FROM tab1
----
1128
1361
466
query I rowsort
SELECT ALL + col0 + + 41 * - col0 FROM tab2
----
-280
-3120
-3160
query I rowsort
SELECT + ( + col1 ) * - col0 + col0 + - cor0.col0 AS col0 FROM tab2 cor0
----
-1343
-217
-4602
query I rowsort
SELECT - col1 * col2 + + col2 + - col2 * col0 AS col1 FROM tab0 AS cor0
----
-131
-14678
-3597
query I rowsort
SELECT DISTINCT + + col1 * + col2 * col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT ALL ( 57 ) + col1 + - col0 * col2 FROM tab1 AS cor0
----
-3581
-7610
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2255
SELECT - CAST( col0 AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-2255
SELECT - CAST ( col0 AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - - col2 + cor0.col1 + - col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT - - col2 + - col2 * col1 AS col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL + col2 * 74 * - col0 + + col0 + + col2 * - 3 FROM tab1 AS cor0
----
-12147
-270059
-568528
query I rowsort
SELECT - cor0.col2 + - 52 AS col1 FROM tab0 AS cor0
----
-134
-53
-85
query I rowsort
SELECT ALL - + col1 - + ( + col0 ) FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT col2 + cor0.col0 FROM tab1 cor0
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-2262
SELECT ALL + col2 DIV + col0 + col0 AS col0 FROM tab0 cor0
----
25
35
89
skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL + col2 / + col0 + col0 AS col0 FROM tab0 cor0
----
25
35
89
query I rowsort
SELECT DISTINCT col0 + + ( + col0 ) AS col1 FROM tab1 cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2264
SELECT ALL - col0 DIV col0 - col2 FROM tab1 AS cor0
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL - col0 / col0 - col2 FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT ALL col1 * - 16 + ( col0 ) FROM tab0 AS cor0
----
-1352
-1367
-1517
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0, tab1 AS cor1, tab2 cor2
----
972 values hashing to 0fcd8d0934383dd58863be894b07a6ed
query I rowsort
SELECT DISTINCT + + col2 - col1 AS col0 FROM tab2 cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2268
SELECT ALL + + CAST( + 79 AS SIGNED ) FROM tab1 AS cor0
----
79
79
79
skipif mysql # not compatible
query I rowsort label-2268
SELECT ALL + + CAST ( + 79 AS INTEGER ) FROM tab1 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
-72
query I rowsort
SELECT DISTINCT - + col2 + - col2 * col1 AS col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT DISTINCT + 33 + + col2 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT - col2 + cor0.col0 * + 47 * col1 AS col2 FROM tab2 AS cor0
----
10172
216268
63083
query I rowsort
SELECT ( 27 ) FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
onlyif mysql # use DIV operator for integer division
query I rowsort label-2274
SELECT ALL - col2 + col0 DIV - col2 - col2 AS col2 FROM tab0
----
-165
-37
-66
skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL - col2 + col0 / - col2 - col2 AS col2 FROM tab0
----
-165
-37
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2275
SELECT ALL CAST( - ( - col2 ) AS SIGNED ) + - tab1.col0 - col2 AS col2 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL CAST ( - ( - col2 ) AS INTEGER ) + - tab1.col0 - col2 AS col2 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT - 86 - col2 * col2 * col0 AS col1 FROM tab2 AS cor0
----
-114162
-5189
-52814
onlyif mysql # use DIV operator for integer division
query I rowsort label-2277
SELECT ALL + 79 DIV tab0.col1 + col0 + col2 * col2 FROM tab0
----
1113
36
6813
skipif mysql # not compatible
query I rowsort label-2277
SELECT ALL + 79 / tab0.col1 + col0 + col2 * col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT ALL + col2 + - tab0.col0 * + tab0.col2 FROM tab0
----
-34
-7216
-759
query I rowsort
SELECT + cor0.col2 + - 53 FROM tab1 AS cor0
----
1
4
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-2280
SELECT ALL + col1 DIV col1 AS col0 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL + col1 / col1 AS col0 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT - col1 * ( cor0.col0 ) + col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT col1 * col0 + 29 FROM tab1 cor0
----
1069
107
669
query I rowsort
SELECT + + col2 + 72 AS col0 FROM tab2 AS cor0
----
110
98
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-2284
SELECT DISTINCT col1 DIV col0 + ( col1 ) * col1 FROM tab2
----
289
3481
965
skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT col1 / col0 + ( col1 ) * col1 FROM tab2
----
289
3481
965
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col0 * tab1.col1 + + CAST ( + col1 AS REAL ) + col2 FROM tab1
----
1149
158
707
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2286
SELECT + 78 * + col0 + CAST( col0 * + col1 AS SIGNED ) + + col2 * - col1 AS col1 FROM tab1
----
-1092
5062
6032
skipif mysql # not compatible
query I rowsort label-2286
SELECT + 78 * + col0 + CAST ( col0 * + col1 AS INTEGER ) + + col2 * - col1 AS col1 FROM tab1
----
-1092
5062
6032
query I rowsort
SELECT DISTINCT - tab0.col1 * + col1 AS col0 FROM tab0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col0 * ( - col1 ) * col0 AS col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT col0 * + col0 * + col2 AS col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT + col2 * ( 82 ) FROM tab2 AS cor0
----
2132
2214
3116
onlyif mysql # use DIV operator for integer division
query I rowsort label-2291
SELECT ALL - + col2 DIV col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-2291
SELECT ALL - + col2 / col0 AS col1 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2292
SELECT - col1 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-2292
SELECT - col1 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - col2 * ( + ( col2 ) ) FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT col2 * + col1 + col2 * - col0 FROM tab2
----
-2356
-494
648
query I rowsort
SELECT col0 + col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + col0 + 78 AS col1 FROM tab1 AS cor0
----
142
158
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-2297
SELECT ALL cor1.col2 DIV + ( - cor1.col1 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL cor1.col2 / + ( - cor1.col1 ) AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to e2568b01dd411b5a206068697d0ed0d2
query I rowsort
SELECT DISTINCT - 97 + - cor0.col2 + col2 AS col0 FROM tab0 AS cor0
----
-97
query I rowsort
SELECT DISTINCT + 98 + col1 * - cor0.col2 FROM tab0 AS cor0
----
-2740
-7364
1
query I rowsort
SELECT + ( - col2 ) + - col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + + ( 52 * col2 ) AS col2 FROM tab2 AS cor0
----
2241
2622
2886
query I rowsort
SELECT DISTINCT - - ( + col0 ) + 7 AS col2 FROM tab0 AS cor0
----
31
42
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2303
SELECT - 64 DIV col2 AS col2 FROM tab0 cor0
----
-1
-64
0
skipif mysql # not compatible
query I rowsort label-2303
SELECT - 64 / col2 AS col2 FROM tab0 cor0
----
-1
-64
0
query I rowsort
SELECT ALL col0 * + cor0.col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-2305
SELECT DISTINCT - - col1 DIV - col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2305
SELECT DISTINCT - - col1 / - col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT + 29 FROM tab2
----
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-2307
SELECT DISTINCT - 97 DIV col0 AS col2 FROM tab0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - 97 / col0 AS col2 FROM tab0
----
-1
-2
-4
query I rowsort
SELECT + 6 FROM tab0, tab1 cor0, tab2 cor1
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 * + col1 - 64 col0 FROM tab1
----
-1054
-1351
-2638
query I rowsort
SELECT ALL - 3 AS col2 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to 65b7e16aaa7821ace3a45a9846ffa166
query I rowsort
SELECT + - 63 * + col1 AS col2 FROM tab1 AS cor0
----
-1638
-630
-819
query I rowsort
SELECT + + col1 * - cor0.col1 * - 85 AS col0 FROM tab1 cor0
----
14365
57460
8500
query I rowsort
SELECT + tab0.col1 * ( + col1 ) * col2 AS col0 FROM tab0
----
244068
679042
9409
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 + col0 * ( + col2 ) * col0 FROM tab2
----
1323
158184
237158
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2316
SELECT + CAST( + cor0.col2 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
skipif mysql # not compatible
query I rowsort label-2316
SELECT + CAST ( + cor0.col2 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - col2 * col1 + - tab0.col1 AS col0 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT - + ( - cor0.col0 ) + col1 * - ( ( - cor0.col0 ) ) AS col1 FROM tab0 cor0
----
2088
3430
8188
query I rowsort
SELECT + - 34 * 96 * + col2 AS col0 FROM tab2 AS cor0
----
-124032
-84864
-88128
query I rowsort
SELECT cor0.col0 + 43 * + col1 + + col2 * - col0 FROM tab2 AS cor0
----
-2192
1151
587
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col1 + col1 + + col2 col0 FROM tab0 AS cor0
----
-7277
-8108
-9311
query I rowsort
SELECT DISTINCT + - col0 * cor0.col1 + col2 AS col2 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT - col2 + - 82 AS col1 FROM tab2 AS cor0
----
-108
-109
-120
query I rowsort
SELECT DISTINCT col2 + 94 FROM tab2
----
120
121
132
query I rowsort
SELECT + 96 + + cor0.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 5c27473f42398ce0e9d671ad0cfbc06e
query I rowsort
SELECT - 56 * + col2 FROM tab2
----
-1456
-1512
-2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2327
SELECT - CAST( + 48 AS SIGNED ) col0 FROM tab2
----
-48
-48
-48
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2327
SELECT - CAST ( + 48 AS INTEGER ) col0 FROM tab2
----
-48
-48
-48
query I rowsort
SELECT ALL cor0.col0 + 54 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 9c288fd64a8a229a540278eeec5a5562
query I rowsort
SELECT ALL col1 + + col0 * col1 * + ( - 52 ) AS col1 FROM tab0
----
-107242
-176443
-421057
skipif mysql # not compatible
query I rowsort
SELECT ALL CAST ( + col1 AS REAL ) * col0 * col2 + + tab1.col1 FROM tab1
----
36490
4238
99853
query I rowsort
SELECT ALL ( - col0 ) + tab0.col0 AS col0 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * ( col1 ) + col1 * - col1 col2 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT DISTINCT - col2 + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT - ( cor0.col2 ) * + cor0.col1 + + ( 47 ) AS col1 FROM tab1 AS cor0
----
-1201
-1357
-523
query I rowsort
SELECT DISTINCT 12 + + col2 AS col1 FROM tab1 AS cor0
----
108
66
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-2336
SELECT ( + col0 ) + col1 DIV - col2 FROM tab0 AS cor0
----
-62
22
88
skipif mysql # not compatible
query I rowsort label-2336
SELECT ( + col0 ) + col1 / - col2 FROM tab0 AS cor0
----
-62
22
88
query I rowsort
SELECT 91 + 91 AS col0 FROM tab2 AS cor0
----
182
182
182
query I rowsort
SELECT ALL + + 66 AS col2 FROM tab1 AS cor0
----
66
66
66
query I rowsort
SELECT ALL - + col1 * - cor0.col0 - ( + cor0.col0 ) * + col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - - 77 * col1 FROM tab0 AS cor0
----
6622
7007
7469
query I rowsort
SELECT ALL - col1 * + col2 * 11 + ( + col0 + col2 ) * + col0 AS col2 FROM tab1 cor0
----
-15273
1474
352
query I rowsort
SELECT DISTINCT - cor0.col0 - + col2 AS col0 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-2343
SELECT DISTINCT col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2343
SELECT DISTINCT col1 / - col1 AS col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT - - col0 + + col1 * + 35 AS col1 FROM tab1 AS cor0
----
414
535
913
query I rowsort
SELECT ALL - + col1 * cor0.col2 + + col2 FROM tab2 AS cor0
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col2 col0 FROM tab0 AS cor0
----
1230
15
495
onlyif mysql # use DIV operator for integer division
query I rowsort label-2347
SELECT DISTINCT - 11 DIV col2 + - 68 AS col2 FROM tab1 AS cor0
----
-68
skipif mysql # not compatible
query I rowsort label-2347
SELECT DISTINCT - 11 / col2 + - 68 AS col2 FROM tab1 AS cor0
----
-68
query I rowsort
SELECT DISTINCT 1 * cor0.col0 + - 62 FROM tab2 AS cor0
----
-55
16
17
query I rowsort
SELECT ALL + 51 * col1 FROM tab2 AS cor0
----
1581
3009
867
onlyif mysql # use DIV operator for integer division
query I rowsort label-2350
SELECT DISTINCT - + col0 DIV cor0.col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - + col0 / cor0.col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + 31 * col2 AS col0 FROM tab0 AS cor0
----
1023
2542
31
query I rowsort
SELECT DISTINCT + - 67 + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
102
33
609
query I rowsort
SELECT - 77 + tab2.col0 * + tab2.col0 AS col2 FROM tab2
----
-28
6007
6164
query I rowsort
SELECT ALL + 68 * col0 + col0 FROM tab0 AS cor0
----
1656
2415
6141
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2355
SELECT - + ( col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2355
SELECT - + ( col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 53 - cor0.col0 col1 FROM tab2 AS cor0
----
-25
-26
46
query I rowsort
SELECT ALL + + 14 * cor0.col1 FROM tab2 AS cor0
----
238
434
826
onlyif mysql # use DIV operator for integer division
query I rowsort label-2358
SELECT col0 DIV col1 + ( 21 + + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
37
40
47
skipif mysql # not compatible
query I rowsort label-2358
SELECT col0 / col1 + ( 21 + + cor0.col1 ) AS col2 FROM tab1 AS cor0
----
37
40
47
query I rowsort
SELECT ALL + ( - 73 ) AS col0 FROM tab1
----
-73
-73
-73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 * cor0.col2 col0 FROM tab1 cor0
----
-36480
-4212
-99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-2361
SELECT - + col0 DIV 60 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-2361
SELECT - + col0 / 60 FROM tab1 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL col2 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + + col2 * + col2 * col2 AS col0 FROM tab1 AS cor0
----
157464
185193
884736
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2364
SELECT DISTINCT + - col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2364
SELECT DISTINCT + - col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2365
SELECT col1 + - cor0.col1 DIV 2 AS col0 FROM tab2 cor0
----
16
30
9
skipif mysql # not compatible
query I rowsort label-2365
SELECT col1 + - cor0.col1 / 2 AS col0 FROM tab2 cor0
----
16
30
9
query I rowsort
SELECT ALL + + col0 * - 34 AS col2 FROM tab1 AS cor0
----
-102
-2176
-2720
query I rowsort
SELECT DISTINCT + col2 + + col2 * - 21 AS col2 FROM tab0 AS cor0
----
-1640
-20
-660
query I rowsort
SELECT ALL col2 + 42 * col2 FROM tab2 AS cor0
----
1118
1161
1634
query I rowsort
SELECT ALL - col0 + 49 FROM tab2 cor0
----
-29
-30
42
query I rowsort
SELECT ALL - col1 * 0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT 24 AS col0 FROM tab0, tab1 AS cor0, tab2 cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT ALL 75 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT DISTINCT + 59 * col0 * cor0.col0 + - 46 * + 52 * + col0 AS col1 FROM tab2 AS cor0
----
-13853
172380
179251
query I rowsort
SELECT DISTINCT - 23 + - 70 AS col2 FROM tab1 AS cor0
----
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-2375
SELECT ALL col2 - ( - cor0.col1 ) DIV 73 AS col1 FROM tab1 AS cor0
----
54
57
96
skipif mysql # not compatible
query I rowsort label-2375
SELECT ALL col2 - ( - cor0.col1 ) / 73 AS col1 FROM tab1 AS cor0
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-2376
SELECT 76 DIV - 56 + col2 * ( - col0 + col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-2376
SELECT 76 / - 56 + col2 * ( - col0 + col0 ) AS col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + col2 + col2 * col1 AS col2 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT col0 + - col0 * col0 FROM tab1
----
-4032
-6
-6320
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2379
SELECT CAST( - 31 AS SIGNED ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
skipif mysql # not compatible
query I rowsort label-2379
SELECT CAST ( - 31 AS INTEGER ) FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT + tab1.col1 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT - + col2 * col0 - - col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2382
SELECT col0 * CAST( col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-2382
SELECT col0 * CAST ( col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT col2 * - col0 + - col2 AS col2 FROM tab1 AS cor0
----
-216
-3705
-7776
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + col2 + - col2 * - col1 col0 FROM tab1
----
1357
1484
637
query I rowsort
SELECT - col2 * tab2.col0 * col1 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT ALL + tab2.col0 AS col0 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT ALL 13 * + col2 * tab1.col1 + tab1.col1 AS col2 FROM tab1
----
16237
18278
7420
query I rowsort
SELECT ALL col0 * ( tab2.col2 ) FROM tab2
----
189
2028
3002
query I rowsort
SELECT col1 * ( col0 ) + col1 * col0 + col0 FROM tab0 AS cor0
----
16287
4152
6825
query I rowsort
SELECT DISTINCT - cor0.col0 * 57 + + col1 AS col0 FROM tab1 AS cor0
----
-145
-3638
-4547
query I rowsort
SELECT ALL cor0.col0 * - ( cor0.col0 ) + col1 AS col2 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - tab1.col0 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 4ec304b8ce935f2226e7548d72c2b2f0
query I rowsort
SELECT ALL - col2 * col1 + - col1 FROM tab2 AS cor0
----
-1593
-663
-868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 78 col1 FROM tab0 cor0
----
-78
-78
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2395
SELECT ALL col2 * col2 + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2395
SELECT ALL col2 * col2 + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 * - 68 * - col1 + col2 * col1 FROM tab0 AS cor0
----
505766
570570
639909
query I rowsort
SELECT ALL - + col1 + 21 * col0 FROM tab2 AS cor0
----
116
1579
1642
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab2 AS cor1, tab1 cor2
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
query I rowsort
SELECT ALL - cor0.col0 + cor0.col0 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - + 58 * - 9 FROM tab0 AS cor0
----
522
query I rowsort
SELECT - - col0 * + ( + col0 + col2 ) AS col0 FROM tab2 AS cor0
----
238
8112
9243
query I rowsort
SELECT - col0 + + 45 FROM tab2 AS cor0
----
-33
-34
38
query I rowsort
SELECT + + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-2404
SELECT ALL 27 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL 27 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT + 52 + cor0.col0 FROM tab0 AS cor0
----
141
76
87
query I rowsort
SELECT ALL + + col0 + cor0.col1 * + ( - col1 ) FROM tab1 cor0
----
-36
-673
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * + 71 col2 FROM tab2 AS cor0
----
-466
-5479
-5592
query I rowsort
SELECT ALL cor0.col1 * + col2 + - 94 * col1 FROM tab0 AS cor0
----
-1092
-5246
-9021
query I rowsort
SELECT col1 * col2 + + 74 * + col1 FROM tab2 AS cor0
----
1904
3131
5900
query I rowsort
SELECT + - col0 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * + col2 col0 FROM tab0 AS cor0
----
1650
4100
50
query I rowsort
SELECT - col0 + col1 * + col2 AS col2 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ALL - 50 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT + cor0.col2 * 61 FROM tab0 AS cor0
----
2013
5002
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-2415
SELECT 18 DIV 91 + - col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-2415
SELECT 18 / 91 + - col0 + ( col1 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT + cor0.col1 FROM tab2, tab2 cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL ( col1 ) * - col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - 1 * - col1 * col0 FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 49 col1 FROM tab2 AS cor0
----
-343
-3822
-3871
query I rowsort
SELECT DISTINCT + 43 * col2 AS col1 FROM tab1
----
2322
2451
4128
query I rowsort
SELECT 25 AS col1 FROM tab2, tab0 cor0
----
9 values hashing to 525a55d5ed224a62da65df36731881a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + col1 col0 FROM tab2
----
110
124
152
query I rowsort
SELECT ALL + 38 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col2 FROM tab0 AS cor0
----
44
query I rowsort
SELECT ALL + ( + 91 ) + col1 * ( - cor0.col2 ) FROM tab1 AS cor0
----
-1157
-1313
-479
query I rowsort
SELECT ALL - ( - col1 ) * col2 * col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT + - col2 * col2 + 87 + - col2 * cor0.col2 * col1 AS col0 FROM tab0 AS cor0
----
-11
-618521
-94656
query I rowsort
SELECT - - col1 * col2 + 25 * - col0 AS col2 FROM tab0 AS cor0
----
-778
2238
5237
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2429
SELECT col1 + - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2429
SELECT col1 + - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 * + ( + col1 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT ALL + - cor0.col0 + 90 FROM tab1 AS cor0
----
10
26
87
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2432
SELECT ALL - 18 + - ( col0 * CAST( NULL AS DECIMAL ) + cor0.col2 ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL - 18 + - ( col0 * CAST ( NULL AS REAL ) + cor0.col2 ) FROM tab2 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2433
SELECT + CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2433
SELECT + CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 * - col1 FROM tab1 AS cor0
----
16224
36504
5700
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( ( - col1 ) ) col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col2 * col0 col2 FROM tab0 cor0
----
34
7216
759
query I rowsort
SELECT ALL - col1 * - tab2.col1 + ( + tab2.col2 ) AS col0 FROM tab2
----
327
3507
988
query I rowsort
SELECT col2 + ( + col0 ) AS col0 FROM tab1
----
121
176
57
query I rowsort
SELECT ALL col2 + + ( + ( + col2 ) ) * + col1 FROM tab0
----
2871
7544
98
query I rowsort
SELECT ALL + col2 + col0 * - col1 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT 38 + - col2 FROM tab2 AS cor0
----
0
11
12
query I rowsort
SELECT DISTINCT - 85 + - col2 FROM tab0 AS cor0
----
-118
-167
-86
query I rowsort
SELECT ALL - 32 + 13 FROM tab2
----
-19
-19
-19
query I rowsort
SELECT - col2 * + ( col0 * 90 ) AS col2 FROM tab1
----
-14580
-328320
-691200
onlyif mysql # use DIV operator for integer division
query I rowsort label-2445
SELECT + col2 + col0 DIV col0 AS col1 FROM tab0 cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-2445
SELECT + col2 + col0 / col0 AS col1 FROM tab0 cor0
----
2
34
83
query I rowsort
SELECT - col0 + - cor0.col1 * + col1 * - 35 FROM tab0 cor0
----
258836
289746
329280
query I rowsort
SELECT - col2 - - col1 * 58 AS col2 FROM tab0 AS cor0
----
4955
5196
5625
query I rowsort
SELECT ( + col2 * - tab1.col0 ) AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-2449
SELECT DISTINCT + col0 DIV 80 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-2449
SELECT DISTINCT + col0 / 80 FROM tab2
----
0
query I rowsort
SELECT ( 51 ) FROM tab0
----
51
51
51
query I rowsort
SELECT 73 * cor0.col0 AS col0 FROM tab0 cor0
----
1752
2555
6497
query I rowsort
SELECT ALL - 38 AS col0 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e8c064543bf0f2e57329db1bb0a411e3
query IIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2, tab0 cor0 WHERE NOT NULL < ( NULL )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + ( - 15 ) * col2 - col0 col0 FROM tab1
----
-804
3177
4880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col0 col1 FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL col2 + - 75 * 75 AS col2 FROM tab2 AS cor0
----
-5587
-5598
-5599
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2457
SELECT - col2 + - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-119
-173
-98
skipif mysql # not compatible
query I rowsort label-2457
SELECT - col2 + - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT - - col2 * col1 * + 79 + + col0 FROM tab0 AS cor0
----
224226
589587
7698
query I rowsort
SELECT ALL - col1 + - col1 * + 81 FROM tab0 AS cor0
----
-7052
-7462
-7954
query I rowsort
SELECT - + col0 * col0 + - 71 AS col1 FROM tab2 AS cor0
----
-120
-6155
-6312
query I rowsort
SELECT + + col2 * col2 + col1 AS col2 FROM tab1 cor0
----
2942
3259
9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2462
SELECT DISTINCT col2 / CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT col2 / CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2463
SELECT col2 * + col1 + ( col1 + - CAST( - 6 AS SIGNED ) ) FROM tab2 AS cor0
----
1599
669
874
skipif mysql # not compatible
query I rowsort label-2463
SELECT col2 * + col1 + ( col1 + - CAST ( - 6 AS INTEGER ) ) FROM tab2 AS cor0
----
1599
669
874
query I rowsort
SELECT DISTINCT col0 + 54 FROM tab0 cor0
----
143
78
89
query I rowsort
SELECT ALL + cor0.col0 * col1 + col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT - col1 + 65 AS col1 FROM tab1 AS cor0
----
39
52
55
query I rowsort
SELECT - col0 + + col0 * - col1 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT ALL - col1 * col2 + + col1 FROM tab2 AS cor0
----
-1475
-629
-806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + 90 + col1 * + col1 col1 FROM tab2 AS cor0
----
1078
3597
417
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2470
SELECT - - col0 + - CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2470
SELECT - - col0 + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL cor0.col0 * - 68 AS col2 FROM tab0 AS cor0
----
-1632
-2380
-6052
query I rowsort
SELECT + cor0.col0 * - col0 + - col2 AS col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - - col2 + + col2 * 71 * col2 FROM tab0 AS cor0
----
477486
72
77352
onlyif mysql # use DIV operator for integer division
query I rowsort label-2474
SELECT col2 * 96 DIV - col1 + + cor0.col0 + col1 * - col0 FROM tab2 AS cor0
----
-1478
-293
-4566
skipif mysql # not compatible
query I rowsort label-2474
SELECT col2 * 96 / - col1 + + cor0.col0 + col1 * - col0 FROM tab2 AS cor0
----
-1478
-293
-4566
query I rowsort
SELECT ALL + + col2 * + ( cor0.col1 * col2 ) AS col0 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT - col2 + + col0 * - col2 FROM tab1 AS cor0
----
-216
-3705
-7776
query I rowsort
SELECT DISTINCT + tab1.col0 * - 95 AS col1 FROM tab1
----
-285
-6080
-7600
query I rowsort
SELECT ALL + - col0 * - col2 - col1 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT + col2 * 82 + col0 AS col1 FROM tab0 AS cor0
----
117
2730
6813
query I rowsort
SELECT DISTINCT - ( ( cor0.col2 ) ) + - col0 * ( col2 ) * + col2 FROM tab0 AS cor0
----
-26169
-36
-598518
query I rowsort
SELECT ALL col1 * + cor0.col0 + col0 - 92 FROM tab2 cor0
----
132
1330
4588
query I rowsort
SELECT ( - 85 ) FROM tab1 AS cor0
----
-85
-85
-85
query I rowsort
SELECT ALL - ( + col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL - - ( - col1 ) * - col0 * col0 - + cor0.col2 FROM tab1 AS cor0
----
180
40903
83104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab2 AS cor0
----
49
49
49
query I rowsort
SELECT ALL - col1 * + col0 + col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - col1 * + col2 + 97 FROM tab2 AS cor0
----
-1437
-549
-740
query I rowsort
SELECT ALL 95 * - col1 FROM tab2 AS cor0
----
-1615
-2945
-5605
query I rowsort
SELECT - + 97 * col2 AS col2 FROM tab2 AS cor0
----
-2522
-2619
-3686
query I rowsort
SELECT 58 + - 81 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT - col1 * - col0 + col1 AS col1 FROM tab2
----
1360
248
4661
query I rowsort
SELECT DISTINCT + + col1 * col2 AS col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT + 65 + ( col1 ) * ( - col0 + col1 * - 9 ) AS col1 FROM tab0 AS cor0
----
-68563
-82563
-88011
onlyif mysql # use DIV operator for integer division
query I rowsort label-2494
SELECT - 5 DIV col0 + col2 - + ( col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-2494
SELECT - 5 / col0 + col2 - + ( col1 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT DISTINCT - 91 * col1 AS col1 FROM tab1 AS cor0
----
-1183
-2366
-910
query I rowsort
SELECT DISTINCT - + col0 + + col1 * col2 FROM tab0 AS cor0
----
2814
62
7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-2497
SELECT - col1 DIV + cor0.col0 + col0 - CAST( - cor0.col1 AS SIGNED ) FROM tab2 AS cor0
----
137
34
96
skipif mysql # not compatible
query I rowsort label-2497
SELECT - col1 / + cor0.col0 + col0 - CAST ( - cor0.col1 AS INTEGER ) FROM tab2 AS cor0
----
137
34
96
query I rowsort
SELECT ALL - col1 * col2 * col1 AS col2 FROM tab0
----
-244068
-679042
-9409
query I rowsort
SELECT col2 + ( + col1 ) * + col1 AS col2 FROM tab0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( 58 ) * cor0.col1 col1 FROM tab0 cor0
----
-4988
-5278
-5626
query I rowsort
SELECT col1 - ( 42 ) * col2 AS col1 FROM tab0
----
-1300
-3353
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-2502
SELECT DISTINCT col1 * tab2.col0 DIV - col1 + ( + ( tab2.col0 ) ) + - 83 FROM tab2
----
-83
skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT col1 * tab2.col0 / - col1 + ( + ( tab2.col0 ) ) + - 83 FROM tab2
----
-83
query I rowsort
SELECT + ( + col1 ) - col1 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2504
SELECT ALL + + CAST( NULL AS DECIMAL ) + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2504
SELECT ALL + + CAST ( NULL AS REAL ) + col0 * cor0.col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2505
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + ( col1 ) * + col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2507
SELECT + + col1 + + cor0.col2 * col2 - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
1382
657
753
skipif mysql # not compatible
query I rowsort label-2507
SELECT + + col1 + + cor0.col2 * col2 - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
1382
657
753
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2508
SELECT DISTINCT CAST( + col2 + col1 AS SIGNED ) col0 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT CAST ( + col2 + col1 AS INTEGER ) col0 FROM tab0
----
119
173
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT DISTINCT - + col0 + col0 * cor0.col2 AS col2 FROM tab2 AS cor0
----
182
1950
2923
onlyif mysql # use DIV operator for integer division
query I rowsort label-2511
SELECT ALL - col0 DIV - tab0.col0 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-2511
SELECT ALL - col0 / - tab0.col0 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL + col2 + + ( - col1 ) FROM tab1 cor0
----
28
47
83
query I rowsort
SELECT DISTINCT col2 * + 97 + col0 FROM tab0 AS cor0
----
132
3225
8043
query I rowsort
SELECT ALL col1 * ( + 4 ) AS col2 FROM tab1
----
104
40
52
query I rowsort
SELECT tab1.col2 + - 77 AS col1 FROM tab1
----
-20
-23
19
query I rowsort
SELECT - col1 * ( + ( col0 ) ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - cor0.col1 * + col1 * 53 FROM tab2 cor0
----
-15317
-184493
-50933
query I rowsort
SELECT DISTINCT - cor0.col2 * - 89 * - col1 FROM tab0 AS cor0
----
-252582
-664118
-8633
query I rowsort
SELECT DISTINCT col0 * + col2 * col0 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT - col2 * col0 + tab1.col0 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL - - col1 * + col1 + 77 FROM tab1 AS cor0
----
177
246
753
query I rowsort
SELECT + col2 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + col1 * 20 AS col0 FROM tab0 AS cor0
----
1720
1820
1940
query I rowsort
SELECT DISTINCT col0 * + ( 41 * cor0.col2 ) AS col2 FROM tab2 AS cor0
----
123082
7749
83148
query I rowsort
SELECT DISTINCT col2 * 28 FROM tab2 cor0
----
1064
728
756
query I rowsort
SELECT ALL col1 * col1 + - col1 * - col0 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT - + ( - 58 ) * - col0 AS col2 FROM tab0 AS cor0
----
-1392
-2030
-5162
query I rowsort
SELECT ( + ( + col0 ) ) FROM tab2
----
7
78
79
query I rowsort
SELECT DISTINCT 25 FROM tab0, tab1 AS cor0
----
25
query I rowsort
SELECT + col2 * - col0 * - col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT - col0 - col0 * - 5 * col2 AS col1 FROM tab2 AS cor0
----
10062
14931
938
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * col0 col2 FROM tab1
----
-2112
-2640
-99
query I rowsort
SELECT + + ( + cor0.col2 ) * col0 + col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2535
SELECT + + col2 * + 68 * - cor0.col1 + col0 * - CAST( 17 AS SIGNED ) FROM tab1 AS cor0
----
-39848
-86224
-95523
skipif mysql # not compatible
query I rowsort label-2535
SELECT + + col2 * + 68 * - cor0.col1 + col0 * - CAST ( 17 AS INTEGER ) FROM tab1 AS cor0
----
-39848
-86224
-95523
query I rowsort
SELECT cor0.col0 * 26 * col2 FROM tab2 AS cor0
----
4914
52728
78052
query I rowsort
SELECT + col2 * + col2 + + col2 AS col2 FROM tab1
----
2970
3306
9312
query I rowsort
SELECT ALL - ( col1 * - 98 ) FROM tab0
----
8428
8918
9506
query I rowsort
SELECT + col1 * col2 * col0 + col2 AS col0 FROM tab0
----
3396
664200
68145
query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2, tab1, tab1 AS cor0
----
94
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-2542
SELECT + ( col1 ) * - col0 - - 72 DIV - 13 col2 FROM tab1 AS cor0
----
-1045
-645
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2542
SELECT + ( col1 ) * - col0 - - 72 / - 13 col2 FROM tab1 AS cor0
----
-1045
-645
-83
query I rowsort
SELECT + - ( + 74 ) * cor0.col0 + ( - 15 ) * cor0.col1 AS col0 FROM tab0 AS cor0
----
-3066
-4045
-7951
query I rowsort
SELECT - - col2 * col0 + col0 * - col0 FROM tab2 cor0
----
-3239
-4056
140
query I rowsort
SELECT ALL col2 * col1 * + col2 + + col2 FROM tab2 AS cor0
----
22626
24586
39910
query I rowsort
SELECT DISTINCT + col2 * - col2 AS col2 FROM tab1 cor0
----
-2916
-3249
-9216
query I rowsort
SELECT DISTINCT - + col0 + - 75 FROM tab2 AS cor0
----
-153
-154
-82
query I rowsort
SELECT - col2 + col2 * col2 FROM tab2 AS cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 25 ) col2 FROM tab0 AS cor0
----
25
25
25
query I rowsort
SELECT DISTINCT col1 + col1 + ( col0 + - cor0.col0 * col2 ) FROM tab1 AS cor0
----
-107
-3564
-7574
query I rowsort
SELECT + col0 + col2 * - 64 * col2 FROM tab2 cor0
----
-43186
-46649
-92337
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 * - 15 FROM tab0 AS cor0
----
1319
50
519
query I rowsort
SELECT DISTINCT col1 * + col1 + - col2 AS col0 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT - col1 * + col0 + + ( - cor0.col0 * col1 + - col0 ) AS col1 FROM tab1 AS cor0
----
-1344
-159
-2160
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 - - 47 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to ea736fc1f3e44ab1631574c02012b478
query I rowsort
SELECT ALL - ( - col0 ) * + cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2557
SELECT DISTINCT + - 35 + + cor0.col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT + - 35 + + cor0.col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL - 6 * + cor0.col1 - cor0.col2 FROM tab1 AS cor0
----
-117
-174
-210
query I rowsort
SELECT - col0 * col0 * - col2 + cor0.col0 * - col0 FROM tab0 AS cor0
----
0
18432
641601
query I rowsort
SELECT ALL + col0 + col0 + + 72 FROM tab0 cor0
----
120
142
250
query I rowsort
SELECT ALL - + 96 * + col1 * - col2 - + col1 FROM tab1 AS cor0
----
119795
134758
54710
query I rowsort
SELECT - - col0 + 90 * - cor0.col0 AS col0 FROM tab1 AS cor0
----
-267
-5696
-7120
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
query I rowsort
SELECT DISTINCT + 32 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2565
SELECT cor0.col2 + + CAST( NULL AS SIGNED ) / + col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2565
SELECT cor0.col2 + + CAST ( NULL AS INTEGER ) / + col0 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * col0 + 13 AS col2 FROM tab2 AS cor0
----
1356
230
4615
onlyif mysql # use DIV operator for integer division
query I rowsort label-2567
SELECT + col2 + col0 DIV col1 AS col0 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-2567
SELECT + col2 + col0 / col1 AS col0 FROM tab1 AS cor0
----
102
54
63
query I rowsort
SELECT DISTINCT + col2 * + ( - cor0.col2 ) FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT col1 - + 76 AS col2 FROM tab1 AS cor0
----
-50
-63
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2570
SELECT ALL + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + ( col2 * + col0 + col2 ) col0 FROM tab0 AS cor0
----
-61
7289
739
query I rowsort
SELECT + ( - ( col0 ) ) * cor0.col0 + + col1 FROM tab2 cor0
----
-18
-6025
-6224
query I rowsort
SELECT ALL - col2 * + col0 - + cor0.col0 AS col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT DISTINCT + col1 + col1 * cor0.col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - - col0 + - col0 * col2 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT col0 * tab1.col1 + tab1.col2 FROM tab1
----
1136
132
697
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( 22 AS REAL ) FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to a0e2414933a8871692e3623f463e9d4b
query I rowsort
SELECT col1 * + 60 FROM tab2 AS cor0
----
1020
1860
3540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2579
SELECT ALL + + CAST( NULL AS SIGNED ) * 21 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL + + CAST ( NULL AS INTEGER ) * 21 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * 14 AS col1 FROM tab1 AS cor0
----
140
182
364
query I rowsort
SELECT - 1 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2582
SELECT CAST( NULL AS SIGNED ) * - col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2582
SELECT CAST ( NULL AS INTEGER ) * - col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - 30 * cor0.col0 FROM tab1 cor0
----
-1920
-2400
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 36 col1 FROM tab1 AS cor0
----
108
2304
2880
query I rowsort
SELECT DISTINCT col2 * + 22 AS col2 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT + ( - ( col0 ) ) AS col0 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - ( col1 + col1 ) FROM tab0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + 84 * 18 FROM tab0
----
1512
query I rowsort
SELECT DISTINCT + 51 - 0 * col1 FROM tab0
----
51
query I rowsort
SELECT - col1 * + col0 + col0 * col2 FROM tab2 cor0
----
-2574
-28
1659
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT CAST ( + col1 AS REAL ) * col0 * - col0 - tab2.col1 col2 FROM tab2
----
-106114
-1550
-359015
query I rowsort
SELECT + cor0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT tab2.col2 * 6 + col1 + tab2.col2 * col0 * - tab2.col2 FROM tab2
----
-113831
-4910
-52513
query I rowsort
SELECT 43 + - col2 + + col2 FROM tab0
----
43
43
43
query I rowsort
SELECT + ( 62 + col1 ) FROM tab2
----
121
79
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab2.col0 + - col1 col2 FROM tab2
----
-24
19
62
query I rowsort
SELECT DISTINCT + col1 * col2 + - col0 AS col2 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + + col0 * 0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT 11 * - col0 FROM tab2
----
-77
-858
-869
query I rowsort
SELECT ALL - 45 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 63e2b488a204f83ec8c063dafdfd4371
query I rowsort
SELECT - cor1.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT 11 - + tab1.col2 FROM tab1
----
-43
-46
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col0 + col0 col1 FROM tab0
----
178
48
70
query I rowsort
SELECT ALL col1 * + tab1.col1 + col0 AS col1 FROM tab1
----
164
249
679
query I rowsort
SELECT + 77 + tab0.col1 * col2 FROM tab0
----
174
2915
7539
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - ( + col0 ) * col2 col1 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL tab1.col2 * 45 FROM tab1
----
2430
2565
4320
query I rowsort
SELECT ALL - - col0 * col0 AS col2 FROM tab1 cor0
----
4096
6400
9
query I rowsort
SELECT ALL col0 * - 90 FROM tab2 AS cor0
----
-630
-7020
-7110
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 * 53 AS col2 FROM tab2 AS cor0
----
-364
-4056
-4108
query I rowsort
SELECT ALL + col0 * col2 + + ( + col2 ) * col0 + col1 * col1 AS col0 FROM tab0 AS cor0
----
22877
8980
9479
query I rowsort
SELECT ALL - col2 * col2 + - 84 * - col2 AS col1 FROM tab1 AS cor0
----
-1152
1539
1620
query I rowsort
SELECT ALL - cor0.col0 + - col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT DISTINCT - 36 * - col2 * ( 1 ) + col1 * + 12 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-3418
-618
1103
query I rowsort
SELECT + col1 + - col1 * + col2 * + col1 FROM tab1
----
-16211
-36478
-5690
query I rowsort
SELECT + ( + col2 * - 48 ) FROM tab1
----
-2592
-2736
-4608
query I rowsort
SELECT ALL tab2.col1 + ( - 72 ) FROM tab2, tab0 AS cor0
----
9 values hashing to eb33a394add50467e23b2e66717e8ea1
query I rowsort
SELECT + - 53 + col0 * - col0 * + 94 FROM tab2 AS cor0
----
-4659
-571949
-586707
query I rowsort
SELECT ALL + col1 - - col0 FROM tab0 cor0
----
110
132
180
query I rowsort
SELECT col2 * ( - ( col0 ) ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col2 * tab2.col0 * tab2.col2 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT - col1 * col0 * + col2 + 71 * col0 FROM tab2 cor0
----
-114114
-45425
-5362
onlyif mysql # use DIV operator for integer division
query I rowsort label-2623
SELECT DISTINCT + ( col1 ) DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + ( col1 ) / col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + 52 AS col2 FROM tab1 cor0
----
52
query I rowsort
SELECT + 81 + - col2 * + cor0.col2 FROM tab2 AS cor0
----
-1363
-595
-648
query I rowsort
SELECT - 48 * col2 FROM tab0 AS cor0
----
-1584
-3936
-48
query I rowsort
SELECT + col2 + - col1 * cor0.col2 AS col0 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT + - 17 * + col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-16
528
5330
query I rowsort
SELECT DISTINCT + col2 + 37 AS col0 FROM tab2 AS cor0
----
63
64
75
query I rowsort
SELECT ALL + 75 FROM tab0 cor0
----
75
75
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-2631
SELECT col1 DIV - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
skipif mysql # not compatible
query I rowsort label-2631
SELECT col1 / - col1 + - col1 AS col0 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT ALL + col0 + - col0 * cor0.col2 * - 97 AS col1 FROM tab0 AS cor0
----
3430
707995
76848
query I rowsort
SELECT - col1 + 30 * + col1 FROM tab0 AS cor0
----
2494
2639
2813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2634
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL + 23 * - 43 * - cor0.col0 FROM tab2 AS cor0
----
6923
77142
78131
onlyif mysql # use DIV operator for integer division
query I rowsort label-2636
SELECT ALL col0 DIV + col2 + tab1.col1 DIV + col1 AS col1 FROM tab1
----
1
1
2
skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL col0 / + col2 + tab1.col1 / + col1 AS col1 FROM tab1
----
1
1
2
query I rowsort
SELECT + ( - cor0.col2 ) + col0 * 83 AS col0 FROM tab2 AS cor0
----
554
6448
6519
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2638
SELECT - CAST( NULL AS SIGNED ) + 18 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2638
SELECT - CAST ( NULL AS INTEGER ) + 18 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 * col1 - col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT ALL - 33 + col2 * - col0 + + ( col1 + col0 ) FROM tab1 AS cor0
----
-166
-3607
-7620
query I rowsort
SELECT ALL 54 AS col0 FROM tab1, tab0 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - - col0 + col2 * + 30 FROM tab1 AS cor0
----
1623
1774
2960
query I rowsort
SELECT + col2 * - cor0.col2 + - 64 AS col0 FROM tab1 AS cor0
----
-2980
-3313
-9280
query I rowsort
SELECT + cor0.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
query I rowsort
SELECT ALL col2 * 35 * + col2 FROM tab1
----
102060
113715
322560
query I rowsort
SELECT + 85 * col2 FROM tab1
----
4590
4845
8160
query I rowsort
SELECT DISTINCT 78 + + col0 + - col2 AS col0 FROM tab0
----
112
69
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-2648
SELECT + col0 DIV - 72 col2 FROM tab1
----
-1
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2648
SELECT + col0 / - 72 col2 FROM tab1
----
-1
0
0
query I rowsort
SELECT col1 * - col2 - col1 FROM tab1 cor0
----
-1261
-1430
-580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2650
SELECT ALL + + col2 + ( - ( - col2 ) ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL + + col2 + ( - ( - col2 ) ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2651
SELECT ALL - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 53 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor1.col1 col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 cor1, tab2 AS cor2, tab1 AS cor3
----
243 values hashing to 42b04a30acb32fcd35bf97afdee87fe6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2654
SELECT - col1 + + 55 * col2 * CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2654
SELECT - col1 + + 55 * col2 * CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 18 + - col2 AS col1 FROM tab0 AS cor0
----
-100
-19
-51
query I rowsort
SELECT ALL ( 8 ) * col1 AS col2 FROM tab1
----
104
208
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2657
SELECT CAST( + col0 + + col1 AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2657
SELECT CAST ( + col0 + + col1 AS REAL ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 - - 59 FROM tab1 AS cor0
----
-21
-5
56
query I rowsort
SELECT DISTINCT - 91 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-2660
SELECT DISTINCT 14 DIV + tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
0
2
skipif mysql # not compatible
query I rowsort label-2660
SELECT DISTINCT 14 / + tab2.col0 AS col1 FROM tab2, tab2 AS cor0
----
0
2
query I rowsort
SELECT ALL + 87 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 80 ) + tab1.col1 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 5de38f286beb4222178f4b0c29d3b514
query I rowsort
SELECT ALL + cor0.col0 * + 59 FROM tab1, tab0 AS cor0
----
9 values hashing to 90a0de7e00b1efad6e9a30e91603a83b
query I rowsort
SELECT + - 44 * + col1 + col2 FROM tab1 AS cor0
----
-1090
-383
-476
onlyif mysql # use DIV operator for integer division
query I rowsort label-2665
SELECT cor0.col1 + + col2 DIV + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-2665
SELECT cor0.col1 + + col2 / + col1 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT col1 + 5 + col2 FROM tab2
----
60
63
90
query I rowsort
SELECT DISTINCT 56 * cor0.col0 AS col1 FROM tab0 AS cor0
----
1344
1960
4984
query I rowsort
SELECT DISTINCT 97 AS col2 FROM tab2, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
97
query I rowsort
SELECT ALL + - 16 FROM tab0 AS cor0
----
-16
-16
-16
query I rowsort
SELECT ALL - - 70 AS col0 FROM tab0 AS cor0
----
70
70
70
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col0 + + 17 col1 FROM tab0 cor0
----
-18
-7
-72
query I rowsort
SELECT + - 70 AS col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to c2a2994a4e94583683ccda2cc098c58f
query I rowsort
SELECT DISTINCT 7 FROM tab1, tab0, tab0 AS cor0
----
7
query I rowsort
SELECT ALL 73 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 3933a906d17a820ccf95467e2206df8f
query I rowsort
SELECT + 57 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT + 70 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to c76157a7a7ec18de56823b2058b49f32
query I rowsort
SELECT + cor0.col0 + - cor0.col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL 30 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 6c98840ed134c765d56389f4150075f0
onlyif mysql # use DIV operator for integer division
query I rowsort label-2679
SELECT + cor0.col0 + col0 DIV col2 AS col2 FROM tab0 AS cor0
----
24
70
90
skipif mysql # not compatible
query I rowsort label-2679
SELECT + cor0.col0 + col0 / col2 AS col2 FROM tab0 AS cor0
----
24
70
90
query I rowsort
SELECT + + cor0.col0 + cor0.col0 AS col2 FROM tab1 AS cor0
----
128
160
6
query I rowsort
SELECT DISTINCT col2 * + 45 FROM tab2 AS cor0
----
1170
1215
1710
query I rowsort
SELECT ALL + cor0.col0 + + col0 + + col2 AS col1 FROM tab2 AS cor0
----
182
196
41
query I rowsort
SELECT col0 + + ( - 84 ) FROM tab0 AS cor0
----
-49
-60
5
onlyif mysql # use DIV operator for integer division
query I rowsort label-2684
SELECT ALL + - col1 * col1 * 73 + + col1 DIV + col2 + + 73 FROM tab0 cor0
----
-539833
-604439
-686687
skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + - col1 * col1 * 73 + + col1 / + col2 + + 73 FROM tab0 cor0
----
-539833
-604439
-686687
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - ( 1 ) col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT 32 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-2687
SELECT ALL + col0 * col1 * + 50 + + col1 DIV ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
10851
230101
67151
skipif mysql # not compatible
query I rowsort label-2687
SELECT ALL + col0 * col1 * + 50 + + col1 / ( cor0.col1 ) AS col2 FROM tab2 AS cor0
----
10851
230101
67151
query I rowsort
SELECT + 99 AS col1 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2689
SELECT + col0 * + CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2689
SELECT + col0 * + CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2690
SELECT DISTINCT + - col2 * CAST( - ( - col0 ) AS SIGNED ) FROM tab0 cor0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-2690
SELECT DISTINCT + - col2 * CAST ( - ( - col0 ) AS INTEGER ) FROM tab0 cor0
----
-35
-7298
-792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col1 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( + 39 ) * col1 * col0 col2 FROM tab0
----
132502
315952
80582
query I rowsort
SELECT + cor0.col2 * 57 AS col1 FROM tab1 AS cor0
----
3078
3249
5472
query I rowsort
SELECT col0 + + 52 + - col0 AS col2 FROM tab2 cor0
----
52
52
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2695
SELECT DISTINCT + col1 DIV - 69 AS col0 FROM tab0 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-2695
SELECT DISTINCT + col1 / - 69 AS col0 FROM tab0 cor0
----
-1
query I rowsort
SELECT DISTINCT - col0 * + 28 + col0 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT ALL cor0.col2 - ( + col1 ) FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - - cor0.col0 + + cor0.col0 * - col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL 7 * col2 * + col1 + + col0 FROM tab1 AS cor0
----
4054
8816
9831
onlyif mysql # use DIV operator for integer division
query I rowsort label-2700
SELECT ALL - - col2 DIV 21 col0 FROM tab1 cor0
----
2
2
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2700
SELECT ALL - - col2 / 21 col0 FROM tab1 cor0
----
2
2
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2701
SELECT DISTINCT + + 91 DIV + cor0.col1 AS col0 FROM tab2 cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT + + 91 / + cor0.col1 AS col0 FROM tab2 cor0
----
1
2
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2702
SELECT + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-2702
SELECT + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - ( + col2 ) + - col2 * + cor0.col1 AS col0 FROM tab0 AS cor0
----
-2871
-7544
-98
onlyif mysql # use DIV operator for integer division
query I rowsort label-2704
SELECT ALL 1 * cor0.col0 + + col1 DIV + 39 FROM tab2 AS cor0
----
7
79
79
skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL 1 * cor0.col0 + + col1 / + 39 FROM tab2 AS cor0
----
7
79
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-2705
SELECT DISTINCT + tab0.col1 + tab0.col0 DIV tab0.col2 col1 FROM tab0, tab1, tab0 AS cor0
----
132
86
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2705
SELECT DISTINCT + tab0.col1 + tab0.col0 / tab0.col2 col1 FROM tab0, tab1, tab0 AS cor0
----
132
86
92
query I rowsort
SELECT col0 * col0 * - col1 + + tab1.col0 AS col1 FROM tab1
----
-231
-40896
-83120
query I rowsort
SELECT ALL - col0 * - cor0.col2 AS col0 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL - + cor0.col1 + - col1 + + 10 * cor0.col1 AS col0 FROM tab2 AS cor0
----
136
248
472
query I rowsort
SELECT + - ( col0 ) + cor0.col2 FROM tab1 AS cor0
----
-7
16
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 * cor0.col2 col1 FROM tab1 AS cor0
----
-4482
-4731
-7968
query I rowsort
SELECT + col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-2712
SELECT 36 + + col1 DIV - 50 FROM tab1 AS cor0
----
36
36
36
skipif mysql # not compatible
query I rowsort label-2712
SELECT 36 + + col1 / - 50 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT ALL 50 + - col2 * ( - 31 ) FROM tab2 AS cor0
----
1228
856
887
query I rowsort
SELECT DISTINCT + + cor0.col2 * col0 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT col2 + 87 AS col2 FROM tab0
----
120
169
88
query I rowsort
SELECT + ( - 52 ) FROM tab1
----
-52
-52
-52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2717
SELECT col0 + - col0 DIV + col1 FROM tab1
----
3
58
74
skipif mysql # not compatible
query I rowsort label-2717
SELECT col0 + - col0 / + col1 FROM tab1
----
3
58
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-2718
SELECT 25 DIV col0 + + col1 DIV ( - col0 ) + col0 FROM tab0
----
22
33
88
skipif mysql # not compatible
query I rowsort label-2718
SELECT 25 / col0 + + col1 / ( - col0 ) + col0 FROM tab0
----
22
33
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2719
SELECT CAST( + col2 + - col0 AS SIGNED ) * col0 FROM tab1
----
-448
1280
153
skipif mysql # not compatible
query I rowsort label-2719
SELECT CAST ( + col2 + - col0 AS INTEGER ) * col0 FROM tab1
----
-448
1280
153
query I rowsort
SELECT + ( col2 + - col1 ) AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT + - 17 + + 65 FROM tab1, tab2, tab2 AS cor0
----
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-2722
SELECT DISTINCT col2 DIV col1 + tab1.col1 * col0 AS col2 FROM tab1
----
1047
645
80
skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT col2 / col1 + tab1.col1 * col0 AS col2 FROM tab1
----
1047
645
80
query I rowsort
SELECT ALL tab2.col2 + col0 AS col2 FROM tab2
----
104
117
34
query I rowsort
SELECT - - 41 AS col0 FROM tab1 AS cor0
----
41
41
41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 + + tab1.col1 * col1 * col2 col2 FROM tab1
----
15184
36426
5060
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * cor0.col1 + cor0.col0 * col1 col2 FROM tab0 AS cor0
----
-182
-5332
-6014
query I rowsort
SELECT - - col1 + - cor0.col0 * cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT DISTINCT col0 * col1 * col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - + col0 * col2 + - col0 FROM tab0 AS cor0
----
-70
-7387
-816
query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <> NULL OR - col0 IN ( col2 )
----
query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT - col0 * col1 - col1 AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + col2 - col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
query I rowsort
SELECT DISTINCT + - col1 + cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT 75 + col0 * col2 - - col1 FROM tab0 AS cor0
----
207
7464
953
query I rowsort
SELECT ALL + 56 + + col2 * + col2 FROM tab1 AS cor0
----
2972
3305
9272
query I rowsort
SELECT DISTINCT - - 76 - col2 FROM tab1 AS cor0
----
-20
19
22
query I rowsort
SELECT + 6 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
-20
-21
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-2739
SELECT + cor0.col2 DIV + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-77
-78
skipif mysql # not compatible
query I rowsort label-2739
SELECT + cor0.col2 / + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-7
-77
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT ALL ( cor0.col1 ) AS col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT - 44 + + col1 + col1 AS col2 FROM tab0 AS cor0
----
128
138
150
query I rowsort
SELECT col1 * col2 + cor0.col1 * col0 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT ALL - col2 * col2 + + col1 * + col0 FROM tab0 cor0
----
1375
3394
975
query I rowsort
SELECT DISTINCT + col2 + - col1 * + col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT + col0 + col1 * - cor0.col1 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT DISTINCT 8 + - col1 * col1 FROM tab1
----
-161
-668
-92
query I rowsort
SELECT + 0 + + col1 AS col0 FROM tab0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT tab0.col0 * col2 * - col0 col0 FROM tab0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + col2 * col0 + col0 + - col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE col1 * col1 + + col2 + col2 BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT col1 * col0 + col1 AS col1 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-2753
SELECT DISTINCT + col1 DIV - col1 AS col1 FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + col1 / - col1 AS col1 FROM tab1
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + tab2.col0 + col0 col1 FROM tab2
----
182
196
41
query I rowsort
SELECT col1 * col0 * + tab1.col0 FROM tab1
----
234
40960
83200
query I rowsort
SELECT + col2 * - col0 * col2 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NULL NOT IN ( + col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2758
SELECT - col2 DIV - col1 + col2 DIV col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2758
SELECT - col2 / - col1 + col2 / col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT + tab1.col1 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + col2 * + col0 ) AND col1
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2760
SELECT tab0.col0 DIV + col0 - col0 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-2760
SELECT tab0.col0 / + col0 - col0 FROM tab0
----
-23
-34
-88
query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + col1 + tab2.col0 * col1 )
----
query I rowsort
SELECT - col1 * col0 + - tab0.col1 AS col1 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + tab2.col1 - col2 * col0 FROM tab2 WHERE - col0 * col1 >= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-2764
SELECT col2 - - col1 DIV + col0 AS col2 FROM tab1
----
57
62
96
skipif mysql # not compatible
query I rowsort label-2764
SELECT col2 - - col1 / + col0 AS col2 FROM tab1
----
57
62
96
query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 AS col2 FROM tab2
----
42
6006
6162
query I rowsort
SELECT - - col2 + + col0 * 4 FROM tab2 AS cor0
----
338
354
55
query I rowsort
SELECT + + cor0.col0 * - col1 * + col1 + 61 FROM tab1 AS cor0
----
-13459
-1967
-6339
query I rowsort
SELECT - col2 * col0 * - col2 + - col1 FROM tab1
----
207926
737267
8722
onlyif mysql # use DIV operator for integer division
query I rowsort label-2769
SELECT - col1 * col2 DIV + col1 AS col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-2769
SELECT - col1 * col2 / + col1 AS col1 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + col2 + - tab1.col1 AS col1 FROM tab1
----
28
47
83
query I rowsort
SELECT ALL - cor0.col0 - + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + cor0.col0 )
----
query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT NULL <> + col0 * - col2
----
query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( + col2 ) AND NULL
----
query I rowsort
SELECT ALL - col1 + col2 * - col0 AS col1 FROM tab0
----
-132
-7389
-878
query I rowsort
SELECT DISTINCT col1 * tab2.col1 + - col1 * tab2.col1 * col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( col1 )
----
query I rowsort
SELECT DISTINCT col2 * - col0 * tab0.col0 FROM tab0
----
-1225
-19008
-649522
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 NOT IN ( + col2 + + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT ALL col0 + cor0.col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT DISTINCT + - ( - col2 ) * - col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT ALL + - 93 AS col2 FROM tab0 AS cor0
----
-93
-93
-93
query I rowsort
SELECT + - col1 + + cor0.col0 * col0 FROM tab2 AS cor0
----
18
6025
6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col1 FROM tab1 AS cor0
----
-44
query I rowsort
SELECT - + 21 * col2 AS col0 FROM tab1 cor0
----
-1134
-1197
-2016
query I rowsort
SELECT DISTINCT 62 - col1 FROM tab0 cor0
----
-24
-29
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col0 * col0 * ( col0 ) col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT - 76 * + col2 AS col2 FROM tab2 AS cor0
----
-1976
-2052
-2888
query I rowsort
SELECT + 79 * + col0 * - col1 FROM tab0
----
-163056
-268205
-639821
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2789
SELECT ALL - CAST( NULL AS DECIMAL ) + col2 * - col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2789
SELECT ALL - CAST ( NULL AS REAL ) + col2 * - col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 4 * - col0 AS col2 FROM tab2 AS cor0
----
-28
-312
-316
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 col2 FROM tab0 AS cor0
----
14
14
14
query I rowsort
SELECT col2 * + cor0.col1 + col2 FROM tab0 AS cor0
----
2871
7544
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + tab1.col0 col2 FROM tab1
----
1040
640
78
query I rowsort
SELECT + - col0 + 93 FROM tab1 AS cor0
----
13
29
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2795
SELECT DISTINCT + - CAST( - 28 AS SIGNED ) * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
258048
81648
90972
skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT + - CAST ( - 28 AS INTEGER ) * - col2 * - col2 AS col0 FROM tab1 AS cor0
----
258048
81648
90972
query I rowsort
SELECT + 55 + 68 FROM tab2 AS cor0
----
123
123
123
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb
query I rowsort
SELECT DISTINCT + 49 + col0 * - col0 + col0 * + 8 AS col0 FROM tab2
----
-5411
-5560
56
query I rowsort
SELECT col2 * col0 * col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT - 39 + col1 AS col2 FROM tab2
----
-22
-8
20
query I rowsort
SELECT DISTINCT + col2 * col2 * col1 + - col2 AS col0 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT - 4 * + col0 + - col0 AS col0 FROM tab1 AS cor0
----
-15
-320
-400
query I rowsort
SELECT + 82 * col1 + col2 * - 15 AS col2 FROM tab0 cor0
----
6232
6557
7939
query I rowsort
SELECT ALL cor1.col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT - col0 * + 2 + cor0.col1 FROM tab2 AS cor0
----
-141
-97
17
query I rowsort
SELECT 42 + - 78 AS col0 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to aea3eb70e9270b660d4c81f39b11409b
query I rowsort
SELECT DISTINCT + 54 + + col1 AS col1 FROM tab2
----
113
71
85
query I rowsort
SELECT DISTINCT tab1.col1 + ( + col0 ) AS col1 FROM tab1
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2809
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + ( - tab2.col1 * col1 ) col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + ( - tab2.col1 * col1 ) col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + + col1 col0 FROM tab2
----
-19
-33
9
query I rowsort
SELECT + 95 + ( col1 ) AS col0 FROM tab1 AS cor0
----
105
108
121
onlyif mysql # use DIV operator for integer division
query I rowsort label-2812
SELECT ALL + col1 * 10 * + col0 + col0 + - cor0.col0 DIV col0 FROM tab0 AS cor0
----
20663
33984
81078
skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL + col1 * 10 * + col0 + col0 + - cor0.col0 / col0 FROM tab0 AS cor0
----
20663
33984
81078
onlyif mysql # use DIV operator for integer division
query I rowsort label-2813
SELECT + col2 * + 5 + col2 + cor0.col2 DIV col0 AS col2 FROM tab2 AS cor0
----
156
165
228
skipif mysql # not compatible
query I rowsort label-2813
SELECT + col2 * + 5 + col2 + cor0.col2 / col0 AS col2 FROM tab2 AS cor0
----
156
165
228
onlyif mysql # use DIV operator for integer division
query I rowsort label-2814
SELECT ALL + ( + col2 ) DIV - col1 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL + ( + col2 ) / - col1 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT 9 * col2 FROM tab0 AS cor0
----
297
738
9
query I rowsort
SELECT ALL - 10 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1238
1394
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 78 * col2 + col1 col0 FROM tab1
----
4238
4456
7501
query I rowsort
SELECT ALL + 5 FROM tab0, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT DISTINCT + col2 + col2 + - col1 FROM tab1 AS cor0
----
104
179
82
query I rowsort
SELECT DISTINCT + 97 * - col1 + - 80 AS col2 FROM tab2 AS cor0
----
-1729
-3087
-5803
query I rowsort
SELECT DISTINCT + ( - col0 ) * + col1 FROM tab1
----
-1040
-640
-78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 2e7a33467ee3a4d9570560d60302b35a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2823
SELECT + - col0 + + col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2823
SELECT + - col0 + + col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 + - col2 * + ( + 54 + - cor0.col0 ) FROM tab1 AS cor0
----
-2757
2416
506
query I rowsort
SELECT ALL - col2 + - col2 * col0 + + cor0.col1 * - col1 FROM tab2 AS cor0
----
-1177
-3329
-5535
query I rowsort
SELECT ALL - - 4 + col2 FROM tab1 AS cor0
----
100
58
61
query I rowsort
SELECT + - cor0.col1 + + 78 * cor0.col0 AS col2 FROM tab0 AS cor0
----
1786
2633
6851
query I rowsort
SELECT col0 * + col1 + - ( - col1 ) FROM tab1
----
104
1053
650
query I rowsort
SELECT ALL - col0 - + 2 AS col2 FROM tab2
----
-80
-81
-9
query I rowsort
SELECT col0 * + col1 * + col1 FROM tab0 AS cor0
----
177504
329315
737009
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( + col0 AS REAL ) + - col1 / 78 FROM tab0 cor0
----
2063
3394
8098
query I rowsort
SELECT DISTINCT - col2 * 57 AS col1 FROM tab1 AS cor0
----
-3078
-3249
-5472
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 94 col1 FROM tab0 AS cor0
----
94
94
94
query I rowsort
SELECT DISTINCT + col0 + 51 * col0 AS col2 FROM tab1 AS cor0
----
156
3328
4160
query I rowsort
SELECT - 34 * col2 + col2 FROM tab2 AS cor0
----
-1254
-858
-891
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2836
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2836
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2837
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-2837
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 cor0
----
NULL
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 * col0 AS col0 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT DISTINCT + col2 * + col1 * - col1 + col1 * cor0.col1 + + col2 AS col2 FROM tab1 AS cor0
----
-15959
-35774
-5543
query I rowsort
SELECT ALL col0 + 93 * col0 * col2 AS col1 FROM tab1 AS cor0
----
15069
339328
714320
onlyif mysql # use DIV operator for integer division
query I rowsort label-2841
SELECT ALL + 13 + 20 DIV col2 FROM tab0 cor0
----
13
13
33
skipif mysql # not compatible
query I rowsort label-2841
SELECT ALL + 13 + 20 / col2 FROM tab0 cor0
----
13
13
33
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2842
SELECT + + col1 + cor0.col2 * + col0 * + CAST( col2 * - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-2079350
-227422
-9584627
skipif mysql # not compatible
query I rowsort label-2842
SELECT + + col1 + cor0.col2 * + col0 * + CAST ( col2 * - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-2079350
-227422
-9584627
query I rowsort
SELECT DISTINCT - col2 * col0 + - col0 AS col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT ALL + - 28 + + col0 + col1 AS col0 FROM tab0 cor0
----
104
152
82
query I rowsort
SELECT DISTINCT tab1.col0 - ( + col0 * - col0 ) FROM tab1
----
12
4160
6480
query I rowsort
SELECT + tab2.col1 * col0 + - col1 - tab2.col1 AS col1 FROM tab2
----
1309
155
4484
query I rowsort
SELECT col1 * - col2 - col2 AS col2 FROM tab0
----
-2871
-7544
-98
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0, tab0 cor1, tab2, tab1 cor2
----
3645 values hashing to ae08f1949fd59e00b049f28175217e60
query I rowsort
SELECT 33 + + col0 + ( - ( - col2 ) ) FROM tab0
----
204
69
90
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 - col0 + ( - col0 * + col2 ) FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL 4 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 * col2 * 70 col2 FROM tab1 AS cor0
----
207900
219450
369600
query I rowsort
SELECT DISTINCT - 95 * + col2 FROM tab0
----
-3135
-7790
-95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2855
SELECT ALL CAST( col2 AS SIGNED ) - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL CAST ( col2 AS INTEGER ) - col2 AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + tab0.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
24
35
89
query I rowsort
SELECT ALL ( 81 ) AS col1 FROM tab2
----
81
81
81
query I rowsort
SELECT - - ( col2 ) + - col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL + 36 AS col1 FROM tab1 AS cor0
----
36
36
36
query I rowsort
SELECT - col1 + - col0 * + col0 * 5 - + col1 * - 62 FROM tab0 AS cor0
----
-208
-34054
2366
query I rowsort
SELECT ALL - + 82 * col1 AS col2 FROM tab1 AS cor0
----
-1066
-2132
-820
query I rowsort
SELECT ALL + col0 + + col1 * - col2 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-2863
SELECT + col1 DIV + col1 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-2863
SELECT + col1 / + col1 col2 FROM tab2 AS cor0
----
1
1
1
query I rowsort
SELECT + + cor0.col0 + col0 - ( col0 ) FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT col1 - + col1 * 76 FROM tab1
----
-1950
-750
-975
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 cor0, tab1 AS cor1
----
972 values hashing to 75a813ebd5ec5ec2e67a66d0593ff763
query I rowsort
SELECT 71 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 95a6ff35b7b8f00868fb58bcaa32d0c2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2868
SELECT - col1 + 50 DIV - col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-2868
SELECT - col1 + 50 / - col2 AS col0 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2869
SELECT + cor0.col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2869
SELECT + cor0.col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col2 + 48 FROM tab2 AS cor0
----
74
75
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-2871
SELECT - col2 - + 23 DIV + col1 FROM tab2 AS cor0
----
-26
-27
-39
skipif mysql # not compatible
query I rowsort label-2871
SELECT - col2 - + 23 / + col1 FROM tab2 AS cor0
----
-26
-27
-39
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2872
SELECT + col2 * - CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2872
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col0 + col0 * 84 AS col1 FROM tab2 AS cor0
----
581
6474
6557
onlyif mysql # use DIV operator for integer division
query I rowsort label-2874
SELECT DISTINCT - - col0 * - col1 DIV + col1 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-2874
SELECT DISTINCT - - col0 * - col1 / + col1 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + col1 - + ( + col1 * col0 ) FROM tab1 AS cor0
----
-1027
-52
-630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + + ( + col0 + cor0.col2 * 92 ) col0 FROM tab1 AS cor0
----
5025
5365
9008
query I rowsort
SELECT cor0.col0 + 94 AS col0 FROM tab0 AS cor0
----
118
129
183
query I rowsort
SELECT ( - col2 ) * - col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT 53 * col0 * col1 + - col1 AS col2 FROM tab0 cor0
----
109306
179838
429156
query I rowsort
SELECT DISTINCT - - 83 AS col0 FROM tab1, tab2 AS cor0
----
83
query I rowsort
SELECT - col1 * col1 * col0 AS col2 FROM tab1 cor0
----
-13520
-2028
-6400
query I rowsort
SELECT - col2 * - col1 + - 23 * col0 AS col1 FROM tab1 cor0
----
-592
-902
1335
query I rowsort
SELECT DISTINCT - col0 * + 50 + + col2 * - col2 FROM tab1 cor0
----
-13216
-3066
-6449
query I rowsort
SELECT DISTINCT cor0.col1 * - 25 - - 28 FROM tab0 AS cor0
----
-2122
-2247
-2397
query I rowsort
SELECT - - col2 - + col0 * 76 FROM tab2 AS cor0
----
-505
-5902
-5966
query I rowsort
SELECT - col1 + col0 * 30 FROM tab1 cor0
----
1910
2387
64
query I rowsort
SELECT ALL - col1 + - ( col2 ) AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - 36 * col0 + + col1 FROM tab0 AS cor0
----
-1163
-3113
-778
query I rowsort
SELECT ALL + - col0 + col0 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2890
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-2890
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2891
SELECT - col0 + col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2891
SELECT - col0 + col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - ( + col2 ) * - col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + col2 * - col2 + cor0.col0 * 22 AS col1 FROM tab2 AS cor0
----
-575
1040
294
query I rowsort
SELECT DISTINCT - col2 * 24 FROM tab0
----
-1968
-24
-792
query I rowsort
SELECT DISTINCT tab2.col2 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2896
SELECT - + col2 DIV col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-2896
SELECT - + col2 / col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT DISTINCT ( - col0 ) * tab1.col1 * col2 AS col0 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT 76 + tab2.col0 AS col2 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 550b020d7830ab704e65efe4f9dfeac8
query I rowsort
SELECT 90 * - col1 + 63 * col2 + col1 FROM tab1
----
1088
2701
4891
query I rowsort
SELECT DISTINCT + col2 * col0 * 17 FROM tab0
----
124066
13464
595
onlyif mysql # use DIV operator for integer division
query I rowsort label-2901
SELECT 85 * tab2.col2 DIV col0 AS col0 FROM tab2
----
28
327
40
skipif mysql # not compatible
query I rowsort label-2901
SELECT 85 * tab2.col2 / col0 AS col0 FROM tab2
----
28
327
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 + col1 col2 FROM tab0
----
24
29
35
query I rowsort
SELECT col1 * + ( col2 ) + + col1 AS col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col2 + - tab1.col0 * - col1 - - 12 FROM tab1
----
36
595
956
query I rowsort
SELECT + col0 + col2 - - 22 AS col1 FROM tab2 AS cor0
----
126
139
56
onlyif mysql # use DIV operator for integer division
query I rowsort label-2906
SELECT + tab0.col0 + col2 DIV col1 col0 FROM tab0
----
24
35
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2906
SELECT + tab0.col0 + col2 / col1 col0 FROM tab0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2907
SELECT DISTINCT + 63 * tab2.col0 DIV - ( - 94 ) FROM tab2
----
4
52
skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + 63 * tab2.col0 / - ( - 94 ) FROM tab2
----
4
52
onlyif mysql # use DIV operator for integer division
query I rowsort label-2908
SELECT ALL - col2 * col0 + - col1 + - col1 DIV col1 col0 FROM tab1
----
-189
-3659
-7694
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2908
SELECT ALL - col2 * col0 + - col1 + - col1 / col1 col0 FROM tab1
----
-189
-3659
-7694
query I rowsort
SELECT DISTINCT - tab2.col2 + col1 * - ( - col2 ) FROM tab2
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2910
SELECT ALL col0 + ( - ( + col0 ) + - CAST( col2 AS SIGNED ) ) FROM tab1
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL col0 + ( - ( + col0 ) + - CAST ( col2 AS INTEGER ) ) FROM tab1
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col1 + - col0 col0 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT + col0 - - ( + col0 ) AS col0 FROM tab0
----
178
48
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2913
SELECT - CAST( col2 AS SIGNED ) + + col1 AS col0 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-2913
SELECT - CAST ( col2 AS INTEGER ) + + col1 AS col0 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT 46 + 4 * + col1 * + col2 FROM tab2
----
2630
3394
6182
query I rowsort
SELECT DISTINCT col0 * 83 AS col1 FROM tab1
----
249
5312
6640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col2 + col2 col2 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col0 FROM tab1 AS cor0
----
35
35
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * - ( col1 ) - cor0.col0 * + col1 col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT DISTINCT - ( col0 ) + cor0.col0 * col2 AS col0 FROM tab0 AS cor0
----
0
7209
768
query I rowsort
SELECT + + 56 * - col2 FROM tab2 AS cor0
----
-1456
-1512
-2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2921
SELECT CAST( NULL AS SIGNED ) + tab0.col2 * + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2921
SELECT CAST ( NULL AS INTEGER ) + tab0.col2 * + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - - 45 * - 39 + + col0 FROM tab0 AS cor0
----
-1666
-1720
-1731
onlyif mysql # use DIV operator for integer division
query I rowsort label-2923
SELECT ALL + col1 * cor0.col2 + + cor0.col2 DIV - col0 FROM tab0 AS cor0
----
2837
7462
97
skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + col1 * cor0.col2 + + cor0.col2 / - col0 FROM tab0 AS cor0
----
2837
7462
97
query I rowsort
SELECT + col2 + + col0 * + 47 AS col1 FROM tab1 AS cor0
----
195
3065
3856
query I rowsort
SELECT ALL - col2 + col1 * - col0 FROM tab0 cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT 89 * - col2 FROM tab1 AS cor0
----
-4806
-5073
-8544
query I rowsort
SELECT ALL + - col1 * col2 + 7 + - col0 AS col2 FROM tab1 AS cor0
----
-1321
-1400
-627
query I rowsort
SELECT ALL + 55 + + cor0.col2 AS col1 FROM tab0 AS cor0
----
137
56
88
query I rowsort
SELECT ALL 98 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT + + cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT - 34 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-69
-7332
-826
query I rowsort
SELECT DISTINCT + cor0.col2 + - col0 * - col2 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # use DIV operator for integer division
query I rowsort label-2933
SELECT DISTINCT - ( col1 ) DIV col0 AS col2 FROM tab2
----
-4
0
skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - ( col1 ) / col0 AS col2 FROM tab2
----
-4
0
query I rowsort
SELECT - 84 * cor0.col2 AS col1 FROM tab0 AS cor0
----
-2772
-6888
-84
query I rowsort
SELECT ALL + cor0.col1 * - col0 + - 4 FROM tab1 AS cor0
----
-1044
-644
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 70 col1 FROM tab2 AS cor0
----
70
query I rowsort
SELECT DISTINCT - col1 + col0 * - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + - cor0.col1 * col1 + 92 * col1 FROM tab0 AS cor0
----
-485
516
91
query I rowsort
SELECT 50 + + 98 * + cor0.col2 FROM tab2 AS cor0
----
2598
2696
3774
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2940
SELECT ALL - - CAST( NULL AS SIGNED ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL - - CAST ( NULL AS INTEGER ) + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 46 AS col0 FROM tab0, tab2 AS cor0
----
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2942
SELECT + + CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2942
SELECT + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 63 AS col2 FROM tab2 AS cor0
----
1071
1953
3717
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2944
SELECT ALL + col1 * + CAST( + 52 AS SIGNED ) AS col2 FROM tab2
----
1612
3068
884
skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL + col1 * + CAST ( + 52 AS INTEGER ) AS col2 FROM tab2
----
1612
3068
884
query I rowsort
SELECT + + 53 + col0 AS col0 FROM tab1 AS cor0
----
117
133
56
query I rowsort
SELECT 50 * - col0 + - col1 * 76 FROM tab0 AS cor0
----
-11366
-7736
-9122
query I rowsort
SELECT ALL + 31 * col0 AS col1 FROM tab1
----
1984
2480
93
query I rowsort
SELECT col1 * + 39 AS col0 FROM tab0
----
3354
3549
3783
onlyif mysql # use DIV operator for integer division
query I rowsort label-2949
SELECT ALL + 16 + + col2 * - col1 DIV - col1 FROM tab0
----
17
49
98
skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL + 16 + + col2 * - col1 / - col1 FROM tab0
----
17
49
98
query I rowsort
SELECT - ( + 80 + tab0.col0 ) * 6 AS col2 FROM tab0
----
-1014
-624
-690
query I rowsort
SELECT 98 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809
query I rowsort
SELECT DISTINCT 73 * tab1.col1 * col0 AS col1 FROM tab1
----
46720
5694
75920
query I rowsort
SELECT col1 + + col0 * - col1 * col0 + 19 FROM tab1 cor0
----
-189
-40931
-83168
query I rowsort
SELECT - tab1.col1 * + 74 FROM tab1, tab0 AS cor0
----
9 values hashing to 28bd692b4dd993c885d8940dfdac2be6
query I rowsort
SELECT DISTINCT 51 AS col0 FROM tab1, tab2 AS cor0, tab0 cor1
----
51
query I rowsort
SELECT col2 * col2 + col2 * 59 FROM tab1
----
14880
6102
6612
query I rowsort
SELECT ( + col1 * + col1 ) AS col1 FROM tab2
----
289
3481
961
query I rowsort
SELECT DISTINCT + col0 * 67 FROM tab1
----
201
4288
5360
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col1 FROM tab2 cor0
----
1343
217
4602
onlyif mysql # use DIV operator for integer division
query I rowsort label-2960
SELECT + - col2 DIV CAST( + col0 + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-11
0
3
skipif mysql # not compatible
query I rowsort label-2960
SELECT + - col2 / CAST ( + col0 + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-11
0
3
query I rowsort
SELECT DISTINCT + col0 * - ( + col2 ) + - col1 AS col2 FROM tab1 cor0
----
-188
-3658
-7693
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2962
SELECT ALL cor0.col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL cor0.col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-2963
SELECT DISTINCT - + col2 + 14 DIV 93 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT - + col2 + 14 / 93 FROM tab2 AS cor0
----
-26
-27
-38
onlyif mysql # use DIV operator for integer division
query I rowsort label-2964
SELECT col0 + - 58 DIV 76 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-2964
SELECT col0 + - 58 / 76 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-2965
SELECT - col1 DIV ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-2965
SELECT - col1 / ( col0 ) AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT - + ( 2 ) AS col0 FROM tab1 cor0
----
-2
onlyif mysql # use DIV operator for integer division
query I rowsort label-2968
SELECT DISTINCT col1 DIV - 33 col0 FROM tab2
----
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT col1 / - 33 col0 FROM tab2
----
-1
0
query I rowsort
SELECT DISTINCT + 16 FROM tab2, tab1 AS cor0
----
16
query I rowsort
SELECT + - cor0.col1 * col2 * cor0.col1 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT 6 AS col2 FROM tab1 AS cor0
----
6
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-2972
SELECT 11 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-2972
SELECT 11 / - col0 AS col1 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT - + col2 + 6 AS col0 FROM tab2 AS cor0
----
-20
-21
-32
query I rowsort
SELECT - - col1 * + col0 + + 83 FROM tab0 AS cor0
----
2147
3478
8182
query I rowsort
SELECT 84 + + col0 FROM tab0 cor0
----
108
119
173
query I rowsort
SELECT + col1 * - col1 + + col2 * - col0 FROM tab0 AS cor0
----
-15579
-8188
-9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2977
SELECT - col0 + + col0 * - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
42
6006
6162
skipif mysql # not compatible
query I rowsort label-2977
SELECT - col0 + + col0 * - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
42
6006
6162
onlyif mysql # use DIV operator for integer division
query I rowsort label-2978
SELECT cor0.col0 * col2 + 70 DIV 48 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-2978
SELECT cor0.col0 * col2 + 70 / 48 FROM tab0 AS cor0
----
36
7299
793
onlyif mysql # use DIV operator for integer division
query I rowsort label-2979
SELECT - col2 + + col0 DIV + col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34
skipif mysql # not compatible
query I rowsort label-2979
SELECT - col2 + + col0 / + col2 AS col1 FROM tab0 AS cor0
----
-33
-81
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2980
SELECT - col2 * + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2980
SELECT - col2 * + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - 68 + 49 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4
query I rowsort
SELECT - + col0 + ( - col1 ) * - col2 FROM tab1 cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT col0 + tab0.col1 - - col2 FROM tab0
----
133
143
262
query I rowsort
SELECT + col0 * col0 - 46 FROM tab0 AS cor0
----
1179
530
7875
query I rowsort
SELECT ALL + col2 * + tab2.col0 AS col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT ALL col1 - tab0.col0 FROM tab0
----
2
62
62
query I rowsort
SELECT ALL col0 + + col2 * ( col0 ) * col2 FROM tab2
----
114155
5110
52806
onlyif mysql # use DIV operator for integer division
query I rowsort label-2988
SELECT ALL col1 + col0 - tab1.col2 DIV col2 AS col2 FROM tab1
----
28
73
92
skipif mysql # not compatible
query I rowsort label-2988
SELECT ALL col1 + col0 - tab1.col2 / col2 AS col2 FROM tab1
----
28
73
92
query I rowsort
SELECT ( col0 * col2 + col0 ) FROM tab2
----
196
2106
3081
query I rowsort
SELECT + ( + col2 ) * tab2.col0 + col1 + col0 * col1 AS col0 FROM tab2
----
4362
437
6689
query I rowsort
SELECT + 31 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-2992
SELECT ALL - col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-2992
SELECT ALL - col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 * - ( + col1 ) + - col0 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
query I rowsort
SELECT + col1 * - col1 + - col2 * col1 + col0 * col0 AS col2 FROM tab0 cor0
----
-7822
-8281
-9658
query I rowsort
SELECT - col1 * - ( + col0 ) + + col1 FROM tab2
----
1360
248
4661
onlyif mysql # use DIV operator for integer division
query I rowsort label-2996
SELECT DISTINCT - col1 DIV 26 + tab2.col1 AS col1 FROM tab2
----
17
30
57
skipif mysql # not compatible
query I rowsort label-2996
SELECT DISTINCT - col1 / 26 + tab2.col1 AS col1 FROM tab2
----
17
30
57
query I rowsort
SELECT ALL + col1 * 41 FROM tab2 AS cor0
----
1271
2419
697
query I rowsort
SELECT + col1 - cor0.col0 AS col2 FROM tab1 cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-2999
SELECT DISTINCT + col1 + - 28 * col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
58
63
69
skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT + col1 + - 28 * col0 / + col0 AS col2 FROM tab0 AS cor0
----
58
63
69
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3000
SELECT DISTINCT + + col2 + CAST( + col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-33
42
75
skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT + + col2 + CAST ( + col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-33
42
75
query I rowsort
SELECT DISTINCT col0 * + col0 + + col0 FROM tab2 cor0
----
56
6162
6320
onlyif mysql # use DIV operator for integer division
query I rowsort label-3002
SELECT col2 DIV + ( - col2 + + col0 ) FROM tab0 cor0
----
-3
0
11
skipif mysql # not compatible
query I rowsort label-3002
SELECT col2 / + ( - col2 + + col0 ) FROM tab0 cor0
----
-3
0
11
query I rowsort
SELECT DISTINCT + col0 * 55 * + col0 FROM tab2 AS cor0
----
2695
334620
343255
query I rowsort
SELECT ALL col1 + - ( col2 ) * col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 * - col0 >= ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3006
SELECT col1 DIV - col0 col2 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3006
SELECT col1 / - col0 col2 FROM tab2
----
-4
0
0
query I rowsort
SELECT + col0 + col2 * - col2 FROM tab1 WHERE col2 NOT BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT - col0 + col1 - col2 * col2 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( - col0 + + col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 BETWEEN col2 * - col0 + col1 AND NULL
----
query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL ) BETWEEN col1 AND col2 + col0 * - col2 * col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 * + col0 - col2 col1 FROM tab1
----
-27
262087
511904
query I rowsort
SELECT col1 + - col2 * - col2 AS col0 FROM tab2
----
1461
735
760
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 BETWEEN NULL AND ( - col1 * col0 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT DISTINCT + ( col0 ) * 0 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3015
SELECT 96 DIV + col1 FROM tab2 AS cor0
----
1
3
5
skipif mysql # not compatible
query I rowsort label-3015
SELECT 96 / + col1 FROM tab2 AS cor0
----
1
3
5
query I rowsort
SELECT cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + col1 * + col2 - col0 * + col0 FROM tab2
----
-4550
-5595
788
onlyif mysql # use DIV operator for integer division
query I rowsort label-3018
SELECT tab2.col0 DIV tab2.col0 col1 FROM tab2
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3018
SELECT tab2.col0 / tab2.col0 col1 FROM tab2
----
1
1
1
query I rowsort
SELECT ALL - col1 * col1 - col0 FROM tab2
----
-3559
-368
-968
query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN ( + col2 ) AND NULL
----
24
86
33
query I rowsort
SELECT ALL + + 81 + col0 FROM tab0 cor0
----
105
116
170
query I rowsort
SELECT + + 45 AS col0 FROM tab0 AS cor0
----
45
45
45
query I rowsort
SELECT ALL cor0.col2 * - col0 - cor0.col1 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - - 91 + col1 FROM tab0 AS cor0
----
177
182
188
query I rowsort
SELECT DISTINCT - 91 * col1 * col1 + col2 AS col0 FROM tab2 AS cor0
----
-26261
-316745
-87424
query I rowsort
SELECT DISTINCT - cor0.col0 + col0 AS col2 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3027
SELECT DISTINCT - 78 DIV col0 FROM tab1 AS cor0
----
-1
-26
0
skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 78 / col0 FROM tab1 AS cor0
----
-1
-26
0
query I rowsort
SELECT ALL - 80 + col0 * - col0 * - col1 AS col2 FROM tab2 cor0
----
106017
1439
358876
query I rowsort
SELECT DISTINCT + col0 * - col1 - + 20 * 94 FROM tab0 AS cor0
----
-3944
-5275
-9979
query I rowsort
SELECT - 57 + + col0 FROM tab0
----
-22
-33
32
onlyif mysql # use DIV operator for integer division
query I rowsort label-3031
SELECT ALL + cor0.col2 * col2 DIV - 22 - cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
-294
-3795
-8098
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + cor0.col2 * col2 / - 22 - cor0.col2 * + col0 col2 FROM tab1 AS cor0
----
-294
-3795
-8098
query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab2 cor0
----
22
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3033
SELECT ALL 86 + col2 * + CAST( - ( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
121
7384
878
skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL 86 + col2 * + CAST ( - ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
121
7384
878
query I rowsort
SELECT - ( col2 ) * 15 * + col1 + - col1 AS col2 FROM tab1
----
-18733
-21086
-8560
query I rowsort
SELECT DISTINCT + 75 * + col2 - col0 * col2 FROM tab1 AS cor0
----
-480
3888
627
onlyif mysql # use DIV operator for integer division
query I rowsort label-3036
SELECT DISTINCT ( + col2 ) DIV - col0 - - col0 * 87 FROM tab0 AS cor0
----
2087
3045
7743
skipif mysql # not compatible
query I rowsort label-3036
SELECT DISTINCT ( + col2 ) / - col0 - - col0 * 87 FROM tab0 AS cor0
----
2087
3045
7743
query I rowsort
SELECT DISTINCT + col0 * + col2 + col1 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT DISTINCT 46 * + col1 FROM tab1
----
1196
460
598
query I rowsort
SELECT + 5 FROM tab1, tab0 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT col1 + col1 * + col2 AS col2 FROM tab1
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3041
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 36 * ( + col0 * - ( col0 ) ) + cor0.col0 + + col2 AS col2 FROM tab1 AS cor0
----
-147335
-230224
-267
onlyif mysql # use DIV operator for integer division
query I rowsort label-3043
SELECT + col1 * col2 + col0 DIV - col0 FROM tab1 AS cor0
----
1247
1403
569
skipif mysql # not compatible
query I rowsort label-3043
SELECT + col1 * col2 + col0 / - col0 FROM tab1 AS cor0
----
1247
1403
569
query I rowsort
SELECT DISTINCT - - 93 + + col0 * + col2 FROM tab2 AS cor0
----
2121
282
3095
query I rowsort
SELECT ALL col1 * col1 + - col1 FROM tab0 AS cor0
----
7310
8190
9312
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col0 * - col1 col2 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT col2 + + col0 * + tab1.col1 AS col0 FROM tab1
----
1136
132
697
query I rowsort
SELECT + cor0.col1 * - col0 + + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL + + 26 * 2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
1496
728
781
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 - col0 col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + ( ( col1 ) + tab0.col0 ) * + col2 AS col2 FROM tab0
----
132
14760
3630
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col0 ) + col1 * col2 col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT DISTINCT + ( - col1 ) AS col0 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT - + ( ( - col1 ) ) + - col2 * - col0 * + col0 FROM tab2 cor0
----
1354
158243
237175
query I rowsort
SELECT + - ( 62 ) * col0 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT - + col2 + - col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + - col0 * + col0 + col2 AS col0 FROM tab1 cor0
----
-4039
-6304
45
query I rowsort
SELECT + + col2 * - col0 AS col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 18 * col1 AS col1 FROM tab1
----
180
234
468
query I rowsort
SELECT + ( + col0 * - col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT - ( col2 + col1 ) * + col1 AS col1 FROM tab2
----
-1798
-5015
-935
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3062
SELECT + CAST( col0 AS SIGNED ) + + col2 FROM tab0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-3062
SELECT + CAST ( col0 AS INTEGER ) + + col2 FROM tab0
----
171
36
57
query I rowsort
SELECT DISTINCT - col1 - + col0 * col2 AS col2 FROM tab2 AS cor0
----
-2087
-220
-3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + cor0.col1 col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 col0 FROM tab1 AS cor0
----
-121
-176
-57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + + col2 col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT col2 * - col2 + col2 AS col1 FROM tab0
----
-1056
-6642
0
query III rowsort
SELECT * FROM tab0 WHERE NULL > + col2
----
query I rowsort
SELECT ALL col2 * tab1.col0 + + tab1.col0 AS col2 FROM tab1
----
165
3712
7760
query I rowsort
SELECT col0 * col0 + col2 AS col2 FROM tab2 WHERE col0 BETWEEN col2 AND NULL
----
query I rowsort
SELECT - col1 + - col2 + + col2 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT col2 / col1 FROM tab2 WHERE NULL NOT IN ( - tab2.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3073
SELECT DISTINCT col2 * + col0 + col1 DIV - col1 FROM tab0
----
34
7297
791
skipif mysql # not compatible
query I rowsort label-3073
SELECT DISTINCT col2 * + col0 + col1 / - col1 FROM tab0
----
34
7297
791
query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 NOT IN ( + tab1.col0 * col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + tab0.col1 * col0 )
----
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= ( - col0 + tab0.col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3077
SELECT - tab1.col0 DIV - tab1.col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3077
SELECT - tab1.col0 / - tab1.col2 FROM tab1
----
0
0
1
query I rowsort
SELECT DISTINCT - - cor0.col2 * col0 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + - col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT tab1.col0 * col2 * col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT - col0 - col2 * + col2 FROM tab0
----
-1113
-36
-6813
query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 >= col1
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col0 ) NOT IN ( - col2 ) OR NOT NULL < + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT - cor0.col2 * col2 + col2 FROM tab0 cor0
----
-1056
-6642
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col2 + - col2 col1 FROM tab0 AS cor0
----
-1122
-2
-6806
query I rowsort
SELECT - + cor0.col0 + + col1 * col1 AS col0 FROM tab1 AS cor0
----
36
673
89
query I rowsort
SELECT DISTINCT - + 64 + - 82 * col0 AS col1 FROM tab2 AS cor0
----
-638
-6460
-6542
query I rowsort
SELECT - + 2 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT - 10 * + 89 * cor0.col2 AS col0 FROM tab0 AS cor0
----
-29370
-72980
-890
query I rowsort
SELECT ALL 70 + 86 FROM tab2 AS cor0
----
156
156
156
query I rowsort
SELECT ALL col0 + - ( + col2 ) * - col2 * - col1 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT - 51 + col2 AS col1 FROM tab2 AS cor0
----
-13
-24
-25
query I rowsort
SELECT + cor0.col0 * + 61 FROM tab2 AS cor0
----
427
4758
4819
query I rowsort
SELECT tab1.col2 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - col0 + - tab0.col2 * - 72 AS col0 FROM tab0
----
2352
37
5815
query I rowsort
SELECT - col2 * tab2.col2 + tab2.col0 * col1 FROM tab2
----
-101
-512
3926
query I rowsort
SELECT + col1 + + col2 * - 86 AS col1 FROM tab2
----
-2177
-2291
-3251
onlyif mysql # use DIV operator for integer division
query I rowsort label-3098
SELECT - col0 * col1 DIV col1 + col1 AS col1 FROM tab2
----
-19
-62
24
skipif mysql # not compatible
query I rowsort label-3098
SELECT - col0 * col1 / col1 + col1 AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT + 99 * 33 FROM tab0 AS cor0
----
3267
3267
3267
query I rowsort
SELECT DISTINCT - col1 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL 25 * - ( + cor0.col2 * + col0 ) FROM tab2 cor0
----
-4725
-50700
-75050
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( col0 ) + cor0.col1 col1 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3103
SELECT DISTINCT - CAST( col0 AS SIGNED ) * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * cor0.col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( + 88 AS REAL ) * col0 FROM tab2 AS cor0
----
616
6864
6952
query I rowsort
SELECT DISTINCT + col1 + col2 * + col0 AS col1 FROM tab0 cor0
----
132
7389
878
query I rowsort
SELECT DISTINCT - 69 * - col1 + col1 FROM tab1
----
1820
700
910
query I rowsort
SELECT 89 * col1 + - col2 + + col1 AS col2 FROM tab2 AS cor0
----
1492
2763
5284
onlyif mysql # use DIV operator for integer division
query I rowsort label-3108
SELECT ( - col2 ) DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3108
SELECT ( - col2 ) / col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT - - 32 * + col2 FROM tab2 AS cor0
----
1216
832
864
query I rowsort
SELECT ALL 14 * + col1 FROM tab0 AS cor0
----
1204
1274
1358
query I rowsort
SELECT ALL + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) col2 FROM tab0
----
1
33
82
query I rowsort
SELECT - - col1 + + col2 * 68 AS col0 FROM tab1 AS cor0
----
3698
3886
6541
query I rowsort
SELECT - cor0.col0 * + col0 AS col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - ( - 38 ) AS col0 FROM tab0, tab1 AS cor0
----
38
query I rowsort
SELECT + cor0.col2 * 58 FROM tab1 AS cor0
----
3132
3306
5568
query I rowsort
SELECT + + cor0.col2 * 89 FROM tab2 AS cor0
----
2314
2403
3382
query I rowsort
SELECT col2 * + tab0.col2 + 4 AS col0 FROM tab0
----
1093
5
6728
query I rowsort
SELECT DISTINCT cor0.col0 * + col1 + - cor0.col0 * + col0 * - col1 FROM tab1 AS cor0
----
312
41600
84240
query I rowsort
SELECT ALL col2 * + 58 + col0 * cor0.col0 FROM tab0 AS cor0
----
12677
1283
2490
query I rowsort
SELECT ALL + - col2 * 75 FROM tab2 cor0
----
-1950
-2025
-2850
query I rowsort
SELECT ( - 21 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757
query I rowsort
SELECT DISTINCT + - col1 - + ( + col0 ) * col2 AS col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT + col0 * 58 AS col1 FROM tab1 AS cor0
----
174
3712
4640
query I rowsort
SELECT ALL - col0 + - 36 * col2 AS col1 FROM tab0 AS cor0
----
-1212
-3041
-71
query I rowsort
SELECT - cor0.col0 * + 11 FROM tab1 AS cor0
----
-33
-704
-880
onlyif mysql # use DIV operator for integer division
query I rowsort label-3127
SELECT DISTINCT + + col2 DIV + 27 AS col1 FROM tab0 AS cor0
----
0
1
3
skipif mysql # not compatible
query I rowsort label-3127
SELECT DISTINCT + + col2 / + 27 AS col1 FROM tab0 AS cor0
----
0
1
3
query I rowsort
SELECT DISTINCT + col1 + col1 * - cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL + cor0.col2 * 53 AS col2 FROM tab0 cor0
----
1749
4346
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col2 * - col2 * + col0 col1 FROM tab0 AS cor0
----
-26103
-34
-598354
query I rowsort
SELECT + col2 * + col2 + - col1 AS col0 FROM tab1 AS cor0
----
2890
3239
9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-3132
SELECT ALL - cor0.col1 + - 23 DIV + col1 AS col0 FROM tab1 AS cor0
----
-12
-14
-26
skipif mysql # not compatible
query I rowsort label-3132
SELECT ALL - cor0.col1 + - 23 / + col1 AS col0 FROM tab1 AS cor0
----
-12
-14
-26
query I rowsort
SELECT + - cor0.col2 + ( 98 ) AS col2 FROM tab0 AS cor0
----
16
65
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3134
SELECT DISTINCT col1 * col1 DIV + col1 - col0 FROM tab1 AS cor0
----
-54
-67
23
skipif mysql # not compatible
query I rowsort label-3134
SELECT DISTINCT col1 * col1 / + col1 - col0 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3135
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * - col0 * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * - col0 * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - col1 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col1 + + col0 col2 FROM tab0 AS cor0
----
-7372
-8192
-9374
query I rowsort
SELECT ALL col0 * - 1 AS col2 FROM tab1 AS cor0
----
-3
-64
-80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3139
SELECT ALL CAST( NULL AS SIGNED ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3139
SELECT ALL CAST ( NULL AS INTEGER ) * - cor0.col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 20 + 59 FROM tab2 AS cor0
----
39
39
39
query I rowsort
SELECT + - 84 AS col2 FROM tab1 cor0
----
-84
-84
-84
query I rowsort
SELECT ALL + 90 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT DISTINCT - col1 + - cor0.col1 FROM tab0 cor0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-3144
SELECT ALL + ( col2 ) DIV - 23 + + 44 FROM tab2 AS cor0
----
43
43
43
skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL + ( col2 ) / - 23 + + 44 FROM tab2 AS cor0
----
43
43
43
query I rowsort
SELECT ALL 36 FROM tab0, tab0 AS cor0, tab1 cor1
----
27 values hashing to 4d1892e880125dc90345721151acb22c
query I rowsort
SELECT DISTINCT 47 + - cor0.col2 * - 25 AS col0 FROM tab1 AS cor0
----
1397
1472
2447
query I rowsort
SELECT ALL - + 40 * + col2 * - 90 AS col1 FROM tab0 AS cor0
----
118800
295200
3600
query I rowsort
SELECT DISTINCT - 74 + col2 * ( col0 ) FROM tab0 cor0
----
-39
718
7224
query I rowsort
SELECT DISTINCT ( - cor0.col2 ) + col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT 2 AS col2 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
query I rowsort
SELECT + ( col1 ) + - 72 AS col1 FROM tab1 cor0
----
-46
-59
-62
query I rowsort
SELECT DISTINCT 86 * + col0 AS col1 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT - col0 + col2 - + 54 FROM tab2 AS cor0
----
-106
-34
-95
query I rowsort
SELECT DISTINCT - + 15 AS col1 FROM tab0 AS cor0
----
-15
query I rowsort
SELECT DISTINCT - col0 + - col2 AS col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT ALL + cor0.col2 + - col1 * + col0 * - col1 AS col2 FROM tab1 AS cor0
----
13616
2082
6457
query I rowsort
SELECT - + col0 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT ALL col0 + col2 * + tab0.col2 FROM tab0
----
1113
36
6813
query I rowsort
SELECT cor1.col0 + - 69 AS col0 FROM tab1, tab0 cor0, tab0 AS cor1
----
27 values hashing to 8cb8bf5e76ce47667e443e91d42bb106
query I rowsort
SELECT ALL - 22 * - col2 + 63 FROM tab0
----
1867
789
85
onlyif mysql # use DIV operator for integer division
query I rowsort label-3161
SELECT ALL 70 * tab0.col2 DIV col0 + col0 * tab0.col2 FROM tab0
----
37
7362
888
skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL 70 * tab0.col2 / col0 + col0 * tab0.col2 FROM tab0
----
37
7362
888
query I rowsort
SELECT + 97 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c
query I rowsort
SELECT - 95 AS col2 FROM tab0, tab2 cor0
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3164
SELECT CAST( NULL AS DECIMAL ) * + 60 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3164
SELECT CAST ( NULL AS REAL ) * + 60 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + ( + tab1.col1 ) FROM tab1, tab0 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT ALL + ( col2 ) * + col2 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + tab2.col2 + ( col0 ) ) * - col1 * + 93 col0 FROM tab2
----
184977
570648
98022
query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
48
query I rowsort
SELECT ALL - col0 * col1 + + col1 AS col1 FROM tab1
----
-1027
-52
-630
query I rowsort
SELECT ALL + - col2 * + col1 + + col1 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3171
SELECT ALL - - col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - - col1 / - col0 AS col0 FROM tab2 AS cor0
----
-4
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3172
SELECT DISTINCT CAST( NULL AS SIGNED ) * 79 col2 FROM tab0, tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 79 col2 FROM tab0, tab0 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + cor0.col0 * + col0 * cor0.col1 col2 FROM tab1 AS cor0
----
288
41017
83296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3174
SELECT + cor0.col1 + - CAST( - 6 AS SIGNED ) * + col2 * cor0.col1 FROM tab1 AS cor0
----
3430
7501
8450
skipif mysql # not compatible
query I rowsort label-3174
SELECT + cor0.col1 + - CAST ( - 6 AS INTEGER ) * + col2 * cor0.col1 FROM tab1 AS cor0
----
3430
7501
8450
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( - col1 AS REAL ) + col2 + cor0.col2 * + col2 FROM tab2 AS cor0
----
1499
761
787
query I rowsort
SELECT - - col0 + cor0.col2 AS col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT - + col0 * 98 + col1 + - ( + col0 ) FROM tab0 AS cor0
----
-2290
-3368
-8720
query I rowsort
SELECT 22 * 44 + cor0.col2 + - col0 FROM tab2 AS cor0
----
916
927
988
query I rowsort
SELECT ALL - + col0 * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - ( ( + col0 ) ) + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT ALL + 21 + col1 FROM tab2 AS cor0
----
38
52
80
query I rowsort
SELECT - - 77 FROM tab1 cor0
----
77
77
77
query I rowsort
SELECT DISTINCT col0 + + 74 * 76 FROM tab0
----
5648
5659
5713
query I rowsort
SELECT col1 * + 78 + + col2 AS col2 FROM tab2 AS cor0
----
1364
2445
4628
query I rowsort
SELECT - + 62 * col2 - col2 FROM tab1 AS cor0
----
-3402
-3591
-6048
query I rowsort
SELECT - col0 * col1 + col1 * + 38 FROM tab1 AS cor0
----
-260
-546
910
query I rowsort
SELECT - ( + col2 ) * + col1 AS col0 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-3188
SELECT col2 + col1 DIV col1 AS col0 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-3188
SELECT col2 + col1 / col1 AS col0 FROM tab1
----
55
58
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - col0 col2 FROM tab0
----
-178
-48
-70
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * + cor0.col0 * ( ( - col1 ) + + col0 ) col2 FROM tab1 AS cor0
----
-3726
196992
514560
query I rowsort
SELECT DISTINCT cor1.col2 AS col1 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
26
27
38
query I rowsort
SELECT col1 * col2 + + col2 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + - col1 + - cor0.col2 * - col1 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT col2 + + cor0.col1 * - ( + col2 ) AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * col2 col2 FROM tab0 AS cor0
----
-70
-7387
-816
query I rowsort
SELECT ALL + col1 * cor0.col2 + 76 AS col1 FROM tab2 cor0
----
1610
722
913
query I rowsort
SELECT ALL col1 + cor0.col0 * 82 AS col1 FROM tab1 AS cor0
----
272
5258
6573
query I rowsort
SELECT - col1 * 27 * col1 FROM tab1
----
-18252
-2700
-4563
query I rowsort
SELECT ( col2 ) * + col1 * col1 AS col2 FROM tab2
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3201
SELECT - ( 80 ) DIV col1 FROM tab1
----
-3
-6
-8
skipif mysql # not compatible
query I rowsort label-3201
SELECT - ( 80 ) / col1 FROM tab1
----
-3
-6
-8
query I rowsort
SELECT + 18 * - tab0.col1 * cor0.col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to e4c3aea845be32ab2d27b74a3ec80bce
query I rowsort
SELECT tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col2 * + 79 FROM tab1
----
4266
4503
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-3205
SELECT ALL - 13 DIV + col1 col1 FROM tab2
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL - 13 / + col1 col1 FROM tab2
----
0
0
0
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-3207
SELECT tab2.col1 DIV 35 AS col0 FROM tab2
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3207
SELECT tab2.col1 / 35 AS col0 FROM tab2
----
0
0
1
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 97b2ae21242e1e40418ee2ad06544f7a
onlyif mysql # use DIV operator for integer division
query I rowsort label-3209
SELECT + col1 DIV 39 AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3209
SELECT + col1 / 39 AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT 50 + col2 + col1 FROM tab2 AS cor0
----
105
108
135
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * 96 col2 FROM tab0 cor0
----
-2304
-3360
-8544
query I rowsort
SELECT ALL col1 * + ( col0 ) FROM tab0
----
2064
3395
8099
query I rowsort
SELECT tab1.col0 - - 36 FROM tab1, tab1 AS cor0
----
9 values hashing to 01eea2942002ddd5d9758b49ad8cc2af
onlyif mysql # use DIV operator for integer division
query I rowsort label-3214
SELECT ALL - + col1 DIV + col1 + - 58 + + col2 AS col2 FROM tab2 AS cor0
----
-21
-32
-33
skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - + col1 / + col1 + - 58 + + col2 AS col2 FROM tab2 AS cor0
----
-21
-32
-33
query I rowsort
SELECT ALL - col2 * col2 + - col1 * + col0 * cor0.col0 AS col2 FROM tab2 AS cor0
----
-107541
-2248
-359632
query I rowsort
SELECT + + 65 FROM tab2 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT + + 2 + cor0.col2 * col2 AS col0 FROM tab2 AS cor0
----
1446
678
731
query I rowsort
SELECT ALL ( - col0 ) * 52 * - col1 FROM tab2 AS cor0
----
11284
239304
69836
query I rowsort
SELECT ALL 39 * - col2 FROM tab0 AS cor0
----
-1287
-3198
-39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 col1 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to e8a5cb10c0973a78554f344d4f6e7e74
onlyif mysql # use DIV operator for integer division
query I rowsort label-3221
SELECT DISTINCT + - cor0.col1 - cor0.col1 DIV 83 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT + - cor0.col1 - cor0.col1 / 83 AS col2 FROM tab1 AS cor0
----
-10
-13
-26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * col2 + - 31 * - col1 col0 FROM tab1 AS cor0
----
-260
-598
-845
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1, tab2, tab2 AS cor0, tab0
----
81 values hashing to d7d3fabcafbed14f0d6ffd37195c971c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 col0 FROM tab2, tab1, tab0 AS cor0, tab0
----
81 values hashing to 8c9db501a604ea66e3b5e5598f3f2a91
query I rowsort
SELECT DISTINCT + + col0 + 55 AS col0 FROM tab1 cor0
----
119
135
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-3226
SELECT - col1 DIV ( + col2 + - col1 ) FROM tab2 AS cor0
----
0
1
7
skipif mysql # not compatible
query I rowsort label-3226
SELECT - col1 / ( + col2 + - col1 ) FROM tab2 AS cor0
----
0
1
7
query I rowsort
SELECT col2 + 23 FROM tab2 AS cor0
----
49
50
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-3228
SELECT ALL col2 DIV 68 + + cor0.col0 * col1 - 41 FROM tab1 AS cor0
----
1000
37
599
skipif mysql # not compatible
query I rowsort label-3228
SELECT ALL col2 / 68 + + cor0.col0 * col1 - 41 FROM tab1 AS cor0
----
1000
37
599
query I rowsort
SELECT DISTINCT + cor0.col0 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - col1 + - col2 + + 26 AS col0 FROM tab1 AS cor0
----
-41
-54
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3231
SELECT DISTINCT + + col2 + + col2 DIV col0 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT + + col2 + + col2 / col0 FROM tab2 AS cor0
----
26
30
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-3232
SELECT + col1 + 6 DIV + 25 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-3232
SELECT + col1 + 6 / + 25 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 * - 86 col1 FROM tab2 cor0
----
2236
2322
3268
query I rowsort
SELECT ALL + - tab0.col1 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # use DIV operator for integer division
query I rowsort label-3235
SELECT col2 + col0 DIV ( - 18 ) AS col1 FROM tab0
----
0
32
78
skipif mysql # not compatible
query I rowsort label-3235
SELECT col2 + col0 / ( - 18 ) AS col1 FROM tab0
----
0
32
78
query I rowsort
SELECT DISTINCT - col0 + + 65 FROM tab0 AS cor0
----
-24
30
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-3237
SELECT ALL 41 DIV col2 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL 41 / col2 - + cor0.col0 AS col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT + ( + ( col1 ) ) + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3240
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) + col1 * col2 col2 FROM tab1 AS cor0
----
1328
1407
634
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3240
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) + col1 * col2 col2 FROM tab1 AS cor0
----
1328
1407
634
onlyif mysql # use DIV operator for integer division
query I rowsort label-3241
SELECT col1 DIV col2 + - col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3241
SELECT col1 / col2 + - col0 col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT ALL + col0 + - 15 FROM tab0 AS cor0
----
20
74
9
query I rowsort
SELECT DISTINCT + col0 + 46 AS col1 FROM tab1 AS cor0
----
110
126
49
query I rowsort
SELECT ALL + col1 * 97 FROM tab1 AS cor0
----
1261
2522
970
query I rowsort
SELECT - 98 + - col1 AS col0 FROM tab0 cor0
----
-184
-189
-195
query I rowsort
SELECT DISTINCT - col0 - tab0.col2 AS col1 FROM tab0
----
-171
-36
-57
onlyif mysql # use DIV operator for integer division
query I rowsort label-3247
SELECT col0 DIV + col1 + + col2 * - col2 + col0 * - col1 * + col0 col1 FROM tab1
----
-3150
-44203
-92410
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3247
SELECT col0 / + col1 + + col2 * - col2 + col0 * - col1 * + col0 col1 FROM tab1
----
-3150
-44203
-92410
query I rowsort
SELECT - col1 * col0 + col1 + - col1 AS col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-3249
SELECT - tab1.col2 DIV col2 FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3249
SELECT - tab1.col2 / col2 FROM tab1
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3250
SELECT col2 DIV 86 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3250
SELECT col2 / 86 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 + - ( col2 ) * - col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT - col1 - col0 * col2 AS col2 FROM tab2
----
-2087
-220
-3019
query I rowsort
SELECT 34 + 0 AS col0 FROM tab1
----
34
34
34
query I rowsort
SELECT ALL 70 * 2 * col0 + + col0 * + col1 AS col2 FROM tab1
----
12240
498
9600
query I rowsort
SELECT ALL - - 59 * - 22 AS col1 FROM tab0 AS cor0
----
-1298
-1298
-1298
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3256
SELECT + - CAST( - 67 AS SIGNED ) FROM tab0 AS cor0
----
67
67
67
skipif mysql # not compatible
query I rowsort label-3256
SELECT + - CAST ( - 67 AS INTEGER ) FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT - col0 * 13 * col0 + + ( + 71 ) FROM tab2 AS cor0
----
-566
-79021
-81062
onlyif mysql # use DIV operator for integer division
query I rowsort label-3258
SELECT ALL - col1 DIV 24 + col0 AS col0 FROM tab2
----
6
76
79
skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL - col1 / 24 + col0 AS col0 FROM tab2
----
6
76
79
query I rowsort
SELECT DISTINCT - 22 FROM tab2, tab2 cor0
----
-22
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT tab2.col1 * - 11 + tab2.col1 * + CAST ( + col1 + col1 AS REAL ) FROM tab2
----
1581
391
6313
onlyif mysql # use DIV operator for integer division
query I rowsort label-3261
SELECT - + 21 DIV + col2 FROM tab0 AS cor0
----
-21
0
0
skipif mysql # not compatible
query I rowsort label-3261
SELECT - + 21 / + col2 FROM tab0 AS cor0
----
-21
0
0
query I rowsort
SELECT - col0 * col2 + - col0 AS col0 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT col1 * + 4 FROM tab0
----
344
364
388
query I rowsort
SELECT + 45 * cor0.col1 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 3a7fa0e00bc72391fc4753e3301af1a9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3265
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + 98 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3265
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + 98 FROM tab2
----
NULL
query I rowsort
SELECT ALL col1 + 84 * col2 FROM tab0
----
181
2858
6979
onlyif mysql # use DIV operator for integer division
query I rowsort label-3267
SELECT ALL 19 * - 0 + + col0 + + 72 DIV ( col0 * - col1 ) FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-3267
SELECT ALL 19 * - 0 + + col0 + + 72 / ( col0 * - col1 ) FROM tab0
----
24
35
89
query I rowsort
SELECT ALL 7 + col0 + col0 FROM tab1
----
13
135
167
query I rowsort
SELECT ALL + - 7 AS col0 FROM tab2, tab1, tab2 cor0
----
27 values hashing to 82db7c0390abae7ccf4512b1302a6466
query I rowsort
SELECT + - 22 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT 24 + - col0 AS col0 FROM tab0 AS cor0
----
-11
-65
0
query I rowsort
SELECT + - col1 * col0 + - 87 FROM tab1 AS cor0
----
-1127
-165
-727
query I rowsort
SELECT ALL + - 64 AS col2 FROM tab1 AS cor0
----
-64
-64
-64
query I rowsort
SELECT DISTINCT + 38 AS col2 FROM tab1 cor0
----
38
query I rowsort
SELECT - + 4 * + col1 FROM tab1 AS cor0
----
-104
-40
-52
query I rowsort
SELECT DISTINCT col0 * + col0 + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL - col2 * col0 * - col0 FROM tab0 AS cor0
----
1225
19008
649522
query I rowsort
SELECT - 39 + col1 FROM tab1 AS cor0
----
-13
-26
-29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3279
SELECT - 39 * + cor0.col0 * CAST( NULL AS SIGNED ) + + col1 / cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3279
SELECT - 39 * + cor0.col0 * CAST ( NULL AS INTEGER ) + + col1 / cor0.col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * 15 col1 FROM tab0, tab2 AS cor0
----
-105
-1170
-1185
query I rowsort
SELECT ALL - - col0 * 15 FROM tab2 AS cor0
----
105
1170
1185
query I rowsort
SELECT DISTINCT + col0 * ( col2 ) + cor0.col1 * + ( 33 ) + + col2 AS col0 FROM tab2 AS cor0
----
1239
3601
4001
onlyif mysql # use DIV operator for integer division
query I rowsort label-3283
SELECT DISTINCT + - col1 DIV 17 + col1 col2 FROM tab1 AS cor0
----
10
13
25
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT + - col1 / 17 + col1 col2 FROM tab1 AS cor0
----
10
13
25
query I rowsort
SELECT DISTINCT - col2 * + cor0.col1 + + 88 FROM tab2 AS cor0
----
-1446
-558
-749
query I rowsort
SELECT 35 + 30 * cor0.col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 7db123fb4fd57bbefda95658e6da94c5
query I rowsort
SELECT ALL - - col0 * 4 + - col0 AS col0 FROM tab2 AS cor0
----
21
234
237
onlyif mysql # use DIV operator for integer division
query I rowsort label-3287
SELECT DISTINCT - - col0 DIV 17 + 38 AS col2 FROM tab2 AS cor0
----
38
42
skipif mysql # not compatible
query I rowsort label-3287
SELECT DISTINCT - - col0 / 17 + 38 AS col2 FROM tab2 AS cor0
----
38
42
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3288
SELECT DISTINCT cor0.col2 * CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT cor0.col2 * CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 24 * - cor0.col0 + + col2 FROM tab1 AS cor0
----
-1479
-18
-1824
query I rowsort
SELECT DISTINCT - 21 * 37 AS col2 FROM tab2 AS cor0
----
-777
onlyif mysql # use DIV operator for integer division
query I rowsort label-3291
SELECT - + col0 DIV - col0 + col1 * ( - col0 ) FROM tab0 AS cor0
----
-2063
-3394
-8098
skipif mysql # not compatible
query I rowsort label-3291
SELECT - + col0 / - col0 + col1 * ( - col0 ) FROM tab0 AS cor0
----
-2063
-3394
-8098
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3292
SELECT DISTINCT - CAST( + 61 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-61
skipif mysql # not compatible
query I rowsort label-3292
SELECT DISTINCT - CAST ( + 61 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-61
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3293
SELECT ALL - CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL - CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + 58 + + 21 AS col2 FROM tab0
----
-3
46
78
query I rowsort
SELECT + col1 + + 73 AS col2 FROM tab1 cor0
----
83
86
99
query I rowsort
SELECT col0 + col2 * 36 AS col0 FROM tab2 AS cor0
----
1014
1447
979
query I rowsort
SELECT - col2 * - ( + 43 ) - col0 AS col1 FROM tab1 AS cor0
----
2319
2387
4048
query I rowsort
SELECT col1 + + cor0.col1 * - 80 FROM tab1 AS cor0
----
-1027
-2054
-790
query I rowsort
SELECT col0 + + 90 AS col0 FROM tab1 AS cor0
----
154
170
93
query I rowsort
SELECT - ( + col1 ) * col1 + + col1 + col2 FROM tab1
----
-33
-596
-60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 col1 FROM tab0, tab0 cor0, tab2 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT - ( + 54 ) FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 71e27a12767d3a987ce05e4d6edad211
query I rowsort
SELECT col0 + 94 AS col1 FROM tab1 AS cor0
----
158
174
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3304
SELECT col1 DIV - 4 + - 67 * col0 AS col1 FROM tab2 AS cor0
----
-476
-5240
-5297
skipif mysql # not compatible
query I rowsort label-3304
SELECT col1 / - 4 + - 67 * col0 AS col1 FROM tab2 AS cor0
----
-476
-5240
-5297
query I rowsort
SELECT + col2 + ( + col1 ) * col1 FROM tab1 AS cor0
----
157
265
730
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3306
SELECT CAST( - col0 AS SIGNED ) + - col2 col0 FROM tab2 AS cor0
----
-104
-117
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3306
SELECT CAST ( - col0 AS INTEGER ) + - col2 col0 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT + 15 * + col2 FROM tab2 AS cor0
----
390
405
570
query I rowsort
SELECT ALL + + ( cor0.col2 ) * - cor0.col2 * - 83 + col2 AS col2 FROM tab2 AS cor0
----
119890
56134
60534
query I rowsort
SELECT DISTINCT - 57 AS col1 FROM tab1, tab1 AS cor0 CROSS JOIN tab0
----
-57
query I rowsort
SELECT ALL + 4 FROM tab0, tab0 cor0
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b
query I rowsort
SELECT - ( - col2 ) * col1 * - col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab2 AS cor0
----
-13
-13
-13
query I rowsort
SELECT ALL 91 FROM tab2, tab0 AS cor0 CROSS JOIN tab1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT ALL 6 * + 69 AS col1 FROM tab1
----
414
414
414
query I rowsort
SELECT - 48 AS col0 FROM tab0
----
-48
-48
-48
query I rowsort
SELECT + 54 * tab1.col1 AS col1 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 94a555de71c488492c4467ab7ef59cc5
query I rowsort
SELECT DISTINCT - + 94 FROM tab1, tab2, tab2 AS cor0
----
-94
query I rowsort
SELECT - col2 + - col2 * + 97 * col1 FROM tab1 AS cor0
----
-121152
-136242
-55347
query I rowsort
SELECT - - col2 * col1 AS col2 FROM tab0 cor0
----
2838
7462
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-3320
SELECT col0 DIV col0 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3320
SELECT col0 / col0 col0 FROM tab1
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + tab2.col0 col0 FROM tab2, tab1, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT + col0 * col0 * col2 FROM tab0 cor0
----
1225
19008
649522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3323
SELECT - col2 - - col0 * + CAST( + 47 + - col0 AS SIGNED ) FROM tab1
----
-1145
-2736
78
skipif mysql # not compatible
query I rowsort label-3323
SELECT - col2 - - col0 * + CAST ( + 47 + - col0 AS INTEGER ) FROM tab1
----
-1145
-2736
78
query I rowsort
SELECT ALL ( cor0.col2 ) FROM tab0, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT - col0 + - 67 FROM tab2 cor0
----
-145
-146
-74
query I rowsort
SELECT DISTINCT + col2 - + 95 * - col0 * + col1 AS col0 FROM tab2
----
127623
20642
437216
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3327
SELECT ALL + col0 + CAST( + 98 AS SIGNED ) - - tab0.col2 * tab0.col2 FROM tab0
----
1211
134
6911
skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + col0 + CAST ( + 98 AS INTEGER ) - - tab0.col2 * tab0.col2 FROM tab0
----
1211
134
6911
query I rowsort
SELECT DISTINCT col1 * 47 FROM tab2 AS cor0
----
1457
2773
799
query I rowsort
SELECT - - col1 + + col1 * col2 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL - col0 * 0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 + - 12 * + col0 AS col2 FROM tab1 AS cor0
----
-62
-778
-973
query I rowsort
SELECT DISTINCT + + col2 + 88 FROM tab2 AS cor0
----
114
115
126
query I rowsort
SELECT DISTINCT - col0 * 3 FROM tab2
----
-21
-234
-237
query I rowsort
SELECT 82 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 660751b3166f5cb8964b7ef659605795
query I rowsort
SELECT + - col2 * - 50 AS col1 FROM tab1 AS cor0
----
2700
2850
4800
onlyif mysql # use DIV operator for integer division
query I rowsort label-3336
SELECT - 18 * col1 + cor0.col2 * col0 DIV 12 FROM tab0 AS cor0
----
-1030
-1482
-1744
skipif mysql # not compatible
query I rowsort label-3336
SELECT - 18 * col1 + cor0.col2 * col0 / 12 FROM tab0 AS cor0
----
-1030
-1482
-1744
query I rowsort
SELECT col1 + - cor0.col1 * cor0.col2 FROM tab2 AS cor0
----
-1475
-629
-806
query I rowsort
SELECT 2 + 52 AS col2 FROM tab2, tab1 AS cor0, tab2 cor1, tab2 cor2
----
81 values hashing to c12c2f39593b3ce157086f29d8391c32
query I rowsort
SELECT DISTINCT - col1 * col2 * - ( col2 * + col0 ) AS col1 FROM tab0 AS cor0
----
2247696
3395
54457676
query I rowsort
SELECT + - col1 + + col1 * 97 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT DISTINCT + col1 + col0 * + cor0.col0 * - col1 FROM tab0 AS cor0
----
-118728
-49450
-720720
onlyif mysql # use DIV operator for integer division
query I rowsort label-3342
SELECT DISTINCT - cor0.col2 DIV col0 + col2 DIV col1 FROM tab1 AS cor0
----
-16
5
6
skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - cor0.col2 / col0 + col2 / col1 FROM tab1 AS cor0
----
-16
5
6
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col2 + + 55 FROM tab2 AS cor0
----
1589
701
892
query I rowsort
SELECT ALL col1 + 47 FROM tab0
----
133
138
144
query I rowsort
SELECT ALL + tab0.col1 + - ( tab0.col1 ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * + col1 + + tab2.col2 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - col0 * + 3 AS col0 FROM tab2
----
-21
-234
-237
query I rowsort
SELECT ALL - tab0.col0 + - 52 * - tab0.col1 FROM tab0
----
4448
4643
5009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3349
SELECT ALL - col0 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - col0 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3350
SELECT ALL col1 + - CAST( col1 AS SIGNED ) * - tab2.col1 + + col0 FROM tab2
----
3618
385
999
skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL col1 + - CAST ( col1 AS INTEGER ) * - tab2.col1 + + col0 FROM tab2
----
3618
385
999
query I rowsort
SELECT ALL + col0 * - col0 + - 8 + col2 FROM tab2 AS cor0
----
-30
-6066
-6211
query I rowsort
SELECT ALL + col2 + - 56 + 95 FROM tab0 AS cor0
----
121
40
72
query I rowsort
SELECT DISTINCT col2 - ( col1 * cor0.col0 + col2 * cor0.col0 ) AS col2 FROM tab1 cor0
----
-186
-4231
-8624
query I rowsort
SELECT ALL + - col0 * - 55 + + col1 FROM tab2 AS cor0
----
416
4349
4362
query I rowsort
SELECT ALL + cor0.col1 * - 35 + - col0 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
-946
0
4914
onlyif mysql # use DIV operator for integer division
query I rowsort label-3356
SELECT + - ( 19 ) DIV - col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3356
SELECT + - ( 19 ) / - col1 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3357
SELECT DISTINCT CAST( col1 AS SIGNED ) * col2 AS col2 FROM tab2 cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT CAST ( col1 AS INTEGER ) * col2 AS col2 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT 82 * + col2 + + cor0.col2 * 47 * cor0.col0 + col1 * - col2 AS col0 FROM tab2 AS cor0
----
10260
143564
95914
onlyif mysql # use DIV operator for integer division
query I rowsort label-3359
SELECT 91 DIV col1 FROM tab2 AS cor0
----
1
2
5
skipif mysql # not compatible
query I rowsort label-3359
SELECT 91 / col1 FROM tab2 AS cor0
----
1
2
5
query I rowsort
SELECT DISTINCT + cor0.col1 + + 80 * cor0.col0 * col2 + col1 * - cor0.col0 FROM tab0 AS cor0
----
-498
575832
61382
query I rowsort
SELECT DISTINCT 69 AS col2 FROM tab2 cor0
----
69
query I rowsort
SELECT 70 * - col2 * cor0.col1 FROM tab1 cor0
----
-39900
-87360
-98280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3363
SELECT - CAST( NULL AS SIGNED ) + + col1 + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3363
SELECT - CAST ( NULL AS INTEGER ) + + col1 + - col1 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + - 65 AS col1 FROM tab1
----
-39
-52
-55
query I rowsort
SELECT DISTINCT - col2 + + 90 FROM tab1
----
-6
33
36
query I rowsort
SELECT DISTINCT + 23 + - col0 AS col0 FROM tab0 AS cor0
----
-1
-12
-66
query I rowsort
SELECT ALL - - cor0.col1 * + 27 AS col0 FROM tab1 AS cor0
----
270
351
702
query I rowsort
SELECT ALL + col2 + cor0.col2 + + col0 AS col1 FROM tab2 AS cor0
----
130
155
61
query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab2 cor0
----
5
query I rowsort
SELECT + col1 * + cor0.col2 - ( 26 ) * + col0 * - col2 FROM tab2 AS cor0
----
54262
5751
78698
query I rowsort
SELECT ALL cor0.col0 * col1 + ( col2 * col1 ) FROM tab1 AS cor0
----
1210
1482
2288
query I rowsort
SELECT ALL + ( + col1 ) * - ( col1 ) FROM tab2 AS cor0
----
-289
-3481
-961
query I rowsort
SELECT + col0 - - col0 * cor0.col2 FROM tab1 AS cor0
----
165
3712
7760
query I rowsort
SELECT DISTINCT + 77 + + col1 AS col2 FROM tab1 AS cor0
----
103
87
90
onlyif mysql # use DIV operator for integer division
query I rowsort label-3375
SELECT ALL - - col0 + - col0 * col1 DIV col1 AS col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL - - col0 + - col0 * col1 / col1 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + col2 * col1 * + col2 AS col0 FROM tab2 AS cor0
----
22572
24510
39858
query I rowsort
SELECT - + col0 + col2 * + ( + col2 ) AS col2 FROM tab1 AS cor0
----
2913
3185
9136
query I rowsort
SELECT DISTINCT ( col0 ) + col2 * - 55 AS col0 FROM tab0 AS cor0
----
-1791
-20
-4421
onlyif mysql # use DIV operator for integer division
query I rowsort label-3379
SELECT DISTINCT 86 - - col0 DIV 99 AS col0 FROM tab2 AS cor0
----
86
skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT 86 - - col0 / 99 AS col0 FROM tab2 AS cor0
----
86
query I rowsort
SELECT ALL + 82 - cor0.col2 * - cor0.col1 AS col2 FROM tab1 cor0
----
1330
1486
652
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3381
SELECT - ( cor0.col1 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3381
SELECT - ( cor0.col1 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3382
SELECT DISTINCT + cor0.col2 DIV col1 AS col0 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + cor0.col2 / col1 AS col0 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL - col0 * col0 * - col2 FROM tab2 AS cor0
----
1323
158184
237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3384
SELECT ALL + col1 DIV col1 + cor0.col0 * - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1977
-3297
-8007
skipif mysql # not compatible
query I rowsort label-3384
SELECT ALL + col1 / col1 + cor0.col0 * - cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
-1977
-3297
-8007
query I rowsort
SELECT ALL + col1 - + col0 AS col0 FROM tab1
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3386
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3386
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3387
SELECT ALL - col2 * - ( - col1 + - col0 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL - col2 * - ( - col1 + - col0 ) * 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-3388
SELECT - col0 * - CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3388
SELECT - col0 * - CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 31 - - col1 FROM tab0
----
55
60
66
query I rowsort
SELECT ALL - ( + 50 ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3391
SELECT ALL col2 - + col1 DIV 65 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-3391
SELECT ALL col2 - + col1 / 65 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3392
SELECT DISTINCT - + col2 + - cor0.col1 DIV 53 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - + col2 + - cor0.col1 / 53 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + - col0 + cor0.col1 * + cor0.col0 AS col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT - + col1 * + ( - 54 ) FROM tab1 AS cor0
----
1404
540
702
query I rowsort
SELECT ALL + col0 - - col2 * + 84 * col0 AS col1 FROM tab0 AS cor0
----
2975
613121
66552
onlyif mysql # use DIV operator for integer division
query I rowsort label-3396
SELECT - col2 DIV col2 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-3396
SELECT - col2 / col2 + + col0 * - col1 AS col1 FROM tab1 AS cor0
----
-1041
-641
-79
query I rowsort
SELECT + col2 - 55 * col2 FROM tab1 AS cor0
----
-2916
-3078
-5184
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 - - col2 col1 FROM tab0
----
253
37
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 + tab1.col2 + - 27 * + col1 col2 FROM tab1
----
-160
-202
-595
query I rowsort
SELECT col0 - col2 * tab0.col2 AS col1 FROM tab0
----
-1065
-6635
34
query I rowsort
SELECT col0 + - 82 + 22 AS col0 FROM tab0
----
-25
-36
29
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + + col2 + col1 col1 FROM tab2
----
1499
761
787
query I rowsort
SELECT + col0 + + 30 AS col2 FROM tab2 cor0
----
108
109
37
query I rowsort
SELECT ALL - col2 + + 91 AS col1 FROM tab1 AS cor0
----
-5
34
37
query I rowsort
SELECT DISTINCT + col0 + ( - 65 ) * col1 AS col0 FROM tab0 AS cor0
----
-5566
-5826
-6270
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3406
SELECT col1 + - CAST( col1 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
110
182
702
skipif mysql # not compatible
query I rowsort label-3406
SELECT col1 + - CAST ( col1 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT 5 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT - + cor0.col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
onlyif mysql # use DIV operator for integer division
query I rowsort label-3409
SELECT DISTINCT - - 50 DIV + col2 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3409
SELECT DISTINCT - - 50 / + col2 FROM tab1 AS cor0
----
0
query I rowsort
SELECT ALL + ( + col0 ) * col1 + - 33 FROM tab0 AS cor0
----
2031
3362
8066
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3411
SELECT DISTINCT ( tab2.col0 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-3411
SELECT DISTINCT ( tab2.col0 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
query I rowsort
SELECT - + col0 * col0 * cor0.col1 AS col2 FROM tab0 cor0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT + 45 * + cor0.col0 AS col1 FROM tab2 AS cor0
----
315
3510
3555
query I rowsort
SELECT ALL - + 3 * + col2 FROM tab0 AS cor0
----
-246
-3
-99
query I rowsort
SELECT DISTINCT ( + tab1.col0 ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - - col1 + - cor0.col0 FROM tab2 AS cor0
----
-19
-62
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 + col2 * 62 col2 FROM tab2 AS cor0
----
1684
1746
2428
query I rowsort
SELECT ALL 84 AS col2 FROM tab2 cor0
----
84
84
84
query I rowsort
SELECT DISTINCT 40 * - cor0.col1 * col1 AS col1 FROM tab1 AS cor0
----
-27040
-4000
-6760
skipif mysql # not compatible
query I rowsort
SELECT col2 + - col2 * - CAST ( 81 AS REAL ) FROM tab0 AS cor0
----
2706
6724
82
query I rowsort
SELECT - + 39 * + col0 FROM tab1 AS cor0
----
-117
-2496
-3120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3422
SELECT - CAST( - 98 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
skipif mysql # not compatible
query I rowsort label-3422
SELECT - CAST ( - 98 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
query I rowsort
SELECT + 34 + - col2 FROM tab2 AS cor0
----
-4
7
8
query I rowsort
SELECT - + ( + cor0.col1 ) + col1 * 55 AS col2 FROM tab1 cor0
----
1404
540
702
query I rowsort
SELECT + col0 * + cor0.col1 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT col1 * col0 + - col2 AS col0 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-3427
SELECT CAST( col1 AS SIGNED ) DIV + col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-3427
SELECT CAST ( col1 AS INTEGER ) / + col1 FROM tab0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-3428
SELECT ALL + - col1 DIV - cor0.col1 + + ( 56 ) FROM tab1 AS cor0
----
57
57
57
skipif mysql # not compatible
query I rowsort label-3428
SELECT ALL + - col1 / - cor0.col1 + + ( 56 ) FROM tab1 AS cor0
----
57
57
57
query I rowsort
SELECT col0 * + col0 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT ALL 48 AS col2 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 0ef571a8722ab7270aa7272c1174b88e
query I rowsort
SELECT + - 36 AS col0 FROM tab2 AS cor0
----
-36
-36
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-3432
SELECT + col1 + - 35 DIV col1 AS col0 FROM tab1
----
11
25
7
skipif mysql # not compatible
query I rowsort label-3432
SELECT + col1 + - 35 / col1 AS col0 FROM tab1
----
11
25
7
query I rowsort
SELECT - col2 * 93 * + col2 FROM tab0 cor0
----
-101277
-625332
-93
query I rowsort
SELECT DISTINCT + - 84 + 98 * - cor0.col2 FROM tab0 AS cor0
----
-182
-3318
-8120
query I rowsort
SELECT ALL + 83 + col1 FROM tab0 AS cor0
----
169
174
180
query I rowsort
SELECT DISTINCT - - col2 * + 7 * - col0 FROM tab2 cor0
----
-1323
-14196
-21014
query I rowsort
SELECT ALL 2 + + col2 FROM tab1 AS cor0
----
56
59
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-3438
SELECT - 11 DIV col1 FROM tab1 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3438
SELECT - 11 / col1 FROM tab1 AS cor0
----
-1
0
0
query I rowsort
SELECT + cor1.col2 * 97 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 12759831b6b3a66412af456661cc1cde
query I rowsort
SELECT - + 30 * col2 FROM tab0 cor0
----
-2460
-30
-990
query I rowsort
SELECT + cor0.col1 * - col0 * + col0 AS col1 FROM tab1 AS cor0
----
-234
-40960
-83200
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to f9d4bb8677db7b98c7ed89d06e6e8cd6
query I rowsort
SELECT DISTINCT tab1.col1 * + tab1.col0 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-3444
SELECT DISTINCT - col0 DIV - tab2.col0 AS col1 FROM tab2
----
1
skipif mysql # not compatible
query I rowsort label-3444
SELECT DISTINCT - col0 / - tab2.col0 AS col1 FROM tab2
----
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 * - col2 col0 FROM tab0
----
-1
-1089
-6724
query I rowsort
SELECT ALL col1 * col0 * - ( col2 * - col0 ) AS col2 FROM tab2
----
4031686
41013
9332856
query I rowsort
SELECT col2 - col1 * + col2 AS col2 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT col1 * col2 + - col2 * 68 AS col1 FROM tab2
----
-1938
-234
-999
query I rowsort
SELECT cor0.col0 * - col1 + - ( - cor0.col0 ) FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT + + col2 * + col0 + + col2 + col2 * ( cor0.col1 ) FROM tab1 AS cor0
----
1620
4275
9024
query I rowsort
SELECT tab0.col0 * + 42 + col0 FROM tab0
----
1032
1505
3827
query I rowsort
SELECT + col0 + + 35 + + col1 FROM tab1 AS cor0
----
109
128
64
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3453
SELECT DISTINCT - - col1 * - CAST( + col0 AS SIGNED ) + - col0 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
-16109
-4104
-6755
skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT - - col1 * - CAST ( + col0 AS INTEGER ) + - col0 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
-16109
-4104
-6755
query I rowsort
SELECT - col1 + ( - cor0.col1 ) * + cor0.col2 * + col1 AS col1 FROM tab0 AS cor0
----
-244154
-679133
-9506
query I rowsort
SELECT col2 * col2 + - col1 * - col1 FROM tab2 AS cor0
----
1690
1733
4157
query I rowsort
SELECT - - col0 * - cor0.col2 AS col1 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT + cor0.col0 * 16 AS col2 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT + col2 + - ( cor0.col0 ) * col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif mysql # not compatible
query I rowsort
SELECT - - col2 + CAST ( + col1 AS REAL ) FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + 57 * + cor0.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dfe2bc2f189dacc908b16354d9fe8e6d
query I rowsort
SELECT ALL + col1 + + col2 * col1 - - col0 AS col2 FROM tab0
----
229
2948
7642
query I rowsort
SELECT ALL tab2.col2 + col2 * col2 AS col0 FROM tab2
----
1482
702
756
query I rowsort
SELECT ALL + col1 + 33 AS col2 FROM tab0
----
119
124
130
query I rowsort
SELECT + - col1 * + 17 + col1 FROM tab1 AS cor0
----
-160
-208
-416
query I rowsort
SELECT col2 + 55 FROM tab2 cor0
----
81
82
93
query I rowsort
SELECT ALL + col1 + - ( col0 ) AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3467
SELECT DISTINCT - col2 * + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - col2 * + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - col0 + + ( col1 ) AS col1 FROM tab2
----
-19
-62
24
query I rowsort
SELECT ALL + + col2 + 89 AS col0 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT DISTINCT + + col0 + 2 FROM tab0 AS cor0
----
26
37
91
query I rowsort
SELECT DISTINCT + col2 * cor0.col1 * col0 + col0 AS col2 FROM tab2 AS cor0
----
119730
51113
5866
onlyif mysql # use DIV operator for integer division
query I rowsort label-3472
SELECT ALL - col0 DIV cor0.col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL - col0 / cor0.col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT - + 85 FROM tab0 cor0
----
-85
-85
-85
query I rowsort
SELECT - + 99 + - col1 * 61 FROM tab0 AS cor0
----
-5345
-5650
-6016
query I rowsort
SELECT - + 73 * + cor0.col2 AS col2 FROM tab1 AS cor0
----
-3942
-4161
-7008
onlyif mysql # use DIV operator for integer division
query I rowsort label-3476
SELECT ALL col2 DIV + col0 AS col1 FROM tab0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-3476
SELECT ALL col2 / + col0 AS col1 FROM tab0
----
0
0
1
query I rowsort
SELECT DISTINCT - + cor0.col1 + + col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 col0 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - 65 AS col1 FROM tab1 AS cor0
----
65
65
65
query I rowsort
SELECT DISTINCT + 84 * - col0 + col1 FROM tab2 AS cor0
----
-557
-6493
-6619
query I rowsort
SELECT + - col2 * 59 FROM tab2 AS cor0
----
-1534
-1593
-2242
query I rowsort
SELECT - - col1 + + ( + col0 ) FROM tab2 AS cor0
----
137
38
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3483
SELECT + + col2 + col0 DIV col2 AS col2 FROM tab1 cor0
----
54
58
96
skipif mysql # not compatible
query I rowsort label-3483
SELECT + + col2 + col0 / col2 AS col2 FROM tab1 cor0
----
54
58
96
query I rowsort
SELECT col2 * + col0 + + 86 FROM tab1
----
248
3734
7766
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col2 col0 FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 * - col2 col2 FROM tab2 AS cor0
----
-1178
-806
-837
query I rowsort
SELECT DISTINCT + + col0 * + col0 FROM tab1 cor0
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-3489
SELECT ALL 17 DIV col0 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL 17 / col0 + col2 * + cor0.col2 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT ( - col2 ) AS col1 FROM tab2 cor0
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * + col2 col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT ALL 0 - + ( + col0 ) * col1 AS col1 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 + col1 * + col0 col1 FROM tab0 AS cor0
----
1975
3306
8010
onlyif mysql # use DIV operator for integer division
query I rowsort label-3494
SELECT DISTINCT - col1 DIV + col2 AS col1 FROM tab0 cor0
----
-1
-2
-97
skipif mysql # not compatible
query I rowsort label-3494
SELECT DISTINCT - col1 / + col2 AS col1 FROM tab0 cor0
----
-1
-2
-97
query I rowsort
SELECT - 85 + 62 FROM tab2 AS cor0
----
-23
-23
-23
query I rowsort
SELECT ALL + - col2 * - 64 FROM tab2 AS cor0
----
1664
1728
2432
query I rowsort
SELECT + - col2 + - 44 AS col0 FROM tab2 cor0
----
-70
-71
-82
query I rowsort
SELECT - + ( - col0 ) + col1 * cor0.col1 AS col2 FROM tab1 AS cor0
----
164
249
679
query I rowsort
SELECT - col1 * 13 + - col0 FROM tab1 AS cor0
----
-194
-249
-341
query I rowsort
SELECT ( 30 ) AS col2 FROM tab0
----
30
30
30
query I rowsort
SELECT DISTINCT - tab2.col2 * + col1 AS col0 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL + col2 * + 73 + - col1 AS col2 FROM tab2 AS cor0
----
1839
1940
2757
query I rowsort
SELECT DISTINCT + - cor0.col0 + - col0 FROM tab2 AS cor0
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-3504
SELECT DISTINCT col2 DIV + 2 FROM tab0
----
0
16
41
skipif mysql # not compatible
query I rowsort label-3504
SELECT DISTINCT col2 / + 2 FROM tab0
----
0
16
41
query I rowsort
SELECT - ( - col0 ) * cor0.col0 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - tab1.col2 + 90 FROM tab1
----
-6
33
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 35 * col2 * + col2 + 12 col2 FROM tab1
----
102046
113717
322559
query I rowsort
SELECT - - col2 + cor0.col1 * 48 FROM tab0 AS cor0
----
4161
4450
4657
query I rowsort
SELECT col1 - + ( col2 ) AS col1 FROM tab1
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 + + 73 * + col0 col1 FROM tab2 AS cor0
----
5780
5853
597
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + col1 col0 FROM tab1 AS cor0
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col1 * col1 col0 FROM tab1
----
1000
17576
2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 + - col2 * 53 col1 FROM tab1 AS cor0
----
-2836
-3011
-5075
query I rowsort
SELECT + 68 * + cor0.col0 + cor0.col1 * col2 AS col2 FROM tab1 AS cor0
----
1608
4922
6688
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3515
SELECT DISTINCT + ( cor0.col0 ) * CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT + ( cor0.col0 ) * CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + + col0 + - col0 + col2 * ( col0 ) FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - col0 * col2 + ( col2 ) * + col1 FROM tab1 AS cor0
----
-3078
-6432
1242
query I rowsort
SELECT col1 * col2 + 8 + col2 AS col1 FROM tab1 cor0
----
1352
1466
635
query I rowsort
SELECT ALL + 71 FROM tab2, tab1 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT - cor0.col1 * 49 + - 4 FROM tab1 AS cor0
----
-1278
-494
-641
onlyif mysql # use DIV operator for integer division
query I rowsort label-3521
SELECT + col2 DIV + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3521
SELECT + col2 / + cor0.col1 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + col1 * 95 * 41 AS col1 FROM tab2 AS cor0
----
120745
229805
66215
query I rowsort
SELECT DISTINCT 9 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
9
query I rowsort
SELECT col0 * + 0 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col1 + 3 * + 78 AS col2 FROM tab2 AS cor0
----
251
265
293
query I rowsort
SELECT ALL - col0 - ( col0 + - col2 ) FROM tab0 cor0
----
-15
-69
-96
query I rowsort
SELECT + col1 + col2 * 47 FROM tab1 AS cor0
----
2564
2689
4525
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + cor0.col1 * + ( ( - col2 ) ) + - ( - col2 ) * cor0.col2 col0 FROM tab0 AS cor0
----
-1749
-738
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - ( - col0 ) col2 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT cor0.col0 + + ( + 11 ) FROM tab0 AS cor0
----
100
35
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-3532
SELECT + + 24 DIV col1 AS col1 FROM tab1 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-3532
SELECT + + 24 / col1 AS col1 FROM tab1 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT + col0 * + 94 AS col2 FROM tab2 AS cor0
----
658
7332
7426
query I rowsort
SELECT ALL - col0 + + col1 * col2 FROM tab1 AS cor0
----
1168
1401
506
onlyif mysql # use DIV operator for integer division
query I rowsort label-3535
SELECT 25 DIV - col1 AS col1 FROM tab1 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-3535
SELECT 25 / - col1 AS col1 FROM tab1 AS cor0
----
-1
-2
0
query I rowsort
SELECT ALL - + col1 + + col0 * - col0 FROM tab0 cor0
----
-1322
-662
-8012
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + 35 * - col2 + - col2 col0 FROM tab2 AS cor0
----
-23686
-25542
-50578
query I rowsort
SELECT DISTINCT - - col0 + - 68 AS col0 FROM tab0 AS cor0
----
-33
-44
21
query I rowsort
SELECT ALL + col1 * + col2 + col0 * 93 AS col0 FROM tab1 AS cor0
----
1683
6522
8688
onlyif mysql # use DIV operator for integer division
query I rowsort label-3540
SELECT ALL - col1 DIV col1 + - 28 FROM tab2 AS cor0
----
-29
-29
-29
skipif mysql # not compatible
query I rowsort label-3540
SELECT ALL - col1 / col1 + - 28 FROM tab2 AS cor0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT + - 59 + col0 * col2 AS col1 FROM tab2 AS cor0
----
130
1969
2943
query I rowsort
SELECT + ( + tab1.col2 ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT 88 + - col1 AS col2 FROM tab2 AS cor0
----
29
57
71
query I rowsort
SELECT 23 + + col1 AS col2 FROM tab2
----
40
54
82
query I rowsort
SELECT col1 - 63 AS col1 FROM tab0 AS cor0
----
23
28
34
query I rowsort
SELECT col1 + + col0 + tab0.col1 AS col1 FROM tab0
----
196
229
271
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - col1 - - col0 * - col0 col2 FROM tab0
----
-11834
-4274
-5396
query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab0
----
-172
-182
-194
onlyif mysql # use DIV operator for integer division
query I rowsort label-3549
SELECT DISTINCT col1 DIV - col1 + + col2 col1 FROM tab2
----
25
26
37
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT col1 / - col1 + + col2 col1 FROM tab2
----
25
26
37
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab1, tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT 39 + + col2 AS col2 FROM tab2 AS cor0
----
65
66
77
query I rowsort
SELECT ALL - 8 * - col1 * cor0.col2 AS col1 FROM tab1 AS cor0
----
11232
4560
9984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3553
SELECT col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3553
SELECT col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + 87 * - cor0.col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 cor1
----
27 values hashing to ed540c4fd00276ab2ec3c5de3c5cde66
query I rowsort
SELECT - ( 12 ) FROM tab1, tab1 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45
query I rowsort
SELECT ALL - 53 FROM tab2, tab1 AS cor0
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d
query I rowsort
SELECT DISTINCT ( - col1 ) * col0 - - col0 FROM tab1
----
-576
-75
-960
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3558
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 * + col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-3558
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 * + col2 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT 43 - + 19 * tab1.col1 FROM tab1
----
-147
-204
-451
query I rowsort
SELECT - col2 * - col2 + col2 * - col1 FROM tab0
----
-1749
-738
-96
query I rowsort
SELECT + tab0.col0 * col2 + + col1 AS col1 FROM tab0
----
132
7389
878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col0 col2 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col1 + + col0 * - 33 AS col1 FROM tab1 AS cor0
----
-2102
-2627
-73
query I rowsort
SELECT ALL col0 * ( 64 ) AS col0 FROM tab1 cor0
----
192
4096
5120
query I rowsort
SELECT - col1 + col1 + - 19 AS col0 FROM tab0 AS cor0
----
-19
-19
-19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3566
SELECT col2 + CAST( NULL AS SIGNED ) * 67 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3566
SELECT col2 + CAST ( NULL AS INTEGER ) * 67 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col1 + col1 * cor0.col1 AS col1 FROM tab0 cor0
----
7482
8372
9506
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3568
SELECT ALL col1 * CAST( NULL AS SIGNED ) + - col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL col1 * CAST ( NULL AS INTEGER ) + - col2 * col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 * - cor0.col1 * cor0.col1 FROM tab1 cor0
----
16224
36504
5700
query I rowsort
SELECT ALL + ( tab1.col1 + col0 ) * - col2 * - col2 FROM tab1
----
240426
84564
857088
query I rowsort
SELECT ALL + 48 + + col2 * - col0 + 21 * col0 FROM tab2
----
-1295
-342
6
query I rowsort
SELECT DISTINCT 8 + + col2 AS col2 FROM tab2
----
34
35
46
query I rowsort
SELECT ALL + col0 + - col1 + 29 * ( col1 ) AS col0 FROM tab2
----
1730
555
875
query I rowsort
SELECT ALL ( + col2 ) * + ( - ( col0 ) ) + 85 AS col1 FROM tab1
----
-3563
-7595
-77
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1, tab0 AS cor1, tab0, tab0 AS cor2, tab2 AS cor3
----
13122 values hashing to 1686517b12d59e6a5468b93ca87d41b2
query I rowsort
SELECT col2 + - ( cor0.col0 ) FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + cor0.col2 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
54
57
96
query I rowsort
SELECT + col1 + + 80 * ( col0 ) + cor0.col2 * - col1 FROM tab1 AS cor0
----
-1138
4560
5165
onlyif mysql # use DIV operator for integer division
query I rowsort label-3579
SELECT col0 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3579
SELECT col0 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - col1 + col1 FROM tab1 cor0
----
20
26
52
query I rowsort
SELECT ALL + cor0.col2 * + 35 * 11 FROM tab0 AS cor0
----
12705
31570
385
query I rowsort
SELECT DISTINCT - - col0 + 93 AS col2 FROM tab1 AS cor0
----
157
173
96
query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-3584
SELECT DISTINCT + col0 DIV + col2 AS col1 FROM tab1
----
0
1
skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT + col0 / + col2 AS col1 FROM tab1
----
0
1
query I rowsort
SELECT ALL + col0 + + col1 * col2 + col0 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT ALL + col2 + col2 * col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT - 38 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507
query I rowsort
SELECT ALL - col1 + + ( + 99 ) AS col1 FROM tab1 AS cor0
----
73
86
89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 72 ) col0 FROM tab1, tab2 cor0
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49
query I rowsort
SELECT + col0 * - col0 * col1 FROM tab0
----
-118825
-49536
-720811
query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab0, tab2 cor0, tab2 AS cor1
----
52
skipif mysql # not compatible
query I rowsort
SELECT - + CAST ( 67 AS REAL ) * col2 AS col1 FROM tab2 AS cor0
----
-1742
-1809
-2546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 + 45 * + col0 col0 FROM tab2 AS cor0
----
3605
3650
410
query I rowsort
SELECT - col0 * 63 FROM tab1 AS cor0
----
-189
-4032
-5040
query I rowsort
SELECT DISTINCT + + col1 * cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT ( - 67 ) * - col0 FROM tab0 AS cor0
----
1608
2345
5963
query I rowsort
SELECT + 68 * + ( col2 ) FROM tab2 AS cor0
----
1768
1836
2584
query I rowsort
SELECT - - cor0.col2 + + col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - ( - col2 ) * col0 * ( - col2 * col2 ) AS col1 FROM tab2
----
-1370928
-137781
-4334888
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + cor0.col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + + col2 + - col2 FROM tab0 cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3602
SELECT DISTINCT 83 + - col0 * CAST( - col1 AS SIGNED ) + + col1 FROM tab2 AS cor0
----
1443
331
4744
skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT 83 + - col0 * CAST ( - col1 AS INTEGER ) + + col1 FROM tab2 AS cor0
----
1443
331
4744
query I rowsort
SELECT ALL + - 27 * - col0 FROM tab0 AS cor0
----
2403
648
945
query I rowsort
SELECT DISTINCT - col0 * - col2 * col2 + 91 * col2 * col0 AS col1 FROM tab2
----
22302
237276
387258
onlyif mysql # use DIV operator for integer division
query I rowsort label-3605
SELECT ALL - + 85 DIV - col1 + col1 FROM tab1 AS cor0
----
18
19
29
skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL - + 85 / - col1 + col1 FROM tab1 AS cor0
----
18
19
29
query I rowsort
SELECT ALL - 94 * col0 + ( 55 ) * + col1 FROM tab0 AS cor0
----
-3361
2045
2474
query I rowsort
SELECT 54 AS col1 FROM tab2 cor0
----
54
54
54
query I rowsort
SELECT DISTINCT col1 * cor0.col1 + ( col0 + + col0 * + col1 ) FROM tab2 AS cor0
----
1185
1711
8161
query I rowsort
SELECT + col1 * - col0 + - cor0.col2 * - col1 AS col0 FROM tab0 cor0
----
-3298
-637
774
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3610
SELECT ALL - + ( col1 ) - CAST( col2 AS SIGNED ) * + col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
skipif mysql # not compatible
query I rowsort label-3610
SELECT ALL - + ( col1 ) - CAST ( col2 AS INTEGER ) * + col1 AS col1 FROM tab0 AS cor0
----
-194
-2924
-7553
query I rowsort
SELECT DISTINCT + cor0.col2 + cor0.col0 + col0 AS col0 FROM tab1 cor0
----
185
256
60
query I rowsort
SELECT + - 38 * + col1 AS col1 FROM tab1 AS cor0
----
-380
-494
-988
query I rowsort
SELECT col0 * col2 + + 79 FROM tab0 AS cor0
----
114
7377
871
query I rowsort
SELECT ALL 79 * + col2 AS col1 FROM tab2 AS cor0
----
2054
2133
3002
query I rowsort
SELECT - col1 * ( - cor0.col0 ) + cor0.col1 + + 56 FROM tab0 cor0
----
2206
3548
8246
query I rowsort
SELECT DISTINCT - col0 * - cor0.col0 * - ( col1 ) + ( ( - cor0.col0 ) ) * 10 + + col2 AS col0 FROM tab0 AS cor0
----
-119174
-49743
-721619
query I rowsort
SELECT - col2 * + ( - 88 ) + - col1 * ( - ( + col2 ) * + col1 ) AS col0 FROM tab0 AS cor0
----
246972
686258
9497
query I rowsort
SELECT + + cor0.col1 + + col0 AS col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT + cor0.col0 * cor0.col0 + cor0.col2 * col2 AS col0 FROM tab0 AS cor0
----
1226
14645
1665
query I rowsort
SELECT + col0 * - col1 + col0 AS col2 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT DISTINCT + - col2 * col2 + col2 * + col2 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL col1 - + col0 * - col0 AS col1 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT - + ( col2 ) * + col1 FROM tab2 AS cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * tab2.col0 col1 FROM tab2
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * col1 * col0 col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT + 3 * col0 AS col1 FROM tab1 AS cor0
----
192
240
9
query I rowsort
SELECT col0 + col2 * col1 * - col1 AS col0 FROM tab2 AS cor0
----
-10903
-25940
-90428
query I rowsort
SELECT - cor2.col2 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab2 AS cor2
----
243 values hashing to b98cc07e6d63e3c0583ed19f9e9ad2be
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 6 col0 FROM tab0 AS cor0
----
198
492
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-3630
SELECT ALL - - col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-3630
SELECT ALL - - col2 / + col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT + col2 * 72 * col2 + 57 FROM tab1 AS cor0
----
210009
233985
663609
query I rowsort
SELECT - 83 + 98 * col2 FROM tab1 AS cor0
----
5209
5503
9325
query I rowsort
SELECT + + col0 * + ( col0 + - 0 * 52 ) AS col1 FROM tab0 AS cor0
----
1225
576
7921
query I rowsort
SELECT DISTINCT 74 FROM tab2, tab2 cor0
----
74
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 + col2 * 99 ) col1 FROM tab2
----
2652
2680
3841
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 + - tab1.col1 * - 19 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 897cdf56a8fbbeadaa988284442b945a
query I rowsort
SELECT + + 86 + + 20 FROM tab0 AS cor0
----
106
106
106
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 + cor0.col0 * ( - col2 ) col1 FROM tab0 AS cor0
----
-15397
-2856
-3430
query I rowsort
SELECT ALL - - cor0.col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
query I rowsort
SELECT - cor0.col2 + - 61 FROM tab1 AS cor0
----
-115
-118
-157
query I rowsort
SELECT DISTINCT - 74 - - ( + col1 ) FROM tab0
----
12
17
23
query I rowsort
SELECT - + col0 - - 53 FROM tab2 cor0
----
-25
-26
46
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( ( + col2 ) AS REAL ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT col1 * + col0 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT + col1 - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + + cor0.col2 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col2 ) + - col2 col2 FROM tab0 cor0
----
0
query I rowsort
SELECT ALL + + cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT - cor0.col0 + col2 + - col2 FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT + cor0.col0 * col0 - col0 * + col0 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT 51 + col0 + - col2 * col2 AS col2 FROM tab0 cor0
----
-1014
-6584
85
query I rowsort
SELECT + 45 + + col1 + cor0.col0 * 57 AS col1 FROM tab0 cor0
----
1499
2137
5209
onlyif mysql # use DIV operator for integer division
query I rowsort label-3653
SELECT col1 DIV - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-34
skipif mysql # not compatible
query I rowsort label-3653
SELECT col1 / - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-10
-13
-34
query I rowsort
SELECT + cor0.col2 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT DISTINCT + 89 FROM tab2, tab0 AS cor0 CROSS JOIN tab1, tab0 cor1
----
89
query I rowsort
SELECT ALL ( 18 ) FROM tab1, tab1 AS cor0 CROSS JOIN tab2
----
27 values hashing to 903ac227935c1532300db45a8537c595
query I rowsort
SELECT - + 93 * - ( - tab2.col2 ) FROM tab1, tab1 cor0 CROSS JOIN tab2, tab0, tab0 AS cor1
----
243 values hashing to f01f9861214a47e5498cc6f6903a4ff7
query I rowsort
SELECT DISTINCT col2 * col2 * col0 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL ( - cor0.col0 ) + cor0.col2 * + cor0.col2 FROM tab0 AS cor0
----
-34
1065
6635
query I rowsort
SELECT col0 + + cor0.col0 + col1 * cor0.col0 FROM tab2 AS cor0
----
1501
231
4758
query I rowsort
SELECT DISTINCT - - col1 + col1 * 35 AS col2 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT + cor1.col2 AS col2 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL - col0 + - 65 AS col2 FROM tab2 AS cor0
----
-143
-144
-72
query I rowsort
SELECT DISTINCT - ( - cor0.col1 ) AS col2 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT DISTINCT + 72 + - 79 * - col1 FROM tab0 AS cor0
----
6866
7261
7735
query I rowsort
SELECT - col1 * - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT 23 + + col2 - - cor0.col0 FROM tab2 AS cor0
----
127
140
57
query I rowsort
SELECT ALL col0 * 42 AS col1 FROM tab0
----
1008
1470
3738
onlyif mysql # use DIV operator for integer division
query I rowsort label-3669
SELECT ALL - tab0.col2 DIV + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c2adcfe760f87cc746ecb7aff3633614
skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL - tab0.col2 / + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to c2adcfe760f87cc746ecb7aff3633614
query I rowsort
SELECT ALL + col1 - + cor0.col2 * col0 * col2 FROM tab0 AS cor0
----
-26050
-598345
62
query I rowsort
SELECT + + 0 * + col2 + + col0 FROM tab2 cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 22 * + cor0.col1 + + col2 col0 FROM tab0 AS cor0
----
1925
2084
2135
onlyif mysql # use DIV operator for integer division
query I rowsort label-3673
SELECT DISTINCT - - col2 DIV - col0 + cor0.col0 FROM tab2 AS cor0
----
4
78
79
skipif mysql # not compatible
query I rowsort label-3673
SELECT DISTINCT - - col2 / - col0 + cor0.col0 FROM tab2 AS cor0
----
4
78
79
query I rowsort
SELECT DISTINCT - - col1 + + col2 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT ALL + 70 * col1 FROM tab2 AS cor0
----
1190
2170
4130
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) - col2 col1 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3677
SELECT col1 DIV - 92 + - tab1.col0 FROM tab1
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-3677
SELECT col1 / - 92 + - tab1.col0 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL 7 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3679
SELECT - col0 * + CAST( 74 AS SIGNED ) * + col0 + 45 FROM tab0
----
-42579
-586109
-90605
skipif mysql # not compatible
query I rowsort label-3679
SELECT - col0 * + CAST ( 74 AS INTEGER ) * + col0 + 45 FROM tab0
----
-42579
-586109
-90605
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3680
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 86 FROM tab1, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 86 FROM tab1, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL ( col2 + + col1 ) * tab1.col2 FROM tab1
----
10464
3819
4320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT col0 * + cor0.col0 AS col1 FROM tab2 cor0
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-3684
SELECT ALL + col1 DIV col0 + + 36 + col2 AS col1 FROM tab1 AS cor0
----
132
93
98
skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL + col1 / col0 + + 36 + col2 AS col1 FROM tab1 AS cor0
----
132
93
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col1 ) + - col0 * col1 col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL - - 32 + - col1 FROM tab0 cor0
----
-54
-59
-65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 col1 FROM tab0 AS cor0
----
28
28
28
query I rowsort
SELECT + + 22 + - col1 AS col2 FROM tab1 AS cor0
----
-4
12
9
query I rowsort
SELECT + - col2 + - col1 * + 19 FROM tab0 AS cor0
----
-1667
-1811
-1844
query I rowsort
SELECT DISTINCT - + 41 AS col2 FROM tab1 AS cor0
----
-41
query I rowsort
SELECT ALL - 67 * col2 + ( col0 ) * col0 FROM tab0 cor0
----
-1635
1158
2427
query I rowsort
SELECT DISTINCT + ( - cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT - - col1 * + 68 * 66 AS col0 FROM tab0 AS cor0
----
385968
408408
435336
query I rowsort
SELECT DISTINCT - - col1 * cor0.col0 + + 52 FROM tab1 AS cor0
----
1092
130
692
query I rowsort
SELECT - col0 * + 42 FROM tab1 AS cor0
----
-126
-2688
-3360
onlyif mysql # use DIV operator for integer division
query I rowsort label-3696
SELECT DISTINCT + + col1 + col1 DIV 15 AS col2 FROM tab2 cor0
----
18
33
62
skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT + + col1 + col1 / 15 AS col2 FROM tab2 cor0
----
18
33
62
query I rowsort
SELECT ALL - + col1 * ( col0 ) AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col0 + - ( col0 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3699
SELECT - col2 + CAST( 78 AS SIGNED ) DIV + col1 FROM tab1 cor0
----
-50
-51
-90
skipif mysql # not compatible
query I rowsort label-3699
SELECT - col2 + CAST ( 78 AS INTEGER ) / + col1 FROM tab1 cor0
----
-50
-51
-90
query I rowsort
SELECT DISTINCT + 19 * 75 + col2 + 18 FROM tab1 AS cor0
----
1497
1500
1539
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3701
SELECT DISTINCT + cor0.col1 * + CAST( NULL AS DECIMAL ) FROM tab0, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + cor0.col1 * + CAST ( NULL AS REAL ) FROM tab0, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL + - ( + col0 ) + + col1 * col0 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT + cor0.col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT - + 64 * + col0 + + cor0.col1 AS col0 FROM tab2 cor0
----
-417
-4933
-5039
query I rowsort
SELECT ALL - 26 * - 14 + + col0 FROM tab0 AS cor0
----
388
399
453
query I rowsort
SELECT DISTINCT + + 31 + - 90 AS col0 FROM tab0 cor0
----
-59
query I rowsort
SELECT DISTINCT + col0 + + 15 FROM tab1 AS cor0
----
18
79
95
query I rowsort
SELECT - 7 + col2 FROM tab2 AS cor0
----
19
20
31
query I rowsort
SELECT ALL - 24 * col0 + col0 FROM tab0 AS cor0
----
-2047
-552
-805
onlyif mysql # use DIV operator for integer division
query I rowsort label-3710
SELECT - col1 DIV 1 + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-3710
SELECT - col1 / 1 + + col2 AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT - cor0.col0 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT col1 * + col0 + - col1 + - 15 * + col0 FROM tab0 cor0
----
1618
2773
6673
query I rowsort
SELECT ALL - - 68 + col2 * + col1 FROM tab1 AS cor0
----
1316
1472
638
query I rowsort
SELECT 19 - + col0 FROM tab0
----
-16
-5
-70
query I rowsort
SELECT - 28 + + col0 + col0 * - col2 AS col1 FROM tab1
----
-187
-3612
-7628
query I rowsort
SELECT ( + col2 ) * col0 * - 96 AS col0 FROM tab1
----
-15552
-350208
-737280
query I rowsort
SELECT + 38 * - col1 + - col0 FROM tab0 AS cor0
----
-3292
-3547
-3721
query I rowsort
SELECT + ( + col0 ) * col2 AS col2 FROM tab1
----
162
3648
7680
query I rowsort
SELECT ALL - 88 AS col2 FROM tab0
----
-88
-88
-88
query I rowsort
SELECT - tab2.col1 * 61 + col2 + + ( + col0 + col0 ) * + tab2.col2 FROM tab2
----
-1486
483
5005
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3721
SELECT CAST( NULL AS DECIMAL ) + tab0.col1 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3721
SELECT CAST ( NULL AS REAL ) + tab0.col1 * - col0 AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * ( + col1 ) + - col1 * + col0 FROM tab2
----
-1054
-1121
744
query I rowsort
SELECT + ( - 80 ) + col0 AS col2 FROM tab0
----
-45
-56
9
query I rowsort
SELECT ALL - col2 * col1 + + col1 FROM tab0
----
-2752
-7371
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3725
SELECT cor0.col0 * - col0 * CAST( NULL AS DECIMAL ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3725
SELECT cor0.col0 * - col0 * CAST ( NULL AS REAL ) + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col0 * tab0.col0 ) FROM tab0
----
1225
576
7921
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 * col1 col2 FROM tab2
----
1550
2950
850
query I rowsort
SELECT - tab2.col0 * + col0 AS col1 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT + ( - col2 ) + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + col1 - - col0 * - 41 FROM tab0 cor0
----
-1338
-3558
-898
query I rowsort
SELECT DISTINCT - + tab2.col1 AS col1 FROM tab2, tab0, tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT 40 * + tab0.col0 AS col1 FROM tab0
----
1400
3560
960
query I rowsort
SELECT + col0 + col2 * ( + col1 ) FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3734
SELECT col1 * + CAST( NULL AS DECIMAL ) + ( col0 ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3734
SELECT col1 * + CAST ( NULL AS REAL ) + ( col0 ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ( + 76 ) + - tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to e14f128d77cbf97b37baf5f6d55258db
onlyif mysql # use DIV operator for integer division
query I rowsort label-3736
SELECT DISTINCT - col2 * ( col2 ) DIV col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3736
SELECT DISTINCT - col2 * ( col2 ) / col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT + + ( ( cor0.col0 ) ) + 0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-3738
SELECT ALL - - col0 DIV + cor0.col0 + col2 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL - - col0 / + cor0.col0 + col2 * + ( col0 ) AS col0 FROM tab1 AS cor0
----
163
3649
7681
query I rowsort
SELECT col1 - + col1 * - col2 FROM tab2 cor0
----
1593
663
868
query I rowsort
SELECT DISTINCT - cor1.col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
-1
-33
-82
query I rowsort
SELECT DISTINCT - - ( - col0 ) * + col2 - col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
onlyif mysql # use DIV operator for integer division
query I rowsort label-3742
SELECT + col2 * col1 DIV + col0 - - cor0.col1 AS col0 FROM tab2 cor0
----
150
25
78
skipif mysql # not compatible
query I rowsort label-3742
SELECT + col2 * col1 / + col0 - - cor0.col1 AS col0 FROM tab2 cor0
----
150
25
78
query I rowsort
SELECT - col0 - - 72 FROM tab1 AS cor0
----
-8
69
8
query I rowsort
SELECT + 0 + + cor0.col0 AS col0 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT DISTINCT tab2.col1 * - col1 + + 98 FROM tab2
----
-191
-3383
-863
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + cor0.col2 col1 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT col2 + + 7 * + col0 - + col0 * col2 * ( - col0 ) AS col1 FROM tab1
----
233977
561
615056
query I rowsort
SELECT DISTINCT col2 * col1 - + col0 AS col2 FROM tab0
----
2814
62
7373
query I rowsort
SELECT tab0.col1 * tab0.col0 - + col2 * + col0 AS col1 FROM tab0
----
1272
3360
801
query I rowsort
SELECT col2 * 23 FROM tab2
----
598
621
874
onlyif mysql # use DIV operator for integer division
query I rowsort label-3751
SELECT ALL + col1 + 51 * col1 DIV col0 FROM tab0 AS cor0
----
143
238
268
skipif mysql # not compatible
query I rowsort label-3751
SELECT ALL + col1 + 51 * col1 / col0 FROM tab0 AS cor0
----
143
238
268
query I rowsort
SELECT DISTINCT + + col2 * ( col1 ) + col0 FROM tab0 cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 85 * 72 - + col1 col2 FROM tab0 AS cor0
----
526234
556829
593543
query I rowsort
SELECT + - col2 * 72 FROM tab1 cor0
----
-3888
-4104
-6912
onlyif mysql # use DIV operator for integer division
query I rowsort label-3755
SELECT - col1 + col2 + + col2 DIV + col1 FROM tab0 AS cor0
----
-53
-9
-96
skipif mysql # not compatible
query I rowsort label-3755
SELECT - col1 + col2 + + col2 / + col1 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3756
SELECT - + CAST( + 70 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
-6
-67
10
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3756
SELECT - + CAST ( + 70 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
-6
-67
10
onlyif mysql # use DIV operator for integer division
query I rowsort label-3757
SELECT + col0 * + col1 + col2 DIV + 88 + cor0.col2 FROM tab1 AS cor0
----
1137
132
697
skipif mysql # not compatible
query I rowsort label-3757
SELECT + col0 * + col1 + col2 / + 88 + cor0.col2 FROM tab1 AS cor0
----
1137
132
697
query I rowsort
SELECT ALL + col2 * - 23 AS col1 FROM tab2 AS cor0
----
-598
-621
-874
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3759
SELECT ALL + CAST( - col0 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + CAST ( - col0 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col0 + col2 + col0 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT + 10 + col2 * + col1 * cor0.col1 + col0 AS col2 FROM tab2 AS cor0
----
11071
25964
90594
query I rowsort
SELECT ALL + col0 + col2 * - col0 AS col0 FROM tab2 cor0
----
-182
-1950
-2923
query I rowsort
SELECT - ( - 85 ) + cor0.col0 AS col2 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT DISTINCT 15 + + col2 FROM tab0 AS cor0
----
16
48
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3765
SELECT ALL - + 87 * + 27 + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - + 87 * + 27 + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 + + col2 * + col2 * + 18 FROM tab1 AS cor0
----
165984
52542
58539
query I rowsort
SELECT + col2 * + ( + col1 + + col2 ) AS col1 FROM tab1
----
10464
3819
4320
query I rowsort
SELECT ALL 1 AS col1 FROM tab1, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - col1 * + col1 col2 FROM tab2 AS cor0
----
-327
-3507
-988
query I rowsort
SELECT + 56 * cor0.col0 FROM tab0 cor0
----
1344
1960
4984
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 7 col1 FROM tab1 AS cor0
----
7
7
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-3772
SELECT ALL + col0 + + col0 DIV - 71 FROM tab0 cor0
----
24
35
88
skipif mysql # not compatible
query I rowsort label-3772
SELECT ALL + col0 + + col0 / - 71 FROM tab0 cor0
----
24
35
88
query I rowsort
SELECT DISTINCT - col0 * + col2 * - 29 AS col0 FROM tab0 AS cor0
----
1015
211642
22968
query I rowsort
SELECT + + col2 - + col1 AS col0 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT DISTINCT - col2 * cor0.col2 + col1 FROM tab0 AS cor0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT cor0.col0 * + col2 * + ( + col2 ) FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT ALL - cor0.col1 * ( col0 ) * col1 AS col2 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT col0 + ( 26 ) * col2 FROM tab1 AS cor0
----
1407
1546
2576
query I rowsort
SELECT ALL + col2 + + ( - col2 ) * - col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT - col0 + - col1 * - col1 FROM tab0 cor0
----
7372
8192
9374
query I rowsort
SELECT DISTINCT 98 FROM tab0, tab2, tab1 AS cor0
----
98
query I rowsort
SELECT DISTINCT tab1.col1 * + 43 AS col2 FROM tab1, tab2, tab1 AS cor0, tab0
----
1118
430
559
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3783
SELECT CAST( NULL AS DECIMAL ) + + 46 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3783
SELECT CAST ( NULL AS REAL ) + + 46 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1, tab1 AS cor2
----
3645 values hashing to 76903cfa3a27727fd541d9dcdf362a4c
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3785
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 53 AS col1 FROM tab2, tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 53 AS col1 FROM tab2, tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - cor0.col2 * col1 - + col0 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL col2 * col0 + col0 AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL + - col0 * + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT + + cor0.col1 + - col1 * - 23 FROM tab0 AS cor0
----
2064
2184
2328
query I rowsort
SELECT DISTINCT + col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT ALL + - col2 + - 58 + col0 AS col1 FROM tab2 AS cor0
----
-17
-6
-78
query I rowsort
SELECT ALL col1 * + ( - col0 ) + col0 FROM tab0
----
-2040
-3360
-8010
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 - col2 col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT DISTINCT col0 + - 21 * - col1 + col0 FROM tab0 AS cor0
----
1854
2089
2107
query I rowsort
SELECT DISTINCT - - col0 + - 31 AS col1 FROM tab2 AS cor0
----
-24
47
48
query I rowsort
SELECT ALL col0 - + 64 * - col1 AS col1 FROM tab2 AS cor0
----
1167
1991
3854
query I rowsort
SELECT col0 * + col2 + + 74 AS col2 FROM tab0 AS cor0
----
109
7372
866
query I rowsort
SELECT DISTINCT 7 FROM tab1, tab2 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3799
SELECT ALL + CAST( NULL AS SIGNED ) + 45 * col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL + CAST ( NULL AS INTEGER ) + 45 * col1 FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-3800
SELECT + - 35 DIV - col0 + col1 + 74 FROM tab1 AS cor0
----
111
84
87
skipif mysql # not compatible
query I rowsort label-3800
SELECT + - 35 / - col0 + col1 + 74 FROM tab1 AS cor0
----
111
84
87
query I rowsort
SELECT col1 * - col2 * tab1.col1 - + col1 FROM tab1
----
-16237
-36530
-5710
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3802
SELECT + CAST( NULL AS DECIMAL ) - 49 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-3802
SELECT + CAST ( NULL AS REAL ) - 49 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT + col1 * - col0 - ( - col1 ) FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT DISTINCT cor0.col0 - + col2 FROM tab2 AS cor0
----
-20
41
52
query I rowsort
SELECT ALL - - 50 * - col1 AS col0 FROM tab2 AS cor0
----
-1550
-2950
-850
query I rowsort
SELECT ALL - 1 * - col1 FROM tab0 cor0
----
86
91
97
query I rowsort
SELECT - - 81 + + col1 * col1 AS col0 FROM tab2 AS cor0
----
1042
3562
370
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT DISTINCT col2 * - col0 * col2 AS col0 FROM tab1
----
-207936
-737280
-8748
query III rowsort
SELECT * FROM tab2 WHERE ( col0 + - col0 + - col2 ) BETWEEN ( NULL ) AND ( NULL )
----
query I rowsort
SELECT ALL col0 * + col2 * tab1.col2 FROM tab1
----
207936
737280
8748
query I rowsort
SELECT DISTINCT tab1.col1 * + col2 * col0 AS col1 FROM tab1
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-3813
SELECT col0 * col1 DIV + col1 AS col2 FROM tab1
----
3
64
80
skipif mysql # not compatible
query I rowsort label-3813
SELECT col0 * col1 / + col1 AS col2 FROM tab1
----
3
64
80
query I rowsort
SELECT DISTINCT + col2 + - tab0.col2 * col2 FROM tab0
----
-1056
-6642
0
query I rowsort
SELECT tab2.col0 * col1 - - col2 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - tab0.col1 + - col1 AS col1 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT col2 * col2 + + col0 FROM tab0
----
1113
36
6813
query I rowsort
SELECT DISTINCT tab1.col0 - col0 FROM tab1
----
0
query I rowsort
SELECT ALL + col1 + + col2 FROM tab1 WHERE NULL > NULL
----
query I rowsort
SELECT ALL - tab1.col1 FROM tab1 WHERE NOT NULL > ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE col1 + + col1 + col1 * - col2 IN ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 - + col2 col2 FROM tab2 AS cor0
----
-52
-54
-76
query I rowsort
SELECT + 77 * - col2 + + 11 AS col0 FROM tab1 AS cor0
----
-4147
-4378
-7381
onlyif mysql # use DIV operator for integer division
query I rowsort label-3824
SELECT DISTINCT ( col2 ) + + cor0.col1 DIV col0 AS col2 FROM tab0 AS cor0
----
3
36
83
skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT ( col2 ) + + cor0.col1 / col0 AS col2 FROM tab0 AS cor0
----
3
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - col2 * col1 * col1 col0 FROM tab2 AS cor0
----
-10999
-25978
-90565
query I rowsort
SELECT + + col1 * col1 + col1 * col2 + + col0 FROM tab1 cor0
----
1497
2083
734
onlyif mysql # use DIV operator for integer division
query I rowsort label-3827
SELECT + 33 * + col2 + + col2 DIV 33 col0 FROM tab2 AS cor0
----
1255
858
891
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3827
SELECT + 33 * + col2 + + col2 / 33 col0 FROM tab2 AS cor0
----
1255
858
891
query I rowsort
SELECT ALL + col2 + col1 * col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT ALL tab1.col1 + col0 * - col2 + col0 * col2 * - col1 AS col2 FROM tab1
----
-107507
-40118
-4348
query I rowsort
SELECT DISTINCT col2 * col1 + - tab2.col0 + col2 AS col0 FROM tab2
----
1482
605
857
onlyif mysql # use DIV operator for integer division
query I rowsort label-3831
SELECT + col0 DIV col1 + col1 + + col2 AS col2 FROM tab2
----
58
59
86
skipif mysql # not compatible
query I rowsort label-3831
SELECT + col0 / col1 + col1 + + col2 AS col2 FROM tab2
----
58
59
86
query I rowsort
SELECT ALL + col0 + col1 + - tab2.col1 FROM tab2
----
7
78
79
query I rowsort
SELECT col1 * - tab2.col2 - - col2 AS col0 FROM tab2
----
-1508
-608
-810
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3835
SELECT DISTINCT + col2 + col0 DIV col0 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT + col2 + col0 / col0 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT cor0.col1 AS col0 FROM tab1 AS cor0 WHERE - col1 <> ( cor0.col0 - + col0 )
----
10
13
26
query I rowsort
SELECT col2 * tab0.col0 + - col2 * + col0 AS col0 FROM tab0 WHERE NULL > NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-3838
SELECT tab2.col0 DIV + col0 - - col0 col0 FROM tab2
----
79
8
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-3838
SELECT tab2.col0 / + col0 - - col0 col0 FROM tab2
----
79
8
80
query I rowsort
SELECT - col2 * tab1.col2 * + col0 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT DISTINCT - col2 * + tab1.col1 + + col0 + col1 * col0 AS col2 FROM tab1
----
-128
-1323
134
query I rowsort
SELECT + tab2.col0 * - tab2.col1 + + col2 FROM tab2
----
-1305
-190
-4576
query I rowsort
SELECT - tab0.col2 * + col0 AS col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-3843
SELECT ALL col2 * - col1 DIV + col1 AS col1 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL col2 * - col1 / + col1 AS col1 FROM tab0
----
-1
-33
-82
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col1 * + col2 - - col2 IN ( tab0.col2 + - col1 * col2 + col0 * - tab0.col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col2 - - col1 <= NULL
----
query I rowsort
SELECT ALL - cor0.col1 - 62 FROM tab1, tab2 AS cor0
----
9 values hashing to 8fefe6163f1222a37804c92080afa75f
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3847
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - ( + col2 ) / - col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - ( + col2 ) / - col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab2, tab0 AS cor0
----
86
91
97
query I rowsort
SELECT ALL + col0 * - col1 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT tab0.col0 + tab0.col2 AS col1 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 651bd87d0835272922fb073806a0b5a0
query I rowsort
SELECT + col2 * col1 + - col2 * - col1 FROM tab1 AS cor0
----
1140
2496
2808
onlyif mysql # use DIV operator for integer division
query I rowsort label-3852
SELECT col2 DIV + 76 AS col1 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3852
SELECT col2 / + 76 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT col0 * - col1 * col0 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT ALL + 92 AS col2 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT col0 * + col0 * - tab2.col0 + - col2 FROM tab2
----
-370
-474578
-493077
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 75 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT ALL + col1 + - col2 * ( - cor0.col1 * + cor0.col1 ) FROM tab2 AS cor0
----
10999
25978
90565
query I rowsort
SELECT DISTINCT + col2 * - 66 AS col2 FROM tab2 AS cor0
----
-1716
-1782
-2508
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * ( - 11 ) col1 FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT ALL + - cor0.col0 * ( - 6 ) + col1 FROM tab0 AS cor0
----
230
307
625
query I rowsort
SELECT + col1 + 84 * - cor0.col0 FROM tab2 cor0
----
-557
-6493
-6619
query I rowsort
SELECT ALL - col0 * + col0 - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT - - col0 * + col1 * + ( col1 ) FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT + ( col2 ) * col0 * + tab2.col2 AS col0 FROM tab2
----
114076
5103
52728
query I rowsort
SELECT col0 * - col1 - col0 * col1 * + tab1.col0 FROM tab1
----
-312
-41600
-84240
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3866
SELECT - CAST( + ( col2 ) * col2 AS SIGNED ) - - col1 FROM tab0
----
-1003
-6633
96
skipif mysql # not compatible
query I rowsort label-3866
SELECT - CAST ( + ( col2 ) * col2 AS INTEGER ) - - col1 FROM tab0
----
-1003
-6633
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-3867
SELECT col0 DIV col0 + col2 * - col0 FROM tab1
----
-161
-3647
-7679
skipif mysql # not compatible
query I rowsort label-3867
SELECT col0 / col0 + col2 * - col0 FROM tab1
----
-161
-3647
-7679
query I rowsort
SELECT ( + 42 ) + col0 AS col0 FROM tab1 cor0
----
106
122
45
query I rowsort
SELECT - - 48 * - ( + col0 + col1 ) FROM tab0 AS cor0
----
-5280
-6336
-8640
query I rowsort
SELECT + 10 - col2 AS col2 FROM tab1
----
-44
-47
-86
query I rowsort
SELECT DISTINCT - ( 35 ) * col1 * col2 FROM tab1
----
-19950
-43680
-49140
query I rowsort
SELECT + col0 * col0 * col2 + - col1 AS col1 FROM tab1 AS cor0
----
233462
460
614387
query I rowsort
SELECT + - 47 * col2 FROM tab1 AS cor0
----
-2538
-2679
-4512
onlyif mysql # use DIV operator for integer division
query I rowsort label-3874
SELECT + 20 + cor0.col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
21
21
21
skipif mysql # not compatible
query I rowsort label-3874
SELECT + 20 + cor0.col1 / + col1 AS col2 FROM tab2 AS cor0
----
21
21
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-3875
SELECT - 86 * col0 DIV col0 AS col1 FROM tab1 AS cor0
----
-86
-86
-86
skipif mysql # not compatible
query I rowsort label-3875
SELECT - 86 * col0 / col0 AS col1 FROM tab1 AS cor0
----
-86
-86
-86
query I rowsort
SELECT col2 + col2 - col1 FROM tab1 AS cor0
----
104
179
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-3877
SELECT col0 + - col0 - + cor0.col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3877
SELECT col0 + - col0 - + cor0.col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 * col2 col2 FROM tab2 AS cor0
----
104
108
152
query I rowsort
SELECT DISTINCT - - col1 * cor0.col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT 54 * col0 + cor0.col2 FROM tab1 AS cor0
----
216
3513
4416
query I rowsort
SELECT - col2 + ( - 18 ) FROM tab2 AS cor0
----
-44
-45
-56
query I rowsort
SELECT - + col2 + + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT + col2 + ( cor0.col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - + col0 * - col0 + - col2 * + col0 AS col2 FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT - 15 * col2 AS col0 FROM tab0 AS cor0
----
-1230
-15
-495
query I rowsort
SELECT ALL - col0 * - 76 * - col0 FROM tab2 AS cor0
----
-3724
-462384
-474316
query I rowsort
SELECT ALL + col2 * - col2 + col1 AS col0 FROM tab2 AS cor0
----
-1427
-617
-698
query I rowsort
SELECT ALL col1 * col2 + + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col2 * col2 + - col0 FROM tab0 AS cor0
----
-131
-1773
-827
query I rowsort
SELECT ALL - col0 * - cor0.col1 - col0 AS col2 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT ALL + cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL - col2 + + col2 * col2 * - col0 AS col0 FROM tab0
----
-26169
-36
-598518
query I rowsort
SELECT ALL col0 + + col1 * + cor0.col1 AS col2 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col1 col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL + - col1 * col1 + - col0 * - col2 + col0 AS col0 FROM tab0 cor0
----
-6580
-894
-9339
query I rowsort
SELECT DISTINCT col1 * col2 + - col0 * col2 AS col2 FROM tab0 AS cor0
----
164
2046
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-3897
SELECT DISTINCT + col0 DIV tab1.col1 AS col0 FROM tab1
----
0
6
skipif mysql # not compatible
query I rowsort label-3897
SELECT DISTINCT + col0 / tab1.col1 AS col0 FROM tab1
----
0
6
query I rowsort
SELECT cor0.col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
query I rowsort
SELECT - col0 * - col1 FROM tab2 WHERE NULL <> col0
----
query I rowsort
SELECT DISTINCT + cor0.col2 * - col1 * col0 FROM tab2 cor0
----
-119652
-51034
-5859
query I rowsort
SELECT ( - col2 ) + - col0 * - col2 * col2 FROM tab1
----
207879
737184
8694
onlyif mysql # use DIV operator for integer division
query I rowsort label-3902
SELECT ALL - col0 + - col2 DIV col1 FROM tab1
----
-5
-69
-87
skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL - col0 + - col2 / col1 FROM tab1
----
-5
-69
-87
query I rowsort
SELECT DISTINCT col0 * - col1 + - tab1.col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT ALL col1 + + col1 * - col1 * + col0 FROM tab2
----
-22814
-271459
-6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-3905
SELECT col2 + - col1 * col0 DIV - col1 FROM tab0 AS cor0
----
171
36
57
skipif mysql # not compatible
query I rowsort label-3905
SELECT col2 + - col1 * col0 / - col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT + col2 * + col0 + col0 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - col0 * 31 + col0 AS col1 FROM tab0 AS cor0
----
-1050
-2670
-720
query I rowsort
SELECT - col0 * col2 - col1 * + cor0.col2 AS col1 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT DISTINCT + col1 - 92 FROM tab1 AS cor0
----
-66
-79
-82
query I rowsort
SELECT ALL col2 + + 16 * + col1 * col2 + col2 * + ( - col2 ) * 7 FROM tab1 AS cor0
----
-13566
-44448
2106
query I rowsort
SELECT ALL + + col1 * - col0 + - col0 AS col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT col1 * ( - 98 ) - + col0 AS col2 FROM tab1 AS cor0
----
-1044
-1354
-2551
query I rowsort
SELECT ALL + col0 * col0 + ( col2 + + col1 ) * - col0 AS col2 FROM tab0 AS cor0
----
-2205
-2280
-7476
onlyif mysql # use DIV operator for integer division
query I rowsort label-3914
SELECT + + col0 DIV cor0.col0 + col1 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-3914
SELECT + + col0 / cor0.col0 + col1 FROM tab0 AS cor0
----
87
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 * col0 + 23 col1 FROM tab0
----
167
233
557
onlyif mysql # use DIV operator for integer division
query I rowsort label-3916
SELECT ( - col2 ) DIV 44 FROM tab0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-3916
SELECT ( - col2 ) / 44 FROM tab0
----
-1
0
0
query I rowsort
SELECT + col0 * - col0 * col1 + col1 FROM tab0
----
-118728
-49450
-720720
query I rowsort
SELECT ALL + - col2 * - col1 + - ( + col1 ) * ( col0 ) * + cor0.col0 FROM tab1 cor0
----
-40390
-81952
1170
query I rowsort
SELECT DISTINCT cor0.col1 * 41 - col2 AS col1 FROM tab0 AS cor0
----
3493
3649
3976
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col1 + 7 col0 FROM tab0 AS cor0
----
104
2845
7469
query I rowsort
SELECT DISTINCT col1 * 37 FROM tab1
----
370
481
962
query I rowsort
SELECT ALL - ( col2 ) * + tab0.col1 AS col2 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT ALL + 45 AS col1 FROM tab1, tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
27 values hashing to 14cec871edc37b5056cda01c8331fdca
query I rowsort
SELECT ALL 44 * ( - col0 + col2 ) AS col2 FROM tab0
----
-1496
-308
396
query I rowsort
SELECT ALL 9 * + col1 AS col1 FROM tab0
----
774
819
873
onlyif mysql # use DIV operator for integer division
query I rowsort label-3926
SELECT ALL col0 + - cor0.col1 DIV col1 AS col1 FROM tab1 AS cor0
----
2
63
79
skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL col0 + - cor0.col1 / col1 AS col1 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT ALL 68 * col0 FROM tab2
----
476
5304
5372
query I rowsort
SELECT + 81 * + col2 * - 16 AS col1 FROM tab0 cor0
----
-106272
-1296
-42768
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 7 * + col0 col2 FROM tab1 AS cor0
----
21
448
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-3930
SELECT DISTINCT - 10 DIV col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-3930
SELECT DISTINCT - 10 / col1 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + cor0.col2 + - col0 * 75 * col1 AS col2 FROM tab2 AS cor0
----
-100687
-16248
-345124
onlyif mysql # use DIV operator for integer division
query I rowsort label-3932
SELECT ALL - 82 DIV - col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL - 82 / - col1 AS col1 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-3933
SELECT 47 DIV - col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-3933
SELECT 47 / - col1 AS col0 FROM tab1 AS cor0
----
-1
-3
-4
onlyif mysql # use DIV operator for integer division
query I rowsort label-3934
SELECT - ( cor0.col2 ) DIV CAST( - 98 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-3934
SELECT - ( cor0.col2 ) / CAST ( - 98 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - - 15 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3
-64
-80
query I rowsort
SELECT ALL + ( cor0.col2 ) + 53 * 81 AS col2 FROM tab2 AS cor0
----
4319
4320
4331
query I rowsort
SELECT + col2 * 69 AS col2 FROM tab1 AS cor0
----
3726
3933
6624
query I rowsort
SELECT DISTINCT - + 28 + - col2 AS col1 FROM tab1 cor0
----
-124
-82
-85
query I rowsort
SELECT + - col2 + 12 * col1 AS col1 FROM tab0 cor0
----
1010
1163
999
query I rowsort
SELECT cor0.col1 * + col2 + + cor0.col0 + cor0.col0 * + col1 FROM tab1 AS cor0
----
1274
1485
2368
query I rowsort
SELECT ( col0 ) + - col2 * col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT - col1 * cor0.col2 + - col2 FROM tab0 cor0
----
-2871
-7544
-98
query I rowsort
SELECT + - col1 + - col1 * 32 AS col1 FROM tab0 AS cor0
----
-2838
-3003
-3201
query I rowsort
SELECT col2 + - col1 * + ( + col0 ) FROM tab0 AS cor0
----
-2031
-3394
-8017
query I rowsort
SELECT + tab2.col2 * + col2 + + col0 AS col1 FROM tab2
----
1523
736
754
query I rowsort
SELECT ALL 8 * 19 FROM tab2, tab0, tab1 AS cor0
----
27 values hashing to e91eb813025a8d938c0c83abc5aaf0fc
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab0
----
30
query I rowsort
SELECT ALL - 71 * ( - col1 ) AS col1 FROM tab2
----
1207
2201
4189
query I rowsort
SELECT col2 + cor0.col1 * - col1 AS col2 FROM tab0 cor0
----
-7363
-8199
-9408
query I rowsort
SELECT ALL - - 39 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
onlyif mysql # use DIV operator for integer division
query I rowsort label-3952
SELECT ALL + - 45 DIV cor0.col1 - cor0.col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-163
-3652
-7683
skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL + - 45 / cor0.col1 - cor0.col0 * cor0.col2 AS col2 FROM tab1 AS cor0
----
-163
-3652
-7683
query I rowsort
SELECT DISTINCT ( - 35 ) FROM tab2 AS cor0
----
-35
query I rowsort
SELECT - + 95 * col0 AS col0 FROM tab1 AS cor0
----
-285
-6080
-7600
query I rowsort
SELECT + 93 + - col1 AS col2 FROM tab1
----
67
80
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-3956
SELECT + col0 DIV ( - col1 ) - 87 * col2 FROM tab1
----
-4698
-4965
-8358
skipif mysql # not compatible
query I rowsort label-3956
SELECT + col0 / ( - col1 ) - 87 * col2 FROM tab1
----
-4698
-4965
-8358
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col2 FROM tab0
----
98
98
98
query I rowsort
SELECT DISTINCT 61 * - tab2.col0 AS col0 FROM tab2
----
-427
-4758
-4819
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * - col0 col1 FROM tab0
----
-1157
-312
-455
query I rowsort
SELECT - + 36 + col0 AS col2 FROM tab2 AS cor0
----
-29
42
43
query I rowsort
SELECT + col0 * + col0 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + ( tab0.col0 ) + - col0 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT + col0 * col1 + ( col1 ) * col2 + + ( col0 ) AS col1 FROM tab0
----
15650
3527
4926
query I rowsort
SELECT col0 * - cor0.col1 + - ( + col0 ) FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT col1 + + 5 FROM tab1 AS cor0
----
15
18
31
query I rowsort
SELECT ( - 33 ) AS col0 FROM tab2, tab2 AS cor0, tab0, tab2 AS cor1
----
81 values hashing to a539377dccf415ca13c845420f532336
query I rowsort
SELECT DISTINCT - + col2 * + 32 AS col2 FROM tab0 AS cor0
----
-1056
-2624
-32
onlyif mysql # use DIV operator for integer division
query I rowsort label-3968
SELECT - + col0 + col1 DIV 17 AS col1 FROM tab2 AS cor0
----
-6
-75
-78
skipif mysql # not compatible
query I rowsort label-3968
SELECT - + col0 + col1 / 17 AS col1 FROM tab2 AS cor0
----
-6
-75
-78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3969
SELECT DISTINCT + col2 + - CAST( 93 AS SIGNED ) FROM tab1 AS cor0
----
-36
-39
3
skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT + col2 + - CAST ( 93 AS INTEGER ) FROM tab1 AS cor0
----
-36
-39
3
query I rowsort
SELECT col1 + cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + - cor0.col2 * + col0 + 14 AS col2 FROM tab0 AS cor0
----
-21
-7284
-778
query I rowsort
SELECT ALL - 61 * - 64 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 4091375083e89acfe81f15da8dce176d
onlyif mysql # use DIV operator for integer division
query I rowsort label-3973
SELECT ALL - col2 DIV 7 FROM tab1 AS cor0
----
-13
-7
-8
skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL - col2 / 7 FROM tab1 AS cor0
----
-13
-7
-8
query I rowsort
SELECT + col0 * col2 + 93 * - cor0.col2 FROM tab0 AS cor0
----
-2277
-328
-58
query I rowsort
SELECT - col1 * 68 + col2 * - col0 FROM tab2 AS cor0
----
-2297
-4158
-6040
query I rowsort
SELECT ALL col2 * 80 FROM tab1 AS cor0
----
4320
4560
7680
query I rowsort
SELECT DISTINCT - + cor0.col2 * 1 + - col2 AS col0 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT col1 + - 97 * ( + col2 * col0 ) + + ( + cor0.col1 ) AS col1 FROM tab0 cor0
----
-3201
-707724
-76652
query I rowsort
SELECT - col1 * + 22 + - cor0.col2 * + col1 + 80 FROM tab2 AS cor0
----
-1439
-2752
-940
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3980
SELECT CAST( NULL AS SIGNED ) + + 51 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-3980
SELECT CAST ( NULL AS INTEGER ) + + 51 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT - - 55 + col2 * + col0 AS col0 FROM tab0 AS cor0
----
7353
847
90
query I rowsort
SELECT ALL - + ( col0 ) * + cor0.col2 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT + ( - 78 ) AS col2 FROM tab2 AS cor0
----
-78
-78
-78
query I rowsort
SELECT - 2 * - ( col1 ) AS col1 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + 11 * col0 AS col0 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT DISTINCT - col1 * col1 + - col2 AS col2 FROM tab1 AS cor0
----
-157
-265
-730
query I rowsort
SELECT DISTINCT col1 * 81 * - ( col2 ) + 92 + + 22 FROM tab1
----
-100974
-113610
-46056
query I rowsort
SELECT DISTINCT + col2 + col2 * col2 * col1 AS col2 FROM tab2 AS cor0
----
22626
24586
39910
onlyif mysql # use DIV operator for integer division
query I rowsort label-3989
SELECT ALL col2 DIV col1 AS col2 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-3989
SELECT ALL col2 / col1 AS col2 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT - col0 + ( col2 ) * - 71 FROM tab1 AS cor0
----
-3837
-4111
-6896
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 33 col1 FROM tab2 AS cor0
----
33
query I rowsort
SELECT DISTINCT + + ( + cor0.col0 ) + col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL 4 + + col1 * col0 FROM tab0 AS cor0
----
2068
3399
8103
query I rowsort
SELECT ALL + 73 + + cor0.col2 FROM tab1 cor0
----
127
130
169
query I rowsort
SELECT DISTINCT - 74 + + col1 * + col1 AS col1 FROM tab1 AS cor0
----
26
602
95
query I rowsort
SELECT ALL + col0 - - cor0.col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-3997
SELECT DISTINCT + 7 * + col1 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-3997
SELECT DISTINCT + 7 * + col1 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 19 - + col2 AS col2 FROM tab2 AS cor0
----
-19
-7
-8
onlyif mysql # use DIV operator for integer division
query I rowsort label-3999
SELECT ALL - col0 + + col0 DIV - col2 AS col2 FROM tab1 cor0
----
-3
-65
-80
skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL - col0 + + col0 / - col2 AS col2 FROM tab1 cor0
----
-3
-65
-80
query I rowsort
SELECT - + 17 + + cor0.col1 * col1 AS col1 FROM tab0 AS cor0
----
7379
8264
9392
query I rowsort
SELECT DISTINCT 17 FROM tab0 cor0
----
17
query I rowsort
SELECT DISTINCT 97 * col0 * + 32 + + col1 FROM tab1 AS cor0
----
198666
248333
9338
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) + col2 col1 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col2 + col1 * + 47 FROM tab0 cor0
----
4075
4359
4560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4005
SELECT ( + col0 ) + cor0.col1 DIV 92 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4005
SELECT ( + col0 ) + cor0.col1 / 92 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL col2 * col2 + ( + 87 ) AS col1 FROM tab2 AS cor0
----
1531
763
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 0 col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * - col0 + col1 - - col1 FROM tab1
----
-4076
-6374
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-4009
SELECT + col1 * col2 + + col1 + + col2 * cor0.col1 DIV + 56 AS col1 FROM tab0 AS cor0
----
195
2974
7686
skipif mysql # not compatible
query I rowsort label-4009
SELECT + col1 * col2 + + col1 + + col2 * cor0.col1 / + 56 AS col1 FROM tab0 AS cor0
----
195
2974
7686
query I rowsort
SELECT ALL + cor0.col0 * + col1 + cor0.col2 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4011
SELECT DISTINCT + CAST( - 68 AS SIGNED ) - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4011
SELECT DISTINCT + CAST ( - 68 AS INTEGER ) - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4012
SELECT CAST( NULL AS SIGNED ) + col2 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4012
SELECT CAST ( NULL AS INTEGER ) + col2 * - col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 14 * ( - col2 ) AS col0 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT DISTINCT ( 83 ) AS col1 FROM tab1 AS cor0
----
83
query I rowsort
SELECT ALL + - ( col2 ) + col0 * - 30 AS col0 FROM tab2 cor0
----
-2366
-237
-2408
query I rowsort
SELECT ALL - 36 * - col1 * col0 AS col1 FROM tab1 AS cor0
----
23040
2808
37440
query I rowsort
SELECT col2 * ( col0 * + 48 ) AS col1 FROM tab0 AS cor0
----
1680
350304
38016
query I rowsort
SELECT ALL + col2 + - col0 * col1 AS col1 FROM tab0 AS cor0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * + col1 col0 FROM tab1 cor0
----
100
169
676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4020
SELECT CAST( col0 AS SIGNED ) col1 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4020
SELECT CAST ( col0 AS INTEGER ) col1 FROM tab1
----
3
64
80
query I rowsort
SELECT ALL - + col2 * + col0 + col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ALL - 8 * col2 + col1 + 85 FROM tab2 cor0
----
-100
-202
-64
query I rowsort
SELECT DISTINCT + - 74 + cor0.col1 AS col0 FROM tab0 AS cor0
----
12
17
23
query I rowsort
SELECT + 15 + + col1 FROM tab1 AS cor0
----
25
28
41
query I rowsort
SELECT ALL + 5 + col0 * col2 AS col1 FROM tab1 AS cor0
----
167
3653
7685
query I rowsort
SELECT DISTINCT col2 + - cor0.col1 * + col1 + + col2 FROM tab1 AS cor0
----
-568
14
23
query I rowsort
SELECT + col2 + + 14 FROM tab0 AS cor0
----
15
47
96
query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL + 60 AS col0 FROM tab0, tab1 cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33
onlyif mysql # use DIV operator for integer division
query I rowsort label-4030
SELECT col1 + col2 DIV col2 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4030
SELECT col1 + col2 / col2 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT + col2 * 39 AS col1 FROM tab0 AS cor0
----
1287
3198
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col2 FROM tab0, tab1 cor0
----
91
query I rowsort
SELECT - col0 * - col1 * 58 - + col1 * col0 AS col0 FROM tab2
----
12369
262314
76551
query I rowsort
SELECT ALL + col2 * ( col2 ) - cor0.col1 * + 33 AS col0 FROM tab2 AS cor0
----
-1271
-294
883
query I rowsort
SELECT DISTINCT + 27 + tab0.col0 AS col2 FROM tab0
----
116
51
62
query I rowsort
SELECT ALL 71 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 + - col2 AS col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT - col0 + 49 AS col2 FROM tab1 AS cor0
----
-15
-31
46
query I rowsort
SELECT DISTINCT - col0 + - cor0.col2 AS col0 FROM tab2 cor0
----
-104
-117
-34
onlyif mysql # use DIV operator for integer division
query I rowsort label-4040
SELECT ALL + col0 DIV - col1 - 67 AS col2 FROM tab0 AS cor0
----
-67
-67
-67
skipif mysql # not compatible
query I rowsort label-4040
SELECT ALL + col0 / - col1 - 67 AS col2 FROM tab0 AS cor0
----
-67
-67
-67
query I rowsort
SELECT 27 * - 0 FROM tab2, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT - col1 + - ( + tab2.col0 ) * col1 FROM tab2
----
-1360
-248
-4661
query I rowsort
SELECT ALL - col2 * + 65 FROM tab2
----
-1690
-1755
-2470
query I rowsort
SELECT ALL col1 * 80 AS col2 FROM tab2
----
1360
2480
4720
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 cor0, tab0 cor1, tab2 AS cor2
----
972 values hashing to 591a9a93560839231c038a1e10bd240a
query I rowsort
SELECT - 24 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to f2e40f6e5cdbc2877843191cb261975f
query I rowsort
SELECT ALL - 92 FROM tab1, tab0, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 95b4f8d1f8c6430076327dcc6092a86c
query I rowsort
SELECT DISTINCT 21 * col0 * + col2 FROM tab1
----
161280
3402
76608
query I rowsort
SELECT ALL ( 70 ) FROM tab2
----
70
70
70
query I rowsort
SELECT + 7 FROM tab2, tab0 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76
query I rowsort
SELECT + col1 + - cor0.col0 * col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT - cor0.col0 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + col0 col0 FROM tab1 AS cor0
----
-23
54
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 col2 FROM tab2
----
289
3481
961
onlyif mysql # use DIV operator for integer division
query I rowsort label-4055
SELECT - col2 + col1 DIV col2 FROM tab0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-4055
SELECT - col2 + col1 / col2 FROM tab0
----
-31
-81
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4056
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-4056
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT - - col0 * col1 + col2 FROM tab1 AS cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-4059
SELECT - + col2 + col2 DIV + col1 AS col1 FROM tab1 AS cor0
----
-52
-52
-89
skipif mysql # not compatible
query I rowsort label-4059
SELECT - + col2 + col2 / + col1 AS col1 FROM tab1 AS cor0
----
-52
-52
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * col0 col1 FROM tab1 AS cor0
----
-234
-4992
-6240
onlyif mysql # use DIV operator for integer division
query I rowsort label-4061
SELECT - ( col1 ) DIV ( + 73 ) AS col1 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4061
SELECT - ( col1 ) / ( + 73 ) AS col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 23 * - col0 FROM tab2 AS cor0
----
-161
-1794
-1817
query I rowsort
SELECT - cor0.col2 * + 54 AS col0 FROM tab0 AS cor0
----
-1782
-4428
-54
onlyif mysql # use DIV operator for integer division
query I rowsort label-4064
SELECT col0 * 61 DIV + col0 + + col0 + col1 FROM tab0 AS cor0
----
171
193
241
skipif mysql # not compatible
query I rowsort label-4064
SELECT col0 * 61 / + col0 + + col0 + col1 FROM tab0 AS cor0
----
171
193
241
query I rowsort
SELECT DISTINCT - col0 + - 22 * 78 FROM tab0 AS cor0
----
-1740
-1751
-1805
query I rowsort
SELECT col1 * col0 * col2 + - col2 + col1 * col1 FROM tab2 AS cor0
----
123107
51285
6793
query I rowsort
SELECT col2 * 96 AS col0 FROM tab2 AS cor0
----
2496
2592
3648
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4068
SELECT + + col2 + CAST( NULL AS DECIMAL ) * col2 / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4068
SELECT + + col2 + CAST ( NULL AS REAL ) * col2 / - col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4069
SELECT DISTINCT ( tab0.col0 ) * + tab0.col0 * 85 + + col0 * + col1 DIV col1 FROM tab0
----
104160
48984
673374
skipif mysql # not compatible
query I rowsort label-4069
SELECT DISTINCT ( tab0.col0 ) * + tab0.col0 * 85 + + col0 * + col1 / col1 FROM tab0
----
104160
48984
673374
onlyif mysql # use DIV operator for integer division
query I rowsort label-4070
SELECT ALL - col2 + col1 * col1 + + col0 DIV - col1 AS col2 FROM tab1
----
37
622
67
skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL - col2 + col1 * col1 + + col0 / - col1 AS col2 FROM tab1
----
37
622
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4071
SELECT - col2 * 97 - - col0 DIV - col1 FROM tab2 AS cor0
----
-2523
-2619
-3690
skipif mysql # not compatible
query I rowsort label-4071
SELECT - col2 * 97 - - col0 / - col1 FROM tab2 AS cor0
----
-2523
-2619
-3690
query I rowsort
SELECT + col0 * + 38 AS col2 FROM tab2 AS cor0
----
266
2964
3002
query I rowsort
SELECT + - col1 + - cor0.col0 * + 57 FROM tab0 AS cor0
----
-1454
-2092
-5164
query I rowsort
SELECT - 56 * + cor0.col0 + + 25 * cor0.col2 FROM tab1 cor0
----
-2080
-2159
1182
onlyif mysql # use DIV operator for integer division
query I rowsort label-4075
SELECT DISTINCT col1 DIV col0 + ( - col1 ) + col0 * col0 col1 FROM tab0 AS cor0
----
1130
493
7831
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4075
SELECT DISTINCT col1 / col0 + ( - col1 ) + col0 * col0 col1 FROM tab0 AS cor0
----
1130
493
7831
query I rowsort
SELECT - + cor0.col2 * + cor0.col1 + col0 * - 94 AS col1 FROM tab0 AS cor0
----
-15828
-3387
-5094
query I rowsort
SELECT + + 19 + + col0 AS col1 FROM tab1 AS cor0
----
22
83
99
query I rowsort
SELECT ALL 5 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT DISTINCT - - col2 * + col0 + - col0 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + cor0.col0 + - cor0.col1 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT + col0 * - col0 + 86 * col1 * cor0.col0 FROM tab0 AS cor0
----
176928
290745
688593
onlyif mysql # use DIV operator for integer division
query I rowsort label-4082
SELECT ALL + - col0 * + col1 DIV + col1 col1 FROM tab1 AS cor0
----
-3
-64
-80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4082
SELECT ALL + - col0 * + col1 / + col1 col1 FROM tab1 AS cor0
----
-3
-64
-80
query I rowsort
SELECT + + 88 + cor0.col2 * 25 * - col1 FROM tab0 AS cor0
----
-186462
-2337
-70862
query I rowsort
SELECT DISTINCT + + col1 * + col2 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT ALL - col2 * ( 19 ) * col2 + + 34 FROM tab2 AS cor0
----
-12810
-13817
-27402
query I rowsort
SELECT DISTINCT + col2 + + tab0.col0 + col1 AS col2 FROM tab0
----
133
143
262
query I rowsort
SELECT - cor0.col1 AS col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to c7890469eabb2c6fc81454b35d2333b6
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + 40 col1 FROM tab0 AS cor0
----
84
84
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-4089
SELECT 70 * col2 + - col1 DIV - col0 + + col0 AS col2 FROM tab2 AS cor0
----
1898
1901
2739
skipif mysql # not compatible
query I rowsort label-4089
SELECT 70 * col2 + - col1 / - col0 + + col0 AS col2 FROM tab2 AS cor0
----
1898
1901
2739
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4090
SELECT col2 * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4090
SELECT col2 * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col2 - col2 * col2 FROM tab2 AS cor0
----
-540
1352
1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-4092
SELECT DISTINCT col0 DIV - col0 FROM tab1 cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT col0 / - col0 FROM tab1 cor0
----
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4093
SELECT - CAST( NULL AS SIGNED ) + col0 - - col2 * - 87 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4093
SELECT - CAST ( NULL AS INTEGER ) + col0 - - col2 * - 87 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 41 * col0 FROM tab2 cor0
----
-287
-3198
-3239
onlyif mysql # use DIV operator for integer division
query I rowsort label-4095
SELECT tab2.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-4095
SELECT tab2.col1 / - col0 col0 FROM tab2
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - tab1.col2 + - col0 ) col2 FROM tab1
----
14080
171
7744
query I rowsort
SELECT + 55 FROM tab2, tab2 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
query I rowsort
SELECT - ( + 16 ) FROM tab0
----
-16
-16
-16
onlyif mysql # use DIV operator for integer division
query I rowsort label-4099
SELECT - ( - 13 ) DIV + col0 + ( + col1 ) FROM tab2 AS cor0
----
17
32
59
skipif mysql # not compatible
query I rowsort label-4099
SELECT - ( - 13 ) / + col0 + ( + col1 ) FROM tab2 AS cor0
----
17
32
59
query I rowsort
SELECT + - 69 - + col0 * + col2 FROM tab1 AS cor0
----
-231
-3717
-7749
query I rowsort
SELECT + - 40 * col1 + col2 AS col0 FROM tab1 AS cor0
----
-343
-424
-986
query I rowsort
SELECT DISTINCT - 98 * + col0 + + col0 - col2 AS col1 FROM tab2
----
-706
-7592
-7701
query I rowsort
SELECT DISTINCT 28 * + col1 - col2 FROM tab0
----
2375
2466
2715
query I rowsort
SELECT + ( tab2.col1 ) * col2 AS col1 FROM tab2
----
1534
646
837
query I rowsort
SELECT DISTINCT col2 * col1 - col1 AS col1 FROM tab1
----
1235
1378
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4106
SELECT ALL col2 DIV - 13 - col1 * CAST( col0 AS SIGNED ) * col2 col2 FROM tab0
----
-3395
-664124
-68114
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL col2 / - 13 - col1 * CAST ( col0 AS INTEGER ) * col2 col2 FROM tab0
----
-3395
-664124
-68114
query I rowsort
SELECT DISTINCT - 8 FROM tab0, tab1 cor0
----
-8
query I rowsort
SELECT ALL + 12 + - col0 - col0 FROM tab2
----
-144
-146
-2
query I rowsort
SELECT ( + ( - col0 ) ) FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4110
SELECT DISTINCT + 99 DIV 39 + col1 col2 FROM tab2
----
19
33
61
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + 99 / 39 + col1 col2 FROM tab2
----
19
33
61
query I rowsort
SELECT ALL ( - col2 ) + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL col0 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL + - 59 + + cor0.col2 FROM tab0 AS cor0
----
-26
-58
23
query I rowsort
SELECT - ( - col1 ) * cor0.col1 + col0 * + col1 FROM tab0 AS cor0
----
12804
16380
9460
onlyif mysql # use DIV operator for integer division
query I rowsort label-4115
SELECT DISTINCT col0 DIV - cor0.col1 AS col0 FROM tab1 cor0
----
-6
0
skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT col0 / - cor0.col1 AS col0 FROM tab1 cor0
----
-6
0
query I rowsort
SELECT DISTINCT - - 55 + - col1 * - col2 AS col1 FROM tab1 AS cor0
----
1303
1459
625
query I rowsort
SELECT ALL cor0.col1 * + col2 - col1 * 2 FROM tab2 AS cor0
----
1416
612
775
query I rowsort
SELECT ALL 69 AS col0 FROM tab2 AS cor0
----
69
69
69
query I rowsort
SELECT col2 * + col0 + + 99 AS col1 FROM tab1 cor0
----
261
3747
7779
query I rowsort
SELECT - + col0 * col0 - 33 * col0 AS col1 FROM tab0 AS cor0
----
-10858
-1368
-2380
query I rowsort
SELECT - - cor0.col2 + cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT 40 + + col1 * 96 AS col1 FROM tab1 AS cor0
----
1000
1288
2536
onlyif mysql # use DIV operator for integer division
query I rowsort label-4123
SELECT DISTINCT - col0 DIV + col1 AS col2 FROM tab2 cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-4123
SELECT DISTINCT - col0 / + col1 AS col2 FROM tab2 cor0
----
-1
-4
0
query I rowsort
SELECT + col0 * col2 - ( + col0 + + col2 ) AS col0 FROM tab1 AS cor0
----
105
3527
7504
query I rowsort
SELECT ALL + - col0 + - col1 FROM tab0 cor0
----
-110
-132
-180
query I rowsort
SELECT DISTINCT - 6 - col0 AS col2 FROM tab2 AS cor0
----
-13
-84
-85
query I rowsort
SELECT DISTINCT col1 + + col1 * 26 AS col2 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT ALL + 9 + col2 FROM tab0 cor0
----
10
42
91
query I rowsort
SELECT DISTINCT - 9 * col2 FROM tab0 AS cor0
----
-297
-738
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4130
SELECT ALL + + col0 + + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL + + col0 + + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * + col0 + + col0 * col1 AS col2 FROM tab1 AS cor0
----
240
4288
8720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4132
SELECT ALL cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col2 * - col1 + - col0 FROM tab2 cor0
----
-1612
-725
-844
onlyif mysql # use DIV operator for integer division
query I rowsort label-4134
SELECT cor0.col0 DIV cor0.col1 FROM tab1 AS cor0
----
0
6
6
skipif mysql # not compatible
query I rowsort label-4134
SELECT cor0.col0 / cor0.col1 FROM tab1 AS cor0
----
0
6
6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4135
SELECT DISTINCT - + CAST( - 32 AS SIGNED ) + cor0.col0 FROM tab2 cor0
----
110
111
39
skipif mysql # not compatible
query I rowsort label-4135
SELECT DISTINCT - + CAST ( - 32 AS INTEGER ) + cor0.col0 FROM tab2 cor0
----
110
111
39
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1 AS cor2, tab0 AS cor3
----
3645 values hashing to f99537dcc805430f79ac82ef70a4bd59
query I rowsort
SELECT ALL 93 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT + col1 + + tab1.col2 * tab1.col1 + - col0 * col0 FROM tab1
----
-3516
-5139
1421
query I rowsort
SELECT ALL - tab0.col0 + - col1 * col0 FROM tab0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT col1 * + col1 * - col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT col2 * col1 + col0 + + cor0.col1 * col0 AS col1 FROM tab0 cor0
----
15650
3527
4926
onlyif mysql # use DIV operator for integer division
query I rowsort label-4142
SELECT - col1 + col0 + col2 * col2 DIV + col1 FROM tab2 AS cor0
----
-1
146
30
skipif mysql # not compatible
query I rowsort label-4142
SELECT - col1 + col0 + col2 * col2 / + col1 FROM tab2 AS cor0
----
-1
146
30
query I rowsort
SELECT + col0 * tab2.col2 * - col2 + - col1 AS col1 FROM tab2
----
-114093
-5134
-52787
query I rowsort
SELECT ALL col1 + - col1 * col2 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT DISTINCT col2 * col1 * col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 * - col2 AND NULL
----
query I rowsort
SELECT col0 - - col1 * col2 * col1 AS col1 FROM tab2
----
11061
25954
90584
query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT IN ( - col1 - - col2 * col2 )
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * - col2 >= + col2 * col0
----
64
10
57
query I rowsort
SELECT DISTINCT col2 * + col1 + tab0.col0 FROM tab0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col2 FROM tab1
----
-100
-169
-676
query I rowsort
SELECT ALL + cor0.col2 * + col0 + + col2 * col0 * col2 FROM tab0 AS cor0
----
26928
605734
70
query I rowsort
SELECT ALL - - col2 * col0 AS col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT - cor0.col2 - - cor0.col2 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT - col0 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 + col2 * col0 col2 FROM tab2 cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + - col2 * col2 * + col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
query I rowsort
SELECT col0 + col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( cor0.col0 )
----
3559
368
968
onlyif mysql # use DIV operator for integer division
query I rowsort label-4158
SELECT - col2 DIV - col1 + + col0 AS col2 FROM tab1 AS cor0
----
5
69
87
skipif mysql # not compatible
query I rowsort label-4158
SELECT - col2 / - col1 + + col0 AS col2 FROM tab1 AS cor0
----
5
69
87
query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) >= col0 * col1
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + col1 * col2 * col2 col0 FROM tab0
----
-3298
603785
91590
query I rowsort
SELECT - col2 + col2 * col2 AS col0 FROM tab2
----
1406
650
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-4162
SELECT ALL - col2 * col0 * col0 + tab2.col1 DIV col1 AS col1 FROM tab2
----
-1322
-158183
-237157
skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL - col2 * col0 * col0 + tab2.col1 / col1 AS col1 FROM tab2
----
-1322
-158183
-237157
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col2 * col2 + 17 col2 FROM tab2 cor0
----
-1427
-659
-712
query I rowsort
SELECT - col2 * - 3 AS col0 FROM tab2 cor0
----
114
78
81
query I rowsort
SELECT + cor0.col0 * + col0 + + col1 AS col2 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT col0 + ( + cor0.col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL col0 * col0 * + col1 + col0 AS col0 FROM tab0 AS cor0
----
118860
49560
720900
query I rowsort
SELECT ALL + tab0.col0 + + tab0.col0 FROM tab0
----
178
48
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4169
SELECT col2 DIV - tab0.col2 FROM tab0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4169
SELECT col2 / - tab0.col2 FROM tab0
----
-1
-1
-1
query I rowsort
SELECT col1 * 48 + + col2 + col0 * col0 AS col0 FROM tab1 AS cor0
----
1311
4633
7120
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4171
SELECT - - col1 * CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4171
SELECT - - col1 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT - - col1 * + ( + cor0.col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT - 29 + - col1 * + col2 + - 13 FROM tab0 AS cor0
----
-139
-2880
-7504
onlyif mysql # use DIV operator for integer division
query I rowsort label-4174
SELECT + 20 DIV col0 FROM tab2 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-4174
SELECT + 20 / col0 FROM tab2 AS cor0
----
0
0
2
query I rowsort
SELECT ALL + - 5 AS col2 FROM tab2 AS cor0
----
-5
-5
-5
query I rowsort
SELECT - + col1 * - col0 AS col2 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - cor0.col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col1 + col0 * col1 * - col1 FROM tab2
----
-22814
-271459
-6696
onlyif mysql # use DIV operator for integer division
query I rowsort label-4179
SELECT ALL tab1.col2 DIV col0 - col0 AS col2 FROM tab1
----
-64
-79
15
skipif mysql # not compatible
query I rowsort label-4179
SELECT ALL tab1.col2 / col0 - col0 AS col2 FROM tab1
----
-64
-79
15
query I rowsort
SELECT ALL - col1 - col0 * tab2.col0 * tab2.col0 AS col2 FROM tab2
----
-374
-474611
-493056
onlyif mysql # use DIV operator for integer division
query I rowsort label-4181
SELECT 76 DIV + col1 AS col1 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4181
SELECT 76 / + col1 AS col1 FROM tab0
----
0
0
0
query I rowsort
SELECT col0 * col0 * tab1.col0 AS col2 FROM tab1
----
262144
27
512000
query I rowsort
SELECT + ( tab1.col0 ) FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + col1 + col2 * + ( + 90 ) FROM tab0 cor0
----
187
3056
7471
query I rowsort
SELECT 24 FROM tab0 cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-4186
SELECT DISTINCT + col0 DIV - ( - col0 ) + - tab1.col2 FROM tab1
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT + col0 / - ( - col0 ) + - tab1.col2 FROM tab1
----
-53
-56
-95
query I rowsort
SELECT + col2 * + col0 * + 18 AS col2 FROM tab0 AS cor0
----
131364
14256
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4188
SELECT - - col0 + + cor0.col2 DIV - col1 FROM tab2 AS cor0
----
7
77
78
skipif mysql # not compatible
query I rowsort label-4188
SELECT - - col0 + + cor0.col2 / - col1 FROM tab2 AS cor0
----
7
77
78
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4189
SELECT ALL + cor0.col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL + cor0.col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4190
SELECT ALL + col1 DIV - ( col2 * cor0.col0 ) FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4190
SELECT ALL + col1 / - ( col2 * cor0.col0 ) FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col1 * + 33 AS col2 FROM tab0 AS cor0
----
2838
3003
3201
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * + ( col2 ) - col0 * col2 col1 FROM tab1 AS cor0
----
-15360
-324
-7296
query I rowsort
SELECT + 5 + - 30 * col1 FROM tab0 AS cor0
----
-2575
-2725
-2905
query I rowsort
SELECT - cor0.col0 + cor0.col0 * - col1 AS col2 FROM tab1 cor0
----
-1120
-704
-81
query I rowsort
SELECT DISTINCT - - ( 95 ) AS col2 FROM tab0 AS cor0
----
95
query I rowsort
SELECT DISTINCT + - col0 * + 93 AS col0 FROM tab0 AS cor0
----
-2232
-3255
-8277
query I rowsort
SELECT + + col0 * 21 FROM tab1 AS cor0
----
1344
1680
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 + col1 col1 FROM tab1 AS cor0
----
-3
-6
10
query I rowsort
SELECT ALL + + 69 + 82 FROM tab0 AS cor0
----
151
151
151
query I rowsort
SELECT DISTINCT - + 65 AS col1 FROM tab0 AS cor0
----
-65
query I rowsort
SELECT ALL - + col1 - + col0 * - cor0.col0 AS col0 FROM tab1 cor0
----
-17
4086
6387
query I rowsort
SELECT + col1 * - col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-1079
-470
-728
query I rowsort
SELECT DISTINCT - col1 * cor0.col0 AS col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT cor1.col0 FROM tab1, tab2 AS cor0, tab2 cor1
----
7
78
79
query I rowsort
SELECT ALL + 68 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 10aa25f1c6b97582c34521ac6452e0b4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 col2 FROM tab0
----
28
28
28
onlyif mysql # use DIV operator for integer division
query I rowsort label-4207
SELECT + ( + col2 ) DIV 44 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4207
SELECT + ( + col2 ) / 44 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT DISTINCT + + col0 + cor0.col2 * cor0.col2 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - col0 + - 65 AS col2 FROM tab2 AS cor0
----
-143
-144
-72
onlyif mysql # use DIV operator for integer division
query I rowsort label-4210
SELECT + col2 * col1 DIV col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-4210
SELECT + col2 * col1 / col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT 74 * - col2 AS col2 FROM tab1
----
-3996
-4218
-7104
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col1 col1 FROM tab0, tab1 cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT + - col1 * col2 + col0 AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query IIIIII rowsort
SELECT * FROM tab1, tab1 cor0 WHERE ( NULL ) > ( NULL )
----
query I rowsort
SELECT DISTINCT col0 * col2 + + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 * - tab2.col2 ) + + col1 * + col0 col1 FROM tab2
----
406
4345
6630
onlyif mysql # use DIV operator for integer division
query I rowsort label-4217
SELECT DISTINCT col0 * col0 + + col0 DIV col1 FROM tab0
----
1225
576
7921
skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT col0 * col0 + + col0 / col1 FROM tab0
----
1225
576
7921
query I rowsort
SELECT + col0 + - col2 + + col0 AS col0 FROM tab1
----
-48
64
71
query I rowsort
SELECT col0 - + col2 * col0 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT col0 * cor0.col0 + col0 FROM tab2 cor0
----
56
6162
6320
query I rowsort
SELECT - col1 + - col2 - + col2 * col2 AS col1 FROM tab1
----
-2996
-3316
-9325
query I rowsort
SELECT col2 * - col0 + + col2 - - col0 * col0 FROM tab2
----
-113
3277
4082
query I rowsort
SELECT col2 * - tab1.col1 + + col0 * + col2 FROM tab1
----
-1242
3078
6432
query I rowsort
SELECT ALL + - col1 * + col1 * - col2 FROM tab2 AS cor0
----
10982
25947
90506
onlyif mysql # use DIV operator for integer division
query I rowsort label-4225
SELECT ALL col1 + col0 DIV - col0 AS col1 FROM tab1 cor0
----
12
25
9
skipif mysql # not compatible
query I rowsort label-4225
SELECT ALL col1 + col0 / - col0 AS col1 FROM tab1 cor0
----
12
25
9
query I rowsort
SELECT - tab2.col2 AS col1 FROM tab2 WHERE NULL >= NULL AND NOT col2 NOT IN ( + col1 )
----
query I rowsort
SELECT ALL col0 + + tab2.col1 * + col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT ALL tab1.col2 + + col1 + - col2 AS col0 FROM tab1
----
10
13
26
query I rowsort
SELECT tab1.col1 + col1 * - col2 * col0 + + col1 FROM tab1
----
-36460
-4160
-99814
query I rowsort
SELECT ALL 24 + col2 FROM tab0
----
106
25
57
query I rowsort
SELECT + col0 + - col0 * tab0.col2 AS col0 FROM tab0
----
-7209
-768
0
query I rowsort
SELECT + col2 * tab2.col2 - col1 FROM tab2
----
1427
617
698
query I rowsort
SELECT DISTINCT - col2 + - 34 AS col0 FROM tab2
----
-60
-61
-72
query I rowsort
SELECT DISTINCT - col0 * col1 + + cor0.col0 AS col2 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT DISTINCT col1 * cor0.col0 + - col0 * col1 + col0 FROM tab1 AS cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4236
SELECT ALL col0 - cor0.col2 DIV + col2 col0 FROM tab1 AS cor0
----
2
63
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL col0 - cor0.col2 / + col2 col0 FROM tab1 AS cor0
----
2
63
79
query I rowsort
SELECT - col2 + - col0 * - col2 AS col2 FROM tab2 cor0
----
162
2002
2964
query I rowsort
SELECT DISTINCT + 17 * col0 AS col2 FROM tab0 AS cor0
----
1513
408
595
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * + col1 col1 FROM tab1 AS cor0
----
1924
740
962
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 68 * + tab2.col1 col0 FROM tab2
----
14756
312936
91324
query I rowsort
SELECT ALL + col1 * + col2 + col1 FROM tab2
----
1593
663
868
onlyif mysql # use DIV operator for integer division
query I rowsort label-4242
SELECT ALL tab0.col1 + col1 DIV col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4242
SELECT ALL tab0.col1 + col1 / col1 FROM tab0
----
87
92
98
query I rowsort
SELECT ALL col2 + + col2 + - col0 AS col0 FROM tab1
----
105
112
50
query I rowsort
SELECT 91 + col2 FROM tab1
----
145
148
187
query I rowsort
SELECT + tab2.col2 + 98 * + col1 FROM tab2
----
1704
3065
5808
query I rowsort
SELECT ALL - col0 * tab0.col2 AS col0 FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL - - 73 FROM tab1 cor0
----
73
73
73
query I rowsort
SELECT + 57 + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-1032
-6667
56
query I rowsort
SELECT ALL + col1 * col1 + cor0.col1 + - col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT DISTINCT + col2 + col2 - + col1 FROM tab1 cor0
----
104
179
82
query I rowsort
SELECT ALL - col0 * col2 + col1 AS col1 FROM tab1 cor0
----
-136
-3638
-7667
query I rowsort
SELECT 94 * + cor0.col1 AS col0 FROM tab2 cor0
----
1598
2914
5546
query I rowsort
SELECT ALL + + col2 + cor0.col2 + col2 AS col2 FROM tab0 AS cor0
----
246
3
99
query I rowsort
SELECT DISTINCT col0 + col1 * - col0 AS col0 FROM tab2 cor0
----
-1264
-210
-4524
query I rowsort
SELECT ALL - ( col0 ) * col1 * cor0.col1 + + col1 * cor0.col1 FROM tab1 AS cor0
----
-13351
-1352
-6300
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col0 * ( col2 ) * ( - col2 ) + - col0 col0 FROM tab0
----
-26160
-598525
-70
query I rowsort
SELECT - 16 * + col0 * col1 AS col2 FROM tab1 AS cor0
----
-10240
-1248
-16640
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 * + col0 col1 FROM tab0
----
1050
2670
720
query I rowsort
SELECT ALL + tab0.col2 + - ( col1 ) AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT + col2 * - ( col0 * ( tab0.col2 ) ) + + col0 AS col2 FROM tab0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT tab1.col0 + + 86 AS col1 FROM tab1, tab0 AS cor0
----
150
166
89
query I rowsort
SELECT - + 43 * cor1.col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d63b9f5efe4a56f768f4f3965e711c5f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4264
SELECT 65 DIV - col0 + + 61 * - 20 AS col1 FROM tab0 AS cor0
----
-1220
-1221
-1222
skipif mysql # not compatible
query I rowsort label-4264
SELECT 65 / - col0 + + 61 * - 20 AS col1 FROM tab0 AS cor0
----
-1220
-1221
-1222
query I rowsort
SELECT - col1 * - col2 + + 52 FROM tab1 AS cor0
----
1300
1456
622
query I rowsort
SELECT - 40 * + col1 + + 64 AS col2 FROM tab0 AS cor0
----
-3376
-3576
-3816
query I rowsort
SELECT ALL - col2 + col1 * - col2 FROM tab0 AS cor0
----
-2871
-7544
-98
query I rowsort
SELECT ALL + col1 * col0 + - col1 AS col2 FROM tab2 AS cor0
----
1326
186
4543
onlyif mysql # use DIV operator for integer division
query I rowsort label-4269
SELECT 62 * col2 + col0 DIV + col1 FROM tab1 AS cor0
----
3348
3540
5958
skipif mysql # not compatible
query I rowsort label-4269
SELECT 62 * col2 + col0 / + col1 FROM tab1 AS cor0
----
3348
3540
5958
query I rowsort
SELECT ALL - col1 + 74 AS col2 FROM tab1
----
48
61
64
onlyif mysql # use DIV operator for integer division
query I rowsort label-4271
SELECT - col2 * CAST( - 63 AS SIGNED ) DIV + col2 FROM tab1
----
63
63
63
skipif mysql # not compatible
query I rowsort label-4271
SELECT - col2 * CAST ( - 63 AS INTEGER ) / + col2 FROM tab1
----
63
63
63
skipif mysql # not compatible
query I rowsort
SELECT col2 * CAST ( - col2 AS REAL ) * col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
query I rowsort
SELECT DISTINCT + col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + col2 * col2 col0 FROM tab2 AS cor0
----
1482
702
756
query I rowsort
SELECT cor1.col2 FROM tab1, tab2 AS cor0, tab0 cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT + 5 + - col1 * - col0 AS col1 FROM tab0 AS cor0
----
2069
3400
8104
query I rowsort
SELECT ( 98 + col2 ) FROM tab0
----
131
180
99
query I rowsort
SELECT ALL - col0 * col0 + - col1 FROM tab1 cor0
----
-35
-4106
-6413
query I rowsort
SELECT - ( + 73 ) * cor0.col0 FROM tab0 AS cor0
----
-1752
-2555
-6497
query I rowsort
SELECT + + ( col0 ) * col0 + + col0 AS col1 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT + + col0 * ( - col2 ) - col1 AS col1 FROM tab2 AS cor0
----
-2087
-220
-3019
onlyif mysql # use DIV operator for integer division
query I rowsort label-4282
SELECT - + 8 DIV + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4282
SELECT - + 8 / + cor0.col2 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col2 + col0 * + col2 * 42 AS col1 FROM tab2 AS cor0
----
126046
7911
85150
query I rowsort
SELECT - - 58 + col0 AS col2 FROM tab0 AS cor0
----
147
82
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-4285
SELECT - 15 * + cor0.col2 DIV col2 + - col2 FROM tab0 AS cor0
----
-16
-48
-97
skipif mysql # not compatible
query I rowsort label-4285
SELECT - 15 * + cor0.col2 / col2 + - col2 FROM tab0 AS cor0
----
-16
-48
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4286
SELECT ( - 14 ) + - col1 * + CAST( 90 AS SIGNED ) + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4286
SELECT ( - 14 ) + - col1 * + CAST ( 90 AS INTEGER ) + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT ( 47 ) AS col0 FROM tab1, tab2 AS cor0
----
47
query I rowsort
SELECT - ( + col0 ) + col0 * + tab0.col1 AS col2 FROM tab0
----
2040
3360
8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4289
SELECT + col0 * - CAST( NULL AS SIGNED ) / - col1 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4289
SELECT + col0 * - CAST ( NULL AS INTEGER ) / - col1 + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col0 + cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - 81 AS col2 FROM tab2 cor0
----
-81
-81
-81
query I rowsort
SELECT ALL - + col0 + - 78 * - col2 FROM tab0 AS cor0
----
2550
43
6307
query I rowsort
SELECT - 40 * - col1 + col2 FROM tab1
----
1094
457
616
query I rowsort
SELECT + 4 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT + col0 * cor0.col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + + cor0.col1 + col2 AS col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT - col1 * - col1 * 93 + - col0 AS col2 FROM tab2
----
26798
323655
89366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4298
SELECT DISTINCT - col2 / CAST( NULL AS SIGNED ) + col2 * + col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4298
SELECT DISTINCT - col2 / CAST ( NULL AS INTEGER ) + col2 * + col0 FROM tab0
----
NULL
query I rowsort
SELECT ALL tab1.col1 + + ( + ( col0 ) * col2 + col1 ) FROM tab1
----
214
3668
7706
query I rowsort
SELECT DISTINCT - col0 + 32 * 17 AS col0 FROM tab0 AS cor0
----
455
509
520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( 94 ) col2 FROM tab0 AS cor0
----
127
176
95
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( 16 ) + - cor0.col1 * col1 col1 FROM tab1 cor0
----
-1012
-1540
-1705
query I rowsort
SELECT - col2 * + col1 + 30 FROM tab0 cor0
----
-2808
-67
-7432
query I rowsort
SELECT DISTINCT + 80 AS col0 FROM tab2
----
80
query I rowsort
SELECT ALL col2 + - ( - col2 ) + + 60 FROM tab0
----
126
224
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4306
SELECT DISTINCT col1 * - col2 + col0 DIV + 98 FROM tab1
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT col1 * - col2 + col0 / + 98 FROM tab1
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-4307
SELECT + - col0 DIV - 78 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-4307
SELECT + - col0 / - 78 FROM tab1 AS cor0
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4308
SELECT - + CAST( NULL AS SIGNED ) * + cor0.col2 / + col2 + - ( col0 ) * col1 + - CAST( - col1 * col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4308
SELECT - + CAST ( NULL AS INTEGER ) * + cor0.col2 / + col2 + - ( col0 ) * col1 + - CAST ( - col1 * col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4309
SELECT ALL + - col1 * - col1 + 25 DIV - col1 FROM tab0 AS cor0
----
7396
8281
9409
skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL + - col1 * - col1 + 25 / - col1 FROM tab0 AS cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4310
SELECT col0 + col1 DIV + ( ( col2 ) ) FROM tab0 AS cor0
----
132
26
90
skipif mysql # not compatible
query I rowsort label-4310
SELECT col0 + col1 / + ( ( col2 ) ) FROM tab0 AS cor0
----
132
26
90
query I rowsort
SELECT ALL + 10 * cor0.col2 AS col2 FROM tab2 AS cor0
----
260
270
380
query I rowsort
SELECT - col0 + col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
1168
1401
506
query I rowsort
SELECT ( + 15 ) AS col1 FROM tab0
----
15
15
15
onlyif mysql # use DIV operator for integer division
query I rowsort label-4314
SELECT ALL + + cor0.col1 DIV col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL + + cor0.col1 / col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT col2 * + col0 + 54 AS col0 FROM tab2 AS cor0
----
2082
243
3056
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4316
SELECT ALL - - ( col1 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4316
SELECT ALL - - ( col1 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 32 + - col2 * + col1 col0 FROM tab0 cor0
----
-2806
-65
-7430
query I rowsort
SELECT col1 + col0 * 7 AS col0 FROM tab2 AS cor0
----
570
605
80
query I rowsort
SELECT DISTINCT 31 * col1 FROM tab1 AS cor0
----
310
403
806
query I rowsort
SELECT DISTINCT - col1 * + col2 + + cor0.col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # use DIV operator for integer division
query I rowsort label-4321
SELECT 76 * col1 - + col0 DIV + col2 AS col0 FROM tab0
----
6536
6915
7337
skipif mysql # not compatible
query I rowsort label-4321
SELECT 76 * col1 - + col0 / + col2 AS col0 FROM tab0
----
6536
6915
7337
query I rowsort
SELECT DISTINCT + + cor0.col0 * - 81 FROM tab2 AS cor0
----
-567
-6318
-6399
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4323
SELECT ALL - cor0.col2 * CAST( 43 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-2322
-2451
-4128
skipif mysql # not compatible
query I rowsort label-4323
SELECT ALL - cor0.col2 * CAST ( 43 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-2322
-2451
-4128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4324
SELECT - - col0 * CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-4324
SELECT - - col0 * CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT ALL col1 * col0 + - 7 * - cor0.col0 AS col2 FROM tab0 AS cor0
----
2232
3640
8722
query I rowsort
SELECT ALL col1 * 11 AS col0 FROM tab2 AS cor0
----
187
341
649
onlyif mysql # use DIV operator for integer division
query I rowsort label-4327
SELECT ALL - ( + 35 ) * cor0.col0 + - ( col0 ) * col2 DIV + 58 FROM tab0 AS cor0
----
-1225
-3240
-853
skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL - ( + 35 ) * cor0.col0 + - ( col0 ) * col2 / + 58 FROM tab0 AS cor0
----
-1225
-3240
-853
query I rowsort
SELECT + col1 * col0 + cor0.col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT + + 63 AS col1 FROM tab0 AS cor0
----
63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 * + ( col0 ) + 26 - ( - col1 ) col2 FROM tab0 AS cor0
----
1672
2398
5902
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4331
SELECT CAST( NULL AS SIGNED ) + - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4331
SELECT CAST ( NULL AS INTEGER ) + - col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * - 80 AS col0 FROM tab0 AS cor0
----
-6880
-7280
-7760
query I rowsort
SELECT DISTINCT + ( col1 ) + + col2 * + ( - col2 * + col1 ) AS col1 FROM tab1 AS cor0
----
-119795
-32480
-75790
query I rowsort
SELECT ALL - col1 + - 7 * + col0 AS col0 FROM tab2 AS cor0
----
-570
-605
-80
query I rowsort
SELECT + + ( + col0 ) + cor0.col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT col0 + + col1 - col1 AS col0 FROM tab1
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 27 col1 FROM tab1 AS cor0
----
37
40
53
query I rowsort
SELECT + - col1 * 55 FROM tab1 AS cor0
----
-1430
-550
-715
query I rowsort
SELECT DISTINCT col1 * col2 + + col1 * - col1 AS col2 FROM tab0 cor0
----
-4558
-819
-9312
query I rowsort
SELECT ALL ( col2 ) + - col0 AS col2 FROM tab0 AS cor0
----
-34
-7
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col1 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4342
SELECT - CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
17
31
59
skipif mysql # not compatible
query I rowsort label-4342
SELECT - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
17
31
59
query I rowsort
SELECT ALL - col2 * col0 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-16896
-3078
-6897
query I rowsort
SELECT ALL - col0 + + ( col2 ) FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT - + cor0.col1 * - 71 FROM tab1 AS cor0
----
1846
710
923
query I rowsort
SELECT DISTINCT + 30 + col2 * col0 AS col1 FROM tab1 AS cor0
----
192
3678
7710
query I rowsort
SELECT ALL col1 * + col1 + + col1 * col0 FROM tab1 cor0
----
1209
740
754
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col2 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT DISTINCT - col1 + col0 * col0 FROM tab0 cor0
----
1128
490
7830
query I rowsort
SELECT + col2 * cor0.col1 + - col0 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT DISTINCT + col1 * col1 + 34 FROM tab1
----
134
203
710
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4352
SELECT + CAST( NULL AS SIGNED ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4352
SELECT + CAST ( NULL AS INTEGER ) FROM tab2, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT - - col0 + cor0.col0 + + col2 FROM tab0 AS cor0
----
260
71
81
query I rowsort
SELECT DISTINCT tab2.col2 + col0 + 95 FROM tab2
----
129
199
212
query I rowsort
SELECT col1 + - cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + 51 + - 96 FROM tab2 cor0
----
-45
-45
-45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + 71 col1 FROM tab0 AS cor0
----
-18
36
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-4358
SELECT + 52 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
17
skipif mysql # not compatible
query I rowsort label-4358
SELECT + 52 / col0 AS col1 FROM tab1 AS cor0
----
0
0
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-4359
SELECT ALL + col1 DIV + 87 FROM tab0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4359
SELECT ALL + col1 / + 87 FROM tab0
----
0
1
1
query I rowsort
SELECT DISTINCT tab2.col2 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - tab1.col0 col0 FROM tab0, tab2, tab1 cor0, tab1
----
3
64
80
query I rowsort
SELECT + cor0.col0 + col2 * - col2 AS col2 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT DISTINCT + 75 FROM tab0, tab1 AS cor0
----
75
onlyif mysql # use DIV operator for integer division
query I rowsort label-4364
SELECT + + 39 DIV - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
skipif mysql # not compatible
query I rowsort label-4364
SELECT + + 39 / - cor0.col0 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to d1b3390bf3c224e527bf68f43fea665f
onlyif mysql # use DIV operator for integer division
query I rowsort label-4365
SELECT DISTINCT - col0 DIV + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT - col0 / + cor0.col0 AS col0 FROM tab2 AS cor0
----
-1
query I rowsort
SELECT 77 + col1 FROM tab0 AS cor0
----
163
168
174
query I rowsort
SELECT DISTINCT - col2 * + col2 + - col0 + col0 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 col2 FROM tab0, tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 3 + col0 col0 FROM tab1 cor0
----
6
67
83
query I rowsort
SELECT 12 AS col1 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 702478c53caf2f7ebb9fff96d800f5a6
query I rowsort
SELECT ALL col0 * 18 AS col0 FROM tab1 AS cor0
----
1152
1440
54
query I rowsort
SELECT ALL - + col0 * 78 FROM tab2 AS cor0
----
-546
-6084
-6162
query I rowsort
SELECT DISTINCT + - col0 + col0 * col1 * col1 FROM tab2 AS cor0
----
22752
271440
6720
query I rowsort
SELECT col1 * - 85 FROM tab1 cor0
----
-1105
-2210
-850
query I rowsort
SELECT DISTINCT + 97 * col1 AS col1 FROM tab0
----
8342
8827
9409
query I rowsort
SELECT - - col1 * col0 * + ( + col2 ) AS col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + col0 - ( col1 ) * + col0 FROM tab2
----
-1264
-210
-4524
query I rowsort
SELECT cor0.col0 * - col1 AS col2 FROM tab2 cor0
----
-1343
-217
-4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col2 + 62 * col2 col2 FROM tab0 AS cor0
----
11808
3135
63
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4380
SELECT ALL CAST( 0 AS SIGNED ) * col2 * + ( + col2 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL CAST ( 0 AS INTEGER ) * col2 * + ( + col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT + col1 + + 56 FROM tab0 AS cor0
----
142
147
153
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4382
SELECT + CAST( NULL AS DECIMAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4382
SELECT + CAST ( NULL AS REAL ) * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( - col2 ) * col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
query I rowsort
SELECT 60 * - col2 + - col1 + col2 FROM tab1 cor0
----
-3212
-3373
-5677
query I rowsort
SELECT DISTINCT + 31 * - col1 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
-2690
-2910
-3042
query I rowsort
SELECT DISTINCT - + 75 FROM tab0 AS cor0
----
-75
query I rowsort
SELECT + - 88 + col0 AS col2 FROM tab2 AS cor0
----
-10
-81
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-4388
SELECT ALL - col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - col0 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-4389
SELECT DISTINCT - 86 DIV - col0 + col0 * + 69 AS col1 FROM tab2 AS cor0
----
495
5383
5452
skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT - 86 / - col0 + col0 * + 69 AS col1 FROM tab2 AS cor0
----
495
5383
5452
query I rowsort
SELECT DISTINCT col1 * + col0 + col1 + col2 AS col2 FROM tab0 AS cor0
----
2183
3493
8272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col2 FROM tab2 AS cor0
----
-17
-17
-17
query I rowsort
SELECT ALL + - ( + col2 ) + col2 + 79 * col2 FROM tab1 AS cor0
----
4266
4503
7584
query I rowsort
SELECT ALL - 35 * - cor0.col1 AS col2 FROM tab2 AS cor0
----
1085
2065
595
onlyif mysql # use DIV operator for integer division
query I rowsort label-4394
SELECT DISTINCT + col1 DIV + 55 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT + col1 / + 55 FROM tab0
----
1
query I rowsort
SELECT col2 - 47 AS col0 FROM tab2
----
-20
-21
-9
query I rowsort
SELECT tab2.col1 * - ( 95 * - col1 ) FROM tab2
----
27455
330695
91295
query I rowsort
SELECT ALL - - col1 * - 79 + + col1 FROM tab2 AS cor0
----
-1326
-2418
-4602
query I rowsort
SELECT DISTINCT + col2 + col2 * - col2 * col2 AS col0 FROM tab0 AS cor0
----
-35904
-551286
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4399
SELECT ALL - col2 DIV - col1 - - col2 * + 26 * 35 AS col1 FROM tab0 AS cor0
----
30030
74620
910
skipif mysql # not compatible
query I rowsort label-4399
SELECT ALL - col2 / - col1 - - col2 * + 26 * 35 AS col1 FROM tab0 AS cor0
----
30030
74620
910
query I rowsort
SELECT - col0 * - col1 * + col0 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT DISTINCT - - col2 + 66 * col2 FROM tab0 AS cor0
----
2211
5494
67
query I rowsort
SELECT + + 45 AS col0 FROM tab2 AS cor0
----
45
45
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-4403
SELECT ( + col2 ) + - col2 DIV col1 AS col1 FROM tab2
----
26
27
36
skipif mysql # not compatible
query I rowsort label-4403
SELECT ( + col2 ) + - col2 / col1 AS col1 FROM tab2
----
26
27
36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col0 * - col0 col2 FROM tab0 AS cor0
----
1322
662
8012
query I rowsort
SELECT DISTINCT - ( + tab0.col1 * - tab0.col0 ) AS col1 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT + col1 * - 42 - 28 * - col1 FROM tab2 AS cor0
----
-238
-434
-826
onlyif mysql # use DIV operator for integer division
query I rowsort label-4407
SELECT ALL col0 DIV 90 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL col0 / 90 + col1 AS col2 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT col1 * - col1 * + col0 - cor0.col1 AS col1 FROM tab2 AS cor0
----
-22848
-271577
-6758
query I rowsort
SELECT - col1 + col0 * 83 AS col1 FROM tab1 AS cor0
----
223
5302
6627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col0 FROM tab1, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4411
SELECT ALL - col2 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4411
SELECT ALL - col2 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4412
SELECT ALL col1 + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4412
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - + tab2.col0 * - col2 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT + col0 + col0 * - col1 FROM tab1 cor0
----
-576
-75
-960
query I rowsort
SELECT + cor0.col2 * ( cor0.col0 ) + col2 AS col0 FROM tab2 AS cor0
----
2054
216
3040
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 + 81 col2 FROM tab0, tab2 cor0
----
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4417
SELECT - + col2 + + CAST( + 61 + col2 AS SIGNED ) * + col1 FROM tab1 AS cor0
----
1123
1945
2936
skipif mysql # not compatible
query I rowsort label-4417
SELECT - + col2 + + CAST ( + 61 + col2 AS INTEGER ) * + col1 FROM tab1 AS cor0
----
1123
1945
2936
query I rowsort
SELECT DISTINCT - cor0.col2 + 95 FROM tab2 AS cor0
----
57
68
69
query I rowsort
SELECT DISTINCT + cor0.col0 * - col0 - col2 AS col2 FROM tab0 AS cor0
----
-1226
-609
-8003
query I rowsort
SELECT + col0 * col2 + + 24 FROM tab0 AS cor0
----
59
7322
816
query I rowsort
SELECT ALL - - 63 * - col1 - + col1 AS col2 FROM tab0 cor0
----
-5504
-5824
-6208
query I rowsort
SELECT col2 * 92 + col1 FROM tab2 AS cor0
----
2451
2515
3513
query I rowsort
SELECT DISTINCT ( - cor0.col0 ) * col1 AS col1 FROM tab0 cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - 87 * - col2 FROM tab1 cor0
----
4698
4959
8352
query I rowsort
SELECT col2 + 46 AS col0 FROM tab2
----
72
73
84
query I rowsort
SELECT + ( - col1 ) + col1 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * - col1 + col0 FROM tab1 AS cor0
----
-576
-75
-960
query I rowsort
SELECT 25 * col2 + - cor0.col0 AS col1 FROM tab1 AS cor0
----
1347
1361
2320
query I rowsort
SELECT DISTINCT - 14 + col1 + + 13 AS col0 FROM tab0
----
85
90
96
query I rowsort
SELECT ALL tab0.col0 + col1 AS col2 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT - + 44 + + cor0.col0 + + col0 AS col0 FROM tab0 cor0
----
134
26
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4432
SELECT 76 * + col0 DIV + col0 FROM tab1
----
76
76
76
skipif mysql # not compatible
query I rowsort label-4432
SELECT 76 * + col0 / + col0 FROM tab1
----
76
76
76
query I rowsort
SELECT ALL - + ( col2 ) * + col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + 77 FROM tab2, tab1, tab0 AS cor0
----
77
query I rowsort
SELECT + 70 * + col1 FROM tab0 AS cor0
----
6020
6370
6790
query I rowsort
SELECT - + 13 + + col2 * col1 AS col1 FROM tab2 AS cor0
----
1521
633
824
query I rowsort
SELECT DISTINCT + - col0 * - col1 * 34 AS col2 FROM tab0 AS cor0
----
115430
275366
70176
query I rowsort
SELECT - + ( col1 ) + ( + cor0.col2 ) AS col0 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4439
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-4439
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col2 FROM tab0, tab2 cor0, tab1 AS cor1
----
NULL
query I rowsort
SELECT ALL + - col2 * - col2 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - col1 + + ( 99 ) FROM tab1 AS cor0
----
73
86
89
query I rowsort
SELECT DISTINCT - col0 + 89 * col0 * col0 AS col1 FROM tab0 AS cor0
----
108990
51240
704880
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4443
SELECT + col1 + + CAST( NULL AS DECIMAL ) * 79 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4443
SELECT + col1 + + CAST ( NULL AS REAL ) * 79 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col1 + ( 58 ) * col1 FROM tab0 cor0
----
5074
5369
5723
onlyif mysql # use DIV operator for integer division
query I rowsort label-4445
SELECT col0 DIV ( col0 ) + col1 AS col2 FROM tab1 cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-4445
SELECT col0 / ( col0 ) + col1 AS col2 FROM tab1 cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - col0 * 83 * - 30 AS col2 FROM tab0 AS cor0
----
221610
59760
87150
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + cor0.col2 * 64 col1 FROM tab1 AS cor0
----
3456
3648
6144
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 AS col2 FROM tab2 AS cor0
----
1444
676
729
query I rowsort
SELECT + col2 - + col0 * - col0 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-4450
SELECT DISTINCT col2 DIV - col1 + ( - col1 ) * - col0 FROM tab0
----
2064
3395
8099
skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT col2 / - col1 + ( - col1 ) * - col0 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-4451
SELECT + col0 + col1 DIV col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-4451
SELECT + col0 + col1 / col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT col0 * col0 + tab0.col2 + + col1 * + col2 FROM tab0
----
1323
15465
3447
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4453
SELECT col0 + - col2 + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4453
SELECT col0 + - col2 + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + ( + col2 ) + cor0.col1 FROM tab1 AS cor0
----
-28
-47
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 34 ) col2 FROM tab0
----
34
34
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 * col2 col0 FROM tab1
----
207936
737280
8748
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * col2 col1 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-4458
SELECT - 70 DIV 32 FROM tab0 AS cor0
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-4458
SELECT - 70 / 32 FROM tab0 AS cor0
----
-2
-2
-2
query I rowsort
SELECT + cor0.col2 AS col2 FROM tab2, tab2 AS cor0, tab1 cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT ALL + 89 + - col0 FROM tab0 AS cor0
----
0
54
65
query I rowsort
SELECT + col1 * - cor0.col2 + ( col1 ) - - cor0.col1 AS col1 FROM tab1 AS cor0
----
-1222
-1352
-550
query I rowsort
SELECT + - cor0.col2 + - col2 * + cor0.col2 + col0 FROM tab0 AS cor0
----
-1098
-6717
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-4463
SELECT + col0 DIV col0 col2 FROM tab1 AS cor0
----
1
1
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4463
SELECT + col0 / col0 col2 FROM tab1 AS cor0
----
1
1
1
query I rowsort
SELECT DISTINCT 15 * + tab2.col0 AS col2 FROM tab2
----
105
1170
1185
query I rowsort
SELECT ALL + ( col0 + col1 ) AS col0 FROM tab0
----
110
132
180
query I rowsort
SELECT DISTINCT + col1 + col2 + - col0 FROM tab2 AS cor0
----
-24
51
7
query I rowsort
SELECT DISTINCT + + col1 + 20 FROM tab1 AS cor0
----
30
33
46
onlyif mysql # use DIV operator for integer division
query I rowsort label-4468
SELECT + col1 * - col0 + - cor0.col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
-2065
-3396
-8100
skipif mysql # not compatible
query I rowsort label-4468
SELECT + col1 * - col0 + - cor0.col0 / + col0 AS col0 FROM tab0 AS cor0
----
-2065
-3396
-8100
query I rowsort
SELECT col0 * - col2 AS col0 FROM tab2 cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL + col0 * + col2 + col0 AS col0 FROM tab2 AS cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-4471
SELECT DISTINCT - cor0.col2 DIV 82 + 69 AS col0 FROM tab1 cor0
----
68
69
skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT - cor0.col2 / 82 + 69 AS col0 FROM tab1 cor0
----
68
69
query I rowsort
SELECT DISTINCT 28 * + col1 + + 59 * - 26 AS col0 FROM tab2
----
-1058
-666
118
query I rowsort
SELECT DISTINCT tab0.col0 * + col2 + - 4 FROM tab0
----
31
7294
788
query I rowsort
SELECT - col0 + col0 * + 66 * col0 AS col1 FROM tab2 AS cor0
----
3227
401466
411827
query I rowsort
SELECT - + cor0.col0 * - col2 + + col2 + - col1 FROM tab1 AS cor0
----
190
3695
7763
onlyif mysql # use DIV operator for integer division
query I rowsort label-4476
SELECT ALL + col1 DIV - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + col1 / - tab0.col0 AS col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT ALL 94 + col0 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
135
146
74
query I rowsort
SELECT + - cor0.col1 * - col1 FROM tab2 cor0
----
289
3481
961
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 24 + - 24 col1 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 2558735eaa258a08592aef9d33020c18
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4481
SELECT ALL - CAST( - 97 AS SIGNED ) AS col2 FROM tab2
----
97
97
97
skipif mysql # not compatible
query I rowsort label-4481
SELECT ALL - CAST ( - 97 AS INTEGER ) AS col2 FROM tab2
----
97
97
97
query I rowsort
SELECT + ( + 62 ) * - col1 FROM tab2 cor0
----
-1054
-1922
-3658
query I rowsort
SELECT + - col2 * - 88 FROM tab1 AS cor0
----
4752
5016
8448
onlyif mysql # use DIV operator for integer division
query I rowsort label-4484
SELECT DISTINCT 55 DIV - col1 AS col0 FROM tab2
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT 55 / - col1 AS col0 FROM tab2
----
-1
-3
0
query I rowsort
SELECT + col2 + col0 * - col1 AS col0 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT DISTINCT - + col0 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-1422
-224
-4680
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col2 + col2 col0 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT - col1 * - col2 + col0 * - col1 * col0 AS col1 FROM tab0 AS cor0
----
-118728
-46698
-713349
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4489
SELECT + - col0 * CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4489
SELECT + - col0 * CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 85 col2 FROM tab2
----
1445
2635
5015
query I rowsort
SELECT ALL + + tab0.col2 AS col2 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT col0 + 0 * col1 - - col0 * + col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT ALL - 56 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4494
SELECT - col0 * - CAST( NULL AS DECIMAL ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4494
SELECT - col0 * - CAST ( NULL AS REAL ) + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col0 + + 25 FROM tab2 AS cor0
----
-53
-54
18
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
54
57
96
query I rowsort
SELECT col0 * 82 + - 56 AS col2 FROM tab1 cor0
----
190
5192
6504
onlyif mysql # use DIV operator for integer division
query I rowsort label-4498
SELECT ALL - ( - col2 ) DIV - cor0.col0 col0 FROM tab2 AS cor0
----
-3
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4498
SELECT ALL - ( - col2 ) / - cor0.col0 col0 FROM tab2 AS cor0
----
-3
0
0
query I rowsort
SELECT DISTINCT tab1.col2 + + col2 * + col0 + 33 AS col2 FROM tab1
----
249
3738
7809
query I rowsort
SELECT col0 * col1 + 23 FROM tab2 AS cor0
----
1366
240
4625
query I rowsort
SELECT DISTINCT + 27 + col0 AS col0 FROM tab0 AS cor0
----
116
51
62
query I rowsort
SELECT 80 + col2 + 63 AS col2 FROM tab0 AS cor0
----
144
176
225
query I rowsort
SELECT ALL 73 * col1 AS col1 FROM tab2 cor0
----
1241
2263
4307
query I rowsort
SELECT DISTINCT - col1 + - 27 * col1 AS col0 FROM tab0 AS cor0
----
-2408
-2548
-2716
query I rowsort
SELECT ALL col0 + 69 FROM tab0 AS cor0
----
104
158
93
query I rowsort
SELECT DISTINCT 83 + - col1 + - col2 FROM tab2
----
-2
25
28
query I rowsort
SELECT ALL col0 + + col0 * 30 AS col0 FROM tab1
----
1984
2480
93
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( ( - col1 ) AS REAL ) * 57 + col1 + col2 AS col2 FROM tab1 AS cor0
----
1562
637
850
query I rowsort
SELECT ALL + - col2 * - col1 + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT + ( + 69 ) + col1 AS col1 FROM tab2 AS cor0
----
100
128
86
query I rowsort
SELECT - col0 + 12 FROM tab0 AS cor0
----
-12
-23
-77
query I rowsort
SELECT ALL + cor0.col0 * - ( - 86 ) FROM tab0, tab2 AS cor0
----
9 values hashing to e7cfaf65a2f5cdb3f29fab15e9dd6e82
query I rowsort
SELECT ALL 14 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT ALL - 79 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT + col1 * - 58 + - col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
-1987
-3988
-5450
onlyif mysql # use DIV operator for integer division
query I rowsort label-4516
SELECT DISTINCT - - 94 DIV 84 + col2 * col2 FROM tab2 AS cor0
----
1445
677
730
skipif mysql # not compatible
query I rowsort label-4516
SELECT DISTINCT - - 94 / 84 + col2 * col2 FROM tab2 AS cor0
----
1445
677
730
query I rowsort
SELECT - 70 * cor2.col1 + - cor0.col1 AS col0 FROM tab1, tab1 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a4eef029c862729c2dea14b09d852a12
onlyif mysql # use DIV operator for integer division
query I rowsort label-4518
SELECT ALL - tab0.col0 DIV ( + 70 * col2 ) FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL - tab0.col0 / ( + 70 * col2 ) FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + - col1 * + col2 - col2 AS col1 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT - 52 + 38 * cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to b30f453ff2d9752322408667a8ab145e
query I rowsort
SELECT ( - 2 ) - col1 * + 35 AS col0 FROM tab2
----
-1087
-2067
-597
onlyif mysql # use DIV operator for integer division
query I rowsort label-4522
SELECT - 85 + col1 DIV + col0 FROM tab1
----
-77
-85
-85
skipif mysql # not compatible
query I rowsort label-4522
SELECT - 85 + col1 / + col0 FROM tab1
----
-77
-85
-85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4523
SELECT + CAST( - 61 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-183
-3904
-4880
skipif mysql # not compatible
query I rowsort label-4523
SELECT + CAST ( - 61 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-183
-3904
-4880
query I rowsort
SELECT col0 + 69 * col2 + 15 * col1 AS col2 FROM tab2
----
2335
2757
2956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4525
SELECT CAST( col1 AS SIGNED ) - tab0.col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4525
SELECT CAST ( col1 AS INTEGER ) - tab0.col1 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 + + col1 + col0 * - ( - col1 ) AS col2 FROM tab1
----
1149
158
707
query I rowsort
SELECT ALL + - 95 * col0 + - ( col1 * - col0 ) AS col2 FROM tab1 AS cor0
----
-207
-5440
-6560
query I rowsort
SELECT ALL - col1 + col0 * - tab1.col0 FROM tab1
----
-35
-4106
-6413
query I rowsort
SELECT ALL + 93 + tab1.col1 AS col2 FROM tab1
----
103
106
119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col2 col1 FROM tab2
----
104
117
34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab0.col1 + 73 - 74 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 842f4ca03236fd151748d7aa2d2cbea3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4532
SELECT ALL cor0.col0 * col2 + - CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4532
SELECT ALL cor0.col0 * col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort
SELECT col1 * col1 + + CAST ( col2 AS REAL ) FROM tab2 AS cor0
----
327
3507
988
query I rowsort
SELECT ALL + col0 + col0 * + ( - col2 ) FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT + col2 * - cor0.col2 + 26 FROM tab1 AS cor0
----
-2890
-3223
-9190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4536
SELECT + 2 * col1 * ( col1 ) + + col1 * CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4536
SELECT + 2 * col1 * ( col1 ) + + col1 * CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab1 AS cor0
----
63
query I rowsort
SELECT DISTINCT - col0 + + col1 * - 67 AS col0 FROM tab0 AS cor0
----
-5786
-6186
-6534
query I rowsort
SELECT DISTINCT - col1 * 44 FROM tab2
----
-1364
-2596
-748
query I rowsort
SELECT ALL 0 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT + - col2 + + col1 * + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT - 81 + 4 * col1 FROM tab1 AS cor0
----
-29
-41
23
query I rowsort
SELECT DISTINCT + - col1 + 26 * col0 FROM tab2 AS cor0
----
151
1969
2037
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4544
SELECT ALL + CAST( NULL AS SIGNED ) + - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + CAST ( NULL AS INTEGER ) + - ( col0 ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col1 * + ( + col1 + col2 ) * 40 AS col1 FROM tab0 AS cor0
----
380240
409360
629720
query I rowsort
SELECT ALL col0 * - 5 FROM tab2 AS cor0
----
-35
-390
-395
query I rowsort
SELECT DISTINCT - - ( col2 ) * col0 - - ( + col1 ) * col0 * ( + 94 * col0 ) FROM tab2 AS cor0
----
142975
33743892
9976120
query I rowsort
SELECT + + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
query I rowsort
SELECT ALL + - col1 + col2 * + col0 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - + 22 * col2 * + cor0.col0 - - ( col0 ) AS col1 FROM tab1 AS cor0
----
-168880
-3561
-80192
query I rowsort
SELECT - + 67 + + 28 * col0 * col2 FROM tab0 AS cor0
----
204277
22109
913
query I rowsort
SELECT ALL - cor0.col1 - - 30 * - col2 AS col1 FROM tab1 AS cor0
----
-1646
-1720
-2893
query I rowsort
SELECT ALL + ( 46 ) AS col2 FROM tab1 AS cor0
----
46
46
46
query I rowsort
SELECT + - ( col0 ) * cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT DISTINCT - + ( col0 ) * - col1 + - col2 + col2 AS col2 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + 70 + col1 AS col2 FROM tab1 cor0
----
80
83
96
query I rowsort
SELECT - 32 * col0 AS col1 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT DISTINCT + cor0.col1 * 34 FROM tab0 AS cor0
----
2924
3094
3298
query I rowsort
SELECT ALL - 80 AS col2 FROM tab2, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 26dbcc98d4b4e864ffa31be685a5dfbd
query I rowsort
SELECT col2 + col2 * - col2 AS col1 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT - 52 + col1 * col1 FROM tab1 AS cor0
----
117
48
624
query I rowsort
SELECT ( - col0 + col2 ) * + col1 FROM tab1
----
-70
1326
208
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 + + col2 col1 FROM tab1 AS cor0
----
17
20
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4564
SELECT - cor0.col1 DIV col0 + 32 DIV - col1 FROM tab1 AS cor0
----
-2
-3
-9
skipif mysql # not compatible
query I rowsort label-4564
SELECT - cor0.col1 / col0 + 32 / - col1 FROM tab1 AS cor0
----
-2
-3
-9
query I rowsort
SELECT + col0 + - ( + col1 ) AS col2 FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT DISTINCT - col2 * col1 + col1 * - col2 + 63 * col0 FROM tab2 AS cor0
----
-1233
1846
3685
query I rowsort
SELECT ALL + col1 * cor0.col2 * - col0 - - cor0.col1 * col2 FROM tab2 AS cor0
----
-118118
-5022
-50388
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4568
SELECT DISTINCT 7 + + col2 * - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-2909
-3242
-9209
skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT 7 + + col2 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-2909
-3242
-9209
query I rowsort
SELECT ALL 99 + - col1 AS col0 FROM tab1
----
73
86
89
query I rowsort
SELECT col2 * + 96 + - 33 AS col2 FROM tab0
----
3135
63
7839
onlyif mysql # use DIV operator for integer division
query I rowsort label-4571
SELECT DISTINCT col2 + - tab2.col0 DIV col0 + tab2.col2 * col1 FROM tab2
----
1559
683
863
skipif mysql # not compatible
query I rowsort label-4571
SELECT DISTINCT col2 + - tab2.col0 / col0 + tab2.col2 * col1 FROM tab2
----
1559
683
863
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4572
SELECT + col1 + CAST( NULL AS SIGNED ) + - 33 AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4572
SELECT + col1 + CAST ( NULL AS INTEGER ) + - 33 AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col1 * 43 - col0 FROM tab1 AS cor0
----
-1121
-494
-639
query I rowsort
SELECT + col2 + 4 * 87 FROM tab1 cor0
----
402
405
444
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab2 cor2
----
3645 values hashing to fa0488bdae83f58c7ffa92505e928570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 68 * + col0 col2 FROM tab1 AS cor0
----
204
4352
5440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 * cor0.col1 col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL + + 6 * - col1 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT 1 * col0 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 79 col1 FROM tab2 AS cor0
----
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4581
SELECT CAST( - 23 AS SIGNED ) FROM tab2 AS cor0
----
-23
-23
-23
skipif mysql # not compatible
query I rowsort label-4581
SELECT CAST ( - 23 AS INTEGER ) FROM tab2 AS cor0
----
-23
-23
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-4582
SELECT ALL - cor0.col1 DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - cor0.col1 / + col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * - 91 FROM tab1 AS cor0
----
-4914
-5187
-8736
query I rowsort
SELECT + col0 + - col1 * col1 + 84 * col1 FROM tab2 AS cor0
----
1218
1553
1650
query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 AS col0 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + + ( col0 ) * - col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + ( + col0 ) * col0 AS col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT - tab0.col2 + tab0.col0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4646ed87e8cc5aacb51f9b4e472c3c4b
query I rowsort
SELECT + + 80 * col2 AS col1 FROM tab2 AS cor0
----
2080
2160
3040
query I rowsort
SELECT DISTINCT - + 13 FROM tab2, tab0, tab0 AS cor0
----
-13
query I rowsort
SELECT + + cor0.col0 + + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT col0 * col1 * + col0 - - ( col1 ) AS col1 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT ALL + 40 - + col2 AS col1 FROM tab2
----
13
14
2
query I rowsort
SELECT + col1 * 24 + col2 + + col1 FROM tab2
----
1501
463
802
query I rowsort
SELECT 38 + + tab1.col2 AS col2 FROM tab1
----
134
92
95
query I rowsort
SELECT DISTINCT 31 * tab0.col0 + col0 FROM tab0
----
1120
2848
768
query I rowsort
SELECT ( 66 ) - - col1 FROM tab2
----
125
83
97
query I rowsort
SELECT - ( - 8 ) FROM tab1
----
8
8
8
query I rowsort
SELECT - col1 + - ( col2 ) FROM tab0
----
-119
-173
-98
query I rowsort
SELECT - col0 + - 21 + col2 FROM tab2
----
-1
-62
-73
query I rowsort
SELECT - ( 99 ) + col1 AS col2 FROM tab2
----
-40
-68
-82
query I rowsort
SELECT 61 + col2 + col2 AS col2 FROM tab0
----
127
225
63
query I rowsort
SELECT - + col2 * - cor0.col2 + col0 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL 83 * cor0.col0 AS col1 FROM tab2 AS cor0
----
581
6474
6557
query I rowsort
SELECT + + col0 + cor0.col1 * col1 * - ( col0 ) FROM tab2 AS cor0
----
-22752
-271440
-6720
onlyif mysql # use DIV operator for integer division
query I rowsort label-4606
SELECT col1 DIV cor0.col1 + ( 95 ) * - col0 FROM tab2 AS cor0
----
-664
-7409
-7504
skipif mysql # not compatible
query I rowsort label-4606
SELECT col1 / cor0.col1 + ( 95 ) * - col0 FROM tab2 AS cor0
----
-664
-7409
-7504
query I rowsort
SELECT ALL - 18 * col2 * col2 AS col0 FROM tab2 cor0
----
-12168
-13122
-25992
query I rowsort
SELECT 18 * col1 + - 67 FROM tab0 AS cor0
----
1481
1571
1679
query I rowsort
SELECT col0 * cor0.col2 + col2 * col1 AS col0 FROM tab2 AS cor0
----
1026
3562
3648
query I rowsort
SELECT + 29 AS col2 FROM tab0 cor0
----
29
29
29
query I rowsort
SELECT DISTINCT - ( + col1 ) * col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT ALL - - 25 FROM tab1 AS cor0
----
25
25
25
query I rowsort
SELECT + cor0.col0 + + col2 AS col1 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT - col2 * + col0 * - cor0.col1 AS col1 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT + + col0 * col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT ALL - col2 + - ( + 1 ) FROM tab1 AS cor0
----
-55
-58
-97
query I rowsort
SELECT DISTINCT + col0 * - ( + col0 ) * col0 AS col2 FROM tab0 cor0
----
-13824
-42875
-704969
query I rowsort
SELECT col2 * + 58 AS col0 FROM tab2 AS cor0
----
1508
1566
2204
query I rowsort
SELECT DISTINCT - - cor0.col2 + - 11 AS col2 FROM tab0 AS cor0
----
-10
22
71
query I rowsort
SELECT col0 * - col1 * 51 FROM tab1 AS cor0
----
-32640
-3978
-53040
onlyif mysql # use DIV operator for integer division
query I rowsort label-4621
SELECT ALL + + col2 DIV col1 + + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
skipif mysql # not compatible
query I rowsort label-4621
SELECT ALL + + col2 / col1 + + col1 AS col1 FROM tab1 AS cor0
----
15
20
28
query I rowsort
SELECT - + 22 + - col2 AS col2 FROM tab1 AS cor0
----
-118
-76
-79
query I rowsort
SELECT - col0 + 7 * col1 - col1 AS col2 FROM tab0 AS cor0
----
457
492
547
query I rowsort
SELECT - ( 45 ) * col0 FROM tab0 AS cor0
----
-1080
-1575
-4005
query I rowsort
SELECT + col0 + - 54 * col1 AS col0 FROM tab0 AS cor0
----
-4620
-4825
-5203
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4626
SELECT ALL - CAST( 67 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-102
-156
-91
skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL - CAST ( 67 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-102
-156
-91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4627
SELECT DISTINCT CAST( 27 AS SIGNED ) FROM tab2 AS cor0
----
27
skipif mysql # not compatible
query I rowsort label-4627
SELECT DISTINCT CAST ( 27 AS INTEGER ) FROM tab2 AS cor0
----
27
query I rowsort
SELECT ALL - + col0 * col1 * col1 + col0 * col2 FROM tab2 cor0
----
-19829
-269490
-6538
query I rowsort
SELECT - + 53 + - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-1014
-342
-3534
query I rowsort
SELECT ALL cor0.col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT DISTINCT - 40 + - col0 * col1 * cor0.col2 FROM tab0 AS cor0
----
-3435
-664158
-68152
onlyif mysql # use DIV operator for integer division
query I rowsort label-4632
SELECT 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-4632
SELECT col2 / + col2 col1 FROM tab0 AS cor0
----
1
1
1
query I rowsort
SELECT ALL + - 90 * cor0.col2 AS col1 FROM tab1 cor0
----
-4860
-5130
-8640
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * - col2 * col0 col0 FROM tab1 AS cor0
----
16038
361152
760320
query I rowsort
SELECT DISTINCT - col0 + + cor0.col1 + + col2 AS col0 FROM tab0 AS cor0
----
63
84
95
query I rowsort
SELECT + cor0.col0 * + 37 AS col2 FROM tab1 AS cor0
----
111
2368
2960
query I rowsort
SELECT - ( col0 ) * + col0 AS col0 FROM tab2 cor0
----
-49
-6084
-6241
query I rowsort
SELECT DISTINCT - - 39 * + col0 FROM tab1 AS cor0
----
117
2496
3120
query I rowsort
SELECT DISTINCT + 7 - ( - cor0.col1 ) AS col2 FROM tab0, tab0 AS cor0
----
104
93
98
query I rowsort
SELECT + col2 + cor0.col2 * + cor0.col2 - - col2 FROM tab1 AS cor0
----
3024
3363
9408
query I rowsort
SELECT DISTINCT + tab0.col2 + + col1 + col0 FROM tab0
----
133
143
262
query I rowsort
SELECT + 33 + + col2 FROM tab2 AS cor0
----
59
60
71
query I rowsort
SELECT ALL - cor0.col0 + ( + 41 ) AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 469f7c465d4de19ee80b8b6b03f60787
onlyif mysql # use DIV operator for integer division
query I rowsort label-4644
SELECT ALL - + cor0.col1 + 33 DIV + 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL - + cor0.col1 + 33 / + 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b234798d4706314ba14eaad539d0aa88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + 44 * - 76 col1 FROM tab0 cor0
----
-3345
-3377
-3426
query I rowsort
SELECT DISTINCT col2 + - 98 AS col0 FROM tab1 AS cor0
----
-2
-41
-44
query I rowsort
SELECT 17 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to e0dd9155e4d67132637a04c18ef46b2a
onlyif mysql # use DIV operator for integer division
query I rowsort label-4648
SELECT + - col0 DIV + 58 + + 98 FROM tab1 cor0
----
97
97
98
skipif mysql # not compatible
query I rowsort label-4648
SELECT + - col0 / + 58 + + 98 FROM tab1 cor0
----
97
97
98
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0, tab2 cor1, tab2, tab0 cor2
----
3645 values hashing to 76de18c5bf2cf2620e1f411d7bde86e7
query I rowsort
SELECT + 40 + - tab2.col1 AS col0 FROM tab2
----
-19
23
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4651
SELECT ALL + 32 * - col0 + + ( col1 ) * + col2 * CAST( + col2 + - col1 AS SIGNED ) FROM tab0
----
-10432
-151182
-70006
skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 32 * - col0 + + ( col1 ) * + col2 * CAST ( + col2 + - col1 AS INTEGER ) FROM tab0
----
-10432
-151182
-70006
onlyif mysql # use DIV operator for integer division
query I rowsort label-4652
SELECT ALL tab1.col2 DIV col1 + 72 AS col0 FROM tab1
----
74
77
79
skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL tab1.col2 / col1 + 72 AS col0 FROM tab1
----
74
77
79
query I rowsort
SELECT + col0 * col2 + + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT - col2 * - 48 AS col0 FROM tab1 AS cor0
----
2592
2736
4608
query I rowsort
SELECT ALL col0 * 4 + + 72 FROM tab0 AS cor0
----
168
212
428
query I rowsort
SELECT + ( + 43 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT ALL + col1 + cor0.col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT 91 * - 18 FROM tab0, tab1 AS cor0
----
-1638
query I rowsort
SELECT cor0.col0 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT + - 72 + - col0 FROM tab1 cor0
----
-136
-152
-75
query I rowsort
SELECT 26 + col1 FROM tab1
----
36
39
52
query I rowsort
SELECT ALL col2 + - 43 AS col0 FROM tab2
----
-16
-17
-5
query I rowsort
SELECT ALL cor0.col0 + - 65 FROM tab0, tab2 AS cor0, tab0 cor1
----
27 values hashing to 209a8ed16f1eccea2e87a3d041be4fa8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4664
SELECT + cor0.col1 DIV 92 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-4664
SELECT + cor0.col1 / 92 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL ( tab0.col1 + 71 ) * col2 FROM tab0
----
13284
168
5181
query I rowsort
SELECT ALL cor0.col2 + col0 * - ( - 68 ) AS col0 FROM tab1 AS cor0
----
258
4409
5536
query I rowsort
SELECT + col2 + + 66 AS col1 FROM tab1
----
120
123
162
query I rowsort
SELECT + - col0 - - col0 * - col2 FROM tab1 AS cor0
----
-165
-3712
-7760
query I rowsort
SELECT cor0.col1 + 92 FROM tab1 AS cor0
----
102
105
118
query I rowsort
SELECT DISTINCT col1 + - 5 FROM tab1 AS cor0
----
21
5
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-4671
SELECT DISTINCT - + col0 * col1 DIV - col1 + ( - col0 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4671
SELECT DISTINCT - + col0 * col1 / - col1 + ( - col0 ) FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-4672
SELECT ALL - col2 * col0 - - col0 DIV - CAST( 87 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-35
-7299
-792
skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - col2 * col0 - - col0 / - CAST ( 87 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-35
-7299
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4673
SELECT + CAST( + col2 AS SIGNED ) * col2 * + ( col0 ) + col2 col0 FROM tab2 AS cor0
----
114114
5130
52754
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4673
SELECT + CAST ( + col2 AS INTEGER ) * col2 * + ( col0 ) + col2 col0 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT ALL 39 * col0 + - cor0.col0 + + cor0.col0 AS col2 FROM tab2 cor0
----
273
3042
3081
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4675
SELECT + CAST( NULL AS SIGNED ) - 47 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4675
SELECT + CAST ( NULL AS INTEGER ) - 47 / + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col2 ) + + col0 * cor0.col0 AS col1 FROM tab2 AS cor0
----
6110
6279
76
query I rowsort
SELECT DISTINCT + col1 * 35 AS col1 FROM tab0 AS cor0
----
3010
3185
3395
onlyif mysql # use DIV operator for integer division
query I rowsort label-4678
SELECT - col0 DIV + ( - cor0.col0 ) - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-4678
SELECT - col0 / + ( - cor0.col0 ) - col1 / col0 AS col1 FROM tab0 AS cor0
----
-1
-2
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4679
SELECT + - CAST( - 43 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
43
43
43
skipif mysql # not compatible
query I rowsort label-4679
SELECT + - CAST ( - 43 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
43
43
43
query I rowsort
SELECT - + 52 * - col0 + + col2 * 40 FROM tab0 AS cor0
----
1860
2568
7908
query I rowsort
SELECT ( 4 ) FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col0 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ( 5 ) * col0 AS col2 FROM tab0 AS cor0
----
120
175
445
query I rowsort
SELECT ALL - ( col2 * col2 ) FROM tab1
----
-2916
-3249
-9216
query I rowsort
SELECT - col2 - + col0 FROM tab1 cor0
----
-121
-176
-57
query I rowsort
SELECT + col2 * col2 + + 44 FROM tab2 AS cor0
----
1488
720
773
query I rowsort
SELECT col1 + cor0.col0 * + 24 FROM tab1 AS cor0
----
1546
1933
98
query I rowsort
SELECT + - cor0.col2 * col1 + + col1 FROM tab1 cor0
----
-1235
-1378
-560
onlyif mysql # use DIV operator for integer division
query I rowsort label-4689
SELECT + col2 DIV - col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-840
skipif mysql # not compatible
query I rowsort label-4689
SELECT + col2 / - col0 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1534
-646
-840
query I rowsort
SELECT ALL + - col2 - col2 AS col2 FROM tab1 AS cor0
----
-108
-114
-192
query I rowsort
SELECT ALL + col2 + col2 * - ( col1 ) FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT + col2 * - col1 - - 12 AS col0 FROM tab2 AS cor0
----
-1522
-634
-825
onlyif mysql # use DIV operator for integer division
query I rowsort label-4693
SELECT DISTINCT - + col1 DIV - col1 + + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - + col1 / - col1 + + col2 AS col2 FROM tab1 AS cor0
----
55
58
97
query I rowsort
SELECT - 63 + + col2 FROM tab1 AS cor0
----
-6
-9
33
query I rowsort
SELECT ALL - + col2 + col1 * col0 AS col0 FROM tab1 AS cor0
----
24
583
944
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 + + col2 + + col2 col2 FROM tab2 AS cor0
----
114
78
81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4697
SELECT + col0 * + CAST( + 48 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1152
1680
4272
skipif mysql # not compatible
query I rowsort label-4697
SELECT + col0 * + CAST ( + 48 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1152
1680
4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-4698
SELECT col2 + col1 DIV col1 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-4698
SELECT col2 + col1 / col1 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT - col1 * - 86 * + col2 FROM tab1 AS cor0
----
107328
120744
49020
query I rowsort
SELECT cor0.col2 AS col2 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT + - col2 * 60 + col2 * col2 FROM tab0 AS cor0
----
-59
-891
1804
query I rowsort
SELECT ALL + 84 FROM tab2, tab1 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to 3c092ed1a99ddb5afc7049fd2b9427f9
query I rowsort
SELECT ALL col0 + - 99 FROM tab0 cor0
----
-10
-64
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4704
SELECT DISTINCT - col0 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT - col0 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
query I rowsort
SELECT ALL + - col1 * 97 - - col2 FROM tab2 AS cor0
----
-1611
-2980
-5697
query I rowsort
SELECT DISTINCT + col2 * + ( 53 ) AS col1 FROM tab2 cor0
----
1378
1431
2014
query I rowsort
SELECT DISTINCT + col1 + + ( cor0.col1 ) FROM tab2 AS cor0
----
118
34
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-4708
SELECT DISTINCT - - col0 + cor0.col1 DIV col1 AS col2 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT - - col0 + cor0.col1 / col1 AS col2 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT ALL + col2 + - 60 AS col2 FROM tab0 AS cor0
----
-27
-59
22
query I rowsort
SELECT col1 + + 94 AS col2 FROM tab2 AS cor0
----
111
125
153
query I rowsort
SELECT ALL + - cor0.col0 * + 97 * + col1 AS col0 FROM tab1 cor0
----
-100880
-62080
-7566
query I rowsort
SELECT DISTINCT - col2 * 74 + + col1 * - col2 FROM tab0 AS cor0
----
-13530
-171
-5280
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 14 col2 FROM tab2 AS cor0
----
17
3
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + cor0.col0 + - col2 col2 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT + col1 * col0 * col2 + - col1 AS col2 FROM tab0
----
3298
664027
68026
query I rowsort
SELECT + ( + cor0.col1 ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL - cor0.col0 + 94 * col2 AS col2 FROM tab2 AS cor0
----
2366
2531
3493
query I rowsort
SELECT DISTINCT + + col1 * col0 * + col0 AS col2 FROM tab2 AS cor0
----
106097
1519
358956
query I rowsort
SELECT ALL + cor0.col0 + + 45 FROM tab0 cor0
----
134
69
80
query I rowsort
SELECT - col0 - + 86 AS col1 FROM tab1 AS cor0
----
-150
-166
-89
query I rowsort
SELECT - + cor0.col1 * + col2 - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-4722
SELECT ALL col0 DIV col1 + + col1 + col0 * 45 FROM tab2 AS cor0
----
346
3570
3576
skipif mysql # not compatible
query I rowsort label-4722
SELECT ALL col0 / col1 + + col1 + col0 * 45 FROM tab2 AS cor0
----
346
3570
3576
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 - + col0 * col2 FROM tab2 cor0
----
-1352
-1558
540
onlyif mysql # use DIV operator for integer division
query I rowsort label-4724
SELECT - col1 DIV - col0 col2 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4724
SELECT - col1 / - col0 col2 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4725
SELECT - CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
-3
-64
-80
skipif mysql # not compatible
query I rowsort label-4725
SELECT - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
-3
-64
-80
query I rowsort
SELECT - - col1 * col2 + + col1 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT - col2 * - 85 FROM tab1 cor0
----
4590
4845
8160
query I rowsort
SELECT ( tab1.col1 ) * col0 * 75 FROM tab1
----
48000
5850
78000
query I rowsort
SELECT + 37 * col2 AS col0 FROM tab2 AS cor0
----
1406
962
999
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 * - 96 col0 FROM tab0 AS cor0
----
-104544
-645504
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 col0 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT DISTINCT cor0.col1 * col0 + + col1 AS col1 FROM tab2 AS cor0
----
1360
248
4661
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * cor0.col0 col1 FROM tab0 AS cor0
----
1008
1470
3738
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 + col0 col1 FROM tab2 cor0
----
21
92
93
query I rowsort
SELECT + 54 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT - - col1 + cor0.col1 AS col0 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL 32 FROM tab0 cor0
----
32
32
32
query I rowsort
SELECT ( + col0 ) * + 21 FROM tab1 cor0
----
1344
1680
63
query I rowsort
SELECT ALL 83 * - col2 + col0 * col0 FROM tab2 AS cor0
----
-2192
3087
3926
query I rowsort
SELECT + col1 + col2 + - col1 * - col0 * cor0.col0 AS col2 FROM tab0 AS cor0
----
118923
49655
720984
query I rowsort
SELECT - 70 * + col2 FROM tab0 AS cor0
----
-2310
-5740
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-4742
SELECT DISTINCT - col2 * col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-115
-50
-972
skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT - col2 * col2 / + col0 AS col0 FROM tab1 AS cor0
----
-115
-50
-972
onlyif mysql # use DIV operator for integer division
query I rowsort label-4743
SELECT col0 + - 20 DIV - col1 AS col1 FROM tab2 AS cor0
----
7
78
80
skipif mysql # not compatible
query I rowsort label-4743
SELECT col0 + - 20 / - col1 AS col1 FROM tab2 AS cor0
----
7
78
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4744
SELECT ALL - cor0.col2 DIV 34 FROM tab1 AS cor0
----
-1
-1
-2
skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL - cor0.col2 / 34 FROM tab1 AS cor0
----
-1
-1
-2
query I rowsort
SELECT ALL - cor0.col2 + - ( - cor0.col0 ) * col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT - 31 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
query I rowsort
SELECT ( col0 * 86 ) + - ( tab1.col2 ) FROM tab1
----
204
5447
6784
query I rowsort
SELECT DISTINCT + ( - ( + col0 ) ) FROM tab0 AS cor0
----
-24
-35
-89
query I rowsort
SELECT ALL 41 * - col0 + col1 * 75 AS col1 FROM tab2 AS cor0
----
-1964
1227
2038
query I rowsort
SELECT ALL col0 + - cor0.col2 + col2 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4751
SELECT ( col1 ) + + col0 DIV col0 + col2 AS col2 FROM tab1 cor0
----
110
68
81
skipif mysql # not compatible
query I rowsort label-4751
SELECT ( col1 ) + + col0 / col0 + col2 AS col2 FROM tab1 cor0
----
110
68
81
query I rowsort
SELECT DISTINCT - - col2 * col2 * cor0.col0 FROM tab1 AS cor0
----
207936
737280
8748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4753
SELECT + + 27 * - ( col2 * col0 ) + col0 * + col2 + + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4753
SELECT + + 27 * - ( col2 * col0 ) + col0 * + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4754
SELECT - CAST( NULL AS SIGNED ) + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4754
SELECT - CAST ( NULL AS INTEGER ) + + col0 * - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 * + col0 + - col2 * tab2.col2 - 16 * - col2 FROM tab2
----
-248
5405
5824
onlyif mysql # use DIV operator for integer division
query I rowsort label-4756
SELECT + col2 DIV + tab0.col2 AS col2 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-4756
SELECT + col2 / + tab0.col2 AS col2 FROM tab0
----
1
1
1
query I rowsort
SELECT ALL - col1 * - col2 * - col0 + - col1 AS col0 FROM tab2 AS cor0
----
-119711
-51051
-5890
query I rowsort
SELECT cor0.col2 * ( + col0 ) + - col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + - col0 * cor0.col2 - col1 FROM tab2 AS cor0
----
-2087
-220
-3019
query I rowsort
SELECT ALL - ( + col2 ) + - col1 AS col1 FROM tab0 AS cor0
----
-119
-173
-98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4761
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 + + col1 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 + + col1 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT - col0 + + tab2.col2 AS col0 FROM tab2
----
-41
-52
20
query I rowsort
SELECT - col2 + col2 * + col0 - col2 AS col2 FROM tab2
----
135
1976
2926
query I rowsort
SELECT - cor0.col0 + + col2 * col0 + col0 * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-712
192
query I rowsort
SELECT - 61 * col0 * + col1 AS col0 FROM tab1 AS cor0
----
-39040
-4758
-63440
query I rowsort
SELECT + col2 * cor0.col1 + ( col1 * col0 ) + cor0.col0 AS col1 FROM tab1 cor0
----
1274
1485
2368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col0 FROM tab0 AS cor0
----
62
62
62
query I rowsort
SELECT + col1 + col1 + - 37 FROM tab0 AS cor0
----
135
145
157
skipif mysql # not compatible
query I rowsort
SELECT 12 * - tab2.col1 + col1 * + CAST ( + col1 AS REAL ) FROM tab2
----
2773
589
85
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4770
SELECT DISTINCT CAST( + 19 AS SIGNED ) * col1 FROM tab2
----
1121
323
589
skipif mysql # not compatible
query I rowsort label-4770
SELECT DISTINCT CAST ( + 19 AS INTEGER ) * col1 FROM tab2
----
1121
323
589
query I rowsort
SELECT ALL + ( - tab2.col1 ) + - col2 AS col0 FROM tab2
----
-55
-58
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-4772
SELECT - - col1 + col2 * col1 - col1 DIV + 84 FROM tab1 AS cor0
----
1261
1430
580
skipif mysql # not compatible
query I rowsort label-4772
SELECT - - col1 + col2 * col1 - col1 / + 84 FROM tab1 AS cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4773
SELECT cor0.col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4773
SELECT cor0.col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-4774
SELECT + col2 DIV - col0 + col0 + + cor0.col1 FROM tab2 cor0
----
137
35
96
skipif mysql # not compatible
query I rowsort label-4774
SELECT + col2 / - col0 + col0 + + cor0.col1 FROM tab2 cor0
----
137
35
96
query I rowsort
SELECT - col2 + ( col1 + - col0 ) FROM tab1 AS cor0
----
-111
-163
-31
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 36 + col0 col1 FROM tab1 AS cor0
----
100
116
39
query I rowsort
SELECT - cor0.col0 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1456
567
830
query I rowsort
SELECT DISTINCT tab1.col2 * + 40 FROM tab1, tab0 AS cor0
----
2160
2280
3840
query I rowsort
SELECT - col1 + 83 FROM tab2
----
24
52
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 * + col2 * - col2 col2 FROM tab1
----
101376
32076
35739
query I rowsort
SELECT ALL tab2.col1 * cor0.col2 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 1d94ea086ff4b04d01d3c46ff83c5c3d
query I rowsort
SELECT DISTINCT cor1.col1 * + 13 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
130
169
338
query I rowsort
SELECT ( - cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT - cor0.col2 + 46 FROM tab1 AS cor0
----
-11
-50
-8
query I rowsort
SELECT DISTINCT + 67 * + col2 AS col1 FROM tab0
----
2211
5494
67
query I rowsort
SELECT ALL col0 * - 44 FROM tab1 AS cor0
----
-132
-2816
-3520
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col0 col2 FROM tab1, tab1 cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - cor0.col0 col0 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT ALL + col1 + 71 * col0 * - cor0.col0 FROM tab0 AS cor0
----
-40810
-562300
-86878
query I rowsort
SELECT ALL col2 * col2 + cor0.col1 AS col2 FROM tab1 cor0
----
2942
3259
9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4791
SELECT + col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-4791
SELECT + col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-4792
SELECT - cor0.col0 DIV + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
skipif mysql # not compatible
query I rowsort label-4792
SELECT - cor0.col0 / + cor0.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 721682d0719de924079c33bd72eef789
query I rowsort
SELECT DISTINCT - cor0.col1 * - 1 AS col0 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT + col2 + - 83 * 86 FROM tab0 AS cor0
----
-7056
-7105
-7137
query IIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab1, tab2 cor1
----
972 values hashing to 49c8bf3e931a898ba7af63d0e377eb79
query I rowsort
SELECT col0 - ( 66 * col0 ) AS col2 FROM tab1
----
-195
-4160
-5200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4797
SELECT ALL + col1 * + CAST( + 95 AS SIGNED ) FROM tab1
----
1235
2470
950
skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL + col1 * + CAST ( + 95 AS INTEGER ) FROM tab1
----
1235
2470
950
onlyif mysql # use DIV operator for integer division
query I rowsort label-4798
SELECT + + col0 DIV + 53 FROM tab2 AS cor0
----
0
1
1
skipif mysql # not compatible
query I rowsort label-4798
SELECT + + col0 / + 53 FROM tab2 AS cor0
----
0
1
1
query I rowsort
SELECT col2 + ( - col2 ) * + tab1.col0 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL - 92 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT tab2.col2 * + 58 FROM tab2
----
1508
1566
2204
query I rowsort
SELECT cor0.col1 * - 86 + col2 * - col2 AS col2 FROM tab2 AS cor0
----
-2906
-3395
-5750
query I rowsort
SELECT DISTINCT 69 + ( col1 ) FROM tab1
----
79
82
95
query I rowsort
SELECT - col0 + tab2.col2 * tab2.col2 - + ( - col2 ) FROM tab2
----
1403
624
749
query I rowsort
SELECT ( col1 ) * - col2 + - col1 AS col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT - col1 + col2 * cor0.col2 FROM tab1 AS cor0
----
2890
3239
9203
query I rowsort
SELECT + + col0 * + col2 + - col1 FROM tab1 AS cor0
----
136
3638
7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-4808
SELECT ALL - 5 DIV - col2 FROM tab0 AS cor0
----
0
0
5
skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - 5 / - col2 FROM tab0 AS cor0
----
0
0
5
query I rowsort
SELECT DISTINCT col0 + + col2 * - col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4810
SELECT DISTINCT + + col0 * - col0 * CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4810
SELECT DISTINCT + + col0 * - col0 * CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL - + 31 * col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1751
-448
-954
query I rowsort
SELECT - - 10 AS col0 FROM tab0 AS cor0
----
10
10
10
query I rowsort
SELECT + 79 + + cor0.col1 * - col1 AS col2 FROM tab0 AS cor0
----
-7317
-8202
-9330
query I rowsort
SELECT + 14 * col1 * 40 AS col1 FROM tab2 AS cor0
----
17360
33040
9520
query I rowsort
SELECT 52 + col2 * - col1 FROM tab0 AS cor0
----
-2786
-45
-7410
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4816
SELECT ALL - CAST( NULL AS SIGNED ) * 3 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - CAST ( NULL AS INTEGER ) * 3 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - cor0.col2 col0 FROM tab1 cor0
----
0
query I rowsort
SELECT + 65 AS col1 FROM tab1 AS cor0
----
65
65
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 + col0 * + col1 col0 FROM tab1 cor0
----
33
595
995
query I rowsort
SELECT DISTINCT + col2 * col2 * col0 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT - - col1 * - col1 + col0 + - col2 AS col1 FROM tab2 AS cor0
----
-248
-3429
-981
onlyif mysql # use DIV operator for integer division
query I rowsort label-4822
SELECT - + cor0.col0 DIV + ( col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-4822
SELECT - + cor0.col0 / + ( col0 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT 14 + col0 + - col1 AS col2 FROM tab1 AS cor0
----
-9
68
81
query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab2 AS cor0
----
-49
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 + + ( cor0.col1 ) + - col0 * 88 AS col2 FROM tab2 AS cor0
----
-585
-6805
-6935
query I rowsort
SELECT ALL 52 * tab1.col1 FROM tab1
----
1352
520
676
query I rowsort
SELECT + col1 + - tab2.col1 * col0 FROM tab2
----
-1326
-186
-4543
query I rowsort
SELECT 87 FROM tab0, tab0 cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT DISTINCT + - col2 * col0 - 1 FROM tab2 AS cor0
----
-190
-2029
-3003
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col2 FROM tab2 AS cor0
----
38
38
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-4832
SELECT 57 DIV ( col0 ) + col1 AS col2 FROM tab2
----
17
39
59
skipif mysql # not compatible
query I rowsort label-4832
SELECT 57 / ( col0 ) + col1 AS col2 FROM tab2
----
17
39
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4833
SELECT ALL - - col1 + - CAST( + 40 AS SIGNED ) * + col1 FROM tab2 AS cor0
----
-1209
-2301
-663
skipif mysql # not compatible
query I rowsort label-4833
SELECT ALL - - col1 + - CAST ( + 40 AS INTEGER ) * + col1 FROM tab2 AS cor0
----
-1209
-2301
-663
query I rowsort
SELECT + col1 + + col0 * + col0 * col1 AS col0 FROM tab1 AS cor0
----
260
40970
83213
query I rowsort
SELECT ALL col1 * col0 * 28 + - col1 AS col1 FROM tab1 AS cor0
----
17910
2158
29107
query I rowsort
SELECT ALL - col1 + 13 * + ( - col1 ) * col1 AS col0 FROM tab1 AS cor0
----
-1310
-2210
-8814
query I rowsort
SELECT DISTINCT col0 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT + cor0.col2 + ( - 82 ) + col2 AS col1 FROM tab0 AS cor0
----
-16
-80
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col1 col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + col1 + ( 86 ) FROM tab2 AS cor0
----
27
55
69
query I rowsort
SELECT - col1 * 17 + 78 + + col1 FROM tab1 cor0
----
-130
-338
-82
query I rowsort
SELECT - col1 + - 46 FROM tab1 AS cor0
----
-56
-59
-72
query I rowsort
SELECT DISTINCT - - cor0.col0 * - col0 AS col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT - col2 + col1 + + cor0.col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT col0 * + col0 * - tab1.col1 - + 48 AS col0 FROM tab1
----
-282
-41008
-83248
query I rowsort
SELECT ALL - col2 - + tab1.col0 FROM tab1
----
-121
-176
-57
query I rowsort
SELECT ALL + + col2 + cor0.col0 FROM tab1 AS cor0
----
121
176
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 20 - col2 col1 FROM tab2
----
-18
-6
-7
query I rowsort
SELECT - cor0.col1 + col0 * - ( + col1 + col2 ) AS col2 FROM tab0 AS cor0
----
-15488
-2942
-3527
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 * CAST ( - col1 AS REAL ) AS col2 FROM tab0 AS cor0
----
-7396
-8281
-9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4851
SELECT - col2 + CAST( col0 AS SIGNED ) * - col0 AS col1 FROM tab0
----
-1226
-609
-8003
skipif mysql # not compatible
query I rowsort label-4851
SELECT - col2 + CAST ( col0 AS INTEGER ) * - col0 AS col1 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT DISTINCT tab0.col0 * 61 AS col1 FROM tab0, tab2 AS cor0
----
1464
2135
5429
query I rowsort
SELECT DISTINCT col0 + - col1 * + col1 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT col2 * + 90 + col0 AS col0 FROM tab1
----
4863
5194
8720
query I rowsort
SELECT ALL col1 + + tab2.col2 * + 89 * - tab2.col1 FROM tab2
----
-136467
-57477
-74462
onlyif mysql # use DIV operator for integer division
query I rowsort label-4856
SELECT - col2 DIV + col2 + + col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-4856
SELECT - col2 / + col2 + + col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT - 81 FROM tab2, tab0 cor0, tab1 AS cor1
----
-81
query I rowsort
SELECT col0 + + ( 7 ) AS col1 FROM tab1
----
10
71
87
query I rowsort
SELECT ALL + ( tab1.col0 ) FROM tab1, tab1 AS cor0
----
9 values hashing to dd18b93263a6cd425fc7cc84d9137870
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 80 col2 FROM tab2, tab0 AS cor0
----
-80
onlyif mysql # use DIV operator for integer division
query I rowsort label-4861
SELECT 31 * col0 DIV + cor0.col1 + CAST( col2 AS SIGNED ) * cor0.col0 * col2 FROM tab1 AS cor0
----
208134
737470
8751
skipif mysql # not compatible
query I rowsort label-4861
SELECT 31 * col0 / + cor0.col1 + CAST ( col2 AS INTEGER ) * cor0.col0 * col2 FROM tab1 AS cor0
----
208134
737470
8751
onlyif mysql # use DIV operator for integer division
query I rowsort label-4862
SELECT - col0 * cor0.col1 DIV - col2 col1 FROM tab1 AS cor0
----
1
10
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4862
SELECT - col0 * cor0.col1 / - col2 col1 FROM tab1 AS cor0
----
1
10
11
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( col2 ) + col1 col2 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL - 15 + col2 FROM tab0 AS cor0
----
-14
18
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-4865
SELECT ALL + col2 - col1 DIV + col1 AS col1 FROM tab2 AS cor0
----
25
26
37
skipif mysql # not compatible
query I rowsort label-4865
SELECT ALL + col2 - col1 / + col1 AS col1 FROM tab2 AS cor0
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-4866
SELECT DISTINCT - col0 + - col1 DIV - col0 AS col0 FROM tab0 AS cor0
----
-21
-33
-88
skipif mysql # not compatible
query I rowsort label-4866
SELECT DISTINCT - col0 + - col1 / - col0 AS col0 FROM tab0 AS cor0
----
-21
-33
-88
query I rowsort
SELECT 96 + - 79 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92
query I rowsort
SELECT DISTINCT + 68 * 96 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
6528
skipif mysql # not compatible
query I rowsort
SELECT ALL col1 + - col1 * CAST ( 62 AS REAL ) FROM tab2
----
-1037
-1891
-3599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 - + cor0.col0 col2 FROM tab2 cor0
----
182
1950
2923
query I rowsort
SELECT ALL + - 73 * + cor0.col1 + 44 * - col0 * col1 AS col2 FROM tab0 AS cor0
----
-156461
-362999
-97094
query I rowsort
SELECT ALL + 24 * - col2 * + ( + 32 ) FROM tab0 AS cor0
----
-25344
-62976
-768
query I rowsort
SELECT 32 FROM tab2 cor0
----
32
32
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 + col2 col1 FROM tab0 cor0
----
1122
2
6806
query I rowsort
SELECT + col2 * - col0 + + 98 * cor0.col1 FROM tab2 AS cor0
----
-1336
2849
3754
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4876
SELECT DISTINCT + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-4876
SELECT DISTINCT + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 5 + - col1 * + col0 * - cor0.col0 col1 FROM tab0 cor0
----
118830
49701
721221
query I rowsort
SELECT ALL - + col1 * col2 + - 72 AS col1 FROM tab1 AS cor0
----
-1320
-1476
-642
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4879
SELECT DISTINCT + cor0.col1 + + CAST( - ( col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
53
9
96
skipif mysql # not compatible
query I rowsort label-4879
SELECT DISTINCT + cor0.col1 + + CAST ( - ( col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-4880
SELECT - col0 DIV 73 + - ( col2 * cor0.col2 ) + col0 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6725
skipif mysql # not compatible
query I rowsort label-4880
SELECT - col0 / 73 + - ( col2 * cor0.col2 ) + col0 / col1 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4881
SELECT + CAST( NULL AS SIGNED ) - - 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4881
SELECT + CAST ( NULL AS INTEGER ) - - 92 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-4882
SELECT + col2 * col0 DIV + col1 AS col0 FROM tab2
----
176
34
6
skipif mysql # not compatible
query I rowsort label-4882
SELECT + col2 * col0 / + col1 AS col0 FROM tab2
----
176
34
6
query I rowsort
SELECT - cor0.col2 * col2 AS col1 FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT + cor0.col0 * - cor0.col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + col2 * - cor0.col2 * + col0 AS col1 FROM tab2 AS cor0
----
-114076
-5103
-52728
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( col2 * + col0 * + col1 - - col1 * col2 )
----
query I rowsort
SELECT col2 FROM tab2 WHERE NOT + col1 - - col0 BETWEEN NULL AND NULL
----
query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( + col1 )
----
query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----
query I rowsort
SELECT - + cor0.col0 * + col1 + + col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT - col1 + col2 + - cor0.col0 * - cor0.col2 AS col2 FROM tab0 AS cor0
----
-61
7289
739
query I rowsort
SELECT - col2 + col1 + cor0.col2 AS col2 FROM tab2 AS cor0
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-4893
SELECT - col2 + col1 DIV - col0 AS col1 FROM tab2 cor0
----
-26
-31
-38
skipif mysql # not compatible
query I rowsort label-4893
SELECT - col2 + col1 / - col0 AS col1 FROM tab2 cor0
----
-26
-31
-38
query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT - - col1 * col2 + col0 FROM tab0 cor0
----
132
2862
7551
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + col1 col1 FROM tab2 AS cor0
----
-289
-3481
-961
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( - col0 ) AND + col0 + col1 OR NOT - col0 NOT IN ( col0 + col2 )
----
query I rowsort
SELECT DISTINCT - col1 * - col2 * col0 AS col2 FROM tab2
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-4899
SELECT ALL tab1.col2 DIV - col0 AS col0 FROM tab1
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-4899
SELECT ALL tab1.col2 / - col0 AS col0 FROM tab1
----
-1
-18
0
query I rowsort
SELECT - cor0.col2 AS col0 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # use DIV operator for integer division
query I rowsort label-4901
SELECT ALL - col2 + col0 DIV + ( col0 ) FROM tab1 cor0
----
-53
-56
-95
skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL - col2 + col0 / + ( col0 ) FROM tab1 cor0
----
-53
-56
-95
query I rowsort
SELECT + cor0.col2 + + col1 + col2 * - ( - cor0.col1 ) FROM tab0 AS cor0
----
195
2957
7635
onlyif mysql # use DIV operator for integer division
query I rowsort label-4903
SELECT col2 + col1 DIV cor0.col0 AS col1 FROM tab1 AS cor0
----
57
62
96
skipif mysql # not compatible
query I rowsort label-4903
SELECT col2 + col1 / cor0.col0 AS col1 FROM tab1 AS cor0
----
57
62
96
query III rowsort
SELECT * FROM tab1 WHERE - tab1.col2 <> ( col0 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT - col1 * col0 * 4 + + 20 - col1 FROM tab0 AS cor0
----
-13657
-32467
-8322
query I rowsort
SELECT ALL + 38 + cor0.col2 AS col0 FROM tab0 AS cor0
----
120
39
71
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4907
SELECT DISTINCT + + col1 + + col0 * CAST( col2 AS SIGNED ) AS col2 FROM tab1 cor0
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + + col1 + + col0 * CAST ( col2 AS INTEGER ) AS col2 FROM tab1 cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab2 AS cor0
----
-24
query I rowsort
SELECT - 33 + - col0 * ( col2 ) FROM tab1 AS cor0
----
-195
-3681
-7713
query I rowsort
SELECT DISTINCT - 10 * - col2 FROM tab0
----
10
330
820
onlyif mysql # use DIV operator for integer division
query I rowsort label-4911
SELECT DISTINCT col1 DIV - ( col2 ) FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT col1 / - ( col2 ) FROM tab1 AS cor0
----
0
query I rowsort
SELECT + cor0.col2 * 4 + - col2 FROM tab1 cor0
----
162
171
288
query I rowsort
SELECT ALL + col2 + + col0 * cor0.col1 * - col1 AS col2 FROM tab1 AS cor0
----
-13424
-1974
-6343
query I rowsort
SELECT cor0.col0 * 86 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to e0bc39b0523a34144e0638d72f860e8b
query I rowsort
SELECT + ( col1 ) * col2 - + tab2.col1 AS col0 FROM tab2
----
1475
629
806
query I rowsort
SELECT - 41 + tab1.col2 AS col2 FROM tab1
----
13
16
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-4917
SELECT col2 * col2 + - ( col1 ) DIV - col1 col0 FROM tab2
----
1445
677
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4917
SELECT col2 * col2 + - ( col1 ) / - col1 col0 FROM tab2
----
1445
677
730
query I rowsort
SELECT DISTINCT + tab2.col2 * - col0 + col0 AS col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT - col0 * - col0 * col1 - col0 AS col2 FROM tab2
----
106018
1512
358878
query I rowsort
SELECT - col1 * + col1 * + col1 + - col2 * col0 FROM tab1
----
-17738
-4648
-9877
query I rowsort
SELECT DISTINCT col2 * - col1 + - col1 FROM tab0
----
-194
-2924
-7553
query I rowsort
SELECT col1 * + col2 + col0 * - col2 AS col1 FROM tab0
----
164
2046
62
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( col2 * tab2.col2 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT col1 * - col0 * col1 FROM tab2
----
-22831
-271518
-6727
query I rowsort
SELECT ALL col1 * tab1.col1 + + col1 + + col0 AS col0 FROM tab1
----
174
262
705
onlyif mysql # use DIV operator for integer division
query I rowsort label-4927
SELECT col2 DIV - tab1.col2 - + col2 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-4927
SELECT col2 / - tab1.col2 - + col2 FROM tab1
----
-55
-58
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-4928
SELECT + col2 * col1 DIV col0 FROM tab0
----
118
2
83
skipif mysql # not compatible
query I rowsort label-4928
SELECT + col2 * col1 / col0 FROM tab0
----
118
2
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 * col0 col1 FROM tab1
----
13520
2028
6400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4930
SELECT ALL + col1 + col1 * - col1 - + col2 DIV + col0 AS col1 FROM tab2
----
-272
-3422
-933
skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + col1 + col1 * - col1 - + col2 / + col0 AS col1 FROM tab2
----
-272
-3422
-933
onlyif mysql # use DIV operator for integer division
query I rowsort label-4931
SELECT col2 * tab2.col2 DIV col1 FROM tab2
----
11
23
84
skipif mysql # not compatible
query I rowsort label-4931
SELECT col2 * tab2.col2 / col1 FROM tab2
----
11
23
84
query I rowsort
SELECT DISTINCT col2 * + tab2.col2 AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT - tab2.col0 + tab2.col0 * - col0 - col0 AS col2 FROM tab2
----
-6240
-63
-6399
query I rowsort
SELECT col1 * col0 + tab2.col1 - col2 AS col1 FROM tab2
----
1322
221
4635
onlyif mysql # use DIV operator for integer division
query I rowsort label-4935
SELECT - col2 + col0 DIV - col1 FROM tab2
----
-27
-27
-42
skipif mysql # not compatible
query I rowsort label-4935
SELECT - col2 + col0 / - col1 FROM tab2
----
-27
-27
-42
query I rowsort
SELECT ALL + col2 * col2 * col1 FROM tab1
----
119808
32490
75816
query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col1 * + col2 )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE ( col2 + + col1 ) = NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( + col1 + col0 * - col1 * col1 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 * - col2 col0 FROM tab2
----
119652
51034
5859
query I rowsort
SELECT ALL tab2.col1 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND + col2
----
query I rowsort
SELECT ALL + col1 + + col2 * + tab2.col0 AS col2 FROM tab2 WHERE NOT - col2 + - col2 <> ( col2 * + col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col1 * - tab2.col0 )
----
query I rowsort
SELECT - col1 + - col0 * + col2 * col0 FROM tab1
----
-233482
-512
-614413
query I rowsort
SELECT + tab1.col1 AS col2 FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col1 ) * - col0 col0 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT - 6 FROM tab1, tab2, tab1 AS cor0
----
-6
query I rowsort
SELECT DISTINCT 18 + - col0 * col1 AS col1 FROM tab0
----
-2046
-3377
-8081
query I rowsort
SELECT ALL cor0.col2 * + col0 + - 37 * col2 AS col0 FROM tab1 AS cor0
----
-1836
1539
4128
query I rowsort
SELECT DISTINCT + + col1 * col1 * - col2 - 42 * - col2 FROM tab1 AS cor0
----
-12192
-3306
-34236
query I rowsort
SELECT DISTINCT - col0 - col1 FROM tab2 cor0
----
-137
-38
-96
query I rowsort
SELECT - 52 + - cor0.col1 * col0 FROM tab0 AS cor0
----
-2116
-3447
-8151
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * + cor0.col2 + - col2 + col0 * col1 col1 FROM tab2 AS cor0
----
2566
4649
6864
onlyif mysql # use DIV operator for integer division
query I rowsort label-4954
SELECT DISTINCT - 67 DIV - col2 FROM tab1 cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT - 67 / - col2 FROM tab1 cor0
----
0
1
query I rowsort
SELECT - 17 + col0 AS col2 FROM tab2 AS cor0
----
-10
61
62
query I rowsort
SELECT ALL + col0 + + col1 - - col2 * + col1 AS col2 FROM tab2 cor0
----
1671
742
875
query I rowsort
SELECT ALL - col2 * - ( cor0.col1 ) + + col1 FROM tab2 AS cor0
----
1593
663
868
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 + col2 col0 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT + - col2 + + 79 FROM tab2 AS cor0
----
41
52
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 8 col1 FROM tab2 AS cor0
----
208
216
304
query I rowsort
SELECT DISTINCT + + col1 + ( cor0.col2 * col1 ) + + col2 FROM tab0 AS cor0
----
195
2957
7635
query I rowsort
SELECT DISTINCT col2 + + ( 33 + + col2 ) * + col1 AS col2 FROM tab2 AS cor0
----
1245
1887
3507
query I rowsort
SELECT ALL + col1 - + ( + col0 ) FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT col2 + tab0.col0 * ( + col1 ) AS col0 FROM tab0
----
2097
3396
8181
query I rowsort
SELECT ALL + tab1.col2 + col2 AS col1 FROM tab1
----
108
114
192
query I rowsort
SELECT col2 * + col2 + col0 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT - col2 * ( 57 ) FROM tab2 AS cor0
----
-1482
-1539
-2166
query I rowsort
SELECT ALL - + col0 * - col0 * + col2 FROM tab1 AS cor0
----
233472
486
614400
onlyif mysql # use DIV operator for integer division
query I rowsort label-4969
SELECT DISTINCT + cor0.col0 DIV 1 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT + cor0.col0 / 1 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-4970
SELECT - col2 DIV + col0 + 22 col1 FROM tab1 AS cor0
----
21
22
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-4970
SELECT - col2 / + col0 + 22 col1 FROM tab1 AS cor0
----
21
22
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-4971
SELECT ALL col0 DIV - 51 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL col0 / - 51 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT + col0 + ( - col0 ) - + col2 * + col2 * col0 FROM tab1 cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-4973
SELECT + + 65 + col0 DIV col2 FROM tab0 cor0
----
100
65
66
skipif mysql # not compatible
query I rowsort label-4973
SELECT + + 65 + col0 / col2 FROM tab0 cor0
----
100
65
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - col2 ) + col1 col1 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT - + 72 + col0 * col1 AS col2 FROM tab2 AS cor0
----
1271
145
4530
onlyif mysql # use DIV operator for integer division
query I rowsort label-4976
SELECT + ( + 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-4976
SELECT + ( + col2 ) / - col2 col1 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - - 33 * + ( - cor0.col0 ) * - 62 + - cor0.col1 FROM tab1 AS cor0
----
130934
163667
6112
query I rowsort
SELECT + ( ( - cor0.col2 ) ) + + 0 * - 35 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT ALL 92 * col0 + + col0 FROM tab0 AS cor0
----
2232
3255
8277
onlyif mysql # use DIV operator for integer division
query I rowsort label-4980
SELECT ALL + + col0 * - col0 DIV col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL + + col0 * - col0 / col0 AS col2 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4981
SELECT - CAST( NULL AS SIGNED ) * 10 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-4981
SELECT - CAST ( NULL AS INTEGER ) * 10 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4982
SELECT - CAST( NULL AS SIGNED ) - 71 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4982
SELECT - CAST ( NULL AS INTEGER ) - 71 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col1 * col1 + + col2 FROM tab0 AS cor0
----
-7363
-8199
-9408
onlyif mysql # use DIV operator for integer division
query I rowsort label-4984
SELECT DISTINCT + - 48 DIV - 52 + col1 FROM tab1 cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT + - 48 / - 52 + col1 FROM tab1 cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * + 76 + + col0 FROM tab1 cor0
----
-225
-4800
-6000
query I rowsort
SELECT ALL - 71 * col1 + + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1280
-2171
-3250
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-4987
SELECT + CAST( NULL AS SIGNED ) * - 16 + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-4987
SELECT + CAST ( NULL AS INTEGER ) * - 16 + - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 92 * cor0.col1 - col2 * + cor0.col1 FROM tab1 AS cor0
----
-52
350
988
onlyif mysql # use DIV operator for integer division
query I rowsort label-4989
SELECT ALL + CAST( - col2 AS SIGNED ) + + col1 DIV - 63 - + tab2.col2 FROM tab2
----
-52
-54
-76
skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL + CAST ( - col2 AS INTEGER ) + + col1 / - 63 - + tab2.col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT DISTINCT + col0 * cor0.col0 + + col1 FROM tab0 cor0
----
1322
662
8012
query I rowsort
SELECT + col2 * col1 + - col0 + + cor0.col0 * cor0.col2 FROM tab1 AS cor0
----
1563
4154
8848
query I rowsort
SELECT DISTINCT 42 + - 82 AS col1 FROM tab2
----
-40
onlyif mysql # use DIV operator for integer division
query I rowsort label-4993
SELECT + ( - tab0.col1 ) * col1 DIV col2 AS col1 FROM tab0
----
-100
-224
-9409
skipif mysql # not compatible
query I rowsort label-4993
SELECT + ( - tab0.col1 ) * col1 / col2 AS col1 FROM tab0
----
-100
-224
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-4994
SELECT col0 DIV - col2 + col2 * - col0 * col0 FROM tab1
----
-233473
-486
-614400
skipif mysql # not compatible
query I rowsort label-4994
SELECT col0 / - col2 + col2 * - col0 * col0 FROM tab1
----
-233473
-486
-614400
query I rowsort
SELECT + col1 * col1 - col2 AS col0 FROM tab1 AS cor0
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-4996
SELECT col1 + ( tab0.col0 ) DIV col0 + col0 DIV col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-4996
SELECT col1 + ( tab0.col0 ) / col0 + col0 / col1 FROM tab0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-4997
SELECT - + col1 + - col1 DIV - col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
skipif mysql # not compatible
query I rowsort label-4997
SELECT - + col1 + - col1 / - col1 AS col1 FROM tab1 AS cor0
----
-12
-25
-9
query I rowsort
SELECT ALL col0 + col1 * + col2 FROM tab1
----
1328
1407
634
query I rowsort
SELECT + + ( col0 ) - col2 * col0 AS col1 FROM tab0 AS cor0
----
-7209
-768
0
query I rowsort
SELECT ( cor0.col2 ) * - col2 AS col2 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT 53 * - cor0.col0 - - cor0.col1 FROM tab1 cor0
----
-133
-3382
-4227
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL 40 * cor1.col1 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d70c4f8bf8832b181754c1f39fe31834
query I rowsort
SELECT DISTINCT + col0 + + ( col2 + col2 * col2 ) FROM tab2 AS cor0
----
1561
763
780
onlyif mysql # use DIV operator for integer division
query I rowsort label-5005
SELECT + col2 DIV col1 + - col1 FROM tab2
----
-15
-31
-59
skipif mysql # not compatible
query I rowsort label-5005
SELECT + col2 / col1 + - col1 FROM tab2
----
-15
-31
-59
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 cor2
----
972 values hashing to 64ce0e736818e884f0a9ecd075da5eb7
query I rowsort
SELECT col1 + col0 * + col1 * col0 AS col0 FROM tab2
----
106114
1550
359015
query I rowsort
SELECT DISTINCT + col0 - + 25 * cor0.col0 AS col0 FROM tab1 AS cor0
----
-1536
-1920
-72
query I rowsort
SELECT ( + 46 ) * col1 AS col1 FROM tab1 AS cor0
----
1196
460
598
query I rowsort
SELECT ALL - cor1.col1 AS col1 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5011
SELECT 89 DIV col0 AS col2 FROM tab1
----
1
1
29
skipif mysql # not compatible
query I rowsort label-5011
SELECT 89 / col0 AS col2 FROM tab1
----
1
1
29
onlyif mysql # use DIV operator for integer division
query I rowsort label-5012
SELECT DISTINCT col0 DIV col2 + - col1 FROM tab0
----
-62
-86
-90
skipif mysql # not compatible
query I rowsort label-5012
SELECT DISTINCT col0 / col2 + - col1 FROM tab0
----
-62
-86
-90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( - col0 ) ) col0 FROM tab1
----
3
64
80
query I rowsort
SELECT 8 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT ALL + col2 + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT - + 30 AS col1 FROM tab0 cor0
----
-30
-30
-30
query I rowsort
SELECT - 47 * cor0.col2 + + cor0.col2 AS col1 FROM tab2 cor0
----
-1196
-1242
-1748
query I rowsort
SELECT ALL cor0.col2 * 33 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT ALL 57 + col1 FROM tab0 AS cor0
----
143
148
154
query I rowsort
SELECT + ( 67 ) FROM tab1 AS cor0
----
67
67
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * col0 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ( - col2 ) * - col2 + - col0 FROM tab2 AS cor0
----
1365
598
722
query I rowsort
SELECT ( cor0.col2 ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-5024
SELECT DISTINCT - col1 DIV cor0.col2 FROM tab1 cor0
----
0
skipif mysql # not compatible
query I rowsort label-5024
SELECT DISTINCT - col1 / cor0.col2 FROM tab1 cor0
----
0
query I rowsort
SELECT + 14 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f
query I rowsort
SELECT + col1 * ( col2 ) AS col1 FROM tab1
----
1248
1404
570
query I rowsort
SELECT ALL 53 FROM tab0, tab1 AS cor0, tab2, tab1 AS cor1
----
81 values hashing to 63949b5362442f48bd29195397a57dad
query I rowsort
SELECT - 99 + ( + col2 * col2 ) FROM tab2
----
1345
577
630
query I rowsort
SELECT cor0.col0 * - cor0.col0 FROM tab2, tab2 AS cor0
----
9 values hashing to f921d4cdc13dc0e8c0388ccf3f81ffc1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) * - col1 col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - - ( cor0.col2 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT DISTINCT - + 20 * + col1 AS col0 FROM tab0 AS cor0
----
-1720
-1820
-1940
query I rowsort
SELECT + col1 * 0 + + 88 AS col0 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT + col2 * + col1 + - ( + col1 ) FROM tab0
----
0
2752
7371
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5035
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 80 FROM tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 80 FROM tab1, tab1 AS cor0
----
NULL
query I rowsort
SELECT + - col2 * 95 + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
-2411
-2534
-3593
query I rowsort
SELECT + col0 + + 84 FROM tab2 AS cor0
----
162
163
91
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5038
SELECT - - col1 * - CAST( col2 AS SIGNED ) * col0 + - 45 - + col0 FROM tab2 cor0
----
-119775
-51158
-5911
skipif mysql # not compatible
query I rowsort label-5038
SELECT - - col1 * - CAST ( col2 AS INTEGER ) * col0 + - 45 - + col0 FROM tab2 cor0
----
-119775
-51158
-5911
query I rowsort
SELECT ALL + col0 + - cor0.col1 * 30 AS col1 FROM tab1 AS cor0
----
-236
-310
-777
onlyif mysql # use DIV operator for integer division
query I rowsort label-5040
SELECT ALL + col0 - + ( ( - col2 ) ) DIV col2 AS col2 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-5040
SELECT ALL + col0 - + ( ( - col2 ) ) / col2 AS col2 FROM tab1 AS cor0
----
4
65
81
onlyif mysql # use DIV operator for integer division
query I rowsort label-5041
SELECT ALL - - col0 DIV + col2 - + 18 col0 FROM tab0 AS cor0
----
-17
-18
17
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL - - col0 / + col2 - + 18 col0 FROM tab0 AS cor0
----
-17
-18
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-5042
SELECT - cor0.col0 * - col2 * col0 + col0 DIV - col0 FROM tab1 AS cor0
----
233471
485
614399
skipif mysql # not compatible
query I rowsort label-5042
SELECT - cor0.col0 * - col2 * col0 + col0 / - col0 FROM tab1 AS cor0
----
233471
485
614399
query I rowsort
SELECT DISTINCT col1 - - col2 * col1 * cor0.col0 FROM tab1 AS cor0
----
36490
4238
99853
query I rowsort
SELECT DISTINCT - - 42 AS col2 FROM tab1 AS cor0
----
42
query I rowsort
SELECT ALL + + 20 + - col0 AS col0 FROM tab0 AS cor0
----
-15
-4
-69
query I rowsort
SELECT - col0 + col0 * - col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT ALL - 2 * - ( col1 ) + + 22 FROM tab0 AS cor0
----
194
204
216
query I rowsort
SELECT + - col2 * + 92 FROM tab0 AS cor0
----
-3036
-7544
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 col1 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT col2 * ( col2 ) FROM tab0
----
1
1089
6724
query I rowsort
SELECT ALL - col0 - - col1 * + col1 * + 67 FROM tab0 AS cor0
----
495508
554738
630368
query I rowsort
SELECT ALL + 37 * + col1 - + col1 AS col1 FROM tab1 AS cor0
----
360
468
936
query I rowsort
SELECT ALL - - 89 * + col0 AS col0 FROM tab1 AS cor0
----
267
5696
7120
query I rowsort
SELECT DISTINCT + ( col1 ) * - col0 * - col2 FROM tab0 cor0
----
3395
664118
68112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + cor0.col1 col2 FROM tab2 cor0
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 - - 93 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 46c569df08c862dfe896f44f77a27313
query I rowsort
SELECT ALL col2 * 30 FROM tab1
----
1620
1710
2880
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4c0813b2179303fdf58f082d81d6d03c
query I rowsort
SELECT - + col1 * - cor0.col0 + col1 - + col2 * + ( col0 ) AS col1 FROM tab2 AS cor0
----
-1642
2633
59
query I rowsort
SELECT - - cor0.col0 - 69 FROM tab0 AS cor0
----
-34
-45
20
query I rowsort
SELECT + - col0 + - 5 AS col0 FROM tab0 AS cor0
----
-29
-40
-94
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5062
SELECT ALL + + col1 + CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + + col1 + CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + - col2 * col1 + col2 AS col0 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT ALL + col0 + - col2 * col2 - cor0.col0 FROM tab0 AS cor0
----
-1
-1089
-6724
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5065
SELECT DISTINCT + + col0 + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + + col0 + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
query I rowsort
SELECT col1 * 96 - col0 AS col2 FROM tab0 AS cor0
----
8232
8647
9277
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5067
SELECT ALL col1 + + CAST( + col2 * - col0 AS SIGNED ) FROM tab2 AS cor0
----
-158
-1969
-2985
skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL col1 + + CAST ( + col2 * - col0 AS INTEGER ) FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT 14 AS col1 FROM tab1
----
14
query I rowsort
SELECT ALL - col1 + + col1 - + col0 FROM tab0
----
-24
-35
-89
query I rowsort
SELECT 93 + - col0 AS col0 FROM tab2 cor0
----
14
15
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-5071
SELECT ( + 83 ) - col0 DIV 18 FROM tab1
----
79
80
83
skipif mysql # not compatible
query I rowsort label-5071
SELECT ( + 83 ) - col0 / 18 FROM tab1
----
79
80
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5072
SELECT DISTINCT - - 47 DIV col0 AS col2 FROM tab2 AS cor0
----
0
6
skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT - - 47 / col0 AS col2 FROM tab2 AS cor0
----
0
6
query I rowsort
SELECT - + col0 + col1 + - col2 * 89 AS col1 FROM tab2 AS cor0
----
-2333
-2379
-3444
query I rowsort
SELECT - cor1.col0 * cor1.col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to 064f0d12f5a54890818030ba889e7e5c
query I rowsort
SELECT DISTINCT - tab0.col0 * - col2 + col2 + - tab0.col1 AS col2 FROM tab0
----
-61
7289
739
onlyif mysql # use DIV operator for integer division
query I rowsort label-5076
SELECT tab2.col0 + + CAST( 11 AS SIGNED ) DIV + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a643bd0785162a354a00d4f42cba94a1
skipif mysql # not compatible
query I rowsort label-5076
SELECT tab2.col0 + + CAST ( 11 AS INTEGER ) / + cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to a643bd0785162a354a00d4f42cba94a1
query I rowsort
SELECT ALL + col0 * col0 * col2 FROM tab0
----
1225
19008
649522
query I rowsort
SELECT DISTINCT - 12 + cor0.col0 AS col0 FROM tab1 AS cor0
----
-9
52
68
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5079
SELECT ALL + col2 * - col0 - + CAST( + col0 + - col1 AS SIGNED ) FROM tab2 AS cor0
----
-165
-2047
-3064
skipif mysql # not compatible
query I rowsort label-5079
SELECT ALL + col2 * - col0 - + CAST ( + col0 + - col1 AS INTEGER ) FROM tab2 AS cor0
----
-165
-2047
-3064
query I rowsort
SELECT + - 64 + col2 * ( - col2 ) FROM tab1 AS cor0
----
-2980
-3313
-9280
query I rowsort
SELECT ALL - ( col2 ) * cor0.col2 FROM tab2 AS cor0
----
-1444
-676
-729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + col0 col2 FROM tab1 AS cor0
----
132
148
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col2 FROM tab2, tab0 AS cor0, tab1 cor1
----
27 values hashing to a0e6b76227d870d10c4d9f46545a7c83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 * - col0 col2 FROM tab0
----
-1128
-490
-7830
query I rowsort
SELECT ALL - + col1 * ( - col2 ) * + cor0.col0 AS col0 FROM tab2 AS cor0
----
119652
51034
5859
onlyif mysql # use DIV operator for integer division
query I rowsort label-5086
SELECT DISTINCT + + 77 DIV col0 + col2 FROM tab1 AS cor0
----
58
79
96
skipif mysql # not compatible
query I rowsort label-5086
SELECT DISTINCT + + 77 / col0 + col2 FROM tab1 AS cor0
----
58
79
96
query I rowsort
SELECT + col2 * + 24 FROM tab1 AS cor0
----
1296
1368
2304
query I rowsort
SELECT ALL + col0 * cor0.col1 + + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col2 + col0 * col0 col2 FROM tab1 AS cor0
----
15616
2925
7345
query I rowsort
SELECT DISTINCT cor0.col0 * - col1 AS col0 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT - col2 * col2 + col2 FROM tab0 cor0
----
-1056
-6642
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5092
SELECT ALL - col2 - 26 DIV col1 AS col0 FROM tab1 AS cor0
----
-55
-59
-98
skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL - col2 - 26 / col1 AS col0 FROM tab1 AS cor0
----
-55
-59
-98
query I rowsort
SELECT DISTINCT - 58 + + cor0.col0 FROM tab2 AS cor0
----
-51
20
21
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + ( col0 ) col1 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-5095
SELECT DISTINCT + 61 DIV + col0 AS col1 FROM tab1 cor0
----
0
20
skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT + 61 / + col0 AS col1 FROM tab1 cor0
----
0
20
query I rowsort
SELECT + 89 + 40 AS col2 FROM tab1 AS cor0
----
129
129
129
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5097
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 + + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 + + col0 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5098
SELECT ALL cor0.col2 DIV - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5098
SELECT ALL cor0.col2 / - cor0.col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT - ( 86 ) AS col0 FROM tab0 AS cor0
----
-86
query I rowsort
SELECT ALL 77 * ( - col0 ) + cor0.col1 FROM tab1 AS cor0
----
-205
-4918
-6147
query I rowsort
SELECT DISTINCT + ( col0 ) * col1 * col1 - col1 AS col2 FROM tab1 AS cor0
----
13507
2002
6390
query I rowsort
SELECT DISTINCT - ( + col2 ) AS col1 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * - col2 col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT col0 + + 4 FROM tab1 AS cor0
----
68
7
84
query I rowsort
SELECT ALL + col1 + - 67 * - cor0.col0 FROM tab0 AS cor0
----
1694
2442
6054
query I rowsort
SELECT DISTINCT - - 4 - + col1 AS col1 FROM tab0 cor0
----
-82
-87
-93
query I rowsort
SELECT + ( 51 ) FROM tab0
----
51
51
51
query I rowsort
SELECT + 86 * + col1 AS col0 FROM tab1 AS cor0
----
1118
2236
860
query I rowsort
SELECT ALL + - 19 + col1 AS col0 FROM tab0 AS cor0
----
67
72
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5110
SELECT DISTINCT + - 54 + col1 DIV + col0 FROM tab2 AS cor0
----
-50
-54
skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT + - 54 + col1 / + col0 FROM tab2 AS cor0
----
-50
-54
query I rowsort
SELECT cor0.col1 * - 97 FROM tab0 AS cor0
----
-8342
-8827
-9409
query I rowsort
SELECT + 87 + col1 FROM tab1 AS cor0
----
100
113
97
query I rowsort
SELECT - 56 * - col0 + 79 AS col1 FROM tab1 AS cor0
----
247
3663
4559
query I rowsort
SELECT - ( col1 * tab0.col0 ) AS col1 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5115
SELECT DISTINCT 69 DIV tab1.col0 FROM tab1, tab2 cor0
----
0
1
23
skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT 69 / tab1.col0 FROM tab1, tab2 cor0
----
0
1
23
query I rowsort
SELECT DISTINCT - + col1 * + 29 FROM tab0 AS cor0
----
-2494
-2639
-2813
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5117
SELECT + col0 * CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5117
SELECT + col0 * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5118
SELECT DISTINCT + col1 * CAST( col0 * - col2 AS SIGNED ) FROM tab2 AS cor0
----
-119652
-51034
-5859
skipif mysql # not compatible
query I rowsort label-5118
SELECT DISTINCT + col1 * CAST ( col0 * - col2 AS INTEGER ) FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT col2 * + ( 77 ) + - col1 FROM tab2 AS cor0
----
1943
2048
2909
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5120
SELECT ALL CAST( NULL AS SIGNED ) * + 87 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL CAST ( NULL AS INTEGER ) * + 87 AS col2 FROM tab2, tab2 cor0, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT + col0 * col1 + + col0 * - col1 + - col0 AS col0 FROM tab2 cor0
----
-7
-78
-79
query I rowsort
SELECT col0 * 30 + + col0 * + col0 * col0 FROM tab2 AS cor0
----
476892
495409
553
query I rowsort
SELECT col2 + col2 * + 72 AS col2 FROM tab2
----
1898
1971
2774
query I rowsort
SELECT 88 AS col2 FROM tab1, tab2 cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37
onlyif mysql # use DIV operator for integer division
query I rowsort label-5125
SELECT ALL - col1 DIV + ( - 6 * col1 ) AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5125
SELECT ALL - col1 / + ( - 6 * col1 ) AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT + cor0.col1 * - cor0.col1 FROM tab2 cor0
----
-289
-3481
-961
query I rowsort
SELECT col2 - + col2 * + 24 AS col0 FROM tab0 AS cor0
----
-1886
-23
-759
query I rowsort
SELECT + 22 * - cor0.col2 AS col0 FROM tab2 AS cor0
----
-572
-594
-836
query I rowsort
SELECT ALL col2 + - col0 * - col2 AS col2 FROM tab1 AS cor0
----
216
3705
7776
query I rowsort
SELECT 38 * col1 * col2 FROM tab1
----
21660
47424
53352
query I rowsort
SELECT col0 + + col1 * 11 AS col2 FROM tab2 cor0
----
266
348
727
query I rowsort
SELECT - cor0.col1 + + col0 * - 47 * col2 FROM tab0 AS cor0
----
-1742
-343097
-37310
query I rowsort
SELECT 39 + + cor0.col1 AS col2 FROM tab1 AS cor0
----
49
52
65
query I rowsort
SELECT ALL - col0 + 7 AS col1 FROM tab2 AS cor0
----
-71
-72
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 * 11 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 3cc87622a8962ac006100580f8aa516b
query I rowsort
SELECT ALL - col0 * + col2 + + ( 23 + col0 * - ( - col2 ) ) FROM tab2
----
23
23
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 33 ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-33
query I rowsort
SELECT ( col0 ) * col2 + + cor0.col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-5139
SELECT 20 DIV - cor1.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5139
SELECT 20 / - cor1.col0 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 * col0 col1 FROM tab2
----
-114076
-5103
-52728
query I rowsort
SELECT + 77 * col1 + col0 FROM tab1 AS cor0
----
1081
2005
834
query I rowsort
SELECT 87 * col0 AS col1 FROM tab0
----
2088
3045
7743
query I rowsort
SELECT - ( col0 ) * + col0 + 44 * col0 AS col0 FROM tab2 cor0
----
-2652
-2765
259
query I rowsort
SELECT ALL - col2 + - col0 * 80 + col2 FROM tab0 AS cor0
----
-1920
-2800
-7120
query I rowsort
SELECT DISTINCT + col0 + cor0.col0 * 64 AS col1 FROM tab0 AS cor0
----
1560
2275
5785
query I rowsort
SELECT - ( 24 ) AS col2 FROM tab0 cor0
----
-24
-24
-24
query I rowsort
SELECT - col2 * col0 + 39 + + col2 AS col2 FROM tab1
----
-3552
-69
-7545
query I rowsort
SELECT - 30 + - col2 AS col0 FROM tab1 AS cor0
----
-126
-84
-87
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 * col0 col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5150
SELECT DISTINCT - col1 + col1 DIV - col0 FROM tab2
----
-17
-35
-59
skipif mysql # not compatible
query I rowsort label-5150
SELECT DISTINCT - col1 + col1 / - col0 FROM tab2
----
-17
-35
-59
query I rowsort
SELECT DISTINCT tab1.col0 * col2 + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT + 77 * col2 * col0 + 94 * + col1 FROM tab1
----
14918
281836
592582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5153
SELECT DISTINCT col1 * col1 + - CAST( - col0 AS SIGNED ) FROM tab0
----
7420
8370
9444
skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT col1 * col1 + - CAST ( - col0 AS INTEGER ) FROM tab0
----
7420
8370
9444
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5154
SELECT col1 * col2 + CAST( NULL AS SIGNED ) * + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5154
SELECT col1 * col2 + CAST ( NULL AS INTEGER ) * + 76 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 + - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT DISTINCT + + col1 * col2 + col2 AS col2 FROM tab1 cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 * - col2 + + 34 col0 FROM tab2 AS cor0
----
-114042
-5069
-52694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( col0 ) * - ( + ( + col1 ) ) col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL col1 + col1 + col2 FROM tab2 AS cor0
----
144
72
89
query I rowsort
SELECT 76 AS col1 FROM tab2, tab1 AS cor0, tab0 cor1
----
27 values hashing to 7b2b08dd3f1adef028d3f40ef7c716da
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( cor0.col1 ) col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT - col1 + + ( + col0 ) AS col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT + col0 + - col1 + ( + col2 ) * - col2 FROM tab2 AS cor0
----
-1382
-657
-753
onlyif mysql # use DIV operator for integer division
query I rowsort label-5164
SELECT ALL + + ( 58 ) DIV - col1 - col0 AS col1 FROM tab2 AS cor0
----
-78
-8
-82
skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + + ( 58 ) / - col1 - col0 AS col1 FROM tab2 AS cor0
----
-78
-8
-82
query I rowsort
SELECT DISTINCT 42 + - col2 * col2 AS col1 FROM tab2 AS cor0
----
-1402
-634
-687
query I rowsort
SELECT DISTINCT - + ( 14 ) + + col0 * - 1 AS col1 FROM tab0 AS cor0
----
-103
-38
-49
query I rowsort
SELECT ALL + ( + cor0.col1 ) * cor0.col2 - col0 * col2 AS col1 FROM tab0 AS cor0
----
164
2046
62
query I rowsort
SELECT - 37 * ( col2 ) FROM tab0 AS cor0
----
-1221
-3034
-37
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col0 FROM tab1 AS cor0
----
-84
-84
-84
query I rowsort
SELECT 13 + 82 AS col0 FROM tab0 AS cor0
----
95
95
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5171
SELECT ALL CAST( NULL AS DECIMAL ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5171
SELECT ALL CAST ( NULL AS REAL ) AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT 57 * 99 + tab0.col0 AS col0 FROM tab0, tab1, tab0 AS cor0, tab2
----
81 values hashing to b6aa86db0040bb0f82e83ced7baff4ec
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col1 FROM tab2, tab1 AS cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09
query I rowsort
SELECT ALL col1 * + ( col1 ) FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col1 * 25 AS col2 FROM tab2 AS cor0
----
1475
425
775
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5176
SELECT DISTINCT - CAST( 77 AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
-6622
-7007
-7469
skipif mysql # not compatible
query I rowsort label-5176
SELECT DISTINCT - CAST ( 77 AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
-6622
-7007
-7469
query I rowsort
SELECT ALL 4 FROM tab2 cor0
----
4
4
4
query I rowsort
SELECT 76 * - cor0.col1 FROM tab0 AS cor0
----
-6536
-6916
-7372
onlyif mysql # use DIV operator for integer division
query I rowsort label-5179
SELECT ALL 76 * 24 DIV + cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 265e1713f4f6c704344b51d45175f06e
skipif mysql # not compatible
query I rowsort label-5179
SELECT ALL 76 * 24 / + cor0.col1 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 265e1713f4f6c704344b51d45175f06e
query I rowsort
SELECT - + cor0.col2 + - 39 FROM tab1 AS cor0
----
-135
-93
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5181
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5181
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + + cor0.col0 + ( + col2 ) AS col0 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT col0 * 54 AS col0 FROM tab2
----
378
4212
4266
onlyif mysql # use DIV operator for integer division
query I rowsort label-5184
SELECT DISTINCT col2 DIV + col0 + ( - col2 + col1 ) FROM tab1
----
-10
-47
-82
skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT col2 / + col0 + ( - col2 + col1 ) FROM tab1
----
-10
-47
-82
query I rowsort
SELECT col0 * ( col0 * - col2 ) AS col1 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT DISTINCT col0 + + col1 + - col2 FROM tab0
----
131
77
98
query I rowsort
SELECT + - 95 * - cor0.col1 + + col0 FROM tab1 cor0
----
1014
1315
2473
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 col1 FROM tab0
----
110
132
180
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5189
SELECT DISTINCT col0 + CAST( + col1 AS SIGNED ) FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT col0 + CAST ( + col1 AS INTEGER ) FROM tab1
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5190
SELECT 43 * col2 + + col1 DIV - tab1.col1 FROM tab1
----
2321
2450
4127
skipif mysql # not compatible
query I rowsort label-5190
SELECT 43 * col2 + + col1 / - tab1.col1 FROM tab1
----
2321
2450
4127
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5191
SELECT CAST( - col2 AS SIGNED ) * + tab0.col0 FROM tab0
----
-35
-7298
-792
skipif mysql # not compatible
query I rowsort label-5191
SELECT CAST ( - col2 AS INTEGER ) * + tab0.col0 FROM tab0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5192
SELECT + CAST( NULL AS SIGNED ) - + ( tab2.col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5192
SELECT + CAST ( NULL AS INTEGER ) - + ( tab2.col0 ) AS col2 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + cor0.col1 * + col2 + + ( - cor0.col2 ) * - col1 col0 FROM tab1 AS cor0
----
-2808
-35910
-98592
query I rowsort
SELECT + 86 AS col1 FROM tab0 cor0
----
86
86
86
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 87 col0 FROM tab0 AS cor0
----
87
query I rowsort
SELECT + ( - 24 ) AS col1 FROM tab0
----
-24
-24
-24
query I rowsort
SELECT ALL - - 69 + col1 AS col1 FROM tab2 AS cor0
----
100
128
86
query I rowsort
SELECT DISTINCT - 47 * + col1 FROM tab0
----
-4042
-4277
-4559
query I rowsort
SELECT + - 73 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc
query I rowsort
SELECT ALL + tab0.col2 + 59 FROM tab0, tab2 AS cor0
----
9 values hashing to f91058157aa21c0463aad70e20faa3ad
query I rowsort
SELECT + + 57 + col1 AS col1 FROM tab1 AS cor0
----
67
70
83
query I rowsort
SELECT DISTINCT + 10 * - cor0.col0 AS col2 FROM tab1 cor0
----
-30
-640
-800
query I rowsort
SELECT ALL - - col2 + col1 + 95 FROM tab1 AS cor0
----
162
175
204
query I rowsort
SELECT ALL + + 32 + + col1 AS col0 FROM tab1 AS cor0
----
42
45
58
query I rowsort
SELECT ALL + col1 * + col1 + - col2 AS col2 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT - col0 + col2 + cor0.col0 AS col1 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL - + 34 AS col2 FROM tab1 AS cor0
----
-34
-34
-34
query I rowsort
SELECT ALL ( col2 ) * + col2 * + col2 FROM tab0 cor0
----
1
35937
551368
query I rowsort
SELECT - 76 * + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-1068
-1979
-824
query I rowsort
SELECT DISTINCT - 94 AS col0 FROM tab1
----
-94
onlyif mysql # use DIV operator for integer division
query I rowsort label-5211
SELECT DISTINCT - 14 DIV tab0.col2 AS col0 FROM tab0, tab1, tab0 cor0
----
-14
0
skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT - 14 / tab0.col2 AS col0 FROM tab0, tab1, tab0 cor0
----
-14
0
query I rowsort
SELECT ALL + cor0.col0 + col2 * col2 AS col0 FROM tab1 AS cor0
----
2919
3313
9296
query I rowsort
SELECT + 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # use DIV operator for integer division
query I rowsort label-5214
SELECT ALL + cor0.col0 DIV 35 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-5214
SELECT ALL + cor0.col0 / 35 FROM tab0 AS cor0
----
0
1
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5215
SELECT + + col0 * + CAST( 64 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
192
4096
5120
skipif mysql # not compatible
query I rowsort label-5215
SELECT + + col0 * + CAST ( 64 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
192
4096
5120
query I rowsort
SELECT - col0 + 5 AS col0 FROM tab0 cor0
----
-19
-30
-84
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 ALL + + col1 * 49 FROM tab2 AS cor0
----
1519
2891
833
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5219
SELECT DISTINCT + - CAST( + 35 AS SIGNED ) AS col1 FROM tab1 cor0
----
-35
skipif mysql # not compatible
query I rowsort label-5219
SELECT DISTINCT + - CAST ( + 35 AS INTEGER ) AS col1 FROM tab1 cor0
----
-35
query I rowsort
SELECT ALL - - col2 * 23 + col1 AS col1 FROM tab0 AS cor0
----
120
1977
845
query I rowsort
SELECT - - col1 * cor0.col1 + col2 * col0 FROM tab2 AS cor0
----
1150
3291
5509
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - cor0.col1 * + col1 * - col2 col2 FROM tab1 AS cor0
----
16304
36507
5764
query I rowsort
SELECT ALL col0 + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1365
-598
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5224
SELECT - + CAST( NULL AS SIGNED ) * - cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5224
SELECT - + CAST ( NULL AS INTEGER ) * - cor0.col0 - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + 41 * - col2 FROM tab0 AS cor0
----
1353
3362
41
query I rowsort
SELECT - col2 + ( - col1 ) AS col2 FROM tab2 cor0
----
-55
-58
-85
query I rowsort
SELECT ALL + - ( cor0.col1 ) AS col2 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT ALL col0 + - col2 * - col0 AS col1 FROM tab2 AS cor0
----
196
2106
3081
query I rowsort
SELECT - ( - 46 ) + + col0 AS col0 FROM tab0 AS cor0
----
135
70
81
query I rowsort
SELECT ALL 56 AS col0 FROM tab1, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to b5ba4b44e3deadce1edb30e76df61200
query I rowsort
SELECT ALL + tab0.col0 * - col2 + col2 FROM tab0
----
-34
-7216
-759
onlyif mysql # use DIV operator for integer division
query I rowsort label-5232
SELECT ALL col0 DIV col1 - col1 col2 FROM tab2
----
-13
-31
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5232
SELECT ALL col0 / col1 - col1 col2 FROM tab2
----
-13
-31
-58
query I rowsort
SELECT col2 * tab0.col1 + + col2 * col1 + col2 FROM tab0
----
15006
195
5709
onlyif mysql # use DIV operator for integer division
query I rowsort label-5234
SELECT col2 DIV - tab2.col1 AS col0 FROM tab2
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-5234
SELECT col2 / - tab2.col1 AS col0 FROM tab2
----
-2
0
0
query I rowsort
SELECT + col1 + + cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + col1 * col0 + + col0 AS col2 FROM tab1
----
1120
704
81
query I rowsort
SELECT ALL - col2 * + col0 - - tab2.col0 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT + col0 * col0 + cor0.col1 FROM tab1 AS cor0
----
35
4106
6413
query I rowsort
SELECT ALL + + col1 + + col2 + cor0.col2 * col2 FROM tab2 AS cor0
----
1499
761
787
query I rowsort
SELECT ALL col1 + col0 + col2 FROM tab2
----
134
163
65
query I rowsort
SELECT DISTINCT col0 + tab0.col2 * + tab0.col0 FROM tab0
----
70
7387
816
query I rowsort
SELECT - col0 * - col2 - + col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT ALL - col2 * + col1 + col0 * - cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-1027
-1951
-6110
query I rowsort
SELECT DISTINCT - - col0 - col1 AS col0 FROM tab2 cor0
----
-24
19
62
query I rowsort
SELECT ALL - col0 * - col1 + + cor0.col1 * col1 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT ALL + - col1 * col1 * col0 - col1 * col1 AS col2 FROM tab1 cor0
----
-13689
-2704
-6500
query I rowsort
SELECT ALL + + col1 * - col0 + col1 AS col1 FROM tab0 AS cor0
----
-1978
-3298
-8008
query I rowsort
SELECT ALL col2 + + cor0.col0 FROM tab2 AS cor0
----
104
117
34
query I rowsort
SELECT DISTINCT + + col2 + cor0.col2 * + col1 - cor0.col2 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-5250
SELECT ALL cor0.col1 DIV col0 + + cor0.col0 * + col1 * - col2 FROM tab0 AS cor0
----
-3393
-664117
-68109
skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL cor0.col1 / col0 + + cor0.col0 * + col1 * - col2 FROM tab0 AS cor0
----
-3393
-664117
-68109
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 + col1 * col0 col1 FROM tab0 AS cor0
----
2079
3410
8114
query I rowsort
SELECT ALL col2 * col1 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT + 6 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-42
-468
-474
query I rowsort
SELECT ALL col1 * + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + - col2 * col0 + col1 * - col0 FROM tab1 AS cor0
----
-240
-4288
-8720
query I rowsort
SELECT + - cor0.col1 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT col2 + - col0 * col2 + col2 * - col1 AS col0 FROM tab0 AS cor0
----
-131
-14678
-3597
onlyif mysql # use DIV operator for integer division
query I rowsort label-5258
SELECT DISTINCT 41 DIV tab1.col0 AS col1 FROM tab1
----
0
13
skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT 41 / tab1.col0 AS col1 FROM tab1
----
0
13
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col0 FROM tab2 WHERE NOT NULL = NULL
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT - col0 BETWEEN NULL AND NULL
----
query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL >= ( + col1 - col0 )
----
query I rowsort
SELECT col0 / col2 AS col1 FROM tab2 WHERE NOT ( NULL ) IN ( - tab2.col2 )
----
query I rowsort
SELECT - col2 + - col2 * col2 + col1 * + tab0.col1 AS col1 FROM tab0
----
1475
6274
9407
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - col0 + tab1.col2 * col1 + - tab1.col1 col1 FROM tab1 WHERE NULL NOT IN ( tab1.col1 )
----
query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE ( - col0 / col0 ) IN ( + col1 * + col0 + + col2 )
----
query I rowsort
SELECT col0 + col0 * col0 * + col1 AS col0 FROM tab0
----
118860
49560
720900
query I rowsort
SELECT col1 FROM tab2 WHERE NOT NULL < - col1 * col1
----
query I rowsort
SELECT col2 + + col2 * - col2 AS col1 FROM tab2
----
-1406
-650
-702
query I rowsort
SELECT - - 56 AS col2 FROM tab2 AS cor0
----
56
56
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - cor0.col2 - col0 col2 FROM tab2 AS cor0
----
-104
-117
-34
query I rowsort
SELECT DISTINCT col1 * - col1 * col1 AS col0 FROM tab0 WHERE NULL IN ( tab0.col0 * - tab0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-5272
SELECT col1 + + tab1.col2 * tab1.col1 DIV - col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5272
SELECT col1 + + tab1.col2 * tab1.col1 / - col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col1 * - col0 - col2 AS col2 FROM tab1
----
-1136
-132
-697
query I rowsort
SELECT col0 + col0 * - col2 * col2 FROM tab1
----
-207872
-737200
-8745
query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT tab2.col0 * + col2 * - col2 AS col0 FROM tab2 WHERE NOT ( col1 * - col1 * - col1 ) BETWEEN col0 * + col1 AND NULL
----
query I rowsort
SELECT col1 + - col0 + - col1 AS col1 FROM tab1
----
-3
-64
-80
query I rowsort
SELECT ALL - col0 * + col1 * col1 AS col0 FROM tab1 AS cor0
----
-13520
-2028
-6400
query I rowsort
SELECT + cor0.col1 + col2 + - col2 * cor0.col1 AS col0 FROM tab2 cor0
----
-1449
-591
-779
query I rowsort
SELECT ALL - col2 * - col1 + col1 FROM tab2
----
1593
663
868
query I rowsort
SELECT ALL + col0 + + tab1.col0 * col0 * + col0 FROM tab1
----
262208
30
512080
query I rowsort
SELECT col1 + + col1 * col2 AS col1 FROM tab0
----
194
2924
7553
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + col2 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT col2 + + col1 + col0 * col2 AS col0 FROM tab2
----
2113
247
3057
query I rowsort
SELECT - col0 + col2 FROM tab2 WHERE NOT NULL = NULL
----
query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col2 IN ( col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5287
SELECT DISTINCT - col0 DIV - col1 + col1 AS col1 FROM tab1 AS cor0
----
16
19
26
skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - col0 / - col1 + col1 AS col1 FROM tab1 AS cor0
----
16
19
26
query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE col2 * col2 NOT BETWEEN + cor0.col2 AND NULL
----
query I rowsort
SELECT + - ( + 6 ) * col0 FROM tab0 AS cor0
----
-144
-210
-534
query I rowsort
SELECT 27 AS col2 FROM tab2, tab0 AS cor0 CROSS JOIN tab0
----
27 values hashing to 1a3cef5c33b8f87ffeded378fd207753
query I rowsort
SELECT DISTINCT + col1 + - 26 * - col2 FROM tab1 AS cor0
----
1430
1492
2509
query I rowsort
SELECT - - col2 * - cor0.col1 * col1 FROM tab0 AS cor0
----
-244068
-679042
-9409
query I rowsort
SELECT ALL col1 * + col1 + cor0.col0 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT - col0 * + col2 - col0 FROM tab0 cor0
----
-70
-7387
-816
query I rowsort
SELECT + - 43 * col1 + col2 * + col1 FROM tab1 cor0
----
140
286
689
query I rowsort
SELECT col1 + 95 * cor0.col0 FROM tab0 AS cor0
----
2366
3422
8546
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + + 7 col0 FROM tab1 AS cor0
----
-57
-73
4
query I rowsort
SELECT + - 85 * cor0.col0 FROM tab2 AS cor0
----
-595
-6630
-6715
query I rowsort
SELECT + 70 AS col1 FROM tab1 AS cor0
----
70
70
70
query I rowsort
SELECT + + 99 FROM tab2, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT ALL + col2 + ( + ( col2 ) ) AS col1 FROM tab0 cor0
----
164
2
66
query I rowsort
SELECT ALL + col1 - + col0 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT ALL + col1 + col1 * ( col2 + + col2 ) * 62 AS col2 FROM tab0
----
12125
351998
925379
onlyif mysql # use DIV operator for integer division
query I rowsort label-5305
SELECT DISTINCT - col0 DIV + 6 col0 FROM tab2 AS cor0
----
-1
-13
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5305
SELECT DISTINCT - col0 / + 6 col0 FROM tab2 AS cor0
----
-1
-13
query I rowsort
SELECT DISTINCT + - col0 * 90 FROM tab1 AS cor0
----
-270
-5760
-7200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5307
SELECT col1 + CAST( cor0.col0 AS SIGNED ) * + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
skipif mysql # not compatible
query I rowsort label-5307
SELECT col1 + CAST ( cor0.col0 AS INTEGER ) * + col1 AS col1 FROM tab1 AS cor0
----
104
1053
650
query I rowsort
SELECT DISTINCT col0 + col0 * - col1 * + tab2.col2 FROM tab2
----
-119574
-50955
-5852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5309
SELECT CAST( NULL AS SIGNED ) * - ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5309
SELECT CAST ( NULL AS INTEGER ) * - ( col0 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - 65 + + tab2.col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 098c854922ddcdf37296c3322bbadeb1
query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab0, tab2 AS cor0
----
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-5312
SELECT ALL col2 DIV 18 col2 FROM tab0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL col2 / 18 col2 FROM tab0
----
0
1
4
query I rowsort
SELECT col2 * 38 AS col0 FROM tab2
----
1026
1444
988
query I rowsort
SELECT - 30 FROM tab1, tab2 cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb
onlyif mysql # use DIV operator for integer division
query I rowsort label-5315
SELECT 22 + col1 + + col0 DIV col0 AS col1 FROM tab1 AS cor0
----
33
36
49
skipif mysql # not compatible
query I rowsort label-5315
SELECT 22 + col1 + + col0 / col0 AS col1 FROM tab1 AS cor0
----
33
36
49
query I rowsort
SELECT ( - 24 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc
query I rowsort
SELECT cor0.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab1, tab1 AS cor2
----
243 values hashing to 291cdf20f55dc7bbcb55f561dc0b74d8
query I rowsort
SELECT ALL col1 * + ( - col1 ) AS col2 FROM tab1
----
-100
-169
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5319
SELECT DISTINCT CAST( + 47 AS SIGNED ) AS col1 FROM tab0
----
47
skipif mysql # not compatible
query I rowsort label-5319
SELECT DISTINCT CAST ( + 47 AS INTEGER ) AS col1 FROM tab0
----
47
query I rowsort
SELECT 59 * + cor0.col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 9b5ba014968f631979fc3cf03b41203a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col0 FROM tab1
----
-65
query I rowsort
SELECT ALL + 34 * ( tab1.col0 * - col0 + - col1 ) FROM tab1
----
-1190
-139604
-218042
query I rowsort
SELECT ( 16 ) - + col0 FROM tab0
----
-19
-73
-8
query I rowsort
SELECT ( + col2 ) * col0 - - col1 AS col2 FROM tab2
----
2087
220
3019
query I rowsort
SELECT - + col1 + cor0.col2 * - col2 * + col0 + col2 * col1 FROM tab2 AS cor0
----
-113447
-4297
-51253
query I rowsort
SELECT 24 * 57 FROM tab1 AS cor0
----
1368
1368
1368
query I rowsort
SELECT + 16 + col2 FROM tab0 AS cor0
----
17
49
98
query I rowsort
SELECT 54 * col1 * + col2 FROM tab0
----
153252
402948
5238
query I rowsort
SELECT DISTINCT - 3 + tab0.col0 * - col2 * - tab0.col0 FROM tab0
----
1222
19005
649519
query I rowsort
SELECT col2 * col1 + 55 FROM tab2
----
1589
701
892
onlyif mysql # use DIV operator for integer division
query I rowsort label-5331
SELECT + + col2 * col2 + col1 + + col2 DIV col2 AS col0 FROM tab1 AS cor0
----
2943
3260
9230
skipif mysql # not compatible
query I rowsort label-5331
SELECT + + col2 * col2 + col1 + + col2 / col2 AS col0 FROM tab1 AS cor0
----
2943
3260
9230
query I rowsort
SELECT DISTINCT col1 + col0 * 89 + - col0 AS col0 FROM tab2
----
647
6923
6969
query I rowsort
SELECT + col0 * + col1 - col1 AS col0 FROM tab1 AS cor0
----
1027
52
630
onlyif mysql # use DIV operator for integer division
query I rowsort label-5334
SELECT ALL col2 * tab2.col2 + + 50 DIV - tab2.col1 FROM tab2
----
1442
676
728
skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL col2 * tab2.col2 + + 50 / - tab2.col1 FROM tab2
----
1442
676
728
query I rowsort
SELECT - col0 + - col0 * - col1 * - col2 AS col0 FROM tab1 AS cor0
----
-36544
-4215
-99920
query I rowsort
SELECT ALL col0 * ( col0 ) AS col1 FROM tab1
----
4096
6400
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-5337
SELECT ALL - + col2 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL - + col2 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5338
SELECT + col2 + CAST( NULL AS SIGNED ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5338
SELECT + col2 + CAST ( NULL AS INTEGER ) * cor0.col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - cor0.col2 * + 21 FROM tab0 AS cor0
----
-1722
-21
-693
query I rowsort
SELECT col1 * + col0 + + col0 * col0 AS col1 FROM tab2 AS cor0
----
10686
266
7584
onlyif mysql # use DIV operator for integer division
query I rowsort label-5341
SELECT + col2 - + CAST( - col2 + - col1 AS SIGNED ) DIV col1 AS col0 FROM tab2 AS cor0
----
27
28
41
skipif mysql # not compatible
query I rowsort label-5341
SELECT + col2 - + CAST ( - col2 + - col1 AS INTEGER ) / col1 AS col0 FROM tab2 AS cor0
----
27
28
41
query I rowsort
SELECT + + col1 - col0 * + ( + col2 ) FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT ALL - col1 * - col1 + - col1 * col2 * + cor0.col2 + + 56 * - col0 FROM tab1 AS cor0
----
-124119
-35974
-75308
query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab2, tab2 AS cor0, tab0 cor1
----
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 95 col0 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
query I rowsort
SELECT ALL - tab2.col1 * - cor0.col2 AS col0 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to ae9e2bb55fd656eb6c7fb22bc2bb0f90
query I rowsort
SELECT col0 * - col0 + 78 - - col0 AS col0 FROM tab1
----
-3954
-6242
72
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * cor0.col0 FROM tab2 cor0
----
196
2106
3081
query I rowsort
SELECT ALL - col1 * - col1 + - col2 FROM tab2 AS cor0
----
251
3455
934
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col0 * col1 - + col0 * ( - col0 ) * + col0 col1 FROM tab2 AS cor0
----
469924
491658
99
query I rowsort
SELECT + - col0 * + ( + col1 ) FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT 3 * cor0.col1 * col2 AS col1 FROM tab2 AS cor0
----
1938
2511
4602
query I rowsort
SELECT - + ( col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - + 6 * col1 AS col1 FROM tab0 AS cor0
----
-516
-546
-582
query I rowsort
SELECT 9 + + col0 * + col2 FROM tab2 AS cor0
----
198
2037
3011
query I rowsort
SELECT ALL + 34 + tab2.col1 FROM tab2
----
51
65
93
query I rowsort
SELECT 33 + col0 * + col2 * col0 FROM tab2 AS cor0
----
1356
158217
237191
query I rowsort
SELECT - - 92 FROM tab1 cor0
----
92
92
92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 15 col0 FROM tab0 cor0
----
15
15
15
query I rowsort
SELECT + + cor0.col1 + col0 AS col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT ALL ( + col2 ) * + col0 AS col2 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT + ( col1 ) * 30 * col2 + col2 * col0 * - 39 + col1 AS col1 FROM tab2 AS cor0
----
-33013
-97681
17770
query I rowsort
SELECT ALL + col1 * col2 + ( + col2 ) * - cor0.col2 FROM tab2 AS cor0
----
-798
108
858
query I rowsort
SELECT - 87 * + col1 FROM tab0 AS cor0
----
-7482
-7917
-8439
query I rowsort
SELECT DISTINCT + col0 * - col2 * col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT cor0.col0 * col2 + col0 + - col2 AS col2 FROM tab0 AS cor0
----
69
7305
783
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5367
SELECT + + 79 * - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5367
SELECT + + 79 * - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - col2 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT ALL + - col2 * col2 * col0 AS col0 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT ALL + col0 + col2 + 26 * col2 AS col0 FROM tab0
----
2303
62
915
query I rowsort
SELECT ALL 65 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805
query I rowsort
SELECT col2 * col1 + col2 * + 66 AS col2 FROM tab0 cor0
----
12874
163
5016
query I rowsort
SELECT DISTINCT col1 * - ( col1 ) FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2 AS cor2
----
98
query I rowsort
SELECT - + ( ( + col0 ) ) + - 22 FROM tab2 cor0
----
-100
-101
-29
query I rowsort
SELECT col2 * + col2 + col2 + 59 FROM tab0 AS cor0
----
1181
61
6865
query I rowsort
SELECT - 94 * col1 - - col0 FROM tab1 AS cor0
----
-1142
-2441
-876
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 - - col0 col1 FROM tab0
----
132
2862
7551
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5380
SELECT ALL + CAST( NULL AS SIGNED ) * - col0 + col2 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL + CAST ( NULL AS INTEGER ) * - col0 + col2 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5381
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - col0 + col0 * col0 * col2 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - col0 + col0 * col0 * col2 AS col2 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT 65 + tab0.col1 + + col2 FROM tab0
----
163
184
238
query I rowsort
SELECT + 49 * + col2 FROM tab2
----
1274
1323
1862
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 48 col0 FROM tab1 AS cor0
----
-48
query I rowsort
SELECT ALL col2 + - col2 * 45 AS col0 FROM tab0 AS cor0
----
-1452
-3608
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5386
SELECT ALL + CAST( col0 + col0 * tab0.col1 AS SIGNED ) FROM tab0
----
2088
3430
8188
skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL + CAST ( col0 + col0 * tab0.col1 AS INTEGER ) FROM tab0
----
2088
3430
8188
query I rowsort
SELECT - cor0.col1 * + cor0.col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
query I rowsort
SELECT cor1.col2 * tab0.col2 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 1a327f2a52a0a35b577f58109ee147a4
query I rowsort
SELECT - ( - 4 ) FROM tab2 AS cor0
----
4
4
4
query I rowsort
SELECT cor0.col1 FROM tab1, tab0 AS cor0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + col1 + - 87 + - col2 AS col0 FROM tab2
----
-108
-54
-83
query I rowsort
SELECT DISTINCT ( 22 ) * col2 + 73 + + col2 * col2 FROM tab1
----
11401
4177
4576
query I rowsort
SELECT col2 + col0 * + col2 FROM tab0
----
36
7380
825
query I rowsort
SELECT DISTINCT col0 * ( col2 ) * - col1 AS col2 FROM tab0 cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT col0 + - ( col0 ) * - col0 FROM tab1 AS cor0
----
12
4160
6480
query I rowsort
SELECT DISTINCT + col0 + 7 AS col1 FROM tab2 AS cor0
----
14
85
86
query I rowsort
SELECT col1 * + 84 + col1 FROM tab1 AS cor0
----
1105
2210
850
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5398
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + cor0.col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5398
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + cor0.col0 + + col2 * col2 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT + + 63 * + col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
1697
1732
2411
query I rowsort
SELECT ALL col0 * 6 * col1 FROM tab2
----
1302
27612
8058
query I rowsort
SELECT + - ( + ( col1 ) ) FROM tab1 AS cor0
----
-10
-13
-26
query I rowsort
SELECT 96 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT ALL - col2 + - col0 * col0 AS col2 FROM tab1 cor0
----
-4153
-63
-6496
query I rowsort
SELECT col0 + col2 + col2 FROM tab1
----
111
178
272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * col2 col2 FROM tab0 AS cor0
----
-2050
-25
-825
query I rowsort
SELECT DISTINCT - 84 FROM tab1, tab0 cor0, tab1 AS cor1
----
-84
onlyif mysql # use DIV operator for integer division
query I rowsort label-5407
SELECT col1 + col2 + col0 DIV - col1 FROM tab0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-5407
SELECT col1 + col2 + col0 / - col1 FROM tab0
----
119
173
98
query I rowsort
SELECT col0 * + col0 + 30 FROM tab1 cor0
----
39
4126
6430
query I rowsort
SELECT DISTINCT - - ( cor0.col0 ) FROM tab0 cor0
----
24
35
89
query I rowsort
SELECT DISTINCT 74 AS col1 FROM tab0 AS cor0
----
74
query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab0, tab0 AS cor0
----
-6
query I rowsort
SELECT + col0 * - 70 + - 92 * - col1 FROM tab1 AS cor0
----
-3560
-4404
2182
query I rowsort
SELECT DISTINCT col1 * + 58 + ( col1 ) FROM tab0 AS cor0
----
5074
5369
5723
query I rowsort
SELECT col2 * 68 + 33 AS col1 FROM tab0 AS cor0
----
101
2277
5609
query I rowsort
SELECT ALL + col1 + ( + 40 ) FROM tab1 AS cor0
----
50
53
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5416
SELECT ALL col2 DIV 17 AS col1 FROM tab1 AS cor0
----
3
3
5
skipif mysql # not compatible
query I rowsort label-5416
SELECT ALL col2 / 17 AS col1 FROM tab1 AS cor0
----
3
3
5
query I rowsort
SELECT - col0 * cor0.col1 + + 52 FROM tab0 cor0
----
-2012
-3343
-8047
query I rowsort
SELECT ALL + col2 * cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL + + col1 + 46 AS col1 FROM tab0 AS cor0
----
132
137
143
onlyif mysql # use DIV operator for integer division
query I rowsort label-5420
SELECT + col0 DIV col0 - col0 * - col0 AS col0 FROM tab0 cor0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-5420
SELECT + col0 / col0 - col0 * - col0 AS col0 FROM tab0 cor0
----
1226
577
7922
query I rowsort
SELECT ALL + col0 * - col1 + + 3 FROM tab1 AS cor0
----
-1037
-637
-75
query I rowsort
SELECT + 93 + col1 AS col1 FROM tab0
----
179
184
190
query I rowsort
SELECT DISTINCT col2 * col0 + + ( + col0 ) * col0 + tab1.col2 FROM tab1
----
14176
225
7801
query I rowsort
SELECT 16 * + col0 AS col0 FROM tab0
----
1424
384
560
query I rowsort
SELECT ALL + col2 - - col2 * - 71 * + col2 AS col0 FROM tab1
----
-206982
-230622
-654240
query I rowsort
SELECT ALL - 50 + col2 FROM tab0
----
-17
-49
32
query I rowsort
SELECT - col0 + ( + col2 + + col0 ) FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT + + col2 * col0 + + col0 AS col0 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT col0 * col1 + col2 * + ( + col2 ) FROM tab0 AS cor0
----
14823
3153
3396
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col0 + - col0 col0 FROM tab0
----
24
35
89
query I rowsort
SELECT - 66 * + col2 AS col1 FROM tab0 AS cor0
----
-2178
-5412
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-5432
SELECT col0 * ( col1 * + tab2.col0 ) + - ( col2 ) DIV + col1 FROM tab2
----
106095
1519
358956
skipif mysql # not compatible
query I rowsort label-5432
SELECT col0 * ( col1 * + tab2.col0 ) + - ( col2 ) / + col1 FROM tab2
----
106095
1519
358956
query I rowsort
SELECT ALL - col2 * 76 AS col2 FROM tab2
----
-1976
-2052
-2888
query I rowsort
SELECT - ( - ( - col0 ) ) * - col2 + col1 AS col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + col1 + col0 * cor0.col2 FROM tab2 AS cor0
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * - col0 col1 FROM tab2 AS cor0
----
-196
-2184
-2212
query I rowsort
SELECT DISTINCT + - 48 * - cor0.col2 + 1 AS col2 FROM tab2 AS cor0
----
1249
1297
1825
query I rowsort
SELECT ALL cor0.col0 + col1 * ( ( + col0 ) ) + col1 * col0 FROM tab0 AS cor0
----
16287
4152
6825
query I rowsort
SELECT ALL col0 + + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
onlyif mysql # use DIV operator for integer division
query I rowsort label-5440
SELECT ALL + col1 DIV + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL + col1 / + col2 AS col0 FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5441
SELECT + cor0.col2 + + 39 DIV col1 + 62 * + 86 FROM tab1 AS cor0
----
5387
5392
5431
skipif mysql # not compatible
query I rowsort label-5441
SELECT + cor0.col2 + + 39 / col1 + 62 * + 86 FROM tab1 AS cor0
----
5387
5392
5431
onlyif mysql # use DIV operator for integer division
query I rowsort label-5442
SELECT col2 DIV col2 + col0 * col1 + - col0 FROM tab0 AS cor0
----
2041
3361
8011
skipif mysql # not compatible
query I rowsort label-5442
SELECT col2 / col2 + col0 * col1 + - col0 FROM tab0 AS cor0
----
2041
3361
8011
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5443
SELECT CAST( 47 + + col1 * + col1 AS SIGNED ) FROM tab1
----
147
216
723
skipif mysql # not compatible
query I rowsort label-5443
SELECT CAST ( 47 + + col1 * + col1 AS INTEGER ) FROM tab1
----
147
216
723
query I rowsort
SELECT DISTINCT - ( 79 * col1 + 76 ) FROM tab2
----
-1419
-2525
-4737
query I rowsort
SELECT col1 + + col0 * + tab2.col2 FROM tab2
----
2087
220
3019
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + cor0.col1 + - col2 col1 FROM tab0 AS cor0
----
2031
3394
8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + col1 col0 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 - + 17 * + col1 AS col0 FROM tab2
----
-1029
-327
-554
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5449
SELECT 88 * - col0 * col1 + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5449
SELECT 88 * - col0 * col1 + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 9 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT DISTINCT - 99 * col0 AS col2 FROM tab2
----
-693
-7722
-7821
query I rowsort
SELECT ALL - col1 + - cor0.col0 * col0 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT + col0 * col2 * cor0.col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT 48 * col0 * 23 AS col1 FROM tab2
----
7728
86112
87216
query I rowsort
SELECT DISTINCT + cor0.col0 * + 28 FROM tab1, tab0 AS cor0
----
2492
672
980
query I rowsort
SELECT + col1 + 30 AS col1 FROM tab0 AS cor0
----
116
121
127
query I rowsort
SELECT ALL - col2 + 9 + - col1 AS col1 FROM tab0 AS cor0
----
-110
-164
-89
query I rowsort
SELECT ALL + + col1 * cor0.col0 + col0 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT DISTINCT cor0.col1 + 85 * - col0 AS col1 FROM tab0 cor0
----
-1954
-2878
-7474
query I rowsort
SELECT + cor0.col2 * col1 * 35 + col1 * 77 + 14 AS col0 FROM tab2 AS cor0
----
23933
31696
58247
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab1, tab2 AS cor0
----
7
78
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5462
SELECT col0 + col1 - + CAST( + col1 + - col1 AS SIGNED ) FROM tab0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-5462
SELECT col0 + col1 - + CAST ( + col1 + - col1 AS INTEGER ) FROM tab0
----
110
132
180
query I rowsort
SELECT ALL 58 * col2 AS col0 FROM tab2
----
1508
1566
2204
query I rowsort
SELECT 46 * col0 AS col0 FROM tab1
----
138
2944
3680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5465
SELECT col0 * CAST( NULL AS SIGNED ) + col0 * - col2 + 58 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5465
SELECT col0 * CAST ( NULL AS INTEGER ) + col0 * - col2 + 58 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT cor0.col1 + col0 * 66 * col2 FROM tab1 AS cor0
----
10718
240778
506893
query I rowsort
SELECT ALL + tab0.col0 + 32 FROM tab0
----
121
56
67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 49 + - col1 * col0 col1 FROM tab1
----
-2724
-3433
-5744
query I rowsort
SELECT + tab2.col1 - - 58 * ( + col1 ) FROM tab2
----
1003
1829
3481
query I rowsort
SELECT col0 + + 5 - + col1 FROM tab1
----
-18
59
72
query I rowsort
SELECT DISTINCT - col0 + + 16 FROM tab0
----
-19
-73
-8
query I rowsort
SELECT DISTINCT - col0 + 77 + 2 FROM tab1 AS cor0
----
-1
15
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5473
SELECT col1 DIV - ( + col1 ) FROM tab1
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-5473
SELECT col1 / - ( + col1 ) FROM tab1
----
-1
-1
-1
query I rowsort
SELECT + col0 * + tab2.col1 * + 60 AS col0 FROM tab2
----
13020
276120
80580
query I rowsort
SELECT - 35 AS col2 FROM tab0, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 6d967b3bac2e01a0318865f682f9a97b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5476
SELECT DISTINCT + CAST( col1 AS SIGNED ) + col0 * - 30 FROM tab0 AS cor0
----
-2579
-634
-953
skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT + CAST ( col1 AS INTEGER ) + col0 * - 30 FROM tab0 AS cor0
----
-2579
-634
-953
query I rowsort
SELECT ALL 17 + col0 AS col1 FROM tab2 AS cor0
----
24
95
96
query I rowsort
SELECT - col2 + + 75 FROM tab0 AS cor0
----
-7
42
74
query I rowsort
SELECT DISTINCT - 71 + col2 * + col1 AS col0 FROM tab2 cor0
----
1463
575
766
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5480
SELECT CAST( NULL AS SIGNED ) + col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5480
SELECT CAST ( NULL AS INTEGER ) + col0 * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - ( - col1 ) * - cor0.col0 + 29 AS col1 FROM tab1 AS cor0
----
-1011
-49
-611
query I rowsort
SELECT ALL + col0 + - 4 - col1 FROM tab2 AS cor0
----
-28
15
58
query I rowsort
SELECT col0 * 86 + - col0 AS col1 FROM tab0 AS cor0
----
2040
2975
7565
query I rowsort
SELECT DISTINCT - col0 + 12 FROM tab2 AS cor0
----
-66
-67
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5485
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5485
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT ALL - col1 * - 94 * + col0 + - col2 AS col2 FROM tab0 cor0
----
193983
319129
761224
query I rowsort
SELECT ALL - ( + col1 ) + + col0 * - 33 FROM tab2 AS cor0
----
-262
-2624
-2633
query I rowsort
SELECT DISTINCT + ( + col2 ) + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL - + 58 AS col1 FROM tab0 AS cor0
----
-58
-58
-58
query I rowsort
SELECT DISTINCT + - col1 * col0 + - col2 * ( col1 ) + - col2 AS col1 FROM tab0 AS cor0
----
-15643
-3493
-4935
query I rowsort
SELECT ALL - ( + col1 * - col1 + + col0 ) AS col0 FROM tab2
----
210
3403
954
query I rowsort
SELECT ALL + - col0 + + col1 * + 39 FROM tab1 AS cor0
----
1011
326
427
query I rowsort
SELECT - 70 * - col2 FROM tab1 cor0
----
3780
3990
6720
query I rowsort
SELECT DISTINCT - 67 FROM tab1 cor0
----
-67
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - cor0.col2 ) col1 FROM tab1 cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 col2 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT DISTINCT + 85 AS col0 FROM tab2 cor0
----
85
query I rowsort
SELECT DISTINCT - - col1 * col2 * col2 - - col1 AS col1 FROM tab1 AS cor0
----
119821
32500
75842
query I rowsort
SELECT cor0.col0 + - col0 AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * + col0 + - col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5501
SELECT DISTINCT + col0 * - CAST( ( cor0.col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + col0 * - CAST ( ( cor0.col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT + - col0 * + ( + col2 ) * - col1 + + col1 * - col1 FROM tab0 AS cor0
----
-6014
60716
655837
query I rowsort
SELECT - 9 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5504
SELECT ALL + - col1 * - CAST( 75 AS SIGNED ) + col0 FROM tab2 AS cor0
----
1354
2332
4503
skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + - col1 * - CAST ( 75 AS INTEGER ) + col0 FROM tab2 AS cor0
----
1354
2332
4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-5505
SELECT ALL cor0.col2 + + 52 DIV col1 + col2 FROM tab1 AS cor0
----
110
119
196
skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL cor0.col2 + + 52 / col1 + col2 FROM tab1 AS cor0
----
110
119
196
onlyif mysql # use DIV operator for integer division
query I rowsort label-5506
SELECT cor0.col1 DIV 23 + - 78 AS col0 FROM tab2 AS cor0
----
-76
-77
-78
skipif mysql # not compatible
query I rowsort label-5506
SELECT cor0.col1 / 23 + - 78 AS col0 FROM tab2 AS cor0
----
-76
-77
-78
query I rowsort
SELECT - + cor0.col0 * 93 + col1 * + col0 FROM tab2 AS cor0
----
-2652
-434
-6004
query I rowsort
SELECT ALL - col1 * + 37 AS col2 FROM tab2 AS cor0
----
-1147
-2183
-629
onlyif mysql # use DIV operator for integer division
query I rowsort label-5509
SELECT DISTINCT - col0 DIV 73 + ( + col0 ) + + col1 * - 73 AS col1 FROM tab2 AS cor0
----
-1163
-2256
-4230
skipif mysql # not compatible
query I rowsort label-5509
SELECT DISTINCT - col0 / 73 + ( + col0 ) + + col1 * - 73 AS col1 FROM tab2 AS cor0
----
-1163
-2256
-4230
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5510
SELECT + CAST( 8 AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
skipif mysql # not compatible
query I rowsort label-5510
SELECT + CAST ( 8 AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5511
SELECT - tab1.col2 + + CAST( + 75 AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 112e0a469edb9534bc1e02fdf070e60f
skipif mysql # not compatible
query I rowsort label-5511
SELECT - tab1.col2 + + CAST ( + 75 AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 112e0a469edb9534bc1e02fdf070e60f
query I rowsort
SELECT 19 * col1 - + col0 AS col1 FROM tab0 AS cor0
----
1610
1640
1808
query I rowsort
SELECT - col2 * col2 - - col2 * - ( cor0.col2 ) FROM tab0 AS cor0
----
-13448
-2
-2178
query I rowsort
SELECT DISTINCT 43 * col2 AS col1 FROM tab1 AS cor0
----
2322
2451
4128
query I rowsort
SELECT - + ( col2 ) + + 58 AS col1 FROM tab1 AS cor0
----
-38
1
4
query I rowsort
SELECT + 4 * col2 AS col2 FROM tab1 cor0
----
216
228
384
query I rowsort
SELECT 19 FROM tab1, tab1 cor0
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11
onlyif mysql # use DIV operator for integer division
query I rowsort label-5518
SELECT DISTINCT - 95 DIV 16 + - col2 * + col0 * - ( col1 ) FROM tab2
----
119647
51029
5854
skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - 95 / 16 + - col2 * + col0 * - ( col1 ) FROM tab2
----
119647
51029
5854
query I rowsort
SELECT + ( ( col2 ) ) FROM tab1
----
54
57
96
query I rowsort
SELECT ALL + col1 * 18 * col2 + + col1 * + 93 + + tab0.col2 AS col2 FROM tab0
----
10768
142861
59115
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 col0 FROM tab1
----
93
93
93
query I rowsort
SELECT 87 + tab2.col2 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to da94ea76a8ee860f91cae444884a1771
query I rowsort
SELECT - col2 * - col0 * - 6 + - col1 * - col2 FROM tab1 cor0
----
-21318
-44832
432
onlyif mysql # use DIV operator for integer division
query I rowsort label-5524
SELECT ( + col1 ) DIV col0 + + ( - col1 ) + col0 AS col1 FROM tab1
----
-15
54
67
skipif mysql # not compatible
query I rowsort label-5524
SELECT ( + col1 ) / col0 + + ( - col1 ) + col0 AS col1 FROM tab1
----
-15
54
67
query I rowsort
SELECT ( col0 + col0 ) * tab0.col0 AS col2 FROM tab0
----
1152
15842
2450
query I rowsort
SELECT ALL - 31 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 col2 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to c64cb7a81da51f4be0b6906a223e8817
query I rowsort
SELECT + col1 + + col1 + - col2 AS col1 FROM tab2 AS cor0
----
-4
35
92
query I rowsort
SELECT - 58 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-122
-138
-61
query I rowsort
SELECT ALL col1 + - cor0.col2 AS col0 FROM tab0 AS cor0
----
53
9
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5531
SELECT ALL col1 * col1 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL col1 * col1 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - ( col1 ) + 62 * - 48 AS col2 FROM tab0 AS cor0
----
-3062
-3067
-3073
query I rowsort
SELECT - ( + ( - tab2.col1 ) ) FROM tab2, tab1 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
query I rowsort
SELECT + col1 * 48 + - tab0.col2 AS col2 FROM tab0
----
4095
4286
4655
query I rowsort
SELECT 91 * - col2 FROM tab0 AS cor0
----
-3003
-7462
-91
query I rowsort
SELECT DISTINCT - + col0 * + col0 + col2 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-5537
SELECT DISTINCT - ( 62 ) * + col2 + col0 DIV tab1.col2 AS col2 FROM tab1
----
-3348
-3533
-5952
skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT - ( 62 ) * + col2 + col0 / tab1.col2 AS col2 FROM tab1
----
-3348
-3533
-5952
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5538
SELECT CAST( NULL AS DECIMAL ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5538
SELECT CAST ( NULL AS REAL ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT 73 + - 97 + col1 * + 59 * 32 FROM tab0
----
162344
171784
183112
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col0 ) * - col2 col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT + 74 * col2 AS col0 FROM tab0 cor0
----
2442
6068
74
query I rowsort
SELECT - - 45 AS col2 FROM tab2 AS cor0
----
45
45
45
query I rowsort
SELECT col2 * col1 * 80 - col2 AS col2 FROM tab0
----
227007
596878
7759
query I rowsort
SELECT ALL - col0 - - col2 AS col0 FROM tab0
----
-34
-7
9
query I rowsort
SELECT + + col2 * col0 + + 46 + + col2 * + col2 FROM tab2 cor0
----
2750
4492
964
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * ( - col1 ) + col2 col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5547
SELECT - col1 * CAST( NULL AS DECIMAL ) + - col1 / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5547
SELECT - col1 * CAST ( NULL AS REAL ) + - col1 / col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5548
SELECT DISTINCT + col1 * CAST( NULL AS DECIMAL ) * + col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-5548
SELECT DISTINCT + col1 * CAST ( NULL AS REAL ) * + col1 FROM tab0
----
NULL
query I rowsort
SELECT + col0 * - 91 * - col1 FROM tab0
----
187824
308945
737009
query I rowsort
SELECT 78 FROM tab1, tab1 AS cor0, tab1 cor1
----
27 values hashing to d8e5ef4db3419fc251e82c50ba04e048
onlyif mysql # use DIV operator for integer division
query I rowsort label-5551
SELECT ( - tab0.col0 ) DIV 58 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
skipif mysql # not compatible
query I rowsort label-5551
SELECT ( - tab0.col0 ) / 58 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( 17 AS REAL ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 43298e43365fccb5146ea32003753c92
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5553
SELECT + col0 * CAST( cor0.col1 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
skipif mysql # not compatible
query I rowsort label-5553
SELECT + col0 * CAST ( cor0.col1 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-5554
SELECT - col1 DIV 8 + ( col2 ) AS col2 FROM tab1 AS cor0
----
51
56
95
skipif mysql # not compatible
query I rowsort label-5554
SELECT - col1 / 8 + ( col2 ) AS col2 FROM tab1 AS cor0
----
51
56
95
query I rowsort
SELECT + col1 + + 50 AS col1 FROM tab1 AS cor0
----
60
63
76
query I rowsort
SELECT - - col1 * col2 * cor0.col1 AS col1 FROM tab0 cor0
----
244068
679042
9409
query I rowsort
SELECT + + 34 AS col2 FROM tab2 AS cor0
----
34
34
34
query I rowsort
SELECT DISTINCT 56 * col1 * + ( 77 ) + - col0 AS col0 FROM tab1
----
112109
43056
55976
query I rowsort
SELECT ALL + col2 * cor0.col2 + col0 * - ( - col2 ) AS col1 FROM tab1 AS cor0
----
16896
3078
6897
query I rowsort
SELECT + - 8 * cor0.col2 - - col0 FROM tab2 AS cor0
----
-130
-209
-225
query I rowsort
SELECT + 88 + col0 * + col0 FROM tab0 AS cor0
----
1313
664
8009
query I rowsort
SELECT - + col1 + + cor0.col1 * col2 AS col0 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT DISTINCT col1 - + 71 * 22 * cor0.col2 AS col1 FROM tab1 AS cor0
----
-149939
-84322
-89024
query I rowsort
SELECT ALL + + col2 * 41 AS col2 FROM tab1 AS cor0
----
2214
2337
3936
query I rowsort
SELECT DISTINCT - col0 * + col2 + col1 AS col1 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT - + col0 + + ( col2 * - col2 ) FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT ALL + cor0.col0 * - col0 + ( + cor0.col2 ) AS col1 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-5568
SELECT ALL - col1 DIV col1 + col2 FROM tab1 AS cor0
----
53
56
95
skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - col1 / col1 + col2 FROM tab1 AS cor0
----
53
56
95
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5569
SELECT ALL - - col1 + CAST( NULL AS DECIMAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5569
SELECT ALL - - col1 + CAST ( NULL AS REAL ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + 12 AS col0 FROM tab1 AS cor0
----
-1
-14
2
query I rowsort
SELECT ALL + cor0.col1 * + col1 + 29 * cor0.col0 AS col0 FROM tab2 AS cor0
----
1164
2580
5743
onlyif mysql # use DIV operator for integer division
query I rowsort label-5572
SELECT DISTINCT col1 DIV + col1 + col0 * + col0 AS col1 FROM tab2
----
50
6085
6242
skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT col1 / + col1 + col0 * + col0 AS col1 FROM tab2
----
50
6085
6242
query I rowsort
SELECT - 54 * col0 AS col1 FROM tab0 AS cor0
----
-1296
-1890
-4806
onlyif mysql # use DIV operator for integer division
query I rowsort label-5574
SELECT col1 DIV + 42 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5574
SELECT col1 / + 42 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT 45 * + col1 AS col1 FROM tab1 AS cor0
----
1170
450
585
query I rowsort
SELECT - 48 - + col2 * + col1 AS col2 FROM tab0 AS cor0
----
-145
-2886
-7510
query I rowsort
SELECT ( col0 ) + col1 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT + 96 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303
query I rowsort
SELECT cor0.col2 * + 94 FROM tab0 AS cor0
----
3102
7708
94
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - CAST ( + 15 AS REAL ) * col1 FROM tab1 AS cor0
----
-150
-195
-390
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 AS col1 FROM tab0 cor0
----
-2838
-7462
-97
query I rowsort
SELECT DISTINCT + 59 * col0 FROM tab1
----
177
3776
4720
query I rowsort
SELECT DISTINCT + - col0 * - col2 * - ( + cor0.col2 ) AS col2 FROM tab0 AS cor0
----
-26136
-35
-598436
query I rowsort
SELECT col1 * col1 + col2 * - col1 - cor0.col0 * col0 AS col1 FROM tab0 AS cor0
----
-7102
3982
8087
query I rowsort
SELECT DISTINCT - 6 - + tab2.col2 FROM tab2
----
-32
-33
-44
query I rowsort
SELECT col2 + + col1 * - col2 FROM tab0
----
-2805
-7380
-96
query I rowsort
SELECT ALL - - col2 * - col0 AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT - col2 * col2 * col1 FROM tab0 AS cor0
----
-611884
-93654
-97
query I rowsort
SELECT DISTINCT 11 + + col1 AS col0 FROM tab2 cor0
----
28
42
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-5590
SELECT + col0 DIV + col1 AS col2 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-5590
SELECT + col0 / + col1 AS col2 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT ALL + col2 + col2 * + cor0.col1 AS col1 FROM tab2 AS cor0
----
1560
684
864
query I rowsort
SELECT 34 + - col2 AS col0 FROM tab0 AS cor0
----
-48
1
33
query I rowsort
SELECT ALL - 62 * col0 FROM tab2 AS cor0
----
-434
-4836
-4898
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 * col2 col1 FROM tab0 AS cor0
----
-2079
-5166
-63
query I rowsort
SELECT DISTINCT - - cor0.col1 * + col1 FROM tab0 cor0
----
7396
8281
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-5596
SELECT + + cor0.col0 + col1 DIV cor0.col1 AS col0 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-5596
SELECT + + cor0.col0 + col1 / cor0.col1 AS col0 FROM tab2 AS cor0
----
79
8
80
query I rowsort
SELECT ALL - 94 FROM tab2, tab2 AS cor0
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e
query I rowsort
SELECT + cor0.col0 FROM tab0, tab2, tab2 cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5599
SELECT ALL + CAST( NULL AS SIGNED ) + + 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-5599
SELECT ALL + CAST ( NULL AS INTEGER ) + + 98 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-5600
SELECT - col0 * tab2.col2 DIV + ( col1 ) + col0 AS col2 FROM tab2
----
-97
1
44
skipif mysql # not compatible
query I rowsort label-5600
SELECT - col0 * tab2.col2 / + ( col1 ) + col0 AS col2 FROM tab2
----
-97
1
44
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor1.col2 col0 FROM tab0 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 ALL col0 + - col2 col1 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - 65 + col1 AS col1 FROM tab2 AS cor0
----
-34
-48
-6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5604
SELECT DISTINCT - cor0.col2 DIV - col1 AS col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-5604
SELECT DISTINCT - cor0.col2 / - col1 AS col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + col0 * + col2 + + col2 FROM tab1 AS cor0
----
216
3705
7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5606
SELECT ALL 50 * + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5606
SELECT ALL 50 * + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + cor0.col1 col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - - col1 * col0 + - col1 FROM tab1 AS cor0
----
1027
52
630
query I rowsort
SELECT ALL - col0 + + col0 * - col1 AS col2 FROM tab0 AS cor0
----
-2088
-3430
-8188
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 col1 FROM tab2 AS cor0
----
44
query I rowsort
SELECT col2 + - 55 * - col0 AS col1 FROM tab2
----
412
4316
4383
query I rowsort
SELECT DISTINCT 77 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
77
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5613
SELECT + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5613
SELECT + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5614
SELECT + 21 DIV col1 AS col1 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5614
SELECT + 21 / col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT ( + 39 ) * col2 + ( col0 ) * col1 AS col1 FROM tab1 AS cor0
----
2184
2863
4784
query I rowsort
SELECT ALL - ( + col2 ) + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT 15 * cor0.col0 + cor0.col0 FROM tab1 AS cor0
----
1024
1280
48
query I rowsort
SELECT DISTINCT - ( 3 ) AS col0 FROM tab2 AS cor0
----
-3
query I rowsort
SELECT DISTINCT + col1 * col2 + col2 + cor0.col2 FROM tab2 cor0
----
1586
722
891
query I rowsort
SELECT ALL + - col1 - col0 * + cor0.col1 AS col1 FROM tab0 AS cor0
----
-2150
-3492
-8190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5621
SELECT ALL - + col0 * - CAST( + 34 AS SIGNED ) + col0 + col0 FROM tab0 AS cor0
----
1260
3204
864
skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - + col0 * - CAST ( + 34 AS INTEGER ) + col0 + col0 FROM tab0 AS cor0
----
1260
3204
864
query I rowsort
SELECT - + col2 + ( - 53 ) * col1 FROM tab0 AS cor0
----
-4591
-4905
-5142
query I rowsort
SELECT DISTINCT + col0 - + 34 AS col1 FROM tab1 AS cor0
----
-31
30
46
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5624
SELECT ALL col0 * + CAST( - 74 AS SIGNED ) + + col0 FROM tab1 AS cor0
----
-219
-4672
-5840
skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL col0 * + CAST ( - 74 AS INTEGER ) + + col0 FROM tab1 AS cor0
----
-219
-4672
-5840
query I rowsort
SELECT - col0 * 88 AS col0 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT - cor0.col1 * - cor0.col2 * col0 AS col2 FROM tab1 AS cor0
----
36480
4212
99840
query I rowsort
SELECT - - ( 1 ) * col2 + - 71 AS col2 FROM tab1 AS cor0
----
-14
-17
25
query I rowsort
SELECT + - ( col1 ) * col0 - - ( - col1 ) FROM tab1 AS cor0
----
-104
-1053
-650
query I rowsort
SELECT ALL - col1 + - tab0.col1 * + tab0.col0 FROM tab0
----
-2150
-3492
-8190
query I rowsort
SELECT ALL 91 FROM tab1, tab1 AS cor0, tab0 cor1
----
27 values hashing to deebbcfb9c7803a34dca6bd860849afe
query I rowsort
SELECT + col1 + + col2 + - 0 AS col0 FROM tab2
----
55
58
85
query I rowsort
SELECT DISTINCT + + col1 + + col2 * - col2 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT col2 * + col2 * + cor0.col1 FROM tab0 AS cor0
----
611884
93654
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-5634
SELECT ALL - - col2 DIV col1 AS col0 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - - col2 / col1 AS col0 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT + 66 * col2 AS col2 FROM tab1 AS cor0
----
3564
3762
6336
query I rowsort
SELECT DISTINCT + col2 + - col1 * ( - cor0.col2 * - col2 ) FROM tab0 AS cor0
----
-611802
-93621
-96
query I rowsort
SELECT - - col2 + cor0.col0 AS col1 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col0 col2 FROM tab2, tab0 AS cor0, tab0 AS cor1, tab0, tab0 AS cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 + ( col1 ) * col0 FROM tab1 cor0
----
-3456
-5360
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + col2 * + col0 col1 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT + 4 AS col2 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 730dff78e83112374961ea711f98ebaa
query I rowsort
SELECT - col0 * + 44 AS col0 FROM tab0 AS cor0
----
-1056
-1540
-3916
query I rowsort
SELECT 19 AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 86c53e8567a17c8d91fc5aff119e0498
query I rowsort
SELECT - + col1 * - col1 + col1 AS col0 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT col1 * 75 AS col0 FROM tab2
----
1275
2325
4425
query I rowsort
SELECT 1 * + 68 AS col2 FROM tab2
----
68
68
68
query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab0
----
-35
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5648
SELECT + CAST( col1 AS SIGNED ) * - col0 + + 10 AS col1 FROM tab1 AS cor0
----
-1030
-630
-68
skipif mysql # not compatible
query I rowsort label-5648
SELECT + CAST ( col1 AS INTEGER ) * - col0 + + 10 AS col1 FROM tab1 AS cor0
----
-1030
-630
-68
onlyif mysql # use DIV operator for integer division
query I rowsort label-5649
SELECT - ( 49 ) + col1 * ( ( col1 ) * - col1 ) - 73 DIV + col1 FROM tab2 AS cor0
----
-205429
-29842
-4966
skipif mysql # not compatible
query I rowsort label-5649
SELECT - ( 49 ) + col1 * ( ( col1 ) * - col1 ) - 73 / + col1 FROM tab2 AS cor0
----
-205429
-29842
-4966
query I rowsort
SELECT ALL 5 * - col1 * + col0 AS col1 FROM tab1
----
-3200
-390
-5200
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5651
SELECT - - CAST( NULL AS SIGNED ) * col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5651
SELECT - - CAST ( NULL AS INTEGER ) * col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + col2 + col0 AS col1 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT - col1 * col0 + 49 FROM tab2 AS cor0
----
-1294
-168
-4553
query I rowsort
SELECT col2 + col1 * col1 AS col2 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT col2 + - 97 * - col1 FROM tab0
----
8375
8909
9410
onlyif mysql # use DIV operator for integer division
query I rowsort label-5656
SELECT 59 DIV - 23 FROM tab1
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-5656
SELECT 59 / - 23 FROM tab1
----
-2
-2
-2
query I rowsort
SELECT DISTINCT + col1 + - 58 - + col1 FROM tab1
----
-58
query I rowsort
SELECT ALL + + 69 * col2 + 28 FROM tab0 AS cor0
----
2305
5686
97
query I rowsort
SELECT - - 21 - + col1 FROM tab2 cor0
----
-10
-38
4
query I rowsort
SELECT ALL col2 + + col2 * col1 AS col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + 17 AS col0 FROM tab0
----
17
query I rowsort
SELECT 55 * col0 + col2 AS col2 FROM tab1
----
219
3577
4496
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab2 AS cor1
----
972 values hashing to 42e69ecdafb3c81046bc5cb4c98b1666
query I rowsort
SELECT + col2 + + col0 * col2 * col2 + + col0 AS col1 FROM tab1
----
208057
737456
8805
query I rowsort
SELECT DISTINCT - + 59 AS col1 FROM tab0 AS cor0
----
-59
query I rowsort
SELECT ALL col2 + col1 * - tab2.col2 AS col2 FROM tab2
----
-1508
-608
-810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col0 + + tab0.col0 + + col1 * + col2 col2 FROM tab0
----
-1093
-370
2286
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5668
SELECT + - col2 * - col2 + - 50 * ( + col0 + CAST( col1 AS SIGNED ) * cor0.col2 ) FROM tab0 AS cor0
----
-142011
-370826
-6599
skipif mysql # not compatible
query I rowsort label-5668
SELECT + - col2 * - col2 + - 50 * ( + col0 + CAST ( col1 AS INTEGER ) * cor0.col2 ) FROM tab0 AS cor0
----
-142011
-370826
-6599
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) + col2 * + col2 col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT DISTINCT - + 90 AS col1 FROM tab0 AS cor0
----
-90
query I rowsort
SELECT ALL + 17 * - col0 + + col0 AS col1 FROM tab1 AS cor0
----
-1024
-1280
-48
onlyif mysql # use DIV operator for integer division
query I rowsort label-5672
SELECT + col1 * + col1 + 9 DIV - col2 AS col2 FROM tab0 cor0
----
7396
8281
9400
skipif mysql # not compatible
query I rowsort label-5672
SELECT + col1 * + col1 + 9 / - col2 AS col2 FROM tab0 cor0
----
7396
8281
9400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5673
SELECT col1 + + CAST( 81 AS SIGNED ) FROM tab2
----
112
140
98
skipif mysql # not compatible
query I rowsort label-5673
SELECT col1 + + CAST ( 81 AS INTEGER ) FROM tab2
----
112
140
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-5674
SELECT col1 DIV 78 - col1 AS col2 FROM tab0
----
-85
-90
-96
skipif mysql # not compatible
query I rowsort label-5674
SELECT col1 / 78 - col1 AS col2 FROM tab0
----
-85
-90
-96
query I rowsort
SELECT col2 + + col0 AS col0 FROM tab2 cor0
----
104
117
34
query I rowsort
SELECT ALL + col1 + 31 AS col1 FROM tab2 AS cor0
----
48
62
90
query I rowsort
SELECT DISTINCT - col2 + - 77 * col1 FROM tab2 AS cor0
----
-1347
-2414
-4569
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 62 col0 FROM tab0 cor0
----
62
62
62
query I rowsort
SELECT ALL 6 + col1 AS col0 FROM tab2 AS cor0
----
23
37
65
query I rowsort
SELECT ALL + - col1 * + col0 + - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT DISTINCT - + col2 * + 44 FROM tab0 AS cor0
----
-1452
-3608
-44
onlyif mysql # use DIV operator for integer division
query I rowsort label-5682
SELECT DISTINCT + - ( 80 ) + + col0 DIV - col2 + cor0.col2 * - col2 * + 33 AS col0 FROM tab1 AS cor0
----
-107298
-304208
-96308
skipif mysql # not compatible
query I rowsort label-5682
SELECT DISTINCT + - ( 80 ) + + col0 / - col2 + cor0.col2 * - col2 * + 33 AS col0 FROM tab1 AS cor0
----
-107298
-304208
-96308
query I rowsort
SELECT + col1 * ( col2 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT ALL col2 + 29 FROM tab1 AS cor0
----
125
83
86
query I rowsort
SELECT DISTINCT - - cor0.col2 + - col1 AS col0 FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5686
SELECT ALL - col2 * + col1 + cor0.col2 / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5686
SELECT ALL - col2 * + col1 + cor0.col2 / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 24 + cor0.col1 AS col1 FROM tab0 AS cor0
----
62
67
73
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5688
SELECT - - CAST( - col0 AS SIGNED ) * col0 + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif mysql # not compatible
query I rowsort label-5688
SELECT - - CAST ( - col0 AS INTEGER ) * col0 + col2 AS col0 FROM tab2 AS cor0
----
-22
-6058
-6203
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + 53 col1 FROM tab0 AS cor0
----
-36
18
29
skipif mysql # not compatible
query I rowsort
SELECT ALL - + CAST ( col1 AS REAL ) + - cor0.col1 * + 22 FROM tab2 AS cor0
----
-1357
-391
-713
query I rowsort
SELECT ALL - + ( - 87 ) * + col2 - - col0 FROM tab1 AS cor0
----
4701
5023
8432
query I rowsort
SELECT DISTINCT 33 * - col0 FROM tab2 AS cor0
----
-231
-2574
-2607
onlyif mysql # use DIV operator for integer division
query I rowsort label-5693
SELECT DISTINCT - + cor0.col2 DIV + 94 AS col2 FROM tab1 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT - + cor0.col2 / + 94 AS col2 FROM tab1 AS cor0
----
-1
0
query I rowsort
SELECT + ( col2 ) * cor0.col0 AS col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col1 - + 6 * + col1 AS col2 FROM tab1 AS cor0
----
-130
-50
-65
query I rowsort
SELECT DISTINCT - cor0.col2 - - cor0.col1 AS col0 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + 72 * + cor0.col0 * col2 FROM tab2 AS cor0
----
13608
146016
216144
query I rowsort
SELECT DISTINCT col2 + + col1 * col2 AS col0 FROM tab1 cor0
----
1344
1458
627
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5699
SELECT - ( + col2 ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5699
SELECT - ( + col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col0 * col1 + - col2 AS col1 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + cor0.col1 * + col2 col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL + - 54 * col0 - col0 AS col1 FROM tab2 AS cor0
----
-385
-4290
-4345
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 43 * - col2 col1 FROM tab0 AS cor0
----
-1419
-3526
-43
query I rowsort
SELECT ALL tab0.col2 * + col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT ALL col2 + - col1 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT ALL - col2 * 22 FROM tab2 AS cor0
----
-572
-594
-836
onlyif mysql # use DIV operator for integer division
query I rowsort label-5707
SELECT ALL col2 DIV col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL col2 / col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + col2 + + col2 * - col0 AS col2 FROM tab1 AS cor0
----
-108
-3591
-7584
query I rowsort
SELECT ALL - col2 + + 75 + col2 AS col2 FROM tab1 AS cor0
----
75
75
75
query I rowsort
SELECT - col0 + + 6 * 74 FROM tab1 AS cor0
----
364
380
441
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * col0 col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT ALL + col0 * - col2 + col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-3548
-7511
514
query I rowsort
SELECT ALL - col0 * col2 * - col0 + - col0 * + col2 * - col1 FROM tab0
----
1313640
4620
87120
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab2.col2 col1 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
onlyif mysql # use DIV operator for integer division
query I rowsort label-5715
SELECT DISTINCT + col2 + tab2.col0 DIV - col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT + col2 + tab2.col0 / - col0 FROM tab2
----
25
26
37
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ccaa5dd3388d9ee0fea676fa35299fe5
query I rowsort
SELECT DISTINCT + cor0.col0 * + 17 + - cor1.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2, tab2 cor1
----
9 values hashing to 1d46de5199eb457e22c116349be4f2a3
query I rowsort
SELECT + col0 * + ( col2 ) + col0 + col2 FROM tab0 cor0
----
71
7469
849
query I rowsort
SELECT ALL - - cor0.col0 * 46 FROM tab2 AS cor0
----
322
3588
3634
query I rowsort
SELECT col1 + 42 * col1 FROM tab1 AS cor0
----
1118
430
559
query I rowsort
SELECT DISTINCT - cor0.col0 * - 6 AS col0 FROM tab1 cor0
----
18
384
480
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 87 col2 FROM tab2
----
113
114
125
query I rowsort
SELECT + 0 - + tab2.col1 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 6e0b7d583bc2c53842166d3e6ba2d6d2
query I rowsort
SELECT - 57 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0b74bbd7631afe9b2eeb9f18b9dc6505
query I rowsort
SELECT DISTINCT + 35 - col2 AS col1 FROM tab2 cor0
----
-3
8
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5726
SELECT ALL - - ( col0 ) + CAST( - col0 AS SIGNED ) + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - - ( col0 ) + CAST ( - col0 AS INTEGER ) + col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL - col0 * col2 + - col2 * + col1 * - col2 FROM tab0 AS cor0
----
604586
62
92862
onlyif mysql # use DIV operator for integer division
query I rowsort label-5728
SELECT col2 + + col1 DIV - cor0.col0 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-5728
SELECT col2 + + col1 / - cor0.col0 FROM tab1 AS cor0
----
46
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-5729
SELECT + col2 + - col1 DIV + col0 FROM tab1 AS cor0
----
46
57
96
skipif mysql # not compatible
query I rowsort label-5729
SELECT + col2 + - col1 / + col0 FROM tab1 AS cor0
----
46
57
96
query I rowsort
SELECT + + cor0.col1 * - 42 * col2 FROM tab0 AS cor0
----
-119196
-313404
-4074
onlyif mysql # use DIV operator for integer division
query I rowsort label-5731
SELECT col2 DIV + col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5731
SELECT col2 / + col1 AS col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5732
SELECT - + cor0.col2 DIV + 22 FROM tab1 AS cor0
----
-2
-2
-4
skipif mysql # not compatible
query I rowsort label-5732
SELECT - + cor0.col2 / + 22 FROM tab1 AS cor0
----
-2
-2
-4
query I rowsort
SELECT col2 * 40 AS col2 FROM tab0 cor0
----
1320
3280
40
onlyif mysql # use DIV operator for integer division
query I rowsort label-5734
SELECT ALL col1 * tab2.col2 - - col2 DIV col1 FROM tab2
----
1534
648
837
skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL col1 * tab2.col2 - - col2 / col1 FROM tab2
----
1534
648
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5735
SELECT ALL col0 - col1 DIV + col1 AS col2 FROM tab2
----
6
77
78
skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL col0 - col1 / + col1 AS col2 FROM tab2
----
6
77
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-5736
SELECT DISTINCT + col2 * col2 DIV col1 FROM tab2
----
11
23
84
skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT + col2 * col2 / col1 FROM tab2
----
11
23
84
query I rowsort
SELECT col1 + col1 - - col2 FROM tab1
----
106
122
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-5738
SELECT ALL col1 DIV - col0 col1 FROM tab0
----
-1
-2
-3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5738
SELECT ALL col1 / - col0 col1 FROM tab0
----
-1
-2
-3
query I rowsort
SELECT col2 * col0 + col1 * col0 FROM tab1
----
240
4288
8720
query I rowsort
SELECT + col2 + col1 * col0 AS col2 FROM tab1
----
1136
132
697
query I rowsort
SELECT col2 * + cor0.col0 + ( ( col2 ) ) FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - col2 - - col0 * col2 AS col0 FROM tab0 WHERE col1 IN ( - col0 )
----
query I rowsort
SELECT ALL tab2.col0 * - col1 * - col1 FROM tab2
----
22831
271518
6727
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 BETWEEN - col2 AND col1
----
9 values hashing to ad05b5942400d5e7a21b323b3da65a45
query I rowsort
SELECT - col1 * + col1 - col0 * col0 * col0 FROM tab1
----
-262244
-512169
-703
onlyif mysql # use DIV operator for integer division
query I rowsort label-5746
SELECT - - col1 + - col0 DIV - 33 AS col1 FROM tab1 AS cor0
----
11
15
26
skipif mysql # not compatible
query I rowsort label-5746
SELECT - - col1 + - col0 / - 33 AS col1 FROM tab1 AS cor0
----
11
15
26
query I rowsort
SELECT + + col2 + + col0 * - col1 AS col0 FROM tab2 cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - ( - col0 ) * ( + 77 ) + + col2 AS col0 FROM tab0 AS cor0
----
1881
2696
6935
query I rowsort
SELECT DISTINCT - 20 * + 15 AS col1 FROM tab0
----
-300
query I rowsort
SELECT DISTINCT + - ( + col2 ) * ( - 54 ) AS col0 FROM tab2 AS cor0
----
1404
1458
2052
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 + + ( - ( cor0.col0 ) ) * + ( - cor0.col1 ) col1 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL 94 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24
query I rowsort
SELECT ALL 66 + - cor2.col0 FROM tab1, tab1 AS cor0, tab1 AS cor1, tab2, tab2 AS cor2
----
243 values hashing to 7c4d01d7db711b731f77f1bf394396e1
query I rowsort
SELECT DISTINCT col1 * ( + col0 ) FROM tab2 AS cor0
----
1343
217
4602
query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab2, tab0 cor0, tab2 cor1
----
41
query I rowsort
SELECT - 76 + col0 - col2 AS col1 FROM tab1 AS cor0
----
-127
-69
-92
query I rowsort
SELECT - - col1 * col1 + - col2 AS col1 FROM tab1 AS cor0
----
43
622
73
query I rowsort
SELECT DISTINCT - col1 * + 51 FROM tab1
----
-1326
-510
-663
onlyif mysql # use DIV operator for integer division
query I rowsort label-5759
SELECT ALL + 14 DIV - col1 AS col2 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5759
SELECT ALL + 14 / - col1 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT - - col0 * col2 + - col0 AS col0 FROM tab0 AS cor0
----
0
7209
768
onlyif mysql # use DIV operator for integer division
query I rowsort label-5761
SELECT + 66 + col2 DIV - col1 FROM tab1 AS cor0
----
59
61
64
skipif mysql # not compatible
query I rowsort label-5761
SELECT + 66 + col2 / - col1 FROM tab1 AS cor0
----
59
61
64
query I rowsort
SELECT ALL cor0.col1 + col0 * 16 FROM tab1 AS cor0
----
1034
1293
74
onlyif mysql # use DIV operator for integer division
query I rowsort label-5763
SELECT DISTINCT + col0 DIV ( col2 ) FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT + col0 / ( col2 ) FROM tab1 AS cor0
----
0
1
query I rowsort
SELECT ALL + + col1 + - col0 * + cor0.col0 FROM tab0 AS cor0
----
-1128
-490
-7830
query I rowsort
SELECT - 46 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 5a5d45989dcc6a06d9ee5a08945518f9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 * 2 col1 FROM tab2, tab0 cor0
----
9 values hashing to b8cf3a0d946da15d11bb8abf87d58a6b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( tab0.col1 ) * col0 col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT col1 * ( + tab0.col0 ) AS col1 FROM tab0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5769
SELECT - col2 * + col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5769
SELECT - col2 * + col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - + col0 * cor0.col2 + col2 * col0 AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT - tab0.col1 * - col0 AS col2 FROM tab0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-5772
SELECT + ( col1 ) + col1 DIV - col0 AS col2 FROM tab0 AS cor0
----
83
90
95
skipif mysql # not compatible
query I rowsort label-5772
SELECT + ( col1 ) + col1 / - col0 AS col2 FROM tab0 AS cor0
----
83
90
95
query I rowsort
SELECT - col2 * - col0 + - col1 AS col1 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT DISTINCT col1 + 85 AS col1 FROM tab0
----
171
176
182
query I rowsort
SELECT DISTINCT ( 88 ) + - tab1.col2 AS col1 FROM tab1
----
-8
31
34
query I rowsort
SELECT - col1 * + 87 FROM tab0
----
-7482
-7917
-8439
query I rowsort
SELECT col1 * 17 AS col2 FROM tab2
----
1003
289
527
query I rowsort
SELECT + + 67 FROM tab0 AS cor0
----
67
67
67
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col0 * + 22 * + 70 FROM tab0 AS cor0
----
-137142
-36993
-53901
query I rowsort
SELECT + col2 + + col1 * ( + cor0.col2 ) FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5781
SELECT - col2 * col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5781
SELECT - col2 * col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 65 + cor0.col0 * col2 * 54 AS col2 FROM tab2 AS cor0
----
10141
109447
162043
query I rowsort
SELECT col0 * - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-2054
-216
-3040
query I rowsort
SELECT ALL ( col2 ) + - ( + col1 * + cor0.col1 ) AS col1 FROM tab0 AS cor0
----
-7363
-8199
-9408
query I rowsort
SELECT - 41 + col1 FROM tab0
----
45
50
56
query I rowsort
SELECT ALL tab1.col1 * + col1 + - col2 * col1 AS col1 FROM tab1
----
-1079
-470
-728
query I rowsort
SELECT ( - 47 ) FROM tab0, tab0 cor0, tab0 AS cor1
----
27 values hashing to a4d3a02c376c52ddb0a38a801f7b50d5
query I rowsort
SELECT ALL + col2 * cor0.col2 + - 14 FROM tab2 cor0
----
1430
662
715
query I rowsort
SELECT DISTINCT - 36 * - col2 FROM tab1 AS cor0
----
1944
2052
3456
query I rowsort
SELECT DISTINCT 47 * 75 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
3525
query I rowsort
SELECT DISTINCT - + col2 + + col1 * 94 * + 17 FROM tab0 AS cor0
----
137395
145336
155005
onlyif mysql # use DIV operator for integer division
query I rowsort label-5792
SELECT DISTINCT + col1 DIV - cor0.col0 + col1 AS col0 FROM tab2 cor0
----
17
27
59
skipif mysql # not compatible
query I rowsort label-5792
SELECT DISTINCT + col1 / - cor0.col0 + col1 AS col0 FROM tab2 cor0
----
17
27
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5793
SELECT ALL + - col2 + CAST( - 56 AS SIGNED ) * - col0 + col1 AS col2 FROM tab0 AS cor0
----
1397
2056
4993
skipif mysql # not compatible
query I rowsort label-5793
SELECT ALL + - col2 + CAST ( - 56 AS INTEGER ) * - col0 + col1 AS col2 FROM tab0 AS cor0
----
1397
2056
4993
query I rowsort
SELECT ALL - - col2 * ( 14 ) * col2 FROM tab1 AS cor0
----
129024
40824
45486
query I rowsort
SELECT - col1 * + 5 + + col0 AS col2 FROM tab1 AS cor0
----
-127
14
15
query I rowsort
SELECT DISTINCT - col1 * + 86 + - col0 AS col0 FROM tab0 AS cor0
----
-7420
-7915
-8377
query I rowsort
SELECT DISTINCT - - col1 * col1 + col0 - col0 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT ALL + - col1 + cor0.col1 * 76 * + col1 FROM tab0 AS cor0
----
562010
629265
714987
query I rowsort
SELECT ALL col2 + - 16 * col0 + col1 FROM tab2 cor0
----
-1163
-1209
-54
query I rowsort
SELECT ALL + col0 * - 90 FROM tab1 AS cor0
----
-270
-5760
-7200
query I rowsort
SELECT DISTINCT - cor0.col0 * - cor0.col0 * - cor0.col1 FROM tab2 AS cor0
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT + cor0.col0 + col1 * cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
1439
255
4739
query I rowsort
SELECT + col2 - - col2 FROM tab1 cor0
----
108
114
192
query I rowsort
SELECT ALL ( col0 ) * col1 + col1 * - col2 FROM tab0 AS cor0
----
-774
3298
637
query I rowsort
SELECT - ( + col1 ) * col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT col2 * - cor0.col2 - col2 * col1 AS col0 FROM tab0 AS cor0
----
-14186
-3927
-98
query I rowsort
SELECT DISTINCT 51 + + col0 * + col1 AS col2 FROM tab1 AS cor0
----
1091
129
691
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col0 + col1 col0 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT - 37 + + cor0.col2 AS col1 FROM tab1 AS cor0
----
17
20
59
query I rowsort
SELECT ALL - ( - 53 ) AS col0 FROM tab2 cor0
----
53
53
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5811
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif mysql # not compatible
query I rowsort label-5811
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-24
-35
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 99 * + col2 col2 FROM tab1 AS cor0
----
5372
5653
9517
query I rowsort
SELECT ALL + 2 + - 42 AS col2 FROM tab0 AS cor0
----
-40
-40
-40
query I rowsort
SELECT ALL + col1 * - 26 AS col0 FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT + col2 + - col0 - + col0 AS col2 FROM tab0 cor0
----
-15
-69
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col1 * col1 col2 FROM tab1 AS cor0
----
164
249
679
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5817
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
skipif mysql # not compatible
query I rowsort label-5817
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col2 FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT ( - 40 ) + col1 FROM tab2 AS cor0
----
-23
-9
19
query I rowsort
SELECT ALL - cor0.col1 * - 13 FROM tab1 AS cor0
----
130
169
338
skipif mysql # not compatible
query I rowsort
SELECT CAST ( col1 AS REAL ) - + col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT - 67 + + ( col2 + + col2 * + col1 ) FROM tab1 AS cor0
----
1277
1391
560
query I rowsort
SELECT ALL cor0.col1 + - 72 * col1 FROM tab1 AS cor0
----
-1846
-710
-923
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 AS col0 FROM tab2 cor0
----
189
2028
3002
query I rowsort
SELECT + + tab2.col0 AS col2 FROM tab2, tab2 AS cor0, tab1, tab1 AS cor1
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
onlyif mysql # use DIV operator for integer division
query I rowsort label-5825
SELECT col1 DIV + col1 + col2 FROM tab1
----
55
58
97
skipif mysql # not compatible
query I rowsort label-5825
SELECT col1 / + col1 + col2 FROM tab1
----
55
58
97
query I rowsort
SELECT DISTINCT + - 24 * col1 + - col1 AS col1 FROM tab2 AS cor0
----
-1475
-425
-775
query I rowsort
SELECT col2 + + col1 * - ( col2 ) AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-5828
SELECT - ( - col1 ) DIV + 76 + col2 FROM tab2 AS cor0
----
26
27
38
skipif mysql # not compatible
query I rowsort label-5828
SELECT - ( - col1 ) / + 76 + col2 FROM tab2 AS cor0
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-5829
SELECT DISTINCT 29 * - col2 - - 66 DIV col0 FROM tab0 AS cor0
----
-2378
-28
-955
skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT 29 * - col2 - - 66 / col0 FROM tab0 AS cor0
----
-2378
-28
-955
query I rowsort
SELECT - 94 * col2 + + col2 FROM tab1 AS cor0
----
-5022
-5301
-8928
query I rowsort
SELECT ALL - col2 + - ( col2 ) * col0 AS col2 FROM tab2
----
-2054
-216
-3040
query I rowsort
SELECT DISTINCT + col2 * - 0 FROM tab2
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5833
SELECT ALL col2 * col2 DIV + tab1.col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL col2 * col2 / + tab1.col2 FROM tab1
----
54
57
96
query I rowsort
SELECT col0 * col1 + + col2 * - 68 + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-204
2434
3292
query I rowsort
SELECT - 78 + - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-145
-158
-187
query I rowsort
SELECT - + 30 * - col1 FROM tab0 cor0
----
2580
2730
2910
onlyif mysql # use DIV operator for integer division
query I rowsort label-5837
SELECT - 25 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-5837
SELECT - 25 / col1 AS col2 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT ALL + 25 * 43 * col1 AS col1 FROM tab1 AS cor0
----
10750
13975
27950
query I rowsort
SELECT DISTINCT + - 10 AS col1 FROM tab1 cor0
----
-10
query I rowsort
SELECT ( + col1 ) + + col2 * + 68 * cor0.col2 + col2 FROM tab0 AS cor0
----
166
457405
74171
onlyif mysql # use DIV operator for integer division
query I rowsort label-5841
SELECT + 55 DIV col2 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-5841
SELECT + 55 / col2 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT + - 14 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT ALL + 77 + col0 * ( col1 * - col2 + + col1 ) FROM tab2
----
-114973
-49614
-5565
query I rowsort
SELECT DISTINCT - col1 - + col0 AS col2 FROM tab1 AS cor0
----
-29
-74
-93
query I rowsort
SELECT ALL - ( + col1 ) * + 56 FROM tab0 AS cor0
----
-4816
-5096
-5432
query I rowsort
SELECT ALL + - col2 * col0 * - ( col0 * cor0.col0 ) FROM tab2 cor0
----
12338352
18735482
9261
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5847
SELECT DISTINCT - - 34 * + col0 + CAST( - col0 AS SIGNED ) FROM tab2 AS cor0
----
231
2574
2607
skipif mysql # not compatible
query I rowsort label-5847
SELECT DISTINCT - - 34 * + col0 + CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0
----
231
2574
2607
query I rowsort
SELECT DISTINCT - + col1 - - col0 * cor0.col2 FROM tab1 AS cor0
----
136
3638
7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - col2 col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-5850
SELECT ALL - - col0 DIV col0 FROM tab2 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - - col0 / col0 FROM tab2 cor0
----
1
1
1
query I rowsort
SELECT - cor0.col1 * + 39 * col0 + col2 + + ( - col0 ) FROM tab2 AS cor0
----
-179530
-52418
-8443
query I rowsort
SELECT DISTINCT col2 * + ( col1 ) * + col1 AS col0 FROM tab2 AS cor0
----
10982
25947
90506
query I rowsort
SELECT - - col2 + col1 * 41 FROM tab0 AS cor0
----
3559
3813
3978
query I rowsort
SELECT ALL - + col0 * col0 + 26 FROM tab0 AS cor0
----
-1199
-550
-7895
query I rowsort
SELECT - + col0 * 76 + + col2 * + cor0.col1 FROM tab2 AS cor0
----
-4394
-5358
305
onlyif mysql # use DIV operator for integer division
query I rowsort label-5856
SELECT col1 DIV - ( cor0.col0 ) - + col0 FROM tab2 AS cor0
----
-11
-78
-79
skipif mysql # not compatible
query I rowsort label-5856
SELECT col1 / - ( cor0.col0 ) - + col0 FROM tab2 AS cor0
----
-11
-78
-79
query I rowsort
SELECT + col2 * + col0 - col1 AS col0 FROM tab0 AS cor0
----
-62
706
7207
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5858
SELECT DISTINCT col0 * CAST( col2 AS SIGNED ) - - col1 AS col1 FROM tab1
----
188
3658
7693
skipif mysql # not compatible
query I rowsort label-5858
SELECT DISTINCT col0 * CAST ( col2 AS INTEGER ) - - col1 AS col1 FROM tab1
----
188
3658
7693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - col0 * + 47 col0 FROM tab1 AS cor0
----
-115
-2998
-3747
query I rowsort
SELECT col1 * col1 - - col1 * - col2 FROM tab0 AS cor0
----
4558
819
9312
query I rowsort
SELECT - col0 + col1 - col1 * - col2 FROM tab2 AS cor0
----
1515
584
861
query I rowsort
SELECT DISTINCT cor0.col0 AS col2 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
7
78
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-5863
SELECT + cor0.col2 - col1 DIV + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
32
81
skipif mysql # not compatible
query I rowsort label-5863
SELECT + cor0.col2 - col1 / + cor0.col1 AS col1 FROM tab0 AS cor0
----
0
32
81
query I rowsort
SELECT ALL + + col0 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + + 16 * - 92 * + col0 + + 99 AS col1 FROM tab2 AS cor0
----
-10205
-114717
-116189
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col2 + col2 col0 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT ALL + col2 + - col0 + + cor0.col2 * cor0.col1 FROM tab2 AS cor0
----
1482
605
857
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5868
SELECT - CAST( + 82 * - col0 AS SIGNED ) + col1 AS col0 FROM tab1
----
272
5258
6573
skipif mysql # not compatible
query I rowsort label-5868
SELECT - CAST ( + 82 * - col0 AS INTEGER ) + col1 AS col0 FROM tab1
----
272
5258
6573
query I rowsort
SELECT ( + col2 ) * 28 FROM tab1 AS cor0
----
1512
1596
2688
query I rowsort
SELECT + 17 * cor0.col0 FROM tab2 AS cor0
----
119
1326
1343
onlyif mysql # use DIV operator for integer division
query I rowsort label-5871
SELECT col0 DIV + tab0.col2 + + 33 * tab0.col0 * col0 col1 FROM tab0
----
19008
261394
40460
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5871
SELECT col0 / + tab0.col2 + + 33 * tab0.col0 * col0 col1 FROM tab0
----
19008
261394
40460
query I rowsort
SELECT - + cor0.col1 + + 20 * col1 AS col2 FROM tab1 AS cor0
----
190
247
494
query I rowsort
SELECT + - col2 * - ( - col1 ) AS col2 FROM tab2 cor0
----
-1534
-646
-837
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col1 FROM tab1
----
162
3648
7680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5875
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0, tab0 cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT DISTINCT 32 * + tab2.col1 AS col1 FROM tab2
----
1888
544
992
query I rowsort
SELECT - col2 * - col2 + + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT 75 * col1 + col1 FROM tab0 AS cor0
----
6536
6916
7372
query I rowsort
SELECT 50 + cor0.col0 AS col0 FROM tab2 AS cor0
----
128
129
57
query I rowsort
SELECT DISTINCT - cor0.col1 * - col1 + + col2 + 69 FROM tab0 AS cor0
----
7498
8432
9479
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5881
SELECT DISTINCT CAST( col0 AS SIGNED ) + col1 + + col2 * - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-611704
-93544
35
skipif mysql # not compatible
query I rowsort label-5881
SELECT DISTINCT CAST ( col0 AS INTEGER ) + col1 + + col2 * - cor0.col2 * col1 AS col2 FROM tab0 AS cor0
----
-611704
-93544
35
query I rowsort
SELECT ALL col0 * - col1 - col0 FROM tab0 cor0
----
-2088
-3430
-8188
query I rowsort
SELECT - 47 * col2 * - col2 AS col2 FROM tab2 cor0
----
31772
34263
67868
query I rowsort
SELECT DISTINCT - cor0.col2 + + 84 FROM tab1 AS cor0
----
-12
27
30
query I rowsort
SELECT ALL - - ( + 68 ) + col0 * + col2 AS col2 FROM tab2 AS cor0
----
2096
257
3070
query I rowsort
SELECT - - 68 * 33 + - col1 FROM tab0 AS cor0
----
2147
2153
2158
query I rowsort
SELECT DISTINCT 6 * - col1 FROM tab0 cor0
----
-516
-546
-582
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 75 col0 FROM tab2 cor0
----
525
5850
5925
query I rowsort
SELECT ALL + col1 + col1 * cor0.col2 + + col0 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT DISTINCT - ( - col1 ) + - col1 AS col1 FROM tab2 cor0
----
0
query I rowsort
SELECT - + 82 * + col2 + - col0 AS col1 FROM tab0 cor0
----
-117
-2730
-6813
query I rowsort
SELECT ALL - - 15 AS col2 FROM tab0 AS cor0
----
15
15
15
query I rowsort
SELECT - col1 * ( col2 ) * ( - col0 ) + col1 AS col1 FROM tab1 AS cor0
----
36490
4238
99853
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + CAST ( + 22 AS REAL ) * col1 + + col0 FROM tab0 AS cor0
----
1916
2091
2169
onlyif mysql # use DIV operator for integer division
query I rowsort label-5895
SELECT ALL ( 51 ) - + col0 DIV cor0.col1 FROM tab0 cor0
----
51
51
51
skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL ( 51 ) - + col0 / cor0.col1 FROM tab0 cor0
----
51
51
51
query I rowsort
SELECT DISTINCT - 90 + col1 AS col1 FROM tab2 AS cor0
----
-31
-59
-73
query I rowsort
SELECT ALL - 90 + col0 AS col0 FROM tab2 AS cor0
----
-11
-12
-83
query I rowsort
SELECT ALL + - ( - col2 ) FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + 55 * cor0.col2 * ( 51 ) + + col1 AS col2 FROM tab0 AS cor0
----
230101
2902
92651
query I rowsort
SELECT col2 * col0 + + col1 AS col0 FROM tab2 cor0
----
2087
220
3019
query I rowsort
SELECT - - col0 + col2 * - col1 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT - col1 + + col0 - col1 AS col1 FROM tab0 AS cor0
----
-148
-159
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5903
SELECT DISTINCT + col0 DIV col0 + col1 * + col1 FROM tab2 AS cor0
----
290
3482
962
skipif mysql # not compatible
query I rowsort label-5903
SELECT DISTINCT + col0 / col0 + col1 * + col1 FROM tab2 AS cor0
----
290
3482
962
query I rowsort
SELECT - + col1 + + ( 93 + col2 ) AS col1 FROM tab0 AS cor0
----
-3
40
84
query I rowsort
SELECT col0 - 45 * + cor0.col2 * cor0.col0 FROM tab2 AS cor0
----
-135011
-8498
-91182
query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
72
query I rowsort
SELECT DISTINCT - - cor0.col1 + + ( + 27 ) AS col1 FROM tab2, tab0, tab1 cor0
----
37
40
53
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5908
SELECT ALL + CAST( NULL AS DECIMAL ) / cor0.col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + CAST ( NULL AS REAL ) / cor0.col0 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + + 2 * + col0 * col1 AS col1 FROM tab0 AS cor0
----
16287
4152
6825
query I rowsort
SELECT col1 + 43 AS col0 FROM tab0
----
129
134
140
query I rowsort
SELECT DISTINCT col1 + col0 * 55 FROM tab0
----
1406
2022
4986
query I rowsort
SELECT - + ( - col1 ) * col1 AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT - col0 * - col1 + - col2 * col2 AS col2 FROM tab1 AS cor0
----
-2609
-2838
-8176
query I rowsort
SELECT 8 FROM tab0, tab0 cor0
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57
query I rowsort
SELECT ALL 85 * 26 FROM tab2
----
2210
2210
2210
query IIIIIIIII rowsort
SELECT * FROM tab0, tab1, tab2 AS cor0 WHERE NULL > NULL
----
query I rowsort
SELECT ALL ( + col1 ) * - col2 AS col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-5918
SELECT DISTINCT - ( col2 ) DIV + col2 AS col1 FROM tab0
----
-1
skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT - ( col2 ) / + col2 AS col1 FROM tab0
----
-1
query I rowsort
SELECT DISTINCT + col0 * - 58 AS col2 FROM tab2 AS cor0
----
-406
-4524
-4582
onlyif mysql # use DIV operator for integer division
query I rowsort label-5920
SELECT cor0.col2 * - col0 * - col0 + - cor0.col1 DIV - ( + col1 + + col2 ) FROM tab1 AS cor0
----
233472
486
614400
skipif mysql # not compatible
query I rowsort label-5920
SELECT cor0.col2 * - col0 * - col0 + - cor0.col1 / - ( + col1 + + col2 ) FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT - col2 + + col2 + col2 FROM tab2 cor0
----
26
27
38
query I rowsort
SELECT ALL + - 40 * + col2 FROM tab2 AS cor0
----
-1040
-1080
-1520
query I rowsort
SELECT ALL - + ( 58 ) + + col0 FROM tab2 AS cor0
----
-51
20
21
query I rowsort
SELECT DISTINCT + 81 AS col0 FROM tab0, tab1 AS cor0
----
81
query I rowsort
SELECT ALL + cor1.col0 FROM tab0, tab0 AS cor0, tab2 cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT + col2 + + col2 + col1 FROM tab2 AS cor0
----
111
85
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-5927
SELECT - col1 - + col0 DIV 71 FROM tab0
----
-86
-92
-97
skipif mysql # not compatible
query I rowsort label-5927
SELECT - col1 - + col0 / 71 FROM tab0
----
-86
-92
-97
query I rowsort
SELECT + 82 - + col1 FROM tab1
----
56
69
72
onlyif mysql # use DIV operator for integer division
query I rowsort label-5929
SELECT ALL + - col1 * + col0 + 19 DIV + 94 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL + - col1 * + col0 + 19 / + 94 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT col1 * + cor0.col0 + + col0 FROM tab2 cor0
----
1422
224
4680
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5931
SELECT DISTINCT - col0 * + col0 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-5931
SELECT DISTINCT - col0 * + col0 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-5932
SELECT ALL ( - col1 ) DIV + CAST( + ( - col2 ) AS SIGNED ) FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL ( - col1 ) / + CAST ( + ( - col2 ) AS INTEGER ) FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-5933
SELECT ALL + col0 DIV ( - 12 ) FROM tab0 cor0
----
-2
-2
-7
skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL + col0 / ( - 12 ) FROM tab0 cor0
----
-2
-2
-7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - ( - col0 ) * - col1 col2 FROM tab1 cor0
----
-576
-75
-960
onlyif mysql # use DIV operator for integer division
query I rowsort label-5935
SELECT + col0 DIV - 49 col1 FROM tab1 AS cor0
----
-1
-1
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5935
SELECT + col0 / - 49 col1 FROM tab1 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort
SELECT ALL col2 + - CAST ( cor0.col2 AS REAL ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - col0 + col2 - col0 AS col2 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT ALL - col1 * 12 FROM tab1 cor0
----
-120
-156
-312
query I rowsort
SELECT DISTINCT + cor0.col0 * + 51 FROM tab1 AS cor0
----
153
3264
4080
query I rowsort
SELECT + - col2 + - 20 FROM tab2 cor0
----
-46
-47
-58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5941
SELECT ALL - ( + col0 + CAST( NULL AS DECIMAL ) * - col0 ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-5941
SELECT ALL - ( + col0 + CAST ( NULL AS REAL ) * - col0 ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col0 + - cor0.col0 * - ( - col1 ) FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT col0 * col2 - col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + col2 * - ( - cor0.col2 * col2 ) AS col1 FROM tab0 AS cor0
----
1
35937
551368
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col1 FROM tab2 cor0
----
55
58
85
query I rowsort
SELECT ALL - - col2 * - 41 * - 19 FROM tab1 AS cor0
----
42066
44403
74784
query I rowsort
SELECT ALL - col2 * ( col0 ) + + cor0.col0 * ( + col0 ) FROM tab2 AS cor0
----
-140
3239
4056
query I rowsort
SELECT 15 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to 71dda9a71fc978ea7b0ac5d8cd2ef1f0
query I rowsort
SELECT + 88 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-7544
-7919
-8501
query I rowsort
SELECT cor1.col0 * + cor1.col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to bc669a3cc969c7619ebcffb5400ba0ba
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + col2 col1 FROM tab2 AS cor0
----
-1
-12
-13
query I rowsort
SELECT + cor0.col0 * col0 + col2 AS col2 FROM tab1 AS cor0
----
4153
63
6496
onlyif mysql # use DIV operator for integer division
query I rowsort label-5953
SELECT col1 DIV - col1 + + ( 45 ) AS col2 FROM tab1 AS cor0
----
44
44
44
skipif mysql # not compatible
query I rowsort label-5953
SELECT col1 / - col1 + + ( 45 ) AS col2 FROM tab1 AS cor0
----
44
44
44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5954
SELECT - col2 * CAST( - 13 * - col2 AS SIGNED ) + ( - col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-14949
-48
-94710
skipif mysql # not compatible
query I rowsort label-5954
SELECT - col2 * CAST ( - 13 * - col2 AS INTEGER ) + ( - col0 ) * col2 AS col0 FROM tab0 AS cor0
----
-14949
-48
-94710
query I rowsort
SELECT + 32 + tab1.col1 AS col1 FROM tab1
----
42
45
58
query I rowsort
SELECT + col0 * col0 + - ( - col2 ) AS col1 FROM tab2 cor0
----
6110
6279
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-5957
SELECT col1 DIV + 98 + + col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-5957
SELECT col1 / + 98 + + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col2 + 95 FROM tab2 cor0
----
121
122
133
query I rowsort
SELECT DISTINCT + 5 AS col2 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
5
query I rowsort
SELECT - 17 + col0 * - col2 FROM tab2 AS cor0
----
-2045
-206
-3019
query I rowsort
SELECT - - 34 * ( + col2 ) AS col0 FROM tab1 cor0
----
1836
1938
3264
query I rowsort
SELECT - ( - col2 ) + + col0 * - ( 53 + - col0 ) FROM tab1 AS cor0
----
-96
2256
761
query I rowsort
SELECT + + col2 + ( - col2 ) * ( 7 ) FROM tab2 AS cor0
----
-156
-162
-228
query I rowsort
SELECT ALL - col1 * - 12 * col2 FROM tab2
----
10044
18408
7752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( - col1 ) col1 FROM tab0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-5966
SELECT + 8 DIV tab0.col1 AS col0 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-5966
SELECT + 8 / tab0.col1 AS col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - 53 + + col1 AS col1 FROM tab0
----
33
38
44
query I rowsort
SELECT ALL 53 + + col1 AS col2 FROM tab2 AS cor0
----
112
70
84
query I rowsort
SELECT ALL 88 AS col0 FROM tab0 AS cor0
----
88
88
88
query I rowsort
SELECT - 88 - 64 FROM tab1, tab0 AS cor0 CROSS JOIN tab2
----
27 values hashing to 275a6c1b20c0fc55111ae949ef2a3e3d
query I rowsort
SELECT - col2 + col2 * cor0.col1 FROM tab2 AS cor0
----
1508
608
810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5972
SELECT DISTINCT - + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + 20 + - cor0.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to cd9bedd13b2d6df88f193d6651a64d2e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5974
SELECT + CAST( + col1 + - col2 AS SIGNED ) AS col0 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-5974
SELECT + CAST ( + col1 + - col2 AS INTEGER ) AS col0 FROM tab1
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-5975
SELECT DISTINCT - 2 DIV 71 AS col2 FROM tab2
----
0
skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT - 2 / 71 AS col2 FROM tab2
----
0
query I rowsort
SELECT DISTINCT + cor0.col1 * + cor0.col2 + + 81 * + col2 + - cor0.col0 FROM tab2 AS cor0
----
3017
3562
3645
query I rowsort
SELECT DISTINCT + 35 * col0 AS col2 FROM tab2
----
245
2730
2765
query I rowsort
SELECT ALL tab0.col2 AS col0 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT DISTINCT + ( - 34 * - col2 + col1 ) AS col2 FROM tab0
----
1208
131
2879
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-5980
SELECT ALL + CAST( col0 + col1 AS SIGNED ) FROM tab1
----
29
74
93
skipif mysql # not compatible
query I rowsort label-5980
SELECT ALL + CAST ( col0 + col1 AS INTEGER ) FROM tab1
----
29
74
93
query I rowsort
SELECT DISTINCT col2 * 70 FROM tab2
----
1820
1890
2660
query I rowsort
SELECT + + ( 17 ) * tab1.col1 AS col1 FROM tab1, tab2, tab0 cor0
----
27 values hashing to e92ffa9a50a23ae51886d6d382bfb40b
query I rowsort
SELECT - - cor0.col0 - col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - col0 * col1 + + col2 * + tab1.col1 - + col2 AS col1 FROM tab1
----
-127
112
1272
query I rowsort
SELECT DISTINCT - col2 + - cor0.col0 + col1 * cor0.col2 FROM tab1 AS cor0
----
1072
1347
449
query I rowsort
SELECT DISTINCT + + 62 AS col0 FROM tab1 AS cor0
----
62
query I rowsort
SELECT - 68 AS col2 FROM tab2 cor0
----
-68
-68
-68
query I rowsort
SELECT - - col2 + - col0 * 87 AS col1 FROM tab2 AS cor0
----
-582
-6760
-6835
query I rowsort
SELECT 76 FROM tab1, tab1 AS cor0
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5
onlyif mysql # use DIV operator for integer division
query I rowsort label-5990
SELECT - col2 + col2 DIV + 61 AS col0 FROM tab0 AS cor0
----
-1
-33
-81
skipif mysql # not compatible
query I rowsort label-5990
SELECT - col2 + col2 / + 61 AS col0 FROM tab0 AS cor0
----
-1
-33
-81
query I rowsort
SELECT - 52 + + 50 FROM tab1 AS cor0
----
-2
-2
-2
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0, tab0 cor1
----
972 values hashing to b2fa3f9d060540fe1eb4ad1c0754e163
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab1 AS cor0
----
40
40
40
query I rowsort
SELECT ALL - ( - 50 ) * col1 AS col0 FROM tab2 AS cor0
----
1550
2950
850
query I rowsort
SELECT DISTINCT ( 67 ) * + col0 AS col2 FROM tab0 AS cor0
----
1608
2345
5963
onlyif mysql # use DIV operator for integer division
query I rowsort label-5996
SELECT + + col0 * + col0 DIV col0 + + col2 col2 FROM tab0 AS cor0
----
171
36
57
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-5996
SELECT + + col0 * + col0 / col0 + + col2 col2 FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT DISTINCT cor0.col0 * - col2 + col1 - col2 FROM tab0 AS cor0
----
-7289
-739
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-5998
SELECT DISTINCT - col1 + col0 DIV + cor0.col0 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
137
3639
7668
skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - col1 + col0 / + cor0.col0 + + col2 * + col0 AS col0 FROM tab1 AS cor0
----
137
3639
7668
query I rowsort
SELECT ALL col2 * + col1 - - col0 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col0 * - cor0.col0 + + col0 FROM tab0 AS cor0
----
-1190
-552
-7832
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col1 col2 FROM tab0 cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * col0 - - cor0.col1 col1 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT col1 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
7372
8192
9374
query I rowsort
SELECT ALL - col1 + col1 * - cor0.col2 + + col0 * - col1 FROM tab1 cor0
----
-1220
-1508
-2301
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + - col2 * col2 col0 FROM tab0 AS cor0
----
1375
3394
975
query I rowsort
SELECT DISTINCT - col1 + col1 + + col0 FROM tab0 AS cor0
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6007
SELECT 50 - col2 DIV - col0 AS col0 FROM tab1
----
50
51
68
skipif mysql # not compatible
query I rowsort label-6007
SELECT 50 - col2 / - col0 AS col0 FROM tab1
----
50
51
68
query I rowsort
SELECT col2 + + col2 * + col1 AS col0 FROM tab1 AS cor0
----
1344
1458
627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 29 col2 FROM tab0 AS cor0
----
29
29
29
query I rowsort
SELECT DISTINCT 92 - - col1 * - col2 FROM tab1
----
-1156
-1312
-478
query I rowsort
SELECT ALL col1 * 63 - - col0 * col2 * - col1 AS col2 FROM tab2
----
-115935
-3906
-49963
query I rowsort
SELECT DISTINCT - col2 * 62 AS col1 FROM tab0
----
-2046
-5084
-62
query I rowsort
SELECT col2 * + 15 AS col2 FROM tab2 AS cor0
----
390
405
570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6014
SELECT + CAST( + ( - cor0.col0 ) AS SIGNED ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
skipif mysql # not compatible
query I rowsort label-6014
SELECT + CAST ( + ( - cor0.col0 ) AS INTEGER ) * col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT + - 45 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba
query I rowsort
SELECT DISTINCT + + 1 * + cor0.col0 * + col1 AS col0 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT - + 35 + + 27 FROM tab2 AS cor0
----
-8
-8
-8
query I rowsort
SELECT DISTINCT + + col2 + + 35 + cor0.col1 * + col0 FROM tab2 AS cor0
----
1416
279
4663
query I rowsort
SELECT ALL + 86 + - cor0.col1 * col1 FROM tab1 AS cor0
----
-14
-590
-83
query I rowsort
SELECT DISTINCT - 86 + 92 AS col0 FROM tab0 AS cor0
----
6
query I rowsort
SELECT - cor0.col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
query I rowsort
SELECT ALL - 89 * + col1 AS col1 FROM tab2 AS cor0
----
-1513
-2759
-5251
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + cor0.col2 * + col0 col0 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT ALL + + cor0.col2 * + col1 * col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT DISTINCT + col2 * col2 + col2 AS col2 FROM tab0 AS cor0
----
1122
2
6806
onlyif mysql # use DIV operator for integer division
query I rowsort label-6026
SELECT + 67 DIV col0 + col2 AS col0 FROM tab2 AS cor0
----
26
36
38
skipif mysql # not compatible
query I rowsort label-6026
SELECT + 67 / col0 + col2 AS col0 FROM tab2 AS cor0
----
26
36
38
query I rowsort
SELECT + - 10 * col0 * col1 + col2 FROM tab2 cor0
----
-13392
-2143
-45994
query I rowsort
SELECT ALL + col2 + + col2 * + col1 * col1 FROM tab2 AS cor0
----
11020
25974
90532
query I rowsort
SELECT ALL + 46 * col0 - - col1 AS col2 FROM tab0
----
1190
1707
4185
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab1.col0 * - col0 * - tab1.col1 col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT cor0.col0 + - col2 + - col2 * col1 AS col2 FROM tab2 cor0
----
-1482
-605
-857
query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE NULL >= ( - col2 * cor0.col2 )
----
query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE - col2 * - col2 NOT BETWEEN col2 AND ( NULL )
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * col1 / + col1 = ( NULL )
----
query I rowsort
SELECT DISTINCT + col2 * - tab0.col1 * col2 AS col1 FROM tab0
----
-611884
-93654
-97
query I rowsort
SELECT col2 * - tab1.col1 * tab1.col0 AS col1 FROM tab1
----
-36480
-4212
-99840
query I rowsort
SELECT - col2 + + tab0.col2 * + col1 FROM tab0
----
2805
7380
96
query III rowsort
SELECT * FROM tab0 WHERE col0 + + col2 NOT IN ( + tab0.col2 / tab0.col1 + col2 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
query I rowsort
SELECT DISTINCT tab2.col2 * + col1 + col2 + - col0 * - col1 FROM tab2
----
1081
2027
6162
query I rowsort
SELECT ALL - col1 * col0 + - col0 AS col2 FROM tab1
----
-1120
-704
-81
query I rowsort
SELECT - col2 * - col0 FROM tab2 WHERE NOT ( - col0 + + tab2.col0 ) IN ( col1 )
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-6042
SELECT col1 DIV + col0 - col2 FROM tab0
----
-30
-81
1
skipif mysql # not compatible
query I rowsort label-6042
SELECT col1 / + col0 - col2 FROM tab0
----
-30
-81
1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 WHERE NOT col0 < ( + col1 * + col0 )
----
query I rowsort
SELECT ALL col0 + tab2.col0 * - col2 FROM tab2
----
-182
-1950
-2923
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 IN ( + col2 * + col0 + cor0.col2 )
----
query I rowsort
SELECT col1 * col0 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND tab2.col1
----
query I rowsort
SELECT ALL + col0 * + tab2.col0 * - tab2.col1 AS col0 FROM tab2
----
-106097
-1519
-358956
query I rowsort
SELECT DISTINCT - col2 * + col1 + + col1 AS col2 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT col0 + - col2 * + col0 FROM tab1
----
-159
-3584
-7600
onlyif mysql # use DIV operator for integer division
query I rowsort label-6050
SELECT DISTINCT - + cor0.col2 DIV + col2 + - col0 * col1 FROM tab1 AS cor0
----
-1041
-641
-79
skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT - + cor0.col2 / + col2 + - col0 * col1 FROM tab1 AS cor0
----
-1041
-641
-79
query I rowsort
SELECT col2 * col1 + - col2 * col1 AS col2 FROM tab1
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - col0 col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col0 + + col1
----
query I rowsort
SELECT cor0.col0 AS col2 FROM tab2, tab1 AS cor0 CROSS JOIN tab1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT NULL IN ( + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * col1 * col2 col2 FROM tab2 AS cor0
----
-22599
-24548
-39884
query I rowsort
SELECT col1 + col0 * - col2 * col0 AS col2 FROM tab2
----
-1292
-158125
-237141
query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> - col2
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col2 * + col0 col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT col2 * + col1 + - col1 * col0 FROM tab1 cor0
----
-70
1326
208
query I rowsort
SELECT DISTINCT - + cor0.col2 * - col2 AS col1 FROM tab1 AS cor0
----
2916
3249
9216
onlyif mysql # use DIV operator for integer division
query I rowsort label-6061
SELECT - + col0 DIV - cor0.col1 col2 FROM tab1 AS cor0
----
0
6
6
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6061
SELECT - + col0 / - cor0.col1 col2 FROM tab1 AS cor0
----
0
6
6
query I rowsort
SELECT ALL + col1 + - col2 * cor0.col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT ALL + + col2 * cor0.col2 * - cor0.col2 AS col2 FROM tab1 cor0
----
-157464
-185193
-884736
query I rowsort
SELECT - 33 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03
query I rowsort
SELECT ALL + cor0.col2 + cor0.col2 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e5ee086d16e1b2450d3f7ac8d26a0f7b
query I rowsort
SELECT DISTINCT - cor0.col2 + + ( - col0 ) FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT + col0 + + col0 * col0 AS col0 FROM tab0 AS cor0
----
1260
600
8010
query I rowsort
SELECT col0 * cor0.col1 * col0 AS col0 FROM tab1 AS cor0
----
234
40960
83200
query I rowsort
SELECT - ( - col0 ) * - col2 + col1 FROM tab0 cor0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6070
SELECT - col1 DIV - col2 - cor0.col2 AS col2 FROM tab0 cor0
----
-31
-81
96
skipif mysql # not compatible
query I rowsort label-6070
SELECT - col1 / - col2 - cor0.col2 AS col2 FROM tab0 cor0
----
-31
-81
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-6071
SELECT DISTINCT - col0 DIV col0 + col2 * + col2 FROM tab1
----
2915
3248
9215
skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT - col0 / col0 + col2 * + col2 FROM tab1
----
2915
3248
9215
query I rowsort
SELECT - col0 * cor0.col2 * + col1 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT - 5 * - col2 FROM tab0 cor0
----
165
410
5
query I rowsort
SELECT + + col1 + + cor0.col0 + 66 FROM tab0 AS cor0
----
176
198
246
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6075
SELECT + CAST( NULL AS SIGNED ) * col1 * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6075
SELECT + CAST ( NULL AS INTEGER ) * col1 * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - 47 + - 84 AS col1 FROM tab2
----
-131
-131
-131
query I rowsort
SELECT 34 + - cor0.col1 AS col0 FROM tab1 AS cor0
----
21
24
8
query I rowsort
SELECT cor0.col1 + col2 * col2 AS col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT - 27 * + cor0.col0 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to bc4ba142e01cf8908b59b57f0026ae45
query I rowsort
SELECT + + cor0.col0 * 45 AS col1 FROM tab0 AS cor0
----
1080
1575
4005
query I rowsort
SELECT tab2.col0 * col2 * 14 FROM tab2
----
2646
28392
42028
query I rowsort
SELECT ALL - 44 AS col2 FROM tab1
----
-44
-44
-44
query I rowsort
SELECT DISTINCT + col0 * cor0.col1 + 96 AS col1 FROM tab2 AS cor0
----
1439
313
4698
query I rowsort
SELECT ALL col2 * 34 FROM tab1 AS cor0
----
1836
1938
3264
onlyif mysql # use DIV operator for integer division
query I rowsort label-6085
SELECT + col0 DIV 89 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6085
SELECT + col0 / 89 FROM tab2 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6086
SELECT col1 DIV 5 AS col2 FROM tab1 AS cor0
----
2
2
5
skipif mysql # not compatible
query I rowsort label-6086
SELECT col1 / 5 AS col2 FROM tab1 AS cor0
----
2
2
5
query I rowsort
SELECT cor0.col2 AS col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT col1 * - col1 * 29 FROM tab1 AS cor0
----
-19604
-2900
-4901
query I rowsort
SELECT ALL col1 * ( 82 ) FROM tab1
----
1066
2132
820
query I rowsort
SELECT DISTINCT col1 * + ( + 39 * col2 ) AS col1 FROM tab1
----
22230
48672
54756
query I rowsort
SELECT DISTINCT - cor0.col0 FROM tab0 cor0 CROSS JOIN tab1, tab0 AS cor1
----
-24
-35
-89
query I rowsort
SELECT ALL + 45 * col1 + col2 AS col0 FROM tab1 AS cor0
----
1224
507
681
onlyif mysql # use DIV operator for integer division
query I rowsort label-6093
SELECT + 3 DIV 97 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6093
SELECT + 3 / 97 FROM tab0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab2.col1 col1 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ( col0 ) + cor0.col2 * col0 AS col0 FROM tab1 AS cor0
----
165
3712
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6096
SELECT - + CAST( - 55 AS SIGNED ) * + col0 + col2 AS col0 FROM tab2 cor0
----
412
4316
4383
skipif mysql # not compatible
query I rowsort label-6096
SELECT - + CAST ( - 55 AS INTEGER ) * + col0 + col2 AS col0 FROM tab2 cor0
----
412
4316
4383
query I rowsort
SELECT ( col0 * col2 + 73 * + col0 ) FROM tab2
----
700
7722
8769
query I rowsort
SELECT DISTINCT - 10 * ( col1 * col0 ) FROM tab2
----
-13430
-2170
-46020
query I rowsort
SELECT tab2.col0 + 3 FROM tab2, tab0 AS cor0
----
9 values hashing to 7561416954a2bc3f5285b9bec6d525be
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6100
SELECT col1 * col1 * + CAST( + col1 AS SIGNED ) FROM tab1
----
1000
17576
2197
skipif mysql # not compatible
query I rowsort label-6100
SELECT col1 * col1 * + CAST ( + col1 AS INTEGER ) FROM tab1
----
1000
17576
2197
query I rowsort
SELECT tab1.col1 * cor0.col0 AS col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to e6d1e51162f22414194f33e791083a39
query I rowsort
SELECT DISTINCT - 21 + - col2 FROM tab0
----
-103
-22
-54
query I rowsort
SELECT ALL cor0.col1 AS col2 FROM tab2, tab0, tab0 AS cor0
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6104
SELECT + cor0.col1 * cor0.col0 + CAST( - 25 AS SIGNED ) * col1 + col0 * col2 FROM tab1 AS cor0
----
-410
4038
8395
skipif mysql # not compatible
query I rowsort label-6104
SELECT + cor0.col1 * cor0.col0 + CAST ( - 25 AS INTEGER ) * col1 + col0 * col2 FROM tab1 AS cor0
----
-410
4038
8395
onlyif mysql # use DIV operator for integer division
query I rowsort label-6105
SELECT - 85 + col2 DIV + col0 + - 17 AS col1 FROM tab1 AS cor0
----
-101
-102
-84
skipif mysql # not compatible
query I rowsort label-6105
SELECT - 85 + col2 / + col0 + - 17 AS col1 FROM tab1 AS cor0
----
-101
-102
-84
query I rowsort
SELECT ALL - 29 + col2 + col2 FROM tab2 cor0
----
23
25
47
query I rowsort
SELECT DISTINCT + cor0.col0 + + cor0.col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT ALL - ( col2 ) + 15 FROM tab0 AS cor0
----
-18
-67
14
query I rowsort
SELECT - col2 * + cor0.col0 + - ( 10 ) - col0 FROM tab2 AS cor0
----
-206
-2116
-3091
query I rowsort
SELECT + col1 * col2 + cor0.col0 - + col0 * col1 FROM tab0 AS cor0
----
-3263
-548
798
query I rowsort
SELECT 67 + col1 FROM tab0 AS cor0
----
153
158
164
query I rowsort
SELECT + col1 + + col0 - - col2 AS col2 FROM tab2 AS cor0
----
134
163
65
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + - col2 * - 33 col1 FROM tab0 AS cor0
----
-2
1065
2617
onlyif mysql # use DIV operator for integer division
query I rowsort label-6114
SELECT DISTINCT + col1 DIV - ( + col1 ) FROM tab1
----
-1
skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT + col1 / - ( + col1 ) FROM tab1
----
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6116
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6116
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 + + tab1.col1 col2 FROM tab1
----
-57
-70
-73
query I rowsort
SELECT ALL + 13 + col1 FROM tab0
----
104
110
99
query I rowsort
SELECT ALL tab0.col0 * 44 FROM tab0, tab2 AS cor0
----
9 values hashing to 206d8553d3531694d3a4d3387cb9c902
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + + tab2.col0 * + 73 col2 FROM tab2
----
5789
5862
606
query I rowsort
SELECT DISTINCT + 55 * col1 FROM tab0 cor0
----
4730
5005
5335
query I rowsort
SELECT DISTINCT + 58 * col1 AS col0 FROM tab2 AS cor0
----
1798
3422
986
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6124
SELECT - col2 * CAST( NULL AS SIGNED ) + ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6124
SELECT - col2 * CAST ( NULL AS INTEGER ) + ( col1 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6125
SELECT DISTINCT - - col2 + ( col2 + + col1 ) DIV col0 AS col0 FROM tab2 AS cor0
----
27
35
38
skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT - - col2 + ( col2 + + col1 ) / col0 AS col0 FROM tab2 AS cor0
----
27
35
38
query I rowsort
SELECT + col1 + - 9 AS col0 FROM tab1 cor0
----
1
17
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + col2 ) * col1 col0 FROM tab1
----
1344
1458
627
query I rowsort
SELECT ALL + col2 + - col0 * - col1 FROM tab2 cor0
----
1381
244
4628
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6129
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6129
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL 36 * col1 FROM tab0
----
3096
3276
3492
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 3 + - tab0.col1 ) * 12 col2 FROM tab0
----
-1068
-1128
-1200
query I rowsort
SELECT - - ( 27 ) * col2 AS col0 FROM tab2 AS cor0
----
1026
702
729
query I rowsort
SELECT DISTINCT + ( - col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6134
SELECT CAST( + col2 AS SIGNED ) * col0 FROM tab0 AS cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-6134
SELECT CAST ( + col2 AS INTEGER ) * col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - cor0.col2 * + ( - col2 ) * 8 AS col0 FROM tab2 AS cor0
----
11552
5408
5832
query I rowsort
SELECT DISTINCT - - col1 * - col2 AS col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + 48 * + cor0.col0 AS col0 FROM tab2, tab0 AS cor0
----
1152
1680
4272
onlyif mysql # use DIV operator for integer division
query I rowsort label-6139
SELECT DISTINCT 8 + - col0 DIV - col0 AS col0 FROM tab2 AS cor0
----
9
skipif mysql # not compatible
query I rowsort label-6139
SELECT DISTINCT 8 + - col0 / - col0 AS col0 FROM tab2 AS cor0
----
9
query I rowsort
SELECT ALL + ( - cor0.col0 ) * col1 + - 66 AS col1 FROM tab0 AS cor0
----
-2130
-3461
-8165
query I rowsort
SELECT DISTINCT col0 - - cor0.col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - col2 + + 29 FROM tab1 cor0
----
-25
-28
-67
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6143
SELECT DISTINCT 17 * col0 + col1 * - CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-625
1191
988
skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT 17 * col0 + col1 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-625
1191
988
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( + col0 AS REAL ) col0 FROM tab1 cor0
----
3
64
80
query I rowsort
SELECT DISTINCT + + col2 + col1 + - col1 AS col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 col1 FROM tab1 AS cor0
----
34
34
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6147
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - col2 + col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - col2 + col2 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col2 col2 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-6149
SELECT + - cor0.col1 DIV - col1 + + 60 FROM tab2 AS cor0
----
61
61
61
skipif mysql # not compatible
query I rowsort label-6149
SELECT + - cor0.col1 / - col1 + + 60 FROM tab2 AS cor0
----
61
61
61
query I rowsort
SELECT - col1 + ( + col2 + + col0 ) * col2 AS col1 FROM tab0 AS cor0
----
-61
13931
1795
query I rowsort
SELECT DISTINCT col1 * - 39 + col0 FROM tab0 cor0
----
-3330
-3460
-3748
query I rowsort
SELECT - col0 + + 3 FROM tab0 AS cor0
----
-21
-32
-86
query I rowsort
SELECT + col1 + - col0 * col2 * - col2 FROM tab0 AS cor0
----
132
26222
598527
query I rowsort
SELECT DISTINCT - + col1 - cor0.col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT cor0.col0 + ( - col2 ) AS col0 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT ALL - cor0.col2 - - ( 33 ) FROM tab1 AS cor0
----
-21
-24
-63
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + ( + col1 ) + + col2 * ( - 57 + col1 ) col2 FROM tab0 AS cor0
----
10250
137
3795
query I rowsort
SELECT DISTINCT col0 * ( col1 ) + + col2 FROM tab2
----
1381
244
4628
query I rowsort
SELECT - 54 * + col1 FROM tab2 AS cor0
----
-1674
-3186
-918
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6160
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab1, tab0 AS cor0, tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-6160
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab1, tab0 AS cor0, tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6161
SELECT - col1 DIV ( 3 + + col1 ) FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6161
SELECT - col1 / ( 3 + + col1 ) FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT 56 - - 78 * + cor1.col0 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7b7f66c61ec1966584666ac8b5bb2aa5
query I rowsort
SELECT ALL 26 FROM tab0, tab1 AS cor0, tab1 cor1
----
27 values hashing to ede8226bb7e602e221f9d98345b4da37
query I rowsort
SELECT tab1.col0 - + 54 AS col1 FROM tab1
----
-51
10
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6165
SELECT + - CAST( NULL AS SIGNED ) / + 85 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-6165
SELECT + - CAST ( NULL AS INTEGER ) / + 85 AS col1 FROM tab0, tab2, tab2 AS cor0, tab1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT DISTINCT 63 * 69 AS col0 FROM tab1, tab2 cor0
----
4347
query I rowsort
SELECT DISTINCT - col2 * + 14 FROM tab0
----
-1148
-14
-462
query I rowsort
SELECT col1 + col2 * - col0 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6169
SELECT - CAST( col2 AS SIGNED ) * col1 col0 FROM tab0
----
-2838
-7462
-97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6169
SELECT - CAST ( col2 AS INTEGER ) * col1 col0 FROM tab0
----
-2838
-7462
-97
query I rowsort
SELECT col1 + + col1 * - cor0.col1 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT + ( + cor0.col0 ) + + col2 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT ALL - 44 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2
query I rowsort
SELECT - + col2 * col2 + + col1 * 24 AS col1 FROM tab0 cor0
----
-4540
2327
975
onlyif mysql # use DIV operator for integer division
query I rowsort label-6174
SELECT + - col1 * col0 + col0 + + col0 DIV col0 FROM tab1 AS cor0
----
-575
-74
-959
skipif mysql # not compatible
query I rowsort label-6174
SELECT + - col1 * col0 + col0 + + col0 / col0 FROM tab1 AS cor0
----
-575
-74
-959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col2 + - col0 col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT 17 + - col0 FROM tab2
----
-61
-62
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6177
SELECT tab1.col0 * - col2 + - CAST( NULL AS SIGNED ) + + 78 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6177
SELECT tab1.col0 * - col2 + - CAST ( NULL AS INTEGER ) + + 78 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL cor0.col2 * - col0 + 63 FROM tab0 cor0
----
-7235
-729
28
query I rowsort
SELECT + col1 * col0 + - col0 FROM tab1 AS cor0
----
576
75
960
query I rowsort
SELECT DISTINCT + col0 * col2 + + 60 - - col0 AS col1 FROM tab0 AS cor0
----
130
7447
876
query I rowsort
SELECT col1 * - col1 + col1 AS col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT 24 AS col0 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to aeeac431d22528188e8a5a2a60d2d080
query I rowsort
SELECT DISTINCT col0 * ( col1 ) + + col1 * 97 AS col1 FROM tab1 AS cor0
----
1610
2301
2600
query I rowsort
SELECT ALL + + col2 - 83 AS col2 FROM tab1 AS cor0
----
-26
-29
13
query I rowsort
SELECT DISTINCT + - col0 + ( - 57 ) + - col0 FROM tab0 AS cor0
----
-105
-127
-235
onlyif mysql # use DIV operator for integer division
query I rowsort label-6186
SELECT ALL col2 DIV col1 + + col2 FROM tab2 AS cor0
----
26
27
40
skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL col2 / col1 + + col2 FROM tab2 AS cor0
----
26
27
40
query I rowsort
SELECT ALL col2 * ( cor0.col0 ) - cor0.col0 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT ALL + + col0 * 17 FROM tab2 AS cor0
----
119
1326
1343
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - cor0.col0 + cor0.col1 col2 FROM tab1 AS cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-6190
SELECT ALL col1 DIV - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6190
SELECT ALL col1 / - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT + + cor0.col0 + - 76 FROM tab1 AS cor0
----
-12
-73
4
query I rowsort
SELECT ALL col2 * + col2 * col0 AS col0 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT DISTINCT + cor0.col0 * 8 + - col0 * + cor0.col2 AS col0 FROM tab2 AS cor0
----
-133
-1404
-2370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6194
SELECT + col0 * CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
-162
-3648
-7680
skipif mysql # not compatible
query I rowsort label-6194
SELECT + col0 * CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT - col0 + - col0 AS col2 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT ALL - 23 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to 9bd721f99d79dce21b1de2860fd51ed5
query I rowsort
SELECT DISTINCT + tab2.col1 * 52 AS col0 FROM tab2, tab2 AS cor0
----
1612
3068
884
query I rowsort
SELECT ALL 27 + + col2 FROM tab1
----
123
81
84
onlyif mysql # use DIV operator for integer division
query I rowsort label-6199
SELECT ALL + col1 + + 98 * col0 DIV col2 FROM tab1 AS cor0
----
120
31
94
skipif mysql # not compatible
query I rowsort label-6199
SELECT ALL + col1 + + 98 * col0 / col2 FROM tab1 AS cor0
----
120
31
94
query I rowsort
SELECT - ( + col1 ) * cor0.col2 FROM tab2 AS cor0
----
-1534
-646
-837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6201
SELECT DISTINCT + 42 + col0 * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6201
SELECT DISTINCT + 42 + col0 * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT - 84 AS col2 FROM tab1 cor0
----
-84
-84
-84
query I rowsort
SELECT - col2 + col2 * - col2 - ( col1 ) AS col2 FROM tab1 cor0
----
-2996
-3316
-9325
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 + - cor0.col1 * cor0.col0 col0 FROM tab2 AS cor0
----
-1275
-149
-4534
query I rowsort
SELECT DISTINCT - 43 + 55 AS col1 FROM tab0 cor0
----
12
query I rowsort
SELECT ALL 35 + - ( col2 ) - col0 FROM tab1 AS cor0
----
-141
-22
-86
query I rowsort
SELECT ALL col0 - col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + - 62 * - col2 FROM tab0 AS cor0
----
2046
5084
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-6209
SELECT ALL cor0.col2 - + col0 DIV - cor0.col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-6209
SELECT ALL cor0.col2 - + col0 / - cor0.col1 FROM tab2 AS cor0
----
27
27
42
query I rowsort
SELECT 39 * col0 - + col2 FROM tab0 AS cor0
----
1364
3389
903
query I rowsort
SELECT DISTINCT - 69 * col0 + - col0 * + 63 + + col0 * - cor0.col1 * col0 FROM tab1 AS cor0
----
-49408
-630
-93760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - col1 col0 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - ( 65 ) AS col0 FROM tab0, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( cor0.col2 ) * + 2 + col1 col1 FROM tab2 cor0
----
111
85
93
query I rowsort
SELECT 97 + col2 AS col0 FROM tab1 AS cor0
----
151
154
193
query I rowsort
SELECT DISTINCT col2 - + col0 * col1 * + col1 FROM tab1
----
-13424
-1974
-6343
query I rowsort
SELECT - 62 * cor0.col1 * - col0 - 52 FROM tab0 AS cor0
----
127916
210438
502086
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6218
SELECT CAST( NULL AS SIGNED ) * tab0.col2 * col1 + + col0 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6218
SELECT CAST ( NULL AS INTEGER ) * tab0.col2 * col1 + + col0 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 * cor0.col1 * + col2 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT ALL - cor0.col1 + - ( + col0 ) AS col0 FROM tab0 AS cor0
----
-110
-132
-180
onlyif mysql # use DIV operator for integer division
query I rowsort label-6221
SELECT ALL + col0 - col1 * 53 DIV col1 AS col0 FROM tab1 AS cor0
----
-50
11
27
skipif mysql # not compatible
query I rowsort label-6221
SELECT ALL + col0 - col1 * 53 / col1 AS col0 FROM tab1 AS cor0
----
-50
11
27
query I rowsort
SELECT ALL + col1 + ( + col1 ) FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT DISTINCT cor0.col0 + - 6 * 89 AS col0 FROM tab2 AS cor0
----
-455
-456
-527
query I rowsort
SELECT col2 * 93 * + col2 AS col0 FROM tab1 AS cor0
----
271188
302157
857088
query I rowsort
SELECT DISTINCT - col1 + - ( 23 ) * cor0.col2 AS col0 FROM tab2 AS cor0
----
-652
-657
-891
query I rowsort
SELECT ( + col1 ) * - 22 - col0 FROM tab0
----
-1916
-2091
-2169
query I rowsort
SELECT DISTINCT + col1 * - ( 83 ) FROM tab0 AS cor0
----
-7138
-7553
-8051
query I rowsort
SELECT + col2 * 83 FROM tab2 cor0
----
2158
2241
3154
onlyif mysql # use DIV operator for integer division
query I rowsort label-6229
SELECT DISTINCT + + cor0.col1 DIV + col0 - + col2 col1 FROM tab2 AS cor0
----
-23
-26
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + + cor0.col1 / + col0 - + col2 col1 FROM tab2 AS cor0
----
-23
-26
-38
query I rowsort
SELECT ALL - col0 + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-56
-6162
-6320
query I rowsort
SELECT col1 * col2 * col1 FROM tab1 AS cor0
----
16224
36504
5700
query I rowsort
SELECT DISTINCT + + 74 AS col0 FROM tab2 cor0
----
74
query I rowsort
SELECT ALL - col0 + + col0 * - col0 + cor0.col0 AS col1 FROM tab1 AS cor0
----
-4096
-6400
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-6234
SELECT ALL + 4 DIV col1 + CAST( col1 AS SIGNED ) + + col0 FROM tab2 AS cor0
----
137
38
96
skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL + 4 / col1 + CAST ( col1 AS INTEGER ) + + col0 FROM tab2 AS cor0
----
137
38
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6235
SELECT col0 + tab0.col2 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6235
SELECT col0 + tab0.col2 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6236
SELECT - tab0.col0 + tab0.col1 DIV + 64 AS col1 FROM tab0
----
-23
-34
-88
skipif mysql # not compatible
query I rowsort label-6236
SELECT - tab0.col0 + tab0.col1 / + 64 AS col1 FROM tab0
----
-23
-34
-88
query I rowsort
SELECT ( + col0 ) * col1 + 1 AS col1 FROM tab2
----
1344
218
4603
query I rowsort
SELECT - ( col1 ) * 17 + + col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1376
-1405
-1613
query I rowsort
SELECT 94 * + col1 AS col0 FROM tab0 AS cor0
----
8084
8554
9118
query I rowsort
SELECT ALL + 25 + cor0.col0 FROM tab2 AS cor0
----
103
104
32
query I rowsort
SELECT DISTINCT - col1 + col0 * + col1 + + col2 FROM tab0 AS cor0
----
2011
3299
8090
query I rowsort
SELECT ALL - col1 + - col0 * 32 FROM tab0 AS cor0
----
-1217
-2939
-854
query I rowsort
SELECT col2 + + cor0.col2 * + ( 54 ) * - col0 FROM tab0 AS cor0
----
-1889
-394010
-42735
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 + - 13 * + col0 col1 FROM tab1 AS cor0
----
-192
0
39
query I rowsort
SELECT DISTINCT ( + col2 ) AS col1 FROM tab2
----
26
27
38
query I rowsort
SELECT ALL - col2 + + 61 AS col1 FROM tab2 cor0
----
23
34
35
query I rowsort
SELECT DISTINCT - tab0.col2 * 12 AS col0 FROM tab0
----
-12
-396
-984
query I rowsort
SELECT 42 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col2 * + col0 col2 FROM tab2 cor0
----
-196
-2106
-3081
query I rowsort
SELECT DISTINCT - col1 * ( - 76 ) FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT - col0 + 87 + col0 FROM tab0 AS cor0
----
87
87
87
query I rowsort
SELECT DISTINCT - cor0.col2 AS col0 FROM tab1, tab2 cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT - col2 + - 59 FROM tab0
----
-141
-60
-92
query I rowsort
SELECT DISTINCT 65 + + tab0.col2 FROM tab0
----
147
66
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-6255
SELECT + - col0 + - col0 DIV - col2 FROM tab1 AS cor0
----
-3
-63
-80
skipif mysql # not compatible
query I rowsort label-6255
SELECT + - col0 + - col0 / - col2 FROM tab1 AS cor0
----
-3
-63
-80
query I rowsort
SELECT DISTINCT + - 63 * col0 FROM tab0 AS cor0
----
-1512
-2205
-5607
query I rowsort
SELECT DISTINCT col2 + 67 AS col0 FROM tab2
----
105
93
94
query I rowsort
SELECT 31 * col1 + col2 FROM tab2
----
1855
565
988
query I rowsort
SELECT + tab0.col2 * col2 * col1 AS col0 FROM tab0
----
611884
93654
97
query I rowsort
SELECT DISTINCT + 66 + + col0 * col0 * ( + col0 ) FROM tab0
----
13890
42941
705035
query I rowsort
SELECT ALL col1 + col2 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + 11 + col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-30
-41
31
query I rowsort
SELECT + 2 - - col1 FROM tab1 AS cor0
----
12
15
28
query I rowsort
SELECT DISTINCT + col0 + + col1 + - col1 * ( + col1 * col1 ) FROM tab0 AS cor0
----
-635946
-753391
-912541
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6265
SELECT DISTINCT - CAST( + 66 AS SIGNED ) * + col0 FROM tab1 AS cor0
----
-198
-4224
-5280
skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT - CAST ( + 66 AS INTEGER ) * + col0 FROM tab1 AS cor0
----
-198
-4224
-5280
query I rowsort
SELECT 31 + 61 FROM tab0 AS cor0
----
92
92
92
query I rowsort
SELECT ALL + + ( + ( - col1 ) ) * - cor0.col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT + cor0.col2 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab1 AS cor2
----
81 values hashing to e938777ebffc2e3e9c0cdfaa4f732c05
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - col0 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT - cor0.col1 + - col2 * ( col2 ) AS col1 FROM tab2 AS cor0
----
-1461
-735
-760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 - - col1 col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-6272
SELECT + col2 DIV col0 + cor0.col0 FROM tab2 AS cor0
----
10
78
79
skipif mysql # not compatible
query I rowsort label-6272
SELECT + col2 / col0 + cor0.col0 FROM tab2 AS cor0
----
10
78
79
query I rowsort
SELECT ALL - col0 + - col1 * 20 * col0 FROM tab0 cor0
----
-162069
-41304
-67935
onlyif mysql # use DIV operator for integer division
query I rowsort label-6274
SELECT DISTINCT + col0 DIV col1 + + 10 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
30
646
806
skipif mysql # not compatible
query I rowsort label-6274
SELECT DISTINCT + col0 / col1 + + 10 * + cor0.col0 AS col2 FROM tab1 AS cor0
----
30
646
806
query I rowsort
SELECT ALL + 44 * col1 + + ( + col1 ) * col1 - + 58 AS col2 FROM tab1 AS cor0
----
1762
482
683
onlyif mysql # use DIV operator for integer division
query I rowsort label-6276
SELECT + - ( col2 ) + + col1 DIV col1 col0 FROM tab0 AS cor0
----
-32
-81
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6276
SELECT + - ( col2 ) + + col1 / col1 col0 FROM tab0 AS cor0
----
-32
-81
0
query I rowsort
SELECT ALL + cor0.col0 * col0 + + col1 FROM tab2 AS cor0
----
6143
6258
80
query I rowsort
SELECT + + cor0.col2 * + cor0.col1 AS col2 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT ALL - 91 + + col1 * - col1 AS col0 FROM tab2
----
-1052
-3572
-380
query I rowsort
SELECT ALL - 14 AS col1 FROM tab0, tab1 AS cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94
query I rowsort
SELECT DISTINCT + 39 + + col2 AS col0 FROM tab1
----
135
93
96
query I rowsort
SELECT ALL + col0 + 91 FROM tab1
----
155
171
94
query I rowsort
SELECT ALL + 24 + + col2 AS col2 FROM tab2
----
50
51
62
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6284
SELECT + cor0.col1 * + col1 + - col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6284
SELECT + cor0.col1 * + col1 + - col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ( col0 ) + col0 FROM tab0 cor0
----
178
48
70
query I rowsort
SELECT DISTINCT cor0.col2 AS col2 FROM tab0, tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-6287
SELECT ALL ( tab0.col1 ) DIV + col0 FROM tab0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-6287
SELECT ALL ( tab0.col1 ) / + col0 FROM tab0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) col1 FROM tab0
----
86
91
97
query I rowsort
SELECT DISTINCT - 77 AS col2 FROM tab2, tab2 cor0
----
-77
query I rowsort
SELECT ALL + 88 * col2 FROM tab1 AS cor0
----
4752
5016
8448
query I rowsort
SELECT 54 * + col0 FROM tab0
----
1296
1890
4806
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6292
SELECT + ( + col2 * col0 ) + ( col2 * + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6292
SELECT + ( + col2 * col0 ) + ( col2 * + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 36 + + col1 FROM tab2
----
53
67
95
query I rowsort
SELECT ( - col0 ) * col1 AS col2 FROM tab0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-6295
SELECT + 20 + - col1 DIV col1 + col1 FROM tab1
----
29
32
45
skipif mysql # not compatible
query I rowsort label-6295
SELECT + 20 + - col1 / col1 + col1 FROM tab1
----
29
32
45
query I rowsort
SELECT DISTINCT cor1.col2 + + 37 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
133
91
94
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) * - col1 col2 FROM tab2
----
289
3481
961
query I rowsort
SELECT + cor0.col2 FROM tab2, tab1, tab1 cor0
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ( + col2 + col0 ) * + col0 FROM tab2
----
238
8112
9243
query I rowsort
SELECT ALL - - cor0.col1 + + cor0.col2 AS col2 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + col2 * + ( - col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-119808
-32490
-75816
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab1 AS cor3
----
3645 values hashing to 6275704c8dcc358f1d7c268582457eaa
query I rowsort
SELECT + + cor0.col0 + ( 71 ) FROM tab2 AS cor0
----
149
150
78
query I rowsort
SELECT - col1 + + 7 FROM tab0 AS cor0
----
-79
-84
-90
query I rowsort
SELECT col0 * col1 + col2 * - col0 FROM tab1
----
-3008
-6640
-84
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6306
SELECT - col0 * CAST( - col0 AS SIGNED ) + col0 + + col1 FROM tab1
----
38
4170
6493
skipif mysql # not compatible
query I rowsort label-6306
SELECT - col0 * CAST ( - col0 AS INTEGER ) + col0 + + col1 FROM tab1
----
38
4170
6493
query I rowsort
SELECT ALL col0 + tab1.col0 - col1 AS col2 FROM tab1
----
-20
118
147
query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2, tab0 AS cor0
----
73
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + + 58 + col2 col1 FROM tab2 AS cor0
----
58
58
58
query I rowsort
SELECT + col2 + - 7 + + col1 FROM tab0 AS cor0
----
112
166
91
query I rowsort
SELECT ALL + - 90 FROM tab1 AS cor0
----
-90
-90
-90
query I rowsort
SELECT + - col2 * 40 * col2 - col1 FROM tab2 AS cor0
----
-27099
-29191
-57777
query I rowsort
SELECT ALL + + 80 FROM tab2 AS cor0
----
80
80
80
query I rowsort
SELECT DISTINCT + 15 + col2 * - col0 + + 5 FROM tab2 AS cor0
----
-169
-2008
-2982
query I rowsort
SELECT ALL + 26 + - 18 FROM tab0 AS cor0
----
8
8
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6316
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6316
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
24
35
89
query I rowsort
SELECT - 84 * - cor0.col2 FROM tab1 AS cor0
----
4536
4788
8064
query I rowsort
SELECT 34 - col1 FROM tab2 AS cor0
----
-25
17
3
query I rowsort
SELECT ALL + - col1 + - col2 * col2 AS col1 FROM tab1 AS cor0
----
-2942
-3259
-9229
query I rowsort
SELECT ALL - cor0.col1 * col1 * col1 FROM tab0 AS cor0
----
-636056
-753571
-912673
query I rowsort
SELECT ALL + 39 * col0 AS col0 FROM tab1
----
117
2496
3120
query I rowsort
SELECT ALL + col1 - col0 AS col1 FROM tab0 AS cor0
----
2
62
62
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 66 col1 FROM tab0 AS cor0
----
66
query I rowsort
SELECT 0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col0 * ( cor0.col0 ) + col2 FROM tab1 AS cor0
----
4153
63
6496
query I rowsort
SELECT ALL col1 * + 38 FROM tab2 cor0
----
1178
2242
646
query I rowsort
SELECT DISTINCT + col2 - ( - col0 ) FROM tab0 AS cor0
----
171
36
57
query I rowsort
SELECT ALL - cor0.col0 * col0 + + col1 * + cor0.col1 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT ALL + + col2 + 78 AS col1 FROM tab2 cor0
----
104
105
116
query I rowsort
SELECT ALL + 29 + 24 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda
query I rowsort
SELECT + 87 + - col1 * col0 FROM tab0
----
-1977
-3308
-8012
query I rowsort
SELECT ALL + + col1 + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6333
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col0 + col1 * + col0 FROM tab2 AS cor0
----
1384
197
4654
skipif mysql # not compatible
query I rowsort label-6333
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col0 + col1 * + col0 FROM tab2 AS cor0
----
1384
197
4654
query I rowsort
SELECT + 98 * 30 + col2 FROM tab1 AS cor0
----
2994
2997
3036
query I rowsort
SELECT + col2 + 59 * + col2 * + col2 FROM tab0 cor0
----
396798
60
64284
query I rowsort
SELECT + 81 * cor0.col2 + - col1 FROM tab2 AS cor0
----
2047
2156
3061
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0, tab0 cor1 WHERE NOT NULL <> ( NULL ) AND NOT NULL = ( NULL )
----
query I rowsort
SELECT ALL - col0 * - col1 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT DISTINCT + 32 * col1 FROM tab2 AS cor0
----
1888
544
992
query I rowsort
SELECT ALL - col0 + - col1 * cor0.col2 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT ALL col1 * cor0.col0 + - col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT DISTINCT - - col1 * col0 + - col2 AS col1 FROM tab0 AS cor0
----
2031
3394
8017
query I rowsort
SELECT ALL + col2 + col1 * col0 FROM tab1 cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6344
SELECT cor0.col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6344
SELECT cor0.col1 / + col1 AS col2 FROM tab0 AS cor0
----
1
1
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6345
SELECT + col0 DIV - col0 AS col0 FROM tab1 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6345
SELECT + col0 / - col0 AS col0 FROM tab1 cor0
----
-1
-1
-1
query I rowsort
SELECT col0 - - 61 * col0 FROM tab2
----
434
4836
4898
query I rowsort
SELECT - col0 * col2 + - col1 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - 13 + - 71 FROM tab2
----
-84
-84
-84
query I rowsort
SELECT ALL 72 * col0 AS col2 FROM tab1
----
216
4608
5760
query I rowsort
SELECT ALL + col0 + col1 * col2 AS col1 FROM tab2 AS cor0
----
1612
725
844
query I rowsort
SELECT col1 + - col2 * + col0 AS col0 FROM tab2 cor0
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT - col2 * + 19 FROM tab1 AS cor0
----
-1026
-1083
-1824
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 + - col2 - col0 col2 FROM tab1 AS cor0
----
-2973
-3370
-9392
query I rowsort
SELECT col2 + - col0 - + col0 FROM tab1 AS cor0
----
-64
-71
48
query I rowsort
SELECT ALL col0 + + ( - col0 ) * col1 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col0 * col1 + col2 * col0 AS col0 FROM tab1 AS cor0
----
3008
6640
84
query I rowsort
SELECT DISTINCT + + col0 * + 54 + + 27 FROM tab2 AS cor0
----
405
4239
4293
query I rowsort
SELECT + col0 - 15 FROM tab1 AS cor0
----
-12
49
65
query I rowsort
SELECT ALL col2 * + col2 + + cor0.col1 AS col2 FROM tab2 cor0
----
1461
735
760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 41 + + 91 col0 FROM tab2 AS cor0
----
3289
3330
378
query I rowsort
SELECT ALL - cor0.col2 * - 42 * 71 + + col2 FROM tab1 AS cor0
----
161082
170031
286368
onlyif mysql # use DIV operator for integer division
query I rowsort label-6362
SELECT 5 DIV col1 AS col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6362
SELECT 5 / col1 AS col2 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6363
SELECT ALL + - col0 DIV col1 + 15 FROM tab1 AS cor0
----
15
9
9
skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL + - col0 / col1 + 15 FROM tab1 AS cor0
----
15
9
9
query I rowsort
SELECT - + col2 * - ( + cor0.col2 ) + + col0 AS col0 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT ALL col0 * - ( col1 ) - + col0 * col0 * col0 AS col1 FROM tab2 AS cor0
----
-479154
-494382
-560
query I rowsort
SELECT col0 - ( col2 ) AS col2 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + col2 + - ( + col1 ) * col1 AS col1 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT + + col0 * 92 FROM tab1 AS cor0
----
276
5888
7360
query I rowsort
SELECT ALL - col1 * ( - 58 ) + - col0 + + col1 AS col2 FROM tab1 AS cor0
----
1531
526
687
query I rowsort
SELECT + col2 + - col1 * col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6371
SELECT DISTINCT + CAST( ( + col0 ) AS SIGNED ) + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + CAST ( ( + col0 ) AS INTEGER ) + - col2 AS col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT ALL + - ( + cor0.col2 ) AS col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT 83 + 64 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 7ea90b86e1b35d6116fcda7346d04909
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6374
SELECT ALL - col2 + CAST( + col0 AS SIGNED ) * col2 FROM tab1
----
108
3591
7584
skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL - col2 + CAST ( + col0 AS INTEGER ) * col2 FROM tab1
----
108
3591
7584
query I rowsort
SELECT ALL - col0 + ( col2 + tab0.col1 ) FROM tab0
----
63
84
95
query IIIIIIIIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 cor1, tab1 AS cor2
----
972 values hashing to 4634d10e8b6b37510bb99745aade36ab
query I rowsort
SELECT + col1 * + col0 * + col1 AS col2 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT col0 * + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1323
-158184
-237158
onlyif mysql # use DIV operator for integer division
query I rowsort label-6379
SELECT col0 + col1 DIV col0 col0 FROM tab1 cor0
----
11
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6379
SELECT col0 + col1 / col0 col0 FROM tab1 cor0
----
11
64
80
query I rowsort
SELECT DISTINCT col1 + + col0 * - tab1.col0 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT col1 * + col1 + col2 + col0 FROM tab2
----
3585
406
995
query I rowsort
SELECT + tab0.col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col0 ) AND NOT ( + col2 * col0 + col2 ) = col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6383
SELECT + tab1.col1 DIV tab1.col1 AS col0 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6383
SELECT + tab1.col1 / tab1.col1 AS col0 FROM tab1
----
1
1
1
query I rowsort
SELECT col2 + col0 - - col1 FROM tab1 AS cor0
----
131
189
83
query I rowsort
SELECT col2 + + col1 * col1 FROM tab0 AS cor0
----
7429
8363
9410
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 ALL col1 * + col2 * col2 + col1 FROM tab0
----
194
611975
93740
query I rowsort
SELECT + col2 * cor0.col0 AS col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - - col0 - col1 AS col0 FROM tab1 AS cor0
----
-23
54
67
onlyif mysql # use DIV operator for integer division
query I rowsort label-6390
SELECT DISTINCT + col0 DIV cor0.col0 AS col2 FROM tab1 AS cor0
----
1
skipif mysql # not compatible
query I rowsort label-6390
SELECT DISTINCT + col0 / cor0.col0 AS col2 FROM tab1 AS cor0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-6391
SELECT ALL - col0 + col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
-79
-8
-80
skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - col0 + col1 / - col1 AS col0 FROM tab2 AS cor0
----
-79
-8
-80
query I rowsort
SELECT col2 * col0 + + col1 FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6393
SELECT ALL + col2 * col2 + - col2 DIV col0 col1 FROM tab1 AS cor0
----
2898
3249
9215
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6393
SELECT ALL + col2 * col2 + - col2 / col0 col1 FROM tab1 AS cor0
----
2898
3249
9215
onlyif mysql # use DIV operator for integer division
query I rowsort label-6394
SELECT cor0.col2 + + col0 DIV + col1 FROM tab2 AS cor0
----
27
27
42
skipif mysql # not compatible
query I rowsort label-6394
SELECT cor0.col2 + + col0 / + col1 FROM tab2 AS cor0
----
27
27
42
onlyif mysql # use DIV operator for integer division
query I rowsort label-6395
SELECT + tab0.col1 DIV + col1 FROM tab0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6395
SELECT + tab0.col1 / + col1 FROM tab0
----
1
1
1
query I rowsort
SELECT - cor0.col1 * cor0.col1 + cor0.col1 * col0 FROM tab1 AS cor0
----
-598
540
871
query I rowsort
SELECT DISTINCT + col1 + col2 + + col2 AS col0 FROM tab1
----
124
134
205
query I rowsort
SELECT col1 + tab2.col1 + + col0 * + col2 FROM tab2
----
2146
251
3036
query I rowsort
SELECT DISTINCT col0 + - tab2.col1 * col1 AS col0 FROM tab2
----
-210
-3403
-954
query I rowsort
SELECT DISTINCT col1 * col1 * + col2 + col1 FROM tab0 AS cor0
----
244154
679133
9506
query I rowsort
SELECT + 89 - col1 AS col0 FROM tab2
----
30
58
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 5 * col0 - 34 col1 FROM tab1 AS cor0
----
-19
286
366
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * 85 - + cor0.col0 * - cor0.col1 col1 FROM tab2 AS cor0
----
-112812
-18228
-386568
query I rowsort
SELECT - + 23 - + col2 FROM tab0 AS cor0
----
-105
-24
-56
query I rowsort
SELECT - col0 * - col0 + - 29 AS col0 FROM tab0 AS cor0
----
1196
547
7892
query I rowsort
SELECT 47 + col1 FROM tab2 cor0
----
106
64
78
query I rowsort
SELECT col2 + + col1 AS col0 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6408
SELECT ALL + col2 * + col2 DIV col2 + col2 * - ( - col2 ) + - col0 * + col0 * col0 FROM tab0 AS cor0
----
-12702
-42873
-698163
skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + col2 * + col2 / col2 + col2 * - ( - col2 ) + - col0 * + col0 * col0 FROM tab0 AS cor0
----
-12702
-42873
-698163
query I rowsort
SELECT ALL - - col1 + 68 AS col1 FROM tab2 AS cor0
----
127
85
99
query I rowsort
SELECT - + col2 * + cor0.col1 + ( + col1 ) FROM tab1 AS cor0
----
-1235
-1378
-560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT col1 * - col0 + + col2 * col1 + ( + cor0.col2 ) * + col0 * col2 FROM tab2 AS cor0
----
113379
49660
5723
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 71 - col1 col0 FROM tab0 AS cor0
----
-25
18
62
query I rowsort
SELECT - col0 * 45 AS col2 FROM tab1 AS cor0
----
-135
-2880
-3600
query I rowsort
SELECT + ( ( + col0 ) ) + + col2 AS col0 FROM tab2 AS cor0
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6416
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 64 FROM tab0, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6416
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 64 FROM tab0, tab1 AS cor0
----
NULL
query I rowsort
SELECT + 6 + + col1 AS col2 FROM tab2
----
23
37
65
query I rowsort
SELECT DISTINCT col2 * 96 FROM tab1
----
5184
5472
9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col2 FROM tab2
----
-70
query I rowsort
SELECT ALL - - 28 * + col2 AS col0 FROM tab0 AS cor0
----
2296
28
924
query I rowsort
SELECT ALL + + col2 * col1 - col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT ( col2 * col0 + ( col0 ) ) FROM tab0
----
70
7387
816
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 88 ) col1 FROM tab2, tab1, tab0 AS cor0
----
27 values hashing to c46e7cf9bf516fdfde88534336a28177
query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab1, tab1 cor0
----
67
query I rowsort
SELECT - + col2 + cor0.col2 * + col1 AS col1 FROM tab1 AS cor0
----
1152
1350
513
query I rowsort
SELECT ALL + 64 * col2 FROM tab1 cor0
----
3456
3648
6144
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6427
SELECT - col1 + - col0 * - CAST( - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
skipif mysql # not compatible
query I rowsort label-6427
SELECT - col1 + - col0 * - CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-2150
-3492
-8190
query I rowsort
SELECT 92 * tab2.col0 * - cor0.col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 779af0136fa8a77ca8485d091daf104f
query I rowsort
SELECT ALL + tab0.col0 * - 68 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to d29d2d64142de8e9fd0662b7630c5609
query I rowsort
SELECT DISTINCT - ( + col1 ) - tab2.col2 AS col0 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT ALL col1 * - col1 - ( + ( - col1 ) * col1 ) FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6432
SELECT col1 DIV col0 + col2 * col2 DIV - col0 - + col2 FROM tab1
----
-1018
-107
-211
skipif mysql # not compatible
query I rowsort label-6432
SELECT col1 / col0 + col2 * col2 / - col0 - + col2 FROM tab1
----
-1018
-107
-211
query I rowsort
SELECT ALL col2 + + col1 * 95 FROM tab1 AS cor0
----
1007
1331
2524
query I rowsort
SELECT ALL - - col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT ALL col2 + ( col1 ) * col1 FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT 39 AS col2 FROM tab2, tab0 cor0
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf
query I rowsort
SELECT + col1 * col0 + + 72 + + col2 AS col2 FROM tab2 AS cor0
----
1453
316
4700
onlyif mysql # use DIV operator for integer division
query I rowsort label-6438
SELECT - + col0 + ( + 27 ) * col0 + + 40 DIV 17 col1 FROM tab0 AS cor0
----
2316
626
912
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6438
SELECT - + col0 + ( + 27 ) * col0 + + 40 / 17 col1 FROM tab0 AS cor0
----
2316
626
912
query I rowsort
SELECT - col2 * ( 31 + col0 ) FROM tab0
----
-1815
-66
-9840
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab1.col0 + + 66 + + col0 col0 FROM tab1
----
66
query I rowsort
SELECT - col0 + 68 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1690
1829
2505
onlyif mysql # use DIV operator for integer division
query I rowsort label-6442
SELECT 84 DIV - col0 col1 FROM tab1 AS cor0
----
-1
-1
-28
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6442
SELECT 84 / - col0 col1 FROM tab1 AS cor0
----
-1
-1
-28
query I rowsort
SELECT ( 50 ) - - col1 * col1 * + 79 FROM tab2
----
22881
275049
75969
query I rowsort
SELECT DISTINCT + col1 + - col2 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT ALL - 14 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-364
-378
-532
query I rowsort
SELECT + 37 + - col0 * col0 FROM tab0 cor0
----
-1188
-539
-7884
query I rowsort
SELECT - col2 * - col1 + + col1 AS col0 FROM tab0 AS cor0
----
194
2924
7553
onlyif mysql # use DIV operator for integer division
query I rowsort label-6448
SELECT DISTINCT cor0.col1 * cor0.col2 DIV col0 FROM tab1 AS cor0
----
15
468
8
skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT cor0.col1 * cor0.col2 / col0 FROM tab1 AS cor0
----
15
468
8
query I rowsort
SELECT + + ( - col1 ) + + col0 * - col1 FROM tab2 AS cor0
----
-1360
-248
-4661
query I rowsort
SELECT 33 * + col2 AS col2 FROM tab2 AS cor0
----
1254
858
891
query I rowsort
SELECT ALL - col0 + - tab2.col0 AS col1 FROM tab2
----
-14
-156
-158
onlyif mysql # use DIV operator for integer division
query I rowsort label-6452
SELECT DISTINCT + col1 DIV + ( - col1 ) + col2 AS col1 FROM tab1
----
53
56
95
skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT + col1 / + ( - col1 ) + col2 AS col1 FROM tab1
----
53
56
95
query I rowsort
SELECT DISTINCT col2 + - 55 AS col2 FROM tab0
----
-22
-54
27
query I rowsort
SELECT col1 + 38 * ( col1 ) FROM tab1
----
1014
390
507
query I rowsort
SELECT - tab2.col2 + col0 * - col1 * + tab2.col0 AS col1 FROM tab2
----
-106135
-1546
-358982
query I rowsort
SELECT ALL + col0 + ( + 52 ) FROM tab2
----
130
131
59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6457
SELECT CAST( 69 AS SIGNED ) * + col2 FROM tab0 AS cor0
----
2277
5658
69
skipif mysql # not compatible
query I rowsort label-6457
SELECT CAST ( 69 AS INTEGER ) * + col2 FROM tab0 AS cor0
----
2277
5658
69
query I rowsort
SELECT DISTINCT tab0.col0 + + tab0.col0 + + tab0.col0 * tab0.col0 AS col2 FROM tab0
----
1295
624
8099
query I rowsort
SELECT - tab0.col0 * ( col2 ) + + col1 FROM tab0
----
-706
-7207
62
query I rowsort
SELECT cor0.col0 + col2 + + cor0.col0 * col1 * - cor0.col0 AS col2 FROM tab2 AS cor0
----
-105980
-1485
-358852
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6461
SELECT - col0 * + CAST( 76 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-532
-5928
-6004
skipif mysql # not compatible
query I rowsort label-6461
SELECT - col0 * + CAST ( 76 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-532
-5928
-6004
query I rowsort
SELECT ALL + col0 + - col1 * - tab2.col2 FROM tab2
----
1612
725
844
query I rowsort
SELECT - col1 * 56 * ( col0 ) AS col1 FROM tab1
----
-35840
-4368
-58240
query I rowsort
SELECT col0 * + 59 + + col0 FROM tab2
----
420
4680
4740
query I rowsort
SELECT DISTINCT - 9 * - col2 + + col1 AS col0 FROM tab0 AS cor0
----
106
383
829
query I rowsort
SELECT ALL + - ( - col0 ) + cor0.col2 * + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - 62 * - cor0.col2 FROM tab1 cor0
----
3348
3534
5952
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 0 + cor0.col1 + ( + ( - col2 ) ) * col0 col1 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT DISTINCT - 62 * - 56 FROM tab2 AS cor0
----
3472
query I rowsort
SELECT - + col0 + + 8 AS col0 FROM tab0 AS cor0
----
-16
-27
-81
query I rowsort
SELECT ALL - 15 * 69 FROM tab1 AS cor0
----
-1035
-1035
-1035
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 79 col0 FROM tab0
----
1896
2765
7031
query I rowsort
SELECT + tab1.col2 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to 80ca0a1cc337a7714a8990a764cfdb17
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6474
SELECT + + CAST( col2 AS SIGNED ) + col0 * - ( - col2 ) AS col0 FROM tab1 cor0
----
216
3705
7776
skipif mysql # not compatible
query I rowsort label-6474
SELECT + + CAST ( col2 AS INTEGER ) + col0 * - ( - col2 ) AS col0 FROM tab1 cor0
----
216
3705
7776
onlyif mysql # use DIV operator for integer division
query I rowsort label-6475
SELECT DISTINCT + - col1 DIV 25 AS col2 FROM tab2 AS cor0
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT + - col1 / 25 AS col2 FROM tab2 AS cor0
----
-1
-2
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6476
SELECT 30 * ( - col2 ) DIV - col0 + + col0 * - col0 * col2 + - col1 * cor0.col2 FROM tab1 cor0
----
-1350
-234016
-615612
skipif mysql # not compatible
query I rowsort label-6476
SELECT 30 * ( - col2 ) / - col0 + + col0 * - col0 * col2 + - col1 * cor0.col2 FROM tab1 cor0
----
-1350
-234016
-615612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6477
SELECT - CAST( NULL AS DECIMAL ) + ( col1 ) * - 15 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6477
SELECT - CAST ( NULL AS REAL ) + ( col1 ) * - 15 + - cor0.col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6478
SELECT ALL - CAST( 82 AS SIGNED ) FROM tab1 AS cor0
----
-82
-82
-82
skipif mysql # not compatible
query I rowsort label-6478
SELECT ALL - CAST ( 82 AS INTEGER ) FROM tab1 AS cor0
----
-82
-82
-82
query I rowsort
SELECT + col1 * col0 + col2 AS col2 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ( + 6 ) FROM tab1 cor0
----
6
6
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-6481
SELECT ALL - + col1 DIV 85 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6481
SELECT ALL - + col1 / 85 AS col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL 42 + 44 AS col2 FROM tab2 AS cor0
----
86
86
86
query I rowsort
SELECT 49 * - col0 + col0 FROM tab1
----
-144
-3072
-3840
onlyif mysql # use DIV operator for integer division
query I rowsort label-6484
SELECT DISTINCT + col2 * col2 * 22 + col0 DIV col1 FROM tab1 AS cor0
----
202758
64152
71484
skipif mysql # not compatible
query I rowsort label-6484
SELECT DISTINCT + col2 * col2 * 22 + col0 / col1 FROM tab1 AS cor0
----
202758
64152
71484
query I rowsort
SELECT + col1 * col2 + 3 AS col1 FROM tab2 AS cor0
----
1537
649
840
query I rowsort
SELECT ALL - + 58 + col0 * col2 FROM tab2 cor0
----
131
1970
2944
query I rowsort
SELECT - 3 + col0 AS col0 FROM tab1 cor0
----
0
61
77
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * col1 col0 FROM tab1 AS cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + + col2 + + col2 AS col1 FROM tab1 AS cor0
----
108
114
192
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6490
SELECT DISTINCT - col2 * col2 / + CAST( NULL AS SIGNED ) + 88 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6490
SELECT DISTINCT - col2 * col2 / + CAST ( NULL AS INTEGER ) + 88 * col0 * + col0 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6491
SELECT ALL col2 DIV 30 AS col2 FROM tab2 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-6491
SELECT ALL col2 / 30 AS col2 FROM tab2 AS cor0
----
0
0
1
query I rowsort
SELECT + + col2 - 88 * + ( - col0 ) FROM tab2 AS cor0
----
643
6890
6990
query I rowsort
SELECT DISTINCT - col0 * col0 - - col1 AS col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + col1 * + 32 + + col2 * col1 FROM tab2 AS cor0
----
1190
1829
3422
onlyif mysql # use DIV operator for integer division
query I rowsort label-6495
SELECT DISTINCT cor0.col1 + 9 DIV col0 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT cor0.col1 + 9 / col0 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + ( + ( cor0.col1 ) ) * col1 col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT 63 AS col2 FROM tab0, tab2 cor0, tab0 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT ALL col0 + col1 * + col0 * + col0 FROM tab0 AS cor0
----
118860
49560
720900
onlyif mysql # use DIV operator for integer division
query I rowsort label-6499
SELECT 92 DIV - col0 AS col2 FROM tab2
----
-1
-1
-13
skipif mysql # not compatible
query I rowsort label-6499
SELECT 92 / - col0 AS col2 FROM tab2
----
-1
-1
-13
query I rowsort
SELECT ALL + - col2 * cor0.col2 AS col2 FROM tab0 AS cor0
----
-1
-1089
-6724
query I rowsort
SELECT + col2 * - cor0.col0 AS col1 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT cor0.col0 + col2 * - col0 * + col2 AS col1 FROM tab0 AS cor0
----
-26112
-598347
0
query I rowsort
SELECT DISTINCT - col2 * - ( + col1 + col0 ) FROM tab1 AS cor0
----
1566
4218
8928
onlyif mysql # use DIV operator for integer division
query I rowsort label-6504
SELECT ALL - + col2 DIV - ( col2 ) AS col2 FROM tab1 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6504
SELECT ALL - + col2 / - ( col2 ) AS col2 FROM tab1 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6505
SELECT ALL + cor0.col2 + CAST( NULL AS SIGNED ) * + 42 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-6505
SELECT ALL + cor0.col2 + CAST ( NULL AS INTEGER ) * + 42 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 + col2 * + ( + col0 ) AS col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT + + col2 + + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT 91 + - tab2.col2 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 81812192d3fbbfb400af703cd8732e85
query I rowsort
SELECT - 87 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23
query I rowsort
SELECT + 42 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 325aada2239b6fe1fe2d843515ae8c5e
query I rowsort
SELECT ALL + tab0.col2 + - 67 FROM tab0
----
-34
-66
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * - col1 col0 FROM tab2
----
-1475
-629
-806
query I rowsort
SELECT - col1 * - col0 + 70 + col1 AS col2 FROM tab0 cor0
----
2220
3562
8260
query I rowsort
SELECT - - col1 + + col1 * ( 42 * + col1 ) FROM tab0 AS cor0
----
310718
347893
395275
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6515
SELECT DISTINCT - col0 * + col2 * - CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-26136
-35
-598436
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6515
SELECT DISTINCT - col0 * + col2 * - CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-26136
-35
-598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-6516
SELECT + + col0 DIV col0 AS col1 FROM tab2 AS cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-6516
SELECT + + col0 / col0 AS col1 FROM tab2 AS cor0
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6517
SELECT cor0.col1 + - CAST( NULL AS SIGNED ) * tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6517
SELECT cor0.col1 + - CAST ( NULL AS INTEGER ) * tab2.col2 FROM tab2, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL col2 * col1 * - col0 FROM tab1 AS cor0
----
-36480
-4212
-99840
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 ALL - ( col2 ) * ( col0 ) AS col2 FROM tab1
----
-162
-3648
-7680
query I rowsort
SELECT col0 - + col0 / col0 FROM tab2 WHERE NULL <> NULL
----
query I rowsort
SELECT DISTINCT - col0 * col1 - - col1 * col1 FROM tab0
----
182
5332
6014
query I rowsort
SELECT - col0 + col0 * - tab2.col2 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT ALL + col0 * + col0 - col0 * - col0 AS col1 FROM tab0
----
1152
15842
2450
onlyif mysql # use DIV operator for integer division
query I rowsort label-6525
SELECT col1 DIV - tab2.col0 AS col1 FROM tab2
----
-4
0
0
skipif mysql # not compatible
query I rowsort label-6525
SELECT col1 / - tab2.col0 AS col1 FROM tab2
----
-4
0
0
query I rowsort
SELECT DISTINCT + col1 + col2 + - col1 AS col2 FROM tab2 WHERE NOT col1 * + col0 < NULL
----
query I rowsort
SELECT - col0 + col0 * + col1 FROM tab1
----
576
75
960
query I rowsort
SELECT - col0 FROM tab2 WHERE NULL <> col2
----
query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( NULL ) <= NULL
----
query I rowsort
SELECT col2 + tab2.col0 + - tab2.col2 * col2 AS col2 FROM tab2
----
-1327
-572
-695
query I rowsort
SELECT cor0.col0 * col1 + - cor0.col2 * col1 FROM tab1 cor0
----
-1326
-208
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6532
SELECT col2 + - col1 - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6532
SELECT col2 + - col1 - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - tab2.col2 * col0 - 67 AS col0 FROM tab2
----
-2095
-256
-3069
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 * cor0.col2 col1 FROM tab0 AS cor0
----
1804
22
726
query I rowsort
SELECT - + cor0.col0 - col2 * + 68 AS col0 FROM tab1 AS cor0
----
-3675
-3940
-6608
query I rowsort
SELECT col0 * col2 + - ( col2 * col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - cor0.col2 + col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT + cor0.col1 * col2 + - col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( + col2 )
----
86
91
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-6540
SELECT col0 + - col2 + - tab0.col2 DIV - tab0.col0 AS col1 FROM tab0
----
-8
34
7
skipif mysql # not compatible
query I rowsort label-6540
SELECT col0 + - col2 + - tab0.col2 / - tab0.col0 AS col1 FROM tab0
----
-8
34
7
query I rowsort
SELECT DISTINCT - tab2.col0 + col0 AS col2 FROM tab2 WHERE NOT - col1 NOT IN ( col0 * + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 col2 FROM tab1
----
-128
-160
-6
query I rowsort
SELECT ALL + tab2.col1 * col0 * - col1 - col0 * - col1 AS col1 FROM tab2
----
-21488
-266916
-6510
query I rowsort
SELECT col0 - - col1 AS col0 FROM tab1 WHERE NOT col0 * col1 * col0 IN ( - col0 )
----
29
74
93
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / col0 = - col2
----
query I rowsort
SELECT DISTINCT tab1.col0 * col2 + + tab1.col1 FROM tab1
----
188
3658
7693
query I rowsort
SELECT col2 + - cor0.col1 + col1 AS col1 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT DISTINCT cor0.col1 AS col1 FROM tab0, tab2 AS cor0, tab1 AS cor1
----
17
31
59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 col2 FROM tab0, tab1 cor0, tab1 AS cor1
----
10
13
26
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0 AS cor0, tab1 AS cor1, tab0, tab1 cor2
----
243 values hashing to ee8b23a58dda2d92e14ed437e06ed8d2
query I rowsort
SELECT 63 FROM tab1, tab1 AS cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025
query I rowsort
SELECT - col0 * 79 * - col1 FROM tab1 AS cor0
----
50560
6162
82160
onlyif mysql # use DIV operator for integer division
query I rowsort label-6553
SELECT - - col2 DIV + 67 + - col2 * - col0 AS col2 FROM tab1 cor0
----
162
3648
7681
skipif mysql # not compatible
query I rowsort label-6553
SELECT - - col2 / + 67 + - col2 * - col0 AS col2 FROM tab1 cor0
----
162
3648
7681
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0, tab0 AS cor1, tab0, tab2 AS cor2
----
3645 values hashing to 972d282d6d92f451c90dc8ca51a18f3e
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) - col0 col1 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT ( + tab2.col2 ) * + tab2.col2 AS col2 FROM tab2
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( col0 ) - col1 col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT ALL - + 84 * cor0.col1 + + 77 * - cor0.col1 FROM tab0 AS cor0
----
-13846
-14651
-15617
query I rowsort
SELECT + cor0.col0 * cor0.col0 + cor0.col1 FROM tab1 cor0
----
35
4106
6413
query I rowsort
SELECT ALL ( + col0 ) * + col1 + col2 * + col2 FROM tab2 cor0
----
2787
5278
946
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col1 FROM tab2, tab0, tab1 AS cor0, tab1
----
81 values hashing to 22fe261d6995563c0767a5087aea05b1
query I rowsort
SELECT col1 - 97 * col2 * + tab1.col2 FROM tab1
----
-282826
-315143
-893939
query I rowsort
SELECT - ( col2 ) + + col0 * ( - col0 ) FROM tab2
----
-6110
-6279
-76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6564
SELECT CAST( - 1 AS SIGNED ) * tab1.col1 * ( - col1 ) + col1 FROM tab1
----
110
182
702
skipif mysql # not compatible
query I rowsort label-6564
SELECT CAST ( - 1 AS INTEGER ) * tab1.col1 * ( - col1 ) + col1 FROM tab1
----
110
182
702
query I rowsort
SELECT col2 * + cor0.col1 + col0 + + col0 FROM tab1 AS cor0
----
1408
1410
698
query I rowsort
SELECT ALL - - cor0.col1 * - col1 AS col1 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT - 99 * + col0 FROM tab0
----
-2376
-3465
-8811
query I rowsort
SELECT col0 * 46 AS col1 FROM tab0 cor0
----
1104
1610
4094
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6569
SELECT DISTINCT - col0 * CAST( col0 AS SIGNED ) AS col1 FROM tab1 cor0
----
-4096
-6400
-9
skipif mysql # not compatible
query I rowsort label-6569
SELECT DISTINCT - col0 * CAST ( col0 AS INTEGER ) AS col1 FROM tab1 cor0
----
-4096
-6400
-9
query I rowsort
SELECT - + col2 + 54 FROM tab0 AS cor0
----
-28
21
53
query I rowsort
SELECT ALL col1 + + cor0.col0 * 24 AS col1 FROM tab2 AS cor0
----
1913
1931
199
query I rowsort
SELECT ALL col2 + - col1 * + col1 - + 85 FROM tab1
----
-128
-158
-707
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col2 col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6574
SELECT + + cor0.col1 * + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-6574
SELECT + + cor0.col1 * + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT - col1 * + 28 + - 82 * - col2 AS col1 FROM tab0
----
-2634
298
4176
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col1 * col0 col2 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 64 * col2 FROM tab2 AS cor0
----
1664
1728
2432
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6578
SELECT ALL - 3 + - cor0.col2 / - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6578
SELECT ALL - 3 + - cor0.col2 / - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 + - col1 + + col2 * col2 FROM tab2 AS cor0
----
1465
643
725
query I rowsort
SELECT - col1 * + col0 + ( + 76 * col1 ) AS col0 FROM tab2 cor0
----
-118
-51
2139
query I rowsort
SELECT 74 + - col0 * col0 AS col1 FROM tab1
----
-4022
-6326
65
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6582
SELECT col2 * + col2 + + CAST( NULL AS SIGNED ) * + col2 + col2 col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6582
SELECT col2 * + col2 + + CAST ( NULL AS INTEGER ) * + col2 + col2 col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 79 + + col1 FROM tab1
----
-53
-66
-69
query I rowsort
SELECT - col1 * - col1 + col1 FROM tab1 AS cor0
----
110
182
702
onlyif mysql # use DIV operator for integer division
query I rowsort label-6585
SELECT col2 DIV cor0.col1 + - 63 * col1 FROM tab2 AS cor0
----
-1069
-1953
-3717
skipif mysql # not compatible
query I rowsort label-6585
SELECT col2 / cor0.col1 + - 63 * col1 FROM tab2 AS cor0
----
-1069
-1953
-3717
query I rowsort
SELECT 99 * col0 AS col0 FROM tab2
----
693
7722
7821
query I rowsort
SELECT + + cor0.col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT + - col2 * - col0 + ( + col1 + - col1 ) AS col2 FROM tab1 cor0
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-6589
SELECT 20 DIV col2 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6589
SELECT 20 / col2 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col2 * - col0 + col1 AS col0 FROM tab2
----
-158
-1969
-2985
query I rowsort
SELECT DISTINCT col0 * + col1 * col2 + 76 FROM tab1
----
36556
4288
99916
query I rowsort
SELECT DISTINCT 33 + tab0.col2 FROM tab0
----
115
34
66
query I rowsort
SELECT - 64 + + 83 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1015
2094
766
query I rowsort
SELECT col1 * - ( + col1 ) + col0 AS col1 FROM tab0
----
-7372
-8192
-9374
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6595
SELECT + col1 + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6595
SELECT + col1 + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT col1 + + col2 * + tab2.col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT col1 + 92 AS col0 FROM tab2
----
109
123
151
query I rowsort
SELECT ALL + - 41 * + col2 FROM tab2 AS cor0
----
-1066
-1107
-1558
query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6600
SELECT DISTINCT - + CAST( 35 AS SIGNED ) FROM tab1 AS cor0
----
-35
skipif mysql # not compatible
query I rowsort label-6600
SELECT DISTINCT - + CAST ( 35 AS INTEGER ) FROM tab1 AS cor0
----
-35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( ( + col1 ) AS REAL ) col2 FROM tab1 AS cor0
----
10
13
26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6602
SELECT DISTINCT col0 * + CAST( 76 + + col0 AS SIGNED ) AS col1 FROM tab2
----
12012
12245
581
skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT col0 * + CAST ( 76 + + col0 AS INTEGER ) AS col1 FROM tab2
----
12012
12245
581
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 col0 FROM tab1, tab1 AS cor0
----
-28
query I rowsort
SELECT - 27 * - 13 + col2 FROM tab1
----
405
408
447
query I rowsort
SELECT DISTINCT - col2 * col2 + col1 FROM tab1 cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - - col1 * + col2 - - col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL + 20 + col2 AS col2 FROM tab0 AS cor0
----
102
21
53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT 33 * + col1 AS col1 FROM tab2 AS cor0
----
1023
1947
561
query I rowsort
SELECT ALL - 22 * cor0.col2 FROM tab1 cor0
----
-1188
-1254
-2112
query I rowsort
SELECT DISTINCT + col1 + 55 AS col0 FROM tab1 AS cor0
----
65
68
81
query I rowsort
SELECT ALL - + col0 * col1 * - col1 FROM tab1 AS cor0
----
13520
2028
6400
query I rowsort
SELECT + col2 * col2 * col1 AS col2 FROM tab2 cor0
----
22599
24548
39884
query I rowsort
SELECT DISTINCT + cor0.col2 + + col1 * col0 FROM tab1 cor0
----
1136
132
697
onlyif mysql # use DIV operator for integer division
query I rowsort label-6615
SELECT - ( col1 ) DIV + col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6615
SELECT - ( col1 ) / + col2 FROM tab1 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 * - 99 * col1 col0 FROM tab0 AS cor0
----
-204336
-216216
-230472
onlyif mysql # use DIV operator for integer division
query I rowsort label-6617
SELECT ALL - - ( - 65 ) DIV col1 + + col1 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL - - ( - 65 ) / col1 + + col1 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT + 5 + tab2.col1 FROM tab2, tab1, tab1 AS cor0
----
22
36
64
query I rowsort
SELECT ALL 51 * + col2 FROM tab0 AS cor0
----
1683
4182
51
query I rowsort
SELECT DISTINCT - 88 * 58 AS col2 FROM tab0 AS cor0
----
-5104
query I rowsort
SELECT DISTINCT + - ( + 20 ) + col0 FROM tab2 AS cor0
----
-13
58
59
query I rowsort
SELECT - col1 + - 62 * + col2 AS col1 FROM tab0 AS cor0
----
-159
-2132
-5175
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 41 + - col1 * - col2 col1 FROM tab0 AS cor0
----
138
2879
7503
query I rowsort
SELECT DISTINCT + + 44 * + col1 AS col2 FROM tab1 cor0
----
1144
440
572
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * cor0.col1 * + col1 col1 FROM tab2 cor0
----
-22831
-271518
-6727
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6626
SELECT ALL - cor0.col0 + CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6626
SELECT ALL - cor0.col0 + CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 - - 35 FROM tab0 AS cor0
----
121
126
132
query I rowsort
SELECT col1 + - 78 FROM tab2 AS cor0
----
-19
-47
-61
query I rowsort
SELECT ALL + + col0 * col0 * col2 + col1 FROM tab0 cor0
----
1322
19094
649613
query I rowsort
SELECT ALL - + col2 + + col2 AS col0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col2 * col2 + - col0 FROM tab0 AS cor0
----
-34
1065
6635
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT + col0 * + col1 + col1 * + col1 * - col0 - + col2 * - col1 * CAST ( col0 AS REAL ) FROM tab2 AS cor0
----
-147264
-651
29546
query I rowsort
SELECT - + col0 * ( col0 ) + + cor0.col2 FROM tab2 AS cor0
----
-22
-6058
-6203
onlyif mysql # use DIV operator for integer division
query I rowsort label-6634
SELECT DISTINCT + col0 DIV col1 col1 FROM tab2 AS cor0
----
0
1
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6634
SELECT DISTINCT + col0 / col1 col1 FROM tab2 AS cor0
----
0
1
4
query I rowsort
SELECT col0 + - 64 FROM tab2 AS cor0
----
-57
14
15
query I rowsort
SELECT 57 * - ( cor0.col2 ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-1508
-1566
-2204
query I rowsort
SELECT - ( + ( + col2 ) ) * col1 + col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + col2 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - + col2 * 71 FROM tab1 AS cor0
----
-3834
-4047
-6816
query I rowsort
SELECT - col2 * - cor0.col1 * col1 AS col2 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL col1 + - col2 AS col1 FROM tab1 cor0
----
-28
-47
-83
query I rowsort
SELECT ALL + - cor0.col0 AS col0 FROM tab0 cor0
----
-24
-35
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6643
SELECT col0 * col1 + - col2 + col1 DIV col2 FROM tab0 AS cor0
----
2033
3491
8018
skipif mysql # not compatible
query I rowsort label-6643
SELECT col0 * col1 + - col2 + col1 / col2 FROM tab0 AS cor0
----
2033
3491
8018
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6644
SELECT DISTINCT col2 * + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
1534
646
837
skipif mysql # not compatible
query I rowsort label-6644
SELECT DISTINCT col2 * + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT col2 + - ( 4 ) AS col2 FROM tab2 AS cor0
----
22
23
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6646
SELECT ALL - col2 + + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34
skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL - col2 + + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-104
-117
-34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6647
SELECT ALL CAST( NULL AS SIGNED ) * + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL CAST ( NULL AS INTEGER ) * + tab0.col0 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT col2 * - 95 FROM tab0
----
-3135
-7790
-95
query I rowsort
SELECT 29 * col2 AS col1 FROM tab1 AS cor0
----
1566
1653
2784
query I rowsort
SELECT DISTINCT col1 * + col1 * + col1 AS col1 FROM tab1 cor0
----
1000
17576
2197
query I rowsort
SELECT - 67 + + cor0.col2 + cor0.col1 * + ( - 47 ) AS col0 FROM tab1 AS cor0
----
-1235
-480
-582
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6652
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT - col1 - + col1 * - col1 AS col2 FROM tab2
----
272
3422
930
query I rowsort
SELECT + col1 * + col0 + col2 * 29 + + col2 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
13040
4560
5542
query I rowsort
SELECT 38 AS col2 FROM tab0, tab1 AS cor0, tab0 cor1
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT 1 AS col1 FROM tab1, tab1 cor0, tab0 AS cor1
----
27 values hashing to da8a72a7967c0c73d91239275230aed9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col1 FROM tab1
----
22
22
22
query I rowsort
SELECT ALL + col1 + - tab2.col0 AS col2 FROM tab2
----
-19
-62
24
query I rowsort
SELECT - 71 * - col1 * 3 FROM tab1
----
2130
2769
5538
onlyif mysql # use DIV operator for integer division
query I rowsort label-6660
SELECT DISTINCT - 13 + + col1 DIV + ( ( col1 ) ) + 55 FROM tab0
----
43
skipif mysql # not compatible
query I rowsort label-6660
SELECT DISTINCT - 13 + + col1 / + ( ( col1 ) ) + 55 FROM tab0
----
43
query I rowsort
SELECT - col1 + col1 * col0 * col1 AS col2 FROM tab0 cor0
----
177418
329218
736918
query I rowsort
SELECT col2 + + cor0.col1 + 65 FROM tab1 AS cor0
----
132
145
174
query I rowsort
SELECT + ( col1 ) * 68 AS col0 FROM tab1 AS cor0
----
1768
680
884
query I rowsort
SELECT tab0.col1 * - col1 - - 99 FROM tab0
----
-7297
-8182
-9310
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 * - cor0.col0 * 38 col1 FROM tab0 AS cor0
----
-1824
-2660
-6764
query I rowsort
SELECT DISTINCT - 76 + col0 AS col2 FROM tab2 AS cor0
----
-69
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-6667
SELECT col1 DIV + col2 + col0 + + col2 * cor0.col0 FROM tab0 cor0
----
167
7388
818
skipif mysql # not compatible
query I rowsort label-6667
SELECT col1 / + col2 + col0 + + col2 * cor0.col0 FROM tab0 cor0
----
167
7388
818
query I rowsort
SELECT - 76 * col1 + 5 * 21 + col2 FROM tab0 cor0
----
-6398
-6729
-7266
query I rowsort
SELECT + col0 * col1 + col0 + col0 AS col1 FROM tab2 AS cor0
----
1501
231
4758
query I rowsort
SELECT ALL col1 + + 41 FROM tab2 AS cor0
----
100
58
72
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6671
SELECT DISTINCT col1 * CAST( NULL AS DECIMAL ) / col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT col1 * CAST ( NULL AS REAL ) / col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + col1 + col0 + + ( col2 * - col0 ) FROM tab1 AS cor0
----
-133
-3574
-7587
query I rowsort
SELECT col1 * 56 + - col2 + col2 AS col1 FROM tab0 AS cor0
----
4816
5096
5432
query I rowsort
SELECT ALL - tab1.col1 * + 22 FROM tab1
----
-220
-286
-572
query I rowsort
SELECT ALL + col0 * ( - ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col1 * - col0 col2 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6677
SELECT + col1 + CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6677
SELECT + col1 + CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + cor0.col2 + col0 * col2 * + col0 FROM tab0 AS cor0
----
1226
19041
649604
query I rowsort
SELECT ALL col0 * - col2 + + cor0.col2 * col1 * + col1 + - col2 AS col2 FROM tab0 AS cor0
----
243243
671662
9373
query I rowsort
SELECT DISTINCT 58 * + cor0.col1 FROM tab1, tab0 AS cor0
----
4988
5278
5626
query I rowsort
SELECT col1 + + col0 + col2 FROM tab0 AS cor0
----
133
143
262
query I rowsort
SELECT 29 AS col0 FROM tab2 cor0
----
29
29
29
query I rowsort
SELECT - 22 AS col2 FROM tab2, tab2 cor0
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9
query I rowsort
SELECT ALL 5 * - col2 - col0 FROM tab0
----
-189
-40
-499
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6685
SELECT col0 * ( - col2 ) + + CAST( col2 * - col1 AS SIGNED ) AS col1 FROM tab2
----
-1026
-3562
-3648
skipif mysql # not compatible
query I rowsort label-6685
SELECT col0 * ( - col2 ) + + CAST ( col2 * - col1 AS INTEGER ) AS col1 FROM tab2
----
-1026
-3562
-3648
query I rowsort
SELECT ALL + + ( + col2 ) * + col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT col1 * col0 + - col0 AS col1 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT DISTINCT - + 96 * - 29 AS col0 FROM tab0 AS cor0
----
2784
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab0 cor0, tab0 AS cor1, tab2, tab0 AS cor2
----
3645 values hashing to ba0381921410f59519cc658d8e65eee3
query I rowsort
SELECT ALL + cor1.col1 FROM tab1, tab2 AS cor0, tab1 cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6691
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col2 + col1 col1 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6691
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col2 + col1 col1 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT 66 + + 89 FROM tab1 AS cor0
----
155
155
155
query I rowsort
SELECT + + col1 * - 26 AS col2 FROM tab1 AS cor0
----
-260
-338
-676
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6694
SELECT ALL - + CAST( NULL AS SIGNED ) + + 68 * col2 * + 87 + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6694
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 68 * col2 * + 87 + cor0.col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 + col0 * + col0 FROM tab0 cor0
----
1260
600
8010
query I rowsort
SELECT ALL cor0.col1 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * col1 col0 FROM tab1 AS cor0
----
-100
-169
-676
onlyif mysql # use DIV operator for integer division
query I rowsort label-6698
SELECT ALL + col2 DIV - col2 + + col0 + + col1 AS col2 FROM tab0 AS cor0
----
109
131
179
skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL + col2 / - col2 + + col0 + + col1 AS col2 FROM tab0 AS cor0
----
109
131
179
query I rowsort
SELECT - 88 + + cor0.col2 FROM tab0 AS cor0
----
-55
-6
-87
query I rowsort
SELECT DISTINCT ( 46 + + col0 ) AS col1 FROM tab1
----
110
126
49
query I rowsort
SELECT DISTINCT + + col1 * cor0.col1 + + col2 * cor0.col2 AS col0 FROM tab2 AS cor0
----
1690
1733
4157
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 * col0 col0 FROM tab0
----
-118825
-49536
-720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-6703
SELECT ALL + col0 * col2 * + col0 + + ( col1 ) DIV 19 AS col0 FROM tab2 AS cor0
----
1324
158187
237158
skipif mysql # not compatible
query I rowsort label-6703
SELECT ALL + col0 * col2 * + col0 + + ( col1 ) / 19 AS col0 FROM tab2 AS cor0
----
1324
158187
237158
query I rowsort
SELECT - col2 + + col2 + + 79 AS col2 FROM tab0 cor0
----
79
79
79
query I rowsort
SELECT DISTINCT cor0.col2 + col0 * + col2 FROM tab1 cor0
----
216
3705
7776
query I rowsort
SELECT DISTINCT + + 26 * col2 FROM tab0 AS cor0
----
2132
26
858
query I rowsort
SELECT ALL - - 87 + + cor0.col1 FROM tab0 AS cor0
----
173
178
184
query I rowsort
SELECT DISTINCT 52 + - col1 * col0 FROM tab2 AS cor0
----
-1291
-165
-4550
query I rowsort
SELECT DISTINCT cor0.col1 * - col1 AS col0 FROM tab1 cor0
----
-100
-169
-676
query I rowsort
SELECT ALL - cor0.col0 + col2 AS col0 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - col0 col1 FROM tab0
----
-171
-36
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6712
SELECT CAST( col2 AS SIGNED ) * + col1 - tab2.col0 col1 FROM tab2
----
1456
567
830
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6712
SELECT CAST ( col2 AS INTEGER ) * + col1 - tab2.col0 col1 FROM tab2
----
1456
567
830
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT col2 + CAST ( - 69 AS REAL ) - + col2 * col2 FROM tab0 AS cor0
----
-1125
-6711
-69
query I rowsort
SELECT ALL - + col0 + + cor0.col0 * 87 FROM tab1 AS cor0
----
258
5504
6880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 729c1edda9332398299f39cd174ed840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6716
SELECT ALL - - col0 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL - - col0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + 27 FROM tab2 AS cor0
----
-11
0
1
query I rowsort
SELECT ALL + + col0 + ( col1 ) * col1 * col1 FROM tab2 AS cor0
----
205457
29798
4992
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 + + ( col1 ) col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - - 11 AS col2 FROM tab1 AS cor0
----
11
skipif mysql # not compatible
query I rowsort
SELECT ALL + CAST ( - cor0.col0 AS REAL ) FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT - + ( + col1 ) * + col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL - 56 FROM tab2, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a228dfb9ede9780b082a5a3dfb2fca80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + col2 + col1 col2 FROM tab1 AS cor0
----
1165
674
694
query I rowsort
SELECT DISTINCT 88 * col2 * - 70 FROM tab1 cor0
----
-332640
-351120
-591360
query I rowsort
SELECT ALL 49 * + col0 FROM tab2 AS cor0
----
343
3822
3871
onlyif mysql # use DIV operator for integer division
query I rowsort label-6727
SELECT DISTINCT + 68 DIV + col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-6727
SELECT DISTINCT + 68 / + col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6728
SELECT ALL + col1 DIV col0 + col0 AS col1 FROM tab1 AS cor0
----
11
64
80
skipif mysql # not compatible
query I rowsort label-6728
SELECT ALL + col1 / col0 + col0 AS col1 FROM tab1 AS cor0
----
11
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-6729
SELECT ALL - + 17 DIV + col2 FROM tab1 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-6729
SELECT ALL - + 17 / + col2 FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT ALL - ( col2 ) + + col1 * - tab0.col1 FROM tab0
----
-7429
-8363
-9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 78 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
78
query I rowsort
SELECT DISTINCT - - col0 * - col2 + - ( 68 ) AS col0 FROM tab1 AS cor0
----
-230
-3716
-7748
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6733
SELECT ALL col1 + col1 + + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL col1 + col1 + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + ( col0 ) + col2 * 31 AS col2 FROM tab1 AS cor0
----
1677
1831
3056
query I rowsort
SELECT ALL + col2 - col1 * 88 * cor0.col1 AS col1 FROM tab0 AS cor0
----
-650815
-728646
-827991
query I rowsort
SELECT DISTINCT - col1 + - col1 * + ( col0 * - col0 ) FROM tab2 AS cor0
----
106080
1488
358897
query I rowsort
SELECT ALL + - 50 + col2 + - ( col0 * col2 + - col0 ) FROM tab2 AS cor0
----
-1974
-205
-2935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + tab1.col0 col1 FROM tab1
----
1040
640
78
onlyif mysql # use DIV operator for integer division
query I rowsort label-6739
SELECT - - col2 + col1 + - col0 DIV - col1 AS col1 FROM tab2 AS cor0
----
58
59
86
skipif mysql # not compatible
query I rowsort label-6739
SELECT - - col2 + col1 + - col0 / - col1 AS col1 FROM tab2 AS cor0
----
58
59
86
query I rowsort
SELECT - col0 * col2 * + 6 AS col2 FROM tab1
----
-21888
-46080
-972
query I rowsort
SELECT - + cor0.col2 + - 70 AS col1 FROM tab1 AS cor0
----
-124
-127
-166
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6742
SELECT + col0 * + col0 + cor0.col1 + col1 * CAST( - col0 AS SIGNED ) col0 FROM tab2 AS cor0
----
-137
1541
4915
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6742
SELECT + col0 * + col0 + cor0.col1 + col1 * CAST ( - col0 AS INTEGER ) col0 FROM tab2 AS cor0
----
-137
1541
4915
query I rowsort
SELECT ALL - 36 * + col1 FROM tab0
----
-3096
-3276
-3492
query I rowsort
SELECT DISTINCT 0 * - col0 FROM tab0
----
0
skipif mysql # not compatible
query I rowsort
SELECT - col2 * - CAST ( - col0 AS REAL ) + col2 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT cor0.col2 * - cor0.col1 + col0 AS col2 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT + cor0.col0 + col2 * col1 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + tab2.col1 * - col2 * + col0 FROM tab2
----
-119652
-51034
-5859
query I rowsort
SELECT col2 * + 27 AS col2 FROM tab1 AS cor0
----
1458
1539
2592
query I rowsort
SELECT DISTINCT - 53 FROM tab0, tab0 cor0
----
-53
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + col1 * col1 col2 FROM tab1
----
36
673
89
query I rowsort
SELECT ALL - 67 * 42 + - col2 AS col1 FROM tab0 AS cor0
----
-2815
-2847
-2896
query I rowsort
SELECT ALL - col1 + 84 * col2 AS col2 FROM tab2 cor0
----
2125
2237
3175
query I rowsort
SELECT + 25 * + 62 + col2 * 82 AS col2 FROM tab0 cor0
----
1632
4256
8274
query I rowsort
SELECT ALL ( - 35 ) * cor0.col1 + col2 * + col1 AS col0 FROM tab0 AS cor0
----
-172
-3298
4277
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 91 col1 FROM tab2 AS cor0
----
-32
-60
-74
query I rowsort
SELECT - 0 FROM tab2, tab0 AS cor0, tab0, tab0 AS cor1
----
81 values hashing to 1f117f467f45d8c6b7553e2e3c842942
query I rowsort
SELECT ALL - 44 AS col1 FROM tab2 cor0
----
-44
-44
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6759
SELECT + CAST( NULL AS SIGNED ) - - cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6759
SELECT + CAST ( NULL AS INTEGER ) - - cor0.col2 FROM tab0 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - + ( col1 ) + + cor0.col2 * + col1 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + cor0.col1 col2 FROM tab0 AS cor0
----
110
132
180
query IIIIIIIIIIII rowsort
SELECT * FROM tab1, tab2 cor0 CROSS JOIN tab0, tab1 cor1
----
972 values hashing to 0210050fb1701e2797a9b17e1ebac91e
query I rowsort
SELECT - col2 * col0 + - col2 + - cor0.col0 FROM tab1 AS cor0
----
-219
-3769
-7856
query I rowsort
SELECT - 86 - + col2 * 92 FROM tab2 AS cor0
----
-2478
-2570
-3582
query I rowsort
SELECT - col0 + col1 * col0 * col2 AS col1 FROM tab2 AS cor0
----
119574
50955
5852
query I rowsort
SELECT + + col1 * cor0.col2 + cor0.col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - ( cor0.col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 94 * + 86 + - col2 FROM tab1 cor0
----
-8138
-8141
-8180
query I rowsort
SELECT ALL ( + 91 ) + col2 - 30 * col2 AS col2 FROM tab2 AS cor0
----
-1011
-663
-692
query I rowsort
SELECT DISTINCT + 50 AS col2 FROM tab1 AS cor0
----
50
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 22 ) + col1 col1 FROM tab1 AS cor0
----
32
35
48
query I rowsort
SELECT ALL - - 99 * cor0.col0 AS col2 FROM tab1 AS cor0
----
297
6336
7920
query I rowsort
SELECT DISTINCT + ( + 49 ) AS col2 FROM tab0
----
49
query I rowsort
SELECT + cor1.col2 FROM tab0, tab0 AS cor0, tab1 cor1, tab0 AS cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + + col0 col1 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT - + cor0.col1 * - 88 + cor0.col0 * col1 FROM tab2 AS cor0
----
2839
2945
9794
onlyif mysql # use DIV operator for integer division
query I rowsort label-6777
SELECT col0 DIV - 86 - - col0 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-6777
SELECT col0 / - 86 - - col0 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT - col0 + + cor0.col1 * - col0 * col2 FROM tab2 AS cor0
----
-119730
-51113
-5866
query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab2, tab2 AS cor0
----
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6780
SELECT col0 * CAST( NULL AS SIGNED ) / - 62 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6780
SELECT col0 * CAST ( NULL AS INTEGER ) / - 62 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT tab2.col2 * 13 FROM tab2
----
338
351
494
query I rowsort
SELECT ALL col0 * - 33 FROM tab2
----
-231
-2574
-2607
query I rowsort
SELECT + col2 * 14 + col0 * col0 FROM tab1 AS cor0
----
4894
765
7744
query I rowsort
SELECT ALL col2 + ( ( - tab0.col1 ) ) - - tab0.col0 FROM tab0
----
-29
-61
80
query I rowsort
SELECT DISTINCT col1 * - col2 - - col0 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col2 * + 7 - - col0 FROM tab1 AS cor0
----
381
463
752
query I rowsort
SELECT DISTINCT + + col0 * + col2 AS col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col2 + + ( - col1 ) FROM tab0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col0 - col2 * + col2 FROM tab2
----
-1365
-598
-722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6790
SELECT col2 + tab0.col2 * col2 + CAST( + 27 AS SIGNED ) FROM tab0
----
1149
29
6833
skipif mysql # not compatible
query I rowsort label-6790
SELECT col2 + tab0.col2 * col2 + CAST ( + 27 AS INTEGER ) FROM tab0
----
1149
29
6833
onlyif mysql # use DIV operator for integer division
query I rowsort label-6791
SELECT + col0 * col0 + - col0 DIV ( + col1 * - col1 ) AS col2 FROM tab1
----
4096
6400
9
skipif mysql # not compatible
query I rowsort label-6791
SELECT + col0 * col0 + - col0 / ( + col1 * - col1 ) AS col2 FROM tab1
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6792
SELECT CAST( NULL AS SIGNED ) * + col2 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-6792
SELECT CAST ( NULL AS INTEGER ) * + col2 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col0 * 87 + col0 * - col2 AS col1 FROM tab0
----
1296
3010
445
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 75 + col2 * - col1 col2 FROM tab1
----
-1323
-1479
-645
query I rowsort
SELECT DISTINCT col1 + 92 AS col2 FROM tab2
----
109
123
151
query I rowsort
SELECT DISTINCT - col1 + - col1 + col0 FROM tab0
----
-148
-159
-93
query I rowsort
SELECT - 96 + col1 + - tab1.col0 FROM tab1
----
-150
-163
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6798
SELECT + col0 * 98 DIV + col2 FROM tab0 AS cor0
----
106
3430
71
skipif mysql # not compatible
query I rowsort label-6798
SELECT + col0 * 98 / + col2 FROM tab0 AS cor0
----
106
3430
71
query I rowsort
SELECT DISTINCT + col1 - col2 * col2 AS col0 FROM tab1 AS cor0
----
-2890
-3239
-9203
query I rowsort
SELECT DISTINCT - 11 * + ( + col0 ) FROM tab2 AS cor0
----
-77
-858
-869
query I rowsort
SELECT ALL - 1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 84da757b1b7b0069ce25607f39bc08d9
query I rowsort
SELECT + 34 * col2 - + col2 AS col0 FROM tab2
----
1254
858
891
query I rowsort
SELECT + - tab0.col2 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL + cor0.col0 AS col0 FROM tab0, tab2 AS cor0, tab1 AS cor1, tab2 AS cor2
----
81 values hashing to 05835f29dd9cd4fa16889de54dec3cb6
query I rowsort
SELECT DISTINCT - 78 + + col2 FROM tab0 AS cor0
----
-45
-77
4
query I rowsort
SELECT + cor0.col1 * col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + + cor0.col0 * cor0.col2 AS col0 FROM tab2, tab0, tab0 AS cor0
----
35
7298
792
onlyif mysql # use DIV operator for integer division
query I rowsort label-6808
SELECT ALL + col0 DIV - 64 AS col1 FROM tab2 AS cor0
----
-1
-1
0
skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + col0 / - 64 AS col1 FROM tab2 AS cor0
----
-1
-1
0
query I rowsort
SELECT ALL + col2 * ( + col2 ) FROM tab1 AS cor0
----
2916
3249
9216
query I rowsort
SELECT - cor0.col1 * 94 FROM tab1 AS cor0
----
-1222
-2444
-940
query I rowsort
SELECT ALL - - col2 * col2 + cor0.col2 AS col0 FROM tab0 AS cor0
----
1122
2
6806
query I rowsort
SELECT DISTINCT + - col1 + cor0.col1 FROM tab1 cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6813
SELECT + - col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-6813
SELECT + - col2 / col1 AS col2 FROM tab1 AS cor0
----
-2
-5
-7
query I rowsort
SELECT + tab2.col0 + 55 FROM tab2, tab1 AS cor0
----
9 values hashing to 78da6d9856512d47a32b04e392c12730
query I rowsort
SELECT ALL col0 * + ( - 86 ) + col0 + col0 AS col0 FROM tab0 AS cor0
----
-2016
-2940
-7476
query I rowsort
SELECT DISTINCT col2 + cor0.col0 + 79 * - col0 * col2 AS col0 FROM tab0 AS cor0
----
-2729
-576371
-62511
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * ( 3 ) col1 FROM tab2 AS cor0
----
21
234
237
query I rowsort
SELECT DISTINCT + col0 * + col2 + ( col1 ) FROM tab0 AS cor0
----
132
7389
878
onlyif mysql # use DIV operator for integer division
query I rowsort label-6819
SELECT ALL col1 + 5 DIV + col0 AS col0 FROM tab1 AS cor0
----
10
13
27
skipif mysql # not compatible
query I rowsort label-6819
SELECT ALL col1 + 5 / + col0 AS col0 FROM tab1 AS cor0
----
10
13
27
query I rowsort
SELECT - 83 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb
query I rowsort
SELECT col2 * + col0 + col1 + - col0 FROM tab1 AS cor0
----
185
3594
7613
query I rowsort
SELECT ALL 95 FROM tab0, tab0 AS cor0, tab1 AS cor1
----
27 values hashing to 14faa6dda52e3dfe1f5db2579c274a7e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6823
SELECT DISTINCT + - col0 + - CAST( NULL AS SIGNED ) * - col0 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6823
SELECT DISTINCT + - col0 + - CAST ( NULL AS INTEGER ) * - col0 FROM tab0 cor0
----
NULL
query I rowsort
SELECT + col1 * ( 5 ) FROM tab1 AS cor0
----
130
50
65
query I rowsort
SELECT + 13 * col1 AS col0 FROM tab0
----
1118
1183
1261
onlyif mysql # use DIV operator for integer division
query I rowsort label-6826
SELECT CAST( - col1 AS SIGNED ) DIV col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-6826
SELECT CAST ( - col1 AS INTEGER ) / col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT ALL 65 + + col1 FROM tab1
----
75
78
91
query I rowsort
SELECT DISTINCT ( col1 ) * + cor0.col2 AS col1 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT cor0.col1 + + 28 AS col1 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to c24a94655549e8491967d55419c7f8ef
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col1 FROM tab1 cor0
----
-53
query I rowsort
SELECT + + ( + col2 ) + col2 * - col1 AS col2 FROM tab0 AS cor0
----
-2805
-7380
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + ( col2 ) * col2 col2 FROM tab0 AS cor0
----
0
1056
6642
onlyif mysql # use DIV operator for integer division
query I rowsort label-6833
SELECT DISTINCT - + ( - 88 ) DIV + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
3
36
82
skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - + ( - 88 ) / + cor0.col0 + col2 AS col2 FROM tab0 AS cor0
----
3
36
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6834
SELECT ALL CAST( - col2 AS SIGNED ) * col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432
skipif mysql # not compatible
query I rowsort label-6834
SELECT ALL CAST ( - col2 AS INTEGER ) * col1 + col2 * col0 AS col1 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT ( + 31 ) + col0 AS col1 FROM tab0 AS cor0
----
120
55
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-6836
SELECT ALL + cor0.col0 DIV - col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL + cor0.col0 / - col0 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + - col1 * + col1 + - col0 col0 FROM tab2 AS cor0
----
-751
1043
975
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + 88 col0 FROM tab1 AS cor0
----
1128
166
728
query I rowsort
SELECT - - col0 * col2 + - col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT DISTINCT - cor0.col2 * - col0 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT - 98 * - col2 + cor0.col1 FROM tab2 AS cor0
----
2607
2677
3741
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + + cor0.col2 * col1 col0 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT ALL 49 + + 7 FROM tab1
----
56
56
56
query I rowsort
SELECT col1 * cor0.col0 + - 71 FROM tab0 AS cor0
----
1993
3324
8028
query I rowsort
SELECT col1 + col0 * - 2 FROM tab2 AS cor0
----
-141
-97
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-6846
SELECT ALL + col1 * + col2 + col2 DIV 34 FROM tab2
----
1534
647
837
skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL + col1 * + col2 + col2 / 34 FROM tab2
----
1534
647
837
query I rowsort
SELECT ALL tab0.col0 + tab0.col0 AS col0 FROM tab0
----
178
48
70
query I rowsort
SELECT + - ( - col1 ) * col0 - + col1 FROM tab2 AS cor0
----
1326
186
4543
query I rowsort
SELECT + + cor0.col2 + + col1 * col0 FROM tab0 AS cor0
----
2097
3396
8181
onlyif mysql # use DIV operator for integer division
query I rowsort label-6850
SELECT 33 DIV col0 FROM tab2
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6850
SELECT 33 / col0 FROM tab2
----
0
0
4
query I rowsort
SELECT DISTINCT + col1 + 69 FROM tab1
----
79
82
95
query I rowsort
SELECT 81 + + col0 AS col2 FROM tab2 AS cor0
----
159
160
88
query I rowsort
SELECT + col2 * + col2 - 71 * col0 AS col2 FROM tab0 AS cor0
----
-2484
-615
405
query I rowsort
SELECT col0 * - col2 + cor0.col2 FROM tab0 AS cor0
----
-34
-7216
-759
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + cor0.col0 col1 FROM tab2 AS cor0
----
49
6084
6241
query I rowsort
SELECT ALL - + col1 * + col1 + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-1209
-740
-754
query I rowsort
SELECT - col1 * 7 + + 23 AS col2 FROM tab0 AS cor0
----
-579
-614
-656
query I rowsort
SELECT DISTINCT col1 + col2 + + col1 * col1 FROM tab1 AS cor0
----
167
278
756
query I rowsort
SELECT + - col0 + - col0 * + col0 AS col0 FROM tab1 AS cor0
----
-12
-4160
-6480
query I rowsort
SELECT + ( - ( + col0 ) ) * + col1 * - 76 AS col0 FROM tab2 cor0
----
102068
16492
349752
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 col0 FROM tab1 AS cor0
----
82
82
82
query I rowsort
SELECT + - 78 * col2 AS col1 FROM tab0 AS cor0
----
-2574
-6396
-78
query I rowsort
SELECT DISTINCT ( col2 ) + + col2 * col1 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT col2 + cor0.col1 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT + cor1.col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89
onlyif mysql # use DIV operator for integer division
query I rowsort label-6866
SELECT col0 * col1 DIV + col1 FROM tab0
----
24
35
89
skipif mysql # not compatible
query I rowsort label-6866
SELECT col0 * col1 / + col1 FROM tab0
----
24
35
89
query I rowsort
SELECT DISTINCT col0 + - col2 + tab2.col2 * + col2 FROM tab2
----
1485
709
728
onlyif mysql # use DIV operator for integer division
query I rowsort label-6868
SELECT - tab2.col0 + - tab2.col1 + col1 DIV tab2.col0 FROM tab2
----
-137
-34
-96
skipif mysql # not compatible
query I rowsort label-6868
SELECT - tab2.col0 + - tab2.col1 + col1 / tab2.col0 FROM tab2
----
-137
-34
-96
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col2 * - col0 - - tab2.col1 )
----
query I rowsort
SELECT col2 * - col2 + + col0 + col2 FROM tab0
----
-1032
-6553
35
query I rowsort
SELECT ALL + tab2.col2 + + col0 * tab2.col1 * col1 AS col2 FROM tab2
----
22869
271544
6754
query I rowsort
SELECT + col0 + + col2 * col2 FROM tab0 cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-6873
SELECT DISTINCT col0 DIV tab0.col2 col2 FROM tab0
----
0
1
35
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT col0 / tab0.col2 col2 FROM tab0
----
0
1
35
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + col1 )
----
query I rowsort
SELECT - cor0.col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 + - col2 * col1 ) <= ( NULL )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( - col0 * + col0 )
----
query I rowsort
SELECT + col2 * tab0.col2 + + col1 * + col1 * col0 AS col2 FROM tab0
----
178593
329316
743733
query I rowsort
SELECT col1 * col0 * - col0 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT col1 * col1 * + col1 AS col1 FROM tab0
----
636056
753571
912673
query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0
----
query I rowsort
SELECT ALL col1 + col2 + + tab1.col1 * - col0 FROM tab1 WHERE NOT NULL < ( NULL )
----
query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + col0 <> NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6883
SELECT col1 + + col1 DIV col2 FROM tab0
----
194
88
92
skipif mysql # not compatible
query I rowsort label-6883
SELECT col1 + + col1 / col2 FROM tab0
----
194
88
92
query I rowsort
SELECT - col2 * - col0 + - col0 AS col0 FROM tab2
----
182
1950
2923
query I rowsort
SELECT - - col0 * + col0 AS col2 FROM tab2 cor0
----
49
6084
6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - col2 * - col2 col0 FROM tab0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-6887
SELECT ALL col1 * col1 DIV - col2 FROM tab0
----
-100
-224
-9409
skipif mysql # not compatible
query I rowsort label-6887
SELECT ALL col1 * col1 / - col2 FROM tab0
----
-100
-224
-9409
query I rowsort
SELECT - col0 * - col2 - col0 FROM tab1
----
159
3584
7600
query I rowsort
SELECT - col2 * - col0 * + col2 AS col1 FROM tab1 AS cor0
----
207936
737280
8748
query I rowsort
SELECT ALL col0 * - col2 + col0 + col0 FROM tab1 cor0
----
-156
-3520
-7520
onlyif mysql # use DIV operator for integer division
query I rowsort label-6891
SELECT DISTINCT - col1 + - col2 DIV col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT - col1 + - col2 / col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + col0 + - col2 * + col1 FROM tab0 AS cor0
----
-2814
-62
-7373
onlyif mysql # use DIV operator for integer division
query I rowsort label-6893
SELECT DISTINCT + col2 DIV + col0 + cor0.col1 FROM tab0 cor0
----
87
91
97
skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT + col2 / + col0 + cor0.col1 FROM tab0 cor0
----
87
91
97
query I rowsort
SELECT ALL + col1 + cor0.col1 * + col2 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col1 / - col0
----
query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-6896
SELECT DISTINCT + col1 DIV + tab0.col2 FROM tab0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT + col1 / + tab0.col2 FROM tab0
----
1
2
97
query I rowsort
SELECT DISTINCT - col0 + col2 * - col2 FROM tab1 WHERE NOT - col2 + col2 - - col2 IN ( + col0 )
----
-2919
-3313
-9296
query I rowsort
SELECT ALL + col2 * col0 * 18 + col1 FROM tab0 AS cor0
----
131455
14342
727
onlyif mysql # use DIV operator for integer division
query I rowsort label-6899
SELECT DISTINCT + - col2 + + ( col1 + col0 ) DIV 25 AS col2 FROM tab0 AS cor0
----
-29
-75
4
skipif mysql # not compatible
query I rowsort label-6899
SELECT DISTINCT + - col2 + + ( col1 + col0 ) / 25 AS col2 FROM tab0 AS cor0
----
-29
-75
4
query I rowsort
SELECT ALL col2 * - col1 + - col1 * + col2 FROM tab1 AS cor0
----
-1140
-2496
-2808
query I rowsort
SELECT ALL + - cor0.col2 + col2 * - col2 FROM tab2 AS cor0
----
-1482
-702
-756
query I rowsort
SELECT - col1 + + ( + col0 ) FROM tab1 AS cor0
----
-23
54
67
query I rowsort
SELECT ALL + col1 * col1 + + ( - col0 ) * col0 AS col1 FROM tab0 AS cor0
----
360
6820
8184
query I rowsort
SELECT ALL + col0 + - 87 * + col2 FROM tab1 AS cor0
----
-4695
-4895
-8272
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-6905
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) * - 88 AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-6905
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) * - 88 AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-6906
SELECT ALL + col0 DIV 40 FROM tab0 AS cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + col0 / 40 FROM tab0 AS cor0
----
0
0
2
query I rowsort
SELECT 31 + + col1 * col2 * tab2.col2 FROM tab2
----
22630
24579
39915
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col1 - + 84 col2 FROM tab0 cor0
----
13
2
7
query I rowsort
SELECT - ( 34 ) FROM tab1, tab2 AS cor0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb
onlyif mysql # use DIV operator for integer division
query I rowsort label-6910
SELECT ALL + 81 DIV + 3 + - col2 AS col2 FROM tab0 AS cor0
----
-55
-6
26
skipif mysql # not compatible
query I rowsort label-6910
SELECT ALL + 81 / + 3 + - col2 AS col2 FROM tab0 AS cor0
----
-55
-6
26
query I rowsort
SELECT - - col1 * col0 + + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT DISTINCT col2 * + 70 AS col0 FROM tab0 AS cor0
----
2310
5740
70
query I rowsort
SELECT DISTINCT - - 58 FROM tab0 AS cor0
----
58
query I rowsort
SELECT col0 * - col0 - col2 AS col2 FROM tab0
----
-1226
-609
-8003
query I rowsort
SELECT cor0.col2 + - col1 * + col1 AS col2 FROM tab2 cor0
----
-251
-3455
-934
query I rowsort
SELECT ALL + col0 * - col2 - col0 * col1 FROM tab0 cor0
----
-15397
-2856
-3430
query I rowsort
SELECT ALL - tab0.col1 * col1 * col1 AS col0 FROM tab0
----
-636056
-753571
-912673
query I rowsort
SELECT - col0 * + col0 + col2 + - col1 AS col2 FROM tab1
----
-4049
-6317
19
query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col0 + col0 / tab2.col1 + tab2.col2 )
----
query I rowsort
SELECT DISTINCT - col1 * - tab2.col1 * + col1 FROM tab2
----
205379
29791
4913
query I rowsort
SELECT DISTINCT tab1.col2 + col2 - col1 FROM tab1
----
104
179
82
query I rowsort
SELECT ALL + col2 + + col1 + col2 FROM tab0
----
152
255
99
query I rowsort
SELECT col0 * + col1 - col1 FROM tab1
----
1027
52
630
query I rowsort
SELECT + col2 * tab0.col1 - col1 FROM tab0
----
0
2752
7371
onlyif mysql # use DIV operator for integer division
query I rowsort label-6925
SELECT tab2.col2 + + col0 DIV - col0 FROM tab2
----
25
26
37
skipif mysql # not compatible
query I rowsort label-6925
SELECT tab2.col2 + + col0 / - col0 FROM tab2
----
25
26
37
query I rowsort
SELECT + 90 FROM tab0, tab1 AS cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to 3b4644ef0734ed220952cae7e0648c4b
query I rowsort
SELECT ALL + cor0.col0 + col0 + 84 * col2 AS col2 FROM tab1 AS cor0
----
4542
4916
8224
query I rowsort
SELECT + - 23 + - col2 * col1 FROM tab1 AS cor0
----
-1271
-1427
-593
query I rowsort
SELECT ALL + - 21 AS col0 FROM tab0 AS cor0
----
-21
-21
-21
query I rowsort
SELECT DISTINCT + tab2.col1 + ( + ( + col0 ) + col1 ) AS col0 FROM tab2
----
113
196
69
query I rowsort
SELECT 48 - col1 * col1 FROM tab0 AS cor0
----
-7348
-8233
-9361
query I rowsort
SELECT + col2 + col1 * + 61 FROM tab2
----
1075
1918
3625
query I rowsort
SELECT ALL + 76 + 60 FROM tab1, tab1 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to a6de74feeb41488fbfe756b49a65b3f9
query I rowsort
SELECT DISTINCT col0 * 47 AS col1 FROM tab0
----
1128
1645
4183
query I rowsort
SELECT - col2 * - ( + col0 * 57 ) FROM tab1
----
207936
437760
9234
query I rowsort
SELECT + col2 + 96 FROM tab2
----
122
123
134
query I rowsort
SELECT 0 * - 68 AS col2 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT 66 - - 25 FROM tab1 cor0
----
91
query I rowsort
SELECT 90 * col2 AS col0 FROM tab2
----
2340
2430
3420
onlyif mysql # use DIV operator for integer division
query I rowsort label-6940
SELECT ALL - col0 * col0 DIV - 5 FROM tab0
----
115
1584
245
skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL - col0 * col0 / - 5 FROM tab0
----
115
1584
245
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 + + col2 col2 FROM tab1 AS cor0
----
131
134
173
query I rowsort
SELECT 57 AS col0 FROM tab1, tab0, tab0 AS cor0
----
27 values hashing to 220a93709e207779b34ef74b544764a5
query I rowsort
SELECT + - col0 * + col0 - - 61 FROM tab0 AS cor0
----
-1164
-515
-7860
query I rowsort
SELECT + cor0.col0 + cor0.col0 * - col2 AS col1 FROM tab0 cor0
----
-7209
-768
0
query I rowsort
SELECT ALL col0 * 60 FROM tab0 AS cor0
----
1440
2100
5340
query I rowsort
SELECT ALL - cor0.col2 * 8 + + col2 * cor0.col0 + col2 FROM tab1 AS cor0
----
-216
3249
7008
query I rowsort
SELECT ALL col0 + ( - col2 + col0 ) FROM tab1
----
-48
64
71
query I rowsort
SELECT - ( 49 ) AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae
query I rowsort
SELECT col2 + + 83 AS col1 FROM tab1 AS cor0
----
137
140
179
query I rowsort
SELECT - + col0 + + ( col0 ) * col1 FROM tab1 AS cor0
----
576
75
960
onlyif mysql # use DIV operator for integer division
query I rowsort label-6951
SELECT - cor0.col2 DIV ( col0 ) AS col2 FROM tab1 AS cor0
----
-1
-18
0
skipif mysql # not compatible
query I rowsort label-6951
SELECT - cor0.col2 / ( col0 ) AS col2 FROM tab1 AS cor0
----
-1
-18
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-6952
SELECT + - col1 DIV - ( + cor0.col0 ) FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-6952
SELECT + - col1 / - ( + cor0.col0 ) FROM tab2 AS cor0
----
0
0
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-6953
SELECT ALL + col0 + - col2 DIV + col1 FROM tab1 AS cor0
----
1
59
73
skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL + col0 + - col2 / + col1 FROM tab1 AS cor0
----
1
59
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-6954
SELECT ALL + 5 DIV - cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + 5 / - cor1.col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to a46f44f30b2183508f32c16a79479cd9
query I rowsort
SELECT ALL - + col0 - 36 AS col1 FROM tab1 AS cor0
----
-100
-116
-39
query I rowsort
SELECT 33 FROM tab1, tab2 cor0, tab2 AS cor1
----
27 values hashing to 76da8bc7cae18ecf856438f872430c80
query I rowsort
SELECT - + ( + col1 ) - - col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 * - col1 + - col2 FROM tab0 AS cor0
----
-7429
-8363
-9410
query I rowsort
SELECT - ( cor0.col1 ) * - col2 + col0 AS col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT 18 - - ( - col1 + - cor0.col2 ) FROM tab0 cor0
----
-101
-155
-80
query I rowsort
SELECT - 89 - col2 * + cor0.col0 * col1 AS col2 FROM tab0 cor0
----
-3484
-664207
-68201
query I rowsort
SELECT col0 * + 93 AS col0 FROM tab1
----
279
5952
7440
query I rowsort
SELECT ALL col2 * tab1.col2 + - col2 + + col1 * + col1 AS col0 FROM tab1
----
3292
3538
9289
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 + - 34 col0 FROM tab0 AS cor0
----
-101
-101
-101
query I rowsort
SELECT + ( 83 ) AS col1 FROM tab1 cor0
----
83
83
83
query I rowsort
SELECT - - 66 AS col2 FROM tab1 AS cor0
----
66
66
66
query I rowsort
SELECT ALL - col1 + col1 * + col0 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT DISTINCT - + 74 + + cor0.col0 + 21 AS col1 FROM tab2 AS cor0
----
-46
25
26
query I rowsort
SELECT + - col1 * cor0.col2 + - ( + col0 ) FROM tab2 AS cor0
----
-1612
-725
-844
query I rowsort
SELECT 10 + tab2.col2 FROM tab2
----
36
37
48
query I rowsort
SELECT ( - col1 + + col0 ) AS col2 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT ALL 76 + + col0 AS col1 FROM tab0 AS cor0
----
100
111
165
query I rowsort
SELECT - + 66 * - col2 AS col0 FROM tab0 AS cor0
----
2178
5412
66
query I rowsort
SELECT DISTINCT 46 + - col1 AS col1 FROM tab2 AS cor0
----
-13
15
29
query I rowsort
SELECT DISTINCT - + cor0.col1 + col2 * - col2 * col1 FROM tab2 AS cor0
----
-22630
-24565
-39943
query I rowsort
SELECT - - ( col0 ) * - 53 * - col2 FROM tab1 AS cor0
----
193344
407040
8586
query I rowsort
SELECT + col2 * + col2 + - col2 FROM tab2
----
1406
650
702
query I rowsort
SELECT ( 16 ) * col2 - - col2 FROM tab1
----
1632
918
969
onlyif mysql # use DIV operator for integer division
query I rowsort label-6979
SELECT DISTINCT - 90 DIV col1 AS col0 FROM tab1
----
-3
-6
-9
skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT - 90 / col1 AS col0 FROM tab1
----
-3
-6
-9
query I rowsort
SELECT - cor1.col2 + + 95 AS col0 FROM tab1, tab1 cor0, tab1 AS cor1
----
27 values hashing to 5b7080f693fc1b1673e706cfa737063f
query I rowsort
SELECT + 99 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db
query I rowsort
SELECT - col0 + col2 - - col2 AS col2 FROM tab2 cor0
----
-26
-3
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab2 AS cor0
----
32
32
32
query I rowsort
SELECT + 46 + col0 FROM tab2
----
124
125
53
query I rowsort
SELECT DISTINCT col2 - + tab1.col0 * - col0 FROM tab1
----
4153
63
6496
query I rowsort
SELECT - col2 + + col2 * - 80 AS col0 FROM tab2
----
-2106
-2187
-3078
query I rowsort
SELECT ALL - ( col1 ) + + 50 FROM tab2 AS cor0
----
-9
19
33
onlyif mysql # use DIV operator for integer division
query I rowsort label-6988
SELECT DISTINCT + - col1 DIV col1 - + 62 FROM tab1 AS cor0
----
-63
skipif mysql # not compatible
query I rowsort label-6988
SELECT DISTINCT + - col1 / col1 - + 62 FROM tab1 AS cor0
----
-63
query I rowsort
SELECT DISTINCT + 9 * - col0 AS col2 FROM tab1 AS cor0
----
-27
-576
-720
query I rowsort
SELECT ( col1 ) - 19 AS col2 FROM tab1 AS cor0
----
-6
-9
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor0.col0 + + col0 - col0 col2 FROM tab2 AS cor0
----
7
78
79
query I rowsort
SELECT col0 + - 5 * + col0 FROM tab0 AS cor0
----
-140
-356
-96
query I rowsort
SELECT - col2 * - 6 + + 98 + col1 FROM tab0 AS cor0
----
201
382
681
query I rowsort
SELECT + col1 * ( + col1 * col0 ) + + 82 FROM tab1 AS cor0
----
13602
2110
6482
query I rowsort
SELECT + col2 * 33 AS col1 FROM tab1 AS cor0
----
1782
1881
3168
query I rowsort
SELECT cor0.col1 * 87 FROM tab2 AS cor0
----
1479
2697
5133
query I rowsort
SELECT DISTINCT ( - 50 ) AS col0 FROM tab0 AS cor0
----
-50
query I rowsort
SELECT + 8 FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0 AS cor2
----
81 values hashing to a42c42e56e75960d97c09dd731d99c01
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( 44 ) col1 FROM tab0 cor0
----
-44
-44
-44
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7000
SELECT ALL CAST( NULL AS DECIMAL ) + 76 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7000
SELECT ALL CAST ( NULL AS REAL ) + 76 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 * col0 col1 FROM tab0 AS cor0
----
2016
2940
7476
query I rowsort
SELECT ALL - col0 * + col2 * col2 + col2 AS col0 FROM tab0 AS cor0
----
-26103
-34
-598354
query I rowsort
SELECT ALL - cor0.col0 + col1 AS col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - cor0.col1 + + cor1.col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 179f1c4ecae3615ed02c294cbc435c7b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7005
SELECT CAST( NULL AS SIGNED ) * col2 + - col1 * + 61 AS col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7005
SELECT CAST ( NULL AS INTEGER ) * col2 + - col1 * + 61 AS col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + + ( - 13 ) + + col0 FROM tab2 AS cor0
----
-6
65
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7007
SELECT + - col2 DIV - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7007
SELECT + - col2 / - cor0.col1 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - - ( col1 ) * - col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT ALL + + cor0.col0 * 1 + - col2 * 66 + - col0 AS col2 FROM tab2 AS cor0
----
-1716
-1782
-2508
query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab0 cor0
----
-91
query I rowsort
SELECT - 30 * + col2 + - col0 FROM tab2 AS cor0
----
-1219
-817
-858
query I rowsort
SELECT DISTINCT cor0.col2 - 97 AS col0 FROM tab0 AS cor0
----
-15
-64
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7013
SELECT ALL - ( 87 ) * + col0 + + col0 DIV col2 FROM tab1 AS cor0
----
-261
-5567
-6960
skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - ( 87 ) * + col0 + + col0 / col2 FROM tab1 AS cor0
----
-261
-5567
-6960
query I rowsort
SELECT DISTINCT + - ( cor0.col1 ) - + col2 FROM tab2 AS cor0
----
-55
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + - col2 col1 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7016
SELECT ALL + + CAST( 54 AS SIGNED ) * - col0 AS col2 FROM tab2 AS cor0
----
-378
-4212
-4266
skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL + + CAST ( 54 AS INTEGER ) * - col0 AS col2 FROM tab2 AS cor0
----
-378
-4212
-4266
query I rowsort
SELECT ALL - 33 * + col2 + - 33 AS col2 FROM tab0 AS cor0
----
-1122
-2739
-66
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7018
SELECT DISTINCT - - ( col0 ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT - - ( col0 ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
query IIIIIIIIIIII rowsort
SELECT * FROM tab0, tab0 cor0, tab0 AS cor1, tab1 cor2
----
972 values hashing to 88213a0de4c0a44aaefe8bbffbcaf44a
query I rowsort
SELECT ALL 53 * - col2 AS col2 FROM tab1 AS cor0
----
-2862
-3021
-5088
query I rowsort
SELECT ALL col0 - - 24 AS col2 FROM tab2 AS cor0
----
102
103
31
query I rowsort
SELECT DISTINCT - col1 + 83 FROM tab1 AS cor0
----
57
70
73
query I rowsort
SELECT + + col1 + 95 AS col1 FROM tab2 AS cor0
----
112
126
154
query I rowsort
SELECT ALL col2 * ( - 5 ) * + col0 FROM tab2 AS cor0
----
-10140
-15010
-945
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 + col0 col1 FROM tab0 AS cor0
----
1113
36
6813
query I rowsort
SELECT col2 + + 59 * - col1 FROM tab2 cor0
----
-1802
-3455
-965
query I rowsort
SELECT DISTINCT - col0 * cor0.col1 + 73 FROM tab1 AS cor0
----
-5
-567
-967
query I rowsort
SELECT ALL + + col0 * + cor0.col0 FROM tab1 AS cor0
----
4096
6400
9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7029
SELECT ALL col2 + CAST( NULL AS DECIMAL ) col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL col2 + CAST ( NULL AS REAL ) col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT - 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 + col1 * + ( 15 ) col0 FROM tab0
----
1290
1365
1455
query I rowsort
SELECT col1 + 18 + - col1 FROM tab1
----
18
18
18
query I rowsort
SELECT cor0.col2 * - 73 + 29 FROM tab2 AS cor0
----
-1869
-1942
-2745
onlyif mysql # use DIV operator for integer division
query I rowsort label-7034
SELECT - col2 DIV 74 + - col2 AS col0 FROM tab0
----
-1
-33
-83
skipif mysql # not compatible
query I rowsort label-7034
SELECT - col2 / 74 + - col2 AS col0 FROM tab0
----
-1
-33
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7035
SELECT ALL col0 * + CAST( col2 AS SIGNED ) * - tab0.col2 + col2 AS col1 FROM tab0
----
-26103
-34
-598354
skipif mysql # not compatible
query I rowsort label-7035
SELECT ALL col0 * + CAST ( col2 AS INTEGER ) * - tab0.col2 + col2 AS col1 FROM tab0
----
-26103
-34
-598354
query I rowsort
SELECT DISTINCT col2 + - 69 FROM tab1
----
-12
-15
27
query I rowsort
SELECT - + col0 * - col1 - - 63 * - col0 FROM tab1 cor0
----
-111
-3392
-4000
query I rowsort
SELECT DISTINCT + + ( col2 ) * ( + col1 ) * + cor0.col0 + col2 AS col1 FROM tab1 AS cor0
----
36537
4266
99936
query I rowsort
SELECT DISTINCT cor0.col1 * col2 + - cor0.col2 AS col2 FROM tab1 AS cor0
----
1152
1350
513
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7040
SELECT + col2 * CAST( NULL AS SIGNED ) - col2 * - cor0.col0 * + ( 24 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7040
SELECT + col2 * CAST ( NULL AS INTEGER ) - col2 * - cor0.col0 * + ( 24 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - 66 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a
query I rowsort
SELECT DISTINCT + 40 * - col0 + + ( col1 * + col2 ) FROM tab2
----
-1586
-2514
557
onlyif mysql # use DIV operator for integer division
query I rowsort label-7043
SELECT - col1 DIV - col0 col0 FROM tab1
----
0
0
8
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7043
SELECT - col1 / - col0 col0 FROM tab1
----
0
0
8
query I rowsort
SELECT DISTINCT - col1 * 93 AS col1 FROM tab0 AS cor0
----
-7998
-8463
-9021
query I rowsort
SELECT DISTINCT 9 FROM tab0 cor0
----
9
query I rowsort
SELECT ( col0 ) * col2 + + col0 FROM tab2
----
196
2106
3081
query I rowsort
SELECT - + 69 + tab2.col2 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 0baf9d0e90b4d67e2f939947912d01b4
query I rowsort
SELECT ALL + - cor0.col2 + - 48 + cor0.col0 AS col0 FROM tab0 AS cor0
----
-14
-41
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7049
SELECT DISTINCT CAST( tab1.col2 * - col2 AS SIGNED ) AS col0 FROM tab1
----
-2916
-3249
-9216
skipif mysql # not compatible
query I rowsort label-7049
SELECT DISTINCT CAST ( tab1.col2 * - col2 AS INTEGER ) AS col0 FROM tab1
----
-2916
-3249
-9216
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - cor0.col2 + + 53 col2 FROM tab1, tab0 AS cor0
----
9 values hashing to d8b4ddb0a9839d166900d7eef1eae070
query I rowsort
SELECT DISTINCT col1 * - 5 AS col1 FROM tab2
----
-155
-295
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-7052
SELECT DISTINCT + ( + col2 ) * col0 DIV 93 FROM tab1
----
1
39
82
skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT + ( + col2 ) * col0 / 93 FROM tab1
----
1
39
82
query I rowsort
SELECT + 76 * + col1 AS col2 FROM tab2 AS cor0
----
1292
2356
4484
query I rowsort
SELECT + + cor0.col1 * + cor0.col0 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7055
SELECT DISTINCT - col2 DIV - col1 AS col2 FROM tab1
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT - col2 / - col1 AS col2 FROM tab1
----
2
5
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab0.col1 * + col2 col1 FROM tab0
----
2838
7462
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col1 * col2 col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT DISTINCT + 96 AS col1 FROM tab2, tab1 AS cor0
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7059
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab0, tab1 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7059
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab0, tab1 cor0
----
NULL
query I rowsort
SELECT - 72 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6
query I rowsort
SELECT + col1 * 3 AS col2 FROM tab0
----
258
273
291
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 23 col0 FROM tab2 AS cor0
----
1357
391
713
query I rowsort
SELECT ALL + col1 * - 36 * - col1 AS col1 FROM tab2
----
10404
125316
34596
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7064
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7064
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab1, tab2 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7065
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7066
SELECT + + col2 + col0 DIV - col0 + + col2 AS col0 FROM tab2 AS cor0
----
51
53
75
skipif mysql # not compatible
query I rowsort label-7066
SELECT + + col2 + col0 / - col0 + + col2 AS col0 FROM tab2 AS cor0
----
51
53
75
query I rowsort
SELECT - - cor0.col0 * - 64 + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-13795
-3600
-5635
onlyif mysql # use DIV operator for integer division
query I rowsort label-7068
SELECT - 32 DIV + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7068
SELECT - 32 / + cor0.col1 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 * 60 FROM tab2 AS cor0
----
1560
1620
2280
query I rowsort
SELECT + + ( 72 ) * + col1 FROM tab1 AS cor0
----
1872
720
936
query I rowsort
SELECT DISTINCT - col1 * - 20 AS col1 FROM tab1
----
200
260
520
query I rowsort
SELECT - 43 * + 76 AS col0 FROM tab2 AS cor0
----
-3268
-3268
-3268
query I rowsort
SELECT - col0 + cor0.col0 + - col2 AS col0 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT ALL - 16 AS col1 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 71c8b08964ab47ce12158975c0ee1fd9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7075
SELECT ALL + col1 DIV - ( - 10 ) FROM tab0
----
8
9
9
skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL + col1 / - ( - 10 ) FROM tab0
----
8
9
9
query I rowsort
SELECT ALL col1 + ( cor0.col0 ) AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT DISTINCT col2 + 92 FROM tab1 AS cor0
----
146
149
188
onlyif mysql # use DIV operator for integer division
query I rowsort label-7078
SELECT col2 DIV 87 + + col1 FROM tab2 AS cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-7078
SELECT col2 / 87 + + col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT ALL + - ( - 86 ) AS col2 FROM tab1 AS cor0
----
86
86
86
query I rowsort
SELECT ALL 13 + - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1235
-1391
-557
query I rowsort
SELECT - cor0.col2 * 83 FROM tab0 AS cor0
----
-2739
-6806
-83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7082
SELECT ALL - CAST( col1 AS SIGNED ) + + col1 AS col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL - CAST ( col1 AS INTEGER ) + + col1 AS col1 FROM tab0 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col2 * 37 * + col2 + - col0 * + col1 + - col1 FROM tab2 AS cor0
----
20351
26725
52068
query I rowsort
SELECT DISTINCT + col2 + - 70 FROM tab1 AS cor0
----
-13
-16
26
query I rowsort
SELECT - - col2 * - cor0.col1 * col1 AS col0 FROM tab0 AS cor0
----
-244068
-679042
-9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7086
SELECT - tab1.col2 DIV ( - col2 ) + + col1 * - col0 FROM tab1
----
-1039
-639
-77
skipif mysql # not compatible
query I rowsort label-7086
SELECT - tab1.col2 / ( - col2 ) + + col1 * - col0 FROM tab1
----
-1039
-639
-77
query I rowsort
SELECT DISTINCT tab2.col2 * ( - col2 ) FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT + col0 - col2 * col0 AS col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT + cor0.col0 * col0 + 62 FROM tab0 AS cor0
----
1287
638
7983
query I rowsort
SELECT DISTINCT + col2 * + col2 + + cor0.col1 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT + + col2 * - cor0.col1 AS col1 FROM tab1 cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7092
SELECT ALL - col1 - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99
skipif mysql # not compatible
query I rowsort label-7092
SELECT ALL - col1 - col1 / col0 AS col1 FROM tab0 AS cor0
----
-89
-92
-99
query I rowsort
SELECT + + ( cor0.col0 ) + + 55 AS col0 FROM tab1 AS cor0
----
119
135
58
onlyif mysql # use DIV operator for integer division
query I rowsort label-7094
SELECT DISTINCT - ( - col1 ) + + col0 DIV + col0 AS col0 FROM tab0 AS cor0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT - ( - col1 ) + + col0 / + col0 AS col0 FROM tab0 AS cor0
----
87
92
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7095
SELECT - ( tab1.col0 + tab1.col0 ) DIV + col0 AS col2 FROM tab1
----
-2
-2
-2
skipif mysql # not compatible
query I rowsort label-7095
SELECT - ( tab1.col0 + tab1.col0 ) / + col0 AS col2 FROM tab1
----
-2
-2
-2
query I rowsort
SELECT - - 59 * - col0 + - ( col0 + col2 ) FROM tab2 AS cor0
----
-447
-4706
-4778
query I rowsort
SELECT ALL col2 * - col1 + 9 FROM tab0 AS cor0
----
-2829
-7453
-88
query I rowsort
SELECT DISTINCT + col2 + cor0.col1 AS col0 FROM tab0 cor0
----
119
173
98
query I rowsort
SELECT DISTINCT col0 * - cor0.col2 + + cor0.col1 AS col2 FROM tab2 AS cor0
----
-158
-1969
-2985
query I rowsort
SELECT + 67 AS col1 FROM tab0
----
67
67
67
query I rowsort
SELECT ALL - ( 2 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17
query I rowsort
SELECT DISTINCT + col2 + col0 * - col1 * col0 AS col0 FROM tab1
----
-180
-40903
-83104
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7103
SELECT + 22 * + cor0.col2 + CAST( - col2 * col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
-2112
-5658
-75
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7103
SELECT + 22 * + cor0.col2 + CAST ( - col2 * col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
-2112
-5658
-75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7104
SELECT ALL col0 * col2 + - CAST( col0 AS SIGNED ) + + col1 * 51 AS col0 FROM tab0
----
11850
4947
5154
skipif mysql # not compatible
query I rowsort label-7104
SELECT ALL col0 * col2 + - CAST ( col0 AS INTEGER ) + + col1 * 51 AS col0 FROM tab0
----
11850
4947
5154
query I rowsort
SELECT ALL col0 + col0 * - 86 AS col2 FROM tab1
----
-255
-5440
-6800
query I rowsort
SELECT ALL ( + col0 ) + 88 AS col0 FROM tab0
----
112
123
177
query I rowsort
SELECT 96 * col1 AS col2 FROM tab2 AS cor0
----
1632
2976
5664
query I rowsort
SELECT ALL col2 + + col2 * 50 FROM tab0
----
1683
4182
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + ( tab0.col0 ) ) col1 FROM tab0
----
-1225
-576
-7921
query I rowsort
SELECT ALL - col1 * + col0 * 91 FROM tab0 AS cor0
----
-187824
-308945
-737009
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7111
SELECT - cor0.col0 + - CAST( col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96
skipif mysql # not compatible
query I rowsort label-7111
SELECT - cor0.col0 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-137
-38
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7112
SELECT DISTINCT + col2 DIV 15 FROM tab0 AS cor0
----
0
2
5
skipif mysql # not compatible
query I rowsort label-7112
SELECT DISTINCT + col2 / 15 FROM tab0 AS cor0
----
0
2
5
query I rowsort
SELECT col1 * + col1 * + col0 AS col0 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT DISTINCT - col1 + 64 FROM tab2 AS cor0
----
33
47
5
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-7116
SELECT ALL - + cor0.col2 DIV + 97 FROM tab2 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL - + cor0.col2 / + 97 FROM tab2 cor0
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 * 84 * 89 FROM tab2 AS cor0
----
-194376
-201852
-284088
query I rowsort
SELECT col2 + ( + 62 * col2 ) AS col0 FROM tab2 AS cor0
----
1638
1701
2394
query I rowsort
SELECT + col2 * 45 * col1 AS col0 FROM tab1 AS cor0
----
25650
56160
63180
query I rowsort
SELECT ALL 34 * col1 FROM tab2
----
1054
2006
578
query I rowsort
SELECT ALL + col0 * col1 + - col1 - + col1 FROM tab2
----
1309
155
4484
onlyif mysql # use DIV operator for integer division
query I rowsort label-7122
SELECT ALL - 40 DIV cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - 40 / cor0.col1 AS col1 FROM tab1 AS cor0
----
-1
-3
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7123
SELECT DISTINCT - + CAST( - 73 AS SIGNED ) + col0 * + 10 AS col0 FROM tab1 AS cor0
----
103
713
873
skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - + CAST ( - 73 AS INTEGER ) + col0 * + 10 AS col0 FROM tab1 AS cor0
----
103
713
873
query I rowsort
SELECT ALL 6 + + col0 AS col1 FROM tab1 AS cor0
----
70
86
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-7125
SELECT DISTINCT - - col0 DIV col1 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT - - col0 / col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + cor0.col1 * + col0 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT + + cor0.col1 * col1 + col2 AS col2 FROM tab1 cor0
----
157
265
730
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + cor0.col0 * - 2 col1 FROM tab1 AS cor0
----
-64
-71
48
query I rowsort
SELECT ALL cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT + col2 + - 50 * 54 AS col1 FROM tab1
----
-2604
-2643
-2646
onlyif mysql # use DIV operator for integer division
query I rowsort label-7131
SELECT ALL col1 DIV + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97
skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL col1 / + cor0.col2 AS col2 FROM tab0 AS cor0
----
1
2
97
query I rowsort
SELECT DISTINCT + + col2 + cor0.col0 * col2 * col0 FROM tab2 AS cor0
----
1350
158210
237196
query I rowsort
SELECT DISTINCT col1 * - 19 + - 21 AS col0 FROM tab2 cor0
----
-1142
-344
-610
query I rowsort
SELECT DISTINCT + cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
29
74
93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + + 98 * cor0.col0 col0 FROM tab1 AS cor0
----
346
6324
7892
query I rowsort
SELECT + - 48 * col2 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT ALL - col0 * col1 + + 60 * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-6083
-637
-9282
onlyif mysql # use DIV operator for integer division
query I rowsort label-7138
SELECT + - 4 + col1 * col2 DIV 77 AS col2 FROM tab1 AS cor0
----
12
14
3
skipif mysql # not compatible
query I rowsort label-7138
SELECT + - 4 + col1 * col2 / 77 AS col2 FROM tab1 AS cor0
----
12
14
3
query I rowsort
SELECT ALL + col2 * col0 * + 34 + + 20 FROM tab0 cor0
----
1210
248152
26948
query I rowsort
SELECT ALL - + col1 * col2 + + col1 * + col0 * + col2 FROM tab2 AS cor0
----
118118
5022
50388
query I rowsort
SELECT ALL cor0.col2 FROM tab0, tab1 cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + 66 + col1 FROM tab1 AS cor0
----
76
79
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-7143
SELECT DISTINCT col0 DIV col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
101
170
677
skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT col0 / col0 + col1 * col1 AS col1 FROM tab1 AS cor0
----
101
170
677
onlyif mysql # use DIV operator for integer division
query I rowsort label-7144
SELECT 20 DIV col2 + - ( + cor0.col0 + col2 ) DIV col0 FROM tab0 AS cor0
----
-1
-2
19
skipif mysql # not compatible
query I rowsort label-7144
SELECT 20 / col2 + - ( + cor0.col0 + col2 ) / col0 FROM tab0 AS cor0
----
-1
-2
19
query I rowsort
SELECT cor0.col0 + + col2 * ( 77 ) AS col2 FROM tab0 AS cor0
----
112
2565
6403
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 + tab2.col1 * col2 col2 FROM tab2
----
1609
721
912
query I rowsort
SELECT DISTINCT - + col1 * - col2 - + col2 FROM tab0 AS cor0
----
2805
7380
96
query I rowsort
SELECT DISTINCT - 41 * - col2 - - col2 FROM tab1 AS cor0
----
2268
2394
4032
query I rowsort
SELECT - + col1 * + col0 + + col2 AS col2 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ( tab0.col0 ) * 11 + + col1 FROM tab0
----
1070
350
482
query I rowsort
SELECT - 30 * col1 FROM tab0
----
-2580
-2730
-2910
query I rowsort
SELECT - col1 + - ( col0 * cor0.col1 + - col1 ) AS col1 FROM tab0 AS cor0
----
-2064
-3395
-8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-7153
SELECT - col2 DIV 25 FROM tab2 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7153
SELECT - col2 / 25 FROM tab2 AS cor0
----
-1
-1
-1
query I rowsort
SELECT - col0 * + col2 + - tab0.col1 FROM tab0
----
-132
-7389
-878
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + col1 col2 FROM tab1
----
20
26
52
query I rowsort
SELECT 82 + col0 FROM tab0
----
106
117
171
query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
25
onlyif mysql # use DIV operator for integer division
query I rowsort label-7158
SELECT + + col1 * - col1 DIV col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21
skipif mysql # not compatible
query I rowsort label-7158
SELECT + + col1 * - col1 / col1 + + col2 FROM tab2 AS cor0
----
-33
-4
21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7159
SELECT col1 * col1 DIV - col1 + 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-7159
SELECT col1 * col1 / - col1 + col1 col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + - cor0.col1 + col1 AS col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * col1 * + cor0.col1 + col0 col1 FROM tab0 AS cor0
----
-177480
-329280
-736920
query I rowsort
SELECT DISTINCT + - col1 + + col2 AS col0 FROM tab2 cor0
----
-33
-4
21
query I rowsort
SELECT 92 * col2 AS col1 FROM tab1
----
4968
5244
8832
query I rowsort
SELECT ALL - tab0.col0 + 81 AS col0 FROM tab0
----
-8
46
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7165
SELECT 44 + + col0 + + col2 * col2 DIV col1 FROM tab1
----
159
432
832
skipif mysql # not compatible
query I rowsort label-7165
SELECT 44 + + col0 + + col2 * col2 / col1 FROM tab1
----
159
432
832
query I rowsort
SELECT + col2 - col0 * cor0.col1 FROM tab1 AS cor0
----
-24
-583
-944
query I rowsort
SELECT ALL - 90 + + col1 * col2 FROM tab2
----
1444
556
747
query I rowsort
SELECT DISTINCT + col0 * col1 * - col0 AS col2 FROM tab1
----
-234
-40960
-83200
query I rowsort
SELECT DISTINCT ( col1 ) * - col0 * - col0 AS col0 FROM tab0
----
118825
49536
720811
query I rowsort
SELECT DISTINCT - 95 + col1 + + col0 FROM tab2
----
-57
1
42
query I rowsort
SELECT - + cor0.col0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 09d8a912de1b8ab762e5ffbe028ce99e
query I rowsort
SELECT ALL col1 * col1 + + col0 FROM tab0 cor0
----
7420
8370
9444
query I rowsort
SELECT - 16 * col0 * col2 FROM tab2 AS cor0
----
-3024
-32448
-48032
query I rowsort
SELECT 44 + - col1 * col1 * col0 AS col1 FROM tab2 AS cor0
----
-22787
-271474
-6683
query I rowsort
SELECT cor0.col2 * cor0.col1 + - col1 AS col2 FROM tab1 AS cor0
----
1235
1378
560
query I rowsort
SELECT - + ( - cor0.col0 ) * col2 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT + + 32 * + col2 + - col0 - - col2 AS col1 FROM tab0 AS cor0
----
-2
1065
2617
query I rowsort
SELECT - - 59 * + 69 AS col0 FROM tab0, tab1, tab1 cor0
----
27 values hashing to 9786e98e188057138c8cf6c36539f3cd
query I rowsort
SELECT DISTINCT col0 * + col1 + + col2 AS col0 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + col0 + + col0 * tab0.col2 AS col1 FROM tab0
----
70
7387
816
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7181
SELECT ALL + ( 47 ) + - col2 * - CAST( cor0.col1 AS SIGNED ) + - col2 FROM tab1 AS cor0
----
1199
1397
560
skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + ( 47 ) + - col2 * - CAST ( cor0.col1 AS INTEGER ) + - col2 FROM tab1 AS cor0
----
1199
1397
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # use DIV operator for integer division
query I rowsort label-7183
SELECT DISTINCT - col2 DIV col0 col2 FROM tab1 AS cor0
----
-1
-18
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7183
SELECT DISTINCT - col2 / col0 col2 FROM tab1 AS cor0
----
-1
-18
0
query I rowsort
SELECT - - col1 * - col2 + col2 * col2 + + 17 FROM tab0 AS cor0
----
-1732
-721
-79
query I rowsort
SELECT - ( - cor0.col1 ) + col1 AS col0 FROM tab1 AS cor0
----
20
26
52
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7186
SELECT + col2 * col1 + + col2 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
14186
3927
98
skipif mysql # not compatible
query I rowsort label-7186
SELECT + col2 * col1 + + col2 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
14186
3927
98
query I rowsort
SELECT ALL + ( - col0 ) + + cor0.col2 - 40 FROM tab0 cor0
----
-31
-47
-74
query I rowsort
SELECT 37 * - cor0.col2 + col2 * - 1 FROM tab1 AS cor0
----
-2052
-2166
-3648
query I rowsort
SELECT ALL + 9 FROM tab0 cor0
----
9
9
9
query I rowsort
SELECT ALL + 86 + col2 FROM tab2 cor0
----
112
113
124
query I rowsort
SELECT DISTINCT + 89 + col2 * 9 AS col0 FROM tab1 AS cor0
----
575
602
953
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 22 col1 FROM tab2 AS cor0
----
-22
query I rowsort
SELECT ALL + col0 * cor0.col1 AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + + ( - col1 ) + + ( 19 ) * + col1 AS col0 FROM tab2 AS cor0
----
1062
306
558
onlyif mysql # use DIV operator for integer division
query I rowsort label-7195
SELECT + cor0.col0 + + col0 DIV ( + col1 ) AS col1 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-7195
SELECT + cor0.col0 + + col0 / ( + col1 ) AS col1 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT ALL ( + 25 ) * + col0 + col0 + + 3 AS col1 FROM tab2
----
185
2031
2057
query I rowsort
SELECT DISTINCT col0 * - col1 + col0 FROM tab0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7198
SELECT - ( tab0.col0 ) / - col2 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7198
SELECT - ( tab0.col0 ) / - col2 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 - + 64 FROM tab1
----
-118
-121
-160
query I rowsort
SELECT ALL - 90 * col1 AS col1 FROM tab1 AS cor0
----
-1170
-2340
-900
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7201
SELECT DISTINCT ( - cor0.col0 ) * CAST( NULL AS SIGNED ) + col1 / - col1 FROM tab2 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT ( - cor0.col0 ) * CAST ( NULL AS INTEGER ) + col1 / - col1 FROM tab2 cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7202
SELECT ALL CAST( - col2 * col1 AS SIGNED ) AS col2 FROM tab2
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL CAST ( - col2 * col1 AS INTEGER ) AS col2 FROM tab2
----
-1534
-646
-837
query I rowsort
SELECT ALL 93 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde
query I rowsort
SELECT + col0 * 29 + col1 FROM tab1 AS cor0
----
113
1866
2333
query I rowsort
SELECT col1 * 81 - - col0 * + cor0.col1 FROM tab2 AS cor0
----
2720
2728
9381
query I rowsort
SELECT DISTINCT col1 + + 65 * - col1 FROM tab0 cor0
----
-5504
-5824
-6208
query I rowsort
SELECT + col1 - - 32 AS col0 FROM tab0 AS cor0
----
118
123
129
query I rowsort
SELECT - - col1 + col0 FROM tab1 cor0
----
29
74
93
query I rowsort
SELECT col1 * + col0 + 4 AS col2 FROM tab0 AS cor0
----
2068
3399
8103
query I rowsort
SELECT 65 AS col1 FROM tab0, tab1, tab0 cor0
----
27 values hashing to 1c9d0bf96cd3361942fadad668138b9c
query I rowsort
SELECT ( tab2.col2 * - col2 ) FROM tab2
----
-1444
-676
-729
query I rowsort
SELECT - 96 AS col2 FROM tab2
----
-96
-96
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7213
SELECT - col1 DIV - ( cor0.col1 ) - - col0 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-7213
SELECT - col1 / - ( cor0.col1 ) - - col0 AS col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT DISTINCT col2 - + ( col1 ) FROM tab0 AS cor0
----
-53
-9
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col1 * col1 col2 FROM tab2 cor0
----
-306
-3540
-992
query I rowsort
SELECT col0 * 16 FROM tab1 cor0
----
1024
1280
48
query I rowsort
SELECT - col1 + - cor0.col0 * col2 * - col2 FROM tab0 AS cor0
----
-62
26050
598345
onlyif mysql # use DIV operator for integer division
query I rowsort label-7218
SELECT + cor0.col1 + + col2 DIV col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
skipif mysql # not compatible
query I rowsort label-7218
SELECT + cor0.col1 + + col2 / col1 + col1 AS col2 FROM tab0 AS cor0
----
172
182
194
query I rowsort
SELECT ALL - - cor0.col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 585a41a52c0c6c0d697b5d39265b74dc
query I rowsort
SELECT ALL + col0 * - tab2.col2 - + col0 FROM tab2
----
-196
-2106
-3081
query I rowsort
SELECT ALL - 79 FROM tab2, tab1 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f
query I rowsort
SELECT ALL - - ( col2 ) * + col2 - col1 FROM tab0 AS cor0
----
-96
1003
6633
skipif mysql # not compatible
query I rowsort
SELECT + ( + cor0.col2 ) * col1 + + CAST ( - 57 * + col0 AS REAL ) FROM tab2 AS cor0
----
-2912
-3857
438
query I rowsort
SELECT DISTINCT + col0 + col1 * + col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL ( - 71 ) + col0 * 16 AS col0 FROM tab2 AS cor0
----
1177
1193
41
query I rowsort
SELECT ( 99 ) AS col0 FROM tab2 AS cor0
----
99
99
99
query I rowsort
SELECT + col1 + ( + col0 ) AS col1 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT ALL + + cor0.col2 * 41 FROM tab2 AS cor0
----
1066
1107
1558
onlyif mysql # use DIV operator for integer division
query I rowsort label-7229
SELECT - col2 DIV + col1 + col0 col2 FROM tab2 cor0
----
7
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7229
SELECT - col2 / + col1 + col0 col2 FROM tab2 cor0
----
7
77
78
query I rowsort
SELECT DISTINCT col1 * + col0 + col1 FROM tab0 cor0
----
2150
3492
8190
query I rowsort
SELECT ALL 58 - col0 FROM tab0 AS cor0
----
-31
23
34
query I rowsort
SELECT DISTINCT - col2 + + cor0.col1 + col0 * + 75 * col0 AS col2 FROM tab2 AS cor0
----
3679
456333
468054
query I rowsort
SELECT - + 94 * - col1 + - col0 AS col2 FROM tab0 AS cor0
----
8060
8465
9083
query I rowsort
SELECT ALL - ( - 79 ) AS col0 FROM tab2 AS cor0
----
79
79
79
query I rowsort
SELECT DISTINCT + col1 * + 44 + col2 AS col0 FROM tab1 AS cor0
----
1198
497
668
query I rowsort
SELECT DISTINCT + 16 * col1 + + cor0.col1 + - col1 * - 76 AS col0 FROM tab0 cor0
----
7998
8463
9021
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7237
SELECT ALL + tab2.col2 * + CAST( - col1 + col2 AS SIGNED ) AS col1 FROM tab2
----
-108
-858
798
skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + tab2.col2 * + CAST ( - col1 + col2 AS INTEGER ) AS col1 FROM tab2
----
-108
-858
798
query I rowsort
SELECT ALL - col2 * ( col1 ) - tab1.col1 * tab1.col0 FROM tab1
----
-1210
-1482
-2288
onlyif mysql # use DIV operator for integer division
query I rowsort label-7239
SELECT DISTINCT + tab1.col2 + + col2 * 36 DIV col0 - col0 AS col1 FROM tab1
----
25
59
699
skipif mysql # not compatible
query I rowsort label-7239
SELECT DISTINCT + tab1.col2 + + col2 * 36 / col0 - col0 AS col1 FROM tab1
----
25
59
699
query I rowsort
SELECT ALL - 50 FROM tab0, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
query I rowsort
SELECT ALL - col1 - - 78 AS col0 FROM tab2
----
19
47
61
query I rowsort
SELECT + col0 * - 86 * + col2 AS col1 FROM tab0
----
-3010
-627628
-68112
query I rowsort
SELECT ALL 73 + + tab2.col2 FROM tab2
----
100
111
99
query IIIIIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 CROSS JOIN tab2 cor1
----
243 values hashing to ea21cea53be47edd19229592e3d26141
query I rowsort
SELECT + ( + col2 * col0 ) + + ( - col0 + - col2 ) * + col1 FROM tab2
----
-4108
-865
1013
query I rowsort
SELECT DISTINCT - 8 * + col2 FROM tab2 AS cor0
----
-208
-216
-304
query I rowsort
SELECT + 24 AS col1 FROM tab1 cor0
----
24
24
24
onlyif mysql # use DIV operator for integer division
query I rowsort label-7248
SELECT DISTINCT - - 30 * - 10 + + col1 + 17 * 31 DIV - col2 AS col0 FROM tab0 cor0
----
-215
-229
-730
skipif mysql # not compatible
query I rowsort label-7248
SELECT DISTINCT - - 30 * - 10 + + col1 + 17 * 31 / - col2 AS col0 FROM tab0 cor0
----
-215
-229
-730
query I rowsort
SELECT - + 77 * col1 - col0 AS col1 FROM tab0 AS cor0
----
-6646
-7096
-7504
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7250
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7250
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col0 AS col0 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 + - ( + col2 + + col1 ) col1 FROM tab0
----
-105
-159
-84
query I rowsort
SELECT cor0.col2 * - cor0.col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL ( + col0 ) * 35 AS col1 FROM tab1
----
105
2240
2800
query I rowsort
SELECT ALL 54 * + col0 AS col0 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT + - col2 * - ( + ( col1 ) ) * col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # use DIV operator for integer division
query I rowsort label-7256
SELECT - cor0.col2 DIV - col2 AS col2 FROM tab0 cor0
----
1
1
1
skipif mysql # not compatible
query I rowsort label-7256
SELECT - cor0.col2 / - col2 AS col2 FROM tab0 cor0
----
1
1
1
query I rowsort
SELECT ALL - col1 * ( - ( cor0.col2 ) * + 15 ) FROM tab1 cor0
----
18720
21060
8550
query I rowsort
SELECT ALL + col1 * + ( col1 ) + - cor0.col1 FROM tab2 AS cor0
----
272
3422
930
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7259
SELECT ALL - + col0 * CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL - + col0 * CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col0 * - 38 AS col2 FROM tab0 AS cor0
----
-1330
-3382
-912
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7261
SELECT - col2 * col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7261
SELECT - col2 * col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT - col2 + + 9 AS col1 FROM tab1 AS cor0
----
-45
-48
-87
query I rowsort
SELECT - + col1 + + ( col2 ) FROM tab0 AS cor0
----
-53
-9
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7264
SELECT 25 * - cor0.col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-7264
SELECT 25 * - cor0.col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT col1 * - 76 * - col2 + + cor0.col0 AS col0 FROM tab1 AS cor0
----
106707
43384
94928
query I rowsort
SELECT ALL cor0.col2 * - ( ( col1 ) ) - col0 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT + col0 * + ( + col0 ) AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ( col2 ) * + col0 + + col2 AS col0 FROM tab2
----
2054
216
3040
query I rowsort
SELECT DISTINCT 43 FROM tab2, tab0 AS cor0, tab0, tab1 AS cor1
----
43
onlyif mysql # use DIV operator for integer division
query I rowsort label-7270
SELECT DISTINCT + + col0 * + 4 + col2 DIV + col1 FROM tab0 AS cor0
----
140
356
96
skipif mysql # not compatible
query I rowsort label-7270
SELECT DISTINCT + + col0 * + 4 + col2 / + col1 FROM tab0 AS cor0
----
140
356
96
query I rowsort
SELECT col0 + - cor0.col2 - cor0.col2 AS col0 FROM tab2 AS cor0
----
-47
26
3
query I rowsort
SELECT + ( + col2 ) + - col0 * ( - col1 ) FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT ALL - col0 * - 19 FROM tab2 AS cor0
----
133
1482
1501
query I rowsort
SELECT DISTINCT + + 22 + col1 + - col0 FROM tab2 cor0
----
-40
3
46
query I rowsort
SELECT ALL + 47 + col1 FROM tab2 AS cor0
----
106
64
78
query I rowsort
SELECT ALL + col2 + col1 * + col2 AS col1 FROM tab0 AS cor0
----
2871
7544
98
onlyif mysql # use DIV operator for integer division
query I rowsort label-7277
SELECT - col1 DIV col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-7277
SELECT - col1 / col2 + cor0.col1 AS col0 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT + - col0 + + col1 * 64 AS col1 FROM tab0 AS cor0
----
5480
5735
6173
query I rowsort
SELECT + col1 * col0 + col0 AS col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL 53 * - cor0.col0 + cor0.col2 AS col1 FROM tab1 AS cor0
----
-105
-3335
-4144
query I rowsort
SELECT DISTINCT + col1 * - col1 - - cor0.col2 AS col2 FROM tab1 AS cor0
----
-43
-622
-73
query I rowsort
SELECT + - 65 * - col0 + col1 AS col0 FROM tab1 AS cor0
----
221
4170
5213
onlyif mysql # use DIV operator for integer division
query I rowsort label-7283
SELECT - 28 * col0 + ( col0 ) DIV col1 AS col2 FROM tab0 AS cor0
----
-2492
-672
-980
skipif mysql # not compatible
query I rowsort label-7283
SELECT - 28 * col0 + ( col0 ) / col1 AS col2 FROM tab0 AS cor0
----
-2492
-672
-980
query I rowsort
SELECT ALL cor1.col1 * cor1.col2 AS col1 FROM tab2, tab1 AS cor0 CROSS JOIN tab0, tab0 AS cor1
----
81 values hashing to fa19f19166ddb9d787d698fb7a7a671e
query I rowsort
SELECT + 55 - col0 AS col2 FROM tab0 AS cor0
----
-34
20
31
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7286
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-7286
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab0 cor1
----
NULL
query I rowsort
SELECT - col0 * col1 + + ( col1 * col0 ) + + ( col1 ) * col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 56 + + col0 FROM tab1 AS cor0
----
120
136
59
query I rowsort
SELECT - cor0.col0 + + col0 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT - col0 + col2 * - cor0.col2 + - col1 FROM tab2 AS cor0
----
-1540
-767
-813
query I rowsort
SELECT - + 98 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col1 + col2 col2 FROM tab0 AS cor0
----
-2805
-7380
-96
query I rowsort
SELECT + + 86 * cor0.col2 AS col2 FROM tab2 AS cor0
----
2236
2322
3268
onlyif mysql # use DIV operator for integer division
query I rowsort label-7294
SELECT + 57 DIV + 7 AS col2 FROM tab1 cor0
----
8
8
8
skipif mysql # not compatible
query I rowsort label-7294
SELECT + 57 / + 7 AS col2 FROM tab1 cor0
----
8
8
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-7295
SELECT ALL - - col1 DIV col0 + + col2 col2 FROM tab0 AS cor0
----
3
36
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7295
SELECT ALL - - col1 / col0 + + col2 col2 FROM tab0 AS cor0
----
3
36
83
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 AS cor0, tab1 cor1, tab2, tab1 AS cor2
----
3645 values hashing to db56d052e81a1ceebb4c3aea124670be
query I rowsort
SELECT ALL 9 AS col2 FROM tab0, tab2 cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
query I rowsort
SELECT ALL 55 * col1 FROM tab2
----
1705
3245
935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 * col2 * - col1 col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT DISTINCT + - 73 * - col2 FROM tab2 cor0
----
1898
1971
2774
query I rowsort
SELECT DISTINCT cor0.col2 FROM tab2, tab1, tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( col2 * - col0 AS REAL ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - + cor0.col0 * cor0.col2 - - col0 * col1 AS col1 FROM tab2 AS cor0
----
-1659
2574
28
query I rowsort
SELECT - col1 * - 34 - col0 * + ( col1 ) FROM tab0 AS cor0
----
-5005
-97
860
query I rowsort
SELECT - col0 + 26 AS col2 FROM tab1 cor0
----
-38
-54
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-7306
SELECT - 72 DIV - col2 - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-80
skipif mysql # not compatible
query I rowsort label-7306
SELECT - 72 / - col2 - col0 AS col1 FROM tab1 AS cor0
----
-2
-63
-80
query I rowsort
SELECT DISTINCT + 81 + - ( + cor0.col0 + col2 ) FROM tab0 AS cor0
----
-90
24
45
query I rowsort
SELECT ALL + 83 * col0 FROM tab1 AS cor0
----
249
5312
6640
query I rowsort
SELECT + 34 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
-55
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7310
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab0, tab0 AS cor0, tab2, tab2 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab0, tab0 AS cor0, tab2, tab2 cor1
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
onlyif mysql # use DIV operator for integer division
query I rowsort label-7311
SELECT + - col0 * - col1 - col1 DIV cor0.col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098
skipif mysql # not compatible
query I rowsort label-7311
SELECT + - col0 * - col1 - col1 / cor0.col1 AS col2 FROM tab0 AS cor0
----
2063
3394
8098
query I rowsort
SELECT + 15 + - col1 * + col1 AS col1 FROM tab1
----
-154
-661
-85
query I rowsort
SELECT DISTINCT 31 + + col0 FROM tab0
----
120
55
66
query I rowsort
SELECT - ( 3 ) + col2 FROM tab0
----
-2
30
79
query I rowsort
SELECT ALL + 1 + + col2 FROM tab2
----
27
28
39
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( ( + col2 ) AS REAL ) * - col2 + + ( col1 ) AS col0 FROM tab1
----
-2890
-3239
-9203
onlyif mysql # use DIV operator for integer division
query I rowsort label-7317
SELECT col0 DIV + 57 + col0 + tab1.col0 AS col0 FROM tab1
----
129
161
6
skipif mysql # not compatible
query I rowsort label-7317
SELECT col0 / + 57 + col0 + tab1.col0 AS col0 FROM tab1
----
129
161
6
query I rowsort
SELECT + 3 * + 22 AS col2 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to 897b6122ac98340b78905f39d81897fc
onlyif mysql # use DIV operator for integer division
query I rowsort label-7319
SELECT DISTINCT ( col1 ) DIV + col0 + 91 * - col0 * - col1 FROM tab2
----
122213
19751
418782
skipif mysql # not compatible
query I rowsort label-7319
SELECT DISTINCT ( col1 ) / + col0 + 91 * - col0 * - col1 FROM tab2
----
122213
19751
418782
query I rowsort
SELECT DISTINCT + col2 * - col1 + - col0 * col2 AS col0 FROM tab1 AS cor0
----
-1566
-4218
-8928
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7321
SELECT - + CAST( col0 AS SIGNED ) - + col0 col0 FROM tab0 AS cor0
----
-178
-48
-70
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7321
SELECT - + CAST ( col0 AS INTEGER ) - + col0 col0 FROM tab0 AS cor0
----
-178
-48
-70
query I rowsort
SELECT col0 * col0 + - col2 * + col0 FROM tab1 AS cor0
----
-1280
-153
448
query I rowsort
SELECT ALL + + col1 * + ( + col0 ) * ( + col2 ) + col2 AS col2 FROM tab1 cor0
----
36537
4266
99936
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7324
SELECT + - CAST( NULL AS SIGNED ) / 8 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7324
SELECT + - CAST ( NULL AS INTEGER ) / 8 + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - cor0.col0 * - tab2.col0 FROM tab2, tab0, tab0 AS cor0
----
9 values hashing to 02551feb5ca40c11f08ef3f9e9603264
onlyif mysql # use DIV operator for integer division
query I rowsort label-7326
SELECT col1 DIV + col0 + 73 AS col0 FROM tab0
----
74
75
76
skipif mysql # not compatible
query I rowsort label-7326
SELECT col1 / + col0 + 73 AS col0 FROM tab0
----
74
75
76
query I rowsort
SELECT + ( tab0.col2 ) AS col1 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT - col2 - + col2 * - 67 AS col0 FROM tab2
----
1716
1782
2508
query I rowsort
SELECT + 6 + - col2 AS col1 FROM tab2
----
-20
-21
-32
query I rowsort
SELECT DISTINCT col1 * col0 * - ( - ( col2 ) ) AS col0 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col0 + cor0.col1 * cor0.col1 * cor0.col0 FROM tab2 AS cor0
----
22752
271440
6720
query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL > ( NULL )
----
query I rowsort
SELECT DISTINCT + col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
1122
2
6806
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 - + 98 * + col1 col0 FROM tab1 AS cor0
----
-1037
-1370
-2602
query I rowsort
SELECT - col2 - - 21 AS col0 FROM tab0 cor0
----
-12
-61
20
query I rowsort
SELECT DISTINCT cor0.col0 + 44 FROM tab1 cor0
----
108
124
47
query I rowsort
SELECT DISTINCT col2 + + col2 - + col0 FROM tab2 AS cor0
----
-26
-3
47
query I rowsort
SELECT ALL + cor0.col1 + + ( col0 ) AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT + col0 * 7 AS col0 FROM tab0 AS cor0
----
168
245
623
query I rowsort
SELECT ALL + col0 + - col1 * - 54 * col0 AS col1 FROM tab0 AS cor0
----
111480
183365
437435
query I rowsort
SELECT - 66 AS col0 FROM tab2
----
-66
-66
-66
query I rowsort
SELECT DISTINCT col2 * col2 * + col2 FROM tab1 cor0
----
157464
185193
884736
query I rowsort
SELECT ALL - - col2 * - ( + ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
onlyif mysql # use DIV operator for integer division
query I rowsort label-7344
SELECT DISTINCT + - cor0.col0 DIV col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
skipif mysql # not compatible
query I rowsort label-7344
SELECT DISTINCT + - cor0.col0 / col1 AS col2 FROM tab2 AS cor0
----
-1
-4
0
query I rowsort
SELECT ALL - col0 * + ( col0 ) AS col2 FROM tab2 AS cor0
----
-49
-6084
-6241
query I rowsort
SELECT + - cor0.col1 * + ( - col2 ) AS col2 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT ALL - col2 * ( col2 ) AS col0 FROM tab2
----
-1444
-676
-729
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7348
SELECT ALL + col2 * col2 + 29 * col1 + - CAST( NULL AS SIGNED ) * + ( col1 + + 59 ) * - 98 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7348
SELECT ALL + col2 * col2 + 29 * col1 + - CAST ( NULL AS INTEGER ) * + ( col1 + + 59 ) * - 98 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col1 + ( col2 ) AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT ALL + col1 * + ( col1 ) + col0 FROM tab0 AS cor0
----
7420
8370
9444
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * col0 col1 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT + - ( col1 ) * - col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-7353
SELECT DISTINCT - 49 DIV col1 AS col2 FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7353
SELECT DISTINCT - 49 / col1 AS col2 FROM tab0 AS cor0
----
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7354
SELECT - CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7354
SELECT - CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col1 + col1 * - cor0.col0 * + col1 - + col0 AS col0 FROM tab1 cor0
----
-13613
-2057
-6474
query I rowsort
SELECT + col0 - 16 FROM tab2 AS cor0
----
-9
62
63
query I rowsort
SELECT ALL - col0 + col0 * + col2 AS col2 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + 37 * + col2 AS col2 FROM tab2 AS cor0
----
1406
962
999
query I rowsort
SELECT ALL + - col2 - + col0 * cor0.col1 AS col2 FROM tab2 AS cor0
----
-1381
-244
-4628
query I rowsort
SELECT + - col1 + cor0.col2 AS col1 FROM tab1 AS cor0
----
28
47
83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7361
SELECT ALL + col2 + col0 DIV col2 col1 FROM tab1 AS cor0
----
54
58
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL + col2 + col0 / col2 col1 FROM tab1 AS cor0
----
54
58
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 96 * + col2 + + 33 col2 FROM tab1 AS cor0
----
5217
5505
9249
query I rowsort
SELECT ALL - - col0 * cor0.col2 AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - 9 * col1 FROM tab1 AS cor0
----
-117
-234
-90
query I rowsort
SELECT DISTINCT 41 + + col0 FROM tab1 AS cor0
----
105
121
44
query I rowsort
SELECT ALL + col0 * - col1 + - col2 AS col2 FROM tab2 cor0
----
-1381
-244
-4628
query I rowsort
SELECT - 70 * + col2 + + col0 AS col0 FROM tab1 AS cor0
----
-3777
-3926
-6640
query I rowsort
SELECT ALL col0 + 84 FROM tab2
----
162
163
91
query I rowsort
SELECT DISTINCT + 60 FROM tab0, tab2, tab1 AS cor0, tab1
----
60
query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) + - 52 * + col1 FROM tab1
----
-1355
-584
-756
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 14 * - tab0.col1 + + col2 col0 FROM tab0
----
-1171
-1192
-1357
query I rowsort
SELECT ALL + ( - 39 ) + col1 FROM tab1
----
-13
-26
-29
query I rowsort
SELECT ALL + col1 * col1 - - col1 * - col2 FROM tab2 AS cor0
----
-357
124
1947
query I rowsort
SELECT ALL - col1 * - col2 * col2 + col0 FROM tab1
----
119888
32554
75819
query I rowsort
SELECT ALL col2 + - col0 AS col1 FROM tab1 cor0
----
-7
16
51
query I rowsort
SELECT DISTINCT + col0 + - col2 * - col2 AS col2 FROM tab2 AS cor0
----
1523
736
754
query I rowsort
SELECT DISTINCT - + cor0.col1 * - col2 - + 32 AS col1 FROM tab2 AS cor0
----
1502
614
805
query I rowsort
SELECT cor0.col0 * 1 FROM tab0, tab0 AS cor0
----
9 values hashing to 8b49799942a9e353a3d279cf64ef3f63
query I rowsort
SELECT - + 78 * + col0 + col1 FROM tab1 AS cor0
----
-208
-4982
-6227
query I rowsort
SELECT - 87 + 65 AS col1 FROM tab1 AS cor0
----
-22
-22
-22
query I rowsort
SELECT 85 * - 90 - col0 AS col1 FROM tab2 AS cor0
----
-7657
-7728
-7729
query I rowsort
SELECT - col2 + 98 FROM tab1 AS cor0
----
2
41
44
query I rowsort
SELECT + - ( col2 ) * col0 + - col0 * col0 FROM tab0 AS cor0
----
-1260
-1368
-15219
query I rowsort
SELECT ALL + col2 + + ( + col1 ) FROM tab1
----
109
67
80
query I rowsort
SELECT ALL col0 + ( col0 ) + col0 AS col1 FROM tab0
----
105
267
72
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + 42 + col2 col0 FROM tab2
----
-1066
-1107
-1558
query I rowsort
SELECT + ( - col2 ) * cor0.col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7388
SELECT ALL tab0.col0 + - ( + col0 ) DIV col2 col2 FROM tab0
----
0
24
88
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL tab0.col0 + - ( + col0 ) / col2 col2 FROM tab0
----
0
24
88
query I rowsort
SELECT - + 25 * col2 + col1 + - cor0.col0 * ( - col0 + + col0 ) * - col2 FROM tab1 AS cor0
----
-1324
-1415
-2387
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7390
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( cor0.col2 ) + - col0 col0 FROM tab1 cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7390
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( cor0.col2 ) + - col0 col0 FROM tab1 cor0
----
NULL
query I rowsort
SELECT ALL - - ( - 11 ) FROM tab0 AS cor0
----
-11
-11
-11
onlyif mysql # use DIV operator for integer division
query I rowsort label-7392
SELECT DISTINCT - col0 DIV 71 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7681
skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT - col0 / 71 + - col2 * col0 AS col2 FROM tab1 AS cor0
----
-162
-3648
-7681
query I rowsort
SELECT - ( col1 ) * + col2 + - 6 * 8 FROM tab0 AS cor0
----
-145
-2886
-7510
query I rowsort
SELECT cor0.col0 * col2 + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT DISTINCT col0 + - cor0.col0 AS col0 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT ( - 89 ) FROM tab1
----
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + ( ( col1 ) ) * col0 col1 FROM tab0 AS cor0
----
2150
3492
8190
query I rowsort
SELECT col2 * col2 * col2 AS col0 FROM tab0
----
1
35937
551368
query I rowsort
SELECT - 40 AS col0 FROM tab0, tab1 AS cor0, tab1 AS cor1
----
27 values hashing to 01aad4539198a6509248e086869f90a6
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 ALL + cor0.col2 * + 75 * col1 AS col0 FROM tab0 cor0
----
212850
559650
7275
query I rowsort
SELECT - + col2 * col2 + + cor0.col2 + - col0 AS col2 FROM tab2 AS cor0
----
-1485
-709
-728
query I rowsort
SELECT ALL - - col2 * - cor0.col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7404
SELECT CAST( NULL AS SIGNED ) + + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7404
SELECT CAST ( NULL AS INTEGER ) + + cor0.col1 FROM tab0, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab2, tab1 AS cor0
----
66
onlyif mysql # use DIV operator for integer division
query I rowsort label-7406
SELECT + col1 - 86 DIV - col1 FROM tab2
----
22
33
60
skipif mysql # not compatible
query I rowsort label-7406
SELECT + col1 - 86 / - col1 FROM tab2
----
22
33
60
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7407
SELECT ALL - col0 - ( - col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7407
SELECT ALL - col0 - ( - col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * col0 + col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
-360
-6820
-8184
query I rowsort
SELECT + - 31 * ( col1 ) + col2 - + col0 AS col0 FROM tab1 AS cor0
----
-317
-387
-755
query I rowsort
SELECT DISTINCT 92 FROM tab2 cor0
----
92
query I rowsort
SELECT ALL - 19 + cor0.col2 AS col0 FROM tab0 AS cor0
----
-18
14
63
query I rowsort
SELECT + - 77 * + col2 + cor0.col2 + + col2 * + col1 FROM tab2 AS cor0
----
-1215
-2242
-442
query I rowsort
SELECT ALL cor0.col0 - - 66 FROM tab0 AS cor0
----
101
155
90
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7414
SELECT CAST( 53 AS DECIMAL ) + col1 * - CAST( NULL AS SIGNED ) * - col0 - - cor0.col1 * + 73 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7414
SELECT CAST ( 53 AS REAL ) + col1 * - CAST ( NULL AS INTEGER ) * - col0 - - cor0.col1 * + 73 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-7415
SELECT - col1 DIV + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7415
SELECT - col1 / + col1 AS col0 FROM tab0 cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7416
SELECT - col2 DIV ( col1 ) FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7416
SELECT - col2 / ( col1 ) FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + cor0.col2 * col2 * col1 FROM tab1 AS cor0
----
119808
32490
75816
query I rowsort
SELECT ALL tab2.col0 * col0 AS col2 FROM tab2
----
49
6084
6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-7419
SELECT ALL - tab1.col0 DIV - tab1.col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL - tab1.col0 / - tab1.col2 FROM tab1
----
0
0
1
query I rowsort
SELECT ALL - + col0 * + cor0.col2 * ( col2 ) AS col1 FROM tab2 cor0
----
-114076
-5103
-52728
query I rowsort
SELECT ALL ( col2 * 51 + - tab1.col0 ) AS col2 FROM tab1
----
2751
2843
4816
query I rowsort
SELECT ALL col2 * + col0 + - col2 FROM tab0 AS cor0
----
34
7216
759
query I rowsort
SELECT DISTINCT cor0.col1 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
1136
132
697
query I rowsort
SELECT ALL 40 + col2 AS col2 FROM tab1 AS cor0
----
136
94
97
query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NULL < NULL
----
query I rowsort
SELECT 13 + + cor0.col0 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to 82d4d19bbe39e55dfe878dde0d676e7e
query I rowsort
SELECT DISTINCT + ( col1 ) * col2 FROM tab2
----
1534
646
837
query I rowsort
SELECT ALL 12 - col2 FROM tab0
----
-21
-70
11
query I rowsort
SELECT + col0 + + col2 + col1 AS col2 FROM tab1
----
131
189
83
query I rowsort
SELECT - - 99 * - col1 AS col1 FROM tab0 AS cor0
----
-8514
-9009
-9603
query I rowsort
SELECT + - 52 + - col2 FROM tab0 AS cor0
----
-134
-53
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 + 79 col0 FROM tab1 AS cor0
----
241
3727
7759
query I rowsort
SELECT col1 * + 74 AS col2 FROM tab2
----
1258
2294
4366
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7434
SELECT ALL 99 * + 59 * col0 + + CAST( NULL AS SIGNED ) - - col0 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-7434
SELECT ALL 99 * + 59 * col0 + + CAST ( NULL AS INTEGER ) - - col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - col2 + + 60 FROM tab2
----
22
33
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7436
SELECT - - col1 * - CAST( NULL AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7436
SELECT - - col1 * - CAST ( NULL AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL col1 + ( col1 ) FROM tab0
----
172
182
194
query I rowsort
SELECT + col1 * col2 + tab0.col2 AS col2 FROM tab0
----
2871
7544
98
query I rowsort
SELECT col1 * - 99 + col2 FROM tab1
----
-1191
-2520
-933
query I rowsort
SELECT - - col2 * 48 * col1 AS col1 FROM tab1 AS cor0
----
27360
59904
67392
query I rowsort
SELECT - - col0 + 3 AS col2 FROM tab0 cor0
----
27
38
92
query I rowsort
SELECT - col1 + + col1 + col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT ALL + - ( - cor0.col0 ) + + col1 * 12 AS col1 FROM tab0 AS cor0
----
1056
1181
1199
query I rowsort
SELECT - + 11 FROM tab1 AS cor0
----
-11
-11
-11
query I rowsort
SELECT ALL + 73 * + col1 FROM tab0 cor0
----
6278
6643
7081
query I rowsort
SELECT + ( 17 ) AS col0 FROM tab2 AS cor0
----
17
17
17
query I rowsort
SELECT DISTINCT col1 * 44 + col1 FROM tab0 AS cor0
----
3870
4095
4365
query I rowsort
SELECT DISTINCT - - col1 + - col0 * - col0 AS col2 FROM tab1 cor0
----
35
4106
6413
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7449
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 71 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7449
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 71 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( ( tab2.col0 ) ) + - 43 col1 FROM tab2
----
-36
35
36
query I rowsort
SELECT + col0 * - col2 + col2 AS col1 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL + cor0.col2 + - 2 FROM tab0 AS cor0
----
-1
31
80
query I rowsort
SELECT ALL + cor0.col2 + ( col1 ) * + col1 * + col2 FROM tab2 AS cor0
----
11020
25974
90532
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col1 AS REAL ) * - col2 + 74 AS col1 FROM tab0 AS cor0
----
171
2912
7536
query I rowsort
SELECT DISTINCT - col2 * - col0 + + col2 * + col1 AS col1 FROM tab0 AS cor0
----
132
14760
3630
query I rowsort
SELECT 95 * - 90 AS col2 FROM tab2 AS cor0
----
-8550
-8550
-8550
query I rowsort
SELECT DISTINCT + + ( col1 ) + col1 FROM tab2 cor0
----
118
34
62
query I rowsort
SELECT DISTINCT + - 31 * col2 AS col2 FROM tab0 AS cor0
----
-1023
-2542
-31
query I rowsort
SELECT ALL + ( + cor0.col0 ) + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
121
176
57
query I rowsort
SELECT - + 42 * + col1 AS col0 FROM tab2 AS cor0
----
-1302
-2478
-714
query I rowsort
SELECT DISTINCT + + col1 * + cor0.col2 * cor0.col2 + + col1 FROM tab2 AS cor0
----
22630
24565
39943
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * cor0.col2 col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL 65 + col2 * col1 AS col1 FROM tab2 AS cor0
----
1599
711
902
query I rowsort
SELECT tab1.col0 + + tab1.col1 AS col2 FROM tab1
----
29
74
93
query I rowsort
SELECT + tab2.col1 * - col2 - col1 FROM tab2
----
-1593
-663
-868
query I rowsort
SELECT - 63 * col0 AS col1 FROM tab0 cor0
----
-1512
-2205
-5607
query I rowsort
SELECT DISTINCT + col0 * + col0 + + 64 AS col1 FROM tab0 AS cor0
----
1289
640
7985
query I rowsort
SELECT DISTINCT + - col0 * + col2 + - 57 FROM tab2 AS cor0
----
-2085
-246
-3059
query I rowsort
SELECT cor0.col1 * ( - col0 ) - cor0.col1 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
25730
85904
9639
onlyif mysql # use DIV operator for integer division
query I rowsort label-7470
SELECT + col1 DIV + 28 + - ( - col2 ) DIV - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7470
SELECT + col1 / + 28 + - ( - col2 ) / - col2 AS col2 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL - col0 + - 84 FROM tab1 AS cor0
----
-148
-164
-87
query I rowsort
SELECT + + col0 * ( + col0 * + col2 ) + 89 + - col2 FROM tab0 AS cor0
----
1313
19064
649529
onlyif mysql # use DIV operator for integer division
query I rowsort label-7473
SELECT DISTINCT - cor0.col2 DIV ( + 13 ) + col2 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2095
3396
8175
skipif mysql # not compatible
query I rowsort label-7473
SELECT DISTINCT - cor0.col2 / ( + 13 ) + col2 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
2095
3396
8175
query I rowsort
SELECT ALL col1 * - col2 - + ( + col2 ) AS col1 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT + col2 * ( + col1 ) + col0 * col1 + ( + col2 ) AS col1 FROM tab1 AS cor0
----
1267
1536
2384
query I rowsort
SELECT DISTINCT + + col2 + 73 FROM tab1 AS cor0
----
127
130
169
query I rowsort
SELECT DISTINCT - col1 * 27 + col1 FROM tab0 AS cor0
----
-2236
-2366
-2522
query I rowsort
SELECT ALL cor0.col1 + + 11 FROM tab1 AS cor0
----
21
24
37
query I rowsort
SELECT + col1 + 73 AS col1 FROM tab2 AS cor0
----
104
132
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + ( - col1 ) * col0 col1 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT + col1 * cor0.col0 + + col2 * col2 FROM tab2 AS cor0
----
2787
5278
946
query I rowsort
SELECT col1 + - ( + 38 ) FROM tab1
----
-12
-25
-28
onlyif mysql # use DIV operator for integer division
query I rowsort label-7483
SELECT ALL + col1 DIV - col1 col1 FROM tab0 cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + col1 / - col1 col1 FROM tab0 cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + col1 + - col0 * col0 * col2 FROM tab1 AS cor0
----
-233462
-460
-614387
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 93 col2 FROM tab0 AS cor0
----
-2232
-3255
-8277
query I rowsort
SELECT DISTINCT 21 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
21
query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab2
----
-69
query I rowsort
SELECT + 41 * col0 AS col2 FROM tab2
----
287
3198
3239
query I rowsort
SELECT DISTINCT 77 FROM tab0, tab0 AS cor0, tab0 cor1
----
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-7490
SELECT 59 DIV col1 col0 FROM tab2
----
1
1
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7490
SELECT 59 / col1 col0 FROM tab2
----
1
1
3
query IIIIIIIIIIII rowsort
SELECT ALL * FROM tab0, tab2 cor0, tab1 AS cor1, tab2 AS cor2
----
972 values hashing to bcf430f79386b43bc4077271fcd15cf0
query I rowsort
SELECT - col2 + 82 AS col1 FROM tab0 cor0
----
0
49
81
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 16 + - col1 * - col0 col0 FROM tab0 AS cor0
----
2448
3955
9523
query I rowsort
SELECT DISTINCT - 85 + col0 * tab2.col1 + tab2.col2 FROM tab2
----
1296
159
4543
query I rowsort
SELECT + 23 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 546d49aa433406dd83ea19885588e658
onlyif mysql # use DIV operator for integer division
query I rowsort label-7496
SELECT 69 DIV - col0 col1 FROM tab0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7496
SELECT 69 / - col0 col1 FROM tab0
----
-1
-2
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 24 - - col0 col2 FROM tab0 cor0
----
2225
600
875
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7498
SELECT DISTINCT + cor0.col1 + CAST( NULL AS SIGNED ) * + ( col2 ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT + cor0.col1 + CAST ( NULL AS INTEGER ) * + ( col2 ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT - col2 + + 16 AS col2 FROM tab0 AS cor0
----
-17
-66
15
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col0 ) * - col2 col2 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT + + col1 + 57 FROM tab2 cor0
----
116
74
88
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7502
SELECT DISTINCT - - CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7503
SELECT - col1 DIV + 7 AS col0 FROM tab2 AS cor0
----
-2
-4
-8
skipif mysql # not compatible
query I rowsort label-7503
SELECT - col1 / + 7 AS col0 FROM tab2 AS cor0
----
-2
-4
-8
query I rowsort
SELECT + + 78 * - ( - cor0.col2 ) * + col0 FROM tab0 AS cor0
----
2730
569244
61776
query I rowsort
SELECT DISTINCT + ( col1 ) * col2 AS col1 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT - - col2 + - 1 AS col0 FROM tab2 cor0
----
25
26
37
onlyif mysql # use DIV operator for integer division
query I rowsort label-7507
SELECT col2 DIV + col0 + 21 * + col1 AS col0 FROM tab1
----
210
274
564
skipif mysql # not compatible
query I rowsort label-7507
SELECT col2 / + col0 + 21 * + col1 AS col0 FROM tab1
----
210
274
564
query I rowsort
SELECT + 81 * cor0.col0 + - col0 AS col0 FROM tab1 AS cor0
----
240
5120
6400
query I rowsort
SELECT ALL - ( 61 ) * + col1 AS col0 FROM tab2
----
-1037
-1891
-3599
onlyif mysql # use DIV operator for integer division
query I rowsort label-7510
SELECT + col2 DIV - tab2.col0 + tab2.col2 * + col0 AS col0 FROM tab2
----
186
2028
3002
skipif mysql # not compatible
query I rowsort label-7510
SELECT + col2 / - tab2.col0 + tab2.col2 * + col0 AS col0 FROM tab2
----
186
2028
3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * col0 col0 FROM tab0 cor0
----
1584
2310
5874
onlyif mysql # use DIV operator for integer division
query I rowsort label-7512
SELECT DISTINCT 50 DIV col0 FROM tab0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7512
SELECT DISTINCT 50 / col0 FROM tab0
----
0
1
2
query I rowsort
SELECT 38 + - col1 FROM tab0 cor0
----
-48
-53
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col0 + col2 col1 FROM tab2 AS cor0
----
-24
51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-7515
SELECT ALL - col0 DIV + col2 + col0 + cor0.col0 * + col1 FROM tab1 cor0
----
1120
703
81
skipif mysql # not compatible
query I rowsort label-7515
SELECT ALL - col0 / + col2 + col0 + cor0.col0 * + col1 FROM tab1 cor0
----
1120
703
81
query I rowsort
SELECT DISTINCT + - col1 * + col0 + col1 + col2 AS col1 FROM tab1 AS cor0
----
-573
-931
2
query I rowsort
SELECT DISTINCT 43 + - col1 FROM tab2 AS cor0
----
-16
12
26
query I rowsort
SELECT - ( + col0 * tab2.col0 ) FROM tab2
----
-49
-6084
-6241
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 45 col2 FROM tab2 AS cor0
----
-45
-45
-45
query I rowsort
SELECT + + 89 * - col2 AS col2 FROM tab1 AS cor0
----
-4806
-5073
-8544
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab0 AS cor0
----
-99
query I rowsort
SELECT col0 + + 3 * col1 AS col2 FROM tab2
----
100
130
255
query I rowsort
SELECT + col0 * + col0 + col0 * col1 AS col0 FROM tab1 cor0
----
4736
7440
87
query I rowsort
SELECT ALL 66 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 29794915b585eea848ad670075452c88
query I rowsort
SELECT ALL 14 + + 96 FROM tab2
----
110
110
110
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( + col2 * - col2 ) + - cor0.col0 col0 FROM tab1 AS cor0
----
-119888
-32554
-75819
query I rowsort
SELECT - ( col2 * - col2 ) FROM tab1
----
2916
3249
9216
query I rowsort
SELECT + ( 33 ) + + col2 * col0 FROM tab1
----
195
3681
7713
query I rowsort
SELECT ALL 73 + col0 AS col1 FROM tab1
----
137
153
76
query I rowsort
SELECT + ( - cor0.col2 ) + cor0.col0 * - cor0.col1 AS col0 FROM tab1 AS cor0
----
-1136
-132
-697
query I rowsort
SELECT + - 48 * - col1 + col0 * col0 AS col0 FROM tab2 cor0
----
1537
7057
8916
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 92 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965
query I rowsort
SELECT - 7 + cor0.col1 FROM tab1 AS cor0
----
19
3
6
query I rowsort
SELECT + ( col1 ) * col2 + + col2 AS col2 FROM tab2 cor0
----
1560
684
864
query I rowsort
SELECT + col2 * - ( col0 + col1 ) AS col1 FROM tab2
----
-1026
-3562
-3648
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 4 col2 FROM tab2 AS cor0
----
28
312
316
query I rowsort
SELECT + + col0 * - 41 AS col1 FROM tab1 AS cor0
----
-123
-2624
-3280
query I rowsort
SELECT DISTINCT - col1 * 60 AS col1 FROM tab2
----
-1020
-1860
-3540
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7539
SELECT DISTINCT + cor0.col2 * CAST( + 37 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1221
3034
37
skipif mysql # not compatible
query I rowsort label-7539
SELECT DISTINCT + cor0.col2 * CAST ( + 37 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1221
3034
37
query I rowsort
SELECT ALL col1 + ( + col1 ) * col1 FROM tab0 AS cor0
----
7482
8372
9506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + col0 col1 FROM tab2 AS cor0
----
-182
-1950
-2923
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 + col0 FROM tab1 AS cor0
----
-1168
-1401
-506
query I rowsort
SELECT ALL + + col2 + - 29 * + col0 * + col2 AS col2 FROM tab0 AS cor0
----
-1014
-211560
-22935
onlyif mysql # use DIV operator for integer division
query I rowsort label-7544
SELECT + cor0.col1 DIV + CAST( + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
2
3
skipif mysql # not compatible
query I rowsort label-7544
SELECT + cor0.col1 / + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7545
SELECT + cor0.col0 + - CAST( NULL AS SIGNED ) / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7545
SELECT + cor0.col0 + - CAST ( NULL AS INTEGER ) / col1 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col0 * ( + col0 ) + + col1 FROM tab0 cor0
----
-1128
-490
-7830
onlyif mysql # use DIV operator for integer division
query I rowsort label-7547
SELECT ALL + + col1 DIV 26 FROM tab1 AS cor0
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + + col1 / 26 FROM tab1 AS cor0
----
0
0
1
query I rowsort
SELECT - 52 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 9500afe5646d620d5e8943351a29d082
query I rowsort
SELECT DISTINCT col2 * + col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT + 67 FROM tab1, tab0 cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c
query I rowsort
SELECT cor0.col1 + col1 * + col1 FROM tab1 AS cor0
----
110
182
702
query I rowsort
SELECT ALL col1 * - 36 AS col2 FROM tab1 AS cor0
----
-360
-468
-936
query I rowsort
SELECT - + col0 + col0 * col1 FROM tab0 cor0
----
2040
3360
8010
query I rowsort
SELECT - + cor0.col1 * 54 AS col2 FROM tab0 cor0
----
-4644
-4914
-5238
query I rowsort
SELECT ALL + col1 + col0 * + ( - col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT - + col1 * + col1 - - col1 * + col2 FROM tab2 AS cor0
----
-124
-1947
357
query I rowsort
SELECT ALL - col2 * col2 + - col1 AS col1 FROM tab1 cor0
----
-2942
-3259
-9229
query I rowsort
SELECT DISTINCT + 8 + - col0 * + col0 FROM tab0 AS cor0
----
-1217
-568
-7913
query I rowsort
SELECT ALL col0 * + col0 + - col2 * cor0.col2 FROM tab2 AS cor0
----
-680
4797
5408
query I rowsort
SELECT ALL - 85 * col1 + + col1 AS col2 FROM tab2 AS cor0
----
-1428
-2604
-4956
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7561
SELECT CAST( col1 AS SIGNED ) - + col2 FROM tab1
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-7561
SELECT CAST ( col1 AS INTEGER ) - + col2 FROM tab1
----
-28
-47
-83
query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 + - 29 AS col2 FROM tab0 AS cor0
----
41
7358
787
query I rowsort
SELECT ALL + col0 + - tab2.col0 * col2 FROM tab2
----
-182
-1950
-2923
query I rowsort
SELECT cor0.col2 + col1 AS col2 FROM tab2 AS cor0
----
55
58
85
query I rowsort
SELECT DISTINCT col2 * + tab1.col1 * + ( 91 ) + col2 * + ( col1 ) AS col0 FROM tab1
----
114816
129168
52440
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col2 FROM tab2
----
118
34
62
query I rowsort
SELECT - 9 * - col1 AS col1 FROM tab1
----
117
234
90
query I rowsort
SELECT ALL - 2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 20c9213316527d507e26425041e08387
query I rowsort
SELECT ALL + - cor0.col0 FROM tab1, tab0, tab2 AS cor0, tab2
----
81 values hashing to adaea38eae032c1639715f21831dd376
query I rowsort
SELECT ALL 56 * + col0 * 35 + tab0.col1 AS col2 FROM tab0
----
174531
47126
68697
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7571
SELECT - col2 + CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83
skipif mysql # not compatible
query I rowsort label-7571
SELECT - col2 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-28
-47
-83
onlyif mysql # use DIV operator for integer division
query I rowsort label-7572
SELECT + col0 DIV + col1 + + 34 * + 22 FROM tab1
----
748
754
754
skipif mysql # not compatible
query I rowsort label-7572
SELECT + col0 / + col1 + + 34 * + 22 FROM tab1
----
748
754
754
query I rowsort
SELECT col1 * col0 * + 61 + - col0 AS col2 FROM tab0
----
125880
207060
493950
skipif mysql # not compatible
query I rowsort
SELECT col0 + + CAST ( col0 AS REAL ) AS col2 FROM tab2
----
14
156
158
query I rowsort
SELECT DISTINCT + col2 + + ( + 54 ) FROM tab1 cor0
----
108
111
150
query I rowsort
SELECT - col1 * - ( - col0 ) + - col0 * - cor0.col0 FROM tab1 AS cor0
----
-69
3456
5360
query I rowsort
SELECT ALL + - col0 * + col1 - + 32 * cor0.col2 FROM tab0 AS cor0
----
-10723
-3120
-3427
query I rowsort
SELECT ALL + col0 * col1 + col1 FROM tab2 AS cor0
----
1360
248
4661
query I rowsort
SELECT 69 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - - col0 + cor0.col1 AS col0 FROM tab2 cor0
----
137
38
96
query I rowsort
SELECT DISTINCT + tab0.col1 + tab0.col2 AS col0 FROM tab0, tab1, tab0 AS cor0
----
119
173
98
query I rowsort
SELECT - col2 * - col0 + - col0 * + col2 AS col1 FROM tab2
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7583
SELECT - CAST( NULL AS SIGNED ) - 5 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7583
SELECT - CAST ( NULL AS INTEGER ) - 5 FROM tab2
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7584
SELECT DISTINCT CAST( - col1 AS SIGNED ) * - col0 AS col0 FROM tab2
----
1343
217
4602
skipif mysql # not compatible
query I rowsort label-7584
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * - col0 AS col0 FROM tab2
----
1343
217
4602
query I rowsort
SELECT 69 * col1 FROM tab1 AS cor0
----
1794
690
897
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + cor0.col2 * - col2 + - col2 * col0 col1 FROM tab0 cor0
----
-14022
-1881
-36
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 * - col1 col1 FROM tab0 AS cor0
----
-7138
-7553
-8051
onlyif mysql # use DIV operator for integer division
query I rowsort label-7588
SELECT + 76 DIV - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444
skipif mysql # not compatible
query I rowsort label-7588
SELECT + 76 / - cor0.col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 734470aeecbccfdb5a335a173fa9f444
query I rowsort
SELECT DISTINCT + 77 + + cor0.col0 FROM tab1 AS cor0
----
141
157
80
query I rowsort
SELECT ALL - + col1 + + col2 * col2 - 59 FROM tab1 cor0
----
2831
3180
9144
query I rowsort
SELECT col0 + - col2 * - 14 FROM tab0 AS cor0
----
1237
486
49
query I rowsort
SELECT ALL + ( col0 ) * - 36 - col1 AS col0 FROM tab0 AS cor0
----
-1357
-3295
-950
query I rowsort
SELECT DISTINCT 80 + + col0 FROM tab2 AS cor0
----
158
159
87
query I rowsort
SELECT - 77 + cor0.col2 AS col2 FROM tab0 AS cor0
----
-44
-76
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7595
SELECT + col2 + - col1 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7595
SELECT + col2 + - col1 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + cor0.col0 + + col2 AS col0 FROM tab1 cor0
----
121
176
57
query I rowsort
SELECT DISTINCT - cor0.col0 * + cor0.col0 FROM tab1 AS cor0
----
-4096
-6400
-9
query I rowsort
SELECT DISTINCT + 50 * col0 * col1 AS col2 FROM tab0 AS cor0
----
103200
169750
404950
query I rowsort
SELECT + 6 - + cor0.col0 AS col0 FROM tab1 AS cor0
----
-58
-74
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-7600
SELECT + + col0 - cor0.col0 DIV col0 AS col2 FROM tab2 AS cor0
----
6
77
78
skipif mysql # not compatible
query I rowsort label-7600
SELECT + + col0 - cor0.col0 / col0 AS col2 FROM tab2 AS cor0
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * cor0.col0 col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + col1 * - 22 FROM tab1
----
-220
-286
-572
query I rowsort
SELECT 48 * + tab2.col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 7bd2cd19e904d35ac2146e17682727ec
query I rowsort
SELECT DISTINCT - 93 + cor1.col2 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-11
-60
-92
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * + col1 col2 FROM tab1 AS cor0
----
100
169
676
query I rowsort
SELECT + cor0.col2 * - col0 AS col1 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT + 56 * - col2 AS col1 FROM tab0 cor0
----
-1848
-4592
-56
query I rowsort
SELECT + - col0 + + 53 + col2 AS col0 FROM tab0 AS cor0
----
19
46
62
query I rowsort
SELECT ALL col1 * 14 AS col1 FROM tab2 AS cor0
----
238
434
826
query I rowsort
SELECT + cor0.col0 * ( col2 ) + + col1 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + + col0 + 73 FROM tab0 cor0
----
108
162
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-7612
SELECT col2 DIV - 94 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-7612
SELECT col2 / - 94 - + col1 FROM tab2 AS cor0
----
-17
-31
-59
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7613
SELECT - col1 * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7613
SELECT - col1 * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT cor0.col0 + + 63 * col1 AS col2 FROM tab1 cor0
----
1641
694
899
query I rowsort
SELECT - col2 * col2 + + col1 + + col1 * col2 FROM tab1 AS cor0
----
-1486
-2669
-7955
onlyif mysql # use DIV operator for integer division
query I rowsort label-7616
SELECT - col2 DIV - col1 + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-53
-58
-85
skipif mysql # not compatible
query I rowsort label-7616
SELECT - col2 / - col1 + - col2 + - col1 AS col0 FROM tab2 AS cor0
----
-53
-58
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 + ( 3 * col2 ) + 25 col2 FROM tab0 AS cor0
----
148
360
63
query I rowsort
SELECT DISTINCT + cor0.col2 + - col2 AS col0 FROM tab2 cor0
----
0
skipif mysql # not compatible
query I rowsort
SELECT ALL + col1 * + CAST ( + ( + col1 ) AS REAL ) + + ( - 91 ) AS col2 FROM tab1 AS cor0
----
585
78
9
query I rowsort
SELECT + col2 * + 46 * col2 FROM tab1 AS cor0
----
134136
149454
423936
query I rowsort
SELECT - - col2 * ( + col1 ) AS col0 FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT + col0 * cor0.col2 + cor0.col1 * 3 AS col0 FROM tab2 AS cor0
----
2205
282
3053
onlyif mysql # use DIV operator for integer division
query I rowsort label-7623
SELECT + 69 + + col1 DIV col0 AS col2 FROM tab2 AS cor0
----
69
69
73
skipif mysql # not compatible
query I rowsort label-7623
SELECT + 69 + + col1 / col0 AS col2 FROM tab2 AS cor0
----
69
69
73
query I rowsort
SELECT cor0.col0 * + cor0.col2 AS col1 FROM tab1 AS cor0
----
162
3648
7680
query I rowsort
SELECT ALL - col2 - col0 * + col0 FROM tab2 AS cor0
----
-6110
-6279
-76
query I rowsort
SELECT + 40 + ( + col2 ) * 25 FROM tab1 AS cor0
----
1390
1465
2440
query I rowsort
SELECT ( + 16 ) AS col2 FROM tab2 AS cor0
----
16
16
16
onlyif mysql # use DIV operator for integer division
query I rowsort label-7628
SELECT ALL - col0 DIV col0 col1 FROM tab1 AS cor0
----
-1
-1
-1
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7628
SELECT ALL - col0 / col0 col1 FROM tab1 AS cor0
----
-1
-1
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7629
SELECT DISTINCT - col2 + + col2 DIV + col1 + CAST( col0 + + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-46
71
76
skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT - col2 + + col2 / + col1 + CAST ( col0 + + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-46
71
76
query I rowsort
SELECT + col2 * + col2 * + col2 FROM tab2
----
17576
19683
54872
query I rowsort
SELECT - cor0.col2 * + 71 + - col1 FROM tab1 AS cor0
----
-3860
-4057
-6829
onlyif mysql # use DIV operator for integer division
query I rowsort label-7632
SELECT 94 DIV + col0 + col2 AS col0 FROM tab2 AS cor0
----
27
39
40
skipif mysql # not compatible
query I rowsort label-7632
SELECT 94 / + col0 + col2 AS col0 FROM tab2 AS cor0
----
27
39
40
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - col1 col1 FROM tab1 cor0
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT + 47 + + cor0.col2 * + col2 AS col1 FROM tab2 AS cor0
----
1491
723
776
query I rowsort
SELECT ALL 74 * col2 FROM tab1 AS cor0
----
3996
4218
7104
query I rowsort
SELECT + 13 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a90d0f37cec603ae1bc0a60dc7fbaeed
query I rowsort
SELECT ALL + col0 * col1 * 38 + + cor0.col1 + + 15 * col1 * col0 FROM tab1 AS cor0
----
33930
4160
55133
query I rowsort
SELECT DISTINCT - col2 * + 20 - cor0.col0 AS col0 FROM tab1 AS cor0
----
-1083
-1204
-2000
onlyif mysql # use DIV operator for integer division
query I rowsort label-7639
SELECT + - col2 DIV + col0 + + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-732
skipif mysql # not compatible
query I rowsort label-7639
SELECT + - col2 / + col0 + + cor0.col2 * - col2 FROM tab2 AS cor0
----
-1444
-676
-732
query I rowsort
SELECT - col0 * col1 - col2 FROM tab0 AS cor0
----
-2097
-3396
-8181
query I rowsort
SELECT col1 * 38 AS col2 FROM tab0
----
3268
3458
3686
query I rowsort
SELECT - col1 * 86 AS col0 FROM tab2
----
-1462
-2666
-5074
query I rowsort
SELECT - col2 * col1 + + col1 AS col1 FROM tab0
----
-2752
-7371
0
query I rowsort
SELECT tab0.col2 * + tab0.col1 - col2 * tab0.col2 AS col2 FROM tab0
----
1749
738
96
query I rowsort
SELECT ALL - - cor0.col0 * cor0.col1 AS col0 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + col0 * - col2 col1 FROM tab1 AS cor0
----
-207879
-737184
-8694
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - cor0.col0 - - cor0.col2 col0 FROM tab1 AS cor0
----
-4039
-6304
45
onlyif mysql # use DIV operator for integer division
query I rowsort label-7648
SELECT ALL col1 + + col1 DIV + col2 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL col1 + + col1 / + col2 - - col1 AS col0 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT DISTINCT - col2 - col2 * - cor0.col2 AS col2 FROM tab0 cor0
----
0
1056
6642
query I rowsort
SELECT + col1 + + col2 * + col2 FROM tab2 cor0 WHERE NOT - col0 <> NULL
----
query I rowsort
SELECT + col1 * col2 - tab1.col1 AS col1 FROM tab1
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col1 FROM tab0
----
171
36
57
query I rowsort
SELECT + col1 * + col1 + - cor0.col0 * + col1 FROM tab0 AS cor0
----
182
5332
6014
query I rowsort
SELECT ALL - col0 * col2 - tab0.col2 * - col0 FROM tab0
----
0
0
0
query I rowsort
SELECT ALL - tab1.col1 - - col1 AS col1 FROM tab1
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7656
SELECT ALL - col2 + - col1 DIV + col1 AS col1 FROM tab1
----
-55
-58
-97
skipif mysql # not compatible
query I rowsort label-7656
SELECT ALL - col2 + - col1 / + col1 AS col1 FROM tab1
----
-55
-58
-97
query I rowsort
SELECT ALL + + col2 * cor0.col2 * + col1 + - col2 * col1 AS col1 FROM tab2 AS cor0
----
21762
23902
38350
query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 cor0 WHERE NOT NULL < NULL
----
query I rowsort
SELECT DISTINCT col2 + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
-1224
-543
-7839
query I rowsort
SELECT + + col1 + cor0.col0 * + cor0.col0 * col0 FROM tab2 AS cor0
----
374
474611
493056
query I rowsort
SELECT col1 * col0 + cor0.col1 * + col2 * + col2 + - col0 * - col2 FROM tab0 cor0
----
3527
627281
96510
query I rowsort
SELECT - + col1 * col0 - + col0 FROM tab0 AS cor0
----
-2088
-3430
-8188
query I rowsort
SELECT DISTINCT + col2 * - col0 * - col1 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT DISTINCT + col1 * col1 * col1 AS col2 FROM tab1 cor0
----
1000
17576
2197
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 - col1 * + col2 - col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT tab0.col2 + col0 - - col1 * + col0 AS col2 FROM tab0
----
2121
3431
8270
query I rowsort
SELECT DISTINCT + col2 * + col1 - col2 FROM tab2
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - col0 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT col0 * col1 * col2 - - col1 AS col2 FROM tab1
----
36490
4238
99853
onlyif mysql # use DIV operator for integer division
query I rowsort label-7671
SELECT DISTINCT + col1 + col0 DIV tab1.col1 - + col2 AS col2 FROM tab1
----
-28
-41
-77
skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT + col1 + col0 / tab1.col1 - + col2 AS col2 FROM tab1
----
-28
-41
-77
query I rowsort
SELECT DISTINCT + col0 * col0 + - col1 - col2 FROM tab2
----
-9
5999
6186
query I rowsort
SELECT ALL col1 + - col1 - + col1 AS col2 FROM tab2
----
-17
-31
-59
query I rowsort
SELECT DISTINCT - - col0 * cor0.col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT ALL + - col2 * col0 + 80 FROM tab2 cor0
----
-109
-1948
-2922
query I rowsort
SELECT ALL col2 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
22599
24548
39884
query I rowsort
SELECT + col1 * col0 * + ( col2 * col1 ) - - col2 AS col0 FROM tab2 AS cor0
----
181656
7059494
867616
query I rowsort
SELECT - 51 * col2 - - col1 AS col0 FROM tab1 AS cor0
----
-2728
-2897
-4883
onlyif mysql # use DIV operator for integer division
query I rowsort label-7679
SELECT - - col0 * - col0 + col2 DIV + 76 + + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6386
17
skipif mysql # not compatible
query I rowsort label-7679
SELECT - - col0 * - col0 + col2 / + 76 + + col1 AS col1 FROM tab1 AS cor0
----
-4086
-6386
17
query I rowsort
SELECT - cor0.col0 + col0 + + col0 FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col2 FROM tab0
----
-172
-182
-194
query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NULL IN ( col0 * col1 / col2 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-7683
SELECT ALL - col0 DIV col2 - - col2 AS col0 FROM tab0
----
-34
33
81
skipif mysql # not compatible
query I rowsort label-7683
SELECT ALL - col0 / col2 - - col2 AS col0 FROM tab0
----
-34
33
81
query I rowsort
SELECT DISTINCT - tab1.col1 + + col1 * col0 * col0 AS col0 FROM tab1
----
208
40950
83187
query I rowsort
SELECT - 0 * + col2 - + ( + col0 * col1 ) FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT DISTINCT + 53 + col0 FROM tab1
----
117
133
56
query I rowsort
SELECT + 7 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 4e72e9e33dacac757f48d0ce46094607
query I rowsort
SELECT 47 + - col2 FROM tab1
----
-10
-49
-7
query I rowsort
SELECT DISTINCT col1 + col0 * + col0 AS col0 FROM tab2
----
6143
6258
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( tab0.col2 ) col0 FROM tab0
----
1
33
82
onlyif mysql # use DIV operator for integer division
query I rowsort label-7691
SELECT - col0 * - col0 + col2 DIV col1 + - col1 AS col0 FROM tab0
----
1128
490
7830
skipif mysql # not compatible
query I rowsort label-7691
SELECT - col0 * - col0 + col2 / col1 + - col1 AS col0 FROM tab0
----
1128
490
7830
query I rowsort
SELECT col0 * col1 + + col0 * col2 + col0 FROM tab2
----
413
4424
6708
onlyif mysql # use DIV operator for integer division
query I rowsort label-7693
SELECT + col1 + + tab2.col0 * col0 DIV + col1 AS col1 FROM tab2
----
162
32
384
skipif mysql # not compatible
query I rowsort label-7693
SELECT + col1 + + tab2.col0 * col0 / + col1 AS col1 FROM tab2
----
162
32
384
query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN NULL AND ( col1 + - col1 )
----
query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT DISTINCT col0 + - col2 * + tab1.col0 AS col2 FROM tab1
----
-159
-3584
-7600
query III rowsort
SELECT * FROM tab2 WHERE col1 IN ( col0 + col1 )
----
query I rowsort
SELECT col2 + - col1 + - col2 AS col0 FROM tab1
----
-10
-13
-26
query I rowsort
SELECT + tab2.col1 + - col1 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - tab1.col0 FROM tab1 WHERE NOT ( + col1 ) IN ( - col1 )
----
-3
-64
-80
query I rowsort
SELECT DISTINCT col2 * tab2.col0 + - col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT ALL + col2 - tab0.col1 * + col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 * tab0.col2 / col0 )
----
query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL NOT IN ( + col2 * - col2 * - col1 )
----
query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col2 + tab1.col0 * col0 )
----
query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN col0 AND ( NULL )
----
query I rowsort
SELECT ALL + col2 - + col0 * - col0 AS col2 FROM tab2
----
6110
6279
76
query I rowsort
SELECT DISTINCT 86 FROM tab1, tab1 AS cor0, tab0 cor1
----
86
query I rowsort
SELECT + + col0 + col2 * 50 FROM tab2 AS cor0
----
1357
1378
1979
query I rowsort
SELECT - col1 + ( col0 + col1 ) FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT col0 * + ( + col0 + - col1 ) AS col0 FROM tab1 AS cor0
----
-69
3456
5360
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7711
SELECT ALL - col2 * + CAST( + 14 AS SIGNED ) AS col0 FROM tab2
----
-364
-378
-532
skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - col2 * + CAST ( + 14 AS INTEGER ) AS col0 FROM tab2
----
-364
-378
-532
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 63 ) col2 FROM tab2 AS cor0
----
-63
query I rowsort
SELECT ALL 69 + col1 AS col0 FROM tab1 AS cor0
----
79
82
95
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 + col0 * - col2 + - col2 * col0 AS col0 FROM tab0
----
-14596
-1584
-70
query I rowsort
SELECT col0 - + col1 AS col1 FROM tab0
----
-2
-62
-62
query I rowsort
SELECT - ( 52 ) AS col2 FROM tab2
----
-52
-52
-52
query I rowsort
SELECT DISTINCT - col2 * tab1.col0 * tab1.col2 AS col2 FROM tab1
----
-207936
-737280
-8748
query I rowsort
SELECT - 4 * - 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b90b57366426380b42b322a1ec0d7aa9
query I rowsort
SELECT - col2 - + tab1.col2 AS col1 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT + + col2 * cor0.col2 + - ( col1 ) FROM tab0 AS cor0
----
-96
1003
6633
query I rowsort
SELECT 86 + col1 AS col1 FROM tab0 AS cor0
----
172
177
183
query I rowsort
SELECT + - col1 * + col0 - 14 FROM tab2 cor0
----
-1357
-231
-4616
query I rowsort
SELECT + col2 + - col0 * ( col2 ) * col2 AS col2 FROM tab0 AS cor0
----
-26103
-34
-598354
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 col1 FROM tab0
----
0
0
0
query I rowsort
SELECT DISTINCT + 78 - - tab0.col2 AS col1 FROM tab0
----
111
160
79
query I rowsort
SELECT + 57 AS col2 FROM tab2
----
57
57
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-7728
SELECT + + col2 DIV - col0 + + col1 * col0 FROM tab2 AS cor0
----
1343
214
4602
skipif mysql # not compatible
query I rowsort label-7728
SELECT + + col2 / - col0 + + col1 * col0 FROM tab2 AS cor0
----
1343
214
4602
query I rowsort
SELECT DISTINCT - col2 * - ( col0 ) + - col1 FROM tab2 AS cor0
----
158
1969
2985
query I rowsort
SELECT - col1 + + 68 FROM tab1 AS cor0
----
42
55
58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - ( + col0 ) * + col0 col0 FROM tab1 cor0
----
-4032
-6
-6320
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1, tab1 cor1, tab2 AS cor2
----
972 values hashing to 01a5931cccc3dad8792a1bc6df09c614
onlyif mysql # use DIV operator for integer division
query I rowsort label-7733
SELECT ALL + col0 + + 56 DIV + col0 AS col1 FROM tab0 AS cor0
----
26
36
89
skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL + col0 + + 56 / + col0 AS col1 FROM tab0 AS cor0
----
26
36
89
query I rowsort
SELECT ALL - - col1 * - 97 AS col0 FROM tab2 cor0
----
-1649
-3007
-5723
query I rowsort
SELECT + col0 + col1 * + 15 AS col1 FROM tab1 AS cor0
----
214
275
393
query I rowsort
SELECT - 80 * - col1 FROM tab0
----
6880
7280
7760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7737
SELECT ALL - col0 * - CAST( col0 AS SIGNED ) - - cor0.col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - col0 * - CAST ( col0 AS INTEGER ) - - cor0.col0 AS col0 FROM tab2 AS cor0
----
56
6162
6320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + ( - col1 ) * + cor0.col1 col2 FROM tab2 AS cor0
----
-272
-3422
-930
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col0 * + col1 col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT ALL + col0 + col1 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
38
4170
6493
query I rowsort
SELECT + col1 + - col1 * - 22 FROM tab1 AS cor0
----
230
299
598
query I rowsort
SELECT - + ( col0 ) * + col1 AS col2 FROM tab2 AS cor0
----
-1343
-217
-4602
query I rowsort
SELECT + col0 * 26 FROM tab1 AS cor0
----
1664
2080
78
query I rowsort
SELECT ALL + cor0.col0 FROM tab1, tab2 AS cor0 CROSS JOIN tab2
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT - + ( 73 ) AS col0 FROM tab2 AS cor0
----
-73
-73
-73
onlyif mysql # use DIV operator for integer division
query I rowsort label-7746
SELECT - 23 DIV - col0 AS col0 FROM tab1 cor0
----
0
0
7
skipif mysql # not compatible
query I rowsort label-7746
SELECT - 23 / - col0 AS col0 FROM tab1 cor0
----
0
0
7
query I rowsort
SELECT ALL + 76 * cor0.col0 + - col0 FROM tab1 AS cor0
----
225
4800
6000
query I rowsort
SELECT ALL + ( + col1 ) + col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT - ( - col1 ) + + col1 * + col1 AS col0 FROM tab1 cor0
----
110
182
702
query I rowsort
SELECT ALL - 14 FROM tab0 cor0
----
-14
-14
-14
query I rowsort
SELECT DISTINCT + 47 + col2 * col0 FROM tab0 AS cor0
----
7345
82
839
query I rowsort
SELECT DISTINCT + + 90 + - col2 * 14 AS col2 FROM tab0 AS cor0
----
-1058
-372
76
query I rowsort
SELECT DISTINCT - 50 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
-50
query I rowsort
SELECT ALL + ( - col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL col1 * + cor0.col2 * + 98 FROM tab2 AS cor0
----
150332
63308
82026
query I rowsort
SELECT + col2 * col2 + + col2 * col0 AS col2 FROM tab1 cor0
----
16896
3078
6897
query I rowsort
SELECT ALL + 79 * col2 FROM tab1 AS cor0
----
4266
4503
7584
query I rowsort
SELECT + col0 + + col2 * + col0 FROM tab2 cor0
----
196
2106
3081
onlyif mysql # use DIV operator for integer division
query I rowsort label-7759
SELECT ALL + ( + col0 ) DIV col2 AS col2 FROM tab1
----
0
0
1
skipif mysql # not compatible
query I rowsort label-7759
SELECT ALL + ( + col0 ) / col2 AS col2 FROM tab1
----
0
0
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7760
SELECT DISTINCT CAST( col0 AS SIGNED ) * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
skipif mysql # not compatible
query I rowsort label-7760
SELECT DISTINCT CAST ( col0 AS INTEGER ) * - col0 AS col1 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT + 88 + col2 AS col1 FROM tab2 AS cor0
----
114
115
126
query I rowsort
SELECT + col2 - + 88 * col0 FROM tab2 cor0
----
-589
-6838
-6914
query I rowsort
SELECT + 83 * - col0 - - col2 AS col1 FROM tab2 AS cor0
----
-554
-6448
-6519
query I rowsort
SELECT - 82 + 61 FROM tab1 AS cor0
----
-21
-21
-21
onlyif mysql # use DIV operator for integer division
query I rowsort label-7765
SELECT cor0.col0 DIV + cor0.col0 + - col0 * - col0 FROM tab0 AS cor0
----
1226
577
7922
skipif mysql # not compatible
query I rowsort label-7765
SELECT cor0.col0 / + cor0.col0 + - col0 * - col0 FROM tab0 AS cor0
----
1226
577
7922
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7766
SELECT + CAST( NULL AS SIGNED ) * col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7766
SELECT + CAST ( NULL AS INTEGER ) * col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7767
SELECT + CAST( NULL AS SIGNED ) + - 19 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7767
SELECT + CAST ( NULL AS INTEGER ) + - 19 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL ( + cor0.col0 ) * col1 + + col2 * - col0 FROM tab2 AS cor0
----
-1659
2574
28
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7769
SELECT - CAST( NULL AS SIGNED ) * col0 + - col2 + + 16 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7769
SELECT - CAST ( NULL AS INTEGER ) * col0 + - col2 + + 16 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + 81 ) FROM tab1 AS cor0
----
81
query I rowsort
SELECT 99 AS col2 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 05ea182fd6036c7f5e0ea08fc061cc67
query I rowsort
SELECT ALL tab2.col2 - - 43 FROM tab2
----
69
70
81
query I rowsort
SELECT tab0.col0 * col1 + col1 FROM tab0
----
2150
3492
8190
query I rowsort
SELECT DISTINCT 99 FROM tab2, tab1 AS cor0
----
99
query I rowsort
SELECT DISTINCT col0 * col0 * cor0.col2 + + 94 * - col2 * cor0.col2 FROM tab2 AS cor0
----
-67203
101422
94640
query I rowsort
SELECT + + ( col2 ) + - col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL + col1 * - col2 + + col2 FROM tab1 AS cor0
----
-1152
-1350
-513
query I rowsort
SELECT ALL - col2 * col0 + - col2 + - ( col0 ) FROM tab2 AS cor0
----
-2132
-223
-3119
query I rowsort
SELECT ALL + cor0.col2 * - 10 + - col0 + + col0 FROM tab1 AS cor0
----
-540
-570
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT cor1.col0 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b96ca1dbe2e39a0fa78f50d374f51a
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 76 * col1 col2 FROM tab2 AS cor0
----
-1292
-2356
-4484
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7782
SELECT DISTINCT - + CAST( + 87 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-87
skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT - + CAST ( + 87 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-87
query I rowsort
SELECT col0 + ( 44 ) AS col2 FROM tab2 AS cor0
----
122
123
51
onlyif mysql # use DIV operator for integer division
query I rowsort label-7784
SELECT + 89 DIV - cor1.col1 col1 FROM tab0, tab1, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 13a70556746a04ff5b9e3cfe241835ec
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7784
SELECT + 89 / - cor1.col1 col1 FROM tab0, tab1, tab1 AS cor0, tab2 AS cor1
----
81 values hashing to 13a70556746a04ff5b9e3cfe241835ec
query I rowsort
SELECT DISTINCT col0 * 26 AS col0 FROM tab0 AS cor0
----
2314
624
910
query I rowsort
SELECT ALL - col0 * 3 + 10 FROM tab1 AS cor0
----
-182
-230
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-7787
SELECT DISTINCT + cor0.col1 DIV - cor0.col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT + cor0.col1 / - cor0.col1 FROM tab2 AS cor0
----
-1
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0, tab2 AS cor1, tab0, tab0 cor2
----
3645 values hashing to b223aa53e3aafe0f3f3f59048cc7a0d2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * + col2 col1 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT + + col2 + + cor0.col0 * col2 + col2 FROM tab0 AS cor0
----
37
7462
858
query I rowsort
SELECT - col1 * 19 AS col2 FROM tab2 AS cor0
----
-1121
-323
-589
query I rowsort
SELECT DISTINCT + 24 * 22 AS col1 FROM tab0, tab0 AS cor0
----
528
query I rowsort
SELECT DISTINCT - + col0 * col1 + + col2 AS col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT ALL - tab2.col2 + + tab2.col0 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 363494b33b4d1826f58e179e26d91c4a
onlyif mysql # use DIV operator for integer division
query I rowsort label-7795
SELECT ALL + col0 DIV + ( 98 ) AS col1 FROM tab1
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + col0 / + ( 98 ) AS col1 FROM tab1
----
0
0
0
query I rowsort
SELECT - col2 + col1 * 64 FROM tab1 cor0
----
1610
583
736
onlyif mysql # use DIV operator for integer division
query I rowsort label-7797
SELECT col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-7797
SELECT col0 / - col1 AS col2 FROM tab1 AS cor0
----
-6
-6
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7798
SELECT ALL + - col0 * CAST( - col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-7798
SELECT ALL + - col0 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
1040
640
78
query I rowsort
SELECT DISTINCT + col2 + ( + 46 ) * col2 AS col1 FROM tab0 AS cor0
----
1551
3854
47
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7800
SELECT - + cor0.col0 + + CAST( NULL AS SIGNED ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-7800
SELECT - + cor0.col0 + + CAST ( NULL AS INTEGER ) FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # use DIV operator for integer division
query I rowsort label-7801
SELECT ALL ( col2 ) DIV + col1 AS col0 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-7801
SELECT ALL ( col2 ) / + col1 AS col0 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL col0 + - cor0.col0 AS col2 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT - 45 + + col2 AS col1 FROM tab2 AS cor0
----
-18
-19
-7
query I rowsort
SELECT 77 * - cor0.col0 + cor0.col1 + + col2 FROM tab2 cor0
----
-481
-5921
-6028
query I rowsort
SELECT col2 + - cor0.col0 FROM tab2 cor0
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-7806
SELECT - + col1 DIV cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-7806
SELECT - + col1 / cor0.col0 AS col0 FROM tab0 AS cor0
----
-1
-2
-3
query I rowsort
SELECT - + 97 FROM tab2, tab1, tab1 AS cor0
----
27 values hashing to 12bd12d33f03250bee508c5641e140d5
query I rowsort
SELECT 25 * - col2 FROM tab1
----
-1350
-1425
-2400
query I rowsort
SELECT cor1.col2 * 65 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to a5c7843cb74a0c563e6b2c2d9e4d1cac
query I rowsort
SELECT + cor0.col2 * + 92 + - col1 FROM tab0 AS cor0
----
-5
2950
7453
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + col1 col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT + 72 + - col0 AS col0 FROM tab0 AS cor0
----
-17
37
48
query I rowsort
SELECT DISTINCT + col1 + - 45 * + tab2.col2 FROM tab2
----
-1111
-1184
-1693
query I rowsort
SELECT + 59 + cor0.col1 + + col1 AS col1 FROM tab0 AS cor0
----
231
241
253
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( cor0.col2 ) + cor0.col1 col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT + 15 * + col2 + + col0 * + col2 AS col2 FROM tab0 AS cor0
----
1287
50
8528
query I rowsort
SELECT DISTINCT - ( + col0 ) + col1 * col2 AS col1 FROM tab0 AS cor0
----
2814
62
7373
query I rowsort
SELECT + tab2.col2 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT + + col0 + + col1 + + 66 AS col2 FROM tab1 cor0
----
140
159
95
query I rowsort
SELECT - col1 * col1 * - col1 AS col0 FROM tab1
----
1000
17576
2197
onlyif mysql # use DIV operator for integer division
query I rowsort label-7821
SELECT + + col1 + ( col0 ) DIV cor0.col0 FROM tab1 AS cor0
----
11
14
27
skipif mysql # not compatible
query I rowsort label-7821
SELECT + + col1 + ( col0 ) / cor0.col0 FROM tab1 AS cor0
----
11
14
27
onlyif mysql # use DIV operator for integer division
query I rowsort label-7822
SELECT col1 DIV 21 AS col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-7822
SELECT col1 / 21 AS col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT + + 28 FROM tab0, tab1, tab2 AS cor0
----
28
query I rowsort
SELECT ALL + + cor0.col2 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to 7786718bd8042022537378d40ec87475
onlyif mysql # use DIV operator for integer division
query I rowsort label-7825
SELECT + cor0.col1 DIV - cor1.col0 FROM tab1, tab2 cor0, tab2, tab2 cor1
----
81 values hashing to f50f93126b12a662ec0840612f8e1eeb
skipif mysql # not compatible
query I rowsort label-7825
SELECT + cor0.col1 / - cor1.col0 FROM tab1, tab2 cor0, tab2, tab2 cor1
----
81 values hashing to f50f93126b12a662ec0840612f8e1eeb
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT - CAST ( col2 AS REAL ) col2 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT col2 + - 76 AS col2 FROM tab2 AS cor0
----
-38
-49
-50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7828
SELECT ALL + col1 * - col2 - col0 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL + col1 * - col2 - col0 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT 13 + + col2 AS col0 FROM tab2 AS cor0
----
39
40
51
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) + col0 + + col0 col1 FROM tab1 cor0
----
3
64
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-7831
SELECT DISTINCT - col2 DIV + 75 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-7831
SELECT DISTINCT - col2 / + 75 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + ( col2 ) * - col1 AS col0 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - col2 + - ( col1 ) AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT - col2 - 97 * 0 AS col2 FROM tab2
----
-26
-27
-38
query I rowsort
SELECT tab2.col1 - + col0 FROM tab2
----
-19
-62
24
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7836
SELECT - tab1.col2 - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7836
SELECT - tab1.col2 - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col1 - - cor0.col1 * col0 * col1 AS col1 FROM tab2 AS cor0
----
22848
271577
6758
query I rowsort
SELECT ALL col0 + ( + col1 + + col1 ) AS col1 FROM tab0 cor0
----
196
229
271
onlyif mysql # use DIV operator for integer division
query I rowsort label-7839
SELECT ALL - - ( + 57 ) DIV + col0 - + 12 FROM tab1 AS cor0
----
-12
-12
7
skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL - - ( + 57 ) / + col0 - + 12 FROM tab1 AS cor0
----
-12
-12
7
query I rowsort
SELECT ALL + + cor0.col0 + - 21 FROM tab2 AS cor0
----
-14
57
58
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7841
SELECT + CAST( NULL AS SIGNED ) * + 38 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7841
SELECT + CAST ( NULL AS INTEGER ) * + 38 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - col2 + col1 FROM tab1 AS cor0
----
-136
-3638
-7667
onlyif mysql # use DIV operator for integer division
query I rowsort label-7843
SELECT + ( ( col0 ) ) DIV - col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83
skipif mysql # not compatible
query I rowsort label-7843
SELECT + ( ( col0 ) ) / - col1 + - col0 FROM tab2 AS cor0
----
-7
-79
-83
query I rowsort
SELECT + col2 * ( - col1 ) - + col2 AS col2 FROM tab2 AS cor0
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT - 19 * - tab0.col0 + 92 + col1 AS col0 FROM tab0
----
1874
634
854
query I rowsort
SELECT - - col2 * cor0.col0 * + col1 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT 19 * + col0 + col0 AS col1 FROM tab2 AS cor0
----
140
1560
1580
query I rowsort
SELECT 61 * col0 FROM tab0
----
1464
2135
5429
query I rowsort
SELECT + col2 + - col1 * + col0 * + col0 FROM tab0 AS cor0
----
-118824
-49503
-720729
query I rowsort
SELECT - col1 + + ( + col0 ) FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT - 67 AS col2 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 95c9eba643f6489e03be4d5e83f1ef99
query I rowsort
SELECT DISTINCT + 52 * - col1 FROM tab2
----
-1612
-3068
-884
query I rowsort
SELECT ALL cor0.col1 * 71 FROM tab2 AS cor0
----
1207
2201
4189
query I rowsort
SELECT DISTINCT col1 + col0 + col2 * + cor0.col0 FROM tab2 AS cor0
----
2165
227
3098
query I rowsort
SELECT + 90 * + col0 FROM tab2 AS cor0
----
630
7020
7110
onlyif mysql # use DIV operator for integer division
query I rowsort label-7856
SELECT ALL - - col1 DIV col0 + 99 AS col1 FROM tab2 AS cor0
----
103
99
99
skipif mysql # not compatible
query I rowsort label-7856
SELECT ALL - - col1 / col0 + 99 AS col1 FROM tab2 AS cor0
----
103
99
99
onlyif mysql # use DIV operator for integer division
query I rowsort label-7857
SELECT DISTINCT - - ( + col0 ) DIV 29 + - 55 FROM tab2 AS cor0
----
-53
-55
skipif mysql # not compatible
query I rowsort label-7857
SELECT DISTINCT - - ( + col0 ) / 29 + - 55 FROM tab2 AS cor0
----
-53
-55
query I rowsort
SELECT DISTINCT - 42 * col0 + + ( col0 ) FROM tab1 AS cor0
----
-123
-2624
-3280
onlyif mysql # use DIV operator for integer division
query I rowsort label-7859
SELECT + col1 DIV - col2 + + col2 AS col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7859
SELECT + col1 / - col2 + + col2 AS col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - ( 31 * - col2 ) AS col1 FROM tab2
----
1178
806
837
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7861
SELECT DISTINCT + + col2 + + col2 * + CAST( NULL AS SIGNED ) col2 FROM tab2 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7861
SELECT DISTINCT + + col2 + + col2 * + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT ALL col2 * + tab0.col0 + - col1 - - tab0.col1 * + col0 FROM tab0
----
15306
2770
3333
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0, tab0 AS cor1, tab1, tab0 AS cor2
----
3645 values hashing to a3c09af95301183ccb084eb1936b14e3
query I rowsort
SELECT + - col0 * - 74 + - col1 * col1 FROM tab0 AS cor0
----
-1695
-5620
-6819
query I rowsort
SELECT + col2 * 17 - col0 FROM tab0 cor0
----
-18
1305
537
query I rowsort
SELECT ALL - 42 * col1 - col0 FROM tab1
----
-1095
-484
-626
query I rowsort
SELECT ALL + 1 * + 4 + - cor0.col2 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8c162c015d080d765e5a40f799b51c21
query I rowsort
SELECT ALL - cor0.col0 * + 31 * col1 FROM tab0 cor0
----
-105245
-251069
-63984
query I rowsort
SELECT ALL - col1 - + cor0.col2 AS col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT col0 + ( col1 ) AS col2 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL + col1 + col1 * cor0.col1 FROM tab2 AS cor0
----
306
3540
992
query I rowsort
SELECT col2 * + 87 + ( + col1 ) * col1 * - ( - col0 + ( + col0 ) ) AS col2 FROM tab2
----
2262
2349
3306
query I rowsort
SELECT + col1 - - 77 FROM tab1
----
103
87
90
query I rowsort
SELECT DISTINCT + col2 + col1 * 35 FROM tab1
----
407
551
964
query I rowsort
SELECT 45 + - cor0.col0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 2aefdc12fbf7e9e87564e39c68d0c584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7876
SELECT ( col1 ) * - col2 + - CAST( + 70 * - col1 AS SIGNED ) FROM tab0
----
-1092
3182
6693
skipif mysql # not compatible
query I rowsort label-7876
SELECT ( col1 ) * - col2 + - CAST ( + 70 * - col1 AS INTEGER ) FROM tab0
----
-1092
3182
6693
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab0.col0 col2 FROM tab0, tab1, tab0 AS cor0
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + 70 col2 FROM tab1
----
95
95
95
query I rowsort
SELECT DISTINCT + col2 * + 86 FROM tab2
----
2236
2322
3268
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor1.col1 col0 FROM tab0, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - ( 80 ) - + col1 * - cor0.col1 FROM tab2 AS cor0
----
209
3401
881
query I rowsort
SELECT + ( + 53 ) * col2 + col0 * - col2 AS col1 FROM tab0 AS cor0
----
-2952
18
957
query I rowsort
SELECT DISTINCT cor0.col0 * 42 FROM tab0, tab1 AS cor0
----
126
2688
3360
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col0 AS REAL ) AS col0 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL + + col2 + 20 AS col1 FROM tab2 AS cor0
----
46
47
58
query I rowsort
SELECT DISTINCT tab0.col2 * 37 FROM tab0
----
1221
3034
37
query I rowsort
SELECT + col1 + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-1027
-52
-630
query I rowsort
SELECT ALL - + col2 * - col2 + - col0 * + ( col1 ) AS col1 FROM tab0 AS cor0
----
-1375
-3394
-975
query I rowsort
SELECT - - col2 + col2 + col1 AS col0 FROM tab0 AS cor0
----
152
255
99
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2, tab2 cor0, tab2 AS cor1
----
972 values hashing to a47a9db07c7de4927c7c28efb4cd13f2
query I rowsort
SELECT + col0 * col2 + col1 * - col0 AS col1 FROM tab2 cor0
----
-2574
-28
1659
query I rowsort
SELECT DISTINCT + 81 - - cor0.col1 FROM tab2 AS cor0
----
112
140
98
query I rowsort
SELECT ALL cor0.col2 * + col2 * - 5 AS col1 FROM tab1 AS cor0
----
-14580
-16245
-46080
query I rowsort
SELECT - 54 FROM tab2 cor0
----
-54
-54
-54
query I rowsort
SELECT DISTINCT col0 * + 82 + col0 FROM tab1
----
249
5312
6640
query I rowsort
SELECT DISTINCT - col2 * 92 AS col0 FROM tab2
----
-2392
-2484
-3496
query I rowsort
SELECT DISTINCT + + col2 + ( + col0 ) * + col0 AS col1 FROM tab0 AS cor0
----
1226
609
8003
query I rowsort
SELECT - col2 + 29 FROM tab0
----
-4
-53
28
query I rowsort
SELECT - + col1 * + 48 + col2 AS col1 FROM tab2 cor0
----
-1461
-2806
-778
query I rowsort
SELECT - col0 + 73 * + col2 FROM tab0 AS cor0
----
2385
38
5897
query I rowsort
SELECT + col2 + 86 + cor0.col2 FROM tab2 cor0
----
138
140
162
query I rowsort
SELECT DISTINCT - 19 * + col0 - col1 * ( - 64 ) AS col0 FROM tab1 AS cor0
----
-576
-688
1607
query I rowsort
SELECT + + col2 + - 75 AS col0 FROM tab1 AS cor0
----
-18
-21
21
query I rowsort
SELECT 73 + - 7 FROM tab2 AS cor0
----
66
66
66
query I rowsort
SELECT + - col1 + cor0.col2 + - col2 AS col1 FROM tab1 AS cor0
----
-10
-13
-26
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7906
SELECT ALL - CAST( col0 AS SIGNED ) + col0 * 87 FROM tab0 AS cor0
----
2064
3010
7654
skipif mysql # not compatible
query I rowsort label-7906
SELECT ALL - CAST ( col0 AS INTEGER ) + col0 * 87 FROM tab0 AS cor0
----
2064
3010
7654
query I rowsort
SELECT cor0.col0 + 79 FROM tab1 AS cor0
----
143
159
82
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7908
SELECT ALL - + CAST( NULL AS SIGNED ) * + ( col2 ) * col2 + + col0 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7908
SELECT ALL - + CAST ( NULL AS INTEGER ) * + ( col2 ) * col2 + + col0 + cor0.col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7909
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - - col0 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT - CAST ( NULL AS REAL ) - - col0 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + cor0.col0 + 85 FROM tab1 AS cor0
----
149
165
88
query I rowsort
SELECT - 87 * cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
-1441
-2670
-5107
query I rowsort
SELECT ALL + col1 + - col1 + col2 FROM tab1 cor0
----
54
57
96
query I rowsort
SELECT ALL + col2 + 60 + - 5 * + tab0.col2 FROM tab0
----
-268
-72
56
query I rowsort
SELECT - col2 * + tab1.col0 AS col2 FROM tab1
----
-162
-3648
-7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-7915
SELECT ALL col1 + - col1 DIV - tab1.col0 FROM tab1
----
10
13
34
skipif mysql # not compatible
query I rowsort label-7915
SELECT ALL col1 + - col1 / - tab1.col0 FROM tab1
----
10
13
34
onlyif mysql # use DIV operator for integer division
query I rowsort label-7916
SELECT + col2 * col2 DIV - col0 FROM tab1
----
-115
-50
-972
skipif mysql # not compatible
query I rowsort label-7916
SELECT + col2 * col2 / - col0 FROM tab1
----
-115
-50
-972
query I rowsort
SELECT DISTINCT + 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
19
query I rowsort
SELECT 5 + ( - col0 ) * - col1 FROM tab1
----
1045
645
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7919
SELECT ALL CAST( - 91 AS SIGNED ) + - col0 * col2 * tab2.col1 FROM tab2
----
-119743
-51125
-5950
skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL CAST ( - 91 AS INTEGER ) + - col0 * col2 * tab2.col1 FROM tab2
----
-119743
-51125
-5950
onlyif mysql # use DIV operator for integer division
query I rowsort label-7920
SELECT + col2 + - col1 DIV col2 FROM tab1
----
54
57
96
skipif mysql # not compatible
query I rowsort label-7920
SELECT + col2 + - col1 / col2 FROM tab1
----
54
57
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-7921
SELECT + col2 DIV col1 - - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
648
837
skipif mysql # not compatible
query I rowsort label-7921
SELECT + col2 / col1 - - cor0.col2 * col1 AS col2 FROM tab2 AS cor0
----
1534
648
837
query I rowsort
SELECT DISTINCT - + col0 * col2 + col0 * ( col2 ) FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-7923
SELECT ALL - + col1 DIV col1 + col1 - col1 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-7923
SELECT ALL - + col1 / col1 + col1 - col1 FROM tab2 cor0
----
-1
-1
-1
query I rowsort
SELECT DISTINCT cor0.col2 + + col0 * col1 FROM tab0 AS cor0
----
2097
3396
8181
query I rowsort
SELECT 53 + 58 FROM tab0 AS cor0
----
111
111
111
query I rowsort
SELECT ALL ( col0 ) + + col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - 69 - - 8 AS col1 FROM tab0 AS cor0
----
-61
query I rowsort
SELECT + col2 * col1 + + col0 * + col1 AS col0 FROM tab2 AS cor0
----
1054
1989
6136
query I rowsort
SELECT - col1 + col2 * - col2 FROM tab2
----
-1461
-735
-760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7930
SELECT DISTINCT col0 + col1 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT col0 + col1 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
query I rowsort
SELECT - 23 * - col2 AS col1 FROM tab1 AS cor0
----
1242
1311
2208
query I rowsort
SELECT - 95 + + cor0.col2 * col2 FROM tab1 AS cor0
----
2821
3154
9121
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7933
SELECT ALL + col1 - + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + col1 - + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 * ( col2 ) AS col1 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7935
SELECT + col0 + CAST( - cor0.col1 AS SIGNED ) * - cor0.col1 col2 FROM tab2 AS cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-7935
SELECT + col0 + CAST ( - cor0.col1 AS INTEGER ) * - cor0.col1 col2 FROM tab2 AS cor0
----
3559
368
968
query I rowsort
SELECT DISTINCT + ( tab0.col0 ) AS col1 FROM tab0
----
24
35
89
query I rowsort
SELECT ALL - col2 * 61 + col1 * + col2 + col1 AS col1 FROM tab1 AS cor0
----
-1864
-2897
-4595
query I rowsort
SELECT ALL - cor0.col2 + col2 * col2 AS col1 FROM tab0 AS cor0
----
0
1056
6642
query I rowsort
SELECT ALL cor0.col0 * - 80 FROM tab2, tab1 AS cor0
----
9 values hashing to 16b339a2c16d60470e7790d284db0190
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7940
SELECT col1 * - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
skipif mysql # not compatible
query I rowsort label-7940
SELECT col1 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT + col1 + 45 FROM tab0 cor0
----
131
136
142
query I rowsort
SELECT DISTINCT - col1 * cor0.col1 AS col0 FROM tab0 cor0
----
-7396
-8281
-9409
query I rowsort
SELECT DISTINCT - - 46 * + ( col0 ) * + cor0.col0 FROM tab1 AS cor0
----
188416
294400
414
query I rowsort
SELECT ALL + - 61 AS col1 FROM tab1 AS cor0
----
-61
-61
-61
query I rowsort
SELECT ALL 1 * + col1 AS col1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col0 + 8 * col1 AS col1 FROM tab1 AS cor0
----
16
205
24
query I rowsort
SELECT DISTINCT col1 + - col1 * + col2 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL + 4 * 37 + col1 FROM tab2 cor0
----
165
179
207
query I rowsort
SELECT + col0 * - 0 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL + col2 * + ( + col1 ) AS col0 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT col0 * col0 + 86 * - col2 FROM tab1
----
-1856
-4635
-806
query I rowsort
SELECT - tab0.col0 * ( col1 ) + col2 AS col1 FROM tab0
----
-2031
-3394
-8017
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col2 col0 FROM tab0
----
-171
-36
-57
query I rowsort
SELECT DISTINCT col0 * - col0 * - col1 FROM tab1
----
234
40960
83200
onlyif mysql # use DIV operator for integer division
query I rowsort label-7955
SELECT ALL col0 DIV + col1 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4102
6406
9
skipif mysql # not compatible
query I rowsort label-7955
SELECT ALL col0 / + col1 + + col0 * + col0 AS col2 FROM tab1 AS cor0
----
4102
6406
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT 81 * tab0.col0 AS col0 FROM tab0
----
1944
2835
7209
query I rowsort
SELECT ALL + 10 - col0 FROM tab2 cor0
----
-68
-69
3
query I rowsort
SELECT + - col2 * cor0.col0 FROM tab0 cor0
----
-35
-7298
-792
query I rowsort
SELECT 74 + col1 * - 96 FROM tab1 AS cor0
----
-1174
-2422
-886
query I rowsort
SELECT DISTINCT + 15 * + col0 FROM tab1 cor0
----
1200
45
960
query I rowsort
SELECT DISTINCT col2 * cor0.col1 AS col2 FROM tab0 AS cor0
----
2838
7462
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-7963
SELECT ALL ( 38 ) - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL ( 38 ) - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT ( tab1.col0 ) + ( col0 ) + tab1.col2 AS col0 FROM tab1
----
185
256
60
query I rowsort
SELECT ALL col2 + col1 + - ( 35 ) * col1 AS col1 FROM tab0
----
-2891
-3012
-3297
query I rowsort
SELECT + - col1 * + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-272
-3422
-930
query I rowsort
SELECT DISTINCT - - ( - col1 ) * - col2 + col1 FROM tab0 AS cor0
----
194
2924
7553
query I rowsort
SELECT + col0 * col0 * col0 AS col1 FROM tab0
----
13824
42875
704969
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 col0 FROM tab1
----
1040
640
78
query I rowsort
SELECT - col2 * col2 + - col1 FROM tab0
----
-1175
-6815
-98
query I rowsort
SELECT - tab0.col2 + col0 AS col2 FROM tab0
----
-9
34
7
query I rowsort
SELECT + col0 * - col1 + - col2 + + col1 * + col2 AS col0 FROM tab0 cor0
----
-3299
-719
741
query I rowsort
SELECT ALL col0 * - tab1.col1 AS col1 FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT ALL - - col1 + col2 * + cor0.col0 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT DISTINCT + + col0 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT DISTINCT + col0 + col1 * col2 AS col0 FROM tab0 AS cor0
----
132
2862
7551
onlyif mysql # use DIV operator for integer division
query I rowsort label-7978
SELECT ALL + cor0.col0 DIV col0 + cor0.col2 FROM tab0 AS cor0
----
2
34
83
skipif mysql # not compatible
query I rowsort label-7978
SELECT ALL + cor0.col0 / col0 + cor0.col2 FROM tab0 AS cor0
----
2
34
83
query I rowsort
SELECT ALL - col0 * col0 + + col1 FROM tab2 AS cor0
----
-18
-6025
-6224
query I rowsort
SELECT DISTINCT + col1 - + col2 * - col2 FROM tab2 AS cor0
----
1461
735
760
query I rowsort
SELECT DISTINCT + cor0.col0 + col0 * col2 FROM tab0 AS cor0
----
70
7387
816
query I rowsort
SELECT ALL - col0 * col1 * + col1 FROM tab0 AS cor0
----
-177504
-329315
-737009
query I rowsort
SELECT - + 98 + col1 * col1 + - col1 FROM tab2 AS cor0
----
174
3324
832
onlyif mysql # use DIV operator for integer division
query I rowsort label-7984
SELECT + col2 + + col0 DIV - col0 + col2 DIV col1 FROM tab1 AS cor0
----
102
55
61
skipif mysql # not compatible
query I rowsort label-7984
SELECT + col2 + + col0 / - col0 + col2 / col1 FROM tab1 AS cor0
----
102
55
61
onlyif mysql # use DIV operator for integer division
query I rowsort label-7985
SELECT ALL + col0 * col2 DIV - col1 AS col2 FROM tab0
----
-80
-9
0
skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + col0 * col2 / - col1 AS col2 FROM tab0
----
-80
-9
0
query I rowsort
SELECT - 94 * - col0 FROM tab0 AS cor0
----
2256
3290
8366
query I rowsort
SELECT + col2 + cor0.col1 + col2 AS col1 FROM tab2 AS cor0
----
111
85
93
query I rowsort
SELECT DISTINCT - ( + col1 ) * - col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
onlyif mysql # use DIV operator for integer division
query I rowsort label-7989
SELECT - col0 DIV - cor0.col1 - cor0.col2 * col0 FROM tab1 AS cor0
----
-162
-3642
-7674
skipif mysql # not compatible
query I rowsort label-7989
SELECT - col0 / - cor0.col1 - cor0.col2 * col0 FROM tab1 AS cor0
----
-162
-3642
-7674
query I rowsort
SELECT ALL - col1 + col2 * - col2 FROM tab0 AS cor0
----
-1175
-6815
-98
query I rowsort
SELECT - - ( + col2 ) * col1 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT col0 + col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT DISTINCT + - col0 + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1328
-1407
-634
query I rowsort
SELECT cor0.col2 * col2 * col2 + - col1 + - cor0.col1 * + col1 FROM tab2 AS cor0
----
14036
18691
54566
onlyif mysql # use DIV operator for integer division
query I rowsort label-7995
SELECT - col1 DIV col1 + + col2 * + cor0.col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
131
7388
877
skipif mysql # not compatible
query I rowsort label-7995
SELECT - col1 / col1 + + col2 * + cor0.col0 + cor0.col1 AS col0 FROM tab0 AS cor0
----
131
7388
877
query I rowsort
SELECT col1 * tab1.col1 * - col1 FROM tab1
----
-1000
-17576
-2197
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col2 * + tab2.col2 - col0 col0 FROM tab2 WHERE NOT col1 + col0 + col0 NOT BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab2.col1 + col0 + col0 FROM tab2
----
175
215
45
query I rowsort
SELECT DISTINCT + col1 + + col2 - - col1 * + col1 FROM tab2
----
1019
344
3566
query I rowsort
SELECT - tab2.col1 - - col1 * + col1 FROM tab2
----
272
3422
930
query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) > ( NULL )
----
query I rowsort
SELECT + col0 + col0 * col0 + col0 * - col1 AS col2 FROM tab2
----
-161
1560
4977
query I rowsort
SELECT - col2 + col2 FROM tab2 WHERE ( NULL ) IN ( col0 * + col0 * col0 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8004
SELECT DISTINCT + col0 * col0 DIV + col0 + - col1 + - col0 AS col1 FROM tab2
----
-17
-31
-59
skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT + col0 * col0 / + col0 + - col1 + - col0 AS col1 FROM tab2
----
-17
-31
-59
query III rowsort
SELECT * FROM tab0 WHERE col2 + col2 NOT IN ( + col0 + col1 )
----
9 values hashing to 38a1673e2e09d694c8cec45c797034a7
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + tab1.col2 * col0 col0 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT + tab0.col1 * col1 * col0 FROM tab0
----
177504
329315
737009
query I rowsort
SELECT ALL col1 * col2 + + tab1.col1 FROM tab1
----
1261
1430
580
query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - col1 * - col2
----
query I rowsort
SELECT - tab1.col2 * - col2 + + tab1.col2 * + col1 * - tab1.col0 FROM tab1
----
-1296
-33231
-90624
query I rowsort
SELECT + tab1.col2 * col1 FROM tab1 WHERE NOT NULL > NULL
----
query I rowsort
SELECT ALL col2 - - col2 * + col2 AS col2 FROM tab2
----
1482
702
756
query I rowsort
SELECT col2 FROM tab2 WHERE NULL <> NULL
----
query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 / col1 NOT IN ( col2 * col2 )
----
query I rowsort
SELECT ALL col1 - col0 AS col1 FROM tab0
----
2
62
62
query I rowsort
SELECT + tab0.col0 + col2 * - col0 * col1 FROM tab0
----
-3360
-664029
-68088
query I rowsort
SELECT - col0 * + col0 + + col2 FROM tab0
----
-1224
-543
-7839
query I rowsort
SELECT tab0.col1 FROM tab0 WHERE NOT col1 * - col1 * col1 IN ( - col2 + col2 )
----
86
91
97
query I rowsort
SELECT ALL col1 * col1 FROM tab1 WHERE NOT NULL <> NULL
----
query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL BETWEEN col1 * + col1 AND col1
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( - col2 )
----
query I rowsort
SELECT ALL + col1 * col0 - + col0 AS col2 FROM tab0
----
2040
3360
8010
query I rowsort
SELECT - col0 - - col2 * col0 FROM tab0
----
0
7209
768
query I rowsort
SELECT col1 + col1 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT + cor0.col0 * col0 + col2 FROM tab2 AS cor0
----
6110
6279
76
query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 + col0 )
----
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col2 + col2 + - cor0.col2 col2 FROM tab1 AS cor0
----
-54
-57
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 col1 FROM tab0 cor0
----
-70
-70
-70
query I rowsort
SELECT ALL - 12 + col2 AS col0 FROM tab0 AS cor0
----
-11
21
70
query I rowsort
SELECT DISTINCT - tab1.col2 * 38 AS col1 FROM tab1
----
-2052
-2166
-3648
query I rowsort
SELECT + col2 * + col2 + col1 FROM tab1 AS cor0
----
2942
3259
9229
query I rowsort
SELECT + 44 FROM tab1, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 0cc3e52e781e46962291c3060c6ae73b
query I rowsort
SELECT - col1 * 17 AS col1 FROM tab1
----
-170
-221
-442
query I rowsort
SELECT + 29 FROM tab0, tab1 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col2 * ( - 98 * - col1 + col0 ) col1 FROM tab2
----
152360
66310
82215
query I rowsort
SELECT - col0 * col2 * - col1 AS col2 FROM tab1
----
36480
4212
99840
query I rowsort
SELECT - col0 + - 6 FROM tab2 AS cor0
----
-13
-84
-85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 col0 FROM tab2 cor0
----
46
46
46
query I rowsort
SELECT ( 30 ) * - col0 + - col0 FROM tab0 AS cor0
----
-1085
-2759
-744
query I rowsort
SELECT + ( 26 ) + col2 FROM tab2 AS cor0
----
52
53
64
query I rowsort
SELECT - col2 + col0 * - col2 * col1 AS col0 FROM tab2 AS cor0
----
-119678
-51072
-5886
query I rowsort
SELECT + + col2 * col2 AS col0 FROM tab2 cor0
----
1444
676
729
query I rowsort
SELECT - ( 33 ) FROM tab2 AS cor0
----
-33
-33
-33
query I rowsort
SELECT ALL + + col2 * - col2 AS col1 FROM tab2 AS cor0
----
-1444
-676
-729
query I rowsort
SELECT + 93 + col1 FROM tab1 AS cor0
----
103
106
119
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab0, tab0 AS cor0, tab2 AS cor1, tab2 AS cor2
----
81 values hashing to dfdfceb3acab6f866df9d676c07043ad
query I rowsort
SELECT col0 + - 44 * col2 FROM tab0
----
-1428
-3519
-9
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0, tab0 cor0, tab0 AS cor1
----
972 values hashing to 3406497351e4789c89a295ee9b64b201
query I rowsort
SELECT 74 + - tab0.col0 FROM tab0
----
-15
39
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8050
SELECT ALL - CAST( - ( cor0.col1 ) AS SIGNED ) FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL - CAST ( - ( cor0.col1 ) AS INTEGER ) FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - cor0.col0 + col2 col2 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + 75 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT DISTINCT + + 73 + cor0.col0 FROM tab0 AS cor0
----
108
162
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8054
SELECT 81 + col0 DIV + col0 + + 25 FROM tab0 AS cor0
----
107
107
107
skipif mysql # not compatible
query I rowsort label-8054
SELECT 81 + col0 / + col0 + + 25 FROM tab0 AS cor0
----
107
107
107
query I rowsort
SELECT - 23 * - col1 FROM tab1 cor0
----
230
299
598
query I rowsort
SELECT DISTINCT - 64 * col0 * cor0.col2 FROM tab1 AS cor0
----
-10368
-233472
-491520
onlyif mysql # use DIV operator for integer division
query I rowsort label-8057
SELECT - + 77 * ( - cor0.col2 ) + 63 DIV 17 + col2 * + 10 * col0 FROM tab0 AS cor0
----
10464
430
79297
skipif mysql # not compatible
query I rowsort label-8057
SELECT - + 77 * ( - cor0.col2 ) + 63 / 17 + col2 * + 10 * col0 FROM tab0 AS cor0
----
10464
430
79297
query I rowsort
SELECT DISTINCT - - 78 + + col0 AS col0 FROM tab2 AS cor0
----
156
157
85
query I rowsort
SELECT + - cor0.col1 + col0 * + ( col2 ) FROM tab0 AS cor0
----
-62
706
7207
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * - col1 + - col2 col2 FROM tab2 AS cor0
----
-1381
-244
-4628
skipif mysql # not compatible
query I rowsort
SELECT + col1 + + col2 * CAST ( col1 AS REAL ) FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT ALL - col1 + - col2 * col0 AS col0 FROM tab0 AS cor0
----
-132
-7389
-878
query I rowsort
SELECT - cor0.col0 * - col2 AS col2 FROM tab2 cor0
----
189
2028
3002
onlyif mysql # use DIV operator for integer division
query I rowsort label-8064
SELECT DISTINCT - cor0.col0 DIV col2 - + col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-2
-6
-7
skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT - cor0.col0 / col2 - + col2 / col1 AS col0 FROM tab1 AS cor0
----
-2
-6
-7
query I rowsort
SELECT cor0.col1 * + col0 + - 14 AS col0 FROM tab0 AS cor0
----
2050
3381
8085
query I rowsort
SELECT DISTINCT col2 * - col1 * - 16 FROM tab2 AS cor0
----
10336
13392
24544
query I rowsort
SELECT 56 * - cor0.col2 FROM tab1 AS cor0
----
-3024
-3192
-5376
query I rowsort
SELECT + ( col1 ) * cor0.col2 FROM tab2 AS cor0
----
1534
646
837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8069
SELECT DISTINCT + cor0.col0 + col2 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-8069
SELECT DISTINCT + cor0.col0 + col2 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
-15
64
79
query I rowsort
SELECT ALL - col2 + col2 - + 46 FROM tab1 AS cor0
----
-46
-46
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-8071
SELECT ALL 48 + + tab0.col1 DIV col0 AS col0 FROM tab0
----
49
50
51
skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL 48 + + tab0.col1 / col0 AS col0 FROM tab0
----
49
50
51
query I rowsort
SELECT ALL - ( tab1.col2 ) + + col0 * - col0 + - col2 FROM tab1
----
-117
-4210
-6592
query I rowsort
SELECT + - col2 + col1 * col0 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8074
SELECT DISTINCT col1 DIV col0 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-70
skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT col1 / col0 + - col0 * col1 FROM tab1 AS cor0
----
-1040
-640
-70
query I rowsort
SELECT + col2 * + col0 + col1 * + col0 AS col1 FROM tab0 AS cor0
----
15397
2856
3430
query I rowsort
SELECT - cor0.col0 * + col0 - col1 AS col2 FROM tab0 AS cor0
----
-1322
-662
-8012
query I rowsort
SELECT + cor0.col1 - - col0 AS col1 FROM tab1 cor0
----
29
74
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8078
SELECT - - col1 - col0 DIV cor0.col2 FROM tab0 AS cor0
----
62
86
90
skipif mysql # not compatible
query I rowsort label-8078
SELECT - - col1 - col0 / cor0.col2 FROM tab0 AS cor0
----
62
86
90
query I rowsort
SELECT col2 + - cor0.col0 AS col2 FROM tab2 AS cor0
----
-41
-52
20
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 35 + col2 col1 FROM tab0 cor0
----
1188
2952
36
query I rowsort
SELECT + col1 * + tab2.col0 * + col0 AS col1 FROM tab2
----
106097
1519
358956
query I rowsort
SELECT 6 AS col2 FROM tab0
----
6
6
6
query I rowsort
SELECT ALL - - col2 * 0 AS col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT col1 - + ( col0 ) FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT DISTINCT col2 + col1 * 34 AS col1 FROM tab0 cor0
----
2957
3176
3299
query I rowsort
SELECT ALL - col2 + cor0.col1 * - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT ALL - col2 + cor0.col1 * - 63 FROM tab1 AS cor0
----
-1692
-687
-915
query I rowsort
SELECT - 8 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e
query I rowsort
SELECT ( cor0.col0 ) - col1 * - 81 FROM tab2 AS cor0
----
1456
2518
4857
query I rowsort
SELECT - ( + col0 ) * col2 * + 35 + - 83 FROM tab1 AS cor0
----
-127763
-268883
-5753
query I rowsort
SELECT ALL + col2 * + 77 AS col2 FROM tab0 AS cor0
----
2541
6314
77
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab0 AS cor2, tab0 AS cor3
----
3645 values hashing to 97b43fbe79eecd0bc6921392403b666d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8093
SELECT DISTINCT tab0.col1 - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT tab0.col1 - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 * col2 col0 FROM tab1
----
233472
486
614400
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8095
SELECT ALL col1 * + col2 + - CAST( - 29 AS SIGNED ) FROM tab0
----
126
2867
7491
skipif mysql # not compatible
query I rowsort label-8095
SELECT ALL col1 * + col2 + - CAST ( - 29 AS INTEGER ) FROM tab0
----
126
2867
7491
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL tab2.col2 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * col1 col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT - col1 + - col1 * - col2 AS col2 FROM tab0 cor0
----
0
2752
7371
query I rowsort
SELECT - col1 + + 0 * col2 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT + tab2.col2 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5911bac51441f4ff640b2a2b721ea8e3
query I rowsort
SELECT ALL + tab2.col0 + tab2.col2 AS col0 FROM tab2
----
104
117
34
query I rowsort
SELECT 19 * col2 AS col1 FROM tab2
----
494
513
722
query I rowsort
SELECT DISTINCT - col1 * 38 + - 20 * col2 FROM tab1 AS cor0
----
-1520
-2068
-2414
query I rowsort
SELECT DISTINCT ( 71 ) FROM tab2, tab0 AS cor0
----
71
query I rowsort
SELECT - - col1 + - ( + col0 ) FROM tab2 cor0
----
-19
-62
24
query I rowsort
SELECT ALL col0 * 18 + col0 FROM tab0 AS cor0
----
1691
456
665
query I rowsort
SELECT DISTINCT + cor0.col1 - col1 AS col1 FROM tab2 AS cor0
----
0
query I rowsort
SELECT ALL - + cor0.col1 * - col0 + 83 AS col1 FROM tab2 AS cor0
----
1426
300
4685
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8109
SELECT + - col1 + + CAST( NULL AS SIGNED ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8109
SELECT + - col1 + + CAST ( NULL AS INTEGER ) * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - cor0.col1 * cor0.col2 AS col1 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT + col1 * + cor0.col2 + col2 AS col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - col1 * - col0 + col0 * cor0.col2 AS col1 FROM tab1 AS cor0
----
240
4288
8720
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8113
SELECT ALL - + col2 * - CAST( NULL AS SIGNED ) + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8113
SELECT ALL - + col2 * - CAST ( NULL AS INTEGER ) + 45 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - ( col2 ) FROM tab1 cor0
----
-16
-51
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8115
SELECT ALL - col2 DIV + 23 + col2 AS col0 FROM tab1 AS cor0
----
52
55
92
skipif mysql # not compatible
query I rowsort label-8115
SELECT ALL - col2 / + 23 + col2 AS col0 FROM tab1 AS cor0
----
52
55
92
query I rowsort
SELECT DISTINCT + col1 - - col2 * - col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8117
SELECT - cor0.col0 * col0 DIV - col2 + + col2 AS col0 FROM tab0 AS cor0
----
1226
178
50
skipif mysql # not compatible
query I rowsort label-8117
SELECT - cor0.col0 * col0 / - col2 + + col2 AS col0 FROM tab0 AS cor0
----
1226
178
50
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8118
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 89 * col2 AS col1 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 89 * col2 AS col1 FROM tab0
----
NULL
query I rowsort
SELECT - 9 FROM tab0, tab2 AS cor0
----
9 values hashing to caf28657beb43049740febe1fa9ded5a
query I rowsort
SELECT DISTINCT + + cor0.col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8121
SELECT DISTINCT - CAST( + 23 AS SIGNED ) DIV - col1 - col2 FROM tab0
----
-1
-33
-82
skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT - CAST ( + 23 AS INTEGER ) / - col1 - col2 FROM tab0
----
-1
-33
-82
query I rowsort
SELECT - cor0.col0 * 62 AS col2 FROM tab1 AS cor0
----
-186
-3968
-4960
query I rowsort
SELECT - 5 * + col1 FROM tab2 AS cor0
----
-155
-295
-85
onlyif mysql # use DIV operator for integer division
query I rowsort label-8124
SELECT ALL - col1 DIV col1 AS col0 FROM tab2 cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL - col1 / col1 AS col0 FROM tab2 cor0
----
-1
-1
-1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8125
SELECT CAST( col2 AS SIGNED ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
skipif mysql # not compatible
query I rowsort label-8125
SELECT CAST ( col2 AS INTEGER ) * - col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL - 32 + 29 FROM tab1 AS cor0
----
-3
-3
-3
query I rowsort
SELECT ( + 17 ) AS col0 FROM tab1 cor0
----
17
17
17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8128
SELECT DISTINCT ( + 9 ) DIV col1 col1 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT ( + 9 ) / col1 col1 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8129
SELECT DISTINCT + 20 + 85 DIV - col0 FROM tab0 AS cor0
----
17
18
20
skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT + 20 + 85 / - col0 FROM tab0 AS cor0
----
17
18
20
query I rowsort
SELECT DISTINCT - col1 * - col2 + + 74 * - 75 AS col2 FROM tab2 AS cor0
----
-4016
-4713
-4904
onlyif mysql # use DIV operator for integer division
query I rowsort label-8131
SELECT + col2 DIV - col0 + ( + col0 ) * col2 * + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3395
664118
68111
skipif mysql # not compatible
query I rowsort label-8131
SELECT + col2 / - col0 + ( + col0 ) * col2 * + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3395
664118
68111
query I rowsort
SELECT DISTINCT col2 * col0 + 54 AS col1 FROM tab1 AS cor0
----
216
3702
7734
query I rowsort
SELECT ALL + col0 + - col0 - - 89 FROM tab2 AS cor0
----
89
89
89
query I rowsort
SELECT - 6 * cor0.col0 + + col2 FROM tab0 AS cor0
----
-111
-209
-452
query I rowsort
SELECT cor0.col0 + + col2 * + col1 FROM tab0 cor0
----
132
2862
7551
query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab2 cor0
----
67
query I rowsort
SELECT + col2 * col0 + 33 AS col1 FROM tab2 AS cor0
----
2061
222
3035
query I rowsort
SELECT + + ( + col1 ) * + 29 AS col0 FROM tab2 AS cor0
----
1711
493
899
onlyif mysql # use DIV operator for integer division
query I rowsort label-8139
SELECT DISTINCT - col1 * col2 DIV 15 - col2 FROM tab0 AS cor0
----
-222
-579
-7
skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT - col1 * col2 / 15 - col2 FROM tab0 AS cor0
----
-222
-579
-7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8140
SELECT + 91 DIV cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6c770aa0cbd7bb2b35e0eccf0bd5cbc
skipif mysql # not compatible
query I rowsort label-8140
SELECT + 91 / cor0.col0 AS col1 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to f6c770aa0cbd7bb2b35e0eccf0bd5cbc
query I rowsort
SELECT col2 * col2 - col2 AS col0 FROM tab2 AS cor0
----
1406
650
702
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col1 + - col0 col0 FROM tab1 AS cor0
----
-54
-67
23
query I rowsort
SELECT ALL - - col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col0 * + 76 col2 FROM tab1 AS cor0
----
-174
-4807
-5984
query I rowsort
SELECT + 72 + col2 AS col2 FROM tab0 AS cor0
----
105
154
73
query I rowsort
SELECT - 27 * col2 * - col2 FROM tab1 AS cor0
----
248832
78732
87723
query I rowsort
SELECT - + cor0.col1 + - col2 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT DISTINCT tab1.col1 AS col0 FROM tab1, tab0 AS cor0, tab2 AS cor1
----
10
13
26
query I rowsort
SELECT - col2 * + 8 AS col0 FROM tab0 AS cor0
----
-264
-656
-8
query I rowsort
SELECT + 43 + - col0 * - col0 FROM tab1 AS cor0
----
4139
52
6443
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8151
SELECT ALL CAST( NULL AS SIGNED ) + - ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8151
SELECT ALL CAST ( NULL AS INTEGER ) + - ( col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 col1 FROM tab2 cor0
----
-41
-52
20
query I rowsort
SELECT + ( + ( col2 ) ) FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT - 85 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 91e44ead5e72fa22f87a57243e232ede
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col0 FROM tab2
----
15
query I rowsort
SELECT ALL + 45 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8157
SELECT DISTINCT col0 + 45 * col2 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8157
SELECT DISTINCT col0 + 45 * col2 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
query I rowsort
SELECT + 86 AS col1 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT + col1 - - ( tab0.col1 ) * tab0.col0 AS col2 FROM tab0
----
2150
3492
8190
onlyif mysql # use DIV operator for integer division
query I rowsort label-8160
SELECT col0 * 57 DIV col2 AS col2 FROM tab1 AS cor0
----
3
47
64
skipif mysql # not compatible
query I rowsort label-8160
SELECT col0 * 57 / col2 AS col2 FROM tab1 AS cor0
----
3
47
64
query I rowsort
SELECT ALL col2 + + 96 AS col1 FROM tab1 AS cor0
----
150
153
192
query I rowsort
SELECT col1 * col1 * - col1 FROM tab1
----
-1000
-17576
-2197
onlyif mysql # use DIV operator for integer division
query I rowsort label-8163
SELECT + - col1 + - col2 * 73 DIV cor0.col0 AS col0 FROM tab2 AS cor0
----
-312
-52
-83
skipif mysql # not compatible
query I rowsort label-8163
SELECT + - col1 + - col2 * 73 / cor0.col0 AS col0 FROM tab2 AS cor0
----
-312
-52
-83
query I rowsort
SELECT + col0 + col1 * + ( col0 * 0 ) + - cor0.col1 * cor0.col2 * ( 52 ) FROM tab0 cor0
----
-147552
-387935
-5009
query I rowsort
SELECT DISTINCT + col0 * 93 * col0 FROM tab1 AS cor0
----
380928
595200
837
query I rowsort
SELECT ALL 12 + 66 * col1 FROM tab1 cor0
----
1728
672
870
onlyif mysql # use DIV operator for integer division
query I rowsort label-8167
SELECT + 48 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8167
SELECT + 48 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort
SELECT cor1.col0 * CAST ( - 72 AS REAL ) FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1
----
27 values hashing to 3ff2ae5ff2a0d271b351a1170f5177bc
skipif mysql # not compatible
query I rowsort
SELECT + col1 * col2 + CAST ( 40 * + col2 AS REAL ) AS col0 FROM tab1 AS cor0
----
2850
3564
5088
query I rowsort
SELECT cor0.col2 * col0 * 38 - 20 * + col2 AS col2 FROM tab1 AS cor0
----
137484
289920
5076
query I rowsort
SELECT DISTINCT cor0.col1 + col2 * col1 AS col2 FROM tab1 AS cor0
----
1261
1430
580
query I rowsort
SELECT - + 93 * col2 * col1 - cor0.col1 * col1 FROM tab1 AS cor0
----
-116233
-131248
-53110
query I rowsort
SELECT + - col0 - - col0 * col2 AS col1 FROM tab2 AS cor0
----
182
1950
2923
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 91 col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277
query I rowsort
SELECT + tab1.col2 * + tab1.col0 AS col1 FROM tab1
----
162
3648
7680
query I rowsort
SELECT DISTINCT - 75 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
-75
query I rowsort
SELECT 49 * - col1 AS col2 FROM tab1
----
-1274
-490
-637
query I rowsort
SELECT DISTINCT 56 AS col2 FROM tab0
----
56
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col2 FROM tab1
----
-99
-99
-99
query I rowsort
SELECT col2 + - col1 * + 38 + - cor0.col1 FROM tab1 AS cor0
----
-333
-411
-960
query I rowsort
SELECT ALL + 22 * col1 - + col0 AS col0 FROM tab2
----
1220
295
675
query I rowsort
SELECT DISTINCT col0 + - tab1.col1 + col0 FROM tab1
----
-20
118
147
query I rowsort
SELECT ALL 61 + tab2.col0 FROM tab2
----
139
140
68
query I rowsort
SELECT DISTINCT + 33 + - 92 AS col2 FROM tab2, tab2 AS cor0
----
-59
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 * - tab0.col2 + + col2 * - col2 col1 FROM tab0
----
-273
663
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 79 - col1 col1 FROM tab0
----
-165
-170
-176
query I rowsort
SELECT + + col0 - cor0.col0 * col2 FROM tab1 AS cor0
----
-159
-3584
-7600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 17 * - col2 col1 FROM tab1 AS cor0
----
-1619
-892
-959
query I rowsort
SELECT DISTINCT tab1.col0 * + col0 + - 52 AS col2 FROM tab1
----
-43
4044
6348
query I rowsort
SELECT 68 * + 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dd7393b1772f8555209486720f7d5ec1
query I rowsort
SELECT ALL - col1 - - col1 AS col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + - col2 * - col2 FROM tab0
----
1113
36
6813
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + cor0.col0 col1 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT ALL - col1 + + 82 AS col2 FROM tab0
----
-15
-4
-9
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8195
SELECT DISTINCT - col1 + - CAST( NULL AS DECIMAL ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT - col1 + - CAST ( NULL AS REAL ) + - col0 AS col1 FROM tab1 AS cor0
----
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8196
SELECT ALL - + col2 - CAST( - 57 AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
1428
513
645
skipif mysql # not compatible
query I rowsort label-8196
SELECT ALL - + col2 - CAST ( - 57 AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
1428
513
645
query I rowsort
SELECT + col0 * col2 * + ( col0 ) + col2 FROM tab0 cor0
----
1226
19041
649604
onlyif mysql # use DIV operator for integer division
query I rowsort label-8198
SELECT ALL - col0 DIV col2 + - col2 FROM tab0 AS cor0
----
-33
-36
-83
skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL - col0 / col2 + - col2 FROM tab0 AS cor0
----
-33
-36
-83
query I rowsort
SELECT ALL + col1 * - 71 + + col1 - - col1 * - ( col0 ) * col2 FROM tab1 AS cor0
----
-100750
-37180
-6032
query I rowsort
SELECT ALL - col0 * ( + cor0.col0 * - col1 ) + 0 * + cor0.col2 + col1 AS col0 FROM tab2 AS cor0
----
106114
1550
359015
query I rowsort
SELECT - cor0.col0 * + col2 + 56 FROM tab0 AS cor0
----
-7242
-736
21
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8202
SELECT DISTINCT col2 + - CAST( NULL AS SIGNED ) / - ( + cor0.col0 ) + - col2 * 36 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT col2 + - CAST ( NULL AS INTEGER ) / - ( + cor0.col0 ) + - col2 * 36 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT col0 + + cor0.col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT col0 + - 62 FROM tab1
----
-59
18
2
query I rowsort
SELECT DISTINCT + ( col0 ) * + tab0.col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT + col1 * col0 - + col2 FROM tab1
----
24
583
944
query I rowsort
SELECT DISTINCT - 34 * col0 FROM tab2 AS cor0
----
-238
-2652
-2686
query I rowsort
SELECT + 77 * - col1 AS col0 FROM tab1 AS cor0
----
-1001
-2002
-770
query I rowsort
SELECT col0 * + ( - col2 ) + - col2 FROM tab1
----
-216
-3705
-7776
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8210
SELECT 71 * cor0.col0 / - CAST( NULL AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8210
SELECT 71 * cor0.col0 / - CAST ( NULL AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8211
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab2, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
skipif mysql # not compatible
query I rowsort label-8211
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab2, tab1 cor0, tab0 AS cor1, tab0 AS cor2
----
81 values hashing to cb33c30d6f52bbb24338a293c740f29c
query I rowsort
SELECT ALL col1 * col1 + + col2 FROM tab2 cor0
----
327
3507
988
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8213
SELECT ALL + col2 * - col1 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL + col2 * - col1 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + col0 * - 18 FROM tab1 AS cor0
----
-1216
-1520
-57
query I rowsort
SELECT + - 52 AS col0 FROM tab0 cor0
----
-52
-52
-52
query I rowsort
SELECT DISTINCT 41 AS col0 FROM tab1 cor0
----
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-8217
SELECT + - col0 DIV col2 - - 40 FROM tab0 cor0
----
39
40
5
skipif mysql # not compatible
query I rowsort label-8217
SELECT + - col0 / col2 - - 40 FROM tab0 cor0
----
39
40
5
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8218
SELECT ALL 17 * col1 * CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8218
SELECT ALL 17 * col1 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col0 ) + - ( + col2 ) col2 FROM tab0 AS cor0
----
-9
34
7
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8220
SELECT CAST( col2 * + col2 AS SIGNED ) AS col0 FROM tab2
----
1444
676
729
skipif mysql # not compatible
query I rowsort label-8220
SELECT CAST ( col2 * + col2 AS INTEGER ) AS col0 FROM tab2
----
1444
676
729
query I rowsort
SELECT DISTINCT + 37 - col0 AS col1 FROM tab1 AS cor0
----
-27
-43
34
query I rowsort
SELECT DISTINCT - col1 * col1 + 28 + cor0.col1 AS col0 FROM tab2 AS cor0
----
-244
-3394
-902
query I rowsort
SELECT DISTINCT + + cor0.col0 - col1 * - ( + col0 ) AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT ALL + 52 AS col0 FROM tab2 cor0
----
52
52
52
query I rowsort
SELECT ALL + col1 * col0 + + col2 * col1 FROM tab2 AS cor0
----
1054
1989
6136
onlyif mysql # use DIV operator for integer division
query I rowsort label-8226
SELECT col0 + col2 * cor0.col0 + col2 DIV col0 FROM tab1 AS cor0
----
183
3712
7761
skipif mysql # not compatible
query I rowsort label-8226
SELECT col0 + col2 * cor0.col0 + col2 / col0 FROM tab1 AS cor0
----
183
3712
7761
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 * col2 - ( + col1 + + col1 ) * 44 col0 FROM tab0 AS cor0
----
-101222
-619892
-8633
query I rowsort
SELECT ALL - + col1 * 13 AS col2 FROM tab1 cor0
----
-130
-169
-338
query I rowsort
SELECT DISTINCT - - 51 FROM tab1 cor0
----
51
query I rowsort
SELECT + - col0 * 23 + col2 + + col0 AS col2 FROM tab0 AS cor0
----
-1876
-495
-769
query I rowsort
SELECT ALL tab2.col1 * 11 FROM tab2, tab2 AS cor0
----
9 values hashing to c39ae79014318321ad708f3ad8a68d39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8232
SELECT ALL tab0.col2 DIV col2 + col1 AS col1 FROM tab0
----
87
92
98
skipif mysql # not compatible
query I rowsort label-8232
SELECT ALL tab0.col2 / col2 + col1 AS col1 FROM tab0
----
87
92
98
query I rowsort
SELECT - 98 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638
query I rowsort
SELECT + 56 + col1 + col0 AS col1 FROM tab2 AS cor0
----
152
193
94
query I rowsort
SELECT + cor0.col1 + - col2 AS col1 FROM tab2 cor0
----
-21
33
4
query I rowsort
SELECT + col0 * 88 FROM tab2
----
616
6864
6952
query I rowsort
SELECT DISTINCT - 10 + col0 AS col1 FROM tab2 AS cor0
----
-3
68
69
query I rowsort
SELECT - ( - 41 ) * tab0.col1 FROM tab0
----
3526
3731
3977
query I rowsort
SELECT ALL 23 * - col0 FROM tab0
----
-2047
-552
-805
query I rowsort
SELECT ALL + 33 * - 82 AS col0 FROM tab2
----
-2706
-2706
-2706
query I rowsort
SELECT - ( + col2 ) * + tab0.col1 + - 63 * col1 AS col0 FROM tab0
----
-13195
-6208
-8256
onlyif mysql # use DIV operator for integer division
query I rowsort label-8242
SELECT ALL col2 DIV - col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-40
skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL col2 / - col1 - + col2 FROM tab2 AS cor0
----
-26
-27
-40
query I rowsort
SELECT ALL + + col0 * + col2 + + ( cor0.col0 ) * - col2 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8244
SELECT + tab2.col1 + + 27 DIV + col0 FROM tab2
----
17
34
59
skipif mysql # not compatible
query I rowsort label-8244
SELECT + tab2.col1 + + 27 / + col0 FROM tab2
----
17
34
59
query I rowsort
SELECT ALL + + col2 + 12 FROM tab1 AS cor0
----
108
66
69
query I rowsort
SELECT ALL - + cor0.col2 * 99 + - col0 AS col2 FROM tab1 AS cor0
----
-5349
-5707
-9584
query I rowsort
SELECT DISTINCT + - col0 + 0 FROM tab0 AS cor0
----
-24
-35
-89
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8248
SELECT col0 * CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-8248
SELECT col0 * CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
1040
640
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 63 * col0 col0 FROM tab1 AS cor0
----
215
4042
5053
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8250
SELECT DISTINCT - - col2 + - CAST( cor0.col1 AS SIGNED ) FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-8250
SELECT DISTINCT - - col2 + - CAST ( cor0.col1 AS INTEGER ) FROM tab1 AS cor0
----
28
47
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8251
SELECT ALL - + col2 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-121
-176
-57
skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL - + col2 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8252
SELECT ALL col0 * CAST( 10 AS SIGNED ) FROM tab2 AS cor0
----
70
780
790
skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL col0 * CAST ( 10 AS INTEGER ) FROM tab2 AS cor0
----
70
780
790
query I rowsort
SELECT DISTINCT + + col2 * ( - cor0.col0 ) + col1 + col0 FROM tab0 AS cor0
----
-682
-7118
97
query I rowsort
SELECT 87 * + 31 FROM tab1, tab0 cor0
----
9 values hashing to 22aa77403eb3b15fac7c919f8e72148b
onlyif mysql # use DIV operator for integer division
query I rowsort label-8255
SELECT DISTINCT - col2 * + col0 DIV - cor0.col0 - + ( col2 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT - col2 * + col0 / - cor0.col0 - + ( col2 ) FROM tab0 AS cor0
----
0
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT - - CAST ( 87 AS REAL ) * col0 FROM tab0 AS cor0
----
2088
3045
7743
query I rowsort
SELECT - col2 * - 17 FROM tab1 AS cor0
----
1632
918
969
query I rowsort
SELECT col0 * + 22 + tab0.col1 AS col0 FROM tab0
----
2049
614
867
query I rowsort
SELECT DISTINCT col0 * + col1 * + col0 FROM tab2
----
106097
1519
358956
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * - cor0.col1 * + col2 col0 FROM tab0 AS cor0
----
-3395
-664118
-68112
query I rowsort
SELECT 5 AS col1 FROM tab1, tab0 AS cor0, tab2 cor1
----
27 values hashing to 6797d40099023779b89feb627d94a3e7
query I rowsort
SELECT ALL + ( - 41 ) AS col2 FROM tab1
----
-41
-41
-41
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col1 ) * + col2 col0 FROM tab2 AS cor0
----
-1534
-646
-837
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( col2 AS REAL ) AS col0 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT + col0 * col1 + + col0 AS col1 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT + 89 + cor0.col2 FROM tab0 AS cor0
----
122
171
90
query I rowsort
SELECT + col2 * - 20 AS col0 FROM tab1 AS cor0
----
-1080
-1140
-1920
query I rowsort
SELECT DISTINCT - 93 * col0 AS col1 FROM tab1
----
-279
-5952
-7440
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8269
SELECT - col2 * col2 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8269
SELECT - col2 * col2 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT ALL 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55
query I rowsort
SELECT DISTINCT + - col2 * col0 - - col0 AS col0 FROM tab1 AS cor0
----
-159
-3584
-7600
query I rowsort
SELECT 58 * - col1 FROM tab2
----
-1798
-3422
-986
query I rowsort
SELECT + 77 * + col0 + + cor0.col1 FROM tab0 AS cor0
----
1934
2792
6944
onlyif mysql # use DIV operator for integer division
query I rowsort label-8274
SELECT DISTINCT - 6 - col2 * ( - col1 ) DIV - col0 FROM tab1 AS cor0
----
-14
-21
-474
skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT - 6 - col2 * ( - col1 ) / - col0 FROM tab1 AS cor0
----
-14
-21
-474
query I rowsort
SELECT - 26 * + col1 FROM tab2 AS cor0
----
-1534
-442
-806
query I rowsort
SELECT col2 + col1 * - col1 FROM tab1 cor0
----
-43
-622
-73
query I rowsort
SELECT DISTINCT - col0 + + col0 * - 10 FROM tab1 AS cor0
----
-33
-704
-880
query I rowsort
SELECT col2 * - col1 * ( - cor0.col1 * col0 + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
159030
7019584
843030
query I rowsort
SELECT + col1 * + 85 FROM tab2 AS cor0
----
1445
2635
5015
query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NULL IN ( cor0.col1 )
----
query I rowsort
SELECT DISTINCT - tab1.col1 + 76 FROM tab1
----
50
63
66
query I rowsort
SELECT ( - 45 ) * + col1 * + col2 + - col1 AS col0 FROM tab2 AS cor0
----
-29087
-37696
-69089
query I rowsort
SELECT tab2.col0 * cor0.col0 * tab2.col2 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to eb6ba94d1fa9e8b6eb0f1b6b2933e49c
query I rowsort
SELECT DISTINCT + 33 - 68 FROM tab1
----
-35
query I rowsort
SELECT ( + 72 ) * col1 AS col1 FROM tab2 AS cor0
----
1224
2232
4248
query I rowsort
SELECT + - 82 + + col2 * col1 FROM tab0 AS cor0
----
15
2756
7380
query I rowsort
SELECT - + 81 + - col1 AS col1 FROM tab2 AS cor0
----
-112
-140
-98
query I rowsort
SELECT - + 86 - - col1 FROM tab2 AS cor0
----
-27
-55
-69
query I rowsort
SELECT - 83 * + col1 * col0 FROM tab1 cor0
----
-53120
-6474
-86320
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + - col0 * cor0.col1 col0 FROM tab2 AS cor0
----
-1305
-190
-4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8291
SELECT - 55 - col1 DIV col0 col1 FROM tab0 AS cor0
----
-56
-57
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8291
SELECT - 55 - col1 / col0 col1 FROM tab0 AS cor0
----
-56
-57
-58
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( col0 ) * + col2 col1 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT + + col0 - - col1 * ( + col2 + col0 ) FROM tab0 AS cor0
----
15650
3527
4926
query I rowsort
SELECT DISTINCT - 30 + col1 FROM tab2 AS cor0
----
-13
1
29
query I rowsort
SELECT ALL + + col0 - + col1 AS col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT + col1 * col0 + + 92 + 36 * + col0 FROM tab1 AS cor0
----
278
3036
4012
query I rowsort
SELECT + cor0.col0 * cor0.col2 + col2 FROM tab0 AS cor0
----
36
7380
825
query I rowsort
SELECT DISTINCT - ( col2 * col2 + col1 ) FROM tab1
----
-2942
-3259
-9229
query I rowsort
SELECT cor2.col0 * cor2.col2 AS col1 FROM tab2, tab0 cor0, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to f3cd95af1dd300c71bc4a7740e7bd196
query I rowsort
SELECT col1 * ( + ( col1 ) ) AS col2 FROM tab1 cor0
----
100
169
676
query I rowsort
SELECT - - col2 * ( col1 ) AS col2 FROM tab1 AS cor0
----
1248
1404
570
query I rowsort
SELECT tab2.col0 - ( - col0 ) FROM tab2
----
14
156
158
query I rowsort
SELECT ALL - col1 * ( col0 + - cor0.col2 ) FROM tab2 cor0
----
-3068
-697
620
query I rowsort
SELECT + tab1.col0 FROM tab1, tab0, tab2 AS cor0
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT DISTINCT - col1 * ( 70 ) * - col1 AS col1 FROM tab0
----
517720
579670
658630
query I rowsort
SELECT ALL - col0 * - 57 FROM tab2 AS cor0
----
399
4446
4503
query I rowsort
SELECT ALL + + col0 + + cor0.col1 * col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
13600
2031
6464
query I rowsort
SELECT - col2 + ( tab2.col2 * - tab2.col1 ) FROM tab2
----
-1560
-684
-864
query I rowsort
SELECT DISTINCT tab0.col0 * + ( - col2 ) FROM tab0
----
-35
-7298
-792
query I rowsort
SELECT ALL + 50 FROM tab2, tab2 cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52
onlyif mysql # use DIV operator for integer division
query I rowsort label-8311
SELECT col0 * 63 DIV + col1 AS col0 FROM tab0
----
17
22
61
skipif mysql # not compatible
query I rowsort label-8311
SELECT col0 * 63 / + col1 AS col0 FROM tab0
----
17
22
61
query I rowsort
SELECT DISTINCT + col1 * - 89 * + col2 AS col1 FROM tab2
----
-136526
-57494
-74493
query I rowsort
SELECT DISTINCT + ( - ( - cor0.col0 ) ) + col0 * - col0 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - - col1 * col1 * col1 AS col1 FROM tab1 cor0
----
1000
17576
2197
query I rowsort
SELECT ALL - col0 * 8 + col2 * + col0 * - col2 FROM tab0 AS cor0
----
-26328
-315
-599148
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8316
SELECT ALL - CAST( NULL AS SIGNED ) * 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL - CAST ( NULL AS INTEGER ) * 49 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col1 + 86 * col0 AS col2 FROM tab1
----
284
5514
6893
query I rowsort
SELECT - col0 * 20 * col1 FROM tab0 AS cor0
----
-161980
-41280
-67900
query I rowsort
SELECT DISTINCT + - ( + 89 ) * + col0 AS col1 FROM tab1 AS cor0
----
-267
-5696
-7120
query I rowsort
SELECT tab2.col2 + col1 * tab2.col2 AS col1 FROM tab2
----
1560
684
864
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8321
SELECT + CAST( NULL AS SIGNED ) + - col2 + - col1 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8321
SELECT + CAST ( NULL AS INTEGER ) + - col2 + - col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT - - tab2.col1 FROM tab2, tab0, tab2 cor0
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT DISTINCT - ( 40 ) * col0 - - col2 FROM tab0
----
-1399
-3478
-927
query I rowsort
SELECT ALL col1 * ( - tab1.col0 ) + col1 * col0 FROM tab1
----
0
0
0
query I rowsort
SELECT ALL col0 * - ( + tab1.col2 ) + - col0 * - col0 * + tab1.col1 + + col0 AS col1 FROM tab1
----
37376
75
75600
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab1.col2 - + col2 col1 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT + col2 - + ( col0 * + col1 + col0 ) AS col0 FROM tab2
----
-1384
-197
-4654
query I rowsort
SELECT ALL - ( + 22 ) - + tab0.col2 AS col1 FROM tab0
----
-104
-23
-55
query I rowsort
SELECT ALL 33 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL 9 + - col0 * col0 AS col0 FROM tab1
----
-4087
-6391
0
query I rowsort
SELECT ALL ( col0 ) * - col0 + + col1 + - tab0.col1 * col0 AS col2 FROM tab0
----
-15929
-2554
-4523
query I rowsort
SELECT ALL ( + col2 * + tab2.col2 ) FROM tab2
----
1444
676
729
query I rowsort
SELECT - 34 * col0 FROM tab1
----
-102
-2176
-2720
query I rowsort
SELECT DISTINCT - col1 + col2 - col2 * + col0 * col2 AS col0 FROM tab2 AS cor0
----
-114055
-5107
-52761
query I rowsort
SELECT DISTINCT + cor0.col1 * - 90 * + col1 + col1 + - col1 * col0 AS col1 FROM tab0 AS cor0
----
-667618
-753298
-850108
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + col0 - - col0 AS col0 FROM tab0 AS cor0
----
-27
-2790
-7284
query I rowsort
SELECT ALL col2 * - 33 + - 42 AS col2 FROM tab0 AS cor0
----
-1131
-2748
-75
query I rowsort
SELECT + 85 * col1 * + col2 AS col2 FROM tab2
----
130390
54910
71145
query I rowsort
SELECT - 41 - - col0 AS col1 FROM tab0
----
-17
-6
48
onlyif mysql # use DIV operator for integer division
query I rowsort label-8340
SELECT DISTINCT col2 * col1 + - ( col0 ) DIV col2 FROM tab1
----
1248
1404
569
skipif mysql # not compatible
query I rowsort label-8340
SELECT DISTINCT col2 * col1 + - ( col0 ) / col2 FROM tab1
----
1248
1404
569
query I rowsort
SELECT + col0 * - col1 + cor0.col0 * + col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT col1 * col0 + ( col2 + tab0.col1 ) * + tab0.col2 AS col2 FROM tab0
----
22285
3493
5991
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 + col1 * + col0 col1 FROM tab1
----
1132
170
732
query I rowsort
SELECT + + col1 * col1 + + col2 AS col2 FROM tab2 AS cor0
----
327
3507
988
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab1 AS cor2
----
972 values hashing to 92235dbc382d83baa93d6546ed489b0c
query I rowsort
SELECT ALL - col1 * - 10 + 49 + + col0 * cor0.col2 * cor0.col1 FROM tab0 AS cor0
----
4414
665077
69021
query I rowsort
SELECT ALL col0 * + 20 * col2 + - col1 * + col1 + - cor0.col1 FROM tab2 cor0
----
2788
37020
59734
query I rowsort
SELECT ALL col1 * + 1 FROM tab1 AS cor0
----
10
13
26
query I rowsort
SELECT - col2 * + ( ( + col2 ) ) FROM tab0 cor0
----
-1
-1089
-6724
query I rowsort
SELECT DISTINCT - col0 + + cor0.col2 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-69
-96
query I rowsort
SELECT ALL + + col0 + + col2 + - col1 AS col1 FROM tab0 AS cor0
----
-29
-61
80
query I rowsort
SELECT + col2 + - cor0.col1 * - 9 AS col0 FROM tab2 AS cor0
----
191
306
557
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8353
SELECT DISTINCT - - col1 * cor0.col1 + CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
7429
8363
9410
skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - - col1 * cor0.col1 + CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
7429
8363
9410
query I rowsort
SELECT DISTINCT + 3 * - cor0.col2 AS col1 FROM tab1 AS cor0
----
-162
-171
-288
query I rowsort
SELECT ALL ( - tab0.col0 ) * - 52 FROM tab0
----
1248
1820
4628
query I rowsort
SELECT DISTINCT - 77 AS col0 FROM tab1, tab0, tab0 AS cor0
----
-77
onlyif mysql # use DIV operator for integer division
query I rowsort label-8357
SELECT + 75 DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8357
SELECT + 75 / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL 19 * col2 FROM tab2 cor0
----
494
513
722
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8359
SELECT col1 + + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
20
26
52
skipif mysql # not compatible
query I rowsort label-8359
SELECT col1 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
20
26
52
query I rowsort
SELECT ALL - + col0 + 97 * cor0.col2 FROM tab1 AS cor0
----
5235
5465
9232
query I rowsort
SELECT - col1 + - ( col0 + col2 ) FROM tab0 AS cor0
----
-133
-143
-262
onlyif mysql # use DIV operator for integer division
query I rowsort label-8362
SELECT - col1 DIV + col0 col0 FROM tab2 AS cor0
----
-4
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8362
SELECT - col1 / + col0 col0 FROM tab2 AS cor0
----
-4
0
0
query I rowsort
SELECT tab2.col2 FROM tab2, tab0, tab2 AS cor0 WHERE NOT NULL > NULL
----
query I rowsort
SELECT col0 * col1 + - col2 * - 34 FROM tab2
----
1135
2635
5486
query I rowsort
SELECT DISTINCT cor0.col0 FROM tab0, tab1, tab1 AS cor0
----
3
64
80
query I rowsort
SELECT DISTINCT 60 * + tab2.col1 * 91 FROM tab2
----
169260
322140
92820
query I rowsort
SELECT DISTINCT + - col1 + col2 * + col0 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL - ( 3 ) * + col1 AS col2 FROM tab2 AS cor0
----
-177
-51
-93
onlyif mysql # use DIV operator for integer division
query I rowsort label-8369
SELECT - 95 * col1 + + col2 DIV + col1 FROM tab1 AS cor0
----
-1228
-2468
-945
skipif mysql # not compatible
query I rowsort label-8369
SELECT - 95 * col1 + + col2 / + col1 FROM tab1 AS cor0
----
-1228
-2468
-945
query I rowsort
SELECT DISTINCT col0 + ( col2 ) * ( col2 * - col1 ) AS col1 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT - col2 + + 60 FROM tab2 AS cor0
----
22
33
34
query I rowsort
SELECT DISTINCT + 75 * 50 AS col1 FROM tab0 AS cor0
----
3750
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8373
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8374
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 * cor0.col1 * - 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 * cor0.col1 * - 69 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 0 * col1 FROM tab0 AS cor0
----
0
query I rowsort
SELECT + + 74 * 92 + col1 * + 49 AS col2 FROM tab2 AS cor0
----
7641
8327
9699
query I rowsort
SELECT ALL col0 * ( - col0 ) + ( - col0 ) * col2 FROM tab1 cor0
----
-14080
-171
-7744
query I rowsort
SELECT ALL col1 * + 38 + + col0 * col0 AS col0 FROM tab2
----
1227
6887
8326
query I rowsort
SELECT ALL + tab0.col2 + ( 70 + col1 ) AS col1 FROM tab0
----
168
189
243
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8380
SELECT + - 28 + ( col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8380
SELECT + - 28 + ( col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + - col1 + col2 + col1 * - cor0.col2 AS col0 FROM tab1 cor0
----
-1165
-1376
-523
query I rowsort
SELECT tab1.col2 - + 35 * - col1 FROM tab1
----
407
551
964
query IIIIIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0, tab1 cor1, tab0, tab2 AS cor2
----
3645 values hashing to 149298fc0224e93f3bc2df24a3ebeeb8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8384
SELECT DISTINCT - col2 * col0 DIV + col0 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8384
SELECT DISTINCT - col2 * col0 / + col0 AS col0 FROM tab1 AS cor0
----
-54
-57
-96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8385
SELECT - + col1 DIV 95 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8385
SELECT - + col1 / 95 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT col1 + + 61 FROM tab1
----
71
74
87
query I rowsort
SELECT 3 + col2 FROM tab0 cor0
----
36
4
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 col1 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT + 69 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 85d9b90a03b9def161891b13085271f7
query I rowsort
SELECT - 3 * - col1 FROM tab1
----
30
39
78
query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab2
----
47
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + cor0.col0 col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT ALL 9 FROM tab0, tab1 AS cor0, tab2, tab2 AS cor1
----
81 values hashing to b7e6b25481699c3a4ee7381c7eae0817
query I rowsort
SELECT DISTINCT + - col1 - 23 AS col0 FROM tab2 cor0
----
-40
-54
-82
query I rowsort
SELECT - col0 + + ( col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - col1 * 51 - col1 FROM tab2 AS cor0
----
-1612
-3068
-884
query I rowsort
SELECT DISTINCT col1 * 15 AS col1 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT ALL col1 + - 69 FROM tab1 AS cor0
----
-43
-56
-59
query I rowsort
SELECT + - cor0.col0 - col2 FROM tab0 cor0
----
-171
-36
-57
query I rowsort
SELECT - col2 * + cor0.col1 + col0 * 28 FROM tab1 cor0
----
-1320
1222
992
query I rowsort
SELECT DISTINCT - ( 61 ) FROM tab2
----
-61
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col2 ) + col2 col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT + + ( col0 ) + col1 AS col0 FROM tab0 AS cor0
----
110
132
180
onlyif mysql # use DIV operator for integer division
query I rowsort label-8404
SELECT + col0 * - ( col2 ) + + 58 DIV col1 AS col1 FROM tab2 AS cor0
----
-188
-2028
-2999
skipif mysql # not compatible
query I rowsort label-8404
SELECT + col0 * - ( col2 ) + + 58 / col1 AS col1 FROM tab2 AS cor0
----
-188
-2028
-2999
query I rowsort
SELECT + cor0.col0 AS col0 FROM tab0, tab2 AS cor0 WHERE NOT NULL < NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8406
SELECT col2 DIV 69 - + cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8406
SELECT col2 / 69 - + cor0.col0 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT DISTINCT + + col1 + + 71 + - col0 * ( + col1 ) FROM tab1 AS cor0
----
-559
-956
19
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 20 * + cor0.col0 + + col1 * - col1 col0 FROM tab2 AS cor0
----
-1921
-821
1291
query I rowsort
SELECT DISTINCT - 7 * col1 + + col1 AS col1 FROM tab1 AS cor0
----
-156
-60
-78
query I rowsort
SELECT + 13 * col2 - col2 FROM tab2 cor0
----
312
324
456
query I rowsort
SELECT ALL + col0 * 11 AS col2 FROM tab2 AS cor0
----
77
858
869
query I rowsort
SELECT ALL + ( - 29 ) AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 45 ) col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050
query I rowsort
SELECT DISTINCT col0 + - col0 * - col0 FROM tab1
----
12
4160
6480
query I rowsort
SELECT col1 * ( col0 ) + col2 + + col0 FROM tab1 cor0
----
1216
135
761
query I rowsort
SELECT ALL + col2 * - col1 * col0 + col0 * col0 AS col2 FROM tab1 AS cor0
----
-32384
-4203
-93440
query I rowsort
SELECT - col2 * - col2 + + col2 * - ( col1 ) + col0 FROM tab2 cor0
----
-101
-780
877
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8418
SELECT DISTINCT - CAST( col0 AS SIGNED ) + + col0 AS col0 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8418
SELECT DISTINCT - CAST ( col0 AS INTEGER ) + + col0 AS col0 FROM tab2 AS cor0
----
0
query I rowsort
SELECT + ( - col2 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT ALL 18 + ( + col1 ) * ( - ( cor0.col1 ) ) AS col2 FROM tab1 AS cor0
----
-151
-658
-82
query I rowsort
SELECT - col1 - - 60 FROM tab1 AS cor0
----
34
47
50
query I rowsort
SELECT - cor0.col2 + + 90 + - col1 * + col0 * cor0.col1 AS col1 FROM tab1 AS cor0
----
-13526
-1992
-6367
onlyif mysql # use DIV operator for integer division
query I rowsort label-8423
SELECT DISTINCT 41 * 67 DIV col0 AS col2 FROM tab0 AS cor0
----
114
30
78
skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT 41 * 67 / col0 AS col2 FROM tab0 AS cor0
----
114
30
78
query I rowsort
SELECT DISTINCT + ( col0 ) + - ( - 96 ) + col1 FROM tab2
----
134
192
233
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 * + col2 col0 FROM tab2 AS cor0
----
-1248
-1296
-1824
query I rowsort
SELECT - 8 * - col2 AS col2 FROM tab0 AS cor0
----
264
656
8
query I rowsort
SELECT col0 * + 65 FROM tab2 AS cor0
----
455
5070
5135
query I rowsort
SELECT DISTINCT 96 AS col2 FROM tab2, tab0 AS cor0
----
96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8429
SELECT ALL col0 + - CAST( + 77 AS SIGNED ) * col2 AS col1 FROM tab0 AS cor0
----
-2517
-42
-6225
skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL col0 + - CAST ( + 77 AS INTEGER ) * col2 AS col1 FROM tab0 AS cor0
----
-2517
-42
-6225
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8430
SELECT tab0.col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-8430
SELECT tab0.col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT ALL + col1 * + 47 * + col0 AS col1 FROM tab1 cor0
----
30080
3666
48880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( cor1.col2 ) col0 FROM tab0, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to 7786718bd8042022537378d40ec87475
query I rowsort
SELECT ALL tab0.col2 AS col1 FROM tab0, tab0 cor0
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab1, tab1 AS cor0
----
70
query I rowsort
SELECT ALL + - col1 * + cor0.col0 FROM tab0 AS cor0
----
-2064
-3395
-8099
query I rowsort
SELECT - + col2 + - 31 * - cor0.col2 AS col2 FROM tab1 AS cor0
----
1620
1710
2880
query I rowsort
SELECT ALL + col2 * col0 * 35 + col0 FROM tab0 AS cor0
----
1260
255519
27744
query I rowsort
SELECT DISTINCT - col2 + 64 FROM tab1 AS cor0
----
-32
10
7
query I rowsort
SELECT ALL + col2 * + 40 + 42 - + col1 AS col2 FROM tab2 AS cor0
----
1023
1091
1545
onlyif mysql # use DIV operator for integer division
query I rowsort label-8440
SELECT ALL + + 97 * + col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
97
97
97
skipif mysql # not compatible
query I rowsort label-8440
SELECT ALL + + 97 * + col2 / + col2 AS col2 FROM tab0 AS cor0
----
97
97
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8441
SELECT + + col1 + + col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8441
SELECT + + col1 + + col2 / + col1 AS col0 FROM tab0 AS cor0
----
86
91
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - cor0.col1 + + cor0.col2 + col1 col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT ALL + - 78 + - ( col1 ) FROM tab0 AS cor0
----
-164
-169
-175
query I rowsort
SELECT DISTINCT cor0.col1 * - cor0.col2 + ( col0 ) AS col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT ( + col1 ) + + col2 * col2 FROM tab0 AS cor0
----
1175
6815
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * + col2 + cor0.col0 col1 FROM tab1 cor0
----
-1168
-1401
-506
query I rowsort
SELECT - cor0.col1 * - col2 + + 99 + 55 AS col0 FROM tab2 AS cor0
----
1688
800
991
query I rowsort
SELECT + - col1 * + col1 + - col0 + 74 AS col1 FROM tab2 AS cor0
----
-294
-3485
-894
query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 FROM tab0 AS cor0
----
-1065
-6635
34
query I rowsort
SELECT tab2.col0 - tab2.col0 AS col2 FROM tab2
----
0
0
0
query I rowsort
SELECT ALL + col2 + - tab1.col2 * + col0 AS col2 FROM tab1
----
-108
-3591
-7584
query I rowsort
SELECT ALL tab2.col1 + + col2 + col0 FROM tab2
----
134
163
65
onlyif mysql # use DIV operator for integer division
query I rowsort label-8453
SELECT ALL + col1 DIV col0 + col2 DIV - 55 AS col0 FROM tab1
----
-1
-1
8
skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL + col1 / col0 + col2 / - 55 AS col0 FROM tab1
----
-1
-1
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8454
SELECT col1 DIV - 42 FROM tab2 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-8454
SELECT col1 / - 42 FROM tab2 AS cor0
----
-1
0
0
query I rowsort
SELECT + - col0 + + col0 + 12 FROM tab0 AS cor0
----
12
12
12
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 62 * + tab1.col2 + + col2 col0 FROM tab1
----
3402
3591
6048
query I rowsort
SELECT col1 * + col1 + 17 FROM tab2
----
306
3498
978
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + 63 + col2 col0 FROM tab2 AS cor0
----
-1939
-2901
-99
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8459
SELECT ALL col1 + + col0 * CAST( NULL AS SIGNED ) * 48 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8459
SELECT ALL col1 + + col0 * CAST ( NULL AS INTEGER ) * 48 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 17 col0 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 28cd5b4c959cb41fbc56389ab43d167e
query I rowsort
SELECT ALL + ( - 65 ) FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 4ca93c42a91c7dff917e7b7090ba9e57
query I rowsort
SELECT ALL + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 366ec539af0f37bd1519bc568f3d6775
query I rowsort
SELECT DISTINCT - - 35 + - cor0.col2 * - col1 FROM tab2 AS cor0
----
1569
681
872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 25 col2 FROM tab0 AS cor0
----
107
26
58
query I rowsort
SELECT + ( - col0 ) + - col1 FROM tab1 AS cor0
----
-29
-74
-93
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) + col2 - col0 col2 FROM tab2 AS cor0
----
-7
-78
-79
query I rowsort
SELECT + 71 * - col0 AS col2 FROM tab1 AS cor0
----
-213
-4544
-5680
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 - col0 + ( tab1.col1 ) FROM tab1
----
-54
-67
23
query I rowsort
SELECT ALL + col2 * ( + col0 + + col1 ) AS col0 FROM tab2
----
1026
3562
3648
query I rowsort
SELECT DISTINCT 60 AS col0 FROM tab2, tab2 cor0
----
60
query I rowsort
SELECT ALL + col2 * ( - col2 ) + - col0 AS col0 FROM tab1
----
-2919
-3313
-9296
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8473
SELECT + col1 * + CAST( NULL AS SIGNED ) - col1 * col1 * + col0 col2 FROM tab0 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8473
SELECT + col1 * + CAST ( NULL AS INTEGER ) - col1 * col1 * + col0 col2 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8474
SELECT ALL + col0 * col1 + + 48 DIV col1 FROM tab2 AS cor0
----
1345
218
4602
skipif mysql # not compatible
query I rowsort label-8474
SELECT ALL + col0 * col1 + + 48 / col1 FROM tab2 AS cor0
----
1345
218
4602
query I rowsort
SELECT DISTINCT - - col0 - ( - col1 + - col0 ) * 57 AS col1 FROM tab1 cor0
----
1656
4282
5381
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 4 col2 FROM tab0 AS cor0
----
-132
-328
-4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 21 col2 FROM tab1 AS cor0
----
31
34
47
query I rowsort
SELECT ALL - cor1.col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to c3ebf1695ca74567bdc173dbe15186a8
query I rowsort
SELECT ALL - col0 + 72 FROM tab0 AS cor0
----
-17
37
48
query I rowsort
SELECT - col0 + cor0.col1 * col1 FROM tab2 AS cor0
----
210
3403
954
query I rowsort
SELECT col0 * + col2 * + col2 AS col1 FROM tab0 AS cor0
----
26136
35
598436
query I rowsort
SELECT + col0 + - 99 AS col2 FROM tab1 AS cor0
----
-19
-35
-96
query I rowsort
SELECT 10 + - col2 FROM tab1 AS cor0
----
-44
-47
-86
query I rowsort
SELECT + 41 * - ( - col0 ) FROM tab0 AS cor0
----
1435
3649
984
onlyif mysql # use DIV operator for integer division
query I rowsort label-8485
SELECT DISTINCT - cor0.col0 + col2 DIV col1 + 40 col2 FROM tab1 AS cor0
----
-19
-33
39
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8485
SELECT DISTINCT - cor0.col0 + col2 / col1 + 40 col2 FROM tab1 AS cor0
----
-19
-33
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8486
SELECT DISTINCT + ( 37 ) - cor0.col0 DIV + col1 FROM tab1 AS cor0
----
31
37
skipif mysql # not compatible
query I rowsort label-8486
SELECT DISTINCT + ( 37 ) - cor0.col0 / + col1 FROM tab1 AS cor0
----
31
37
query I rowsort
SELECT DISTINCT - 47 + + col1 FROM tab2 AS cor0
----
-16
-30
12
query I rowsort
SELECT ALL + 47 - 89 * + col0 FROM tab0 AS cor0
----
-2089
-3068
-7874
query I rowsort
SELECT DISTINCT 76 * col2 FROM tab1 AS cor0
----
4104
4332
7296
query I rowsort
SELECT + 97 * ( col0 + + col0 ) * col0 AS col2 FROM tab1 AS cor0
----
1241600
1746
794624
onlyif mysql # use DIV operator for integer division
query I rowsort label-8491
SELECT ALL - 82 DIV + 85 + col0 FROM tab1 cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL - 82 / + 85 + col0 FROM tab1 cor0
----
3
64
80
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 * - 36 + + col2 col2 FROM tab2
----
-1737
-218998
-224638
query I rowsort
SELECT - cor0.col0 * 74 FROM tab0 AS cor0
----
-1776
-2590
-6586
query I rowsort
SELECT tab0.col1 * col1 + col2 AS col0 FROM tab0
----
7429
8363
9410
query I rowsort
SELECT ALL 68 + - 10 + - col1 AS col0 FROM tab0
----
-28
-33
-39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8496
SELECT 18 * 27 DIV col1 + col1 DIV + col1 + + col2 * + 50 FROM tab1 AS cor0
----
2719
2899
4838
skipif mysql # not compatible
query I rowsort label-8496
SELECT 18 * 27 / col1 + col1 / + col1 + + col2 * + 50 FROM tab1 AS cor0
----
2719
2899
4838
query I rowsort
SELECT + + ( - ( - cor0.col0 ) ) FROM tab2 AS cor0
----
7
78
79
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 67 col1 FROM tab0 AS cor0
----
-32
-43
22
query I rowsort
SELECT ( + cor0.col2 ) * + col2 AS col1 FROM tab0 AS cor0
----
1
1089
6724
query I rowsort
SELECT DISTINCT - 15 * + col0 + cor0.col0 FROM tab2 AS cor0
----
-1092
-1106
-98
query I rowsort
SELECT + col2 * cor0.col0 + cor0.col1 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT DISTINCT + 41 * - col0 AS col2 FROM tab2 AS cor0
----
-287
-3198
-3239
query I rowsort
SELECT ALL 35 + cor0.col2 FROM tab1 AS cor0
----
131
89
92
query I rowsort
SELECT ( col0 ) + + 18 AS col0 FROM tab1 AS cor0
----
21
82
98
query I rowsort
SELECT - tab2.col1 * cor1.col1 * 59 AS col0 FROM tab2, tab2 AS cor0, tab1 AS cor1
----
27 values hashing to bc052d3e474045ed810b75f9aeb01a91
query I rowsort
SELECT ALL - ( col1 + - col0 ) AS col1 FROM tab2
----
-24
19
62
query I rowsort
SELECT + + col2 + ( 45 ) AS col2 FROM tab2 AS cor0
----
71
72
83
query I rowsort
SELECT ALL 77 * col1 AS col2 FROM tab2
----
1309
2387
4543
query I rowsort
SELECT ( col2 + 13 ) AS col2 FROM tab1
----
109
67
70
query I rowsort
SELECT ALL - 63 * tab1.col0 FROM tab1
----
-189
-4032
-5040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8511
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
NULL
skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1, tab0 AS cor0, tab1 cor1
----
NULL
query I rowsort
SELECT DISTINCT + + cor1.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24
35
89
query I rowsort
SELECT tab1.col0 + - 34 FROM tab1, tab2 AS cor0
----
9 values hashing to f15b10bad40db20faa5588ba4eecc7f1
query I rowsort
SELECT - col2 - 54 * cor0.col1 FROM tab0 AS cor0
----
-4677
-4996
-5239
query I rowsort
SELECT - - col0 + - 16 FROM tab2 AS cor0
----
-9
62
63
query I rowsort
SELECT + col2 + 37 * col0 * - col0 - - ( + 23 * col2 ) AS col2 FROM tab2 cor0
----
-1165
-224484
-230005
query I rowsort
SELECT DISTINCT + 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
32
query I rowsort
SELECT cor0.col1 FROM tab0 AS cor0 CROSS JOIN tab0, tab0 cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT ALL - col2 + - col1 * 96 FROM tab0 cor0
----
-8289
-8818
-9313
query I rowsort
SELECT + 16 * + col2 FROM tab2 cor0
----
416
432
608
query I rowsort
SELECT + + cor0.col2 * cor0.col2 * ( + cor0.col0 ) FROM tab2 AS cor0
----
114076
5103
52728
query I rowsort
SELECT ALL - col1 + - col0 * + 58 * - col2 + + col0 AS col0 FROM tab0 cor0
----
1968
423282
45874
query I rowsort
SELECT DISTINCT - 67 * cor0.col0 FROM tab2 AS cor0
----
-469
-5226
-5293
query I rowsort
SELECT DISTINCT + cor1.col1 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
17
31
59
onlyif mysql # use DIV operator for integer division
query I rowsort label-8525
SELECT ALL col0 DIV + col0 AS col2 FROM tab1
----
1
1
1
skipif mysql # not compatible
query I rowsort label-8525
SELECT ALL col0 / + col0 AS col2 FROM tab1
----
1
1
1
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8526
SELECT - CAST( 57 AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
skipif mysql # not compatible
query I rowsort label-8526
SELECT - CAST ( 57 AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b
query I rowsort
SELECT 33 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5
query I rowsort
SELECT ALL + + ( - col0 ) * + col2 AS col2 FROM tab2 AS cor0
----
-189
-2028
-3002
query I rowsort
SELECT DISTINCT - + 55 * - col2 AS col1 FROM tab1 cor0
----
2970
3135
5280
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT + + col2 + + 78 FROM tab1 AS cor0
----
132
135
174
query I rowsort
SELECT ALL + cor0.col0 FROM tab1 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab2 cor2, tab1 AS cor3
----
243 values hashing to 63f734facb33901524f6f2c799118db4
query I rowsort
SELECT + 44 AS col2 FROM tab1
----
44
44
44
query I rowsort
SELECT cor1.col0 * cor0.col1 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to b6acab70a8764f2ad4b9f9f8e9265ffe
query I rowsort
SELECT ALL + ( - col2 ) + + col2 FROM tab2
----
0
0
0
query I rowsort
SELECT + ( - 74 ) + col2 FROM tab2 cor0
----
-36
-47
-48
query I rowsort
SELECT - - col1 * col1 + - col1 * - cor0.col0 AS col1 FROM tab1 AS cor0
----
1209
740
754
query I rowsort
SELECT col2 * cor0.col2 + col1 FROM tab2 AS cor0
----
1461
735
760
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8539
SELECT ALL CAST( NULL AS DECIMAL ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8539
SELECT ALL CAST ( NULL AS REAL ) + col2 AS col1 FROM tab2
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT 63 * ( col2 ) FROM tab0 AS cor0
----
2079
5166
63
query I rowsort
SELECT - col0 + - col0 * + cor0.col2 FROM tab2 AS cor0
----
-196
-2106
-3081
query I rowsort
SELECT ALL - 37 + 40 * + cor0.col0 + + 53 * 18 AS col2 FROM tab0 AS cor0
----
1877
2317
4477
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * col1 + - col2 col1 FROM tab1 cor0
----
43
622
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8544
SELECT DISTINCT + - col2 - 66 * col0 DIV 49 AS col2 FROM tab2 AS cor0
----
-131
-144
-36
skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + - col2 - 66 * col0 / 49 AS col2 FROM tab2 AS cor0
----
-131
-144
-36
query I rowsort
SELECT col2 + - 93 AS col1 FROM tab2 AS cor0
----
-55
-66
-67
query I rowsort
SELECT cor0.col1 + - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - 35 + col0 AS col1 FROM tab0 AS cor0
----
-11
0
54
query I rowsort
SELECT - 96 + - col0 AS col0 FROM tab1
----
-160
-176
-99
query I rowsort
SELECT ALL + + col1 + col0 - - cor0.col0 AS col0 FROM tab1 AS cor0
----
138
173
32
query I rowsort
SELECT + ( + cor0.col0 ) + - col2 AS col2 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT ALL + tab0.col1 + col0 * - col2 AS col0 FROM tab0
----
-706
-7207
62
onlyif mysql # use DIV operator for integer division
query I rowsort label-8552
SELECT ALL col0 + col0 + col2 DIV col2 FROM tab1
----
129
161
7
skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL col0 + col0 + col2 / col2 FROM tab1
----
129
161
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8553
SELECT col0 + 89 + - 54 DIV tab1.col1 AS col0 FROM tab1
----
148
165
90
skipif mysql # not compatible
query I rowsort label-8553
SELECT col0 + 89 + - 54 / tab1.col1 AS col0 FROM tab1
----
148
165
90
query I rowsort
SELECT DISTINCT col2 + + col1 * col1 * col1 AS col2 FROM tab0 AS cor0
----
636089
753653
912674
query I rowsort
SELECT col1 * - 6 AS col0 FROM tab2 AS cor0
----
-102
-186
-354
query I rowsort
SELECT - col1 + - col2 * - cor0.col1 AS col1 FROM tab0 AS cor0
----
0
2752
7371
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * col1 col0 FROM tab1 AS cor0
----
1170
2340
900
onlyif mysql # use DIV operator for integer division
query I rowsort label-8558
SELECT - - col1 DIV + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-8558
SELECT - - col1 / + cor0.col0 AS col2 FROM tab2 AS cor0
----
0
0
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8559
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col0 FROM tab0 cor0
----
35
7298
792
skipif mysql # not compatible
query I rowsort label-8559
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col0 FROM tab0 cor0
----
35
7298
792
query I rowsort
SELECT DISTINCT - col0 * col0 + - cor0.col0 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT ALL - col1 * col2 + col0 * + col2 FROM tab1 AS cor0
----
-1242
3078
6432
query I rowsort
SELECT ( - col2 ) * cor0.col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8563
SELECT col2 DIV - 23 FROM tab0
----
-1
-3
0
skipif mysql # not compatible
query I rowsort label-8563
SELECT col2 / - 23 FROM tab0
----
-1
-3
0
query I rowsort
SELECT - - ( col1 ) * col1 + - cor0.col2 FROM tab0 AS cor0
----
7363
8199
9408
query I rowsort
SELECT ALL + col0 + 44 * col2 AS col0 FROM tab0 AS cor0
----
1476
3697
79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8566
SELECT + cor0.col2 + + ( col2 ) * CAST( + 74 AS SIGNED ) FROM tab2 AS cor0
----
1950
2025
2850
skipif mysql # not compatible
query I rowsort label-8566
SELECT + cor0.col2 + + ( col2 ) * CAST ( + 74 AS INTEGER ) FROM tab2 AS cor0
----
1950
2025
2850
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 ALL 4 * ( col1 ) FROM tab2 AS cor0
----
124
236
68
query I rowsort
SELECT col0 * + 7 AS col1 FROM tab1
----
21
448
560
onlyif mysql # use DIV operator for integer division
query I rowsort label-8570
SELECT col1 * col0 - col2 DIV col0 FROM tab0
----
2063
3395
8099
skipif mysql # not compatible
query I rowsort label-8570
SELECT col1 * col0 - col2 / col0 FROM tab0
----
2063
3395
8099
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab2.col1 + 0 + col2 col2 FROM tab2
----
55
58
85
query I rowsort
SELECT ALL + col0 - ( col1 * col0 ) AS col0 FROM tab0
----
-2040
-3360
-8010
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8573
SELECT col2 * + CAST( col0 AS SIGNED ) - col2 * - tab1.col1 FROM tab1
----
1566
4218
8928
skipif mysql # not compatible
query I rowsort label-8573
SELECT col2 * + CAST ( col0 AS INTEGER ) - col2 * - tab1.col1 FROM tab1
----
1566
4218
8928
query I rowsort
SELECT DISTINCT col2 + + col1 * + tab2.col0 AS col1 FROM tab2
----
1381
244
4628
query I rowsort
SELECT + col2 * 3 + 73 * cor0.col1 FROM tab2 AS cor0
----
1355
2344
4385
query I rowsort
SELECT + col0 + - col2 * + 76 FROM tab1
----
-4101
-4268
-7216
query I rowsort
SELECT + col2 * ( - col1 ) + + col1 * col2 FROM tab1
----
0
0
0
query I rowsort
SELECT DISTINCT - cor0.col2 + - ( ( col0 ) ) * 17 AS col0 FROM tab0 AS cor0
----
-1595
-441
-596
query I rowsort
SELECT - col2 + - 45 AS col1 FROM tab2 AS cor0
----
-71
-72
-83
query I rowsort
SELECT ALL - + col2 + col0 * col0 FROM tab2 AS cor0
----
22
6058
6203
query I rowsort
SELECT ALL col0 * ( + 1 ) AS col1 FROM tab1
----
3
64
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8582
SELECT ALL cor0.col1 + CAST( NULL AS SIGNED ) + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL cor0.col1 + CAST ( NULL AS INTEGER ) + 62 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col0 - + col2 FROM tab1
----
-16
-51
7
query I rowsort
SELECT + col2 + col0 * tab1.col2 AS col0 FROM tab1
----
216
3705
7776
query I rowsort
SELECT tab0.col1 + 27 * - col1 FROM tab0
----
-2236
-2366
-2522
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8586
SELECT + CAST( NULL AS SIGNED ) + 11 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8586
SELECT + CAST ( NULL AS INTEGER ) + 11 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col1 * 13 - - col2 AS col1 FROM tab2
----
259
430
793
query I rowsort
SELECT + 9 * + 36 FROM tab0 cor0
----
324
324
324
query I rowsort
SELECT - col1 * cor0.col1 + 24 FROM tab0 AS cor0
----
-7372
-8257
-9385
query I rowsort
SELECT DISTINCT 29 + col1 FROM tab2 AS cor0
----
46
60
88
query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 - col2 * - cor0.col0 FROM tab2 AS cor0
----
-2652
-35
1580
query I rowsort
SELECT + 31 * col0 * - 25 + col1 * col0 FROM tab2 cor0
----
-5208
-55848
-59882
query I rowsort
SELECT ALL + 39 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
1014
390
507
query I rowsort
SELECT - col1 * col2 + 86 AS col0 FROM tab0 cor0
----
-11
-2752
-7376
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 + ( + ( cor0.col1 ) ) AS col1 FROM tab1 AS cor0
----
106
122
77
query I rowsort
SELECT DISTINCT - 43 + + cor0.col2 FROM tab0 AS cor0
----
-10
-42
39
query I rowsort
SELECT - + col2 * - col0 - + ( - col1 * + col0 ) FROM tab1 AS cor0
----
240
4288
8720
onlyif mysql # use DIV operator for integer division
query I rowsort label-8598
SELECT - 46 DIV tab2.col1 AS col0 FROM tab2
----
-1
-2
0
skipif mysql # not compatible
query I rowsort label-8598
SELECT - 46 / tab2.col1 AS col0 FROM tab2
----
-1
-2
0
query I rowsort
SELECT + col0 * col2 + - 99 * tab0.col0 - - col2 FROM tab0
----
-1431
-1551
-3429
query I rowsort
SELECT ALL col1 * col2 * + 52 FROM tab0
----
147576
388024
5044
query I rowsort
SELECT - 27 * + cor0.col2 FROM tab2 AS cor0
----
-1026
-702
-729
query I rowsort
SELECT + cor0.col1 * col1 - + 79 AS col2 FROM tab1 AS cor0
----
21
597
90
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 15 col0 FROM tab1 AS cor0
----
1200
45
960
query I rowsort
SELECT + col0 * 4 FROM tab1 AS cor0
----
12
256
320
onlyif mysql # use DIV operator for integer division
query I rowsort label-8605
SELECT ALL col0 * + tab1.col2 + ( ( - col0 ) ) DIV 27 FROM tab1
----
162
3646
7678
skipif mysql # not compatible
query I rowsort label-8605
SELECT ALL col0 * + tab1.col2 + ( ( - col0 ) ) / 27 FROM tab1
----
162
3646
7678
query I rowsort
SELECT DISTINCT - cor0.col2 + ( - col1 ) - - col1 AS col0 FROM tab0 AS cor0
----
-1
-33
-82
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col0 col2 FROM tab1 AS cor0
----
-128
-160
-6
query I rowsort
SELECT DISTINCT + col2 + ( + col2 ) + + col0 * 96 AS col2 FROM tab1 AS cor0
----
396
6258
7872
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + 67 col1 FROM tab2 cor0
----
105
93
94
query I rowsort
SELECT + - ( col1 ) * cor0.col2 AS col2 FROM tab2 AS cor0
----
-1534
-646
-837
query I rowsort
SELECT - col1 + 93 AS col2 FROM tab2 cor0
----
34
62
76
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8612
SELECT DISTINCT - CAST( - col2 AS SIGNED ) col1 FROM tab2 AS cor0
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8612
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) col1 FROM tab2 AS cor0
----
26
27
38
query I rowsort
SELECT - - 87 AS col0 FROM tab2 AS cor0
----
87
87
87
query I rowsort
SELECT 83 + col0 FROM tab1 AS cor0
----
147
163
86
query I rowsort
SELECT + ( + 95 ) AS col1 FROM tab2 AS cor0
----
95
95
95
query I rowsort
SELECT - + 34 * + 25 AS col2 FROM tab1 AS cor0
----
-850
-850
-850
query I rowsort
SELECT 35 + 55 * - col0 AS col1 FROM tab2 AS cor0
----
-350
-4255
-4310
query I rowsort
SELECT ALL + col2 * 39 AS col2 FROM tab0
----
1287
3198
39
query I rowsort
SELECT - 31 AS col0 FROM tab2, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to c6c8eebeb1a59f7c046402e25630c0ac
query I rowsort
SELECT DISTINCT - col2 + - col1 + 67 * col2 FROM tab0
----
-31
2092
5321
query I rowsort
SELECT ALL - tab1.col1 * + col2 + tab1.col1 * - col2 FROM tab1
----
-1140
-2496
-2808
query I rowsort
SELECT ALL - col1 + ( - col0 ) AS col2 FROM tab2
----
-137
-38
-96
query I rowsort
SELECT + col0 + 24 FROM tab0
----
113
48
59
query I rowsort
SELECT ALL - cor0.col2 - cor0.col1 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT DISTINCT + - col1 * 40 AS col0 FROM tab1 AS cor0
----
-1040
-400
-520
query I rowsort
SELECT col1 * - 94 + col1 * col2 FROM tab2 AS cor0
----
-2077
-4012
-952
query I rowsort
SELECT + col0 + - 41 FROM tab1 AS cor0
----
-38
23
39
query I rowsort
SELECT + - col2 + - ( col1 ) AS col0 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT ALL - col0 * + col2 - + col1 * + col2 AS col0 FROM tab0 AS cor0
----
-132
-14760
-3630
query I rowsort
SELECT + col2 + - col2 * ( - col2 ) * + col0 AS col2 FROM tab2 AS cor0
----
114114
5130
52754
query I rowsort
SELECT ALL - col1 + + col2 * - col0 FROM tab1 AS cor0
----
-188
-3658
-7693
query I rowsort
SELECT DISTINCT - - cor0.col2 + + cor0.col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT DISTINCT + 64 + col0 + col2 AS col2 FROM tab0 cor0
----
100
121
235
query I rowsort
SELECT - cor0.col1 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT ALL - - 17 * col2 + - cor0.col1 AS col2 FROM tab1 AS cor0
----
1619
892
959
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col1 ) + - cor0.col2 col1 FROM tab1 AS cor0
----
-28
-47
-83
query I rowsort
SELECT col2 + 17 * col1 FROM tab2 AS cor0
----
1029
327
554
onlyif mysql # use DIV operator for integer division
query I rowsort label-8638
SELECT DISTINCT + - ( - col2 ) DIV + col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8638
SELECT DISTINCT + - ( - col2 ) / + col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT ALL + - col0 * - 40 AS col1 FROM tab2 AS cor0
----
280
3120
3160
query I rowsort
SELECT + 12 AS col0 FROM tab1 AS cor0
----
12
12
12
query I rowsort
SELECT ALL - - ( cor0.col2 ) * col1 + 41 FROM tab2 AS cor0
----
1575
687
878
query I rowsort
SELECT DISTINCT - col0 * + col2 - + col2 * ( - col0 ) FROM tab0 cor0
----
0
query I rowsort
SELECT DISTINCT - - col0 * - 22 + - col1 FROM tab1 AS cor0
----
-1418
-1773
-92
query I rowsort
SELECT + - ( 39 ) AS col2 FROM tab2 AS cor0
----
-39
-39
-39
query I rowsort
SELECT ALL - - col1 + - col0 - col0 FROM tab2 AS cor0
----
-141
-97
17
query I rowsort
SELECT - ( - cor0.col1 ) * - col1 + + 63 FROM tab1 AS cor0
----
-106
-37
-613
query I rowsort
SELECT + cor0.col1 * 78 AS col0 FROM tab0, tab2, tab2 AS cor0
----
27 values hashing to a236b70a905996e346a48af540ce3691
onlyif mysql # use DIV operator for integer division
query I rowsort label-8648
SELECT ALL - col2 DIV - 46 + col2 AS col1 FROM tab2
----
26
27
38
skipif mysql # not compatible
query I rowsort label-8648
SELECT ALL - col2 / - 46 + col2 AS col1 FROM tab2
----
26
27
38
onlyif mysql # use DIV operator for integer division
query I rowsort label-8649
SELECT col2 + 49 DIV - col1 FROM tab1
----
53
53
93
skipif mysql # not compatible
query I rowsort label-8649
SELECT col2 + 49 / - col1 FROM tab1
----
53
53
93
query I rowsort
SELECT 55 AS col1 FROM tab0, tab0 cor0, tab1 AS cor1
----
27 values hashing to 832128adb1ddc65c3105e29cc2c8b3a3
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8651
SELECT DISTINCT CAST( ( col0 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3
64
80
skipif mysql # not compatible
query I rowsort label-8651
SELECT DISTINCT CAST ( ( col0 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3
64
80
query I rowsort
SELECT ALL + col0 + 43 * + cor0.col0 AS col0 FROM tab1 AS cor0
----
132
2816
3520
query I rowsort
SELECT ALL - 2 + col1 FROM tab1 AS cor0
----
11
24
8
query I rowsort
SELECT ( 70 ) * + col0 FROM tab0 AS cor0
----
1680
2450
6230
query I rowsort
SELECT DISTINCT + + ( + col1 ) AS col1 FROM tab1 cor0
----
10
13
26
onlyif mysql # use DIV operator for integer division
query I rowsort label-8656
SELECT DISTINCT - - 97 * + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-97
skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT - - 97 * + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-97
onlyif mysql # use DIV operator for integer division
query I rowsort label-8657
SELECT - - 39 - col0 * 39 DIV + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
25
29
skipif mysql # not compatible
query I rowsort label-8657
SELECT - - 39 - col0 * 39 / + cor0.col1 AS col0 FROM tab0 AS cor0
----
1
25
29
query I rowsort
SELECT - col0 + col0 + - 17 AS col1 FROM tab0 AS cor0
----
-17
-17
-17
onlyif mysql # use DIV operator for integer division
query I rowsort label-8659
SELECT + 59 DIV + col0 + - ( + col1 ) FROM tab0 AS cor0
----
-84
-91
-96
skipif mysql # not compatible
query I rowsort label-8659
SELECT + 59 / + col0 + - ( + col1 ) FROM tab0 AS cor0
----
-84
-91
-96
query I rowsort
SELECT - tab1.col0 * tab1.col1 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 0cea1be551fb4bd88f4da0b7d676ee2f
query I rowsort
SELECT ALL + cor0.col2 AS col0 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7f4a9bf24d64833706dfbdd0baf49d79
query I rowsort
SELECT ALL - tab1.col1 * ( col1 + ( - 49 ) ) FROM tab1
----
390
468
598
query I rowsort
SELECT DISTINCT - cor0.col0 + col2 * - 25 FROM tab1 AS cor0
----
-1353
-1489
-2480
query I rowsort
SELECT DISTINCT + + 39 AS col0 FROM tab1 cor0
----
39
query I rowsort
SELECT col0 * col2 * - ( col0 ) FROM tab0 AS cor0
----
-1225
-19008
-649522
query I rowsort
SELECT ALL + cor0.col2 * 86 + col2 FROM tab0 AS cor0
----
2871
7134
87
onlyif mysql # use DIV operator for integer division
query I rowsort label-8667
SELECT DISTINCT col2 DIV + col1 + + col0 * - 11 AS col1 FROM tab1
----
-31
-699
-873
skipif mysql # not compatible
query I rowsort label-8667
SELECT DISTINCT col2 / + col1 + + col0 * - 11 AS col1 FROM tab1
----
-31
-699
-873
query I rowsort
SELECT col0 * tab2.col2 - + tab2.col2 FROM tab2
----
162
2002
2964
query I rowsort
SELECT DISTINCT + - 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-77
query I rowsort
SELECT ALL col1 * - col2 - col2 * ( + col0 ) AS col1 FROM tab1
----
-1566
-4218
-8928
query I rowsort
SELECT DISTINCT + col0 * ( col2 ) AS col1 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL - + col1 + + 32 FROM tab0 AS cor0
----
-54
-59
-65
query I rowsort
SELECT + col2 * col1 * col1 + cor0.col0 AS col2 FROM tab2 AS cor0
----
11061
25954
90584
query I rowsort
SELECT + col1 * col2 + col1 * - col0 FROM tab2 AS cor0
----
-3068
-697
620
query I rowsort
SELECT DISTINCT + - col1 * 72 AS col1 FROM tab0 AS cor0
----
-6192
-6552
-6984
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8676
SELECT ALL + - col1 * CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
2838
7462
97
skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + - col1 * CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
2838
7462
97
query I rowsort
SELECT DISTINCT + col1 * col0 + col1 * col1 AS col2 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT - col1 + + cor0.col1 + col2 FROM tab0 AS cor0
----
1
33
82
query I rowsort
SELECT col0 - - 75 FROM tab0 AS cor0
----
110
164
99
query I rowsort
SELECT DISTINCT col1 + - col1 - col1 FROM tab0
----
-86
-91
-97
query I rowsort
SELECT ALL 52 + - col1 AS col0 FROM tab1
----
26
39
42
query I rowsort
SELECT DISTINCT + ( col2 ) + + 88 * 79 FROM tab1
----
7006
7009
7048
query I rowsort
SELECT ALL - col1 * col0 * col2 + + col1 * tab0.col0 * + tab0.col2 + tab0.col1 FROM tab0
----
86
91
97
query I rowsort
SELECT ALL 52 - + col1 AS col1 FROM tab0
----
-34
-39
-45
query I rowsort
SELECT DISTINCT + col2 * + col0 - + col2 FROM tab1
----
108
3591
7584
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8686
SELECT + col2 * + tab2.col0 * CAST( - col0 * - col2 AS SIGNED ) FROM tab2
----
35721
4112784
9012004
skipif mysql # not compatible
query I rowsort label-8686
SELECT + col2 * + tab2.col0 * CAST ( - col0 * - col2 AS INTEGER ) FROM tab2
----
35721
4112784
9012004
query I rowsort
SELECT - tab2.col0 * col2 * + 47 + col2 - + col1 FROM tab2
----
-141073
-8887
-95349
query I rowsort
SELECT DISTINCT col1 + col2 * - col1 AS col0 FROM tab1
----
-1235
-1378
-560
query I rowsort
SELECT col0 * + 63 AS col0 FROM tab1
----
189
4032
5040
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8690
SELECT DISTINCT col0 + - CAST( NULL AS SIGNED ) * 87 AS col2 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-8690
SELECT DISTINCT col0 + - CAST ( NULL AS INTEGER ) * 87 AS col2 FROM tab1
----
NULL
query I rowsort
SELECT - col0 + 55 * - col0 FROM tab1
----
-168
-3584
-4480
query I rowsort
SELECT DISTINCT + col1 * col2 * - col0 FROM tab2 AS cor0
----
-119652
-51034
-5859
query I rowsort
SELECT + col0 + - 56 AS col0 FROM tab2 cor0
----
-49
22
23
query I rowsort
SELECT DISTINCT - + cor0.col0 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-7
-78
-79
query I rowsort
SELECT ALL - - col1 * col1 + col1 * 74 FROM tab2 AS cor0
----
1547
3255
7847
query I rowsort
SELECT + cor0.col2 + 76 FROM tab2 AS cor0
----
102
103
114
query I rowsort
SELECT DISTINCT - col1 + col0 + col2 AS col0 FROM tab1 AS cor0
----
111
163
31
query I rowsort
SELECT DISTINCT - cor0.col2 * col1 AS col1 FROM tab1 AS cor0
----
-1248
-1404
-570
query I rowsort
SELECT DISTINCT + - col0 * col1 * ( col2 * col2 ) + - col0 FROM tab0 AS cor0
----
-2247720
-3430
-54457765
query I rowsort
SELECT - col1 * + col1 + cor0.col1 AS col1 FROM tab0 AS cor0
----
-7310
-8190
-9312
query I rowsort
SELECT DISTINCT + 77 + col2 FROM tab2
----
103
104
115
query I rowsort
SELECT ALL col2 + - tab1.col0 * col1 FROM tab1
----
-24
-583
-944
query I rowsort
SELECT ALL col2 * - tab2.col0 * + col0 + - 10 * - col0 FROM tab2
----
-1253
-157404
-236368
onlyif mysql # use DIV operator for integer division
query I rowsort label-8704
SELECT DISTINCT - ( col1 ) DIV col1 FROM tab2 AS cor0
----
-1
skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT - ( col1 ) / col1 FROM tab2 AS cor0
----
-1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8705
SELECT ALL - col2 DIV col1 + + ( col0 + + col0 ) AS col0 FROM tab1 AS cor0
----
123
153
4
skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - col2 / col1 + + ( col0 + + col0 ) AS col0 FROM tab1 AS cor0
----
123
153
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col2 FROM tab2 cor0
----
26
26
26
query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1 cor0
----
80
query I rowsort
SELECT + col2 * col2 + - col2 - ( + cor0.col2 ) FROM tab0 AS cor0
----
-1
1023
6560
query I rowsort
SELECT - + cor0.col1 * col0 - col0 * col1 FROM tab1 AS cor0
----
-1280
-156
-2080
query I rowsort
SELECT - col2 * 86 AS col0 FROM tab1 cor0
----
-4644
-4902
-8256
query I rowsort
SELECT ( - col2 ) + - col1 AS col1 FROM tab1 AS cor0
----
-109
-67
-80
query I rowsort
SELECT - ( col2 ) + col2 - - 96 * ( - col0 ) FROM tab1 AS cor0
----
-288
-6144
-7680
query I rowsort
SELECT 30 + + cor0.col0 * col2 * + 17 FROM tab0 AS cor0
----
124096
13494
625
query I rowsort
SELECT + + cor0.col1 + - cor0.col0 FROM tab1 AS cor0
----
-54
-67
23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 56 + col2 * cor0.col1 col1 FROM tab1 AS cor0
----
1304
1460
626
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( col1 ) + + col0 ) col0 FROM tab1
----
-29
-74
-93
query I rowsort
SELECT col1 * + ( + ( col2 ) + col1 ) FROM tab2 AS cor0
----
1798
5015
935
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + ( + col0 * + col0 ) col0 FROM tab0 AS cor0
----
13824
42875
704969
query I rowsort
SELECT - col1 + + cor0.col0 * + col0 FROM tab2 AS cor0
----
18
6025
6224
query I rowsort
SELECT - + col0 + col2 * 95 FROM tab0 AS cor0
----
3111
60
7701
query I rowsort
SELECT ALL 45 * cor0.col1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 251f303ab224b8b2300c62b3bb8b1f2d
query I rowsort
SELECT - 58 + cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2adeeaed82a7ff23e972e117862fd698
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8723
SELECT DISTINCT + col2 + + CAST( 73 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
127
130
169
skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT + col2 + + CAST ( 73 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
127
130
169
query I rowsort
SELECT ALL + col0 + - col0 * + col1 AS col2 FROM tab2 AS cor0
----
-1264
-210
-4524
query I rowsort
SELECT - col2 * col2 * + col0 FROM tab2 AS cor0
----
-114076
-5103
-52728
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8726
SELECT CAST( + 93 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
93
93
93
skipif mysql # not compatible
query I rowsort label-8726
SELECT CAST ( + 93 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
93
93
93
query I rowsort
SELECT ALL 57 + - col1 * col0 + - 92 * + col0 FROM tab0 AS cor0
----
-16230
-4215
-6558
onlyif mysql # use DIV operator for integer division
query I rowsort label-8728
SELECT DISTINCT col0 DIV ( col0 ) FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-8728
SELECT DISTINCT col0 / ( col0 ) FROM tab0
----
1
query I rowsort
SELECT tab0.col1 - col2 AS col1 FROM tab0
----
53
9
96
onlyif mysql # use DIV operator for integer division
query I rowsort label-8730
SELECT + cor0.col2 DIV col1 AS col1 FROM tab1 AS cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-8730
SELECT + cor0.col2 / col1 AS col1 FROM tab1 AS cor0
----
2
5
7
query I rowsort
SELECT - cor0.col0 * + cor0.col0 FROM tab0 AS cor0
----
-1225
-576
-7921
query I rowsort
SELECT ( + tab1.col0 ) * + 10 FROM tab1
----
30
640
800
query I rowsort
SELECT col1 * - tab2.col1 AS col2 FROM tab2
----
-289
-3481
-961
onlyif mysql # use DIV operator for integer division
query I rowsort label-8734
SELECT cor0.col0 DIV cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c
skipif mysql # not compatible
query I rowsort label-8734
SELECT cor0.col0 / cor0.col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 2ee98119c78288c6cb10711ce24bf26c
onlyif mysql # use DIV operator for integer division
query I rowsort label-8735
SELECT - + 17 DIV cor0.col0 + col1 FROM tab2 AS cor0
----
17
29
59
skipif mysql # not compatible
query I rowsort label-8735
SELECT - + 17 / cor0.col0 + col1 FROM tab2 AS cor0
----
17
29
59
query I rowsort
SELECT + - col0 + 48 * - 9 AS col1 FROM tab2 AS cor0
----
-439
-510
-511
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab2 AS cor2, tab1 AS cor3
----
3645 values hashing to 1b06ddc48fd89ff2b1df6d82072316da
query I rowsort
SELECT - - col2 * 47 + col0 FROM tab2 AS cor0
----
1276
1300
1865
query I rowsort
SELECT DISTINCT - col2 * col2 + + col2 * col2 FROM tab2 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8740
SELECT col1 * 31 + + 81 DIV - col1 FROM tab1 AS cor0
----
302
397
803
skipif mysql # not compatible
query I rowsort label-8740
SELECT col1 * 31 + + 81 / - col1 FROM tab1 AS cor0
----
302
397
803
query I rowsort
SELECT + col2 + - 36 AS col1 FROM tab2 cor0
----
-10
-9
2
query I rowsort
SELECT DISTINCT tab1.col2 - - col0 FROM tab1
----
121
176
57
onlyif mysql # use DIV operator for integer division
query I rowsort label-8743
SELECT col1 * col0 DIV - ( col2 + col1 ) FROM tab0
----
-17
-34
-46
skipif mysql # not compatible
query I rowsort label-8743
SELECT col1 * col0 / - ( col2 + col1 ) FROM tab0
----
-17
-34
-46
onlyif mysql # use DIV operator for integer division
query I rowsort label-8744
SELECT DISTINCT - 27 DIV + col2 - + tab0.col0 FROM tab0
----
-24
-62
-89
skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT - 27 / + col2 - + tab0.col0 FROM tab0
----
-24
-62
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-8745
SELECT - ( col0 ) DIV col2 + col1 FROM tab1 AS cor0
----
13
26
9
skipif mysql # not compatible
query I rowsort label-8745
SELECT - ( col0 ) / col2 + col1 FROM tab1 AS cor0
----
13
26
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8746
SELECT DISTINCT col0 + + col0 * 44 DIV + col2 AS col1 FROM tab1
----
113
116
5
skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT col0 + + col0 * 44 / + col2 AS col1 FROM tab1
----
113
116
5
query I rowsort
SELECT DISTINCT - col2 + ( + col1 ) * col2 AS col2 FROM tab2 AS cor0
----
1508
608
810
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + col1 col1 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + col2 * col1 + - cor0.col1 * col2 FROM tab1 AS cor0
----
-1140
-2496
-2808
query I rowsort
SELECT ALL + col2 + col0 * - col0 FROM tab0 cor0
----
-1224
-543
-7839
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - ( col0 ) + col0 col0 FROM tab0 AS cor0
----
-7209
-768
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8752
SELECT col0 + CAST( 73 AS SIGNED ) AS col0 FROM tab1
----
137
153
76
skipif mysql # not compatible
query I rowsort label-8752
SELECT col0 + CAST ( 73 AS INTEGER ) AS col0 FROM tab1
----
137
153
76
query I rowsort
SELECT - + col1 * col2 + cor0.col1 FROM tab2 AS cor0
----
-1475
-629
-806
onlyif mysql # use DIV operator for integer division
query I rowsort label-8754
SELECT ALL - col1 * - ( - col0 ) DIV - col0 FROM tab0 AS cor0
----
86
91
97
skipif mysql # not compatible
query I rowsort label-8754
SELECT ALL - col1 * - ( - col0 ) / - col0 FROM tab0 AS cor0
----
86
91
97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8755
SELECT DISTINCT + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-8756
SELECT + cor0.col1 + col1 DIV - col1 col2 FROM tab1 AS cor0
----
12
25
9
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8756
SELECT + cor0.col1 + col1 / - col1 col2 FROM tab1 AS cor0
----
12
25
9
query I rowsort
SELECT DISTINCT col2 * - col1 + 48 AS col1 FROM tab1 cor0
----
-1200
-1356
-522
query I rowsort
SELECT cor0.col1 * col0 + - cor0.col0 AS col1 FROM tab0 AS cor0
----
2040
3360
8010
query I rowsort
SELECT DISTINCT + col1 + - ( + col0 ) AS col2 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT ALL - col2 + + col0 * col1 AS col0 FROM tab2 AS cor0
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-8761
SELECT DISTINCT + col0 DIV + 58 AS col1 FROM tab1 AS cor0
----
0
1
skipif mysql # not compatible
query I rowsort label-8761
SELECT DISTINCT + col0 / + 58 AS col1 FROM tab1 AS cor0
----
0
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-8762
SELECT DISTINCT + col0 DIV - 99 FROM tab2 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT + col0 / - 99 FROM tab2 AS cor0
----
0
query I rowsort
SELECT DISTINCT - + col1 * - cor0.col2 * col2 + col2 * cor0.col1 FROM tab1 cor0
----
121056
33060
77220
query I rowsort
SELECT - - col0 * - col1 + col0 AS col1 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL col0 + - 12 * + 86 AS col1 FROM tab1 AS cor0
----
-1029
-952
-968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT tab0.col2 - col0 col2 FROM tab0
----
-34
-7
9
onlyif mysql # use DIV operator for integer division
query I rowsort label-8767
SELECT + tab1.col0 DIV col1 AS col1 FROM tab1
----
0
6
6
skipif mysql # not compatible
query I rowsort label-8767
SELECT + tab1.col0 / col1 AS col1 FROM tab1
----
0
6
6
query I rowsort
SELECT + col1 - - tab2.col1 AS col0 FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----
query I rowsort
SELECT tab0.col2 * tab0.col1 AS col2 FROM tab0
----
2838
7462
97
query I rowsort
SELECT + tab1.col2 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8771
SELECT DISTINCT + 41 DIV col1 AS col0 FROM tab1 AS cor0
----
1
3
4
skipif mysql # not compatible
query I rowsort label-8771
SELECT DISTINCT + 41 / col1 AS col0 FROM tab1 AS cor0
----
1
3
4
query I rowsort
SELECT 94 + col0 - col1 AS col1 FROM tab1 cor0
----
148
161
71
query I rowsort
SELECT col1 * col2 + 46 AS col1 FROM tab1 AS cor0
----
1294
1450
616
query I rowsort
SELECT ALL - - 14 * col2 * col2 FROM tab2 AS cor0
----
10206
20216
9464
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( col2 / + col2 + col1 + col0 * - col2 )
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
query I rowsort
SELECT DISTINCT col1 * + col1 + col1 AS col1 FROM tab1
----
110
182
702
query I rowsort
SELECT DISTINCT - - col2 * + col2 * + 19 AS col2 FROM tab1 AS cor0
----
175104
55404
61731
onlyif mysql # use DIV operator for integer division
query I rowsort label-8778
SELECT col1 DIV + col0 col1 FROM tab0 AS cor0
----
1
2
3
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8778
SELECT col1 / + col0 col1 FROM tab0 AS cor0
----
1
2
3
onlyif mysql # use DIV operator for integer division
query I rowsort label-8779
SELECT DISTINCT - col2 + - col1 DIV col2 + cor0.col1 FROM tab0 cor0
----
-1
51
8
skipif mysql # not compatible
query I rowsort label-8779
SELECT DISTINCT - col2 + - col1 / col2 + cor0.col1 FROM tab0 cor0
----
-1
51
8
onlyif mysql # use DIV operator for integer division
query I rowsort label-8780
SELECT ALL - col2 + + col1 DIV - 54 FROM tab1 AS cor0
----
-54
-57
-96
skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - col2 + + col1 / - 54 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT + col1 * - col2 * col1 AS col2 FROM tab1 cor0
----
-16224
-36504
-5700
query I rowsort
SELECT DISTINCT + + cor0.col1 * col0 AS col2 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT - + 57 + - col0 * col0 FROM tab2 cor0
----
-106
-6141
-6298
query I rowsort
SELECT DISTINCT + + cor0.col2 * + col2 + - 73 AS col2 FROM tab0 AS cor0
----
-72
1016
6651
query I rowsort
SELECT ALL ( cor0.col0 ) + - ( 14 ) AS col0 FROM tab0 AS cor0
----
10
21
75
query I rowsort
SELECT DISTINCT + 88 + col0 - 64 AS col2 FROM tab1
----
104
27
88
query I rowsort
SELECT - col0 + 49 AS col2 FROM tab0 AS cor0
----
-40
14
25
query I rowsort
SELECT - cor0.col0 * - 7 AS col2 FROM tab2 AS cor0
----
49
546
553
query I rowsort
SELECT ALL + cor0.col2 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT ALL - 81 * col0 + col1 AS col0 FROM tab1 cor0
----
-217
-5174
-6467
query I rowsort
SELECT DISTINCT - ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
-2838
-7462
-97
query I rowsort
SELECT + 74 + + col0 AS col0 FROM tab2 AS cor0
----
152
153
81
query I rowsort
SELECT ALL 49 + - col0 FROM tab0 cor0
----
-40
14
25
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8794
SELECT DISTINCT + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-7
-78
-79
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8795
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif mysql # not compatible
query I rowsort label-8795
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
query I rowsort
SELECT 42 * 75 FROM tab2, tab1 AS cor0
----
9 values hashing to cec48f344f3a7cf98f610a1d27e57b05
query I rowsort
SELECT + cor1.col0 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 778b50575a9b91448119ee0ee1a9c44f
query I rowsort
SELECT + 20 FROM tab0, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8799
SELECT DISTINCT tab2.col2 + + CAST( NULL AS SIGNED ) + ( + col2 ) * - col2 col0 FROM tab2
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT tab2.col2 + + CAST ( NULL AS INTEGER ) + ( + col2 ) * - col2 col0 FROM tab2
----
NULL
query I rowsort
SELECT DISTINCT col0 * col0 + col0 + - col0 AS col2 FROM tab2
----
49
6084
6241
query I rowsort
SELECT col0 + 31 AS col0 FROM tab2
----
109
110
38
query I rowsort
SELECT ALL 71 FROM tab0, tab2 cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0
skipif mysql # not compatible
query I rowsort
SELECT + CAST ( 91 AS REAL ) FROM tab2
----
91
91
91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8804
SELECT DISTINCT col0 DIV 42 FROM tab0
----
0
2
skipif mysql # not compatible
query I rowsort label-8804
SELECT DISTINCT col0 / 42 FROM tab0
----
0
2
query I rowsort
SELECT DISTINCT - col0 * cor0.col0 + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ( - 29 ) AS col2 FROM tab0
----
-29
-29
-29
query I rowsort
SELECT DISTINCT + - 8 AS col2 FROM tab2 AS cor0
----
-8
query I rowsort
SELECT ALL - - ( - col1 ) + col0 FROM tab0 AS cor0
----
-2
-62
-62
query I rowsort
SELECT - col0 * 76 + - col0 * ( - cor0.col2 ) FROM tab2 AS cor0
----
-3002
-343
-3900
query I rowsort
SELECT ALL 92 * - tab2.col2 FROM tab2
----
-2392
-2484
-3496
onlyif mysql # use DIV operator for integer division
query I rowsort label-8811
SELECT ALL + - col0 DIV + col2 - + col2 FROM tab1 AS cor0
----
-54
-58
-96
skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL + - col0 / + col2 - + col2 FROM tab1 AS cor0
----
-54
-58
-96
query I rowsort
SELECT DISTINCT - ( col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT + - col1 * col0 + col2 FROM tab0 AS cor0
----
-2031
-3394
-8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-8814
SELECT + col2 DIV col0 + cor0.col2 FROM tab2 AS cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-8814
SELECT + col2 / col0 + cor0.col2 FROM tab2 AS cor0
----
26
30
38
query I rowsort
SELECT ALL - cor0.col0 * + col0 + + col1 AS col2 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT DISTINCT + 11 FROM tab2, tab0 cor0
----
11
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8817
SELECT DISTINCT CAST( NULL AS SIGNED ) * 70 FROM tab0 cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8817
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 70 FROM tab0 cor0
----
NULL
query I rowsort
SELECT ( + cor0.col1 ) * - cor0.col2 FROM tab1 cor0
----
-1248
-1404
-570
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + + col0 col1 FROM tab1 AS cor0
----
104
27
88
query I rowsort
SELECT ALL ( - tab2.col2 ) * col1 FROM tab2
----
-1534
-646
-837
onlyif mysql # use DIV operator for integer division
query I rowsort label-8821
SELECT 79 * - cor0.col0 DIV - col0 + col1 FROM tab1 AS cor0
----
105
89
92
skipif mysql # not compatible
query I rowsort label-8821
SELECT 79 * - cor0.col0 / - col0 + col1 FROM tab1 AS cor0
----
105
89
92
query I rowsort
SELECT + col0 * col0 + col1 * - col1 + col1 FROM tab0 AS cor0
----
-269
-6734
-8087
query I rowsort
SELECT ALL + col0 * + col2 + col2 + - col1 AS col0 FROM tab0 AS cor0
----
-61
7289
739
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 22 col2 FROM tab1
----
1408
1760
66
query I rowsort
SELECT - - ( col1 ) * col0 + col0 FROM tab1 AS cor0
----
1120
704
81
query I rowsort
SELECT - col2 + tab2.col2 AS col1 FROM tab2
----
0
0
0
query I rowsort
SELECT - cor0.col2 + tab0.col1 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to f9d0c27eccc053036cbf8c101ce0fcd7
query I rowsort
SELECT 42 + + col2 AS col0 FROM tab0
----
124
43
75
query I rowsort
SELECT ALL col0 * + ( col0 * col0 ) AS col1 FROM tab2
----
343
474552
493039
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8830
SELECT - CAST( - 88 + - col2 * + col0 AS SIGNED ) FROM tab0
----
123
7386
880
skipif mysql # not compatible
query I rowsort label-8830
SELECT - CAST ( - 88 + - col2 * + col0 AS INTEGER ) FROM tab0
----
123
7386
880
query I rowsort
SELECT ALL 51 * + col2 FROM tab2
----
1326
1377
1938
query I rowsort
SELECT col1 + col1 + - col1 AS col1 FROM tab2 AS cor0
----
17
31
59
query I rowsort
SELECT col1 FROM tab2 WHERE NULL > col2
----
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 > col1 / + col2 + + col1
----
9 values hashing to 8d6692e6d41505c3ad42d919bd9ecd0d
onlyif mysql # use DIV operator for integer division
query I rowsort label-8835
SELECT DISTINCT + col2 DIV + col1 col2 FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8835
SELECT DISTINCT + col2 / + col1 col2 FROM tab0 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8836
SELECT col2 + - col2 DIV col0 FROM tab2
----
24
26
38
skipif mysql # not compatible
query I rowsort label-8836
SELECT col2 + - col2 / col0 FROM tab2
----
24
26
38
query I rowsort
SELECT DISTINCT + col2 - + col1 AS col0 FROM tab1
----
28
47
83
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * + col0 ) BETWEEN NULL AND NULL
----
query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col1 = NULL
----
query I rowsort
SELECT tab2.col0 + + col1 + col0 AS col0 FROM tab2
----
175
215
45
query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( - tab1.col1 )
----
query I rowsort
SELECT DISTINCT + col1 * - col1 * col2 AS col1 FROM tab1
----
-16224
-36504
-5700
query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND - tab2.col0 + - col2
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-8844
SELECT ALL col1 + col0 DIV + col2 AS col2 FROM tab0
----
132
86
92
skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL col1 + col0 / + col2 AS col2 FROM tab0
----
132
86
92
query I rowsort
SELECT ALL + tab2.col0 + col1 * col1 AS col1 FROM tab2
----
3559
368
968
query I rowsort
SELECT DISTINCT + col0 * col2 + col2 FROM tab1
----
216
3705
7776
query I rowsort
SELECT - col0 + col1 * - col1 AS col1 FROM tab2 AS cor0
----
-3559
-368
-968
query III rowsort
SELECT * FROM tab0 WHERE + col1 NOT IN ( col1 )
----
query I rowsort
SELECT - col1 + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
-113
-196
-69
query I rowsort
SELECT - + col0 * - col0 + - col0 AS col2 FROM tab0 AS cor0
----
1190
552
7832
query I rowsort
SELECT col1 * col0 + - col2 * + col1 + + col0 FROM tab0 AS cor0
----
-750
3333
726
query I rowsort
SELECT + + col2 + - col1 * - col2 + - col1 FROM tab2 cor0
----
1501
667
833
query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab0, tab1 cor0
----
73
onlyif mysql # use DIV operator for integer division
query I rowsort label-8854
SELECT ALL + cor1.col0 DIV + 33 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to aa375397622194eb8bb1c3fa8eb66303
skipif mysql # not compatible
query I rowsort label-8854
SELECT ALL + cor1.col0 / + 33 AS col0 FROM tab2, tab0 cor0, tab2 AS cor1
----
27 values hashing to aa375397622194eb8bb1c3fa8eb66303
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8855
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8855
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + + col1 AS col1 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT + - ( - col1 ) + + col1 FROM tab0 cor0
----
172
182
194
onlyif mysql # use DIV operator for integer division
query I rowsort label-8857
SELECT + col1 + - 13 DIV col2 FROM tab1 AS cor0
----
10
13
26
skipif mysql # not compatible
query I rowsort label-8857
SELECT + col1 + - 13 / col2 FROM tab1 AS cor0
----
10
13
26
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 46 col1 FROM tab0 cor0
----
-46
-46
-46
query I rowsort
SELECT DISTINCT - - col1 * + col2 AS col0 FROM tab2 cor0
----
1534
646
837
query I rowsort
SELECT DISTINCT cor0.col1 * + 9 FROM tab1 AS cor0
----
117
234
90
query I rowsort
SELECT DISTINCT - - ( 26 ) FROM tab1 AS cor0
----
26
query I rowsort
SELECT ALL - 50 FROM tab2, tab2 cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8863
SELECT + CAST( + 39 AS SIGNED ) FROM tab2
----
39
39
39
skipif mysql # not compatible
query I rowsort label-8863
SELECT + CAST ( + 39 AS INTEGER ) FROM tab2
----
39
39
39
onlyif mysql # use DIV operator for integer division
query I rowsort label-8864
SELECT ALL 32 + - col1 DIV col2 AS col0 FROM tab1
----
32
32
32
skipif mysql # not compatible
query I rowsort label-8864
SELECT ALL 32 + - col1 / col2 AS col0 FROM tab1
----
32
32
32
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - tab0.col2 col2 FROM tab0, tab2 cor0
----
-1
-33
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-8866
SELECT DISTINCT + tab2.col1 DIV - 12 + - col1 * 35 * - 4 + + col2 FROM tab2
----
2417
4365
8282
skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT + tab2.col1 / - 12 + - col1 * 35 * - 4 + + col2 FROM tab2
----
2417
4365
8282
query I rowsort
SELECT DISTINCT 43 - col0 AS col0 FROM tab0
----
-46
19
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8868
SELECT DISTINCT - CAST( col2 AS SIGNED ) + - col0 * - 92 - + col0 * col1 col1 FROM tab0
----
-176
111
7
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + - col0 * - 92 - + col0 * col1 col1 FROM tab0
----
-176
111
7
onlyif mysql # use DIV operator for integer division
query I rowsort label-8869
SELECT tab2.col1 * col0 DIV col1 FROM tab2
----
7
78
79
skipif mysql # not compatible
query I rowsort label-8869
SELECT tab2.col1 * col0 / col1 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + 93 * col0 + + col0 FROM tab0
----
2256
3290
8366
query I rowsort
SELECT - 25 * tab1.col2 FROM tab1
----
-1350
-1425
-2400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + - 61 col1 FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 91b10a00c89b36b5bf0bed723e656ccc
query I rowsort
SELECT ALL + - col0 + - 60 FROM tab1 AS cor0
----
-124
-140
-63
query I rowsort
SELECT + col1 + ( ( col2 ) ) FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL 90 + col1 FROM tab0
----
176
181
187
query I rowsort
SELECT - 2 + + col2 AS col0 FROM tab2 AS cor0
----
24
25
36
onlyif mysql # use DIV operator for integer division
query I rowsort label-8877
SELECT ALL - col1 * col1 + - 74 DIV tab0.col2 AS col0 FROM tab0
----
-7398
-8281
-9483
skipif mysql # not compatible
query I rowsort label-8877
SELECT ALL - col1 * col1 + - 74 / tab0.col2 AS col0 FROM tab0
----
-7398
-8281
-9483
onlyif mysql # use DIV operator for integer division
query I rowsort label-8878
SELECT ALL + tab0.col1 DIV 93 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
skipif mysql # not compatible
query I rowsort label-8878
SELECT ALL + tab0.col1 / 93 FROM tab0, tab1 AS cor0
----
9 values hashing to 14fcfa6c11198893073049d94262832c
query I rowsort
SELECT - col0 * + col2 + - col0 AS col2 FROM tab0 cor0
----
-70
-7387
-816
onlyif mysql # use DIV operator for integer division
query I rowsort label-8880
SELECT - + col0 + col1 * 50 DIV + col0 FROM tab0 AS cor0
----
-38
103
155
skipif mysql # not compatible
query I rowsort label-8880
SELECT - + col0 + col1 * 50 / + col0 FROM tab0 AS cor0
----
-38
103
155
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8881
SELECT - + col0 * CAST( NULL AS SIGNED ) + 41 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8881
SELECT - + col0 * CAST ( NULL AS INTEGER ) + 41 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + - col1 * + 17 AS col2 FROM tab2 AS cor0
----
-1003
-289
-527
query I rowsort
SELECT DISTINCT cor0.col0 + + col2 * 44 FROM tab0 AS cor0
----
1476
3697
79
onlyif mysql # use DIV operator for integer division
query I rowsort label-8884
SELECT DISTINCT - + col2 DIV - col2 + + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2837
-7461
-96
skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT - + col2 / - col2 + + cor0.col2 * - col1 FROM tab0 AS cor0
----
-2837
-7461
-96
query I rowsort
SELECT DISTINCT - col2 + col1 + col0 AS col0 FROM tab1 cor0
----
-25
-3
17
query I rowsort
SELECT ALL + col1 + - 34 FROM tab2 AS cor0
----
-17
-3
25
query I rowsort
SELECT ALL + - col1 + col2 * - 71 AS col2 FROM tab2 AS cor0
----
-1905
-1948
-2715
query I rowsort
SELECT tab0.col0 + - 24 AS col2 FROM tab0
----
0
11
65
query I rowsort
SELECT 75 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea
query I rowsort
SELECT - tab2.col2 + ( col2 * + col2 ) FROM tab2
----
1406
650
702
query I rowsort
SELECT DISTINCT + + cor0.col1 + - 70 + - col2 AS col1 FROM tab2 AS cor0
----
-37
-66
-91
onlyif mysql # use DIV operator for integer division
query I rowsort label-8892
SELECT + col1 * + col0 + 96 DIV - col1 AS col1 FROM tab2 AS cor0
----
1338
214
4601
skipif mysql # not compatible
query I rowsort label-8892
SELECT + col1 * + col0 + 96 / - col1 AS col1 FROM tab2 AS cor0
----
1338
214
4601
onlyif mysql # use DIV operator for integer division
query I rowsort label-8893
SELECT DISTINCT col2 - col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
102
54
63
skipif mysql # not compatible
query I rowsort label-8893
SELECT DISTINCT col2 - col0 / - col1 AS col0 FROM tab1 AS cor0
----
102
54
63
onlyif mysql # use DIV operator for integer division
query I rowsort label-8894
SELECT DISTINCT col2 DIV 7 FROM tab1 AS cor0
----
13
7
8
skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT col2 / 7 FROM tab1 AS cor0
----
13
7
8
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8895
SELECT DISTINCT - col0 + + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT - col0 + + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - col1 * col2 + + 65 * + col2 AS col2 FROM tab2 AS cor0
----
156
1824
918
onlyif mysql # use DIV operator for integer division
query I rowsort label-8897
SELECT ALL + col0 DIV + 83 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-8
-96
skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + col0 / + 83 + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-53
-8
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8898
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT + CAST ( NULL AS REAL ) * col0 AS col1 FROM tab0 AS cor0
----
NULL
query I rowsort
SELECT + 95 + + col1 * col2 AS col1 FROM tab2 AS cor0
----
1629
741
932
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8900
SELECT ALL + col2 + ( cor0.col0 + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL + col2 + ( cor0.col0 + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + 21 * cor0.col0 - col1 AS col2 FROM tab1 AS cor0
----
1334
1667
37
query I rowsort
SELECT + 65 * col0 FROM tab1 AS cor0
----
195
4160
5200
query I rowsort
SELECT ALL - col1 * col0 + col0 AS col0 FROM tab0 AS cor0
----
-2040
-3360
-8010
query I rowsort
SELECT ALL 3 * col1 + + col0 FROM tab0 cor0
----
282
326
362
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * - cor0.col1 col0 FROM tab0 AS cor0
----
7224
7644
8148
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 col2 FROM tab0 AS cor0
----
-22
-22
-22
query I rowsort
SELECT + col2 - col1 * 1 AS col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + + ( col2 ) - - col2 AS col2 FROM tab2 AS cor0
----
52
54
76
onlyif mysql # use DIV operator for integer division
query I rowsort label-8909
SELECT tab1.col2 DIV + col2 + col2 DIV + col2 FROM tab1
----
2
2
2
skipif mysql # not compatible
query I rowsort label-8909
SELECT tab1.col2 / + col2 + col2 / + col2 FROM tab1
----
2
2
2
query I rowsort
SELECT DISTINCT - + col2 * - cor0.col0 * col0 FROM tab1 AS cor0
----
233472
486
614400
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 25 col0 FROM tab1 AS cor0
----
-25
-25
-25
query I rowsort
SELECT DISTINCT - + col0 - + col2 FROM tab1 AS cor0
----
-121
-176
-57
query I rowsort
SELECT DISTINCT + - 97 * - col0 AS col1 FROM tab1 AS cor0
----
291
6208
7760
query I rowsort
SELECT ALL - 10 * + col2 AS col1 FROM tab1 AS cor0
----
-540
-570
-960
query I rowsort
SELECT ALL + 15 + + col1 * + col0 FROM tab0 AS cor0
----
2079
3410
8114
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL cor0.col2 * col2 + ( col2 + - col0 ) col2 FROM tab0 AS cor0
----
-33
1098
6717
query I rowsort
SELECT ALL - col0 - + col2 FROM tab2 cor0
----
-104
-117
-34
query I rowsort
SELECT tab2.col1 * - col2 * - 59 FROM tab2
----
38114
49383
90506
query I rowsort
SELECT + 26 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 * - col1 + - ( - col1 ) col1 FROM tab2 AS cor0
----
-119
-217
-413
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL 50 * + tab1.col0 AS col0 FROM tab1
----
150
3200
4000
query I rowsort
SELECT + ( col1 ) + + col1 AS col2 FROM tab2 AS cor0
----
118
34
62
query I rowsort
SELECT + + 89 * col0 AS col0 FROM tab2 AS cor0
----
623
6942
7031
query I rowsort
SELECT ALL tab1.col0 + - cor1.col0 AS col0 FROM tab1, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 7babc5263fdb352917acc2ccf2b08383
query I rowsort
SELECT ALL tab1.col1 * col0 + ( col1 ) FROM tab1
----
104
1053
650
query I rowsort
SELECT + col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
2088
3430
8188
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8928
SELECT ALL + col0 * CAST( NULL AS DECIMAL ) + 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-8928
SELECT ALL + col0 * CAST ( NULL AS REAL ) + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - - col2 * - ( + ( col2 ) ) + col2 FROM tab1 AS cor0
----
-2862
-3192
-9120
query I rowsort
SELECT ALL col1 * col1 + - cor0.col1 + col0 AS col0 FROM tab1 AS cor0
----
154
236
653
query I rowsort
SELECT + col2 * 69 FROM tab1
----
3726
3933
6624
query I rowsort
SELECT cor0.col0 + + cor0.col2 * cor0.col2 FROM tab0 AS cor0
----
1113
36
6813
onlyif mysql # use DIV operator for integer division
query I rowsort label-8933
SELECT - 16 + - 45 DIV - col1 AS col2 FROM tab0 cor0
----
-16
-16
-16
skipif mysql # not compatible
query I rowsort label-8933
SELECT - 16 + - 45 / - col1 AS col2 FROM tab0 cor0
----
-16
-16
-16
query I rowsort
SELECT + ( col2 ) * - col1 + ( 55 ) AS col0 FROM tab0 AS cor0
----
-2783
-42
-7407
query I rowsort
SELECT ALL - col1 + 30 FROM tab1 AS cor0
----
17
20
4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 + - 7 + + col1 col2 FROM tab0 AS cor0
----
175
180
186
query I rowsort
SELECT + col1 * col1 + cor0.col0 * - col0 AS col2 FROM tab2 AS cor0
----
-2603
-5952
912
query I rowsort
SELECT + 74 * + col0 FROM tab2
----
518
5772
5846
onlyif mysql # use DIV operator for integer division
query I rowsort label-8939
SELECT ALL + col0 + + col1 DIV col0 FROM tab2
----
11
78
79
skipif mysql # not compatible
query I rowsort label-8939
SELECT ALL + col0 + + col1 / col0 FROM tab2
----
11
78
79
query I rowsort
SELECT - ( + col1 ) * - col2 + col0 * col0 FROM tab0 AS cor0
----
1322
15383
3414
query I rowsort
SELECT - ( - 38 ) - - col2 * col1 AS col1 FROM tab0 AS cor0
----
135
2876
7500
query I rowsort
SELECT + 48 * col2 + col0 AS col1 FROM tab2 AS cor0
----
1303
1326
1903
onlyif mysql # use DIV operator for integer division
query I rowsort label-8943
SELECT + - 80 DIV - 5 + col0 FROM tab2 AS cor0
----
23
94
95
skipif mysql # not compatible
query I rowsort label-8943
SELECT + - 80 / - 5 + col0 FROM tab2 AS cor0
----
23
94
95
query I rowsort
SELECT + ( col2 ) * - col1 + ( col2 ) * - cor0.col0 AS col0 FROM tab2 AS cor0
----
-1026
-3562
-3648
query I rowsort
SELECT - ( col1 ) * + col1 + + 21 * + col2 * + col0 FROM tab2 AS cor0
----
3008
39107
62753
query I rowsort
SELECT DISTINCT - - col1 - - col2 AS col0 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT DISTINCT - + cor0.col2 - col0 FROM tab0 AS cor0
----
-171
-36
-57
query I rowsort
SELECT - - ( - col0 ) * ( 31 ) + col0 AS col0 FROM tab2 AS cor0
----
-210
-2340
-2370
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8949
SELECT DISTINCT CAST( NULL AS SIGNED ) + cor0.col2 FROM tab1, tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT CAST ( NULL AS INTEGER ) + cor0.col2 FROM tab1, tab1 AS cor0
----
NULL
query I rowsort
SELECT ALL + + 91 * 27 FROM tab1, tab0 AS cor0
----
9 values hashing to 2c5b82e070acc3fb8011e45de22549f9
query I rowsort
SELECT - - 31 * + col2 + ( col2 ) FROM tab1 cor0
----
1728
1824
3072
query I rowsort
SELECT DISTINCT + + col1 - + col0 * - ( ( - col0 ) ) FROM tab2 AS cor0
----
-18
-6025
-6224
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 * + col1 * col2 col2 FROM tab1 AS cor0
----
18720
21060
8550
query I rowsort
SELECT DISTINCT + 95 + col2 AS col0 FROM tab0 AS cor0
----
128
177
96
query I rowsort
SELECT col2 + col0 * - col1 AS col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT - col2 + + ( col2 ) AS col0 FROM tab1 AS cor0
----
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-8957
SELECT + col0 DIV 28 FROM tab1 AS cor0
----
0
2
2
skipif mysql # not compatible
query I rowsort label-8957
SELECT + col0 / 28 FROM tab1 AS cor0
----
0
2
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8958
SELECT ALL + CAST( NULL AS SIGNED ) + + cor0.col1 - cor0.col1 / - 55 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8958
SELECT ALL + CAST ( NULL AS INTEGER ) + + cor0.col1 - cor0.col1 / - 55 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - col0 + + ( cor0.col1 ) AS col0 FROM tab2 AS cor0
----
-19
-62
24
query I rowsort
SELECT DISTINCT + 77 AS col1 FROM tab0 AS cor0
----
77
query I rowsort
SELECT DISTINCT + + ( 32 ) + col2 * 29 FROM tab2 cor0
----
1134
786
815
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8962
SELECT ALL CAST( - col2 AS SIGNED ) + cor0.col0 - col1 * col1 FROM tab2 AS cor0
----
-248
-3429
-981
skipif mysql # not compatible
query I rowsort label-8962
SELECT ALL CAST ( - col2 AS INTEGER ) + cor0.col0 - col1 * col1 FROM tab2 AS cor0
----
-248
-3429
-981
onlyif mysql # use DIV operator for integer division
query I rowsort label-8963
SELECT ALL - cor0.col2 DIV + 64 FROM tab2 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - cor0.col2 / + 64 FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT + 40 + - 50 FROM tab1 AS cor0
----
-10
-10
-10
query I rowsort
SELECT + tab2.col0 * col1 + - col0 + + col1 FROM tab2
----
1281
241
4583
query IIIIIIIIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0, tab2 AS cor0, tab2 cor1
----
972 values hashing to 617c9545df26d6d983e3967864e8e9e4
query I rowsort
SELECT ALL tab1.col0 * 2 AS col0 FROM tab1
----
128
160
6
query I rowsort
SELECT cor0.col1 FROM tab0, tab1 cor0, tab1 AS cor1
----
27 values hashing to d671a064e2da709ca4cdfea317b8e892
onlyif mysql # use DIV operator for integer division
query I rowsort label-8969
SELECT - + col1 DIV col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-8969
SELECT - + col1 / col1 AS col0 FROM tab1 AS cor0
----
-1
-1
-1
query I rowsort
SELECT ALL + 47 FROM tab1, tab0, tab0 cor0
----
27 values hashing to 3f991632e9c7c5142e1d80857cd10a2d
query I rowsort
SELECT + cor1.col0 + - ( cor0.col2 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 39743c793f613da0d70fb6327d83ae61
query I rowsort
SELECT - - col1 + col1 * - cor0.col1 FROM tab2 cor0
----
-272
-3422
-930
query I rowsort
SELECT ALL col2 * + 97 FROM tab0
----
3201
7954
97
query I rowsort
SELECT ALL + + col1 + col0 * + 27 AS col2 FROM tab1 cor0
----
107
1738
2173
onlyif mysql # use DIV operator for integer division
query I rowsort label-8975
SELECT ALL + 66 DIV + col2 col1 FROM tab0 cor0
----
0
2
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + 66 / + col2 col1 FROM tab0 cor0
----
0
2
66
query I rowsort
SELECT ALL + 1 * tab2.col2 * + col0 FROM tab2
----
189
2028
3002
query I rowsort
SELECT DISTINCT ( + col0 ) * + 58 * - 69 FROM tab0
----
-140070
-356178
-96048
query I rowsort
SELECT ALL - col1 - + col0 * ( - col2 ) FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ALL - - col1 + col0 + - 64 AS col1 FROM tab1 AS cor0
----
-35
10
29
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8980
SELECT - col2 + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-8980
SELECT - col2 + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - - col2 * ( + 53 ) FROM tab2 AS cor0
----
1378
1431
2014
query I rowsort
SELECT ALL - col0 * + cor0.col1 AS col1 FROM tab1 AS cor0
----
-1040
-640
-78
query I rowsort
SELECT + tab2.col0 + + tab2.col2 AS col1 FROM tab2
----
104
117
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8984
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) + + col0 + cor0.col1 * 5 AS col2 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + + CAST ( NULL AS REAL ) + + col0 + cor0.col1 * 5 AS col2 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT DISTINCT - - ( col1 ) * + col1 AS col2 FROM tab0 AS cor0
----
7396
8281
9409
query I rowsort
SELECT + col2 + col1 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
152
255
99
query I rowsort
SELECT ALL - - ( col0 ) + + col0 AS col0 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT DISTINCT - + col2 + - col2 AS col1 FROM tab0 AS cor0
----
-164
-2
-66
onlyif mysql # use DIV operator for integer division
query I rowsort label-8989
SELECT DISTINCT - 24 + 33 DIV + col2 FROM tab0 AS cor0
----
-23
-24
9
skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT - 24 + 33 / + col2 FROM tab0 AS cor0
----
-23
-24
9
query I rowsort
SELECT cor0.col1 * col0 + + col2 + col2 AS col0 FROM tab1 AS cor0
----
1232
186
754
query I rowsort
SELECT DISTINCT - 18 FROM tab2, tab2 AS cor0
----
-18
query I rowsort
SELECT ALL col0 - - 51 FROM tab0
----
140
75
86
query I rowsort
SELECT - ( - cor0.col1 ) AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to c61d27a0022e6d022371dc58819ab272
onlyif mysql # use DIV operator for integer division
query I rowsort label-8994
SELECT DISTINCT + col1 + + col2 DIV + col2 col0 FROM tab1 AS cor0
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + col1 + + col2 / + col2 col0 FROM tab1 AS cor0
----
11
14
27
query I rowsort
SELECT DISTINCT - 63 AS col1 FROM tab1 AS cor0
----
-63
onlyif mysql # use DIV operator for integer division
query I rowsort label-8996
SELECT - - cor0.col2 + + 6 DIV - col2 col1 FROM tab0 AS cor0
----
-5
33
82
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-8996
SELECT - - cor0.col2 + + 6 / - col2 col1 FROM tab0 AS cor0
----
-5
33
82
query I rowsort
SELECT cor0.col0 + 72 FROM tab1 AS cor0
----
136
152
75
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-8998
SELECT ALL - CAST( col1 AS SIGNED ) * + col2 + + ( - col0 ) FROM tab2
----
-1612
-725
-844
skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL - CAST ( col1 AS INTEGER ) * + col2 + + ( - col0 ) FROM tab2
----
-1612
-725
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col1 FROM tab2 AS cor0
----
-56
-56
-56
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9000
SELECT DISTINCT CAST( + col2 AS SIGNED ) + col0 FROM tab2
----
104
117
34
skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + col0 FROM tab2
----
104
117
34
query I rowsort
SELECT ALL cor1.col1 - cor0.col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 1d3d43885ed36a7264ad4915849f66a5
query I rowsort
SELECT ALL - 81 * 85 + col0 * 87 FROM tab0 cor0
----
-3840
-4797
858
onlyif mysql # use DIV operator for integer division
query I rowsort label-9003
SELECT ALL col0 * + col0 + - col2 DIV CAST( col1 AS SIGNED ) AS col1 FROM tab2
----
49
6084
6239
skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL col0 * + col0 + - col2 / CAST ( col1 AS INTEGER ) AS col1 FROM tab2
----
49
6084
6239
query I rowsort
SELECT DISTINCT col2 + 79 + + tab0.col1 * - ( col1 ) FROM tab0
----
-7284
-8120
-9329
query I rowsort
SELECT col1 * - 72 * col1 FROM tab1
----
-12168
-48672
-7200
query I rowsort
SELECT DISTINCT col2 * col0 + ( - 62 + col2 ) * cor0.col2 AS col2 FROM tab0 AS cor0
----
-165
-26
8938
query I rowsort
SELECT DISTINCT + cor0.col2 + col1 * col2 * col2 AS col2 FROM tab0 AS cor0
----
611966
93687
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 + - col2 * + 77 col0 FROM tab2 cor0
----
-2080
-2157
-3004
query I rowsort
SELECT DISTINCT - col2 + col0 + + 27 * 1 AS col1 FROM tab2 AS cor0
----
68
7
79
query I rowsort
SELECT + ( col0 ) * + 24 + - cor0.col1 FROM tab2 AS cor0
----
137
1813
1879
onlyif mysql # use DIV operator for integer division
query I rowsort label-9011
SELECT DISTINCT - 7 + + col1 DIV - 10 + 42 * - cor0.col1 FROM tab0 AS cor0
----
-3627
-3838
-4090
skipif mysql # not compatible
query I rowsort label-9011
SELECT DISTINCT - 7 + + col1 / - 10 + 42 * - cor0.col1 FROM tab0 AS cor0
----
-3627
-3838
-4090
query I rowsort
SELECT ALL + + col2 * + col0 + - ( + 46 ) * col1 AS col2 FROM tab0 AS cor0
----
-3164
-4427
3112
query I rowsort
SELECT ALL 17 + + col0 AS col0 FROM tab0 cor0
----
106
41
52
query I rowsort
SELECT 66 + + cor0.col2 AS col0 FROM tab0 AS cor0
----
148
67
99
query I rowsort
SELECT DISTINCT cor0.col1 AS col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
10
13
26
query I rowsort
SELECT DISTINCT - col2 + + tab1.col1 * - col2 AS col0 FROM tab1
----
-1344
-1458
-627
onlyif mysql # use DIV operator for integer division
query I rowsort label-9017
SELECT ALL + 29 DIV 71 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL + 29 / 71 AS col2 FROM tab1, tab1 cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c
query I rowsort
SELECT ALL col1 + 64 * ( col1 * 38 + - 92 ) AS col1 FROM tab2
----
137659
35473
69535
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2, tab1 cor1, tab0, tab0 cor2
----
3645 values hashing to 78077727601c056ad0d4f4c11c8daffb
query I rowsort
SELECT DISTINCT - col2 + + col0 + 45 AS col1 FROM tab2 AS cor0
----
25
86
97
query I rowsort
SELECT DISTINCT - + col0 + - cor0.col2 * + cor0.col1 + + col2 * cor0.col1 AS col2 FROM tab0 cor0
----
-24
-35
-89
query I rowsort
SELECT ALL - - cor0.col1 - - 80 * + col0 FROM tab1 AS cor0
----
266
5130
6413
query I rowsort
SELECT ALL - col0 + - 55 * col1 * col2 FROM tab2 AS cor0
----
-35609
-46042
-84448
query I rowsort
SELECT - + cor0.col1 * - col2 + + col2 AS col0 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT DISTINCT + col1 * - ( cor0.col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
-210
-3403
-954
query I rowsort
SELECT + + col1 * cor0.col0 - col0 * - cor0.col2 * + col2 AS col2 FROM tab1 AS cor0
----
208576
738320
8826
query I rowsort
SELECT DISTINCT - cor0.col2 + ( col2 ) AS col2 FROM tab0 AS cor0
----
0
query I rowsort
SELECT ALL + - col2 + cor0.col0 FROM tab1 AS cor0
----
-16
-51
7
query I rowsort
SELECT DISTINCT - ( ( + col1 ) ) - + col1 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT DISTINCT + 89 + col2 - + col2 FROM tab2 AS cor0
----
89
query I rowsort
SELECT - + ( - 80 ) * + col2 - + col0 AS col2 FROM tab0 AS cor0
----
2616
45
6471
query I rowsort
SELECT DISTINCT + ( + cor0.col0 ) + col1 * cor0.col1 AS col0 FROM tab2 cor0
----
3559
368
968
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 + - 73 + + col0 * + ( + 3 ) col1 FROM tab0 AS cor0
----
10
205
43
query I rowsort
SELECT ALL 49 * col1 + + col2 AS col0 FROM tab2 AS cor0
----
1546
2917
871
onlyif mysql # use DIV operator for integer division
query I rowsort label-9035
SELECT - 52 + cor0.col2 DIV - col1 FROM tab1 AS cor0
----
-54
-57
-59
skipif mysql # not compatible
query I rowsort label-9035
SELECT - 52 + cor0.col2 / - col1 FROM tab1 AS cor0
----
-54
-57
-59
query I rowsort
SELECT ALL 38 + - col1 AS col2 FROM tab0 cor0
----
-48
-53
-59
query I rowsort
SELECT ALL + col1 + cor0.col0 + col1 FROM tab2 cor0
----
113
196
69
onlyif mysql # use DIV operator for integer division
query I rowsort label-9038
SELECT ALL col2 DIV col1 - tab2.col1 * col2 AS col1 FROM tab2
----
-1534
-644
-837
skipif mysql # not compatible
query I rowsort label-9038
SELECT ALL col2 / col1 - tab2.col1 * col2 AS col1 FROM tab2
----
-1534
-644
-837
query I rowsort
SELECT ALL + col2 + + col2 * - col0 - ( col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
54
57
96
query I rowsort
SELECT + col1 * - cor0.col0 + col2 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT + - col1 * - col2 + + col2 AS col0 FROM tab0 AS cor0
----
2871
7544
98
query I rowsort
SELECT + - col1 + col2 * col0 + + col1 * col1 FROM tab1 AS cor0
----
3738
7836
812
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9043
SELECT + col2 * - CAST( - col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
35
7298
792
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9043
SELECT + col2 * - CAST ( - col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT col0 + col0 * - col2 + col1 FROM tab1 AS cor0
----
-133
-3574
-7587
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9045
SELECT - col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9045
SELECT - col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9046
SELECT col0 * 90 + col0 + col1 * + ( col1 ) DIV col1 FROM tab1 AS cor0
----
299
5834
7293
skipif mysql # not compatible
query I rowsort label-9046
SELECT col0 * 90 + col0 + col1 * + ( col1 ) / col1 FROM tab1 AS cor0
----
299
5834
7293
query I rowsort
SELECT + col1 * ( + 92 ) + cor0.col1 * col0 * 59 + - col2 * - ( col2 ) AS col1 FROM tab0 AS cor0
----
130777
209230
492937
onlyif mysql # use DIV operator for integer division
query I rowsort label-9048
SELECT + col1 DIV 90 + cor0.col1 col1 FROM tab0 AS cor0
----
86
92
98
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9048
SELECT + col1 / 90 + cor0.col1 col1 FROM tab0 AS cor0
----
86
92
98
query I rowsort
SELECT ALL - col0 * col1 * col2 + - 42 + + col0 AS col1 FROM tab0
----
-3402
-664071
-68130
onlyif mysql # use DIV operator for integer division
query I rowsort label-9050
SELECT ALL 18 DIV + col0 + tab1.col1 AS col2 FROM tab1
----
10
13
32
skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL 18 / + col0 + tab1.col1 AS col2 FROM tab1
----
10
13
32
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 + col2 + - 87 AS col2 FROM tab1 AS cor0
----
-30
-33
9
query I rowsort
SELECT ALL col2 * + 40 AS col0 FROM tab1
----
2160
2280
3840
query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab0, tab2 AS cor0, tab1, tab2 AS cor1
----
28
query I rowsort
SELECT DISTINCT + 41 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41
query I rowsort
SELECT ALL cor0.col1 FROM tab2 AS cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL - + col0 * + 50 AS col2 FROM tab1 AS cor0
----
-150
-3200
-4000
query I rowsort
SELECT + + 69 + cor1.col1 FROM tab1 cor0 CROSS JOIN tab1, tab2 AS cor1
----
27 values hashing to a3316536cf288a7973ce43875fc4068d
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9059
SELECT 7 * + col2 + CAST( - col1 * - col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
7627
8855
9416
skipif mysql # not compatible
query I rowsort label-9059
SELECT 7 * + col2 + CAST ( - col1 * - col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
7627
8855
9416
query I rowsort
SELECT DISTINCT + cor0.col2 - + 53 FROM tab1, tab2 AS cor0
----
-15
-26
-27
query I rowsort
SELECT - + cor0.col0 * cor0.col1 - 17 * col0 FROM tab0 AS cor0
----
-2472
-3990
-9612
onlyif mysql # use DIV operator for integer division
query I rowsort label-9062
SELECT 57 DIV col1 AS col2 FROM tab0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9062
SELECT 57 / col1 AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9063
SELECT ALL + col1 DIV - col0 AS col0 FROM tab1
----
-8
0
0
skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL + col1 / - col0 AS col0 FROM tab1
----
-8
0
0
query I rowsort
SELECT + - col0 + cor0.col1 + - ( 96 * + col1 ) FROM tab1 AS cor0
----
-1014
-1315
-2473
onlyif mysql # use DIV operator for integer division
query I rowsort label-9065
SELECT - - col1 DIV col2 + cor0.col1 + col1 FROM tab0 AS cor0
----
174
183
291
skipif mysql # not compatible
query I rowsort label-9065
SELECT - - col1 / col2 + cor0.col1 + col1 FROM tab0 AS cor0
----
174
183
291
query I rowsort
SELECT + 43 * + col0 AS col1 FROM tab2 cor0
----
301
3354
3397
query I rowsort
SELECT ALL + + 61 * - col2 + + 44 * col2 * - col1 FROM tab1 AS cor0
----
-28557
-60768
-65070
query I rowsort
SELECT DISTINCT + 82 * 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5576
query I rowsort
SELECT + ( 90 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853
query I rowsort
SELECT + ( + col1 ) * - col2 - 89 AS col0 FROM tab2
----
-1623
-735
-926
query I rowsort
SELECT + col2 * - 92 + + 98 * + col2 FROM tab0 AS cor0
----
198
492
6
query I rowsort
SELECT - - col0 + 3 FROM tab0 AS cor0
----
27
38
92
onlyif mysql # use DIV operator for integer division
query I rowsort label-9073
SELECT ALL - col0 DIV + col1 + - 3 DIV col0 FROM tab0 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - col0 / + col1 + - 3 / col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col0 + col1 + col2 FROM tab2 AS cor0
----
134
163
65
query I rowsort
SELECT ALL col0 * + col2 + - col2 FROM tab2 AS cor0
----
162
2002
2964
onlyif mysql # use DIV operator for integer division
query I rowsort label-9076
SELECT - cor0.col2 * - ( + col2 * cor0.col0 ) + - col0 DIV col1 FROM tab1 AS cor0
----
207930
737274
8748
skipif mysql # not compatible
query I rowsort label-9076
SELECT - cor0.col2 * - ( + col2 * cor0.col0 ) + - col0 / col1 FROM tab1 AS cor0
----
207930
737274
8748
query I rowsort
SELECT + col0 + - col0 * cor0.col2 + col1 FROM tab2 cor0
----
-151
-1891
-2906
query I rowsort
SELECT DISTINCT col0 * - 21 AS col2 FROM tab2 AS cor0
----
-147
-1638
-1659
query I rowsort
SELECT 90 * - 92 AS col1 FROM tab2 AS cor0
----
-8280
-8280
-8280
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9080
SELECT cor0.col2 + CAST( NULL AS SIGNED ) + 29 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
skipif mysql # not compatible
query I rowsort label-9080
SELECT cor0.col2 + CAST ( NULL AS INTEGER ) + 29 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b
query I rowsort
SELECT + cor0.col1 + col2 * col0 AS col2 FROM tab2 AS cor0
----
2087
220
3019
query I rowsort
SELECT + cor0.col0 * col0 AS col1 FROM tab0 cor0
----
1225
576
7921
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 ALL - 17 AS col1 FROM tab1 AS cor0
----
-17
-17
-17
query I rowsort
SELECT + + 88 * + col1 FROM tab1 cor0
----
1144
2288
880
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col1 col0 FROM tab2 AS cor0
----
1343
217
4602
query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= ( + col1 )
----
query I rowsort
SELECT col0 * + col0 + col0 * + col2 AS col1 FROM tab1
----
14080
171
7744
query I rowsort
SELECT DISTINCT col2 * + col1 * - col0 AS col2 FROM tab0
----
-3395
-664118
-68112
query I rowsort
SELECT ALL col0 * + col0 * - col0 FROM tab0
----
-13824
-42875
-704969
query I rowsort
SELECT col1 / col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN col1 * + col1 / col2 + col1 - - col2 AND NULL
----
query I rowsort
SELECT + col1 * col1 - col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT DISTINCT col0 * col0 - + col1 AS col2 FROM tab2
----
18
6025
6224
query I rowsort
SELECT col1 * col2 * - tab2.col1 FROM tab2
----
-10982
-25947
-90506
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab1.col0 * + col2 + col0 col2 FROM tab1
----
-159
-3584
-7600
query I rowsort
SELECT ALL col1 * col1 - + col2 AS col1 FROM tab2
----
251
3455
934
query I rowsort
SELECT DISTINCT col1 * col1 + - 4 * - col1 FROM tab2 AS cor0
----
1085
357
3717
query I rowsort
SELECT + 6 AS col1 FROM tab2, tab1, tab2 AS cor0
----
27 values hashing to f1e8f0199f3714ee8fcc24ce0cc3ea04
query I rowsort
SELECT DISTINCT tab1.col2 - tab1.col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( - tab1.col1 + col1 )
----
query I rowsort
SELECT col0 / - col0 + + col2 FROM tab2 WHERE ( NULL ) IN ( col2 * col2 )
----
query I rowsort
SELECT ALL - col1 FROM tab0 WHERE col2 + col2 >= NULL
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9102
SELECT DISTINCT - 81 DIV - cor0.col2 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-96
skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT - 81 / - cor0.col2 - cor0.col2 AS col1 FROM tab1 AS cor0
----
-53
-56
-96
query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( cor0.col0 ) IN ( col0 + - col0 * - col0 )
----
query I rowsort
SELECT - col0 + cor0.col2 + - col1 * - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= NULL
----
query I rowsort
SELECT - col1 * - col0 * - cor0.col0 - + col0 FROM tab2 AS cor0
----
-106176
-1526
-359034
query I rowsort
SELECT DISTINCT - col0 * tab2.col2 * + col0 FROM tab2
----
-1323
-158184
-237158
query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT + col0 + + col2 BETWEEN ( NULL ) AND col2 + - col2
----
-26
-27
-38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - cor0.col2 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT cor0.col1 + cor0.col1 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 1a063bfb694f348122cd0739295ca641
query I rowsort
SELECT DISTINCT col0 + + col0 + + col1 AS col1 FROM tab2 cor0
----
175
215
45
query I rowsort
SELECT DISTINCT col2 + - col2 * - col1 * - col2 FROM tab0 AS cor0
----
-611802
-93621
-96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col2 col0 FROM tab0 AS cor0
----
53
9
96
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 * col0 col0 FROM tab2 AS cor0
----
18
6025
6224
query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN ( NULL ) AND NULL
----
query I rowsort
SELECT tab1.col2 * col1 * + col2 + col0 AS col0 FROM tab1
----
119888
32554
75819
query I rowsort
SELECT - col2 * + tab0.col1 AS col0 FROM tab0 WHERE NULL BETWEEN col2 + col0 - col2 * col0 AND NULL
----
query III rowsort
SELECT * FROM tab1 WHERE NULL = + col1
----
query I rowsort
SELECT + col1 / col0 AS col0 FROM tab0 WHERE tab0.col0 < ( NULL )
----
query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 = NULL
----
query I rowsort
SELECT ALL + col1 * tab0.col0 * col0 AS col2 FROM tab0
----
118825
49536
720811
onlyif mysql # use DIV operator for integer division
query I rowsort label-9121
SELECT DISTINCT + tab1.col1 DIV col0 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-9121
SELECT DISTINCT + tab1.col1 / col0 FROM tab1
----
0
8
query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NULL NOT IN ( + col0 + col1 * - col1 )
----
query I rowsort
SELECT DISTINCT - col2 * col2 * - col0 FROM tab0
----
26136
35
598436
query I rowsort
SELECT ALL + col0 + + col0 - - tab2.col1 AS col0 FROM tab2
----
175
215
45
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + tab1.col1 + + col2 * col2 + col0 col2 FROM tab1
----
2945
3323
9309
query I rowsort
SELECT col2 * + col0 + - tab0.col2 * col0 AS col2 FROM tab0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9127
SELECT DISTINCT + tab0.col1 DIV + col1 FROM tab0
----
1
skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + tab0.col1 / + col1 FROM tab0
----
1
onlyif mysql # use DIV operator for integer division
query I rowsort label-9128
SELECT tab2.col2 * + tab2.col0 + - col0 DIV tab2.col0 FROM tab2
----
188
2027
3001
skipif mysql # not compatible
query I rowsort label-9128
SELECT tab2.col2 * + tab2.col0 + - col0 / tab2.col0 FROM tab2
----
188
2027
3001
query I rowsort
SELECT - - col1 - + 3 AS col0 FROM tab2 AS cor0
----
14
28
56
query I rowsort
SELECT DISTINCT - ( + col1 ) + col2 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT - 89 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
-10
-11
-82
onlyif mysql # use DIV operator for integer division
query I rowsort label-9132
SELECT - col2 DIV - col2 + col0 FROM tab1 AS cor0
----
4
65
81
skipif mysql # not compatible
query I rowsort label-9132
SELECT - col2 / - col2 + col0 FROM tab1 AS cor0
----
4
65
81
query I rowsort
SELECT col0 * + col1 - - col0 * - 96 * + col1 FROM tab0 AS cor0
----
-196080
-322525
-769405
query I rowsort
SELECT - col0 + ( cor0.col0 ) FROM tab2 AS cor0
----
0
0
0
query I rowsort
SELECT - 68 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 5febf382d36d6e0191889c41b928786f
onlyif mysql # use DIV operator for integer division
query I rowsort label-9136
SELECT + 50 DIV tab2.col0 + col2 FROM tab2
----
26
34
38
skipif mysql # not compatible
query I rowsort label-9136
SELECT + 50 / tab2.col0 + col2 FROM tab2
----
26
34
38
query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab0
----
35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9138
SELECT 24 DIV col0 AS col2 FROM tab2
----
0
0
3
skipif mysql # not compatible
query I rowsort label-9138
SELECT 24 / col0 AS col2 FROM tab2
----
0
0
3
query I rowsort
SELECT ( - col2 + col1 * + col0 ) AS col0 FROM tab2
----
1305
190
4576
onlyif mysql # use DIV operator for integer division
query I rowsort label-9140
SELECT 34 DIV - ( col1 ) AS col0 FROM tab1
----
-1
-2
-3
skipif mysql # not compatible
query I rowsort label-9140
SELECT 34 / - ( col1 ) AS col0 FROM tab1
----
-1
-2
-3
query I rowsort
SELECT + 31 * - col1 AS col2 FROM tab2
----
-1829
-527
-961
query I rowsort
SELECT + + cor0.col0 * col1 AS col0 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT + - cor0.col1 * 95 AS col0 FROM tab0 cor0
----
-8170
-8645
-9215
query I rowsort
SELECT col2 * - col1 + 39 * - ( - tab1.col0 ) FROM tab1
----
-1287
1872
1926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9145
SELECT ( col2 ) + CAST( NULL AS SIGNED ) * + tab1.col0 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9145
SELECT ( col2 ) + CAST ( NULL AS INTEGER ) * + tab1.col0 col1 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9146
SELECT DISTINCT - tab0.col1 - + CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9146
SELECT DISTINCT - tab0.col1 - + CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL
query I rowsort
SELECT 24 + col2 FROM tab0
----
106
25
57
query IIIIIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0, tab0 AS cor1, tab1, tab0 AS cor2, tab0 cor3
----
13122 values hashing to 75bd7e8e1b50d1cc056e29882b53be52
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort
SELECT ALL - col0 * CAST ( col1 AS REAL ) col0 FROM tab1 AS cor0
----
-1040
-640
-78
onlyif mysql # use DIV operator for integer division
query I rowsort label-9150
SELECT DISTINCT col0 * col1 DIV col0 AS col2 FROM tab2 cor0
----
17
31
59
skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT col0 * col1 / col0 AS col2 FROM tab2 cor0
----
17
31
59
query I rowsort
SELECT DISTINCT - col2 * 1 AS col1 FROM tab1 AS cor0
----
-54
-57
-96
query I rowsort
SELECT DISTINCT + + cor0.col2 * - 50 * - cor0.col2 + - cor0.col2 AS col1 FROM tab1 AS cor0
----
145746
162393
460704
query I rowsort
SELECT DISTINCT - cor0.col2 + + 36 FROM tab2 AS cor0
----
-2
10
9
query I rowsort
SELECT col1 * + 85 FROM tab1
----
1105
2210
850
query I rowsort
SELECT ( - 50 ) + + col0 - col0 AS col0 FROM tab0
----
-50
-50
-50
query I rowsort
SELECT 81 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9157
SELECT ALL CAST( + 54 AS SIGNED ) AS col1 FROM tab0
----
54
54
54
skipif mysql # not compatible
query I rowsort label-9157
SELECT ALL CAST ( + 54 AS INTEGER ) AS col1 FROM tab0
----
54
54
54
query I rowsort
SELECT + + ( col2 ) * col0 + cor0.col0 * + col0 AS col0 FROM tab0 AS cor0
----
1260
1368
15219
query I rowsort
SELECT col1 * + col1 - + col1 FROM tab0
----
7310
8190
9312
query I rowsort
SELECT + col1 + - 24 FROM tab1
----
-11
-14
2
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab1, tab0 AS cor0
----
98
query I rowsort
SELECT + col2 + - 90 FROM tab0 cor0
----
-57
-8
-89
onlyif mysql # use DIV operator for integer division
query I rowsort label-9163
SELECT - 97 DIV col0 + - col2 * col0 FROM tab0 AS cor0
----
-37
-7299
-796
skipif mysql # not compatible
query I rowsort label-9163
SELECT - 97 / col0 + - col2 * col0 FROM tab0 AS cor0
----
-37
-7299
-796
query I rowsort
SELECT - - 30 * col1 - - col1 AS col1 FROM tab0 AS cor0
----
2666
2821
3007
query I rowsort
SELECT - + ( col1 ) * + col0 * cor0.col1 + col0 * col1 AS col1 FROM tab0 AS cor0
----
-175440
-325920
-728910
query I rowsort
SELECT col0 + + col2 * + col1 - col1 AS col2 FROM tab1 AS cor0
----
1315
1381
624
query I rowsort
SELECT + + ( col0 ) * + col2 * col0 + col0 AS col0 FROM tab1 AS cor0
----
233536
489
614480
query I rowsort
SELECT - ( col0 ) * col2 + col1 AS col0 FROM tab1 AS cor0
----
-136
-3638
-7667
query I rowsort
SELECT DISTINCT 31 * col0 FROM tab2 AS cor0
----
217
2418
2449
query I rowsort
SELECT ALL - + col2 + + cor0.col2 * + col2 FROM tab1 cor0
----
2862
3192
9120
query I rowsort
SELECT ALL + col2 + cor0.col2 * col2 - col2 FROM tab0 AS cor0
----
1
1089
6724
onlyif mysql # use DIV operator for integer division
query I rowsort label-9172
SELECT DISTINCT - + col1 * col2 - col1 DIV col0 AS col1 FROM tab0 AS cor0
----
-2841
-7463
-99
skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT - + col1 * col2 - col1 / col0 AS col1 FROM tab0 AS cor0
----
-2841
-7463
-99
query I rowsort
SELECT col1 * - cor0.col0 + + 40 AS col0 FROM tab0 AS cor0
----
-2024
-3355
-8059
query I rowsort
SELECT ALL - 71 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 3907e0aa4f29c002120742c4abb3e23a
query I rowsort
SELECT - col1 + + col0 * + col2 AS col2 FROM tab1 AS cor0
----
136
3638
7667
query I rowsort
SELECT ( - 93 ) AS col1 FROM tab0 cor0
----
-93
-93
-93
query I rowsort
SELECT DISTINCT - col2 * - 53 AS col1 FROM tab1
----
2862
3021
5088
query I rowsort
SELECT DISTINCT + + col0 + + col0 * + col0 AS col1 FROM tab1 cor0
----
12
4160
6480
onlyif mysql # use DIV operator for integer division
query I rowsort label-9179
SELECT col2 + col2 DIV cor0.col0 FROM tab2 cor0
----
26
30
38
skipif mysql # not compatible
query I rowsort label-9179
SELECT col2 + col2 / cor0.col0 FROM tab2 cor0
----
26
30
38
query I rowsort
SELECT - - col0 + col1 * col0 AS col1 FROM tab2 AS cor0
----
1422
224
4680
query I rowsort
SELECT DISTINCT - col2 * cor0.col1 + + col2 AS col2 FROM tab2 cor0
----
-1508
-608
-810
query I rowsort
SELECT + + col0 + col2 * col1 FROM tab1 AS cor0
----
1328
1407
634
query I rowsort
SELECT ALL - tab2.col0 * + tab2.col0 AS col0 FROM tab2
----
-49
-6084
-6241
query I rowsort
SELECT + + col2 * - col2 * cor0.col0 FROM tab1 AS cor0
----
-207936
-737280
-8748
onlyif mysql # use DIV operator for integer division
query I rowsort label-9185
SELECT ALL + + col0 DIV col0 + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
163
3649
7681
skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + + col0 / col0 + col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
163
3649
7681
onlyif mysql # use DIV operator for integer division
query I rowsort label-9186
SELECT - col2 DIV cor0.col1 FROM tab2 cor0
----
-2
0
0
skipif mysql # not compatible
query I rowsort label-9186
SELECT - col2 / cor0.col1 FROM tab2 cor0
----
-2
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - cor0.col0 * - col2 col1 FROM tab1 cor0
----
162
3648
7680
query I rowsort
SELECT ALL + cor0.col1 * - col1 * + col2 + col2 AS col1 FROM tab2 AS cor0
----
-10944
-25920
-90480
query I rowsort
SELECT + - col0 + + col1 * col2 * + col1 AS col0 FROM tab2 AS cor0
----
10903
25940
90428
query I rowsort
SELECT + col1 - + tab2.col2 * - col2 FROM tab2
----
1461
735
760
query I rowsort
SELECT - col2 + col1 * col0 AS col0 FROM tab0 AS cor0
----
2031
3394
8017
onlyif mysql # use DIV operator for integer division
query I rowsort label-9192
SELECT DISTINCT + col1 + col0 DIV + col0 col1 FROM tab1
----
11
14
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9192
SELECT DISTINCT + col1 + col0 / + col0 col1 FROM tab1
----
11
14
27
query I rowsort
SELECT col2 + col1 * col1 AS col0 FROM tab1
----
157
265
730
query I rowsort
SELECT ALL + col2 + - col1 + - col0 * - col0 FROM tab1
----
37
4143
6483
query IIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2, tab1 AS cor0 WHERE NOT NULL IN ( + cor0.col1 )
----
onlyif mysql # use DIV operator for integer division
query I rowsort label-9196
SELECT DISTINCT - col0 DIV - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35
skipif mysql # not compatible
query I rowsort label-9196
SELECT DISTINCT - col0 / - cor0.col2 AS col0 FROM tab0 AS cor0
----
0
1
35
query I rowsort
SELECT ALL col1 + col1 * col2 FROM tab2 AS cor0
----
1593
663
868
query I rowsort
SELECT cor0.col2 + cor0.col2 FROM tab2, tab2 AS cor0
----
9 values hashing to b24047a4766c1dbbfa5abb9df45d1883
query I rowsort
SELECT DISTINCT + 98 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
98
query I rowsort
SELECT + col0 * + col1 - ( - col2 * + 61 ) AS col2 FROM tab2 AS cor0
----
1864
3661
6188
query I rowsort
SELECT + 98 AS col2 FROM tab0, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to c758e8afbdfa6aae279045b0e9cbacc2
onlyif mysql # use DIV operator for integer division
query I rowsort label-9202
SELECT 46 + col2 DIV + col1 FROM tab0
----
46
46
46
skipif mysql # not compatible
query I rowsort label-9202
SELECT 46 + col2 / + col1 FROM tab0
----
46
46
46
query I rowsort
SELECT + col2 + 12 AS col1 FROM tab1
----
108
66
69
query I rowsort
SELECT 56 FROM tab0, tab1 cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # use DIV operator for integer division
query I rowsort label-9205
SELECT tab0.col1 DIV col0 + - col1 + + col0 AS col1 FROM tab0
----
-1
-59
-60
skipif mysql # not compatible
query I rowsort label-9205
SELECT tab0.col1 / col0 + - col1 + + col0 AS col1 FROM tab0
----
-1
-59
-60
query I rowsort
SELECT - col2 + col2 * col2 AS col1 FROM tab0
----
0
1056
6642
query I rowsort
SELECT ALL + col1 + ( - col1 ) + col2 FROM tab1
----
54
57
96
query I rowsort
SELECT - - col2 * col2 + 73 + + col1 AS col2 FROM tab1 AS cor0
----
3015
3332
9302
query I rowsort
SELECT DISTINCT col2 + 99 AS col1 FROM tab1 AS cor0
----
153
156
195
onlyif mysql # use DIV operator for integer division
query I rowsort label-9210
SELECT ALL col2 DIV 2 FROM tab0 cor0
----
0
16
41
skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL col2 / 2 FROM tab0 cor0
----
0
16
41
onlyif mysql # use DIV operator for integer division
query I rowsort label-9211
SELECT ALL cor0.col1 + + col0 + col2 DIV - col1 AS col0 FROM tab0 AS cor0
----
110
132
180
skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL cor0.col1 + + col0 + col2 / - col1 AS col0 FROM tab0 AS cor0
----
110
132
180
query I rowsort
SELECT + col0 * + col1 + + 29 FROM tab1 AS cor0
----
1069
107
669
query I rowsort
SELECT ALL - col1 * - ( ( col2 ) ) + ( + cor0.col0 * + cor0.col1 + - col2 ) FROM tab0 AS cor0
----
15479
3491
4869
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64
query I rowsort
SELECT - col1 - 72 AS col0 FROM tab2
----
-103
-131
-89
query I rowsort
SELECT + tab0.col0 + - col2 * col1 FROM tab0
----
-2814
-62
-7373
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - col2 + col0 col1 FROM tab2
----
1612
725
844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * ( - cor0.col0 ) col0 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT + - ( col0 ) * - col1 FROM tab2 cor0
----
1343
217
4602
query I rowsort
SELECT + 21 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7
query I rowsort
SELECT 38 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT - ( ( - col1 ) ) FROM tab0
----
86
91
97
query I rowsort
SELECT + - cor0.col2 + - col2 * col0 * col2 AS col2 FROM tab0 AS cor0
----
-26169
-36
-598518
onlyif mysql # use DIV operator for integer division
query I rowsort label-9224
SELECT DISTINCT col1 + + col2 + + 26 DIV col1 FROM tab0 AS cor0
----
119
173
98
skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT col1 + + col2 + + 26 / col1 FROM tab0 AS cor0
----
119
173
98
query I rowsort
SELECT ALL + - col0 * col2 - - col2 AS col1 FROM tab0 AS cor0
----
-34
-7216
-759
query I rowsort
SELECT + + ( col1 ) * + cor0.col2 - + cor0.col1 AS col1 FROM tab2 AS cor0
----
1475
629
806
query I rowsort
SELECT - 84 - col0 * + col0 FROM tab0 AS cor0
----
-1309
-660
-8005
onlyif mysql # use DIV operator for integer division
query I rowsort label-9228
SELECT ALL - 27 DIV cor0.col0 FROM tab1 cor0
----
-9
0
0
skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL - 27 / cor0.col0 FROM tab1 cor0
----
-9
0
0
query I rowsort
SELECT DISTINCT + cor0.col2 * - col2 + - col0 FROM tab2 AS cor0
----
-1523
-736
-754
query I rowsort
SELECT 78 * + col2 + - cor0.col2 AS col2 FROM tab0 cor0
----
2541
6314
77
onlyif mysql # use DIV operator for integer division
query I rowsort label-9231
SELECT ALL cor0.col0 * col0 DIV - col2 + col1 AS col2 FROM tab1 AS cor0
----
-53
-61
26
skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL cor0.col0 * col0 / - col2 + col1 AS col2 FROM tab1 AS cor0
----
-53
-61
26
query I rowsort
SELECT DISTINCT 11 * col1 AS col2 FROM tab1 AS cor0
----
110
143
286
query I rowsort
SELECT ALL col2 * - col1 + - col2 AS col2 FROM tab1 AS cor0
----
-1344
-1458
-627
query I rowsort
SELECT DISTINCT - ( + cor0.col2 ) + + cor0.col1 FROM tab0 AS cor0
----
53
9
96
query I rowsort
SELECT ALL + 94 + col0 * col0 + + 30 FROM tab1 AS cor0
----
133
4220
6524
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 - - cor0.col2 * + 64 col1 FROM tab2 AS cor0
----
-2938
1089
1511
query I rowsort
SELECT DISTINCT + 15 * col1 AS col1 FROM tab2 AS cor0
----
255
465
885
query I rowsort
SELECT - + col0 * col1 - - col0 FROM tab1 AS cor0
----
-576
-75
-960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 49 col2 FROM tab2 AS cor0
----
-11
-22
-23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9240
SELECT + - col1 + + ( 82 ) DIV - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9240
SELECT + - col1 + + ( 82 ) / - col1 AS col0 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT + col2 * col2 + col1 AS col0 FROM tab0 AS cor0
----
1175
6815
98
query I rowsort
SELECT + cor0.col1 - col1 AS col0 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9243
SELECT + col2 - CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
28
47
83
skipif mysql # not compatible
query I rowsort label-9243
SELECT + col2 - CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + cor0.col1 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1261
-1430
-580
query I rowsort
SELECT cor0.col1 * col0 + col2 + col2 FROM tab2 AS cor0
----
1419
271
4654
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9246
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9246
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT ( + col2 ) * + col1 FROM tab1 cor0
----
1248
1404
570
query I rowsort
SELECT DISTINCT + ( + 19 ) AS col0 FROM tab0 AS cor0
----
19
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9249
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 + col2 AS col0 FROM tab1 AS cor0
----
NULL
skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 + col2 AS col0 FROM tab1 AS cor0
----
NULL
query I rowsort
SELECT - ( ( col2 ) ) + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT + + 16 * 83 AS col0 FROM tab1 AS cor0
----
1328
1328
1328
query I rowsort
SELECT + 8 + + col1 AS col1 FROM tab1 AS cor0
----
18
21
34
query I rowsort
SELECT DISTINCT + - ( + 88 ) AS col0 FROM tab1 AS cor0
----
-88
query I rowsort
SELECT + ( - 51 ) + + col1 AS col0 FROM tab1 AS cor0
----
-25
-38
-41
query I rowsort
SELECT - - tab0.col1 + + 62 FROM tab0, tab2, tab0 AS cor0
----
27 values hashing to 223de073f6bbd2b266361415ce3121b2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9256
SELECT - col1 * - CAST( NULL AS DECIMAL ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9256
SELECT - col1 * - CAST ( NULL AS REAL ) + col1 AS col0 FROM tab1
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9257
SELECT - col2 + cor0.col1 + + col1 DIV + 16 FROM tab0 AS cor0
----
102
14
58
skipif mysql # not compatible
query I rowsort label-9257
SELECT - col2 + cor0.col1 + + col1 / + 16 FROM tab0 AS cor0
----
102
14
58
query I rowsort
SELECT + cor1.col2 AS col0 FROM tab2, tab1 AS cor0, tab1 AS cor1, tab1 cor2
----
81 values hashing to 9d355f1f2edc347a359dad00d2d3f886
query I rowsort
SELECT DISTINCT - ( col0 ) * - col0 AS col2 FROM tab1 AS cor0
----
4096
6400
9
query I rowsort
SELECT - 58 * col2 AS col1 FROM tab2 AS cor0
----
-1508
-1566
-2204
query I rowsort
SELECT DISTINCT - col2 * - ( col0 * + col1 ) AS col1 FROM tab1 AS cor0
----
36480
4212
99840
onlyif mysql # use DIV operator for integer division
query I rowsort label-9262
SELECT ALL + col1 + + col1 DIV + col1 FROM tab2 cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9262
SELECT ALL + col1 + + col1 / + col1 FROM tab2 cor0
----
18
32
60
query I rowsort
SELECT + - col1 * col1 AS col2 FROM tab1 cor0
----
-100
-169
-676
skipif mysql # not compatible
query I rowsort
SELECT DISTINCT CAST ( - cor0.col0 AS REAL ) * + tab2.col0 FROM tab2, tab2 AS cor0
----
-49
-546
-553
-6084
-6162
-6241
onlyif mysql # use DIV operator for integer division
query I rowsort label-9265
SELECT - 27 DIV - col2 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9265
SELECT - 27 / - col2 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT - - col2 + - 32 AS col1 FROM tab0 AS cor0
----
-31
1
50
query I rowsort
SELECT - ( + 98 ) FROM tab1 AS cor0
----
-98
-98
-98
query I rowsort
SELECT cor1.col2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c8f9fa9ef0f8702bd382e821378a96d8
query I rowsort
SELECT DISTINCT 4 FROM tab2, tab2 cor0
----
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9270
SELECT + + 66 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9270
SELECT + + 66 / + col0 AS col2 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT cor0.col1 * - 32 * cor0.col0 AS col2 FROM tab1 cor0
----
-20480
-2496
-33280
onlyif mysql # use DIV operator for integer division
query I rowsort label-9272
SELECT + + ( col0 ) + cor0.col0 DIV + 1 AS col1 FROM tab0 AS cor0
----
178
48
70
skipif mysql # not compatible
query I rowsort label-9272
SELECT + + ( col0 ) + cor0.col0 / + 1 AS col1 FROM tab0 AS cor0
----
178
48
70
query I rowsort
SELECT + 70 * col2 + - col2 FROM tab0 cor0
----
2277
5658
69
query I rowsort
SELECT ALL + col1 + + col2 * 94 + 38 AS col0 FROM tab2 AS cor0
----
2541
2607
3627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - cor0.col2 * col1 col1 FROM tab2 cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - ( cor1.col1 ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-86
-91
-97
query I rowsort
SELECT - - 23 + - cor0.col1 * 51 FROM tab2 AS cor0
----
-1558
-2986
-844
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 * col2 col1 FROM tab2 cor0
----
1820
1890
2660
query I rowsort
SELECT - + 69 + col2 AS col1 FROM tab2 AS cor0
----
-31
-42
-43
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9280
SELECT - col1 + CAST( NULL AS SIGNED ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9280
SELECT - col1 + CAST ( NULL AS INTEGER ) * + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + 94 FROM tab2, tab0 AS cor0, tab2 AS cor1
----
27 values hashing to a4d239626cf0546ac1b2f57bb8407089
query I rowsort
SELECT 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1
----
27 values hashing to 92cc3d5daa550304e96c1542787691c7
query I rowsort
SELECT + col0 + cor0.col2 * + col0 FROM tab1 AS cor0
----
165
3712
7760
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + col0 col2 FROM tab2 AS cor0
----
-1264
-210
-4524
onlyif mysql # use DIV operator for integer division
query I rowsort label-9285
SELECT ALL + col0 * - 91 + 20 DIV cor0.col0 - - 44 col2 FROM tab2 cor0
----
-591
-7054
-7145
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL + col0 * - 91 + 20 / cor0.col0 - - 44 col2 FROM tab2 cor0
----
-591
-7054
-7145
onlyif mysql # use DIV operator for integer division
query I rowsort label-9286
SELECT DISTINCT - col2 DIV + 75 + - cor0.col0 * + cor0.col0 - - col1 FROM tab0 AS cor0
----
-1128
-490
-7831
skipif mysql # not compatible
query I rowsort label-9286
SELECT DISTINCT - col2 / + 75 + - cor0.col0 * + cor0.col0 - - col1 FROM tab0 AS cor0
----
-1128
-490
-7831
query I rowsort
SELECT DISTINCT - 2 + 35 FROM tab2 AS cor0
----
33
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + col2 * col0 col1 FROM tab0 AS cor0
----
-62
706
7207
query I rowsort
SELECT + col0 * 71 * col2 AS col0 FROM tab0
----
2485
518158
56232
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 col0 FROM tab2 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab2 AS cor2
----
81 values hashing to c4e6b1f1d28e731664a15a6f7cda4da9
query I rowsort
SELECT col2 - - col0 * + 64 FROM tab0
----
1569
2241
5778
query I rowsort
SELECT ALL 64 * col1 + col0 FROM tab1 AS cor0
----
1667
704
912
query I rowsort
SELECT 63 AS col0 FROM tab1, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 38764a6e696d1a6b5095e29ef84959c0
query I rowsort
SELECT col1 + cor0.col1 * col2 + col0 AS col2 FROM tab1 AS cor0
----
1341
1433
644
query I rowsort
SELECT DISTINCT + 30 FROM tab0, tab2 cor0
----
30
query I rowsort
SELECT - ( tab2.col2 + - col2 ) * - col1 FROM tab2
----
0
0
0
query I rowsort
SELECT ( col1 ) * 79 AS col2 FROM tab2
----
1343
2449
4661
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9298
SELECT DISTINCT + col2 + - col0 / CAST( NULL AS DECIMAL ) + col0 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT + col2 + - col0 / CAST ( NULL AS REAL ) + col0 AS col2 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9299
SELECT ALL + col1 + col1 DIV + 13 + + 8 FROM tab2
----
26
41
71
skipif mysql # not compatible
query I rowsort label-9299
SELECT ALL + col1 + col1 / + 13 + + 8 FROM tab2
----
26
41
71
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab0, tab2 AS cor0, tab2 AS cor1
----
27 values hashing to 20c9213316527d507e26425041e08387
onlyif mysql # use DIV operator for integer division
query I rowsort label-9301
SELECT - col2 DIV col1 - - 7 * + col2 AS col0 FROM tab1
----
376
394
665
skipif mysql # not compatible
query I rowsort label-9301
SELECT - col2 / col1 - - 7 * + col2 AS col0 FROM tab1
----
376
394
665
query I rowsort
SELECT tab2.col1 * - col2 * col1 - col2 AS col2 FROM tab2
----
-11020
-25974
-90532
onlyif mysql # use DIV operator for integer division
query I rowsort label-9303
SELECT + + ( col2 ) DIV - cor0.col0 + 80 FROM tab0 AS cor0
----
79
80
80
skipif mysql # not compatible
query I rowsort label-9303
SELECT + + ( col2 ) / - cor0.col0 + 80 FROM tab0 AS cor0
----
79
80
80
query I rowsort
SELECT DISTINCT - + col1 * + col2 - + col1 AS col0 FROM tab2 AS cor0
----
-1593
-663
-868
query I rowsort
SELECT DISTINCT - 72 * - 15 FROM tab1 AS cor0
----
1080
query I rowsort
SELECT ALL ( - col2 ) + + col1 FROM tab2 AS cor0
----
-21
33
4
query I rowsort
SELECT ALL - col2 * - col1 * cor0.col0 + + col1 AS col1 FROM tab1 cor0
----
36490
4238
99853
query I rowsort
SELECT + ( - ( + col1 ) ) FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT DISTINCT - ( col1 ) + col1 - - col1 * col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ALL 24 AS col2 FROM tab2 AS cor0
----
24
24
24
query I rowsort
SELECT - - 26 * col0 AS col2 FROM tab2 AS cor0
----
182
2028
2054
query I rowsort
SELECT ALL - 78 * - col1 FROM tab2 AS cor0
----
1326
2418
4602
query I rowsort
SELECT DISTINCT + - 28 AS col0 FROM tab1 AS cor0
----
-28
query I rowsort
SELECT - + 25 - - col1 FROM tab0 cor0
----
61
66
72
query I rowsort
SELECT + 79 FROM tab2, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f
query I rowsort
SELECT 61 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 8d4dfe649433a599fc4b10830cc7ce55
query I rowsort
SELECT DISTINCT + - col2 * + col1 * 87 FROM tab2 AS cor0
----
-133458
-56202
-72819
onlyif mysql # use DIV operator for integer division
query I rowsort label-9318
SELECT ALL - - col2 DIV + col1 AS col2 FROM tab1 cor0
----
2
5
7
skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL - - col2 / + col1 AS col2 FROM tab1 cor0
----
2
5
7
query I rowsort
SELECT DISTINCT - col1 * col2 * - col0 FROM tab0 AS cor0
----
3395
664118
68112
query I rowsort
SELECT - cor0.col1 * cor0.col1 + cor1.col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 87871c851c6c9271df0821f1bae9721e
query I rowsort
SELECT DISTINCT 73 + + col2 FROM tab0
----
106
155
74
query I rowsort
SELECT col2 * 10 + tab2.col2 FROM tab2
----
286
297
418
query I rowsort
SELECT - col0 * - col1 + col1 * col0 FROM tab0
----
16198
4128
6790
query I rowsort
SELECT + tab2.col1 * + col2 + col2 FROM tab2
----
1560
684
864
query I rowsort
SELECT + - col2 * ( col0 ) AS col2 FROM tab0 AS cor0
----
-35
-7298
-792
query I rowsort
SELECT DISTINCT - - cor0.col2 + + 17 * + col1 AS col2 FROM tab2 AS cor0
----
1029
327
554
query I rowsort
SELECT ALL col1 * 67 AS col1 FROM tab2 AS cor0
----
1139
2077
3953
query I rowsort
SELECT - col0 * - col2 * - col0 AS col1 FROM tab1 AS cor0
----
-233472
-486
-614400
query I rowsort
SELECT ALL 18 FROM tab1 AS cor0 CROSS JOIN tab2, tab0 AS cor1, tab1 AS cor2
----
81 values hashing to a13db73ec93475d2821cb4a6d0eff298
query I rowsort
SELECT ALL - + 17 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540
query I rowsort
SELECT + 99 AS col2 FROM tab0
----
99
99
99
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 * - 19 col1 FROM tab1
----
171
query I rowsort
SELECT + ( + col1 ) * - cor0.col1 FROM tab1 AS cor0
----
-100
-169
-676
query I rowsort
SELECT - 76 * + col1 FROM tab0 cor0
----
-6536
-6916
-7372
query I rowsort
SELECT + col2 * col0 + 53 * col0 * col2 AS col1 FROM tab2 AS cor0
----
10206
109512
162108
onlyif mysql # use DIV operator for integer division
query I rowsort label-9337
SELECT DISTINCT + cor0.col0 + - cor0.col0 DIV 39 AS col2 FROM tab2, tab0 AS cor0
----
24
35
87
skipif mysql # not compatible
query I rowsort label-9337
SELECT DISTINCT + cor0.col0 + - cor0.col0 / 39 AS col2 FROM tab2, tab0 AS cor0
----
24
35
87
query I rowsort
SELECT - 77 * col0 + - col0 FROM tab0 AS cor0
----
-1872
-2730
-6942
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9339
SELECT col0 / + col1 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9339
SELECT col0 / + col1 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + col1 + col1 * col0 * 93 FROM tab0 AS cor0
----
192038
315832
753298
query I rowsort
SELECT DISTINCT - - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9342
SELECT ALL + col2 DIV - col1 - col1 FROM tab0 cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + col2 / - col1 - col1 FROM tab0 cor0
----
-86
-91
-97
query I rowsort
SELECT - col1 * - col0 + col1 * + col0 AS col1 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT DISTINCT col1 * col0 + col0 * col1 FROM tab1 AS cor0
----
1280
156
2080
query I rowsort
SELECT + + col1 + 27 FROM tab2 AS cor0
----
44
58
86
onlyif mysql # use DIV operator for integer division
query I rowsort label-9346
SELECT col0 * 23 + + col1 DIV col2 AS col1 FROM tab1 AS cor0
----
1472
1840
69
skipif mysql # not compatible
query I rowsort label-9346
SELECT col0 * 23 + + col1 / col2 AS col1 FROM tab1 AS cor0
----
1472
1840
69
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 90 col2 FROM tab1 AS cor0
----
64
77
80
query I rowsort
SELECT - 60 + + col2 FROM tab0 AS cor0
----
-27
-59
22
query I rowsort
SELECT 43 * col1 AS col0 FROM tab0 AS cor0
----
3698
3913
4171
query I rowsort
SELECT + 85 * + cor0.col1 * 23 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c81f5eb097a48695f2ac3fa14b89d38
onlyif mysql # use DIV operator for integer division
query I rowsort label-9351
SELECT DISTINCT cor0.col1 + + col1 DIV - col1 FROM tab0 AS cor0
----
85
90
96
skipif mysql # not compatible
query I rowsort label-9351
SELECT DISTINCT cor0.col1 + + col1 / - col1 FROM tab0 AS cor0
----
85
90
96
query I rowsort
SELECT DISTINCT - ( cor0.col2 ) + ( + col2 ) FROM tab0 cor0
----
0
query I rowsort
SELECT ALL - - 32 * - col0 FROM tab1 AS cor0
----
-2048
-2560
-96
query I rowsort
SELECT - 8 FROM tab0, tab2, tab1 AS cor0
----
27 values hashing to 852581644118629bf652b1aa4b8f4363
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - tab2.col2 * col1 * + col2 + col2 col0 FROM tab2
----
-22572
-24510
-39858
onlyif mysql # use DIV operator for integer division
query I rowsort label-9356
SELECT ALL col2 DIV + 99 AS col0 FROM tab2
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL col2 / + 99 AS col0 FROM tab2
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9357
SELECT 30 DIV - col2 + col1 + ( + ( + col0 ) ) FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-9357
SELECT 30 / - col2 + col1 + ( + ( + col0 ) ) FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT 70 + col0 + - col0 AS col1 FROM tab1 AS cor0
----
70
70
70
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9359
SELECT ALL - CAST( + 56 AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL - CAST ( + 56 AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6
query I rowsort
SELECT DISTINCT 15 FROM tab2, tab1 cor0
----
15
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 CROSS JOIN tab1, tab1 AS cor1, tab0 AS cor2
----
3645 values hashing to 0cc433e09ad9e61562b7840dd1db6f57
query I rowsort
SELECT col0 * cor0.col1 + - col1 AS col0 FROM tab2 cor0
----
1326
186
4543
query I rowsort
SELECT - 1 + + cor0.col0 AS col0 FROM tab2 AS cor0
----
6
77
78
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 25 col2 FROM tab2 AS cor0
----
650
675
950
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 + col1 col1 FROM tab2 cor0
----
44
58
86
query I rowsort
SELECT DISTINCT - col1 * 68 + col0 * col1 AS col1 FROM tab0
----
-3201
-3784
1911
query I rowsort
SELECT cor0.col1 * + tab1.col0 FROM tab1, tab2, tab0 AS cor0
----
27 values hashing to d09890f5ef66bc8fba3ae4a45b718168
onlyif mysql # use DIV operator for integer division
query I rowsort label-9368
SELECT DISTINCT col1 DIV tab1.col0 AS col1 FROM tab1
----
0
8
skipif mysql # not compatible
query I rowsort label-9368
SELECT DISTINCT col1 / tab1.col0 AS col1 FROM tab1
----
0
8
query I rowsort
SELECT 86 * col0 + col1 FROM tab1
----
284
5514
6893
query I rowsort
SELECT - 81 * + 76 + - col2 FROM tab2
----
-6182
-6183
-6194
query I rowsort
SELECT - col0 + col1 * col1 FROM tab1
----
36
673
89
query I rowsort
SELECT DISTINCT + tab2.col0 - 45 AS col1 FROM tab2
----
-38
33
34
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9373
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - tab2.col1 + + col0 * - 8 AS col2 FROM tab2
----
NULL
skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - tab2.col1 + + col0 * - 8 AS col2 FROM tab2
----
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9374
SELECT + + col1 + col1 DIV col1 FROM tab2 cor0
----
18
32
60
skipif mysql # not compatible
query I rowsort label-9374
SELECT + + col1 + col1 / col1 FROM tab2 cor0
----
18
32
60
onlyif mysql # use DIV operator for integer division
query I rowsort label-9375
SELECT + 37 DIV + col1 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9375
SELECT + 37 / + col1 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT - cor0.col2 + + col2 * ( + ( col0 ) ) FROM tab0 cor0
----
34
7216
759
onlyif mysql # use DIV operator for integer division
query I rowsort label-9377
SELECT ( col2 ) + + col2 DIV - col1 + col0 AS col2 FROM tab1 AS cor0
----
116
169
55
skipif mysql # not compatible
query I rowsort label-9377
SELECT ( col2 ) + + col2 / - col1 + col0 AS col2 FROM tab1 AS cor0
----
116
169
55
query I rowsort
SELECT ALL + ( col1 ) + - col0 AS col2 FROM tab0 AS cor0
----
2
62
62
query I rowsort
SELECT + + col1 + - cor0.col0 + cor0.col2 FROM tab1 AS cor0
----
29
3
77
query I rowsort
SELECT ALL + col2 + col1 * + ( cor0.col1 ) AS col0 FROM tab0 AS cor0
----
7429
8363
9410
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col2 + cor0.col0 * - 66 * 4 col1 FROM tab0 AS cor0
----
-23414
-6303
-9239
query I rowsort
SELECT ALL 60 * col2 AS col2 FROM tab1
----
3240
3420
5760
query I rowsort
SELECT ALL + col2 * col1 + + col1 AS col2 FROM tab0 cor0
----
194
2924
7553
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 38 + - col0 col0 FROM tab2 AS cor0
----
-116
-117
-45
query I rowsort
SELECT DISTINCT + cor0.col0 + ( - cor0.col0 ) FROM tab0 AS cor0
----
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 10 col2 FROM tab0 AS cor0
----
860
910
970
query I rowsort
SELECT - + col2 * ( col0 ) + - col2 FROM tab0 cor0
----
-36
-7380
-825
query I rowsort
SELECT ALL + col2 * col0 * col2 + col0 AS col0 FROM tab1 AS cor0
----
208000
737360
8751
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 2 * + cor0.col1 col2 FROM tab0 AS cor0
----
-16198
-4128
-6790
query I rowsort
SELECT + 40 * - ( + col0 ) * + 5 + - 29 * col2 FROM tab1 AS cor0
----
-14453
-18784
-2166
query I rowsort
SELECT DISTINCT col0 + cor0.col2 * - col1 AS col0 FROM tab0 AS cor0
----
-2814
-62
-7373
query I rowsort
SELECT ALL col1 - col1 * - cor0.col1 AS col0 FROM tab0 AS cor0
----
7482
8372
9506
onlyif mysql # use DIV operator for integer division
query I rowsort label-9393
SELECT DISTINCT + ( + col2 ) DIV col2 + ( 66 ) + col0 AS col2 FROM tab0 AS cor0
----
102
156
91
skipif mysql # not compatible
query I rowsort label-9393
SELECT DISTINCT + ( + col2 ) / col2 + ( 66 ) + col0 AS col2 FROM tab0 AS cor0
----
102
156
91
query I rowsort
SELECT - + col1 - - 8 FROM tab2 AS cor0
----
-23
-51
-9
onlyif mysql # use DIV operator for integer division
query I rowsort label-9395
SELECT ALL + col2 * + col0 + - col1 DIV 6 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-1
-2
-4
skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + col2 * + col0 + - col1 / 6 + - col0 * col2 AS col2 FROM tab1 AS cor0
----
-1
-2
-4
query I rowsort
SELECT ALL - col0 * 19 - cor0.col1 FROM tab1 cor0
----
-1226
-1533
-83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * cor1.col1 col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43924ae328745752eae342083cb4d307
query I rowsort
SELECT DISTINCT - 96 + - col0 AS col1 FROM tab2 AS cor0
----
-103
-174
-175
query I rowsort
SELECT ALL + ( + col1 ) + + col2 * col1 AS col2 FROM tab1 cor0
----
1261
1430
580
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9400
SELECT ALL col1 * - col0 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL col1 * - col0 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - - col1 * cor0.col2 * col1 FROM tab0 AS cor0
----
244068
679042
9409
query I rowsort
SELECT ALL + ( + col1 ) * 44 + - col2 + col1 AS col1 FROM tab2 AS cor0
----
1368
2629
727
query I rowsort
SELECT ALL + - 33 + + col0 * col1 FROM tab2 cor0
----
1310
184
4569
query I rowsort
SELECT + 90 + col2 AS col2 FROM tab2 AS cor0
----
116
117
128
onlyif mysql # use DIV operator for integer division
query I rowsort label-9405
SELECT ALL + + col1 DIV col2 + - 10 * 96 FROM tab0 AS cor0
----
-863
-958
-959
skipif mysql # not compatible
query I rowsort label-9405
SELECT ALL + + col1 / col2 + - 10 * 96 FROM tab0 AS cor0
----
-863
-958
-959
onlyif mysql # use DIV operator for integer division
query I rowsort label-9406
SELECT ALL + - col0 DIV cor0.col0 + CAST( - col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-25
-36
-90
skipif mysql # not compatible
query I rowsort label-9406
SELECT ALL + - col0 / cor0.col0 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-25
-36
-90
query I rowsort
SELECT + 57 * + col1 * + 95 AS col2 FROM tab0 AS cor0
----
465690
492765
525255
query I rowsort
SELECT col2 + cor0.col0 * ( + 36 ) FROM tab0 AS cor0
----
1261
3286
897
query I rowsort
SELECT ALL - - col0 * - col2 * + col0 FROM tab0 AS cor0
----
-1225
-19008
-649522
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 72 col0 FROM tab1 AS cor0
----
126
129
168
query I rowsort
SELECT tab0.col2 * col0 + + ( - col2 ) FROM tab0
----
34
7216
759
query I rowsort
SELECT ALL col1 + - ( + col1 ) FROM tab1 cor0
----
0
0
0
query I rowsort
SELECT - col0 + - col1 * cor0.col0 AS col1 FROM tab1 AS cor0
----
-1120
-704
-81
query I rowsort
SELECT - - col1 * - col2 + + col0 FROM tab2 AS cor0
----
-1456
-567
-830
query I rowsort
SELECT DISTINCT ( ( col0 ) ) + 88 * - col1 + col1 AS col1 FROM tab0 AS cor0
----
-7458
-7828
-8404
query I rowsort
SELECT DISTINCT + + col0 - + 33 FROM tab1 AS cor0
----
-30
31
47
onlyif mysql # use DIV operator for integer division
query I rowsort label-9417
SELECT + col2 + 94 DIV cor0.col1 AS col0 FROM tab0 AS cor0
----
1
34
83
skipif mysql # not compatible
query I rowsort label-9417
SELECT + col2 + 94 / cor0.col1 AS col0 FROM tab0 AS cor0
----
1
34
83
query I rowsort
SELECT ALL col0 - + ( col2 ) FROM tab1
----
-16
-51
7
query I rowsort
SELECT ALL 56 + + col2 * col2 FROM tab2 AS cor0
----
1500
732
785
query I rowsort
SELECT DISTINCT cor0.col1 * col0 AS col1 FROM tab0 cor0
----
2064
3395
8099
query I rowsort
SELECT 67 + + cor0.col0 AS col2 FROM tab2 AS cor0
----
145
146
74
query I rowsort
SELECT DISTINCT - + 38 + 87 AS col2 FROM tab2 AS cor0
----
49
query I rowsort
SELECT + - col0 * - 33 - cor0.col2 FROM tab1 AS cor0
----
2055
2544
45
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9424
SELECT + ( col0 * + col1 ) + CAST( NULL AS SIGNED ) * - 43 col1 FROM tab1
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9424
SELECT + ( col0 * + col1 ) + CAST ( NULL AS INTEGER ) * - 43 col1 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + + col2 * col1 * - col1 + - 1 * col2 FROM tab2 AS cor0
----
-11020
-25974
-90532
query I rowsort
SELECT - col2 * cor0.col2 + col1 FROM tab2 AS cor0
----
-1427
-617
-698
onlyif mysql # use DIV operator for integer division
query I rowsort label-9427
SELECT ALL col0 DIV - col2 + col0 * col0 AS col0 FROM tab0
----
1190
576
7920
skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL col0 / - col2 + col0 * col0 AS col0 FROM tab0
----
1190
576
7920
query I rowsort
SELECT ALL + col2 * col0 * col0 + cor0.col1 FROM tab2 AS cor0
----
1354
158243
237175
query I rowsort
SELECT DISTINCT + col2 * - col2 - col1 AS col2 FROM tab2 AS cor0
----
-1461
-735
-760
query I rowsort
SELECT - ( + ( + col0 ) ) + - ( + ( - col1 ) + 30 ) * + ( col2 ) AS col0 FROM tab0 AS cor0
----
1824
32
4913
query I rowsort
SELECT + 68 * + cor0.col2 AS col1 FROM tab1 cor0
----
3672
3876
6528
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9432
SELECT DISTINCT + CAST( tab2.col0 AS SIGNED ) + tab2.col2 * col0 AS col1 FROM tab2
----
196
2106
3081
skipif mysql # not compatible
query I rowsort label-9432
SELECT DISTINCT + CAST ( tab2.col0 AS INTEGER ) + tab2.col2 * col0 AS col1 FROM tab2
----
196
2106
3081
query I rowsort
SELECT DISTINCT - ( col1 ) * - col0 AS col2 FROM tab0
----
2064
3395
8099
query I rowsort
SELECT ALL 14 * tab2.col1 * + 33 AS col1 FROM tab2
----
14322
27258
7854
query I rowsort
SELECT DISTINCT - ( col2 + + tab0.col0 ) * + ( + col1 * col2 ) AS col2 FROM tab0
----
-1276002
-161766
-3492
query I rowsort
SELECT DISTINCT - 52 * col1 + - col0 * 6 FROM tab1 cor0
----
-1156
-1370
-904
query I rowsort
SELECT cor0.col2 * + 93 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to d5481c0e976f89c76e5a8641fa15ecb8
query I rowsort
SELECT 53 * col2 AS col1 FROM tab2
----
1378
1431
2014
query I rowsort
SELECT ALL - 44 * col2 FROM tab1
----
-2376
-2508
-4224
query I rowsort
SELECT - col1 * + col0 * - ( col1 ) FROM tab2
----
22831
271518
6727
query I rowsort
SELECT ALL + - 5 * cor0.col2 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT DISTINCT tab2.col1 + + col2 * 17 FROM tab2
----
490
501
663
query I rowsort
SELECT + col0 * - col2 * 77 AS col1 FROM tab1
----
-12474
-280896
-591360
onlyif mysql # use DIV operator for integer division
query I rowsort label-9444
SELECT col0 DIV + 64 + - 51 FROM tab2
----
-50
-50
-51
skipif mysql # not compatible
query I rowsort label-9444
SELECT col0 / + 64 + - 51 FROM tab2
----
-50
-50
-51
query I rowsort
SELECT DISTINCT col1 + - ( col2 ) AS col2 FROM tab2
----
-21
33
4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9446
SELECT col2 + CAST( NULL AS SIGNED ) * + 96 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9446
SELECT col2 + CAST ( NULL AS INTEGER ) * + 96 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 + - ( - col0 ) + - col0 AS col1 FROM tab2
----
7
78
79
query I rowsort
SELECT ALL + 26 FROM tab2, tab1 AS cor0
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584
query I rowsort
SELECT DISTINCT - col2 + col0 * + col1 * + col2 AS col1 FROM tab1 AS cor0
----
36423
4158
99744
onlyif mysql # use DIV operator for integer division
query I rowsort label-9450
SELECT - col2 + cor0.col1 DIV 72 FROM tab2 AS cor0
----
-26
-27
-38
skipif mysql # not compatible
query I rowsort label-9450
SELECT - col2 + cor0.col1 / 72 FROM tab2 AS cor0
----
-26
-27
-38
query I rowsort
SELECT DISTINCT tab0.col0 + - col0 * - 54 FROM tab0
----
1320
1925
4895
query I rowsort
SELECT DISTINCT col0 + ( + tab2.col1 ) * + col2 AS col1 FROM tab2
----
1612
725
844
query I rowsort
SELECT + + 8 * - col1 * col0 + + col1 * - col0 + + cor0.col0 FROM tab0 AS cor0
----
-18552
-30520
-72802
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 31 * cor0.col0 col0 FROM tab1 AS cor0
----
1984
2480
93
query I rowsort
SELECT DISTINCT col1 + - col0 * + col0 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT ( col1 ) * col1 FROM tab1
----
100
169
676
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 5 * cor0.col2 col1 FROM tab2 AS cor0
----
-130
-135
-190
query I rowsort
SELECT col0 + 46 * + col2 + col0 AS col2 FROM tab1 AS cor0
----
2490
2750
4576
query I rowsort
SELECT + + ( 34 ) * col2 FROM tab2 AS cor0
----
1292
884
918
query I rowsort
SELECT ( 9 ) - col0 FROM tab0 cor0
----
-15
-26
-80
query I rowsort
SELECT + ( ( + col0 ) ) + col1 FROM tab2 AS cor0
----
137
38
96
query I rowsort
SELECT ALL - - cor0.col2 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT + 82 * + col2 - + col1 FROM tab2 AS cor0
----
2073
2183
3099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9464
SELECT DISTINCT col2 DIV - col0 + + col0 AS col1 FROM tab1
----
-15
64
79
skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT col2 / - col0 + + col0 AS col1 FROM tab1
----
-15
64
79
query I rowsort
SELECT - col0 * - 8 + cor0.col1 * col0 AS col1 FROM tab2 cor0
----
1975
273
5226
query I rowsort
SELECT - - col2 + ( cor0.col0 ) * col1 * 17 FROM tab2 AS cor0
----
22869
3716
78260
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - col2 col2 FROM tab0 AS cor0
----
-164
-2
-66
query I rowsort
SELECT DISTINCT + col1 * 33 * col1 - col2 FROM tab1 AS cor0
----
22254
3243
5481
query I rowsort
SELECT ALL col1 + col1 * + 35 FROM tab2 AS cor0
----
1116
2124
612
query I rowsort
SELECT cor0.col0 + + 45 FROM tab0 AS cor0
----
134
69
80
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9471
SELECT + col1 * CAST( NULL AS SIGNED ) - - col1 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9471
SELECT + col1 * CAST ( NULL AS INTEGER ) - - col1 * cor0.col1 FROM tab0 cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9472
SELECT col1 / ( - ( - col1 ) ) + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9472
SELECT col1 / ( - ( - col1 ) ) + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL
query I rowsort
SELECT - cor0.col0 + 80 FROM tab1, tab0 AS cor0
----
9 values hashing to 12ccbf9b02aaf8efa99cd7401746c043
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9474
SELECT ALL - CAST( - 25 AS SIGNED ) * + col0 - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
2143
567
874
skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL - CAST ( - 25 AS INTEGER ) * + col0 - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
2143
567
874
query I rowsort
SELECT ALL - - 10 + - col0 * - col1 FROM tab2 AS cor0
----
1353
227
4612
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9476
SELECT ALL - CAST( - col0 AS SIGNED ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL - CAST ( - col0 AS INTEGER ) + col1 AS col1 FROM tab1 AS cor0
----
29
74
93
query I rowsort
SELECT - + tab0.col2 AS col2 FROM tab0, tab1, tab1 AS cor0
----
27 values hashing to 6a43e7f15194af73fe1c83385e6ebebc
query I rowsort
SELECT ALL 16 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to ee5bde9f68ee828e8cd86b0d590090bc
onlyif mysql # use DIV operator for integer division
query I rowsort label-9479
SELECT ALL + col0 DIV col1 + col0 FROM tab1 AS cor0
----
3
70
86
skipif mysql # not compatible
query I rowsort label-9479
SELECT ALL + col0 / col1 + col0 FROM tab1 AS cor0
----
3
70
86
query I rowsort
SELECT 47 AS col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7
query I rowsort
SELECT 43 * - col2 AS col1 FROM tab1 AS cor0
----
-2322
-2451
-4128
query I rowsort
SELECT - 90 * col0 AS col2 FROM tab1 AS cor0
----
-270
-5760
-7200
query I rowsort
SELECT - col0 * col0 - - 25 AS col0 FROM tab2 AS cor0
----
-24
-6059
-6216
query I rowsort
SELECT 86 FROM tab0, tab1, tab2 AS cor0
----
27 values hashing to ed1a39c2752ca3723602e4a92c54bbc4
query I rowsort
SELECT + 43 AS col0 FROM tab2, tab2 cor0
----
9 values hashing to 199105619049271147956de52e7f5ed4
query I rowsort
SELECT DISTINCT + 45 * + 25 FROM tab0
----
1125
query I rowsort
SELECT + 2 FROM tab1, tab2, tab2 AS cor0
----
27 values hashing to 535345c50a19fdab97ce05d1837b1f09
onlyif mysql # use DIV operator for integer division
query I rowsort label-9488
SELECT - cor0.col1 DIV + col0 + col0 DIV 1 AS col2 FROM tab0 AS cor0
----
21
33
88
skipif mysql # not compatible
query I rowsort label-9488
SELECT - cor0.col1 / + col0 + col0 / 1 AS col2 FROM tab0 AS cor0
----
21
33
88
onlyif mysql # use DIV operator for integer division
query I rowsort label-9489
SELECT 52 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9489
SELECT 52 / col0 AS col2 FROM tab0 AS cor0
----
0
1
2
query I rowsort
SELECT col2 + col0 * - ( + 19 ) AS col2 FROM tab0 AS cor0
----
-1609
-423
-664
query I rowsort
SELECT ALL + col1 * + 25 AS col0 FROM tab2 AS cor0
----
1475
425
775
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * ( - 68 ) + cor0.col0 col1 FROM tab1 AS cor0
----
-3669
-3812
-6448
query I rowsort
SELECT DISTINCT - - cor0.col1 + - col1 * - 31 FROM tab2 AS cor0
----
1888
544
992
onlyif mysql # use DIV operator for integer division
query I rowsort label-9494
SELECT ALL - col2 DIV cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
skipif mysql # not compatible
query I rowsort label-9494
SELECT ALL - col2 / cor0.col0 AS col1 FROM tab0 AS cor0
----
-1
0
0
query I rowsort
SELECT - 97 + + col1 FROM tab1
----
-71
-84
-87
query I rowsort
SELECT + tab2.col0 - col2 * ( + 89 ) FROM tab2
----
-2236
-2396
-3303
query I rowsort
SELECT 23 + - tab0.col2 AS col1 FROM tab0
----
-10
-59
22
onlyif mysql # use DIV operator for integer division
query I rowsort label-9498
SELECT DISTINCT - col2 * col0 + 4 DIV - col1 AS col0 FROM tab2
----
-189
-2028
-3002
skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT - col2 * col0 + 4 / - col1 AS col0 FROM tab2
----
-189
-2028
-3002
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 col2 FROM tab1, tab1 cor0
----
-34
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - tab2.col1 * 25 col1 FROM tab2
----
-1475
-425
-775
query I rowsort
SELECT ALL - col2 + 2 FROM tab2 AS cor0
----
-24
-25
-36
onlyif mysql # use DIV operator for integer division
query I rowsort label-9502
SELECT ALL + col0 DIV + col1 AS col1 FROM tab2 AS cor0
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + col0 / + col1 AS col1 FROM tab2 AS cor0
----
0
1
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9503
SELECT DISTINCT - - cor0.col2 * 39 DIV col0 + col2 * - col0 FROM tab2 AS cor0
----
-2015
-2984
-39
skipif mysql # not compatible
query I rowsort label-9503
SELECT DISTINCT - - cor0.col2 * 39 / col0 + col2 * - col0 FROM tab2 AS cor0
----
-2015
-2984
-39
query I rowsort
SELECT DISTINCT col0 * + 54 FROM tab1 AS cor0
----
162
3456
4320
query I rowsort
SELECT + - col2 + - 24 FROM tab1 AS cor0
----
-120
-78
-81
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9506
SELECT ALL - col1 / CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9506
SELECT ALL - col1 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + col0 - + col2 AS col1 FROM tab2 cor0
----
-20
41
52
query I rowsort
SELECT cor0.col0 + - 5 * cor0.col1 * col0 FROM tab1 AS cor0
----
-3136
-387
-5120
query I rowsort
SELECT - col2 - - 39 AS col2 FROM tab2 cor0
----
1
12
13
query I rowsort
SELECT ALL col1 + + 59 * + col0 AS col2 FROM tab0 AS cor0
----
1502
2162
5342
onlyif mysql # use DIV operator for integer division
query I rowsort label-9511
SELECT col1 * col2 DIV col2 + 58 FROM tab0 AS cor0
----
144
149
155
skipif mysql # not compatible
query I rowsort label-9511
SELECT col1 * col2 / col2 + 58 FROM tab0 AS cor0
----
144
149
155
query I rowsort
SELECT col2 + col2 * 36 AS col0 FROM tab1
----
1998
2109
3552
query I rowsort
SELECT + cor0.col2 + + cor0.col1 FROM tab1 cor0
----
109
67
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9514
SELECT DISTINCT 66 DIV col1 FROM tab1
----
2
5
6
skipif mysql # not compatible
query I rowsort label-9514
SELECT DISTINCT 66 / col1 FROM tab1
----
2
5
6
query I rowsort
SELECT ALL + col1 * col0 + - 72 FROM tab2 AS cor0
----
1271
145
4530
query I rowsort
SELECT cor1.col0 - 96 FROM tab1, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 7e460cff20d4765ab9140ff0ef53ab1d
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 + col2 * tab1.col2 * col2 col2 FROM tab1
----
157527
185256
884799
query I rowsort
SELECT ( col0 * col1 + col2 ) FROM tab0
----
2097
3396
8181
query I rowsort
SELECT - - col1 * + col2 * col0 FROM tab2 AS cor0
----
119652
51034
5859
query I rowsort
SELECT + 88 * - col0 AS col1 FROM tab0 AS cor0
----
-2112
-3080
-7832
query I rowsort
SELECT ALL ( col2 * - col2 + col1 ) FROM tab0
----
-1003
-6633
96
query I rowsort
SELECT DISTINCT tab1.col2 * cor1.col0 + 28 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
9 values hashing to 4d7046eeb85da85868aac990f0825833
query I rowsort
SELECT ALL - tab1.col2 AS col2 FROM tab1, tab0 AS cor0
----
9 values hashing to 0dc9bbe392d52df93d2a115d7f622dba
query I rowsort
SELECT ALL - + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-35
-7298
-792
onlyif mysql # use DIV operator for integer division
query I rowsort label-9525
SELECT DISTINCT - 43 DIV col0 AS col0 FROM tab0 AS cor0
----
-1
0
skipif mysql # not compatible
query I rowsort label-9525
SELECT DISTINCT - 43 / col0 AS col0 FROM tab0 AS cor0
----
-1
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9526
SELECT + cor0.col1 DIV col0 AS col1 FROM tab2 AS cor0
----
0
0
4
skipif mysql # not compatible
query I rowsort label-9526
SELECT + cor0.col1 / col0 AS col1 FROM tab2 AS cor0
----
0
0
4
query I rowsort
SELECT + - col2 * col1 + + col2 AS col2 FROM tab0 cor0
----
-2805
-7380
-96
query I rowsort
SELECT + 57 + cor0.col1 FROM tab0 AS cor0
----
143
148
154
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 col1 FROM tab2 AS cor0
----
1534
646
837
query I rowsort
SELECT 88 * col2 + - cor0.col0 + + cor0.col1 FROM tab0 cor0
----
150
2966
7218
query I rowsort
SELECT ALL + col1 * col2 + - col1 * col2 FROM tab2 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9532
SELECT - col0 DIV col1 col0 FROM tab0 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9532
SELECT - col0 / col1 col0 FROM tab0 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + col0 + - col2 * ( col1 ) * col2 FROM tab2 AS cor0
----
-22592
-24469
-39806
query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab1, tab0 AS cor0
----
44
query I rowsort
SELECT DISTINCT - col1 * 5 + col0 AS col1 FROM tab2
----
-148
-217
-6
query I rowsort
SELECT + cor0.col1 * tab2.col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9337cab14248fdf0584f0cfce23b6e23
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + cor0.col1 - + col1 col2 FROM tab2 AS cor0
----
-118
-34
-62
onlyif mysql # use DIV operator for integer division
query I rowsort label-9538
SELECT col2 DIV + col1 - col0 FROM tab1 AS cor0
----
-1
-59
-73
skipif mysql # not compatible
query I rowsort label-9538
SELECT col2 / + col1 - col0 FROM tab1 AS cor0
----
-1
-59
-73
query I rowsort
SELECT ALL cor0.col0 + 7 * ( cor0.col1 ) + - col0 FROM tab1 AS cor0
----
182
70
91
query I rowsort
SELECT ALL - col0 + + col2 + - col0 FROM tab2 cor0
----
-120
-130
13
query I rowsort
SELECT DISTINCT - col2 + + 91 * col2 FROM tab2 AS cor0
----
2340
2430
3420
query I rowsort
SELECT DISTINCT + + col2 * - 48 AS col1 FROM tab1 AS cor0
----
-2592
-2736
-4608
onlyif mysql # use DIV operator for integer division
query I rowsort label-9543
SELECT - col2 DIV ( + col2 ) + - ( + cor0.col0 ) DIV - col2 + 65 FROM tab0 AS cor0
----
64
65
99
skipif mysql # not compatible
query I rowsort label-9543
SELECT - col2 / ( + col2 ) + - ( + cor0.col0 ) / - col2 + 65 FROM tab0 AS cor0
----
64
65
99
query I rowsort
SELECT - 44 + ( col0 ) + col1 FROM tab2 cor0
----
-6
52
93
onlyif mysql # use DIV operator for integer division
query I rowsort label-9545
SELECT ALL col0 DIV col1 + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
134
166
6
skipif mysql # not compatible
query I rowsort label-9545
SELECT ALL col0 / col1 + cor0.col0 + col0 AS col0 FROM tab1 AS cor0
----
134
166
6
query I rowsort
SELECT + - 74 + 86 + + col2 FROM tab0 AS cor0
----
13
45
94
query I rowsort
SELECT ALL - ( - col0 ) * col1 AS col0 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT ( - col1 ) + + cor0.col0 * - col0 + - col0 FROM tab0 AS cor0
----
-1357
-686
-8101
query I rowsort
SELECT ALL + 99 + + 11 * cor0.col0 FROM tab2 AS cor0
----
176
957
968
query I rowsort
SELECT 38 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7
query I rowsort
SELECT + - 83 + + cor0.col0 - - col1 FROM tab2 cor0
----
-45
13
54
query I rowsort
SELECT ALL - tab1.col1 - ( - col0 ) * + tab1.col1 AS col0 FROM tab1
----
1027
52
630
query I rowsort
SELECT ALL - - col1 + 4 * - col2 FROM tab0 AS cor0
----
-237
-46
93
query I rowsort
SELECT - col2 * cor0.col0 + col1 AS col2 FROM tab1 AS cor0
----
-136
-3638
-7667
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - + col1 col1 FROM tab2 AS cor0
----
0
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col0 + col1 * col0 col1 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab1 AS cor0
----
85
query I rowsort
SELECT - ( - 93 ) - col1 FROM tab1 cor0
----
67
80
83
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + cor0.col0 * cor0.col2 + + col1 col1 FROM tab0 AS cor0
----
132
7389
878
query I rowsort
SELECT ALL + 31 FROM tab0, tab2 AS cor0 CROSS JOIN tab1
----
27 values hashing to c3c6f92f0ca72d71793339f88a57e336
query I rowsort
SELECT - 55 - - col2 AS col1 FROM tab2 AS cor0
----
-17
-28
-29
query I rowsort
SELECT + + ( + col0 ) * + col1 * - col1 + - col2 - cor0.col2 * - col1 AS col0 FROM tab1 AS cor0
----
-12368
-5887
-678
query I rowsort
SELECT + 4 + col2 FROM tab2 AS cor0
----
30
31
42
query I rowsort
SELECT - ( tab2.col2 + col2 ) AS col2 FROM tab2
----
-52
-54
-76
query I rowsort
SELECT - + cor0.col0 + col0 * col1 AS col2 FROM tab1 cor0
----
576
75
960
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + ( - col1 ) col2 FROM tab1 AS cor0
----
-20
-26
-52
query I rowsort
SELECT ALL cor0.col0 * 61 AS col0 FROM tab2, tab2 cor0, tab0 AS cor1
----
27 values hashing to 233083f3fa81c79e1f5705a062dea5f1
query I rowsort
SELECT + col2 * ( col2 * cor0.col0 ) FROM tab0 AS cor0
----
26136
35
598436
onlyif mysql # use DIV operator for integer division
query I rowsort label-9569
SELECT - col0 DIV ( col1 ) AS col2 FROM tab1
----
-6
-6
0
skipif mysql # not compatible
query I rowsort label-9569
SELECT - col0 / ( col1 ) AS col2 FROM tab1
----
-6
-6
0
query I rowsort
SELECT col1 + 32 + - ( + col1 ) AS col0 FROM tab0
----
32
32
32
query I rowsort
SELECT DISTINCT + ( 51 ) FROM tab2, tab0 cor0
----
51
query I rowsort
SELECT ALL col2 * col1 * - col2 AS col2 FROM tab1
----
-119808
-32490
-75816
query I rowsort
SELECT DISTINCT - ( - col2 + col0 ) AS col1 FROM tab1
----
-7
16
51
query I rowsort
SELECT ALL - - ( 55 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9575
SELECT + cor0.col0 * + CAST( 58 AS SIGNED ) - col1 AS col2 FROM tab2 cor0
----
375
4465
4565
skipif mysql # not compatible
query I rowsort label-9575
SELECT + cor0.col0 * + CAST ( 58 AS INTEGER ) - col1 AS col2 FROM tab2 cor0
----
375
4465
4565
query I rowsort
SELECT ALL - 64 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e
query I rowsort
SELECT - col2 * col1 + - col2 AS col1 FROM tab1
----
-1344
-1458
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 + - ( col1 ) * col1 col0 FROM tab0
----
-6604
-9374
-983
query I rowsort
SELECT tab1.col1 * - 16 * col0 AS col2 FROM tab1
----
-10240
-1248
-16640
query I rowsort
SELECT - - col1 - - col2 FROM tab2 AS cor0
----
55
58
85
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - cor0.col0 * + 60 * col2 col2 FROM tab0 AS cor0
----
-2003
-437789
-47434
onlyif mysql # use DIV operator for integer division
query I rowsort label-9582
SELECT DISTINCT - col0 DIV 95 AS col1 FROM tab1 AS cor0
----
0
skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT - col0 / 95 AS col1 FROM tab1 AS cor0
----
0
query I rowsort
SELECT DISTINCT col1 * - col1 * - col1 + col2 AS col0 FROM tab2 cor0
----
205405
29818
4951
query I rowsort
SELECT col1 * + col2 * 40 + + col2 FROM tab2 AS cor0
----
25878
33507
61386
query I rowsort
SELECT - ( - cor1.col2 + + 98 ) FROM tab0, tab0 AS cor0, tab0 AS cor1
----
27 values hashing to 0e5cfe380ddda526141750c589926d60
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 + ( col0 ) col2 FROM tab2 AS cor0
----
-24
19
62
query I rowsort
SELECT ALL - 47 * 74 FROM tab1
----
-3478
-3478
-3478
query I rowsort
SELECT ALL + cor1.col0 AS col1 FROM tab2, tab1 AS cor0, tab2 AS cor1
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
query I rowsort
SELECT DISTINCT tab2.col0 AS col2 FROM tab2, tab1, tab0 AS cor0
----
7
78
79
query I rowsort
SELECT + col0 + + cor0.col0 FROM tab1 cor0
----
128
160
6
query I rowsort
SELECT ALL - 15 * col1 + + ( + 22 ) * - col1 AS col2 FROM tab2 cor0
----
-1147
-2183
-629
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col2 * + col2 col2 FROM tab2 AS cor0
----
1444
676
729
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 * col2 col2 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + + cor0.col0 + cor0.col0 * cor0.col1 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT ( cor0.col2 ) * + col0 + 31 FROM tab2 AS cor0
----
2059
220
3033
query I rowsort
SELECT DISTINCT - cor0.col2 + - cor0.col1 AS col1 FROM tab2 AS cor0
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - ( - ( + col0 ) ) FROM tab1
----
3
64
80
query I rowsort
SELECT ALL 38 * + col0 FROM tab0 cor0
----
1330
3382
912
query I rowsort
SELECT DISTINCT - + col0 + + col2 * - col1 FROM tab0 AS cor0
----
-132
-2862
-7551
query I rowsort
SELECT cor0.col0 * - col2 AS col1 FROM tab1 AS cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT ( + col2 ) + - col1 FROM tab2 AS cor0
----
-33
-4
21
query I rowsort
SELECT ALL + ( col0 ) + ( - col0 ) FROM tab1 AS cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9603
SELECT ALL cor0.col2 DIV - col1 FROM tab1 cor0
----
-2
-5
-7
skipif mysql # not compatible
query I rowsort label-9603
SELECT ALL cor0.col2 / - col1 FROM tab1 cor0
----
-2
-5
-7
query I rowsort
SELECT ALL + - col0 + + col2 * - 58 FROM tab2 AS cor0
----
-1573
-1586
-2283
query I rowsort
SELECT DISTINCT - col2 * - ( ( col2 ) ) + 26 * col0 AS col1 FROM tab2 AS cor0
----
2704
3498
911
query I rowsort
SELECT DISTINCT + col2 + + ( col2 ) FROM tab2 AS cor0
----
52
54
76
query I rowsort
SELECT col1 * - col0 + 49 FROM tab0
----
-2015
-3346
-8050
onlyif mysql # use DIV operator for integer division
query I rowsort label-9608
SELECT + col0 + + col2 DIV + col1 AS col2 FROM tab1
----
5
69
87
skipif mysql # not compatible
query I rowsort label-9608
SELECT + col0 + + col2 / + col1 AS col2 FROM tab1
----
5
69
87
query I rowsort
SELECT + col2 * - col1 + + col2 AS col1 FROM tab1
----
-1152
-1350
-513
query I rowsort
SELECT 91 + col0 AS col1 FROM tab0
----
115
126
180
query I rowsort
SELECT 54 AS col0 FROM tab1
----
54
54
54
query I rowsort
SELECT DISTINCT + 26 + 32 FROM tab0 AS cor0
----
58
query I rowsort
SELECT DISTINCT - - col2 * col1 AS col0 FROM tab0 cor0
----
2838
7462
97
query I rowsort
SELECT - col1 * + 97 AS col2 FROM tab1 AS cor0
----
-1261
-2522
-970
query I rowsort
SELECT + ( - 84 ) + col1 * - col1 AS col0 FROM tab2 cor0
----
-1045
-3565
-373
onlyif mysql # use DIV operator for integer division
query I rowsort label-9616
SELECT ALL + 28 DIV 74 FROM tab1 AS cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL + 28 / 74 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT DISTINCT + + col1 * ( col1 ) FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT 1 + + col0 * col1 * + 1 FROM tab0 AS cor0
----
2065
3396
8100
query I rowsort
SELECT ALL + col0 + 18 AS col1 FROM tab2 AS cor0
----
25
96
97
onlyif mysql # use DIV operator for integer division
query I rowsort label-9620
SELECT DISTINCT + col2 + col2 DIV + cor0.col0 - - col2 * + col2 FROM tab0 AS cor0
----
1123
2
6806
skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT + col2 + col2 / + cor0.col0 - - col2 * + col2 FROM tab0 AS cor0
----
1123
2
6806
query I rowsort
SELECT col0 * - ( col0 ) + col1 AS col2 FROM tab1
----
-4086
-6387
17
query I rowsort
SELECT ALL col2 + + 47 + col0 FROM tab0
----
104
218
83
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9623
SELECT + CAST( NULL AS DECIMAL ) col0 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9623
SELECT + CAST ( NULL AS REAL ) col0 FROM tab0, tab1 cor0 CROSS JOIN tab2
----
27 values hashing to 16be8868a1e6f4e8850509f9327afe90
onlyif mysql # use DIV operator for integer division
query I rowsort label-9624
SELECT + ( + col0 ) * col1 + col0 DIV + col0 FROM tab0
----
2065
3396
8100
skipif mysql # not compatible
query I rowsort label-9624
SELECT + ( + col0 ) * col1 + col0 / + col0 FROM tab0
----
2065
3396
8100
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 CROSS JOIN tab2, tab1 AS cor1, tab2 AS cor2, tab1 AS cor3
----
13122 values hashing to 8b8daa54b995eb410d39bcb095b21ef3
query I rowsort
SELECT + cor0.col0 * - col1 + col2 + col1 FROM tab1 AS cor0
----
-573
-931
2
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9627
SELECT DISTINCT - CAST( 75 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
4050
4275
7200
skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT - CAST ( 75 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
4050
4275
7200
onlyif mysql # use DIV operator for integer division
query I rowsort label-9628
SELECT - col0 * + 81 + col0 + ( col0 ) DIV col0 AS col1 FROM tab0 AS cor0
----
-1919
-2799
-7119
skipif mysql # not compatible
query I rowsort label-9628
SELECT - col0 * + 81 + col0 + ( col0 ) / col0 AS col1 FROM tab0 AS cor0
----
-1919
-2799
-7119
query I rowsort
SELECT - col2 + col1 * col2 AS col0 FROM tab2 AS cor0
----
1508
608
810
query I rowsort
SELECT + + col1 * + col2 + col0 * cor0.col1 * 83 + + 32 AS col0 FROM tab0 AS cor0
----
174182
281914
679711
query I rowsort
SELECT col2 * 56 FROM tab2 AS cor0
----
1456
1512
2128
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9632
SELECT + cor0.col0 - CAST( col1 AS SIGNED ) FROM tab0 cor0
----
-2
-62
-62
skipif mysql # not compatible
query I rowsort label-9632
SELECT + cor0.col0 - CAST ( col1 AS INTEGER ) FROM tab0 cor0
----
-2
-62
-62
query I rowsort
SELECT DISTINCT + col2 + col2 * cor0.col1 AS col2 FROM tab2 AS cor0
----
1560
684
864
onlyif mysql # use DIV operator for integer division
query I rowsort label-9634
SELECT - col1 + - 18 DIV + col1 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9634
SELECT - col1 + - 18 / + col1 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT + col1 + 45 FROM tab2 AS cor0
----
104
62
76
query I rowsort
SELECT DISTINCT + col2 * 94 * - 48 AS col1 FROM tab1 AS cor0
----
-243648
-257184
-433152
onlyif mysql # use DIV operator for integer division
query I rowsort label-9637
SELECT + cor0.col1 + + 94 DIV - col1 col0 FROM tab0 AS cor0
----
85
90
97
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9637
SELECT + cor0.col1 + + 94 / - col1 col0 FROM tab0 AS cor0
----
85
90
97
query I rowsort
SELECT DISTINCT + col2 + col1 + + 18 FROM tab0
----
116
137
191
query I rowsort
SELECT col2 + - col1 * + col0 + + 94 * + col0 AS col0 FROM tab0
----
-104
225
349
onlyif mysql # use DIV operator for integer division
query I rowsort label-9640
SELECT - 88 DIV col0 + col1 FROM tab2
----
16
19
58
skipif mysql # not compatible
query I rowsort label-9640
SELECT - 88 / col0 + col1 FROM tab2
----
16
19
58
query I rowsort
SELECT - + ( - 77 ) FROM tab0, tab2 AS cor0, tab2, tab0 AS cor1
----
81 values hashing to 38f487c2147ee2fe05527e38c5e0503b
query I rowsort
SELECT + col0 * - 57 AS col1 FROM tab2
----
-399
-4446
-4503
onlyif mysql # use DIV operator for integer division
query I rowsort label-9643
SELECT + col1 DIV - col2 + - ( col2 ) FROM tab0 AS cor0
----
-35
-83
-98
skipif mysql # not compatible
query I rowsort label-9643
SELECT + col1 / - col2 + - ( col2 ) FROM tab0 AS cor0
----
-35
-83
-98
query I rowsort
SELECT ALL cor0.col0 + col0 AS col1 FROM tab1 AS cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9645
SELECT - col0 DIV col1 col0 FROM tab1 cor0
----
-6
-6
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9645
SELECT - col0 / col1 col0 FROM tab1 cor0
----
-6
-6
0
query I rowsort
SELECT ALL + cor0.col2 + - ( 89 ) AS col2 FROM tab0 AS cor0
----
-56
-7
-88
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 - col1 col1 FROM tab0 AS cor0
----
1978
3298
8008
query I rowsort
SELECT col2 + col1 * - cor0.col2 FROM tab1 AS cor0
----
-1152
-1350
-513
onlyif mysql # use DIV operator for integer division
query I rowsort label-9649
SELECT ALL col1 * col1 + col1 DIV col1 FROM tab0 AS cor0
----
7397
8282
9410
skipif mysql # not compatible
query I rowsort label-9649
SELECT ALL col1 * col1 + col1 / col1 FROM tab0 AS cor0
----
7397
8282
9410
query I rowsort
SELECT - tab1.col0 * 42 FROM tab1
----
-126
-2688
-3360
query I rowsort
SELECT DISTINCT col0 * ( - 28 ) AS col0 FROM tab0
----
-2492
-672
-980
query I rowsort
SELECT 56 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9653
SELECT + + cor0.col1 + col1 * CAST( + ( - cor0.col2 ) AS SIGNED ) * + col2 AS col2 FROM tab2 cor0
----
-22568
-24531
-39825
skipif mysql # not compatible
query I rowsort label-9653
SELECT + + cor0.col1 + col1 * CAST ( + ( - cor0.col2 ) AS INTEGER ) * + col2 AS col2 FROM tab2 cor0
----
-22568
-24531
-39825
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 65 * 79 - col2 * col1 col0 FROM tab1
----
3731
3887
4565
query I rowsort
SELECT ALL + cor0.col1 AS col0 FROM tab0, tab2 cor0, tab1 cor1
----
27 values hashing to 7599b480125de521efed71b5b2413c7d
query I rowsort
SELECT ALL tab2.col2 + - tab2.col0 AS col2 FROM tab2
----
-41
-52
20
onlyif mysql # use DIV operator for integer division
query I rowsort label-9657
SELECT - + cor0.col2 DIV col2 FROM tab0 AS cor0
----
-1
-1
-1
skipif mysql # not compatible
query I rowsort label-9657
SELECT - + cor0.col2 / col2 FROM tab0 AS cor0
----
-1
-1
-1
query I rowsort
SELECT + 10 AS col2 FROM tab1, tab2 cor0, tab0 cor1
----
27 values hashing to 0fe3e45a9ecd49584c2ab442100d5176
onlyif mysql # use DIV operator for integer division
query I rowsort label-9659
SELECT + cor0.col2 DIV cor0.col1 FROM tab2 cor0
----
0
0
2
skipif mysql # not compatible
query I rowsort label-9659
SELECT + cor0.col2 / cor0.col1 FROM tab2 cor0
----
0
0
2
query I rowsort
SELECT tab2.col2 * - col0 + + tab2.col2 + - ( + col1 ) AS col0 FROM tab2
----
-193
-2061
-2981
onlyif mysql # use DIV operator for integer division
query I rowsort label-9661
SELECT DISTINCT + - col1 DIV col2 + - col0 FROM tab0 AS cor0
----
-132
-26
-90
skipif mysql # not compatible
query I rowsort label-9661
SELECT DISTINCT + - col1 / col2 + - col0 FROM tab0 AS cor0
----
-132
-26
-90
query I rowsort
SELECT DISTINCT - col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
-1326
-186
-4543
query I rowsort
SELECT ALL 92 * col1 + + col2 FROM tab2 cor0
----
1602
2879
5454
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 67 * - col2 col1 FROM tab2 AS cor0
----
-1742
-1809
-2546
query I rowsort
SELECT col1 * + cor0.col2 AS col0 FROM tab1 AS cor0
----
1248
1404
570
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2, tab0 cor0, tab2 cor1, tab0, tab1 AS cor2
----
3645 values hashing to 29937e0f604055b7324ce0c354a5e778
query I rowsort
SELECT ALL col2 + cor0.col1 * + col2 FROM tab1 AS cor0
----
1344
1458
627
query I rowsort
SELECT ALL - + col2 + + cor0.col0 FROM tab0 cor0
----
-9
34
7
query I rowsort
SELECT - - col1 + + col2 FROM tab1 cor0
----
109
67
80
query I rowsort
SELECT ALL + 7 + col1 AS col0 FROM tab2 AS cor0
----
24
38
66
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - col2 * 82 col1 FROM tab1 AS cor0
----
-4374
-4617
-7776
query I rowsort
SELECT - cor0.col0 + 25 FROM tab1 AS cor0
----
-39
-55
22
query I rowsort
SELECT col1 + - cor0.col0 * - cor0.col2 FROM tab1 AS cor0
----
188
3658
7693
query I rowsort
SELECT + cor0.col1 + 74 + - ( - col1 ) AS col1 FROM tab2 AS cor0
----
108
136
192
query IIIIIIIIIIIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0, tab2 AS cor1, tab2, tab1 AS cor2
----
3645 values hashing to 9b60cb1db2fb2fa5700b0e572b4b6546
query I rowsort
SELECT + - col1 * 36 + + col1 * col2 FROM tab1 AS cor0
----
210
468
780
query I rowsort
SELECT - col1 - - ( col1 ) * + col2 FROM tab0 AS cor0
----
0
2752
7371
query I rowsort
SELECT ALL col1 + + col2 - col2 AS col0 FROM tab0 AS cor0
----
86
91
97
query I rowsort
SELECT DISTINCT - ( ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-1
-33
-82
query I rowsort
SELECT DISTINCT + ( - 49 ) FROM tab2, tab0, tab0 AS cor0
----
-49
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9681
SELECT ALL - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT col2 * + tab1.col0 * - col1 + col0 AS col0 FROM tab1
----
-36416
-4209
-99760
query I rowsort
SELECT col0 + + 5 * col1 AS col1 FROM tab0 AS cor0
----
454
520
544
query I rowsort
SELECT + cor0.col2 AS col0 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 40fd8cc0de92ea68d73634c2d8f75bf5
query I rowsort
SELECT DISTINCT + 14 AS col2 FROM tab0
----
14
query IIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0, tab2 AS cor1, tab0 AS cor2, tab0 cor3
----
3645 values hashing to 38896d3a4bd953cc78f93d73ae064cbd
query IIIIIIIIIIIIIIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1, tab2 AS cor1, tab0, tab2 AS cor2, tab2
----
13122 values hashing to 4b4dcc3a0a61c87a1bed2f95374a735e
query I rowsort
SELECT + ( 90 ) - - col1 * 81 * + col2 AS col2 FROM tab2
----
124344
52416
67887
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b
query I rowsort
SELECT - cor1.col1 AS col2 FROM tab2, tab1 AS cor0, tab0 AS cor1
----
27 values hashing to d4c673b7444eb9927ec63175b43c6b84
query I rowsort
SELECT 84 * - 73 AS col2 FROM tab0 AS cor0
----
-6132
-6132
-6132
query I rowsort
SELECT DISTINCT col2 * 98 * + col2 FROM tab2
----
141512
66248
71442
query I rowsort
SELECT col0 + + 5 * col0 FROM tab0
----
144
210
534
query I rowsort
SELECT cor1.col1 AS col2 FROM tab2, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 2d6d3031dfe90e0c02db13aa63993bfd
query I rowsort
SELECT + 52 * col0 AS col2 FROM tab0 AS cor0
----
1248
1820
4628
query I rowsort
SELECT - 61 * col0 FROM tab1
----
-183
-3904
-4880
query I rowsort
SELECT + col1 + col2 * col2 AS col2 FROM tab1 cor0
----
2942
3259
9229
query I rowsort
SELECT + col0 + + col2 * + 79 AS col0 FROM tab2 AS cor0
----
2132
2140
3081
query I rowsort
SELECT + col1 + - 75 * 13 FROM tab1 AS cor0
----
-949
-962
-965
query I rowsort
SELECT + col0 * - 57 AS col2 FROM tab2 AS cor0
----
-399
-4446
-4503
query I rowsort
SELECT DISTINCT - col2 + - col0 * cor0.col0 FROM tab2 cor0
----
-6110
-6279
-76
query I rowsort
SELECT DISTINCT - 91 * col1 FROM tab2
----
-1547
-2821
-5369
query I rowsort
SELECT ALL - cor0.col2 * - col0 - col2 * col1 AS col0 FROM tab2 AS cor0
----
-648
2356
494
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 60 col2 FROM tab1 AS cor0
----
-1560
-600
-780
query I rowsort
SELECT ALL + col0 * ( col0 ) * cor0.col2 AS col0 FROM tab1 AS cor0
----
233472
486
614400
query I rowsort
SELECT col1 * col0 * + 32 + col0 FROM tab0 AS cor0
----
108675
259257
66072
query I rowsort
SELECT DISTINCT - col0 * col2 - col2 FROM tab2 AS cor0
----
-2054
-216
-3040
skipif mysql # not compatible
query I rowsort
SELECT ALL + col2 * CAST ( - col1 AS REAL ) - col2 FROM tab1 AS cor0
----
-1344
-1458
-627
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) * col1 + + col1 * col0 col0 FROM tab2 AS cor0
----
1178
1632
8083
query I rowsort
SELECT ALL + cor0.col1 * + col0 + col1 + col1 FROM tab1 AS cor0
----
1066
130
660
query I rowsort
SELECT ALL - - 88 * - col0 * col2 AS col1 FROM tab1 AS cor0
----
-14256
-321024
-675840
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9712
SELECT + CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9712
SELECT + CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL
onlyif mysql # use DIV operator for integer division
query I rowsort label-9713
SELECT ALL - - col2 + - col0 DIV col1 + - col0 * + 35 AS col1 FROM tab2 AS cor0
----
-218
-2705
-2731
skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL - - col2 + - col0 / col1 + - col0 * + 35 AS col1 FROM tab2 AS cor0
----
-218
-2705
-2731
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9714
SELECT DISTINCT CAST( + col1 AS SIGNED ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
skipif mysql # not compatible
query I rowsort label-9714
SELECT DISTINCT CAST ( + col1 AS INTEGER ) + - cor0.col2 AS col0 FROM tab2 AS cor0
----
-21
33
4
onlyif mysql # use DIV operator for integer division
query I rowsort label-9715
SELECT col1 DIV 20 FROM tab2 AS cor0
----
0
1
2
skipif mysql # not compatible
query I rowsort label-9715
SELECT col1 / 20 FROM tab2 AS cor0
----
0
1
2
query I rowsort
SELECT DISTINCT + ( - col2 ) * col0 AS col2 FROM tab1 cor0
----
-162
-3648
-7680
query I rowsort
SELECT DISTINCT + + 10 AS col0 FROM tab0 cor0
----
10
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9718
SELECT ALL + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9718
SELECT ALL + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL - + col0 + col0 * col2 + col0 AS col0 FROM tab2 AS cor0
----
189
2028
3002
query I rowsort
SELECT DISTINCT - 90 * 58 AS col2 FROM tab0 AS cor0
----
-5220
onlyif mysql # use DIV operator for integer division
query I rowsort label-9721
SELECT ALL + col2 * tab1.col2 + col2 DIV + col0 AS col2 FROM tab1
----
2934
3249
9217
skipif mysql # not compatible
query I rowsort label-9721
SELECT ALL + col2 * tab1.col2 + col2 / + col0 AS col2 FROM tab1
----
2934
3249
9217
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9722
SELECT ALL - col1 + - CAST( col0 + + col1 AS SIGNED ) FROM tab0
----
-196
-229
-271
skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - col1 + - CAST ( col0 + + col1 AS INTEGER ) FROM tab0
----
-196
-229
-271
query I rowsort
SELECT ALL col2 + col1 + + col2 * - col2 FROM tab2
----
-1389
-591
-671
query I rowsort
SELECT + + 40 * col2 + + col0 AS col1 FROM tab2 AS cor0
----
1087
1118
1599
query I rowsort
SELECT DISTINCT col2 * col2 * + cor0.col1 + - col2 AS col2 FROM tab1 cor0
----
119712
32433
75762
query I rowsort
SELECT - ( + cor0.col1 ) AS col1 FROM tab2 AS cor0
----
-17
-31
-59
query I rowsort
SELECT DISTINCT 63 * - 28 + col1 * cor0.col1 + col2 AS col2 FROM tab2 cor0
----
-1437
-776
1743
query I rowsort
SELECT + cor0.col1 * + cor0.col0 - + 34 * - 51 FROM tab1 AS cor0
----
1812
2374
2774
query I rowsort
SELECT ALL + col1 + - col1 * ( - col1 * - col1 ) FROM tab0 cor0
----
-635970
-753480
-912576
query I rowsort
SELECT - col2 + col1 * + col0 * - col2 FROM tab2 cor0
----
-119678
-51072
-5886
query I rowsort
SELECT DISTINCT 27 * - col0 AS col1 FROM tab1 AS cor0
----
-1728
-2160
-81
query I rowsort
SELECT + - col1 - col2 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT - 32 + col1 AS col0 FROM tab2 cor0
----
-1
-15
27
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col1 ) + - col0 col2 FROM tab2 AS cor0
----
-137
-38
-96
query I rowsort
SELECT ALL col1 * - 84 FROM tab0
----
-7224
-7644
-8148
query I rowsort
SELECT ALL - ( col2 + col0 ) FROM tab0
----
-171
-36
-57
query I rowsort
SELECT + + 20 + col0 FROM tab0 AS cor0
----
109
44
55
onlyif mysql # use DIV operator for integer division
query I rowsort label-9738
SELECT ALL - col0 DIV col1 FROM tab0 cor0
----
0
0
0
skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - col0 / col1 FROM tab0 cor0
----
0
0
0
onlyif mysql # use DIV operator for integer division
query I rowsort label-9739
SELECT - col1 * + cor0.col2 + col1 DIV + ( col2 * col1 ) FROM tab0 AS cor0
----
-2838
-7462
-96
skipif mysql # not compatible
query I rowsort label-9739
SELECT - col1 * + cor0.col2 + col1 / + ( col2 * col1 ) FROM tab0 AS cor0
----
-2838
-7462
-96
query I rowsort
SELECT ALL 88 + - cor0.col2 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
3004
3337
9304
query I rowsort
SELECT ALL + cor0.col1 * col1 AS col1 FROM tab0 cor0
----
7396
8281
9409
query I rowsort
SELECT - - col1 + - col1 * col1 FROM tab1 AS cor0
----
-156
-650
-90
query I rowsort
SELECT DISTINCT - col0 + cor0.col0 * 96 AS col0 FROM tab0 AS cor0
----
2280
3325
8455
query I rowsort
SELECT DISTINCT - 98 * col0 + + cor0.col1 AS col0 FROM tab2 cor0
----
-655
-7585
-7725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9745
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0
----
NULL
skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0
----
NULL
query I rowsort
SELECT DISTINCT 20 AS col1 FROM tab1, tab2 AS cor0
----
20
query I rowsort
SELECT 94 AS col0 FROM tab2
----
94
94
94
query I rowsort
SELECT ( 66 ) AS col0 FROM tab1 AS cor0
----
66
66
66
query I rowsort
SELECT DISTINCT + col1 * + 27 FROM tab2 AS cor0
----
1593
459
837
query I rowsort
SELECT - col1 * col2 + col2 * col2 AS col1 FROM tab2 AS cor0
----
-108
-858
798
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 + col0 + - col1 col2 FROM tab2 AS cor0
----
165
2047
3064
query I rowsort
SELECT - col1 * col1 - + 12 AS col2 FROM tab2 AS cor0
----
-301
-3493
-973
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9753
SELECT + - col1 + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9753
SELECT + - col1 + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT + + col2 - - col1 * - 97 FROM tab2 AS cor0
----
-1611
-2980
-5697
query I rowsort
SELECT col2 + cor0.col2 + - col1 FROM tab0 AS cor0
----
-20
-95
73
query I rowsort
SELECT - col0 + + ( + col1 ) + - col1 * + col0 FROM tab0
----
-2002
-3333
-8097
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9757
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab1
----
NULL
skipif mysql # not compatible
query I rowsort label-9757
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab1
----
NULL
query I rowsort
SELECT + col0 + col1 * + col0 * + col2 AS col2 FROM tab2
----
119730
51113
5866
query I rowsort
SELECT ( - ( col1 ) ) * 61 * ( + col0 ) AS col0 FROM tab2
----
-13237
-280722
-81923
query I rowsort
SELECT DISTINCT - tab1.col2 + - tab1.col2 FROM tab1
----
-108
-114
-192
query I rowsort
SELECT DISTINCT - col1 + ( tab0.col1 ) * + 34 * - 86 AS col1 FROM tab0
----
-251550
-266175
-283725
query I rowsort
SELECT DISTINCT + + cor0.col0 * ( col1 ) * + col2 + - ( + col2 ) * col0 * - ( col2 ) FROM tab0 AS cor0
----
1262554
3430
94248
query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 AS col1 FROM tab1 AS cor0
----
4032
6
6320
query I rowsort
SELECT ALL col1 - cor0.col0 AS col1 FROM tab1 AS cor0
----
-54
-67
23
onlyif mysql # use DIV operator for integer division
query I rowsort label-9765
SELECT DISTINCT col0 * col2 + - col2 DIV - col2 FROM tab0 AS cor0
----
36
7299
793
skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT col0 * col2 + - col2 / - col2 FROM tab0 AS cor0
----
36
7299
793
query I rowsort
SELECT DISTINCT + col2 * 92 + - ( cor0.col2 ) AS col2 FROM tab0 cor0
----
3003
7462
91
query I rowsort
SELECT DISTINCT 8 + tab1.col2 AS col0 FROM tab1
----
104
62
65
query I rowsort
SELECT ALL tab0.col2 + col0 + - ( - col0 ) AS col0 FROM tab0
----
260
71
81
query I rowsort
SELECT ALL - - 96 FROM tab0 AS cor0
----
96
96
96
query I rowsort
SELECT tab2.col2 * ( + col1 * col0 ) FROM tab2
----
119652
51034
5859
query I rowsort
SELECT DISTINCT - 73 FROM tab0, tab1 cor0, tab0 AS cor1
----
-73
query I rowsort
SELECT col1 * 61 FROM tab2
----
1037
1891
3599
onlyif mysql # use DIV operator for integer division
query I rowsort label-9773
SELECT DISTINCT 91 DIV col0 FROM tab2
----
1
13
skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT 91 / col0 FROM tab2
----
1
13
query I rowsort
SELECT - 43 * - col1 * col1 AS col2 FROM tab1 AS cor0
----
29068
4300
7267
query I rowsort
SELECT - - ( + col1 ) * cor0.col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT + + col0 + 21 * cor0.col2 FROM tab1 AS cor0
----
1137
1261
2096
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9777
SELECT + CAST( - col2 AS SIGNED ) + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
skipif mysql # not compatible
query I rowsort label-9777
SELECT + CAST ( - col2 AS INTEGER ) + + col0 * col1 AS col1 FROM tab2 AS cor0
----
1305
190
4576
query I rowsort
SELECT + 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d
query I rowsort
SELECT DISTINCT + - 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9780
SELECT DISTINCT - 5 * 35 DIV cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10
-2
-5
skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - 5 * 35 / cor0.col1 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-10
-2
-5
query I rowsort
SELECT DISTINCT + col1 * cor0.col1 + 46 * - cor0.col0 * cor0.col0 AS col0 FROM tab0 AS cor0
----
-19100
-356085
-46941
query I rowsort
SELECT - - ( + col1 ) * + col2 * 87 + + col0 * col0 FROM tab0 cor0
----
247482
657115
9664
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9783
SELECT - col0 + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9783
SELECT - col0 + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * + tab0.col1 * col0 AS col1 FROM tab0
----
118825
49536
720811
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col0 FROM tab2, tab1 AS cor0
----
70
query I rowsort
SELECT col2 * - col0 + 3 AS col2 FROM tab0 cor0
----
-32
-7295
-789
query I rowsort
SELECT - 26 + - col0 FROM tab1 AS cor0
----
-106
-29
-90
query I rowsort
SELECT DISTINCT 11 * + col1 FROM tab0 AS cor0
----
1001
1067
946
query I rowsort
SELECT DISTINCT - ( - col0 ) * + col0 * + col1 + col1 * 30 AS col2 FROM tab1 AS cor0
----
1014
41260
83590
query I rowsort
SELECT - - col1 + col1 * - col2 AS col1 FROM tab0 AS cor0
----
-2752
-7371
0
query I rowsort
SELECT ALL col2 * col1 + + col0 AS col0 FROM tab2 cor0
----
1612
725
844
query I rowsort
SELECT ALL + col2 - + col1 AS col1 FROM tab1 AS cor0
----
28
47
83
query I rowsort
SELECT ALL - + col0 + - col0 * col0 AS col1 FROM tab0 AS cor0
----
-1260
-600
-8010
query I rowsort
SELECT DISTINCT - col0 + - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-7
16
51
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9795
SELECT + col1 * + CAST( col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
289
3481
961
skipif mysql # not compatible
query I rowsort label-9795
SELECT + col1 * + CAST ( col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
289
3481
961
query I rowsort
SELECT DISTINCT cor0.col2 + - 87 AS col1 FROM tab1, tab0 AS cor0, tab1 AS cor1, tab0 AS cor2
----
-5
-54
-86
query I rowsort
SELECT DISTINCT + col0 * + col1 + + 0 * col1 FROM tab2 cor0
----
1343
217
4602
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - cor0.col0 * + ( + col1 ) + col2 col1 FROM tab2 AS cor0
----
-1305
-190
-4576
query I rowsort
SELECT DISTINCT col2 * 55 AS col1 FROM tab2 AS cor0
----
1430
1485
2090
onlyif mysql # use DIV operator for integer division
query I rowsort label-9800
SELECT col2 DIV + tab1.col2 + + col1 * - col1 AS col2 FROM tab1
----
-168
-675
-99
skipif mysql # not compatible
query I rowsort label-9800
SELECT col2 / + tab1.col2 + + col1 * - col1 AS col2 FROM tab1
----
-168
-675
-99
query I rowsort
SELECT DISTINCT - col1 + + col1 * + col1 * ( 30 ) AS col0 FROM tab1 AS cor0
----
20254
2990
5057
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + ( + col1 ) ) * col1 - cor0.col1 col1 FROM tab1 AS cor0
----
-110
-182
-702
query I rowsort
SELECT ALL 38 FROM tab1, tab0, tab1 AS cor0
----
27 values hashing to a7827a79248ee7bf2cee915a631d02cb
query I rowsort
SELECT - - col2 * - col0 + + col2 + - col1 AS col0 FROM tab1 AS cor0
----
-134
-3601
-7597
query I rowsort
SELECT - cor0.col1 * - col2 + col1 * 28 FROM tab0 AS cor0
----
10010
2813
5246
query I rowsort
SELECT ALL + tab0.col2 + 37 FROM tab0
----
119
38
70
onlyif mysql # use DIV operator for integer division
query I rowsort label-9807
SELECT + tab2.col0 * - ( + col2 ) + - 52 DIV 12 col0 FROM tab2
----
-193
-2032
-3006
skipif postgresql # PostgreSQL requires AS when renaming output columns
skipif mysql # not compatible
query I rowsort label-9807
SELECT + tab2.col0 * - ( + col2 ) + - 52 / 12 col0 FROM tab2
----
-193
-2032
-3006
query I rowsort
SELECT 92 - col0 AS col0 FROM tab2
----
13
14
85
query I rowsort
SELECT DISTINCT ( tab2.col2 ) + - tab2.col1 FROM tab2
----
-33
-4
21
query I rowsort
SELECT + + col2 - + col0 AS col0 FROM tab0 AS cor0
----
-34
-7
9
query I rowsort
SELECT ALL 92 AS col2 FROM tab0, tab0 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a
query I rowsort
SELECT + 26 * cor0.col2 FROM tab1, tab2, tab1 AS cor0
----
27 values hashing to 3d175eb7674cd4644210d5763e4f7f60
query I rowsort
SELECT + 25 * + col0 * + col1 AS col2 FROM tab1
----
16000
1950
26000
query I rowsort
SELECT col1 + - col0 + + 49 * + col2 FROM tab1
----
2669
2739
4637
query I rowsort
SELECT - 93 + cor0.col0 + 49 * + col2 FROM tab0 cor0
----
-9
1548
4014
query I rowsort
SELECT - col1 + col2 * - 66 * col1 FROM tab1 AS cor0
----
-37630
-82381
-92690
query I rowsort
SELECT DISTINCT - 23 AS col2 FROM tab2 AS cor0
----
-23
query I rowsort
SELECT ALL col1 * + col0 + - col2 AS col2 FROM tab1 AS cor0
----
24
583
944
query I rowsort
SELECT + - col1 + + col2 * col0 FROM tab0 cor0
----
-62
706
7207
query I rowsort
SELECT - col1 * col0 * - 49 + - col1 FROM tab1
----
31350
3796
50947
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + col1 col0 FROM tab0
----
-1978
-3298
-8008
query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab2, tab0 AS cor0
----
42
query I rowsort
SELECT ALL + col2 * col0 * 91 AS col2 FROM tab0 AS cor0
----
3185
664118
72072
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT cor0.col0 + - ( col0 ) * col0 col2 FROM tab2 AS cor0
----
-42
-6006
-6162
query I rowsort
SELECT - col1 * 90 AS col1 FROM tab2 AS cor0
----
-1530
-2790
-5310
query I rowsort
SELECT - col1 + 34 FROM tab0 cor0
----
-52
-57
-63
query I rowsort
SELECT DISTINCT + ( - col1 ) * col2 * - col1 FROM tab0 AS cor0
----
244068
679042
9409
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9828
SELECT ALL + - CAST( + cor0.col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
skipif mysql # not compatible
query I rowsort label-9828
SELECT ALL + - CAST ( + cor0.col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-86
-91
-97
query I rowsort
SELECT - + col2 + - col1 + col0 FROM tab2 AS cor0
----
-51
-7
24
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col1 FROM tab2 cor0
----
-71
-71
-71
query I rowsort
SELECT DISTINCT col1 * 32 AS col1 FROM tab1 AS cor0
----
320
416
832
query I rowsort
SELECT DISTINCT + + col1 * 21 + + col2 AS col1 FROM tab0 AS cor0
----
1839
1993
2038
query I rowsort
SELECT - col2 * col0 * col1 - cor0.col2 * + cor0.col0 AS col1 FROM tab1 AS cor0
----
-107520
-40128
-4374
query I rowsort
SELECT DISTINCT - 28 + col1 AS col0 FROM tab0 AS cor0
----
58
63
69
query I rowsort
SELECT - col1 - col2 * col2 AS col2 FROM tab1 cor0
----
-2942
-3259
-9229
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9836
SELECT CAST( NULL AS SIGNED ) * col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9836
SELECT CAST ( NULL AS INTEGER ) * col2 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col1 FROM tab1 AS cor0
----
-93
-93
-93
query I rowsort
SELECT + 13 * - ( cor0.col2 ) * - ( + 62 ) - + col0 * 84 * + col0 FROM tab0 AS cor0
----
-102094
-21786
-599272
onlyif mysql # use DIV operator for integer division
query I rowsort label-9839
SELECT ALL cor0.col1 * 64 + - col2 DIV + ( - 93 ) FROM tab0 AS cor0
----
5504
5824
6208
skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL cor0.col1 * 64 + - col2 / + ( - 93 ) FROM tab0 AS cor0
----
5504
5824
6208
query I rowsort
SELECT DISTINCT - 96 * 69 AS col0 FROM tab1 AS cor0
----
-6624
query I rowsort
SELECT DISTINCT + ( col0 ) + col0 * + ( ( - col1 ) ) * - 22 FROM tab0 AS cor0
----
178267
45432
74725
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9842
SELECT ALL CAST( ( - col0 / 58 ) AS SIGNED ) * + 26 * col0 FROM tab1 cor0
----
-1664
-2080
0
skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL CAST ( ( - col0 / 58 ) AS INTEGER ) * + 26 * col0 FROM tab1 cor0
----
-1664
-2080
0
query I rowsort
SELECT + col0 + + cor0.col1 * col0 AS col2 FROM tab0 AS cor0
----
2088
3430
8188
query I rowsort
SELECT col2 * col1 - col2 * + col1 AS col0 FROM tab1 AS cor0
----
0
0
0
query I rowsort
SELECT ALL - + 55 FROM tab0 AS cor0
----
-55
-55
-55
query I rowsort
SELECT DISTINCT col0 * 92 + col1 FROM tab0 AS cor0
----
2294
3317
8279
onlyif mysql # use DIV operator for integer division
query I rowsort label-9847
SELECT + 34 DIV 45 + cor0.col2 FROM tab0 AS cor0
----
1
33
82
skipif mysql # not compatible
query I rowsort label-9847
SELECT + 34 / 45 + cor0.col2 FROM tab0 AS cor0
----
1
33
82
query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) > col1
----
79
17
38
query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + col0 )
----
query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT NULL <= NULL
----
query I rowsort
SELECT ALL + col1 * col1 - - col1 * cor0.col1 AS col2 FROM tab0 AS cor0
----
14792
16562
18818
query I rowsort
SELECT + col0 - + tab2.col1 * + col2 AS col1 FROM tab2
----
-1456
-567
-830
query I rowsort
SELECT col2 * + col1 AS col1 FROM tab1 WHERE + col2 / - col2 IN ( + tab1.col1 )
----
query I rowsort
SELECT col1 + col2 FROM tab1 WHERE NOT ( NULL ) > NULL
----
query I rowsort
SELECT ALL + col2 + col2 FROM tab2 WHERE + col2 * - col1 NOT BETWEEN ( - col0 ) AND - col0 + - col0 * col2
----
52
54
76
query I rowsort
SELECT + col1 * col0 * tab0.col2 FROM tab0 WHERE NULL NOT IN ( tab0.col1 )
----
query I rowsort
SELECT DISTINCT - col0 - col2 / + col1 FROM tab2 WHERE NOT NULL IN ( + col2 * + col1 * + col1 )
----
query I rowsort
SELECT col1 * - col0 + col2 * + col1 + col1 AS col2 FROM tab0
----
-3201
-546
860
query I rowsort
SELECT ALL - col1 + col2 * col1 AS col1 FROM tab1 AS cor0
----
1235
1378
560
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 + col2 col1 FROM tab2 AS cor0
----
2054
216
3040
query I rowsort
SELECT DISTINCT + col1 + cor0.col0 * - col0 * col0 FROM tab2 AS cor0
----
-312
-474493
-493022
query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 * + col1 + + col0 ) AND NULL
----
query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----
query I rowsort
SELECT DISTINCT cor0.col2 + col1 * - col2 AS col0 FROM tab1 AS cor0
----
-1152
-1350
-513
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * - col0 col1 FROM tab0 AS cor0
----
2064
3395
8099
onlyif mysql # use DIV operator for integer division
query I rowsort label-9866
SELECT - - col0 * col1 + col2 DIV col2 AS col2 FROM tab1 cor0
----
1041
641
79
skipif mysql # not compatible
query I rowsort label-9866
SELECT - - col0 * col1 + col2 / col2 AS col2 FROM tab1 cor0
----
1041
641
79
query I rowsort
SELECT ALL + cor0.col2 * col1 * - col0 AS col1 FROM tab1 AS cor0
----
-36480
-4212
-99840
query I rowsort
SELECT ALL col1 * - col1 * + col1 FROM tab2 AS cor0
----
-205379
-29791
-4913
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 - col1 col2 FROM tab0 AS cor0
----
-53
-9
-96
query I rowsort
SELECT DISTINCT col0 + col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col1 / - col2 )
----
29
74
93
query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2 * cor0.col2 / + col0 )
----
query I rowsort
SELECT col2 + col2 * col1 * col0 FROM tab2
----
119678
51072
5886
query I rowsort
SELECT ALL col0 * col0 + col1 FROM tab0
----
1322
662
8012
query I rowsort
SELECT DISTINCT tab0.col1 + - col0 AS col2 FROM tab0
----
2
62
query I rowsort
SELECT + col0 + col2 * + tab2.col2 AS col0 FROM tab2
----
1523
736
754
query I rowsort
SELECT - col2 * 87 FROM tab0 AS cor0
----
-2871
-7134
-87
query I rowsort
SELECT + col1 + - 27 * - col1 AS col0 FROM tab1 cor0
----
280
364
728
query I rowsort
SELECT - cor0.col1 + 44 * + col1 AS col2 FROM tab1 AS cor0
----
1118
430
559
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col0 + col1 col0 FROM tab0 AS cor0
----
-706
-7207
62
query I rowsort
SELECT - + cor0.col2 + - col1 AS col2 FROM tab0 AS cor0
----
-119
-173
-98
query I rowsort
SELECT ALL - col0 * + col2 + tab1.col2 * - col0 AS col1 FROM tab1
----
-15360
-324
-7296
query I rowsort
SELECT - + col0 + cor0.col2 AS col0 FROM tab1 AS cor0
----
-7
16
51
query I rowsort
SELECT + col0 + + 63 * col0 AS col0 FROM tab2 AS cor0
----
448
4992
5056
query I rowsort
SELECT + + col0 * col0 * - col0 FROM tab0 AS cor0
----
-13824
-42875
-704969
query I rowsort
SELECT DISTINCT col1 * - tab1.col0 + col2 * col2 - tab1.col0 AS col2 FROM tab1
----
2545
2835
8096
query I rowsort
SELECT ALL - tab0.col2 * - tab0.col2 * - col1 FROM tab0
----
-611884
-93654
-97
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9887
SELECT ( col1 ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9887
SELECT ( col1 ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT ALL + col2 - col1 AS col2 FROM tab0
----
-53
-9
-96
query I rowsort
SELECT ALL col0 + - col2 + col0 * - col0 FROM tab2
----
-6032
-6200
-69
query I rowsort
SELECT DISTINCT col2 * + col0 + + col0 AS col2 FROM tab2 WHERE NOT - col2 BETWEEN + col0 * - col2 - + col2 * col2 * col2 AND ( tab2.col2 - + col2 )
----
query I rowsort
SELECT ALL col0 - - col1 AS col0 FROM tab1
----
29
74
93
query I rowsort
SELECT - 22 * col0 FROM tab2
----
-154
-1716
-1738
onlyif mysql # use DIV operator for integer division
query I rowsort label-9893
SELECT 40 DIV - col0 AS col1 FROM tab1
----
-13
0
0
skipif mysql # not compatible
query I rowsort label-9893
SELECT 40 / - col0 AS col1 FROM tab1
----
-13
0
0
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 4 col0 FROM tab1
----
4
4
4
query I rowsort
SELECT + 81 FROM tab1, tab2 AS cor0, tab0 AS cor1
----
27 values hashing to 0a85639e0dddbffdab2cb16b027cb360
onlyif mysql # use DIV operator for integer division
query I rowsort label-9896
SELECT + - 95 + - col1 DIV + col1 AS col2 FROM tab2 AS cor0
----
-96
-96
-96
skipif mysql # not compatible
query I rowsort label-9896
SELECT + - 95 + - col1 / + col1 AS col2 FROM tab2 AS cor0
----
-96
-96
-96
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9897
SELECT - cor0.col1 + + col1 * + CAST( col2 + col0 AS SIGNED ) * ( + cor0.col1 + + col2 ) AS col0 FROM tab0 cor0
----
2691962
342119
583252
skipif mysql # not compatible
query I rowsort label-9897
SELECT - cor0.col1 + + col1 * + CAST ( col2 + col0 AS INTEGER ) * ( + cor0.col1 + + col2 ) AS col0 FROM tab0 cor0
----
2691962
342119
583252
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9898
SELECT ALL - col0 + CAST( NULL AS SIGNED ) + col2 FROM tab0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9898
SELECT ALL - col0 + CAST ( NULL AS INTEGER ) + col2 FROM tab0
----
NULL
NULL
NULL
query I rowsort
SELECT col0 * - 80 + - 69 AS col0 FROM tab1 AS cor0
----
-309
-5189
-6469
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + ( col2 ) + col2 col1 FROM tab0 AS cor0
----
36
7380
825
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9901
SELECT DISTINCT + cor0.col1 - CAST( ( col1 ) AS SIGNED ) * col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT + cor0.col1 - CAST ( ( col1 ) AS INTEGER ) * col2 AS col0 FROM tab1 AS cor0
----
-1235
-1378
-560
query I rowsort
SELECT + - col2 * col1 - 7 AS col2 FROM tab2 AS cor0
----
-1541
-653
-844
query I rowsort
SELECT - + col2 * col2 + - cor0.col0 * - col1 FROM tab2 AS cor0
----
-101
-512
3926
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9904
SELECT CAST( NULL AS DECIMAL ) * col0 + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9904
SELECT CAST ( NULL AS REAL ) * col0 + - cor0.col2 FROM tab1 AS cor0
----
NULL
NULL
NULL
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 * col2 col1 FROM tab1 AS cor0
----
2484
2622
4416
query I rowsort
SELECT + + col0 * - 38 FROM tab0 AS cor0
----
-1330
-3382
-912
query I rowsort
SELECT 42 + cor0.col2 * cor0.col1 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to ff07eafd5bbd7dc25a3a2d05ccd54415
query I rowsort
SELECT - + cor1.col2 FROM tab1 cor0 CROSS JOIN tab0, tab1 AS cor1
----
27 values hashing to 44fdcd7cd603352d4d127811d164cc1e
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9909
SELECT ALL - - CAST( NULL AS SIGNED ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL - - CAST ( NULL AS INTEGER ) + + cor0.col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9910
SELECT ALL - + CAST( NULL AS SIGNED ) * col1 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL - + CAST ( NULL AS INTEGER ) * col1 / col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT + ( + col2 ) - col1 * col0 FROM tab0
----
-2031
-3394
-8017
query I rowsort
SELECT 81 AS col2 FROM tab1 cor0
----
81
81
81
query I rowsort
SELECT - + 1 + - col1 AS col1 FROM tab2 AS cor0
----
-18
-32
-60
query I rowsort
SELECT DISTINCT - + cor0.col2 + col0 FROM tab0 AS cor0
----
-9
34
7
query I rowsort
SELECT 5 * - col2 * - col1 AS col0 FROM tab1 AS cor0
----
2850
6240
7020
query I rowsort
SELECT - - col2 - col1 * + col2 AS col2 FROM tab2 AS cor0
----
-1508
-608
-810
query I rowsort
SELECT ALL col1 + + 15 * + col2 AS col1 FROM tab1 AS cor0
----
1453
836
865
query I rowsort
SELECT cor0.col2 * + 18 AS col2 FROM tab1 AS cor0
----
1026
1728
972
query I rowsort
SELECT DISTINCT + col2 + + col2 * - 70 + - col2 * col1 FROM tab0 AS cor0
----
-13120
-166
-5115
query I rowsort
SELECT DISTINCT tab0.col2 - - col0 AS col2 FROM tab0
----
171
36
57
query I rowsort
SELECT - col2 - + tab2.col1 FROM tab2
----
-55
-58
-85
query I rowsort
SELECT DISTINCT - col0 + - col2 - + col0 FROM tab0 AS cor0
----
-260
-71
-81
onlyif mysql # use DIV operator for integer division
query I rowsort label-9923
SELECT DISTINCT + col0 + - col0 DIV - cor0.col0 AS col2 FROM tab2 AS cor0
----
79
8
80
skipif mysql # not compatible
query I rowsort label-9923
SELECT DISTINCT + col0 + - col0 / - cor0.col0 AS col2 FROM tab2 AS cor0
----
79
8
80
onlyif mysql # use DIV operator for integer division
query I rowsort label-9924
SELECT col0 DIV cor0.col0 + + col1 * col0 DIV col1 AS col1 FROM tab0 AS cor0
----
25
36
90
skipif mysql # not compatible
query I rowsort label-9924
SELECT col0 / cor0.col0 + + col1 * col0 / col1 AS col1 FROM tab0 AS cor0
----
25
36
90
query I rowsort
SELECT col0 * col1 - - tab1.col0 AS col2 FROM tab1
----
1120
704
81
query I rowsort
SELECT DISTINCT 22 * - col0 AS col1 FROM tab2
----
-154
-1716
-1738
query I rowsort
SELECT DISTINCT ( col2 * + tab1.col0 ) AS col2 FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9928
SELECT col2 * col1 DIV col2 + col2 FROM tab1
----
109
67
80
skipif mysql # not compatible
query I rowsort label-9928
SELECT col2 * col1 / col2 + col2 FROM tab1
----
109
67
80
query I rowsort
SELECT ALL col1 + col2 * col2 FROM tab1
----
2942
3259
9229
query I rowsort
SELECT - col1 + col2 + + col2 FROM tab1
----
104
179
82
query I rowsort
SELECT col1 + col0 * + col0 - col0 FROM tab1
----
32
4042
6333
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col0 + col0 * col0 col0 FROM tab0
----
-1488
-178
-2170
query I rowsort
SELECT DISTINCT col0 * tab1.col0 + tab1.col2 FROM tab1
----
4153
63
6496
query I rowsort
SELECT ALL + 72 * col2 FROM tab0
----
2376
5904
72
query I rowsort
SELECT ( 87 ) * col0 - col1 * + col2 AS col1 FROM tab1
----
-1143
4998
5712
query I rowsort
SELECT - 62 - + ( col0 * col2 ) FROM tab1
----
-224
-3710
-7742
query I rowsort
SELECT ALL 53 + col2 * col2 AS col2 FROM tab1 AS cor0
----
2969
3302
9269
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * col1 col0 FROM tab2 AS cor0
----
-1581
-2883
-5487
query I rowsort
SELECT ALL col1 * - col1 * + cor0.col1 AS col2 FROM tab1 AS cor0
----
-1000
-17576
-2197
query I rowsort
SELECT ( + col1 ) * + col0 AS col2 FROM tab0 AS cor0
----
2064
3395
8099
query I rowsort
SELECT DISTINCT 6 * ( + col0 ) AS col2 FROM tab1
----
18
384
480
query I rowsort
SELECT ( - col1 * col1 ) + + col2 * - col1 FROM tab2
----
-1798
-5015
-935
query I rowsort
SELECT - ( col1 ) * + col2 + col0 * + col2 * col0 FROM tab0 AS cor0
----
1128
16170
642060
query I rowsort
SELECT ALL + ( col2 ) * + col0 AS col2 FROM tab0
----
35
7298
792
query I rowsort
SELECT 66 + cor0.col2 * - col2 AS col2 FROM tab1 AS cor0
----
-2850
-3183
-9150
query I rowsort
SELECT ALL ( tab0.col0 * col2 ) FROM tab0
----
35
7298
792
query I rowsort
SELECT - 61 * + col0 AS col2 FROM tab2 AS cor0
----
-427
-4758
-4819
query I rowsort
SELECT - col1 + cor0.col0 * - cor0.col0 AS col1 FROM tab2 AS cor0
----
-6143
-6258
-80
query I rowsort
SELECT col1 * - 73 * - col2 AS col2 FROM tab1
----
102492
41610
91104
query I rowsort
SELECT + ( ( + col2 ) ) FROM tab2
----
26
27
38
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 col1 FROM tab1
----
-77
-77
-77
query I rowsort
SELECT ( col0 ) * + ( col2 ) FROM tab1
----
162
3648
7680
onlyif mysql # use DIV operator for integer division
query I rowsort label-9953
SELECT tab1.col2 + col0 DIV ( 7 ) AS col0 FROM tab1
----
107
54
66
skipif mysql # not compatible
query I rowsort label-9953
SELECT tab1.col2 + col0 / ( 7 ) AS col0 FROM tab1
----
107
54
66
query I rowsort
SELECT ALL 40 * col0 FROM tab0 cor0
----
1400
3560
960
query I rowsort
SELECT - col0 + cor0.col1 * + col0 AS col0 FROM tab2 AS cor0
----
1264
210
4524
query I rowsort
SELECT - col1 * - cor0.col1 * 84 AS col0 FROM tab0 AS cor0
----
621264
695604
790356
query I rowsort
SELECT DISTINCT col2 * col1 * 66 FROM tab0
----
187308
492492
6402
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9958
SELECT + col1 + - CAST( NULL AS SIGNED ) + + 13 FROM tab1
----
NULL
NULL
NULL
skipif mysql # not compatible
query I rowsort label-9958
SELECT + col1 + - CAST ( NULL AS INTEGER ) + + 13 FROM tab1
----
NULL
NULL
NULL
query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab2, tab1 cor0
----
-35
onlyif mysql # use DIV operator for integer division
query I rowsort label-9960
SELECT + 43 DIV - col1 FROM tab1 AS cor0
----
-1
-3
-4
skipif mysql # not compatible
query I rowsort label-9960
SELECT + 43 / - col1 FROM tab1 AS cor0
----
-1
-3
-4
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9961
SELECT col1 * + CAST( - col0 AS SIGNED ) FROM tab1
----
-1040
-640
-78
skipif mysql # not compatible
query I rowsort label-9961
SELECT col1 * + CAST ( - col0 AS INTEGER ) FROM tab1
----
-1040
-640
-78
query I rowsort
SELECT DISTINCT - col0 + ( - 24 + col0 ) * - col2 AS col1 FROM tab0
----
-24
-46
-5419
query I rowsort
SELECT ALL - 86 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da
onlyif mysql # use DIV operator for integer division
query I rowsort label-9964
SELECT col0 DIV + ( col1 ) AS col1 FROM tab2
----
0
1
4
skipif mysql # not compatible
query I rowsort label-9964
SELECT col0 / + ( col1 ) AS col1 FROM tab2
----
0
1
4
query I rowsort
SELECT DISTINCT 25 FROM tab0, tab2 cor0
----
25
query I rowsort
SELECT ALL + tab0.col0 + - 45 * - tab0.col0 FROM tab0
----
1104
1610
4094
query I rowsort
SELECT - + 5 * cor0.col2 + col2 AS col0 FROM tab1 AS cor0
----
-216
-228
-384
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9968
SELECT ALL CAST( 4 AS SIGNED ) * col1 FROM tab1 AS cor0
----
104
40
52
skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL CAST ( 4 AS INTEGER ) * col1 FROM tab1 AS cor0
----
104
40
52
query I rowsort
SELECT ALL + + 6 AS col0 FROM tab1 AS cor0
----
6
6
6
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 36 * col1 + - col2 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
-3793
-6028
873
skipif mysql # not compatible
query I rowsort
SELECT + - CAST ( col0 AS REAL ) + - col2 FROM tab1 AS cor0
----
-121
-176
-57
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9973
SELECT DISTINCT - + CAST( col0 AS SIGNED ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) * - cor0.col1 AS col2 FROM tab1 AS cor0
----
1040
640
78
query I rowsort
SELECT col0 * col2 - + col0 AS col1 FROM tab1 AS cor0
----
159
3584
7600
query I rowsort
SELECT + + 55 + - col0 AS col1 FROM tab2 cor0
----
-23
-24
48
query I rowsort
SELECT ALL + cor0.col0 FROM tab2, tab0, tab2 AS cor0
----
27 values hashing to 1e1f10953eb8effe9b20e746f8a7fd83
onlyif mysql # use DIV operator for integer division
query I rowsort label-9977
SELECT DISTINCT - tab1.col2 DIV - col0 FROM tab1
----
0
1
18
skipif mysql # not compatible
query I rowsort label-9977
SELECT DISTINCT - tab1.col2 / - col0 FROM tab1
----
0
1
18
query I rowsort
SELECT col2 + + 62 + col2 * - col1 AS col2 FROM tab0
----
-2743
-34
-7318
query I rowsort
SELECT ALL + 73 AS col1 FROM tab1
----
73
73
73
query I rowsort
SELECT 11 * - col0 AS col1 FROM tab2
----
-77
-858
-869
onlyif mysql # use DIV operator for integer division
query I rowsort label-9981
SELECT - col2 - + 54 DIV col0 FROM tab0 AS cor0
----
-2
-35
-82
skipif mysql # not compatible
query I rowsort label-9981
SELECT - col2 - + 54 / col0 FROM tab0 AS cor0
----
-2
-35
-82
query I rowsort
SELECT + cor0.col1 * col2 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
119711
51051
5890
query I rowsort
SELECT ALL + 5 - col0 FROM tab1
----
-59
-75
2
query I rowsort
SELECT + col2 + - tab0.col0 + col2 AS col2 FROM tab0
----
-33
42
75
query I rowsort
SELECT + col1 + col0 + cor0.col0 FROM tab1 AS cor0
----
138
173
32
onlyif mysql # support for MySQL specific system types and syntax
query I rowsort label-9986
SELECT - col1 + - col2 * CAST( - col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
233462
460
614387
skipif mysql # not compatible
query I rowsort label-9986
SELECT - col1 + - col2 * CAST ( - col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
233462
460
614387
query I rowsort
SELECT + 59 + - col2 FROM tab1 cor0
----
-37
2
5
query I rowsort
SELECT - col0 * - col1 + 13 + col2 FROM tab0 cor0
----
2110
3409
8194
onlyif mysql # use DIV operator for integer division
query I rowsort label-9989
SELECT - col1 + col1 DIV + col1 + 7 FROM tab0 AS cor0
----
-78
-83
-89
skipif mysql # not compatible
query I rowsort label-9989
SELECT - col1 + col1 / + col1 + 7 FROM tab0 AS cor0
----
-78
-83
-89
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 85 col0 FROM tab0 AS cor0
----
85
85
85
query I rowsort
SELECT DISTINCT col1 * - col1 + 95 * col0 AS col0 FROM tab1 cor0
----
-391
5980
7431
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + cor0.col0 * col2 col0 FROM tab0 AS cor0
----
35
7298
792
query I rowsort
SELECT ALL + cor0.col0 + col0 AS col2 FROM tab1 cor0
----
128
160
6
onlyif mysql # use DIV operator for integer division
query I rowsort label-9994
SELECT + col2 DIV - col0 + 89 DIV col0 + col2 FROM tab0 AS cor0
----
3
35
83
skipif mysql # not compatible
query I rowsort label-9994
SELECT + col2 / - col0 + 89 / col0 + col2 FROM tab0 AS cor0
----
3
35
83
query I rowsort
SELECT DISTINCT - cor0.col0 * ( cor0.col0 ) + col1 FROM tab1 AS cor0
----
-4086
-6387
17
query I rowsort
SELECT + col0 * + col1 * cor0.col1 FROM tab0 AS cor0
----
177504
329315
737009
query I rowsort
SELECT + + col0 * 88 AS col0 FROM tab0 AS cor0
----
2112
3080
7832
query I rowsort
SELECT + + cor0.col1 + + col2 AS col1 FROM tab1 AS cor0
----
109
67
80
query I rowsort
SELECT - col2 * + 34 FROM tab0 cor0
----
-1122
-2788
-34